private var so:SharedObject = SharedObject.getLocal("test");
private var myBitmapDataObject:BitmapData = new BitmapData(150, 150, false, 0xFF0000);
so.data.pic = myBitmapDataObject.getPixels(myBitmapDataObject.rect);
so.flush();
trace("SharedObject is " + so.size + " bytes");
if (so.data.pic is ByteArray) {
so.data.pic.position = 0;
myBitmapDataObjectsetPixels(myBitmapDataObject.rect, so.data.pic);
var bt:Bitmap = new Bitmap(myBitmapDataObject);
addChild(bt);
}