Hi.I have the problem with the embed tag.
When I try to do this
It works fine.
But when I try this
It doesn't work.
So how can I be able to embed the images whose path are coming at runtime from a variable .
Or any other solution for embedding an images directly in flash whose paths are coming from xml.
When using [Embed] metadata tag, the picture will be embedded into your swf at compile time, not runtime.
To load a picture at runtime, create an Image instance and load the corressponding URL
var img:Image = new Image(); img.load( "images/21.jpg" );