Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Scrollbar error

New Here ,
Feb 21, 2013 Feb 21, 2013

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

TOPICS
ActionScript
610
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 21, 2013 Feb 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).

...
Translate
LEGEND ,
Feb 21, 2013 Feb 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 21, 2013 Feb 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]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 21, 2013 Feb 21, 2013
LATEST

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines