Hello All,
Here I am loading Icon,
//function definition to apply Icon in the button
private function applyIcon()
{
var urlIconPath:URLRequest = new URLRequest(getButtonIcon());
loadIcon.load(urlIconPath);
loadIcon.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadEventCompletion);
}
//function to invoke after icon loaded
private function onLoadEventCompletion(event:Event):void
{
var loadIcon:Loader = Loader(event.target.loader);
var image:Bitmap = Bitmap(loadIcon.content);
var bitmapData:BitmapData = image.bitmapData;
trace(bitmapData.width,bitmapData.height);
loadIcon.x = getX_Position()- bitmapData.width/2;
loadIcon.y = getY_Position()- bitmapData.height/2;
}
Now it is coming over a circle shape and I am making that circle.buttonMode = true, but the moment I am taking the cursor over the icon which is over the circle, the hand cursor is not coming.
Can anybody please tell how to make button mode true for that icon.