So as with the new version of ActionScript there is a new level of complexity when it comes to creating ActionScript, but there seems to be better debugging too. The only barrier I have hit is the language sometimes just doesnt make sense, so I usually Google the errors and find great explanations.

This is just an ongoing list I will compile to help fellow AS3 developers to make sense of what the errors mean.

  • Error #1046: Type was not found or was not a compile-time constant:
    Curtis Morley has come up with a great explanation as to what this actually means, you can read about it here.
  • Error #1502: A script has executed for longer than the default timeout period of 15 seconds. Curtis Morley has also come up with another great explanation as to what this actually means, you can read about it here.
  • TypeError: Error #1009: Cannot access a property or method of a null object reference.Curtis Morley has also come up with another great explanation as to what this actually means, you can read about it here.

6 thoughts on “Common ActionScript 3 Errors and Explanations”

Curtis J. Morley · June 30, 2009 at 3:38 pm

Jake,

Thanks for the great post. I am glad to be able to help people solve their AS3 Errors. I will be posting more errors.

Curtis J. MorleyC

    Anne Richardson · October 1, 2012 at 9:16 am

    WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at GuidingPrinciples6_fla::MainTimeline/__setAcc_b4_Scene1_button_9()
    at GuidingPrinciples6_fla::MainTimeline/frame10()
    at flash.display::MovieClip/gotoAndStop()
    at GuidingPrinciples6_fla::CC_controller_2/Handler3()

    I think I understand that the null object is just a reference to something that is not there. However the statements after the at – are these more than one instance of the error? In the first one, I've searched for setAcc and cannot find it anywhere. And why do 3 of them say "at GuidingPrinciples" (which is the name of the fla file) and one say "at flash.display"?

Mark · August 29, 2009 at 9:37 am

Thanks!

Any ideas about this one?

ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.

I got this when trying to tab through input textfields on stage.
I have got NO actionscript at all in the file concerning the textfields.

Any ideas are welcome!

Zach · August 31, 2009 at 7:14 pm

What if it says

1087: Syntax error: extra characters found after end of program.

Aaron · January 31, 2011 at 7:43 pm

I have a rollover that displays information. I use a "bring to front" script which helps, but when I click a button that sends me to another keyframe, it brings the element I "brought to front" with it. There are no error messages either. Completely baffled, completely annoyed. Spend more time trying to solve AS3 riddles than learning it easily.

Maria · June 7, 2011 at 3:36 am

What about Error #1034?

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Design

The Best of Web Conferences 2008

I have compiled a list of the most popular flash and web conferences that are offered around the world. Flash: Flash on the Beach Flash Forward Flash in the Can Flash Forum Web Design/Creative: Future Read more…

ActionScript 3.0

Part 2: Using LoaderInfo Events to create reusable ImageLoader Class

Yesterday I created a post called ActionScript 3.0 LoaderInfo Useful Events which outlined some useful events in ActionScript 3.0 that can be used to listen for when things are open, loading, and complete. I used Read more…

ActionScript 3.0

Part 1: ActionScript 3.0 LoaderInfo Useful Events

Im very impressed with ActionScript 3.0 and how all the events work. I have been reading up lately on progress events specifically the open, progress, and complete events. You can manipulate these events in so Read more…