Actionscript
Started by: Vendetta | Replies: 8 | Views: 501 | Closed
VendettaPosts: 1,238
Joined: Oct 2009
Rep: 10
View Profile Okay you stickpage members. I need you to answer these two questions and give me a way to fix my problem.
My problem is:
When I convert something to a symbol and press "Actions," in the box where you're supposed to put the code in says: "The current selection cannot have actions applied to it." I can apply actionscript to frames though, that works.
The questions are:
Why won't my flash let me apply actionscript to movieclips, graphics, or buttons? What can I do to make it work?
Thank you very much to anyone who can provide helpful feedback. :)
The Dude2Posts: 1,526
Joined: Dec 2007
Rep: 10
View Profile Okay you stickpage members. I need you to answer these two questions and give me a way to fix my problem.
My problem is:
When I convert something to a symbol and press "Actions," in the box where you're supposed to put the code in says: "The current selection cannot have actions applied to it." I can apply actionscript to frames though, that works.
The questions are:
Why won't my flash let me apply actionscript to movieclips, graphics, or buttons? What can I do to make it work?
Either you're double clicking it to edit it's properties specifically, for this you need to either go back to the scene.
-OR-
Make every other layer invisible, and click on the MC, Button, or Graphic itself and try to add actionscript to it then. Perhaps the layer is locked that the button/graphic/mc is on?
VendettaPosts: 1,238
Joined: Oct 2009
Rep: 10
View Profile For number one that is definitely not the problem, number two isn't either I tried that.
Thanks anyway!
Bonk2Posts: 2,778
Joined: Mar 2008
Rep: 10
View Profile Flash has a tendency to dis-select movieclips when you open the actions menu. Just click the intended object once with the actions window open and you'll be set.
+ Graphics can't have code, only symbols like movieclips and buttons.
Aycaramba2Posts: 766
Joined: Apr 2007
Rep: 10
View Profile Or if you're using AS3, then you can't apply code to buttons/movieclips.
Also this:
Graphics can't have code, only symbols like movieclips and buttons.
Scarecrow2Posts: 9,168
Joined: Oct 2005
Rep: 10
View Profile Actionscript 3 does not allow instance-based coding. You have to change the actionscript language to Actionscript 2 if you want to work that way.
Scorpioxxx2Posts: 1,454
Joined: Apr 2006
Rep: 10
View Profile However you're better off trying to learn AS3 before falling back to AS2, just to finish Scarecrow's sentence.
Scarecrow2Posts: 9,168
Joined: Oct 2005
Rep: 10
View Profile VendettaPosts: 1,238
Joined: Oct 2009
Rep: 10
View Profile Flash has a tendency to dis-select movieclips when you open the actions menu. Just click the intended object once with the actions window open and you'll be set.
+ Graphics can't have code, only symbols like movieclips and buttons.
doesn't work :(
And all this would work if I just used AS2?
yay I made my fist button animation!
http://www.truploader.com/view/420721