View Full Version : javascript talking to flash and vica versa
tyler jones
10-07-2002, 04:16 PM
Does anyone know if it's possible in javascript to call the stop() actionscript in a flash movie? I have a flash file in an iframe of a page. So, I'm wondering how I can reference the movie? I've called java applet functions from javascript before and that was pretty straightforward, but it doesn't seem to work the same way in flash. Thanks.
nevub
10-08-2002, 01:03 AM
Here is the call that would stop a flash movie with an id attribute set to "flashID" in an iframe with an id set to "iframeID".
document.iframeID.flashID.StopPlay();
Here is a technote from Macromedia talking about the limitation of JavaScript communication with Flash and all the commands supported.
http://www.macromedia.com/support/flash/ts/documents/tn4160.html
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.