all groups > flash actionscript > july 2007 >
You're in the

flash actionscript

group:

Is this going to be possible??



Is this going to be possible?? kingmonkey
7/7/2007 5:44:35 PM
flash actionscript: 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
Re: Is this going to be possible?? kglad
7/7/2007 5:58:23 PM
Re: Is this going to be possible?? kingmonkey
7/7/2007 6:03:24 PM
Re: Is this going to be possible?? kglad
7/7/2007 6:12:48 PM
Re: Is this going to be possible?? kingmonkey
7/7/2007 6:35:46 PM
Do you mean this bit?

var club:Tween = new Tween(movs, "_x", Regular.easeOut, movs._x, -632, 1,
true);
_root.movs.portfolio.gotoAndPlay("startport");

}

I changed it to;

var club:Tween = new Tween(_root.movs, "_x", Regular.easeOut, _root.movs._x,
-632, 1, true);
_root.movs.portfolio.gotoAndPlay("startport");

}

But with still the same result
Re: Is this going to be possible?? kglad
7/7/2007 7:17:10 PM
Re: Is this going to be possible?? kingmonkey
7/7/2007 7:21:23 PM
Re: Is this going to be possible?? kglad
7/7/2007 7:36:07 PM
i looked and that's too messy to go through carefully. i can see this is a
problem, though:

gotoAndPlay("_root.movs.portfolio.cat-port");

which should probably be:

_root.movs.portfolio.gotoAndPlay("cat-port");
Re: Is this going to be possible?? kingmonkey
7/7/2007 7:55:48 PM
I've changed that bit too, still the same. Thanks for your time...
Re: Is this going to be possible?? kglad
7/7/2007 9:35:58 PM
Re: Is this going to be possible?? kingmonkey
7/8/2007 1:05:31 PM
AddThis Social Bookmark Button