[원문]: http://marumushi.com/tags/as3
package {
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
public class Test extends MovieClip {
// be sure this is pointing to an image in your hardrive
[Embed(source='c:\images\whatsup.jpg')] public var MyImage:Class;
public function Test() {
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
var img:MyImage = new MyImage();
addChild(img);
}
}
}
- Posted
- Filed under Action Script