1 Reply Latest reply on Mar 10, 2009 11:34 PM by kglad

    Event function scope

      hi there, when I define an event function like:
      i = 2;
      sound = new Sound();
      sound.onComplete = function () {
      // event function scope
      what kinds of variables can it access within the event function?

      - moonrie
        • 1. Re: Event function scope
          kglad Adobe Community Professional & MVP
          all variables defined at the time the onComplete executes. the default scope will be the timeline unless you use the word "this" which will reference the sound instance.

          (but you need to define the onComplete() method because the sound class has no such method.) there is an onSoundComplete() method