View Full Version : Replaying a mc
coolguy13
October 22nd, 2002, 05:10 AM
Hi
I have a mc inside a frame on the main time line. a button on the main time line. i want to play the movie each time the button is clicked.
another situation is i hv loaded a movie using loadMovie command. i want to play it again. currently i m using unloadMovie & loadMovie in succession. is there any other way of doing it...
please help!!!
thx!!!
eki
October 22nd, 2002, 09:50 AM
Originally posted by coolguy13
I have a mc inside a frame on the main time line. a button on the main time line. i want to play the movie each time the button is clicked.
Assuming ur mc is called 'myMc' and it's stoped in the first frame put this code on the butt:
on (release){
myMc.gotoAndPlay(2);
}
Originally posted by coolguy13
another situation is i hv loaded a movie using loadMovie command. i want to play it again. currently i m using unloadMovie & loadMovie in succession. is there any other way of doing it...
Assuming (again) u r loading the movie into a container called 'container', it's stoped in the first frame and u want to play it again from a butt, put this code on the butt:
on (release){
container.gotoAndPlay(2);
}
Note that u refer to the loaded movie by it's container name
coolguy13
October 23rd, 2002, 11:27 AM
thanks eki!
but the second part is not working. when i load a movie in a target (say mcTgt) it doesn't replay when i click on the replay button. I m using
on (release){
_root.mcTgt.gotoAndPlay(1);
}
can somebody help me
eki
October 23rd, 2002, 12:07 PM
Hi,
Are u stoping the movie in frame1?
If so gotoAndPlay should be(2).(although is best to label the frames in wich case it'd be mcTgt.gotoAndPlay("PLAY"); assuming u label the next frame to the one the movie is stoped in 'PLAY')
Cheers
SHO
coolguy13
October 23rd, 2002, 10:00 PM
No, I m not stopping the movie in frame1. I hv tried with frame label as well but nothing worked. for the time being i m unloading & loadingthe movie again in my replay button. but it doesnt seem to be a good solution. any other way of doing it.
rgds
coolguy
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.