Embedding assets

0 views
Skip to first unread message

uday

unread,
Jul 3, 2008, 8:53:53 AM7/3/08
to bangaloreFx
Hi All,


I am trying embed different images to [embed] property...
here is my code

public var imageUrl:String = "defaultLogo.png";
[Embed(source="../companyLogos/"+imageUrl)]


please tell me how can we add images at runtime to "embed source".

thanks in advance
uday

Venkat Viswanathan

unread,
Jul 9, 2008, 3:07:19 PM7/9/08
to banga...@googlegroups.com
You cannot embed images at runtime. Embedding is only used when you know the image path at compile time.

If you are going to get the image name/path in runtime, just set the souce of image class to the path. No need of using EMBED.

Regards,
Venkat
Reply all
Reply to author
Forward
0 new messages