Create a button with an icon in actionscript

Posted by Kevin Beck on Stack Overflow See other posts from Stack Overflow or by Kevin Beck
Published on 2008-11-18T22:21:14Z Indexed on 2010/04/29 7:57 UTC
Read the original article Hit count: 204

Filed under:
|

I want to create buttons with icons in Flex dynamically using Actionscript.

I tried this, with no success:

var closeButton = new Button();
closeButton.setStyle("icon", "@Embed(source='images/closeWindowUp.png");

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript-3