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

1120 - Button Error

New Here ,
Oct 11, 2023 Oct 11, 2023

Copy link to clipboard

Copied

Hello folks i have a simple interactive media and this 1120 error keeps appearing everytime theres a frame added behind it. Basically speaking the button works like charm when both stop and go to and play code applied on irst frame of timeline. But the moment i added frames behind them they immediately malfunction.

 

Link Below are examples of the problem

 

https://www.youtube.com/watch?v=Xk6PPcqUvSw  - The error problem situation

https://www.youtube.com/watch?v=3FmgBj4DXtA   - The project im working on

TOPICS
ActionScript , Code , Error , Timeline

Views

123

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 ,
Oct 11, 2023 Oct 11, 2023

Copy link to clipboard

Copied

if you're adding keyframes before keyframe with an object reference, you'll cause instance name problems.

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 ,
Oct 11, 2023 Oct 11, 2023

Copy link to clipboard

Copied

so how can i solve it? bc im super new to animate coding. and what do you mean by object reference? 

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 ,
Oct 11, 2023 Oct 11, 2023

Copy link to clipboard

Copied

object reference = a reference in code (actionscript in your case) to the object.

 

to remedy,

add whatever frames/keyframes you want. 

 

then copy and paste the problematic object to the first keyframe where you want to reference it (or even safer, drag that object from the library to that first keyframe). 

 

assign it an instance name. 

 

delete the keyframes with that object that are further down the timeline.

 

now create all the other needed keyframes that will contain that object.

 

note: this is only needed when adding keyframe before all existing ones with the problematic object.  adding keyframes after the first keyframe with the object shouldn't be a problem (unless you remove and re-add the object).

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 ,
Oct 11, 2023 Oct 11, 2023

Copy link to clipboard

Copied

Okay. I will give it a try. Thanks anyways

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 ,
Oct 11, 2023 Oct 11, 2023

Copy link to clipboard

Copied

LATEST

you're welcome.

 

update your progress.

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