1 Reply Latest reply on May 27, 2007 2:05 PM by kglad

    simplify my code...

    DZ-015
      Hey - here's a code clip from one of my AS classes...

      var oThis:Object = this;
      _oListener.onLoadInit = function(mcThumb:MovieClip):Void {
      //call the updater.
      oThis._TSU.thumbLoaded(mcThumb);
      }

      Now, this code works fine... but I feel a bit silly having just one line of code in a function... shouldn't there be some way to do something like this....?

      var oThis:Object = this;
      _oListener.onLoadInit = oThis._TSU.thumbLoaded(mcThumb);

      Any tips? What am I doing wrong here?

      Thanks again!