Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何找到嵌入在按钮中的图标的宽度?
试试这个:
var icon:DisplayObject = button.getChildByName("upIcon"); trace("icon (width: " + icon.width + ", height: " + icon.height + ")");