Skip to main content
Participant
October 11, 2023
Question

1120 - Button Error

  • October 11, 2023
  • 1 reply
  • 318 views

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

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 11, 2023

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

Participant
October 11, 2023

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

kglad
Community Expert
Community Expert
October 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).