Wow thats great... worked perfectly Big thanks to you and Ben Stucki Thanks again Anz
--- In flexcoders@yahoogroups.com, "Douglas Knudsen" <[EMAIL PROTECTED]> wrote: > > this approach might work for you > http://blog.benstucki.net/?p=42 > Elvis ain't the only thing in Nashville, eh? > > DK > > On Nov 21, 2007 11:27 PM, Anzer <[EMAIL PROTECTED]> wrote: > > > Thanks for the reply. > > > > > > > > But it will not work for me since the icon path is coming from database > > and I can't give a static path. > > > > > > > > I have tried the following code, but that too will give a compile error > > > > > > > > var iconPath:String = "assets/" + item.IconFile.toString(); > > > > > > > > [Embed(source=iconPath)] > > > > var iconCls:Class; > > > > > > > > Please help > > > > Anz > > > > > > > > -- > Douglas Knudsen > http://www.cubicleman.com > this is my signature, like it? >