Skip to main content
تقنية المعلومات
Known Participant
July 15, 2018
Question

Problem saving picture in phone

  • July 15, 2018
  • 1 reply
  • 265 views

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");

}

This topic has been closed for replies.

1 reply

تقنية المعلومات
Known Participant
July 17, 2018

Welcome where geniuses and programmers ???

ankushr40215001
Inspiring
July 18, 2018

Hi there,

Can you please elaborate this issue a little more?

Are you unable to export a movieclip to phone?

Thanks,

Ankush