[F8] Current selection cannot have actions applied to it
Hi,
I am in flash 8. I am working on a simple button symbol and the actions panel is showing "Current selection cannot have actions applied to it" and the options are unavailable". I am working on something I have to finish real soon and I am stuck. Please help. Thanks
Michael
Code to make a simple button work in AS3 Flash CS3
If you select the button on stage you get...
"Current selection cannot have actions applied to it" error message"
Here is the code to make the button work:
myButton.addEventListener(MouseEvent.CLICK, myButtonFunction);
function myButtonFunction(event: MouseEvent) {
var request:URLRequest = new URLRequest("http://flashgameu.com");
navigateToURL(request);
}
We can all thank Gary for this: http://flashgameu.com/ask_gary/ask_g...n_as3_way.html
I worked on this from 8:00 PM until 2:00 AM and could not get it to work. I was ready to burn my copy of Flash CS3. Gary saved the day.
Notes:
Make sure you NAME button myButton or whatever. Just look for (Instance Name) your on the Properties tab and type the button name there.
Because you can not add this script to the actual button in ActionScript 3, you need to make a new layer for actions. Just make new layer. Then on the first frame paste in the code above.
From then on... ALL your button code can be placed in this SAME actions frame.
If you want to add more buttons... just copy and paste the same code in the same action script location. Rename myButton to myButton1, myButton2 and so on and point them to the urls you want.
When the button is clicked it will open the url in a new window. I have NO IDEA how to make it open the link in the same window. But, I am not staying up all night again to search for it.
Ahhhhhhhhh life is not supposed to be THIS difficult.