P2p - Using Flash Peer To Peer To Share Files?

Apr 21, 2011

I am trying to implement the actionscript program described at this address. http://cookbooks.adobe.com/post_Create_a_P2P_file_sharing_application-16539.html. It lets two flash client connect to the cirrus service and share a file using the flash peer to peer facilities.

The problem is that I would like to display a progress bar to the downloading client for long files. There does not seem to be any progress-type event been triggered by data sent by NetStream.Send. This particular function appears to have been created by adobe to send tiny update and meta-data code.

Is there a way to display a progress bar of downloaded data when using a netstream object?

The alternative would be to break the data into small packets and send them individually; then increment the progress bar as they are received by the client. Unfortunately this creates a lot of overhead for the simple problem of displaying a progress bar.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Peer To Peer In Flash, Is Java The Answer

Aug 31, 2011

One workaround for this seems to be very briefly using a server to authenticate and setup a peer to peer connection, such as Adobe Cirrus. Another workaround is simply not using peer-to-peer, and instead setting up a dedicated server using Java or PHP to communicate between users.

It seems to me, that if you can use Java on a server to communicate between two users, shouldn't you be able to use Java in your program to directly handle peer-to-peer communications, no server needed?

And, if it's at least theoretically possible, would someone mind pointing me to a good tutorial on integrating Flash and Java, and using Java to do peer-to-peer? The tutorials and examples I've managed to find so far on both subjects haven't been very illuminating.

View 10 Replies

Media Server :: Latency Is Coming In Fms4 Peer To Peer Communication

Nov 17, 2010

I am developing peer to peer video conference application with FMS4 but there is some latency problem.

View 1 Replies

Media Server :: Latency Coming On One Side In Peer To Peer Connection?

Dec 22, 2010

We developed one video chat application in which one user can chat communicate with anohter user. Latency is coming on one side in peer to peer connection.

View 2 Replies

Media Server :: What Determines When Peer Might Switch To Another Peer

Jan 30, 2012

When running a peer-assisted multicast video event, what determines when a peer might switch to another peer?What I'm asking is that a peer joins the group, is handed a few peers that may be decent cadidates to pull the video stream from.They start pulling that stream from peer1 and if they can't connect (or I assume if the connection is terrible) they will try the next peer.What if I want the peer to give up (and try another peer) if the quality of the stream coming from a peer is not terrible but is not great either.Is that configurable?

View 1 Replies

ActionScript 2.0 :: Possible To Create Peer To Peer Games

Sep 6, 2011

is it possible to create peer to peer games in Action script 2.0

View 1 Replies

Flex :: RTMFP Direct Peer-to-peer Connection Working On Windows XP / But Not On Windows 7

Mar 1, 2012

we're having a strange problem on a project here. When we use NetConnection in combination with a NetGroup to initiate communication between two local AIR applications on Windows XP, they always both connect to the NetGroup succesfully and detect each other as neighbors. However, on Windows 7 both applications connect succesfully to the NetConnection and NetGroup both don't detect each other as neighbors.To reproduce this problem, here are two AIR applications:[code]

These applications can connect and send message to each other without a problem on Windows XP. On Windows 7 however, they cannot.Does anyone know why this wouldn't work on Windows 7 and what steps can be taken to make it work? It's critical to our project that this works.In some cases, the applications take quite a long time to detect each other as neighbors (up to 15 seconds in some cases), in other cases they detect each other immediately. Does anyone know what could cause this delay?

View 1 Replies

Flash - Adobe Cirrus: Deliver A Chunk Of Data To A Single Peer With Known Id?

Jun 17, 2011

Adobe Cirrus offers a number of options for transferring data from peer to peer: Directed Routing, Object Replication and Multicasting to name a few.I just want to send the data to one specific peer, its fine for other peers to 'see' it in transit.

My experiments with Directed Routing (the obvious answer) have not gone well. all the sendto... methods fail, while NetGroup.post works fine on the same netgroup. I am concerned about using direct connections because of reliability.

Has anyone successfully implemented a one to one messaging strategy (not one to many), which can still message between non-connected peers - (Directed Routing) or solved this problem successfully?

I am considering various workarounds, but I am quite perplexed that these NetGroup methods: sendToNearest, sendToNeighbour & sendToAllNeighbours just seem to fail, for no apparent reason.

View 2 Replies

Media Server :: How To Know Disconnected Peer ID

May 6, 2011

I am developing a simple text chat application with fms4, for this application, i am using adobe stratus service for developing this application and i just want to know about disconnected peerID.

View 1 Replies

Flex :: Exchange User Names And Peer IDs Between All Connected Users?

Feb 13, 2012

I'm building a chat using Flex. The problem is how to do that new user get the list off all users online and added to the lists of all users. I try to put this information in DataGrid through dataProvider "callerns"[code]...Exchange user names and peer IDs between all connected users

View 1 Replies

Media Server :: Disable RTMFP Peer Introduction Services On FMDS4?

Oct 23, 2010

I've installed FLASH MEDIA DEVELOPMENT SERVER 4 for testing. I wonder if there is a way to disable Stratus/Cirrus peer introduction services included in this version of FMS, because I need to simulate Flash Media Interactive Server 4 (not the Enterprise version) to adjust my application properly for cheaper solution.I am using NetStream.DIRECT_CONNECTIONS and I want to test, what are the differences of usage and how to do it right, even implement a fallback, when no peer introduction services are working on the server.

View 5 Replies

Media Server :: About Peer - Assisted Network NetStream.MulticastStream.Reset

Dec 1, 2011

I am developing a video system using the peer-assisted networking of FMS. but when I have published video successed, I can't receive the video at some endpoint.

[Code]....

View 2 Replies

Media Server :: Errors When Attempting To Use BitmapData.draw() On A Peer-enabled Stream?

Sep 17, 2010

When attempting to take a screen capture using BitmapData.draw() on a Canvas containing a Video Component of an incoming stream, here is the error I encounter:

http://rd05.scs.mysite.com/samples/applications/LiveVideo/LiveVideord0 5.swf
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: http://rd05.scs.mysite.com/samples/applications/PeerVideo/PeerVideord0 5.swf cannot access

[code]....

View 3 Replies

Flash :: Playing FLV Files On Local Share Drive From Intranet Site?

Jul 1, 2010

We would like to build a flash video player into our corporate intranet site, currently we are evaluating JW Player and have come across and issue accessing the FLV files stored on a mirrored share drive that all users have access to on the local intranet.From what I can tell the Adobe flash plugin will not allow a SWF file hosted 'online' (intranet) to access a shared directory that the user has access to. Is there any way around this?

View 1 Replies

Professional :: Location To Upload And Share SWF Files?

Aug 2, 2010

Is there a location to upload .SWF files to share similar to what youtube does for videos?

View 4 Replies

Actionscript 3 :: Share Graphics Between Multiple .swf Files?

Sep 19, 2010

In Flash CS5 it seems like there's an option to import .swc files into the library, but as an RSL (runtime shared library).

What's the difference between this option (swc) and using a runtime shared library .swf file?

Also, if you select a .swc file, and choose the "info" ("i") icon, there seems to be several options for .swc..."merged into code", "external", "runtime shared library":

View 2 Replies

ActionScript 3.0 :: Share External Class Files With Multiple SWFs?

Sep 9, 2010

Is there a way to share common .as files with multiple swfs?

View 5 Replies

Actionscript 3 :: Share TextArea Component In Multiple SWF - Runtime Share Library?

Jan 12, 2011

How to share TextArea Component in multiple swfsaylib.swf (has TextArea Componenet)main.swf (Import TextArea Componenet from lib.swf)section.swf (Import TextArea Componenet from lib.swf)

View 1 Replies

Flash :: Create A Share Button In AS3?

Mar 24, 2010

creating an AS3 Facebook share button? I need to be able to customize the title, description and picture.

View 3 Replies

Flash :: AS3 Swf Hosting An Swf Share The Same Array?

May 22, 2009

I have an AS2 swf that has an array that is updated when a user clicks on items on the screen. The array stores the currently selected items. This As2 swf is hosted by an AS3 swf loaded in using Loader class and a local connection between them is managed by swfBridge. I want to know what the best way for both AS3 and AS2 swfs to share this array is? or how can I call a function in the AS2 (client) swf and return the array to the AS3 (host) swf when it needs to read the items from the array?

View 1 Replies

ActionScript 3.0 :: Share Flv On Facebook From Within Flash?

Jan 20, 2011

i have something like a flv player in my flash site and i load different flvs depending on user interaction. I want to add a "share on facebook" functionality so the videos will be shared on fb in a way similar to youtube sharing. I've serached a lot but there seems to be a lack of documentation on this subject.

View 0 Replies

ActionScript 2.0 :: Share Data Between Different Flash?

Sep 22, 2004

alright.. recently i needed to share data between different flash .swfs on a homepage.. so i tried to use Shared Objects to do so. sofar its fine.. i tried it .. and as long as the data is stored on my harddisk. the sharedObject "cookies" work fine.. but when i put the site online.. they simply dont work anymore..

could this have something to do with security settings of the browser used?.. doesnt a web browser allow flash to access the harddisk to read and write shared objects.. is there another.. simpler and more reliable way to send data from one .swf file to another..?? (without using php -> my webserver doesnt support this sofar )

View 1 Replies

Flash :: IDE, Duplicated Objects Share Instances?

Jul 30, 2009

I'm using CS3+AS3 and I have a Flash project with a menu, the items in the menu can expand to reveal more items and this is currently done by having each state of the menu in a separate frame, and then doing "gotoAndStop" in this movieclip when buttons are pressed.Perhaps not the best solution, but works very well for this purpose, but as you can imagine, this means that the "same buttons" in "different frames" will do the same thing.All frames were constructed by duplicating the first frame, then moving the buttons around and adding more buttons where needed. So now I set instance names to the buttons in frame #1 and added event-listeners. But when I tested the project, the buttons that had event-listeners in frame #1 also had them in all the other frames. Now this could be an awesome feature, but right now it's more of a huge mystery to me.

ance names in frame #2, but yet they share the same instance. I searched all over the IDE but I could not find any functionality to actually determine what instances are linked, how to link instances or unlink instances. But I do know that two objects share instances when you duplicate them.So my question is, is there no functionality in the Flash IDE to actually make more efficient use of this?

View 1 Replies

Flash :: Share Same NetConnection Object Between Two Views?

Jun 11, 2011

Flex Mobile applications are view based. And I'm using Adobe Cirrus (im assuming its the same for any FMS netConnection) Does anyone know how to maintain a persistent netConnection between views in a flex Mobile Application?[code]I want to be able to trace(netConnection.nearID) on this view, go to another view and trace(netConnection.nearID) and get the same result. and be able to have a cirrusStatusHandler() function like I have a above to listen for cirrus events. Then be able to do netConnection.close() on another view if i wanted to to be able to close the connection.

Brainstorming Ideas what I was thinking I could do:I was thinking I could maybe set up the connection on the main ViewNavigatorApplication mxml file, but i have so much going on and being triggered based on netConnection status events it seems it might be really complicated to handle everything from that mxml file on each of the views. Maybe I could declare the netCon vars in the ViewNavigatorApplication mxml file, and just add event listeners to those vars on each view? But i'm not familiar with accessing vars that exist in the mainViewNavigatorApplication mxml file.I just need to be able to make the connection once, and then it stays persistent until I call netConnection.close()I guess I could use separate views where I dont need the netConnection and just have this particular view use "states" inside the view where the netCon needs to be persistent. It just seems silly be be using states since this is a view based application.[code]and the same in my Home View but i'm getting a null error when i try and call trace(netConnection.nearID) in the crationComplete function on profileView (which is after homeView) to see if it still has the same netConnection and should then be able to get the same nearID

View 4 Replies

Share Flash Screen (multiuser Whiteboard)

Aug 8, 2011

How can I make a Flash Application that can be shared? Shared in the sense of like a paint box. If someone is painting there then the painting must be shown to all users. This means each user can write and edit in the paint box at the same time..

View 1 Replies

Flash :: Share Classes Between Parent And Child SWF?

Aug 13, 2011

So i have a situation where i want to pass a object of a class say 'MyBigAwesomeClass' from a child to a parent. I import the class definition into both the parent and child. Now, if i load the child swf from a location that is relative to the location of the parent , all is fine, however the moment i load it using a full absolute path, it treats the definitions for 'BigAwesomeClass' in parent and in child as different and does not allow an object of the type 'BigAwesomeClass' to be assigned to an object of the same in the parent class.I am totally stumped, and have banged my head over ApplicationDomains, including using this code

loader.contentLoaderInfo.addEventListener(Event.COMPLETE,swfLoaded);
var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
loader.load(new URLRequest(_file.url),context);

[code].....

View 4 Replies

ActionScript 3.0 :: Opening Facebook Share In A Div Above Flash?

Aug 3, 2009

how to open the Facebook Share page above my flash content inside of a div.

Here is the JS I would use to open it in a new window:

function facebook_share() {
u="http://thepageiwanttoshare.com";
t="pagetitle";

[Code].....

I then call this JS code from flash with ExternalInterface.

This code will basically open the facebook share page in a new window 626x436 with no toolbar etc.

This works perfectly, but I want to take this functionality and instead load that content into a specific div, which I guess I can then place above my Flash (using the z-index of the div and the wmode transparent param on the flash embed statement).

This doesn't seem like it would be too difficult, but I have never done something quite like this before. I heard that Adobe AIR actually has a Window class that can be used like an html window within flash, but unfortunately I am using AS3/Flex SDK.

View 0 Replies

ActionScript 2.0 :: Facebook Share Buttons Within Flash?

Sep 16, 2010

Anyone have experience with this? I'm not much of a javascript person. This would be the code you could use on an html page.

I fugure you somehow have to have flash read the js file from fbook and then pass the share_url variable to it?

[Code]...

View 3 Replies

ActionScript 3.0 :: Add A Facebook Share Button To Flash Ad?

Aug 10, 2011

I need to add a facebook share button to a flash ad.

View 1 Replies

Actionscript 3.0 :: Have Facebook Share Function In Flash?

Jan 19, 2010

I'm currently doing a project that have a share button that linked to different social networking site.

I search the net, All i have to do is load

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved