actionscript 3 - AS3 null object error on movie clip 1009 cannot access -
hello wandering if help, keep getting error spat @ me when try launch in as3. need import something? apologies, learned as2 , i'm learning as3.
baby steps.
typeerror: error #1009: cannot access property or method of null object reference. @ draganddropframe1_resetter2_0_fla::maintimeline/frame3() @ flash.display::sprite/constructchildren() @ flash.display::sprite() @ flash.display::movieclip() this.window_mc.visible = true; this.windwo_mc.offwindow.addeventlistener(mouseevent.click, shutwin); function shutwin(event:mouseevent):void { this.window_mc.visible = false; } updates -----------
a method appears have worked around changing direct path 'this'. clicked inside movieclip, added layer called actions , inserted script referenced movieclip wanted hide when clicked.
this.addeventlistener(mouseevent.click, fl_clicktohide); function fl_clicktohide(event:mouseevent):void { this.visible = false; }
the error getting means object, (moveiclip, variable, etc ) doesn't exist.
go publish settings, , check box says "permit debugging". when error in output window display exact line number error occurred on. line tell object null.
Comments
Post a Comment