I’ve a button called profile_btn
I want to make this code by OOP .
profile_btn.addEventListener(MouseEvent.CLICK,profile_btnClickHandler);
function profile_btnClickHandler(ev:MouseEvent):void
{
//The actual code to jump to a specific frame
this.gotoAndPlay('play');
}
Also, how can I include three classes to a specific frame by actionscript3 that aren’t related to any object
The following can be used if you have a class (the name you specified in linkage) profile_btn.
If your want to add it to stage use:
So you code might look as