1. 关于 保存图片。。
private function onClick():void
{
var bmpData:BitmapData = new BitmapData(chart.width,chart.height);
bmpData.draw(chart,new Matrix());
bmpImage = new Bitmap(bmpData);
var jpg:JPEGEncoder = new JPEGEncoder();
var byt:ByteArray = jpg.encode(bmpData);
var str : String;
var datestr : Date = new Date();
str = datestr.fullYear.toString() + "-" + (datestr.month+1).toString() + "-" + datestr.date.toString() + "-" + datestr.hours.toString() + "-" + datestr.minutes.toString();
file.save(byt,str);
}