Programming errors in Adobe Animate when it runs but not under actions or output.
been trying run sequence of game school, when run through mainframe can see discrepancies when code runs, code written similar in other areas without fault, , when run in debug not single solitary thing pops error. issue seems occur lose_mc.main.btn have instance named , everything, when run program not single error pops up.
import flash.events.mouseevent;
stop();
hud_mc.speed_mc.gotoandplay("dec");
lose_mc.gotoandplay(2);
lose_mc.replay_btn.usehandcursor = true;
lose_mc.replay_btn.buttonmode=true;
lose_mc.main_btn.usehandcursor = true;
lose_mc.main_btn.buttonmode=true;
lose_mc.replay_btn.addeventlistener(mouseevent.roll_over, over);
lose_mc.replay_btn.addeventlistener(mouseevent.roll_out, out);
lose_mc.main_btn.addeventlistener(mouseevent.roll_over, over);
lose_mc.main_btn.addeventlistener(mouseevent.roll_out, out);
lose_mc.replay_btn.addeventlistener(mouseevent.click,playgame);//link replay button , function main menu
function playgame(e:mouseevent) {
movieclip(stage.getchildat(0)).loadthisscreen("lonquist_lvl1_2.swf");
}
lose_mc.main_btn.addeventlistener(mouseevent.click,mainmenu); //link main menu button , function main screen
function mainmenu(e:mouseevent) {
movieclip(stage.getchildat(0)).loadthisscreen("lonquist_homescreen.swf");
}
could maybe tell error you're getting?
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment