[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 pushed.

Did anyone ever created a custom icon component, and load the image at
runtime ??

thx

bob



--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> 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 facilitate second-generation functionalities
> On: http://thefalken.livejournal.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




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 facilitate second-generation functionalities
On: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/kOt0.A/gOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


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 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
>
> On 3/7/07, bobrene07 <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > i don't want to embed my image in my SWF, I want to set my button Icon
> > image at Runtime.
> >
> > Do you know how i could possibly do that ??
> >
> > Thx for ur help
> >
> > Bob
> >
> >
> >
>
>
>
> --
> Teoti Graphix
> http://www.teotigraphix.com
>
> Blog - Flex2Components
> http://www.flex2components.com
>
> You can find more by solving the problem then by 'asking the question'.
>

 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


[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
> 
> On 3/7/07, bobrene07 <[EMAIL PROTECTED]> wrote:
> >
> >   Hello,
> >
> > i don't want to embed my image in my SWF, I want to set my button Icon
> > image at Runtime.
> >
> > Do you know how i could possibly do that ??
> >
> > Thx for ur help
> >
> > Bob
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix
> http://www.teotigraphix.com
> 
> Blog - Flex2Components
> http://www.flex2components.com
> 
> You can find more by solving the problem then by 'asking the question'.
>