quickcode
//~w~
function setColor(mc, color) {
(new Color(mc)).setRGB(color);
}
//~w~ stage init
Stage.scaleMode="noScale";
Stage.align="TL";
Stage.showMenu=false;
//~w~ stage init as3
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.showDefaultContextMenu = false;
//~w~ preloader
stop();
_root.onEnterFrame = function () {
var lb = _root.getBytesLoaded();
var tb = _root.getBytesTotal();
var pc= lb/tb;
// text = Math.round(pc*100) + "%";
if(lb == tb && tb>100) {
delete this.onEnterFrame;
_root.play();
}
}
//~w~ center mc on resize
loader_mc.onResize = function () {
this._x = Stage.width/2;
this._y = Stage.height/2;
}
Stage.addListener(loader_mc);
loader_mc.onResize();
//~w~ xml randomizer
(new Date()).getTime()