📄 kingdamcdocumentclass.as
字号:
package {
import flash.display.MovieClip;
public class KingdaMCDocumentClass extends MovieClip {
private var tempMC:KingdaMC;
//private var BigKingda;
private var MAX_MCS:int = 10;
public function KingdaMCDocumentClass() {
var i:int;
for (i = 0; i < MAX_MCS; i++) {
tempMC = new KingdaMC ();
tempMC.scaleX = Math.random();
tempMC.scaleY = tempMC.scaleX;
tempMC.x = Math.round(Math.random() * (this.stage.stageWidth - tempMC.width));
tempMC.y = Math.round(Math.random() * (this.stage.stageHeight - tempMC.height));
addChild(tempMC);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -