Your Mxml part of the custom compoenent , as mine is :
<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 is : -
//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;
}