Is it wrong to do this?
I've seen many people/tutorials that use an extra step like this:Code:some_mc.addEventListener(MouseEvent.CLICK, someAction); function someAction(evt:MouseEvent):void { evt.target.x = 100; }
what is the advantage/benefit of adding the extra step? I'm guessing it has something to do with memory usage? just curious...thx!Code:some_mc.addEventListener(MouseEvent.CLICK, someAction); function someAction(evt:MouseEvent):void { var new_mc:MovieClip = evt.target as MovieClip; new_mc.x = 100; }


Reply With Quote