[flexcoders] Re: Set Button Icon at Runtime !!

2007-03-07 Thread bobrene07
It's not possible to creat a class object at runtime with an image in it ? anyone ?? thx 4 ur help bor --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, You could use setStyle() at runtime and load a module that holds your assets library. Peace, Mike

Re: [flexcoders] Re: Set Button Icon at Runtime !!

2007-03-07 Thread Michael Schmalle
No, You missed what I said.. A module library that has embedded images in the class library. That is as close as you will get. I have done this before. Peace, Mike On 07 Mar 2007 06:00:21 -0800, bobrene07 [EMAIL PROTECTED] wrote: It's not possible to creat a class object at runtime with

Re: [flexcoders] Re: Set Button Icon at Runtime !!

2007-03-07 Thread Tom Chiverton
On Wednesday 07 Mar 2007, bobrene07 wrote: It's not possible to creat a class object at runtime with an image in it ? If you want, you could create a new Button from AS, use a Loader to load an image, assign the style and then addChild(), maybe. -- Tom Chiverton Helping to proactively

[flexcoders] Re: Set Button Icon at Runtime !!

2007-03-07 Thread bobrene07
Thx but i tried that, i did not get the wanted result. if i extend the button element and try to add an image with a loader, it do not display properly (the position is not right, and the image seems shady, like if it has not been on the top of the button ) and it disapear when the buttton is