Solved

P2P  with Flash Action script

Posted on 2007-04-02
11
305 Views
Last Modified: 2010-05-18
Hi, I'd like to know if it's possible to create a pear-to-pear connection between 2 ore more flash applications (macrmedia flash) for file sharing or video chat, or for simply text messageing?

I searched the internet but didn't find anything.

Thanks a lot
0
Comment
Question by:Gagik
  • 4
  • 3
  • 2
  • +1
11 Comments
 
LVL 5

Expert Comment

by:psyki_be
Comment Utility
Yup

You'll need to use Actionscript XMLSocket objects.

never did it myself, so I have no perfect tutorials or anything.

But this should get give you soemthing back when you search with google or experts exchange :)


0
 
LVL 37

Expert Comment

by:CyanBlue
Comment Utility
It's my understanding that XMLSocket requires the server that listens to the data, so you cannot use that to do the P2P...  As a matter of fact, I don't think you can do P2P with Flash for now...  There is a possibility to do that in the new Apollo with ActionScript 3, but I cannot really sure of it...

CyanBlue
0
 

Author Comment

by:Gagik
Comment Utility
I just checked on Adobe website about XML object, it says: "The XMLSocket object is useful for client-server applications that require low latency, such as real-time chat systems."
So I think XMLSocket object wouldn't allow a p2p connection...

Do you think another solution would be possible?
0
 
LVL 5

Expert Comment

by:psyki_be
Comment Utility
pear to pear is nothing more than the combination of client and server.

pc1:
client app
server app

pc2:
client app
server app

if you have a 'server' and a 'client' app running on both pc's, you have a pear to pear network. No?
0
 
LVL 37

Expert Comment

by:CyanBlue
Comment Utility
That sure will work, psyki_be...  But it will only work if you have the server app that's written in C++, for example...  But that is not really a Flash question after all...

CyanBlue
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 5

Expert Comment

by:psyki_be
Comment Utility
hmmmz. yes, I guess so...


Then again.
I think pear to pear (in whatever possible way) is possible with flash only.

My college teacher from last year once showed a flash-only chat, with 2 flash apps chatting, without any form of db or whatever.
So it is possible.

Maybe I have the code somewhere, maybe not, I kinda doubt it.
I'll see when I get home (@ work now)
0
 

Author Comment

by:Gagik
Comment Utility
In proncipal I think it would work, but how do you create such a "server" with flash application?
0
 
LVL 5

Expert Comment

by:psyki_be
Comment Utility
If I find the code, I'll post it, but I wouldn't count too much on it, I don't think I have it.

untill then ... well ... google ;)
0
 
LVL 4

Expert Comment

by:teddysetiawan
Comment Utility
^_^  another P2P question ,

Here's my opinion relating to P2P to flash.

http://www.experts-exchange.com/Programming/Open_Source/Q_22466782.html
its include socket class code in AS 3.0.

If you have a server as intermediate, I don't think thats a P2P app.  

For  a cheat doing P2P in flash using FMS
Here's the link
http://fczone.com/?p=17
its a full source code on flash acting like P2P combine with FMS and java.



0
 
LVL 4

Accepted Solution

by:
teddysetiawan earned 125 total points
Comment Utility
Cyan , you said you want to investigate the code ,

Here's another link that I think you might be interest in also.

You can combine the socket class in
http://www.experts-exchange.com/Programming/Open_Source/Q_22466782.html

with these

http://blog.everythingflex.com/2007/03/19/file-and-filestream-within-apollo-full-source-code/

its Apollo application with full source code for read and write files to the local file system.


0
 
LVL 37

Expert Comment

by:CyanBlue
Comment Utility
Interesting find...  Appreciate your time, teddy...  :)

CyanBlue
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now