all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

UnLoadMovie


UnLoadMovie Barney...
11/30/2004 7:27:00 PM
flash actionscript:
I have a keyframe that unloads a movie on level 1(unloadMovieNum(1);) , however
it does seem rather unpleasant to the eye...is it possible extend the action to
give a brief fade out or something?

Many thanks
Re: UnLoadMovie DazFaz
12/1/2004 2:04:06 PM
//try: //Appy to movie you want to unload at some point: onClipEvent (load) {
counter = 100; this._alpha = counter; } onClipEvent (enterFrame) { if
(UnloadMe) { counter--; this._alpha = counter; } if(counter==1){
unloadMovie(this); } } //Then the trigger would be something along the lines
of: //apply to a button somehwere on(press){ myMovieClipToUnload.UnloadMe =
true; } //This creates a fade and right at the end of the fade unloads ifself.
I hope this is of help.
AddThis Social Bookmark Button