Strange Error When Setting Button to GoTo Next Frame
i using cs5/as3- have 1 scene 2 frames. first frame has submit button plays movieclip held in second frame.
i want able press button @ end of movie take me first frame of main timeline
in second last frame of movieclip, have stop , button want take next frame. in next frame have set go root. working correctly. however, need button on click go last frame of movie clip , erroring out.
i have code on button:
stop();
kite_btn.addeventlistener(mouseevent.click, function(evt:mouseevent):void{
nextframe();
});
this error getting:
typeerror: error #1009: cannot access property or method of null object reference.
at kite_fla::kite_3/frame192()
i have looked everywhere , code repeated , confirmed correct...but error still there.
thanks in advance
in 3rd sentence mention button @ end of movie. it's not clear mean "movie".
is movieclip? main timeline?
and button? in movieclip? on main timeline?
and showed code. code? in movieclip? on main timeline? , code on frame 192?
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment