Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stopping embedded video movie when new button pushed

Status
Not open for further replies.

btish

Programmer
Aug 7, 2001
23
US
Hi, I couldn't really find this answer when I looked.

I've embedded a video(imported quicktime) in one movie clip that plays on the push of a button.

However, when I push another button to load another Movie Clip, the original embedded video still keeps playing and shows over the newly loaded MC.

I'm not sure if this is a unload movie thing I need to do or that I need to load the new movie on a higher layer?

Help please and thanks,
Brandon

Brandon Tisherman
Designer/Web Developer
Web Blends
 
You could make the movie clip holding the video invisible when the other movie clip shows up.

Regards,

cubalibre2.gif
 
I'm not the best actionscripter. Do you have the code(or procedure) to make the mc invisible or is there a good tutorial?

thanks again

Brandon Tisherman
Designer/Web Developer
Web Blends
 
Hard to say without seeing your actual setup. Assuming your movie clip holding the video (or for that matter any movie clip you want to control...) has an instance name (I've used movie_mc) and not just a Library name, you can target it and make it invisible with something like...

_root.movie_mc._visible = false;

This could be on a frame action, before you open up your other movie clip, or inserted in the button's script that does open that other movie clip. You may have to adjust the path, if that video_mc is nested within other movie clips.

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top