Пример использования:
import flash.display.BitmapData;
import flash.geom.Matrix;
import flash.geom.ColorTransform;
var bmp_data:BitmapData = new BitmapData(this._width,this._height,false,0);
bmp_data.draw(this,new Matrix(),new ColorTransform(),"normal",new Rectangle(0,0,this._width,this._height),true);
var name:String;
for (name in this)
if (this[name] instanceof MovieClip) {
var movie:MovieClip = this[name];
movie.unloadMovie();
delete this[name];
}
this._height-=0.5;
this.attachBitmap(bmp_data,1,"auto", true);
import flash.geom.Matrix;
import flash.geom.ColorTransform;
var bmp_data:BitmapData = new BitmapData(this._width,this._height,false,0);
bmp_data.draw(this,new Matrix(),new ColorTransform(),"normal",new Rectangle(0,0,this._width,this._height),true);
var name:String;
for (name in this)
if (this[name] instanceof MovieClip) {
var movie:MovieClip = this[name];
movie.unloadMovie();
delete this[name];
}
this._height-=0.5;
this.attachBitmap(bmp_data,1,"auto", true);
Комментариев нет:
Отправить комментарий