[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.Frame 5284 (87 B)
k = 0;
while (k < 4) {
duplicateMovieClip (_root.snow, "snow" + k, k);
k++;
}
Instance of Symbol 71 MovieClip "snow" in Frame 5284 (643 B)
onClipEvent (load) {
movieWidth = 550;
movieHeight = 400;
i = 1 + (Math.random() * 2);
k = -3.14159265358979 + (Math.random() * Math.PI);
this._xscale = (this._yscale = 50 + (Math.random() * 100));
this._alpha = 75 + (Math.random() * 100);
this._x = -10 + (Math.random() * movieWidth);
this._y = -10 + (Math.random() * movieHeight);
}
onClipEvent (enterFrame) {
rad = rad + ((k / 180) * Math.PI);
this._x = this._x - Math.cos(rad);
this._y = this._y + i;
if (this._y >= movieHeight) {
this._y = -5;
}
if ((this._x >= movieWidth) || (this._x <= 0)) {
this._x = -10 + (Math.random() * movieWidth);
this._y = -5;
}
}
Frame 6815 (88 B)
k = 0;
while (k < 20) {
duplicateMovieClip (_root.snow, "snow" + k, k);
k++;
}
Symbol 4 MovieClip Frame 598 (8 B)
stop();