davej
05-09-2007, 11:51 PM
This has to be the lamest design by macromedia. I have spent days trying to figure out how to simply change the skin of a button component. One would imagine it would be as simple as selecting the component part such as border and seting a style of color to that or shape or the button. I have found a few methods but very limited. such as
myButton.setStyle("rollOverColor", "0xFF0000");
myButton.setStyle("selectionColor", "0xFF0000");
myButton.setStyle("borderStyle", "none");
myButton.setStyle("borderColor", "0x0066CC");
but this does not cover all the states of the buttons and is very limited. I also found this link http://www.adobe.com/devnet/flash/articles/skinning_2004_05.html this works fairly well untill you try using round corners on your buttons and then create the buttons dynamicly through AS in various size. It then warps the corners. If any one knows how to skin a button component and the states please please let me know. I would think that there would be a schema some think like this, but have yet to find it.
myButton.upState("borderColor", "0xffffff")
myButton.upState("bgColor", "0xff0000")
myButton.upState("borderStyle", "round");
myButton.overState("borderColor", "0x003366")
myButton.overState("bgColor", "0xff0000")
myButton.overState("borderStyle", "round");
its simple and easy to manage I hope this can be done.
thanx dave
myButton.setStyle("rollOverColor", "0xFF0000");
myButton.setStyle("selectionColor", "0xFF0000");
myButton.setStyle("borderStyle", "none");
myButton.setStyle("borderColor", "0x0066CC");
but this does not cover all the states of the buttons and is very limited. I also found this link http://www.adobe.com/devnet/flash/articles/skinning_2004_05.html this works fairly well untill you try using round corners on your buttons and then create the buttons dynamicly through AS in various size. It then warps the corners. If any one knows how to skin a button component and the states please please let me know. I would think that there would be a schema some think like this, but have yet to find it.
myButton.upState("borderColor", "0xffffff")
myButton.upState("bgColor", "0xff0000")
myButton.upState("borderStyle", "round");
myButton.overState("borderColor", "0x003366")
myButton.overState("bgColor", "0xff0000")
myButton.overState("borderStyle", "round");
its simple and easy to manage I hope this can be done.
thanx dave