localconnection

Multiple local connections in flash - what's the better architecture?

I'm using localConnection in AS3 to allow several flash applications to interact with a central application. (Some are AS2, some AS3). The central application must use a seperate localConnection variable for each receiving connection (otherwise the second app that tries to connect will be rejected). But what about sending messages back...

What might cause connection errors when using bidirectional localConnection in Flash?

I'm trying to setup a bidirectional localConnection (LC) between two flash objects on the same web page. One object is AS2 and the other AS3. I'm using one LC object to send and receive data on each swf. (This shouldn't matter, right? I tried using two objects, one for sending and one for receiving, but got the same problem). They .c...

Actionscript Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: 127.0.0.1 cannot access

When running flash components that use localConnection within an HTML container, I get the following error in a popup box (flash player is the debug version): Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: 127.0.0.1 cannot access ...

How do I call a function in an AS2 swf hosted by an AS3 swf and return an array back to AS3 swf? (using SwfBridge)

I have a Flash CS4 AS3 swf (host) that loads a Flash 8 AS2 swf (client) using gSkinner's swfBridge. This works great and the Host can call functions in the client no problem. However I want to be able to call a function in the client and have that function return an array to the host. This is the code I thought would work - Host (AS3...

How can an AS3 swf hosting an AS2 swf share the same array?

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 ...

What is the best way to handle refreshing a localConnection between AS3 and AS2 swfs using SWFBridge? (load, unload, load again)

I have an AS2 swf that is hosted by an AS3 swf and they connect using SWFBridge. During the course of things i need to unload the AS2 swf and reload it. Therefore I assume I need to re-establish the SWFBridge connection. But when I try to reopen the connection it doesnt appear to work. Heres what I have - AS3 Code: var myBridge:SWFBri...

LocalConnection and iframes

I'm trying get LocalConnection to work between two swf's placed within two different IFRAMES. I've worked with LocalConnection often without too much trouble. But this time --i suspect because of the iframes--i can't get it to work. Anybody experience the same? ...

Are there wrappers for the Actionscripts's LocalConnection for C# or Java?

Hi, I want to communicate with the LocalConnection framework of Flash via C#/Java/C++. My search for already implemented wrappers was not as successfull as I wish ;). There exist several servers (like FluorineFx) which support binding of C# objects to the LocalConnection. The problem is I am not looking for a server but only for a simpl...

Monitor browser tabs with localConnection and sense when a user closes a tab.

In my application the browser window connect with long polling(comet) with the server. If the user open several browser tabs, only one of them(called the master) communicate with the server and serves as a proxy for the other tabs. I want to use flash localConnection to exchange data between the tabs. What happens when a user closes the...

Java LocalConnection Client

I'd like to connect a Flash Player instance (AMF3) to a Java LocalConnection. I know how to implement the AMF3 spec, since I've done a lot of work with Red5, but I'm unsure how to navigate building the actual LocalConnection interface. There is C code provided here, but I can't speak C to save my life. Does anyone know of a Java implemen...

Does localConnection in flash player randomly fail sometimes?

I have two flash movies communicating with each other using localConnection, passing an object from swfA to swfB. This seems to work fine, but will occasional fail. The only information we have is that the status event is fired with a level of error, there is no other information. Once a connection has failed it will continue to do so...

Why is my swf causing the Flash Player to crash.

I've got a flex-based swf, which is loading an AS 2-based swf and then, negotiating further activity via a LocalConnection. From time to time, the AS 2-swf can request that the flex-based swf load a movie. I've arranged this via on(release){} functions. The AS 2-swf, I'm making in Swish Max. In Swish, when i set the on (release) on a ...

Strategy for making LocalConnection ids unique

I'm using a localconnection to allow communication between an actionscript 2 swf and an actionscript 3 swf. Localconnection objects share a global namespace across a user's pc. So, this means, a user can fire up my flash app in one browser, and submit commands, back and forth, which is what i want. But the user can also fire up another ...

Flash Player 10,0,32,18 upgrade breaks my LocalConnections. Any ideas?

For some reason everyone who upgrades their Flash Player to the latest version (10,0,32,18) immediately start having problems with my application. According to my logging, LocalConnection.connect() is failing. The only documented reason for this is that another SWF running on the machine is using that name. However, I know nothing els...

LocalConnection between different instances of the same SWF?

Hi, I'm building a simple audio player in AS3. I would like to embed multiple instance of this audio player in my html and when one's playing, others are paused. Is it possible to use LocalConnection to communicate between different instance of the same swf? From what I could test, once the connection is made with one instance, the othe...

How do LocalConnections in AS3 communicate?

I'm about to start using LocalConnections in a couple SWF's to let them talk to each other. But before I head down this road, I need to make sure it's not going to cause any popups and confirmation dialogs to appear from the system. If I use a local socket server, that causes the Windows firewall and many others to flag it and require c...

Avoiding LocalConnection's 40k size limit when data object may be larger than 40k

Flash's LocalConnection mechanism has a 40k size limit on individual messages passed to send(). I'm running into a situation where I have a complex object that I need to send which may end up being too large. I can break up the object into multiple smaller ones, but I want to do so in an efficient way. It's possible that I could end u...

Flash, LocalConnection and DOM

I have a Flash object on my site, which has this code: this.ld = new LocalConnection(); this.ld.allowDomain("*"); ExternalInterface.call("alert", this.ld.domain); It alerts my domain successfully. However, what I want is to access the HTML DOM through this using LocalConnection and not ExternalInterface directly. Any ideas? ...

LocalConnection working in local browser but NOT in remote site

Really puzzled by the flaky behavior of LocalConnection. Using a debug utility(LuminicBox) that uses localConnection to work. When the page containing the swf is loaded in a browser locally , localConnection works. When the identical page and swf are viewed 'live' on a remote site, localConnection fails. Anyone encounter this?? ...

(as3) Sync data between 3 or more identical flash objects on the same page

Ok, i have asked something similar before, but never go to the solution i need. So am starting a new stack to not confuse my issues, and to make a little clearer. What i need to do I have multiple flash objects on a html page, they are all identical, and all of them need to be sync'd with the correct time. In its current state, each on...