flash - addEventListener not working for ActionScript 3.0 -


enter image description herei'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"); } 

timeline


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -