all groups > macromedia flash sitedesign > april 2006 >
You're in the

macromedia flash sitedesign

group:

play and skip problem ?


Re: play and skip problem ? Rob Dillon * ACE*
4/6/2006 10:58:38 AM
macromedia flash sitedesign:
You can place a gotoAndPlay() or movieClipName.play() method in the last
frame of the movieClip that you play, or, you can monitor the clip's
play and when its finished, execute the gotoAndPlay() or
movieClipName.play() method then. That sort of function might look
something like this:

buttonClip.onRelease = function() {
movieClip.play();
movieClip.onEnterFrame = function() {
if(movieClip._currentframe >= movieClip._totalframes) {
gotoAndPlay(newLocationOnTimeline);

// or
// movieClipName.play();
delete movieClip.onEnterFrame;
}
}
}

--
Rob
_______
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
412-243-9119

play and skip problem ? Kaneon
4/6/2006 2:24:20 PM
Hi there ,

I am building a flash website atm. What I wanna do is: on mouse release = play
the animation
and once it has come to the last frame of the animation make the playhead skip
to a different frame.
Can anyone help me plz?


Re: play and skip problem ? Kaneon
4/6/2006 3:17:28 PM
Thanks for your help Rob,

AddThis Social Bookmark Button