Skip to main content
Participating Frequently
Dec 19, 2022 12:13 PM UTC
Answered

Error #1010

Im a beginner at action script and some of the buttons work but as soon as it reaches another page/frame, all of the buttons seem to not work.

 

TypeError: Error #1010: A term is undefined and has no properties.
at Interactive_storyboard_group_project_fla::MainTimeline/frame11()[Interactive_storyboard_group_project_fla.MainTimeline::frame11:3]
at flash.display::MovieClip/gotoAndPlay()
at Interactive_storyboard_group_project_fla::MainTimeline/fl_ClickToGoToAndPlayFromFrame_5()[Interactive_storyboard_group_project_fla.MainTimeline::frame1:182]

 

This was the highlight:

 

scene_2_story.prevBTN.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_18);

 

This topic is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
Dec 19, 2022 2:15 PM UTC

Forgot to add, I'm only using the camera at the moment but no heavy movement, I've heard there are bugs with using advanced layers. Do you advise me to disable it ?


YES.  unless absolutely essential. disable it and make that your default setting when starting new fla's.

21 replies

JoãoCésar17023019
Community Expert
Community Expert
Dec 19, 2022 12:31 PM UTC

Hi.

 

Either scene_2_story button or the function  fl_ClickToGoToAndPlayFromFrame_18 is not present in frame 11.

 

Can you verify this?

 

Regards,

JC

Translate
Participating Frequently
Dec 19, 2022 12:38 PM UTC

Both of these exist, first hand I've had the issue of prevBTN being undefined, but after adding scene_2_story since it's my layer name and I'm working with advanced layers seems to bring up this issue.

Translate
JoãoCésar17023019
Community Expert
Community Expert
Dec 19, 2022 12:44 PM UTC

To use layers in AS3 in recent versions of Animate, make sure all conditions below are true:

- The advanced layers mode is on (Cmd/Ctrl + J > Use Advanced Layers);

- The virtual camera is on the stage;

- The layer you want to target is on the main timeline;

- The layer you want to target is not empty.

Translate