Is this just not possible? I keep trying to get an runtime image cast as Class so that I can set it to the icon field of a tree (or other controls for that matter), but I've had no success.
An embedded image is accessible as a Class, so it would seem that a runtime image could easily be handled the same way... shaun --- In [email protected], "Shaun" <[EMAIL PROTECTED]> wrote: > > I'm trying to load a tree icon at runtime (don't want to embed because > it will have already been cached by the browser before the flex app). > I have a function like: > > private function treeIcon(item:Object):Class > { > if (item is CustomObjectVO) > { > ???? > } > } > > I can't seem to figure out what to replace ???? with. I've tried > various ways of using an Image control, but the tree expects a type of > Class and I can't seem to make that happen. > > Any thoughts? > Thanks, > Shaun >

