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

error code for 1120: Access of undefined property

New Here ,
Sep 27, 2020 Sep 27, 2020

Copy link to clipboard

Copied

I am new to animate.

 

I have an interactive infographic. 

  1. I have an animation of a rocket launching. works fine
  2. I have a simple click button for a 5 sequence scene

both work fine seperate. When I put the animation infrony of my click sequence and change the frames appropriately I get the code below.

 

scene1, Layer 'actions', Frame 130, Line 4, Column 1 1120: Access of undefined property next_define.

Views

354

Translate

Translate

Report

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
Community Expert ,
Sep 28, 2020 Sep 28, 2020

Copy link to clipboard

Copied

do you see something that makes you think next_defined actually is defined on frame 130 (which will look like frame 131 to you)?

Votes

Translate

Translate

Report

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 ,
Sep 28, 2020 Sep 28, 2020

Copy link to clipboard

Copied

This is my code.

stop();

next_define.addEventListener(MouseEvent.CLICK,fl_ClickToGoToAndStopAtFrame130);

function fl_ClickToGoToAndStopAtFrame130(event:MouseEvent):void
{
gotoAndStop(130);
}

I built this section first and added animation infront of it. It works fine unitl I put the animation in and then change my frames in the action setting to match.

 

Votes

Translate

Translate

Report

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
Community Expert ,
Sep 28, 2020 Sep 28, 2020

Copy link to clipboard

Copied

there's no object named next_define on frame 130 (which will look like frame 130 because this is as3, not canvas).

 

if you thihnk there is an object on stage (that's not part of a tween) named next_define, copy from your code and past into the name property field with the object selected and retest.

Votes

Translate

Translate

Report

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 ,
Sep 28, 2020 Sep 28, 2020

Copy link to clipboard

Copied

next-define is a mouse event button.

Clicking takes you to the next appopriate frame

Votes

Translate

Translate

Report

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
Community Expert ,
Sep 28, 2020 Sep 28, 2020

Copy link to clipboard

Copied

if you think you have a button named next_define in 130, animate disagrees.  you can try copying/pasting the button's name.

Votes

Translate

Translate

Report

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 ,
Sep 28, 2020 Sep 28, 2020

Copy link to clipboard

Copied

LATEST

ok let me look at that

Votes

Translate

Translate

Report

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