I have an empty 'container' MC that has a MovieClip load into it when a
button is pressed.....when another button is pressed, it should play the
fade out tween of the current loaded MovieClip, remove it and then load the
new MovieClip into the container.
I am so close and I've tried all different ways that i can think of to get
it to work. The closest I have got is to do nearly what i want, only the new
movieclip loads and starts playing over the top of the existing movieclip as
it plays its fade out tween, which obviously doesn't look very nice.
Here is the current script I have on a button:
on (release) {
_root.container.cont.gotoAndPlay ("outro"); //"outro" is my fade out
tween//
_root.container.profb.gotoAndPlay ("outro");
_root.container.profc.gotoAndPlay ("outro");
_root.container.car.gotoAndPlay ("outro");
if (done=true) { //done=true is set at the end of the 'outro' sequence,
but does not have any effect at present//
_root.container.cont.unloadMovie ();
_root.container.profb.unloadMovie ();
_root.container.profc.unloadMovie ();
_root.container.car.unloadMovie ();
_root.container.attachMovie ("prof1", "profa", 1); //this loads the new
movieclip that is relevent to the pressed button //
}
}
PLEASE NOTE: all my movieclips are in the same flash file and are not
externally loaded swf's
If anyone has an idea of what i'm trying to do and can help, then i would be
most grateful....further info available if needed.
Regards
Chris W
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.587 / Virus Database: 371 - Release Date: 12/02/04