[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.61 KiB) ●
movieClip 2 snow_mc {
}
movieClip 4 loadingBar {
}
instance loadingBar of movieClip 4 loadingBar {
onClipEvent (load) {
_root.loadingBar._xscale = 100;
percent = 0;
}
onClipEvent (enterFrame) {
_root._quality = 'BEST';
percent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.loadingBar._xscale = 100 - percent;
if (percent >= 100) {
_root.play();
} else {
_root.stop();
}
}
}
movieClip 53 {
}
// unknown tag 88 length 106
frame 2 {
function createSnow(container, numberOfFlakes) {
var v4 = 0;
while (v4 < numberOfFlakes) {
var v2 = container.attachMovie('snow_mc', 'snow' + container.getNextHighestDepth(), container.getNextHighestDepth());
v2.r = 1 + Math.random() * speed;
v2.k = -Math.PI + Math.random() * Math.PI;
v2.rad = 0;
var v3 = random(50) + 50;
v2._xscale = v3;
v2._yscale = v3;
v2._alpha = random(100) + 50;
v2._x = random(movieWidth);
v2._y = random(movieHeight);
v2.onEnterFrame = function () {
this.rad += (this.k / 180) * Math.PI;
this._x -= Math.cos(this.rad) + wind;
this._y += speed;
if (this._y >= movieHeight) {
this._y = -5;
}
if (this._x >= movieWidth) {
this._x = 1;
}
if (this._x <= 0) {
this._x = movieWidth - 1;
}
};
++v4;
}
}
stop();
var speed = 2;
var movieWidth = 710;
var movieHeight = 800;
var wind = -1;
createSnow(_root, 100);
}
movieClip 57 {
}
movieClip 60 {
}
movieClip 65 {
}
movieClip 66 {
}
movieClip 67 {
}
movieClip 198 {
}
// unknown tag 88 length 127