View Full Version : No Action in Buttons
cz231
08-09-2007, 11:16 AM
Hi
For some reason I cannot add actions to my flash buttons. What are some possibilities of things I am overlooking? Thanks.
cz231
08-09-2007, 04:22 PM
Some more info:I knew that there were template available with buttons that had actions so I opened up a template sideshow copied a button with action, pasted it in my document, and opened up the actions panel. I removed the actions from it and then it wouldn't let me add anything saying "Current Selection Cannot have actions applied to it."
Thanks again, any response at all would be appreciated, even if its not an answer.
famousb
08-09-2007, 10:10 PM
do the copy function like you did before... but then, make certain you click on the button after opening the AS panel and before pasting the code in there.... that's where you messed up, you didn't select the button...
cz231
08-10-2007, 10:20 AM
Are you saying to select the button after opening up the actions panel. Because that's what I did. Maybe I am not being clear...
When I copied a button with actions into my document it worked fine. I could edit the action in the panel and type in it. But as soon as I deleted all of the actions in the panel(they were for a presentation and not the actions I wanted.)and clicked outside the panel I could no longer edit it. I then clicked on the same button that, just moments ago had actions applies to it, and it said in the panel "Current Selection cannot have actions applied to it" I am selecting only the button to apply actions to. Is there something I am missing? Do you need more than one button in an layer to apply actions(That didn't work either but...). I am totally stumped. Let me know if you are too or if you see something I don't or If you have no idea what I am talking about. I am at my wits end. Thankyou.
One last note:I deleted the actions from the button in the slideshow template(Where the button I was testing came from),clicked out, selected it again and I was able to add actions to it.
I then copied an actual button I made in my document into the template and I could add actions. So now I am thinking it is something to do with my document, but then I tested it in a blank document and it didn't work. So maybe it is the slide show that is the only thing that does work.
Please any comments at all would be appreciated but any help would be even more.Thanks
I applied action to one of my buttons in the slide show and went to play it. It came up with this warning
"WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored."
So I think that the slide show is running on AS 1 or 2 and I must be on 3. Could that be the reason?
Is that is the case(If it isn't please tell me)should I change my document to 1 or 2?
Does AS 3 really not allow actions to be applies to objects?That doesn't seem right how do you get around this in AS 3?Thanks again
Ok I changed AS to 2 and now it works fine. Will that be alright though. Which AS do you recommend?
Sorry one more questions as well. What would be the code if I wanted to make a button called "Articles" (without the "")goto frame 3 on rollover or hover?
DreamWeaver
08-20-2007, 11:08 AM
Have you made sure that you have made your buttons sybols (ie. movie clip/graphic/button) because without being a symbol you cannot add actions to objects in flash.
Also, if i might add, that instead of applying actions to the button, you may want to consider using event handlers, and just putting the actions into a frame, it makes them easier to deal with and this way you can put all of your actions in the same place.
as for what action script to use, i am most familiar with 2.0, so that would be my suggestion, and you are probably looking for onRollOver.
hope this helps :D
Dreamweaver
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.