If you use SDK 4.x and you want to display embeded font in MX component (e.g. mx:Text) but your text probably will not appear. It is caused by the new Flash Text Engine. There are two solutions to this problem: » Read more: Embedding fonts with MX components
Archive for the ‘Flex Spark’ category
Embedding fonts with MX components
July 23rd, 2011How to set hand cursor for a component in a skin?
July 19th, 2011If you want to set hand cursor for a component in its skin you will probably try to add buttonMode = “true” in a root tag of the skin. But it won’t work. To make it happen you need to set buttonMode property by reference to a host component:
override protected function initializationComplete():void
{
hostComponent.buttonMode = true;
}
{
hostComponent.buttonMode = true;
}
In order to make hand cursor appear for some components you may also need to set other properties like useHandCursor or mouseChildren.