Trying to make movie play frame x to frame y then switch to frame Z

Hello,

I was hoping someone could help me out with an issue I’m having. I have my flash on multiple scenes, and would like to play an animation when clicking on the navigation button before switching to a different scene.

I’m halfway to accomplishing this.

Here is what i used


_root.gotoAndPlay("changepage1");
_root.onEnterFrame=function(){
if(this._currentframe=="changepage2"){
gotoAndPlay("Home2",1);
}

}

The above code is on a blank keyframe. Changepage1 is the start of the animation and Changepage2 is the end of the animation.

Upon clicking the navigation button it plays the above scenes.

However it doesn’t change scenes to scene “Home2”.

Thank you in advance for all your replies.