tags:

views:

1641

answers:

1

How to find the width of the icon which is embedded in a button?

A: 

Try this:

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