Your Mxml part of custom compoenent, like mine:
<com:CustomWindow width="100" height="130" frontImageSrc="{rp.currentItem.path}" showText="{rp.currentItem.imgtext}" hideImage="{rp.currentItem.noImage}" buttonMode="true" useHandCursor="true" mouseChildren="true"/>
Actionscript Part: -
//Inspectable metadata tag gives you the option in the flex builder //to choose an option from the available selected options //Put it with the getter of that particular property [Inspectable(defaultValue="true", enumeration="true,false")] public function get showImage():Boolean { return _imgVisible; } public function set showImage(str:Boolean):void { _imgVisible = str; }
Ankur sharma
source share