I get an error with a null object when I add a mouse event listener for the login button. (Look at the comments in the constructor)
I am using Flash CS6, and objects such as logInbutton and screen_log_in are instance names from the .fla file. This is the .as file.
Error:
TypeError: Error
My AS3 code:
package actions { import flash.display.MovieClip; import flash.events.Event; import flash.events.ProgressEvent; import flash.events.IEventDispatcher; import flash.net.URLRequest; import flash.display.Loader; import fl.motion.MotionEvent; import flash.events.MouseEvent; public class indexPage extends MovieClip { public function indexPage():void { loadSWF("http://mathlympics.cu.cc/loginsystem.swf");
source share