Flash next step

Out of context: Reply #1

  • Started
  • Last post
  • 3 Responses
  • 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;
    }

View thread