dimanche 5 février 2017

ActionScripts3 Movie clip click event issue

I'm trying to write some code for a movie clip to make a clickable area in stage in specific frame, There is an error that i couldn't find what is that error.

"btn_SETTINGS" is a movie clip.

 import flash.ui.Mouse;
 import flash.events.MouseEvent;

//Stop at frame 72 (STORES PAGE)

//Button SETTINGS Click
function goto_SETTINGS(event:MouseEvent):void
btn_SETTINGS.addEventListener(MouseEvent.CLICK, goto_SETTINGS);

**TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at APPRAYAN_fla::MainTimeline/frame72()[APPRAYAN_fla.MainTimeline::frame72:12]**

Aucun commentaire:

Enregistrer un commentaire