Common ActionScript 3 Errors and Explanations

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.

Comments

Curtis J. Morley

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

Mark

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

What if it says

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

Aaron

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

What about Error #1034?

Anne Richardson

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"?

Leave a Reply