Skip to main content
Participant
September 7, 2014
Question

I am getting an error while coding between CS5 and Flash CC specifically: Access of undefined property instrument_txt. I am using a book that is made for CS5. Is there a current book or resources for Actionscript 3.0 and Flash CC?

  • September 7, 2014
  • 1 reply
  • 335 views
Scene 1, Layer 'actions', Frame 1, Line 47, Column 2

1120: Access of undefined property instrument_txt.

this is my problem. any ideas. thanks

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 7, 2014

you're using instrument_txt in actionscript and it's not defined on stage or in code when that reference executes.

suhrobbieAuthor
Participant
September 7, 2014

How do I define it? It is a text box on the stage that displays text based on a selected image.

thanks

kglad
Community Expert
Community Expert
September 7, 2014

at this point, name it in the first keyframe that contains it and there should be no other keyframes containing thereafter.

test your code.

if that works you can add other keyframes, but don't remove it unless and until you will no longer use that reference.