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

can't add actionscript to buttons

New Here ,
Jan 22, 2015 Jan 22, 2015

Hi, I am currently trying to make a game in AS3 with forward and back buttons. I have drawn my buttons and converted them to symbol (button), but when I select the button and press F9 to add in the actions, this happens meaning I cannot add the script in:

TM0TW.jpg

can anyone please tell me what I have done wrong to not show the normal space where I add my script into?

EDIT: OK, I have worked out how to code buttons I think, but now whenever I do I keep getting this error message

efeFm.jpg

TOPICS
ActionScript
221
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 ,
Jan 22, 2015 Jan 22, 2015
LATEST

you can't add code to objects using as3.

that's an feature of as1 that was (unfortunately) allowed with as2, but finally eliminated in as3.

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