Groups | Blog | Home
all groups > macromedia flash sitedesign > january 2007 >

macromedia flash sitedesign : Tweening Question


kcellis
1/4/2007 1:39:09 AM
Is it possible to run a movie clip backward smoothly instead of one frame at a
time using
on (press) {
prevFrame ();
}
which requires continual clicking to move the frame backward? I would like
something that would reverse frames continuously with
on (release) {
stop();
}
to end the motion.
I am using Flash 8 and using buttons to control the action.
_AlbertG_
1/4/2007 2:29:08 AM
Well, instead of on(press) you can use a movieClip and use
onClipEvent(enterFrame)

//----------
myClip.onEnterFrame = function(){
this.prevFrame();
}
//---------

Then you'll have to stop it with
//------
myButton.onRelease = function(){
myClip.onEnterFrame = null;
}
AddThis Social Bookmark Button