I have a relatively simple localConnection between three swfs: one swf is an image gallery; another swf controls the playback of the image gallery; and the third displays xml-driven captions from the image gallery.Everything works flawlessly in a PC environment, on all browsers, using AS 2, flash player 9. But when I test in a mac environment, the captions will display on load, but it will no longer show if you refresh the page; only a cache clear and refresh will bring it back, but the same issue will happen again. The navigation doesn't work at all, ever (though the swf is loaded and visible).
The first one (FLEX application) sends a message on a dedicated LocalConnection to a second one (Flash application). The Flash then answers by sending a message on another dedicated LocalConnection. This message is not directly received by the FLEX and the delay is at least 30s, up to 1 or 2 minutes! It seems the issue only occurs with Flash Player >= 10 and it never occurs with Chrome.
I didn't find anything on the web concerning a similar issue nor something in Flash Player release notes. Did someone already have this kind of problem?
By the way, is there any tool that can be used to sniffer LocalConnection communications?
Additional information:
swf are located in different frames swf are embed with swfobject I tried to delay the Flash sending, I tried to create another LocalConnection dedicated to this call but I always had same result: for all calls, the FLEX method is called after the same delay. I also put a timer in FLEX to periodically log to see if there is no background process delaying the method processing but everything seems fine
I inherited a flash website about a year ago.. not sure what version it was originally done in. I've made changes on the model last year using CS3 Flash Action script 2, but don't remember the flash version when published. The audio in question is the music that plays in the background when you get on the website:
[URL]
When I changed the image of the model this last week using CS4, I published it as Flash8 actionscript 2... now, the music plays on Mac Safari and Mac Firefox, but not on the Windows versions of IE or Firefox..
this is the code called sound control
onClipEvent(load) { _root.soundstatus="on"; _root.mySound = new Sound(_level0);
[Code]....
then there's the stop() that's used when the music is toggled off..
I've tried updating the flash player in Windows to the latest release, and I even tried republishing as flash 10, just not sure where to troubleshoot this..
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.
I'm having a little issue with LocalConnection - trying to communicate from one SWF to another. From my main SWF I've loaded an external SWF of same dimensions ( effectively replacing the main SWF). What I wanted was then to re-load the main SWF, but rather than have the main SWF play from the start, I wanted to go to a specific frame instead (I used a frame label called "myMarker"). Thought LocalConnection was the way to go to achieve this. Gave it a shot and it all works well locally BUT when uploaded to server it doesn't work, but throws the following error:-
limits to number of SWFs that can establish local connection on MAC? The architecture is: One Manager ("server") and N number of other SWFs that communicate with the manager.When I embed more than 8 SWFs (manager + more than 7 dependents) and attempt to establish connection between them - only first 7 dependent swfs are capable to communicate with the manager on MAC (both Safary and FF). The rest are ignored. It doesn't seem to be an issue on PC where I went up to 20 and it worked (with some quirks of course). Is it a native behavior on MAC?
I did not check if number of connections is at stake (as opposed to number of swfs). There are 14 connections all together when 7 dependents are involved.
I'm having huge bug issues with LocalConnection that nobody seems to be able to find errors in my code/files. So... I'm looking for an alternative. I need a main swf file to load an external swf including the ability to have it move from one frame to another. If this isn't a possibility, I can also just have the main swf hide/reveal a div or just an image in the html.
i use LocalConnection between two swf in the same page.What i'm trying to do is to use a String sent from one swf to the other, as variable into my URLRequest...So i can trace "myVar" into the function chemin, but i didn't find how to use it into URLRequest
swf that receive the var :
var lc:LocalConnection=new LocalConnection(); lc.client=this; lc.connect("callBig");[code]....
I need dozens of AS2 Flash swfs I wrote to communicate with an AS3 swf. My code below is on the "wrapper" AS3 swf, which loads the lesson1_activity3.swf AS2 swf. This is then further nested into an Adobe Captivate-generated swf (that's what the rdcmndNextSlide method is for).
This configuration works the first time you see the wrapper/child swf together, but if you navigate back to the slide, the child swf doesn't load. I'm guessing that Captivate has all the objects still stored in memory, so it thinks I'm trying to declare var again, which I can't do. Is that it? Does anyone see the issue with my code that would make it work the first time the wrapper is loaded, but not subsequent times?
ere's what i'm doing and it doesn't seem to work, 1st movie, a button:
[AS] on (press) { function () {myLocalConnection = new LocalConnection(); myLocalConnection.send("Incoming", "onRecieve", MyID); myLocalConnection.close();}; [/AS]
where MyID is some variable
2nd movie, 1st frame:
[AS] myLocalConnection = new LocalConnection(); myLocalConnection.onRecieve = function(theID){ _root.test.gotoAndPlay(theID);}[code]...
now that doesn't work so i'm wondering what is wrong...
i've got 2 different .swf files on a html page, with 1 of e .swf being e menu and the other being the content_mc. I've been researching on localconnection but did not manage to find out how i could get e menu to send command to the content_mc to load the respective content upon being clicked (for example, when user click "services" in the menu, content_mc.swf will automatically be updated with the services content.
I have had some success using LocalConnection between SWFs.I can have a connection function between a preloader SWF and its child, and another connection work between two SWFs present on the same webpage......most of the time.
If I run my SWFs in a webpage from my localhost (ie my local testing PC) a particular LocalConnection will fail about 50% of the time. If the same SWFs are run on a remote server (ie the inernet) the LocalConnection works 100% of the time.SWF 'A' is sending to SWF 'B'Bizarrely, the LocalConnection going the other way, from SWF 'B' to SWF 'A' works 100%.
All the other LocalConnections I have used all work 100% of the time.I have tried adding a listener to the eventStatus which reports when the connection fails.I have also tried allowDomain(), although Im not sure it is neccessary since all the SWFs are hosted from the same domain anyway.Why should a LocalConnection behave differently depending on where the SWFs are hosted?
I have two SWFs happily sending messages back and forth to each other. I want to intercept those messages with a third SWF without editing the first two files at all.
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 simple (marshalling of strings is enough) wrapper. After reading the AMF specification that implementing my own wrapper might take some time ;) which leads to my question: Does anybody knows a simple wrapper (C#/Java/C++) for the LocalConnection framework?
I was wondering is it possible to pass an array through the localConnection in flash? My local connects connect my flash application with the javascript and passes variables between them.
'm having trouble getting more than 1 swf to recieve a message from another swf file using localConnection() I have 2 instances of the same swf file loaded into different divs under different div ID's on a web page. I was then trying to get a different swf file, using localConnection to send a true/false command (determined via button rollover) to the other 2 swf instances, which would then simultaneously react to the message sent.However, at the moment, the first instance of the swf to be loaded into the web page is the only one that reacts the localConnection message being sent.
I have the following scenario: one swf has a series of buttons that send play commands to 10 other swfs in the same html page (no frames). After some googling I found out swf to swf communication is done via LocalConnection. ( [URL]
a) every example I found is passing text strings from one swf to the other (what is written in the form field in transmitter swf 1 is echoed at receiver swf 2. I don't want to pass text, just want transmitter swf 1 send a play action to receiver swf2 that is waiting stuck at a stop action. What is the syntax for this?
b) all examples also have one swf sending to only one other. how do I differentiate which one of my 10 receiving swfs actually performs the above play action?
What is curious is that it works properly for HTTP, so at a basic level all the things that are necessary to make anything work seem to be in place. I don't believe now that crossdomain.xml is an issue because 1) it worked fine without one with HTTP and 2) from tailing policyfiles.txt, calls are never made to the xml file in either scenario. The wrapper html file allows networking.
The error received is SecurityError: Error #2000: No active security context.
Given that it works in HTTP, should this be as simple as adding the following:
receiverLC.allowInsecureDomain("localhost");
where receiverLC is the localConnection object in the swf, to make this work for HTTPS?
Is there a way I can pass complex objects like sprites or timers through LocalConnection? It seems like you can naively pass simple objects like String, Number, Array thru the LocalConnection. But I can't seem to send other data types.I read that you have to use the method "registerClassAlias()" within the receiving SWF file before that SWF file can accept complex objects. For example, when I attempt to send instances of Sprites or Timers, I get the following error:
"Error #2044: Unhandled AsyncErrorEvent:.text=Error #2095:flash.net.LocalConnection was unable to invoke callback sendState.error=TypeError: Error #1034: Type Coercion failed: cannot convert Object@b9210b1 to flash.utils.Timer."
How can I send complex data types or are some data types not send-able?
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 browser, and all commands sent to my application will be handled by the first application if its still loaded in the first browser.When I make the LocalConnection, I specify an id, but the id must be known to the actionscript 2 swfs, and therein I find a problem. I don't know how to let the actionscript 2 swfs know what the unique id is.
The following code, which is pretty straight out of any Adobe example works fine on Flash 10, but when run in Flash 9, the sending connections onStatus event receives 'error'.
The expected behavior in this example is that the listeningConnection.ready method is invoked on SWF1. A demo of this can be seen on [URL]..
I got my LocalConnection to work, however its not triggering my video correct. Basically im clicking "topbanner_mc" in sender.swf and in receiver.swf it should trigger function "showVideo" - which it does.In function "showVideo" i'm running a NetStream .flv. The .flv never really starts to play. When I click the topbanner, it only plays the sound and shows the first frame for 1sec of the video and stops there.My code:
ActionScript Code: //SENDER.SWF var sender_txt = new LocalConnection();
I am working on somethign at the moment which allows a user to use a local connection to send and receive bitmap data. But I am havign a slight problem. Ok so at the moment I am using code from the bytearray live jpeg encoder to encode bitmap data as jpeg and then send it on to another swf opened at the same time when I click on an mc in the send swf.
So here is my code:
ActionScript Code: // CODE INSIDE OF SENDER var localConnection:LocalConnection = new LocalConnection(); import asfiles.encoding.JPEGEncoder;
[Code].....
But what ends up happening each time is that it seems to draw only the bottom right quadrant of the mc I am targeting. As shown by the screenshot I have provided. When the user clicks the first of the blue buttons it should send the whole bitmap.
I've got a problem with the LocalConnection. I've got 2 swf's and I call one to get a value which then sends it back to the first. It's working, but it seems like the 2nd swf, which is called remote.swf, is sending the value back to the player.swf twice. I've pasted the codes form each swf below. The first is the player.swf which is asking for the value, and the second is from remote.swf which is generating the code:
ActionScript Code: var comPlayLC = new LocalConnection(); comPlayLC.send("rpLC", "received"); comPlayLC2 = new LocalConnection(); comPlayLC2.received = function(val) { info = val.split("|"); [Code] .....