Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restarting a movie

Status
Not open for further replies.

LeBodge

Programmer
Oct 18, 2002
113
GB
Hi all,

I must being doing something wrong here, but I just can't get it to work (and as always time is running out) so here goes....

In frame 1 of the main movie I've got a stop; and a large movie clip (an imported swf file)

What I want to do is when imported movie clip ends to restart the main movie again from frame 2

All it seems to do is run the imported movie then stop

Any help please!!!

LeBodge.
 
Do you have any control of the imported swf - do you have the original fla? frozenpeas
 
No unfortunatly not, it's an exported movie from swish, it imports into flash with 285 individual keyframes.

LeBodge.
 
Just import the SWiSH swf into a movie clip symbol. Then on the last frame of that MC,
Code:
_root.gotoAndPlay(2);
frozenpeas
 
can you have the imported movie load in a loop between frame 1 and 2 and assign the bytes loaded to a variable then when the variable reaches the max number have the main skip to frame 3?
 
Thanks Frozenpeas,

That got in working, I don't really know why but my

gotoAndPlay("Scene 1", "cont1");

didn't work but your

_root.gotoandplay("cont1");

worked fine

Any ideas?

LeBodge
 
Goto's are sometimes a bit funny... you sometimes have to try a few different things. frozenpeas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top