Skip to main content
July 30, 2006
Answered

proplem with LocalConnection() timing

Hi there,
I am doing and hybrid site, i have 2 movie in an htm page, one is the navigation and other will have images , i have use LocalConnection()
to let the other movie tell the navigation to go to a certain frame to mark the page is located.
Sometimes it works and sometimes it doesn't.
here is the adress for the Dev site: the test site
only the 2 first buttons of the botom works.
just try to refresh the page and see that the navigation status don't fuction.
If you are luky you'll see it work on loading url.

here is the url for the navigation check the last tree buttons (without link yet) the url of swf

After running some test i realice that when i empty cache it works but thats it.
I beleive it is to do with the fact that the image SWF loads first on the page and then the navigation.
And since is the navigation that receives it is not present when receiving.

I would really appreciate some help.
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer
July 31, 2006
Solved it by creating a Empty_Mc and loading another movieClip 15 frames later with the : sending_lc.send("lc_name", "methodToExecute")
It solved the timing problem.

3 replies

kglad
Community Expert
Community Expert
July 30, 2006
use the sharedobject if you want to communicate between two swfs that may not both be in browser windows at the same time.
Translate
July 31, 2006
quote:

Originally posted by: kglad
use the sharedobject if you want to communicate between two swfs that may not both be in browser windows at the same time.


The two swfs ARE both in the same browser at the same time. The movies communicate fine when i publish them from Flash8 but when i load them on the site they work only the first time. Or when i empty browser cache. See from the dev site only the 2 first buttons on the NAv are set to get url.
Could you explain the sharedObject?
Thanks for your reply :-)
Translate
Correct answer
July 31, 2006
Solved it by creating a Empty_Mc and loading another movieClip 15 frames later with the : sending_lc.send("lc_name", "methodToExecute")
It solved the timing problem.
Translate