--- In [email protected], Brandon Krakowsky <[EMAIL PROTECTED]> wrote: > > I've embedded some images like so: > > [Embed(source="images/image1.png")] > private var image1:Class; > > [Embed(source="images/image2.png")] > private var image2:Class; > > I can't seem to reference these class names from a String like so: > > override public function set data(value:Object):void { > img = new Image; > img.source = getDefinitionByName(value.icon) as Class; //getDefinitionByName is part of flash.utils package > img.width = 22; > img.height = 22; > addChild(img); > } > > I also tried the following: > value.icon as Class > Class(value.icon)
Why not just use an iconFunction? -Amy

