
Код AS3:
package
{
import flash.display.*;
[SWF(width='550', height='400', backgroundColor='#123456', frameRate='25')]
public class DocInsertImage extends Sprite
{
[Embed(source = 'image.jpg')]
private var Pic:Class,
bmd:BitmapData,
bm:Bitmap;
public function DocInsertImage():void
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.showDefaultContextMenu = false;
bmd = new Pic().bitmapData;
bm = new Bitmap(bmd);
addChild(bm);
}
}
}
http://www.murmadillo.tut.su/html/in...wing-flex.html