Skip to main content
Participant
February 21, 2013
Answered

Scrollbar error

  • February 21, 2013
  • 3 replies
  • 650 views

Hi, I'm getting this error whenever I add scrollbar to a dynamic text box

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

          at test_fla::MainTimeline/__setProp___id0__Biography_Layer1_0()

          at test_fla::MainTimeline/frame1()

I don't know how to fix it, I just watched videos on youtube to make this project so I don't really have an experience in Flash.

Here is the file:

https://www.dropbox.com/s/8raiwk4qxe693u1/test.fla

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer Ned Murphy

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.

3 replies

Ned Murphy
Ned MurphyCorrect answer
Legend
February 21, 2013

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.

Participant
February 21, 2013

thanks for replying but I don't understand any of the error

Here is the error:

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

          at test_fla::MainTimeline/__setProp___id0__Biography_action_0()[test_fla.MainTimeline::__setProp___id0__Biography_action_0:7]

          at test_fla::MainTimeline/frame1()[test_fla.MainTimeline::frame1:3]

Ned Murphy
Legend
February 21, 2013

It might be your component is acting up.  If the error goes away when you remove the scrollbar, then you might try using a TextArea component instead just to see if that also produces an error.