Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-22-2004, 10:17 PM   #1
apodixis
Registered User
 
Join Date: Jul 2004
Posts: 11
Question Javascript/Flash compatibility?

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!

Last edited by apodixis; 07-23-2004 at 11:05 PM..
apodixis is offline   Reply With Quote
Old 07-22-2004, 10:31 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default

http://www.actionscript.org/forums/s...+Communication
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:33 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.