Re: [flexcoders] Adding Icons with Actionscript

2005-10-21 Thread Clint Modien
How do you delete the icon after adding it? myButton = myComp.createChild(mx.controls.Button, cancelButton,{label: Cancel, icon: testIcon}); myButton.icon = undefined; //doesn't work On 10/13/05, Dirk Eismann [EMAIL PROTECTED] wrote: Hi,not directly, you need to embed the resource and assign

[flexcoders] Adding Icons with Actionscript

2005-10-13 Thread r_woess
Hi, I want to add an icon to a button at runtime. I watched the generated as-File and the button mx:Button icon=@Embed('test.gif')/ was generated to this code: new mx.core.UIObjectDescriptor({ type: mx.controls.Button, id: Button7, _properties: function() { return { icon:

RE: [flexcoders] Adding Icons with Actionscript

2005-10-13 Thread Dirk Eismann
(mx.controls.Button, cancelButton, {label: Cancel, icon: testIcon}); Cheers, Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of r_woess Sent: Thursday, October 13, 2005 10:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adding Icons