PDA

View Full Version : Flash Won't allow me to ActionScript a Button



RZS
10-01-2010, 12:00 PM
I'm doing the "Introduction to Flash 8" and have came across the strangest problem....

I'm following the "Portfolio Project" Lesson but using my own images instead of the ones provided by DT
and After converting them to Buttons when I try to ActionScript them it says "Current selection cannot have actions applied to it" on the Actions box with actionScript 3 selected.
I've tried hundreds of crazy things and cannot get it to allow me to write on it, only if i select the layer the image is on but then it gives me an error when I test it and it applies it to the layer rather than the image.
I'm working with Flash CS3...
It might have to do with the settings on ActionScript or Flash?? don't know what else to try....
Anyone have an idea how I can get Flash to allow me to ActionScript my images?

I've been stuck for two days, can't move on, please help!

RZS
10-05-2010, 12:00 PM
I still can't get pass this problem. I followed step by step the tutorial and used DT images and came across a dead end again....thought I could fix it by going to properties and in the Linkage section, activate the Export for ActionScript checkbox etc...
but that did not work either....I am about to give up....someone has any idea what i need to do?? Help!!

RZS
10-05-2010, 12:48 PM
I created a new doc in ActionScript 2.0 instead of 3.0 and it worked! still no idea how to make it work in 3.0 but I'll stick to 2.0 for now.....hope it helps someone else out there :)

thummper
10-08-2010, 07:21 PM
Sorry RZS, it seems flash has been sadly dropped by DT years ago. Ill hang out in the forum if you need anything though. Glad you found the answer, lemme see if I can explain a bit. The issue is that the tutorial is on flash 8, an ancient version. Flash has gone through Actionscript v1 (a terrible language built from continuous patches rather than planned out from the start) to v2 (basically just a 'skin' on top of v1 to make it follow a few standard coding conventions) and now to v3 (the first truely thought out from the start, ground up re-invention of AS). AS 3 is a great setup, and is in line with standards set forward by other languages, but the down side is it is radically different from AS 1,2. So, the answer here is that the tutorial was written for AS1,2 (sorry, havent read it, just cant be for 3 cause of the old version #) where as you were setup in as3 and you stumbled on the first difference, namely that ALL actionscript now gets placed on keyframes or in a separate AS file which is imported. putting code direct on a movieclip/button is not allowed. I would HIGHLY suggest skipping AS1,2 (I know, that renders all tutorials here useless, but its really worth it) as AS3 is different from the ground up, so you will end up learning two languages instead of getting one and moving on to the graphics ). Basically there is no reason to learn the old way.

RZS
10-10-2010, 08:41 AM
Thank you SO much for the INFO thummper!! truly appreciate it!
I'll definitely look into it. :)