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 a

RE: [flexcoders] Adding Icons with Actionscript

2005-10-13 Thread Dirk Eismann
m Subject: [flexcoders] Adding Icons with Actionscript Hi, I want to add an icon to a button at runtime. I watched the generated as-File and the button was generated to this code: new mx.core.UIObjectDescriptor({ type: mx.controls.Button, id: Button7", _properties: function() { ret

[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 was generated to this code: new mx.core.UIObjectDescriptor({ type: mx.controls.Button, id: Button7", _properties: function() { return { icon: "__Resources.0967270563.Palfinger_Rhino_2_jpg" }; }}),