Recover a killed onEnterFrame

  • Started
  • Last post
  • 2 Responses
  • cure

    Hi there!

    Once I killed an mc.onEnterFrame function with:

    mc.onEnterFrame = undefined;

    Is there any way to recover the function with another action? I want to kill onEnterFrames once the clip did all what it had to and the movie is idle, but I want to turn them on again when needed.

    Can anybody help please!!!

    Thanks!!!

    -cure

  • ********
    0

    not sure if this works or not but have you tried just calling it again??

    also try using null instead of undefined...

  • cure0

    I found a way defining and calling the function for instance in a onRollOver, then kill the onEnterFrame when some event is triggered. When you do onRollover again it defines and calls the function again.

    It works, altough I thought that maybe there was some sort of memory storage of deleted onEnterFrames functions that you could retrieve somehow...

    If there is any, let me know!
    Bye