all groups > flash (macromedia) > may 2007 >
You're in the

flash (macromedia)

group:

Simple goto command


Simple goto command Sylvain & Jen
5/27/2007 8:06:35 PM
flash (macromedia):
Hi there

I have a movie clip on frame 65 and I want it to play and then goto frame 66

I forgot the command

Re: Simple goto command kglad
5/27/2007 10:48:25 PM
on the last frame of you movieclip you can use:



Re: Simple goto command Sylvain & Jen
5/27/2007 11:15:23 PM
ok not working

on frame 65 I have a movie clip inside. and I want to be able to play the small
clip (20 frames) and when it's finished I want it to go at frame 66 and stop

I tryed that one and it's not working
Re: Simple goto command kglad
5/27/2007 11:26:28 PM
Re: Simple goto command Sylvain & Jen
5/27/2007 11:59:20 PM
frame 65 (movie clip) if you double click it you go inside the movie clip of 20
pframes) I have a button that I click that goes to frame 65 (movie clip)
(Convert to Symbol --> Movie clip) then I want it to play then I want it to
stop at frame 66 that''s it...
Re: Simple goto command kglad
5/28/2007 12:00:00 AM
Re: Simple goto command Tiemen Rapati
5/28/2007 12:00:00 AM
Ok, so you have the main timeline stopped on frame 65, where there is a
Movieclip which has 20 frames. When this movieclip has finished playing you
want the main timeline to advance to frame 66 and stop.

Adding the code kglad gave you should do the trick, if you add this to the
20th frame of the Movieclip. Don't forget the .this._parent
Re: Simple goto command Sylvain & Jen
5/28/2007 1:50:57 PM
nope not working here what I did maybe I am not explaining right

On frame 65 I created a movie clip inside frame 65 for which it plays like
about 25 frame ok?
I then dragged the movie clip from the library and put it on frame 65.. then I
want a script to be able to play the script and stop and proceed to frame 66

I tried that thing he gave me but he it's not working it goes thru the frame
till the end it's like it's fast forwarding
Re: Simple goto command kglad
5/29/2007 1:04:59 AM
where'd the onClipEvent(load) come from? that's not the code i gave. remove that.

Re: Simple goto command Sylvain & Jen
5/29/2007 11:51:28 PM
ok I put that thing u gave me and my clip just plays and stops at the end of the clip. it doesn't go and stop at frame 66

what am I doing wrong?

Re: Simple goto command kglad
5/30/2007 1:45:32 PM
Re: Simple goto command KrahnikBoi
6/1/2007 2:07:06 PM
This sounds simple enough. I'm slightly lost in the dialogue here though.
Seems to be missing parts.

Here's what you should do:

Main Timeline (should also work with a movieclip timeline that holds an
additional movieclip):
put a stop(); in frame 65 of the actions layer.
put a play(); in frame 66 of the actions layer.

Second step not always necessary, but I find it helps more often that not.
It's better to know that the timeline will play than to just hope so.

MovieClip timeline.
On the last frame add a stop();
If you want the previous clip to begin playing immediately, add to this last
frame in the actions layer
this._parent.gotoAndPlay(66);

If you want it to be triggered by a button, put this script on the button
on(release){
this._parent.gotoAndPlay(66);
}

If you are using a movieClip as though it were a button, put this script on
the movieclip:
on(release){
this._parent._parent.gotoAndPlay(66);
}

That should do it.

--KB

AddThis Social Bookmark Button