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

