The onEnterFrame method of AS2 is now done through the use of Event Listeners in AS3.
ActionScript 2
this.onEnterFrame = function() {
// Your code here
}
// Your code here
}
ActionScript 3
this.addEventListener(Event.ENTER_FRAME, myFunctionName);
function myFunctionName(e:Event):void {
// Your code here
}
function myFunctionName(e:Event):void {
// Your code here
}
thanks!
Post a Comment