Section 1
//block_2 (saegopur_fla.block_2)
package saegopur_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
public dynamic class block_2 extends MovieClip {
public var go:SimpleButton;
public var init;
public function block_2(){
addFrameScript(0, frame1);
}
public function go_play(_arg1:MouseEvent){
play();
}
public function go_click(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.0chan.ru"), "_parent");
}
function frame1(){
if ((((init == false)) || ((init == undefined)))){
go.addEventListener(MouseEvent.MOUSE_OVER, go_play);
go.addEventListener(MouseEvent.CLICK, go_click);
init = true;
};
stop();
}
}
}//package saegopur_fla
Section 2
//MainTimeline (saegopur_fla.MainTimeline)
package saegopur_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
public dynamic class MainTimeline extends MovieClip {
public var sp:MovieClip;
public var snd:Sound;
public var init;
public var hue;
public var hmax;
public var hred;
public var hgreen;
public var hblue;
public var hspeed;
public var hphase;
public var numsnow;
public var ba:ByteArray;
public var i:int;
public var val:Number;
public var box:MovieClip;
public var togo:int;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function drawSpectrum(){
var _local1:ByteArray = new ByteArray();
SoundMixer.computeSpectrum(_local1, false, 2);
var _local2:Graphics = sp.graphics;
_local2.clear();
_local2.beginGradientFill(GradientType.LINEAR, [0xCC00, 0xAA00, 0xAA00, 0xCC00], [0.5, 0.3, 0.3, 0.5], [0, 20, 235, 0xFF]);
var _local3:int;
while (_local3 < 0x0100) {
_local2.drawRect(((_local3 - 128) * 2), 20, 1, (-20 - (Math.abs(_local1.readFloat()) * 200)));
_local3++;
};
_local2.endFill();
}
public function createSnowflake(){
var _local1:MovieClip = new MovieClip();
var _local2:Graphics = _local1.graphics;
_local2.beginFill(0xFFFFFF, 0.5);
var _local3:Number = Math.random();
_local2.drawCircle(0, 0, (3 * _local3));
_local2.endFill();
this.addChild(_local1);
_local1.x = ((Math.random() * stage.stageWidth) + 50);
_local1.y = 0;
_local1.vx = ((_local3 * Math.random()) - 0.7);
_local1.vy = (1 + (Math.random() * _local3));
_local1.type = "snow";
}
function frame1(){
if ((((init == false)) || ((init == undefined)))){
this.stage.scaleMode = StageScaleMode.NO_SCALE;
this.stage.quality = StageQuality.MEDIUM;
snd = new loopWav();
snd.play(0, 9999999999, new SoundTransform(1, 0));
init = true;
hue = 0;
hmax = 2;
hred = hmax;
hgreen = 0;
hblue = 0;
hspeed = 0.05;
hphase = 1;
numsnow = 0;
};
ba = new ByteArray();
SoundMixer.computeSpectrum(ba, true, 0);
drawSpectrum();
ba.position = 0;
i = (this.numChildren - 1);
while (i > 0) {
if (this.getChildAt(i).type == "snow"){
this.getChildAt(i).y = (this.getChildAt(i).y + this.getChildAt(i).vy);
this.getChildAt(i).x = (this.getChildAt(i).x + this.getChildAt(i).vx);
if (this.getChildAt(i).vy > this.stage.stageHeight){
this.removeChildAt(i);
};
} else {
val = Math.abs(ba.readFloat());
ba.position = (ba.position + 0x0100);
val = (val + Math.abs(ba.readFloat()));
ba.position = (ba.position - 0x0100);
val = (val * 0.6);
if (val > 0.3){
box = (this.getChildAt(i) as MovieClip);
togo = (10 - Math.ceil((14 * val)));
if (togo < 1){
togo = 1;
};
if ((((togo <= box.currentFrame)) || ((box.currentFrame == 1)))){
box.gotoAndPlay(togo);
};
};
};
i--;
};
createSnowflake();
}
}
}//package saegopur_fla
Section 3
//loopWav (loopWav)
package {
import flash.media.*;
public dynamic class loopWav extends Sound {
}
}//package