> now to change the color of the button, you
> could redraw the child sprite which has the color, or change the
> textformat of some text, or maybe use colortransform, or create
> multiple versions of the same thing (like three rectangles each with a
> different color) and toggle their visibility, or use a tween engine to
> change something's color. 

David, 
This would be the most straight forward means (given the context): 

private function onMouseOverHandler(e:MouseEvent):void{ 
        e.currentTarget.getChildAt(0).backgroundColor = 0x97F9EC; 
} 
 
private function onMouseOutHandler(e:MouseEvent):void{ 
        e.currentTarget.getChildAt(0).backgroundColor = 0x0E778A; 
} 
 
private function onPressHandler(e:MouseEvent):void{ 
        e.currentTarget.getChildAt(0).backgroundColor = 0xFFFFFF; 
} 
 
private function onMouseUpHandler(e:MouseEvent):void{ 
        e.currentTarget.getChildAt(0).backgroundColor = 0x0E778A; 
        // Navigate.to(e.currentTarget.linkURL); 
} 
 
Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to