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

1120 - Button Error

New Here ,
Oct 11, 2023 Oct 11, 2023

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
371
Translate
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

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

Translate
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

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

Translate
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

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).

Translate
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

Okay. I will give it a try. Thanks anyways

Translate
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
LATEST

you're welcome.

 

update your progress.

Translate
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