Solved

P2P  with Flash Action script

Posted on 2007-04-02
11
310 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
ID: 18841872
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
ID: 18843000
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
ID: 18843579
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:psyki_be
ID: 18843602
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
ID: 18843849
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
 
LVL 5

Expert Comment

by:psyki_be
ID: 18843928
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
ID: 18843930
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
ID: 18843960
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
ID: 18848677
^_^  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
ID: 18848704
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
ID: 18850206
Interesting find...  Appreciate your time, teddy...  :)

CyanBlue
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Show Screenshot Before or After Populating Fields 11 115
MDT 2013 Update 2 8 60
Compare site how does it work 4 87
Migrate Application To New Mac 5 62
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

680 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