PDA

View Full Version : comm between 2 swf's......?


ravi.tandon
12-22-2001, 07:34 AM
is there any ways through which, we can communicate between two independent shockwaves. to be more precise, how do i target a particular movie clip or a frame on the main timeline or any scene, from one shockwave to another.

ravi tandon

jimburton
12-22-2001, 10:27 AM
You need to use javascript to do this - to send commands from movie1 use fscommand() or getURL("javascript: etc") - to receive commands in movie2 there a number of built in javascript methods that can address embedded swfs providing you've used the name/id attributes and turned on swliveconnect in Netscape...good technote about this here - http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/

ravi.tandon
12-22-2001, 12:29 PM
Originally posted by jimburton
You need to use javascript to do this - to send commands from movie1 use fscommand() or getURL("javascript: etc") - to receive commands in movie2 there a number of built in javascript methods that can address embedded swfs providing you've used the name/id attributes and turned on swliveconnect in Netscape...good technote about this here - http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/

thanks a lot, jim. but what i understand from this is that, is this happen to be the only solution to comm between two swf's. or it happens to be one of the recommended solution. also whether the "name/id attributes", are like what we have the default for FS Command, i.e exec, fullscreen, allowscale. are these "id aatributes" are considered to be the add -ons to the above.

i'd be glad, if you can send me some example, covering the above scope. if yes, then please send in.

i'll be thankful to you,
ravi tandon

jimburton
12-22-2001, 09:03 PM
Ravi,
in response, I think javascript & vbscript are the only ways to transmit instructions from swf to another, as that has to be in a browser on the client side...

the simplest thing to say is that everything you need to know is at - http://www.actionscript.org/tutorials/intermediate/FS_Command_JavaScript_Library/index.shtml

:)