Mutliple AS commands, that seem not to work

Whel…
I want to be able to play the timeline back to frame 1 of the same scene, then have the following code executed:

[AS]_root.contents.loadMovie(“welcome.swf”)[/AS]

Im sure you AS gurus can conjure some crazy code to let this happen, all ways i have tried have failed, without me being able to see the problem. Maybe this simply cannot be done.

Either way, help appreciated

Thanks,
Ian

In the first frame:
[AS]
if(looped){
_root.contents.loadMovie(“welcome.swf”);
}
[/AS]

and in the last frame:

[AS]
looped = 1;
gotoAndStop(1); // use gotoAndPlay(1) if u wanna make it loop
[/AS]

SHO

argh sorry, i suck at AS, i’m a designer, not a programmer. Sorry about this.

How would you include that with a piece of code to play timeline backwards, back to frame 1, not just jump straight back to frame one.

In the first frame:
[AS]
this.onEnterFrame = function() {
if (this.looped) {
this.gotoAndStop(this._currentframe-1);
if (_currentframe == 1) {
this.onEnterFrame = undefined;
this.contents.loadMovie(“welcome.swf”);

	}
}

};
[/AS]

and in the last frame:

[AS]
this.looped = 1;
stop();
[/AS]

SHO

superb…

thanks m8

Any time

SHO