Flash next step
- Started
- Last post
- 3 Responses
- yurimon
I got qtvr to work. Does any one have any suggestions on how to make the movie play until you move the mouse?
onClipEvent (enterFrame) { //anticlockwise
framePos = int(_xmouse / 100 * _parent._totalframes);
if (framePos < 0) {
_parent.gotoAndStop(_parent._tot... + ((framePos + 1) % _parent._totalframes));
} else {
_parent.gotoAndStop(1 + (framePos % _parent._totalframes));
}
}
- caseyc0
Dont use onClipEvent, that was for the flash 5 days when flash lacked an event model.
Do it like this: (my_mc is the mc you had onClipEvent on)
// first, define your function
function SomeFunc()
{
// do whatever you were doing
}// now attach it to your mc using the event model
my_mc.onEnterFrame = SomeFunc;
// and just delete it on mousemove to stop it
my_mc.onMouseMove = function()
{
delete this.onEnterFrame;
}
- yurimon0
Thanx caseyc
- wade0
Is that(mc.onEnterFrame) only for AS 2.0?