Took your first suggestion. used a subclasses of image as a skin. works like a charm.
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > I don't have any example handy. Someone else might, but I wouldn't be > suprised if nobody does because the application startup performance > impact of using externall images as skins is significant. > > I encourage you to pursue runtime CSS embedded assets. > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of walsaadie > Sent: Friday, August 24, 2007 2:34 PM > To: [email protected] > Subject: [flexcoders] Re: Loading external assets at runtime for > component skinning > > > > Thanks for your reply. any chance of an example on how to use the > image subclass as a skin. i can't find it documented anywhere. > > Thanks > > --- In [email protected] <mailto:flexcoders% 40yahoogroups.com> > , "Alex Harui" <aharui@> wrote: > > > > Skins are embedded assets. You can choose them dynamically by > selecting > > different CSS-based SWFs, but due to the sheer overhead of external > > loading, we don't put in code that by default. > > > > You can create a custom class that subclasses mx:Image and use that > as a > > skin. > > > > ________________________________ > > > > From: [email protected] <mailto:flexcoders% 40yahoogroups.com> > > [mailto:[email protected] <mailto:flexcoders% 40yahoogroups.com> > ] On > > Behalf Of walsaadie > > Sent: Friday, August 24, 2007 10:01 AM > > To: [email protected] <mailto:flexcoders% 40yahoogroups.com> > > Subject: [flexcoders] Loading external assets at runtime for > component > > skinning > > > > > > > > Not sure if this can be done without overriding the framework. I'm > > experimenting with deferent ways to skin components. My question, > is it > > possible to somehow pass a url to an external graphic to be loaded > and > > used as a skin for a component? For example take the button > component. > > If i pass a url through xml or some other method, would it be > possible > > to load the graphic at runtime to be used as a skin?. > > > > I've explored various methods using css sheets and binding images > > programmatically. > > Using the style manager to load and unload various style classes to > > achieve the objective > > But all require the graphic to be embedded before the swf is > compiled. > > I'm not sure if I'm missing something. Like creating a stylesheet > at > > runtime and loading the graphics from that point. I currently hit a > > brick wall. I'd appreciate it if you folks can point me to the > right > > direction. > > >

