Flash next step
Flash next step
- Started
- Last post
- 3 Responses
- yurimon0
Thanx caseyc
- wade0
Is that(mc.onEnterFrame) only for AS 2.0?
- 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;
}