Hi
I’m using code in my first frame to position a mov containing 3 sections into the right place. Example of code;
Code:
btn2.onRelease = function() {
var club:Tween = new Tween(movs, “_x”, Regular.easeOut, movs._x, -632, 1, true);
_root.movs.portfolio.gotoAndPlay(“startport”);
};
I then have a portfolio section which has external swfs loading into an empty container and then moving to the second frame. In the external swf I have a back button to get back to the portfolio screen with the following code;
Code:
on (release) {
import mx.transitions.Tween;
import mx.transitions.easing.*;
_root.container.unloadMovie(“port-shimano-carp.swf”);
_root.gotoAndStop(“home”);
var club:Tween = new Tween(movs, “_x”, Regular.easeOut, movs._x, -632, 1, true);
_root.movs.portfolio.gotoAndPlay(“startport”);
}
Which unloads the movie, then goes back to frame 1. And thats it. Rather than then pushing the movie strip to the right position. Am I right in thinking that because its going to the first frame its then not reading the rest of the code?? If so, is there a way round this, and is it possible??
If it helps the files are downloadable from here;
http://www.fullfatdesigns.co.uk/files.zip
I’m still a bit new to actionscript, so any help would be greatly received.
Cheers
Wayne