Here is the premise:
I have 10 buttons each with on normal state image (buttonX.png) and a mouseover state (buttonXglow.png). The buttons are created manually in flash, but referenced in my as3 main class. I need to add different states to the buttons.
I want do the following:
- mark on of the buttons as selected, e.g. show it with the (buttonXglow.png) all the time.
be able to disable the buttons (I'm using mouseEnabled = false; at the moment which turns its behavior off, but I also want to change the appearance to a (buttonXout.png) image).
seems fairly complicated in AS3, I've tried to embed the (buttonXglow.png) images with the following which I placed as member variables in my main class, but it doesn't seem work for me.
[Embed(source='button1out.png')] public static var Button1Out:Class;
Also I'm not sure how to actually replace the buttons apperance with the bitmap if I get it to work. I was thinking that I should replace the upState of the button.
Thanks in advance!