actionscript 3 - Flash Error #1009 on mouse click -
i have movie clip called androideye2, has 4 frames.
i have code on 'main menu' scene:
function eye1(e){ androideye2.gotoandstop(2); } function standstill(e){ androideye2.gotoandstop(1); } viewmerchandise_iconb.addeventlistener(mouseevent.click,viewmerchandise1); function viewmerchandise1(e) { gotoandplay(1,"viewmerchandise1"); } viewmerchandise_iconb.addeventlistener(mouseevent.mouse_over, eye1); viewmerchandise_iconb.addeventlistener(mouseevent.mouse_out, standstill);
i have error 'typeerror: error #1009: cannot access property or method of null object reference. @ tes_fla::maintimeline/standstill()'
every time try click viewmerchandise_iconb button. did wrong?
i'll send fla file if needed see error.
the application complaining "androideye2.gotoandstop(1);" says androideye2 (that specific instance or static class (depending on is)) not have property/function called "gotoandstop". androideye2 null/undefined when function (standstill
) called.
edit1:
standstill(e){ trace("instance=" + androideye2); trace("function=" + androideye2.gotoandstop); androideye2.gotoandstop(1); }
Comments
Post a Comment