|
I changed color to fillColors in both the changebackcolor() method and the changecolor() method but all I get when I change the color back is a black button?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*"> <mx:Script> <![CDATA[ public var oldColor:Object; ]]> public function changecolor(){
oldColor= buttonthree.getStyle("fillColors"); buttonthree.setStyle("fillColors", [0xCCC333,0xCC0065]) } public function changebackcolor(){ buttonthree.setStyle("fillColors", [oldColor]) } </mx:Script> <mx:HBox id="buttonstocolor" visible="true">
<mx:Button label="press to restore color" click="changebackcolor()" id="Buttonone" />
<mx:Button label= "Press to change color" click="changecolor()" id="Buttontwo"/> <mx:Button width="30" id="buttonthree"/> </mx:HBox> </mx:Application> Yahoo! Groups Links
|
- Re: [flexcoders] How do you store and then retrieve the bac... nostra72

