actionscript 3 - Packages cannot be nested an error in flash cs6 -


it's first time coding in flash, creating login form wherein when user login in flash record automatically stored in database.

i testing button submit, there error saying "packages cannot nested". hope me.

package actions {          import flash.display.movieclip;     import flash.events.*;        public class main extends movieclip {          public function main ():void {                          submit_button.buttonmode = true;             submit_button.addeventlistener(mouseevent.mouse_down, checklogin);              username.text = "";             password.text = "";                  }                public function checklogin (e:mouseevent):void {                      trace("submission success");                  }          }  } 

"packages cannot nested" means have file literally includes 2 blocks marked package. example of nesting:

package {     ...     package b {         ....     } } 

you need revise code no file contains nested package blocks. isn't error in programming, rather markup error (that potentially hides lot of uneven braces or other types of copy&paste mixups).

update: timeline code declared being inside package, if trying add package ...{...} block timeline, error.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -