It's tweens.
I stumbled onto something that has the same idea, but it works off external mc's I need internal mc's
Code for button:
Code:
on(release) {
if (_root.currMovie == undefined) {
_root.currMovie = "mc01";
_parent.container.loadMovie("mc01.swf");
} else if (currMovie != "mc01") {
if (_parent.container._currentframe >= _parent.container.midframe) {
_root.currMovie = "mc01";
_parent.container.play();
}
}
}
Code in the swf file:
First frame
Mid frame is a stop command
Last frame:
Code:
_parent.container.loadMovie(_root.currMovie+".swf")
This last line I can see being a problem becuase of the ".swf" extension, can that just be removed? so it ends with currMovie?
I have not tried replacing loadMovie with a gotoAndPlay command and the swf file with an mc name from an internal mc. Do you see anything in here that might pose a problem if it was internal?
Bookmarks