[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Combined Code (1.47 KiB) ●
movieClip 2 SnowFlake {
}
// unknown tag 88 length 64
movieClip 5 BigFlake {
}
movieClip 7 ice {
}
movieClip 8 Symbol 1 {
}
frame 1 {
function cargando() {
var v4;
var v3;
var v2;
v4 = _root.getBytesTotal();
v3 = _root.getBytesLoaded();
v2 = Math.floor(v3 * 100 / v4);
porcentaje_txt.text = v2 + ' %';
barra_mc.gotoAndStop(v2);
if (v3 == v4) {
clearInterval(hiloPrecarga);
play();
}
}
var hiloPrecarga = setInterval(cargando, 1);
stop();
}
frame 2 {
stop();
}
frame 2 {
function randRange(min, max) {
var v1 = Math.floor(Math.random() * (max - min + 1)) + min;
return v1;
}
function moveSnow() {
if (this.moving) {
this._y += this.speed;
this._x += Math.cos(this._y / 10);
if (this.hitTest(_root.rect_mc.Ice_mc)) {
this.moving = false;
this.stopCounter = 0;
}
if (this._y > 599) {
removeMovieClip(this);
}
} else {
++this.stopCounter;
if (this.stopCounter > 500) {
this.onEnterFrame = null;
this.removeMovieClip();
}
}
}
function createSnow() {
i = _root.getNextHighestDepth();
tmp = _root.attachMovie('SnowFlake', 'snowflake_mc' + i, i);
tmp._x = randRange(1, 800);
tmp._y = -1;
tmp._alpha = randRange(50, 100);
tmp.speed = randRange(1, 10);
tmp._xscale = randRange(70, 110);
tmp._yscale = tmp._xscale;
tmp.moving = true;
tmp.onEnterFrame = moveSnow;
}
control_mc.onEnterFrame = function () {
createSnow();
};
}