PDA

View Full Version : Javascript/Flash compatibility?


apodixis
07-22-2004, 10:17 PM
Okay, what we’re trying to accomplish is to control a specific movieclip within a Flash file using javascript. First off, is that possible? We’ve had no luck finding any information on this. It seems anything we’ve found on the subject of Flash/JS interaction has only been controlling the action on the _root timeline.

We have a parent window that houses the .swf file. From that .swf you have an option to launch a popup window that has an embedded Windows Media file. Due to processor limitations we had to Stop ( ) a MC animation in the parent window while the WMV file was playing, or else the video lagged. So, in order for the user to restart the MC animation w/in the .swf file they would have to click an invisible button that just has a simple Play ( ) action assigned to it. All of that works nicely. But what we’d also like to do is put some JS on the “Close Window” button (that I created in the popup window) to communicate with that same MC in Flash to tell it to Play ( ) again when the window is closed…basically just sparing the user from having to manually click the invisible button. Also, alternatively, we would like to have the invisible button in the Flash file close the popup window if the user tries to restart the MC animation before closing the popup window first.

Is any of this possible? ...Thanks for the help!

tg
07-22-2004, 10:31 PM
http://www.actionscript.org/forums/showthread.php3?t=42601&highlight=Javascript+Flash+Communication