External image files come in as an instance of Bitmap and are therefore not convertible to a Class.
I would recommend a custom TreeItemRenderer that expects its icon to be externally loaded. You can steal most of the code from the FlexStore examples for the TileList renderer. -Alex ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shaun Sent: Thursday, March 22, 2007 10:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Load Tree Icon at Runtime Thanks for the suggestion Tom. Quick question: Would that cause the image to be cached twice by the browser - once in my website, and once in my flex app when I load it via runtime css. This is what I'm actually trying to avoid. If the runtime css doesn't load it again because the image was already cached when the user initially visited my site, then your answer will work perfectly. thanks again, shaun --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Thursday 22 Mar 2007, Shaun wrote: > > Is this just not possible? > > I would think you could set a styleName for the item, and load a runtime > stylesheet. > > -- > Tom Chiverton > Helping to dramatically coordinate cutting-edge patterns > On: http://thefalken.livejournal.com <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. >