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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unloading an external .swf video element loaded with createEmptyMovieC

Status
Not open for further replies.

aamaker

Programmer
Jan 20, 2002
222
US
Im using the following code in my base flash movie (flash MX) and it successfully loads an external .swf video clip.... When that external video element ends I have added action script to 'stop' it when it reaches the end.

Now, What Im intrested in learning how to do but none of my flash books or tutorials make clear, is how in the heck to (upon the completion of the external .swf video) uload or remove it ... all I get is the stopped external movie clip as a black element (the last frame of the video is a black frame)- so it does 'stop' but now what ... what do I do to remove it?

I'll be loading other movies into the same 'holder' if that matters.

heres the load movie function Im using:

Code:
	_root.createEmptyMovieClip("container", 1);
	loadMovie("video/video_test.swf", "container");
	container._x = 611;
	container._y = 61;
 
Do you have access to the loaded movies' .flas? Or do you want to remove the clip from the main movie?
 
yep - its all mine ... I have and maintain all .flas
 
On the last frame of ecah loaded movie, you could thus try...

this.unloadMovie();

Or...

_level0.container.unloadMovie();
 
Very nice.

Question - Im ready to learn and move deeper into actionscript like this ... where is a good resource online to begin learning about these types of controls that are not available or easy to use in 'normal mode' for the actions window of flash mx.

thanks for your help with the problem!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top