hello again! :h:
I have a problem with a site layout with a menu.
I want that once you press on a button it loads the needed movie clip inside a places holder ([COLOR=red]done that[/COLOR]), when you press another button on the menu it makes the previous movie clip play it’s exiting animation and then loads the relevant movie clip inside the place holder.
this is the code of one of the buttons:
on (release) {
this._parent.place_holder.overview1.gotoAndPlay("exit");
if ( this._parent.place_holder.overview1._currentframe("end"))
{
this._parent.place_holder.attachMovie("features_mc", "features1", 1);
}
this.gotoAndStop("features");
}
my problem is when I run the file, it works fine for the first link (which has only the attachMovie method), but when I press the next button (for which the code of is presented above), it plays the first movie’s exiting animation, reaches the “end” frame, but doesn’t load the “features_mc” movie clip.
(on the last frame of the “overview1” movie clip there’s a removeMovieClip command - but from what I’ve tried, it doesn’t matter whether it’s there or not).
I don’t know if it matters, but all the movie clips are supposed to open in the same depth (1).
if I remove the condition, the “overview1” movie clip doesn’t play it’s exiting animation, but it does load the “features_mc”.
anyone can help me? am I doing something completely wrong?
thanks in advance…