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
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
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" }; }}),
3 matches
Mail list logo