Skip to main content
Participant
October 13, 2010
Question

AS3 Error - Can anyone translate it into English for me lol?

  • October 13, 2010
  • 1 reply
  • 1026 views

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at portfolio3_fla::GalleryGD_268/frame27()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()

So this is the error... anyone know what it means?

Thanks!

-J

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 13, 2010

it means you're trying to reference an object that doesn't exist when your code executes.

click file/publish settings/flash and tick "permit debugging".  retest.  the line number with the problematic object will be in the error message.

if you need help after seeing that copy and paste here the problematic line of code.

Participant
October 13, 2010

Hmmm.. Ok I followed your directions and here is the output information from the new test:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at portfolio3_fla::GalleryGD_268/frame27()[portfolio3_fla.GalleryGD_268::frame27:391]
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()

I don't understand the reference to "Sprite/constructChildren()".    It's referring to frame 27, actionscript line #268 right?  ....and then also as3 line 391 as well?  I don't get it... the only thing on as3 line 268 is a button... that exists on frame 27.... and nothing is referenced on as3 line 391.  I mean, my as3 isn't that long... I must be mistaken... What is the code referring too?

Thanks so much for your help

~J

kglad
Community Expert
Community Expert
October 13, 2010

what's GalleryGD_268?

and do you have code in more than one layer on frame 27 of your fla?