Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

set dynamic path at runtime

Avatar

Level 1
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
1 Reply

Avatar

Level 2
Hi,



You meant compile time right? Embed is the tag which will
embed the resources in the SWF at compile time.

I don't think what ever you are trying to do is possible
because "+" is an operator and is executed during run time, where
as the Embed is a meta tag which is executed at compile time.



Just my thought :)



Hope this helps.