Sure switching on the type of an argument to a setter would work, for some
reason I thought the 'source' on an image was a style instead of a property.
I try to expose as many styles as possibly for custom components so they're
easily skinnable in CSS, but I guess there's no way to expose a style that
allows multiple types. Would have to have iconClass and iconPath styles if I
wanted it to be flexible for embedded or runtime assets.

Thanks for the reality check on SWFLoader, I was off in the weeds.

On Sat, Apr 5, 2008 at 3:33 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:

>    Oooops.  I'd best slow down a bit.
>
> Tracy
>
>
>  ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Rick Winscot
> *Sent:* Friday, April 04, 2008 9:55 PM
> *To:* [email protected]
> *Subject:* RE: [flexcoders] How to display a button's icon from a remote
> source?
>
>
>
> Tracy… Dr. McCoy of Star Trek fame said it best.
>
>
>
> "Damnit Jim, I'm a –class– not an externally loaded asset." – Through the
> Loader Class
>
>
>
> …universal translation…
>
>
>
> The Icon takes a class as an argument… not an externally loadable asset.
> Dynamically loading an image (for a button) is more difficult – but still
> possible. Ben Stucki has done some marvelous work in that arena. Ping me off
> line if you need the hook up.
>
>
>
>  Rick Winscot
>
>
>
>
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Tracy Spratt
> *Sent:* Friday, April 04, 2008 9:11 PM
> *To:* [email protected]
> *Subject:* RE: [flexcoders] How to display a button's icon from a remote
> source?
>
>
>
> Just set source="[url]"
>
> Tracy
>
>
>  ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *guillaumeracine
> *Sent:* Friday, April 04, 2008 7:20 PM
> *To:* [email protected]
> *Subject:* [flexcoders] How to display a button's icon from a remote
> source?
>
>
>
> Hi,
> i know we can set the icon of a button using this syntax:
> <mx:Button label="myBtn" icon="@Embed(source='assets/slideshow/1.png')"/>
>
> but my image icon is on a remote server...
> How i can set the icon of a button from a remote source?
>
>  
>

Reply via email to