Button icon size in Flex

How do I find the width of an icon embedded in a button?

+1


source to share


1 answer


Try the following:



var icon:DisplayObject = button.getChildByName("upIcon");
trace("icon (width: " + icon.width + ", height: " + icon.height + ")");

      

+3


source







All Articles