Skip to main content
Participating Frequently
December 19, 2022
Answered

Error #1010

  • December 19, 2022
  • 1 reply
  • 1654 views

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 has been closed for replies.
Correct answer kglad

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.

1 reply

JoãoCésar17023019
Community Expert
Community Expert
December 19, 2022

Hi.

 

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

 

Can you verify this?

 

Regards,

JC

Participating Frequently
December 19, 2022

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.

JoãoCésar17023019
Community Expert
Community Expert
December 19, 2022

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.