Recalling the last frame of a movieclip as the current frame.
Ok, I am finally moving over from AS2 to AS3 creating an escape game. As you move from frame to frame on the main timeline, I want some tweened movieclips to stay in there last position (frame) where you left them. For example, you unlock a closed door. The tween animation is the door swinging open and the last frame has a stop(); applied to it. Clicking on the open door takes you to the next frame. Going back through the door brings you back to the previous frame. I would like to show the original door movieclip tween on it's last frame - opened instead of resetting to frame 1. The only reference I have is the AS2 code.
This is placed on the first frame of the tween:
if(_root.mcName_mc_lastFrame){
this.gotoAndStop(_root.mcName_mc_lastFrame);
}
And this is placed on the frame I want to be recalled whenever the player comes back to the room:
_root.mcName_mc_lastFrame=this._currentframe;
Can someone show me the equivalent of this code in AS3? Greatly appreciated!
