Copy link to clipboard
Copied
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:
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).
...Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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]
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now