1 Reply Latest reply on Nov 27, 2007 5:06 PM by kglad

    this onEnterFrame function

    PKENGLISH Level 1
      Hi,

      I have a snippet of actionscript that I use in a bunch of frames (obvious candidate for a function). The problem is I'm not really sure how to create a function when all my code is within an onEnterFrame function itself.

      Can anyone give me the basics on how to create say a hover_function(enter button id here); ?

      Thanks!

      Here is my code:

        • 1. Re: this onEnterFrame function
          kglad Adobe Community Professional & MVP
          create your function and have it accept a movieclip parameter. instead of "this" use the movieclip parameter. when you call your function, pass the movieclip.

          you should also use a termination check and delete your onEnterFrame when it's no longer needed.