init(s)
private function init():void
{
this.addEventListener(MouseEvent.ROLL_OVER, rollover);
this.addEventListener(MouseEvent.ROLL_OUT, rollout);
}
roll over/out
private function rollover(event:MouseEvent):void
{
this.setStyle("backgroundImage", overskin);
}
private function rollout(event:MouseEvent):void
{
this.setStyle("backgroundImage", upskin);
}
]]>
</mx:Script>
content(s)
<!-- On this component I added selectable and enabled set to false, so that the buttonMode hand cursor shows through.
The disabled color then has to be set to the desired color -->
<mx:Text text="{data}" selectable="false" enabled="false" disabledColor="#000000"/>
</mx:Canvas>