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
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:
(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
3 matches
Mail list logo