8/17/2010 10:48:59 AM
Title:
swf talk to another swf
how can i get an swf to talk to another in the same pg?? pleeeaase help
8/17/2010 11:49:00 AM
the simplest way would be to use ExternalInterface in actionscript with javascript to communicate between two flash files . Its like
Flash <--> javascript <--> Flash
The other way around is to use local connection . Using local connection you can communicate directly without using javascript
8/17/2010 11:59:46 AM
thanks. i dont have any reference to local connection in my books... do u have an e.g??
8/17/2010 12:01:29 PM
do u also have an e.g of external intrface with the js ???
8/17/2010 12:03:01 PM
check this example of local connection
http://learn.adobe.com/wiki/display/Flex/Local+Connections
8/17/2010 12:22:28 PM
Local connection is very old in flash.See this localconnection example
http://www.igorcosta.com/flex3/doc/flash/net/LocalConnection.html
for externalInterface you can check this
http://blog.alastairdawson.com/2007/05/11/calling-javascript-from-flex-with-external-interface/
you can google and find many good examples