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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -