ActionScript 3.0 :: Flash Webpage Open Ruin Swf That Have LocalConnection?
Nov 8, 2010
I've used localConnection to build 3 swfs that communicate with one another. Everything works smoothly until i open another browser tab with any flash website. And those websites were built by me so i know they don't contain any localConnections.
Why is this happening and is there anyway to prevent it?
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 have a flash application that runs on web browsers as well as on desktop with some extra functionality, i use webkit for air with desktop app and i need some alternate of it for web app,
actually i want to render html in flash player and then do some processing on it and allow some operations on it,
Question is how can i open a web page in flash application in browser such that i can do the required operations on it
I have a Flash menu and want the buttons to open jpg's in another swf on my HTML page. I searched for "localConnection", but couldn't find a suitable example. I also heard this is possible with Javascript.
I have an html website that displays still photographs contained in a swf built in flash. I refer in particular to the images in the rectangle window on the right. [URL]As you can see the swf starts with a % preloader. The images are fairly high resolution, 14 in total (each embedded into movie clips and not dynamically loaded)I just wish to know if there is a way of SPEEDING up the time it takes for the swf to load and open in the web page, to aid users with a slower connection.I understand that if my host server is reaonably fast (which I believe it is) then the problem lies with the users connection speed, but IS THERE ANY ADD ON ACCELERATOR or CODING I can apply from my side of things ?
I'm using getURL command to link to several web pages from Flash (actionscript 2) Works fine. Now I need to link to a PDF that is located on the web pages. Tried the getURL with the location of the pdf - no luck. What am I missing?
Let's say we create a button that when clicked should open browser window and go to google.com page. When you run your flash program in Flash Builder (with CTRL + ENTER command) it works just fine, but when you run the swf file alone (mouse double click) the web page won't open.
Here is the code, just paste it into frame 1 and see for yourself (let me know if this problem doesn't occur for you, it might be something with my Flash Builder CS4 settings...)[code]...
I want to make the menu page load in the same window.Right now, if you click on the index page, it will open the menupage in a new window. I know I need to use _self, or _parent. But Icouldn't figure out where to insert it.
I am creating a movie, and need to create alink to open a web page. My movie exists in a folder ("Flash") and I need to move up a level(out of that folder), and into another folder, (HTML) where the page I need to open resides. What would the path name need to be ie: ..HTML/default.html?
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 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.
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 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.
I don't know why it's happening but it is not a security problem (both movies are running on the same domain) and all communication is wrapped in a try..catch.
alternative method for communicating between movies? I've tried using ExternalInterface but it's too slow for the number of updates that are sent.
Assuming I do NOT want to run the sends in series, but in paralell (all at once), as above, and further assuming that one, and only one of the send commands will generate a status event where level='error': ow can I detect which send command produced the status error?
My CS5 flash crashed when I changed the name of the root folder while it was open. Swf is working fine, but .fla file wont open, I get a "Failed to open document" message. This is a disaser because I've lost two days of work. Is there anything that could be done to fix this problem?
1) how do you open a new window if you have thumbnail pics in the flash movie but want the full pic to open up in a new window? Is this Javascript inside flash?
2) How do they do the menu bar here at this site:[URL]
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).
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]....