Hi all, I am very new to using flash and I'd like to use some icons (PNG) I have to insert into my flash in the form of buttons.
Could anyone point me in the direction of an understandable tutorial or perhaps give me some help?
I've imported the graphic and then converted into a button, I have then assigned the over/hit etc properties and then i go to add the actual actionscript and it tells me 'actionscript cannot be added to this'.
I know I am abviously missing something so any advice would be appreciated.
Hi all, I am very new to using flash and I'd like to use some icons (PNG) I have to insert into my flash in the form of buttons.
Could anyone point me in the direction of an understandable tutorial or perhaps give me some help?
I've imported the graphic and then converted into a button, I have then assigned the over/hit etc properties and then i go to add the actual actionscript and it tells me 'actionscript cannot be added to this'.
I know I am abviously missing something so any advice would be appreciated.
It doesn't use png images, but you could easily replace the draw componenets/text and drop in an image. It uses good practices with where to place your actionscript as well
Flash doesn't let you type code in a button because Flash CS3 by default creates an ActionScript 3.0 movie, go to the propeties of your movie and change the ActionScript version to 2.0
That should let you put actions in a button
That may be true, but putting actionscript on buttons is a messy way of coding. It's much better to have a dedicated layer on the root timeline where all your code is placed together.
@raydowe
I totally agree with you. I can't remember anymore how to write code in a button...
writing in one frame the whole thing is waaaay cleaner and easier to mantain... but for beginners it makes more sense typing the code in the button, that way you don't even have to bother with scope...