Copy link to clipboard
Copied
Problem saving picture in phone
var imgFile: URLRequest;
var img: MovieClip;
var imgLoader: Loader;
var file: FileReference;
import flash.display.MovieClip;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.*;
save_mc.addEventListener(MouseEvent.CLICK, ImageSave);
var transparent: Boolean = true;
var fillColor: Number = 0x00FFFFFF;
function ImageSave(image: MouseEvent): void
{
newwind.visible = true;
newwind.play();
var myBitmapData: BitmapData = new BitmapData(flashmo_pic.getChildAt(0)
.width, flashmo_pic.getChildAt(0)
.height);
myBitmapData.draw(flashmo_pic.getChildAt(0));
var jpgEncoder: JPGEncoder = new JPGEncoder();
var imgByteData: ByteArray = jpgEncoder.encode(myBitmapData);
file = new FileReference();
var fileReference: FileReference = new FileReference();
file.save(imgByteData, "ss.jpg");
}
Copy link to clipboard
Copied
Welcome where geniuses and programmers ???
Copy link to clipboard
Copied
Hi there,
Can you please elaborate this issue a little more?
Are you unable to export a movieclip to phone?
Thanks,
Ankush
Find more inspiration, events, and resources on the new Adobe Community
Explore Now