Button icon size in Flex

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

+1
flex icons


source to share


1 answer


Try the following:



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

      

+3


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics