Copy link to clipboard
Copied
My code of AS2 is given below. I do not know what event handler type is used and which event handler is used in AS3.
onEnterFrame = function(){
//
};
Copy link to clipboard
Copied
objectName.addEventListener(Event.ENTER_FRAME, Handler);
function Handler(evt:Event):void {
...
}
Copy link to clipboard
Copied
this.addEventListener(Event.ENTER_FRAME,onEf);
// "this" references the movie itself, you can also use "stage" or the instance name of an object on the stage
// look up addEventListener in the online help. This method takes two arguments, the event that you want to "listen" for and the name of the function to execute when the event occurs.
// the function that will be called when the event occurs. It takes one argument that corresponds with the first argument of the addEventListener method.
function onEf(event:Event):void {
}
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more