flash - addEventListener not working for ActionScript 3.0 -
i'm making simple flash site , have buttons ready, scenes finished when go publish 1046 error:type not found or not compile-time constant:menubtn(all buttons using doing this).
before had ready did test first button, menubtn , worked fine nothing works. here first few lines of code, repeated each button.
import flash.events.*; import flash.display.*; gotoandplay(1, "main"); menubtn.addeventlistener(mouseevent.click, menuclick); function menuclick(event:mouseevent):void { gotoandplay(1, "menu"); } soupbtn.addeventlistener(mouseevent.click, soupclick); function soupclick(event:mouseevent):void { gotoandplay(1, "soup"); } 
Comments
Post a Comment