Ok, now i know that with as3 the way to assign an image is this:
[Embed("../images/loghettinoMiePagine_bianco.png")]Êprivate var someImage:Class;
var myImage:BitmapImage = new BitmapImage();
myImage.source = this.someImage;
This works but how can i change "../images/loghettinoMiePagine_bianco.png" dinamically?? i don't know how to do that
you dont have to embed the images.. just give a path to the image location in the source. or declare multiple embed classes in the same file and change the source dynamically.
somthing like this will work
Embedding assets is done at compile time.Hence you cannot have a dynamic path while embedding.What you can do is embed all the possible images into separate classes and assign the approppriate source as the case may be.But this can increase the size of the swf if there are large number of images and each one is huge sized.Another way is not to use image and use the path of the image as the source.Then you can change the path dynamically.But for this to work,you need to copy all the images to whereever you are deploying the flex app and ensure that the path is used correctly.
Hope I answered your query.