Is it possible to store a Image in a SharedObject in Flash? It would be nice if it would work. I need to "store" Images locally but it seems not to be supported by Flash... So I 'ld like to put those images in a SharedObject that can be saved... but does it work with images?
I tried it with a Bitmap but if I want to read and add it to the stage it says that the Object can't be converted to a Bitmap...
var image:Bitmap = //some awesome image;
sharedObject = SharedObject.getLocal("img");
sharedObject.data.img = image;
sharedObject.flush();
Error here ->
sharedObject = SharedObject.getLocal("img");
addChild(Bitmap(sharedObject.data.img));
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…