Skip to main content
Participant
December 10, 2008
Question

Problem with a button action

  • December 10, 2008
  • 2 replies
  • 447 views
Hi guys. I am trying to build my first website and I follow the instructions of a videotutorial of flash 8. But in the second step (Making it work the buttons) when I had tried to add action to my selected button, appear a message like this....Cannot add actions to this selection (translated from spanish) Why?...Is a conflict between versions 8 and CS3? Please help to fix and learn Know How?
This topic has been closed for replies.

2 replies

Ned Murphy
Legend
December 12, 2008
If you are coding with one version of AS and then switching to another version of AS in the publishing settings, in either direction, it is very likely the code won't work, unless it all happens to be code that's compatible for both versions.
Participant
December 15, 2008
That's basically what I was afraid of - thanks for verifying for me. I've since removed my button actionscript (v2.0 code), switched my file back to v3.0 (the version with which it was originally created), and am now using addEventListener code (with MouseEvent.CLICK) to make the button work. Thanks again!
Ned Murphy
Legend
December 10, 2008
Flash 8 supports Actionscript 2, while CS3 supports Actionscript 2 and 3. You most likely need to go into your Publish settings, and in the Flash section select the option that has AS 2.0.

If you have more questions concerning Flash 8 coding, you should post them in the AS2 forum.
GuttellsAuthor
Participant
December 10, 2008
Hey buddy, I can resolve this trouble...I open the file from action script 2.0 and the operation will be created. Thanks to help me.
Participant
December 11, 2008
I'm a newbie to Flash, and I ran into this same issue with not being able to add actionscript to a button in 3.0. So I clicked Settings and changed the version to 2.0 in order to do it, and it worked fine. My only concern is - if you create a file in v3.0, then switch it to v2.0 midstream, will this cause any issues later with the file? Have you run into this? Thanks much!