0
我試圖在舞臺上製作一個簡單的方形電影剪輯,看起來我沒有嘗試過任何東西......舞臺上沒有任何東西出現!我的代碼:爲什麼我無法制作可見的動畫片段?
var mc:MovieClip = new MovieClip();
mc.x = 0;
mc.y = 0;
mc.width = 200;
mc.height = 200;
mc.opaqueBackground = 0xCCCCCC;
// new ColorTransform object
var obj_color:ColorTransform = new ColorTransform();
// setting the new color we want (in this case, blue)
obj_color.color = 0x0000ff;
// applying the transform to our movieclip (this will affect the whole object including strokes)
mc.transform.colorTransform = obj_color;
this.stage.addChild(mc);
mc.x = 0;
mc.y = 0;
爲什麼我的電影剪輯不出現在舞臺上?