Skip to main content
November 4, 2012
Question

TypeError: Error #1009: Cannot access a property or method of a null object reference. at fliplette

  • November 4, 2012
  • 1 reply
  • 650 views

help me pls

flip_letters1.addEventListener(MouseEvent.MOUSE_OVER,rollOverLetters);

function rollOverLetters(event:MouseEvent):void

{

          letters_flip. gotoAndPlay("begin");

}

flip_letters1.addEventListener(MouseEvent.MOUSE_OUT,rollOutLetters);

function rollOutLetters(event:MouseEvent):void

{

          letters_flip. gotoAndPlay("end");

}

This topic has been closed for replies.

1 reply

November 4, 2012

TypeError: Error #1009: Cannot access a property or method of a null object reference.

          at flipletters_fla::MainTimeline/rollOverLetters()

TypeError: Error #1009: Cannot access a property or method of a null object reference.

          at flipletters_fla::MainTimeline/rollOutLetters()

Ned Murphy
Legend
November 4, 2012

The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....

 

- is declared but not instantiated

- doesn't have an instance name (or the instance name is mispelled)

- does not exist in the frame where that code is trying to talk to it

- is animated into place but is not assigned instance names in every keyframe for it

- is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).

 

If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.