PDA

View Full Version : communicate between two separate .swf files



thapanther
May 23rd, 2003, 10:53 PM
hi ..(long time)..
i'm workin on a site now .. and what i would like yo know is how / if i can communicate between two separate .swf files..
what i want to do is this : i have a soundplayer.. and when i go to a defrente html page (that changes only in the iframe , menu is in another iframe) i want the sound player to play another song!
so i need somewhere to put a variable and let the sounplayer read that variable so he knows what song he needs to play (this is what i thought , could be a solution) .. is this posible?
thanks !

Voetsjoeba
May 24th, 2003, 01:35 AM
It sure is. Declare a variable in _root, and make your sound player look if that has changed. ( when a movie is loaded into another one, they share the same root )

See this thread for more information (scroll down a bit): thread (http://www.kirupaforum.com/forums/showthread.php?s=&threadid=22412)

thapanther
May 25th, 2003, 05:33 PM
thanks , but htat one i knew ..
maybe i did explain it right,,, let me try again..
i have , a html page with links to e.g. rap.., and i have soundplayer.swf wich plays songs (this on is in an iframe and is there all the time , it doesn't get reloaded or something!) .
what i want to do is when i click on rap, i want it to stop playing whateverit is playing , and start playing a rap beat !!
i saw a tutorial on avtionscript.org ,, bt it's in php, but since i have a free acount at brinkster i can only work with asp !! anyone ???

ahmed
May 25th, 2003, 05:35 PM
you can use the LocalConnection class to do such things..

http://www.macromedia.com/support/flash/ts/documents/localconnection.htm :)

thapanther
May 25th, 2003, 09:03 PM
hey thanks, that's just what i needed !! ...