Skip to main content
Participant
May 6, 2008
Answered

Current Selection cannot have actions applied to it

  • May 6, 2008
  • 3 replies
  • 1172 views
I create a simple text button symbol, open it, add an up and down state, select it, open the actionscript window and get this message: "The current selection cannot have an action script applied to it."

What is up with that? Help?
This topic has been closed for replies.
Correct answer jishi9
If you would like to use Actionscript 2.0 (like the one used in Flash 8) click on settings in the properties tab and change Actionscript 3.0 to Actionscript 2.0

3 replies

jishi9Correct answer
Inspiring
May 6, 2008
If you would like to use Actionscript 2.0 (like the one used in Flash 8) click on settings in the properties tab and change Actionscript 3.0 to Actionscript 2.0
mrkgreeneAuthor
Participant
May 7, 2008
Thanks. That's very helpful.
As a designer who uses Flash, it's important to me that Adobe and the Flash Team remember that some functions should remain fairly transparent. I can write code for simple functions, but I can not write code that calls out to multiple functions and what not. I'm a designer. So making things more powerful, but more obtuse, doesn't help me.

I don't want to set up a retail shopping cart. I want to make a button work.

Thanks again.

mrkgreeneAuthor
Participant
May 6, 2008
Thanks for the response. I'm sure it would work well. But the end result is, I just fired up my old G4 with Flash 8 running.

Don't need to be a programmer to make a button in that version.

Thanks ADOBE for making buttons difficult.

May 6, 2008
To apply actions to a button, you need to create AS code (in the main timeline is ok) that refers to the button and uses the addEventListener method such as:

btnName.addEventListener(MouseEvent.CLICK, doFunction);

function doFunction() {
// do something
}


If you go into the help files and open the ActionScript 3.0 Language and Components Reference, and expand the All Classes section and find Button Class, the example at the end of the listings gives a bit more detail.