A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Error #1009

  1. #1
    Registered User
    Join Date
    Mar 2014
    Posts
    1

    Error #1009

    New to AS3. Actually following a tutorial by iBrent (https://www.youtube.com/watch?v=HFfsiqBJbe8).
    My code matches up with his, and I have done a lot of research before resorting to making yet another #1009 thread.
    Code:
    package  {
    	
    	import flash.display.MovieClip;
    	import flash.events.MouseEvent;
    	
    	
    	public class AtmoApp extends MovieClip {
    		
    		
    		public function AtmoApp() {
    			init();
    		}
    		
    		private function init():void
    		{
    			movers.addEventListener(MouseEvent.CLICK, handleButtonClicks);
    			conventionals.addEventListener(MouseEvent.CLICK, handleButtonClicks);
    		}
    		
    		private function handleButtonClicks(event:MouseEvent):void
    		{
    			trace("You clicked the: " + event.currentTarget.name);
    		}
    		
    	}
    	
    }
    Thanks for your help.

  2. #2
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    Add a trace message to spit out the values of "movers" and "conventionals" before they are used in the init function. My guess is that one of them is going o be null.
    When your swf2exe tool just HAS to work
    there's only one choice... SWF Studio

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center