Section 1
//Spia (Spia)
package {
import adobe.utils.*;
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Spia extends MovieClip {
public function Spia(){
addFrameScript(0, frame1);
}
public function Spengi(){
alpha = 0;
acceso = false;
}
function frame1(){
}
public function Accendi(){
alpha = 1;
acceso = true;
}
}
}//package
Section 2
//Timeline0_18c579ee8b83ea44a167f399b33a628 (Timeline0_18c579ee8b83ea44a167f399b33a628)
package {
import adobe.utils.*;
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline0_18c579ee8b83ea44a167f399b33a628 extends MovieClip {
public var loaded:Boolean;
public var pp10:SimpleButton;
public var pp1:SimpleButton;
public var pp2:SimpleButton;
public var pp3:SimpleButton;
public var pp4:SimpleButton;
public var pp5:SimpleButton;
public var pp6:SimpleButton;
public var pp7:SimpleButton;
public var pp8:SimpleButton;
public var ba:ByteArray;
public var pSIG:SimpleButton;
public var rr:Rectangle;
public var pp9:SimpleButton;
public var ch:SoundChannel;
public var spia2:Spia;
public var spia1:Spia;
public var spia3:Spia;
public var SIG;
public var pRMS:SimpleButton;
public var theSound:Sound;
public var pFFT:SimpleButton;
public var loadingLabel:TextField;
public var sp10:Spia;
public var bm2:Bitmap;
public var bm3:Bitmap;
public var bm1:Bitmap;
public var sp2:Spia;
public var sp3:Spia;
public var sp4:Spia;
public var sp5:Spia;
public var sp6:Spia;
public var sp7:Spia;
public var sp8:Spia;
public var sp9:Spia;
public var RMS;
public var sp1:Spia;
public var tps:Sprite;
public var FFT;
public var bmd2:BitmapData;
public var bmd3:BitmapData;
public var bmd1:BitmapData;
public var mvv:MovieClip;
public function Timeline0_18c579ee8b83ea44a167f399b33a628(){
addFrameScript(0, frame1, 1, frame2);
}
public function pp4fu(_arg1:Event){
sp4.Accendi();
playFile("4.mp3");
}
public function Intensity(_arg1:Number){
s = 1;
v = (_arg1 / 400);
if (s == 0){
r = (g = (b = v));
return;
};
_arg1 = (_arg1 / 60);
ii = Math.floor(_arg1);
f = (_arg1 - ii);
p = (v * (1 - s));
q = (v * (1 - (s * f)));
t = (v * (1 - (s * (1 - f))));
switch (ii){
case 0:
r = v;
g = t;
b = p;
break;
case 1:
r = q;
g = v;
b = p;
break;
case 2:
r = p;
g = v;
b = t;
break;
case 3:
r = p;
g = q;
b = v;
break;
case 4:
r = t;
g = p;
b = v;
break;
default:
r = v;
g = p;
b = q;
break;
};
r = Math.round((r * 0xFF));
g = Math.round((g * 0xFF));
b = Math.round((b * 0xFF));
color = (((r << 16) | (g << 8)) | b);
return (color);
}
public function SpengiSpieNum(){
sp1.Spengi();
sp2.Spengi();
sp3.Spengi();
sp4.Spengi();
sp5.Spengi();
sp6.Spengi();
sp7.Spengi();
sp8.Spengi();
sp9.Spengi();
sp10.Spengi();
}
public function pp10f(_arg1:Event){
SpengiSpieNum();
}
public function pSIGf(_arg1:Event){
SpengiSpie();
bm2.visible = false;
bm3.visible = false;
}
public function pRMSf(_arg1:Event){
SpengiSpie();
bm2.visible = false;
bm1.visible = false;
}
public function pp1f(_arg1:Event){
SpengiSpieNum();
}
public function ioErrorHandler(_arg1:IOErrorEvent):void{
}
public function pp2f(_arg1:Event){
SpengiSpieNum();
}
function frame1(){
loaded = false;
addEventListener(Event.ENTER_FRAME, onFrameS);
}
function frame2(){
SpengiSpie();
SpengiSpieNum();
spia1.Accendi();
SIG = 1;
FFT = 2;
RMS = 3;
eff = SIG;
pSIG.addEventListener(MouseEvent.MOUSE_DOWN, pSIGf);
pSIG.addEventListener(MouseEvent.MOUSE_UP, pSIGfu);
pFFT.addEventListener(MouseEvent.MOUSE_DOWN, pFFTf);
pFFT.addEventListener(MouseEvent.MOUSE_UP, pFFTfu);
pRMS.addEventListener(MouseEvent.MOUSE_DOWN, pRMSf);
pRMS.addEventListener(MouseEvent.MOUSE_UP, pRMSfu);
theSound = new Sound();
request = new URLRequest("1.mp3");
theSound.load(request);
ch = theSound.play();
sp1.Accendi();
pp1.addEventListener(MouseEvent.MOUSE_DOWN, pp1f);
pp1.addEventListener(MouseEvent.MOUSE_UP, pp1fu);
pp2.addEventListener(MouseEvent.MOUSE_DOWN, pp2f);
pp2.addEventListener(MouseEvent.MOUSE_UP, pp2fu);
pp3.addEventListener(MouseEvent.MOUSE_DOWN, pp3f);
pp3.addEventListener(MouseEvent.MOUSE_UP, pp3fu);
pp4.addEventListener(MouseEvent.MOUSE_DOWN, pp4f);
pp4.addEventListener(MouseEvent.MOUSE_UP, pp4fu);
pp5.addEventListener(MouseEvent.MOUSE_DOWN, pp5f);
pp5.addEventListener(MouseEvent.MOUSE_UP, pp5fu);
pp6.addEventListener(MouseEvent.MOUSE_DOWN, pp6f);
pp6.addEventListener(MouseEvent.MOUSE_UP, pp6fu);
pp7.addEventListener(MouseEvent.MOUSE_DOWN, pp7f);
pp7.addEventListener(MouseEvent.MOUSE_UP, pp7fu);
pp8.addEventListener(MouseEvent.MOUSE_DOWN, pp8f);
pp8.addEventListener(MouseEvent.MOUSE_UP, pp8fu);
pp9.addEventListener(MouseEvent.MOUSE_DOWN, pp9f);
pp9.addEventListener(MouseEvent.MOUSE_UP, pp9fu);
pp10.addEventListener(MouseEvent.MOUSE_DOWN, pp10f);
pp10.addEventListener(MouseEvent.MOUSE_UP, pp10fu);
bmd1 = new BitmapData(189, 128, true, 0);
bm1 = new Bitmap(bmd1);
bmd2 = new BitmapData(189, 128, true, 0);
bm2 = new Bitmap(bmd2);
bmd3 = new BitmapData(189, 128, true, 0);
bm3 = new Bitmap(bmd3);
bm1.x = -15;
bm1.y = 4;
bm2.x = -15;
bm2.y = 4;
bm3.x = -14;
bm3.y = 4;
bm1.visible = true;
bm2.visible = false;
bm3.visible = false;
mvv.addChild(bm1);
mvv.addChild(bm2);
mvv.addChild(bm3);
ba = new ByteArray();
oldLev = 0;
addEventListener(Event.ENTER_FRAME, onFrame);
tps = new Sprite();
rr = new Rectangle(0, 0, 189, 128);
stop();
}
public function pp2fu(_arg1:Event){
sp2.Accendi();
playFile("2.mp3");
}
public function pp3fu(_arg1:Event){
sp3.Accendi();
playFile("3.mp3");
}
public function pp3f(_arg1:Event){
SpengiSpieNum();
}
public function pp4f(_arg1:Event){
SpengiSpieNum();
}
public function pp1fu(_arg1:Event){
sp1.Accendi();
playFile("1.mp3");
}
public function onFrame(_arg1:Event){
if (eff == FFT){
SoundMixer.computeSpectrum(ba, true, 0);
bmd2.fillRect(rr, 0);
tps.width = 189;
tps.graphics.clear();
tps.graphics.beginFill(0, 0);
tps.graphics.endFill();
tps.graphics.lineStyle(1, 0xFFFFFF, 1);
tps.graphics.moveTo(0, (128 - lev));
oldPos = 0;
d = 0;
lev = (64 + (64 * ba.readFloat()));
lev = ba.readFloat();
lev = (1 - ((1 - lev) * (1 - lev)));
lev = ((64 * lev) + 64);
tps.graphics.moveTo(0, (189 - lev));
ind = 0;
while (ind < 253) {
lev = ba.readFloat();
lev = (1 - ((1 - lev) * (1 - lev)));
lev = ((100 * lev) + 64);
pos = Math.floor(((189 * ind) / 254));
if (oldPos != pos){
tps.graphics.lineTo(pos, (189 - lev));
oldPos = pos;
};
ind++;
};
bmd2.draw(tps);
} else {
if (eff == SIG){
SoundMixer.computeSpectrum(ba, false, 0);
bmd1.fillRect(rr, 0);
tps.width = 189;
tps.graphics.clear();
tps.graphics.beginFill(0, 0);
tps.graphics.endFill();
tps.graphics.lineStyle(1, 0xFFFFFF, 1);
lev = (64 + (64 * ba.readFloat()));
tps.graphics.moveTo(0, (128 - lev));
oldPos = 0;
ind = 0;
while (ind < 254) {
lev = (64 + (64 * ba.readFloat()));
pos = Math.floor(((189 * ind) / 254));
if (oldPos != pos){
tps.graphics.lineTo(pos, (128 - lev));
oldPos = pos;
};
ind++;
};
bmd1.draw(tps);
} else {
color = 4294967295;
SoundMixer.computeSpectrum(ba, true, 0);
lev = 0;
ind = 0;
while (ind < 0x0200) {
lev = (lev + Math.abs(ba.readFloat()));
ind++;
};
lev = (50 * (ch.leftPeak + ch.rightPeak));
tps.graphics.clear();
tps.width = 3;
tps.graphics.lineStyle(1, 0xFFFFFF, 1);
m = new Matrix();
m.tx = 183;
tps.graphics.moveTo(0, (128 - oldLev));
tps.graphics.lineTo(2, (128 - lev));
tps.x = (bmd3.width - 1);
bmd3.draw(tps, m);
bmd3.scroll(-3, 0);
oldLev = lev;
};
};
}
public function pp9fu(_arg1:Event){
sp9.Accendi();
playFile("9.mp3");
}
public function pSIGfu(_arg1:Event){
spia1.Accendi();
eff = SIG;
bm1.visible = true;
}
public function pp5f(_arg1:Event){
SpengiSpieNum();
}
public function playFile(_arg1:String):void{
var s = _arg1;
request = new URLRequest(s);
try {
ch.stop();
;
theSound = new Sound();
theSound.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
theSound.load(request);
ch = theSound.play(0, 999);
} catch(error:Error) {
};
}
public function pFFTfu(_arg1:Event){
spia2.Accendi();
eff = FFT;
bm2.visible = true;
}
public function pp8fu(_arg1:Event){
sp8.Accendi();
playFile("8.mp3");
}
public function pp6f(_arg1:Event){
SpengiSpieNum();
}
public function pp8f(_arg1:Event){
SpengiSpieNum();
}
public function pp7f(_arg1:Event){
SpengiSpieNum();
}
public function pp10fu(_arg1:Event){
sp10.Accendi();
playFile("10.mp3");
}
public function onFrameS(_arg1:Event){
var _local2:*;
var _local3:*;
if (!(loaded)){
_local2 = root.loaderInfo.bytesTotal;
_local3 = root.loaderInfo.bytesLoaded;
if (_local3 == _local2){
loaded = true;
gotoAndStop(2);
};
};
}
public function pp7fu(_arg1:Event){
sp7.Accendi();
playFile("7.mp3");
}
public function pp9f(_arg1:Event){
SpengiSpieNum();
}
public function pp6fu(_arg1:Event){
sp6.Accendi();
playFile("6.mp3");
}
public function SpengiSpie(){
spia1.Spengi();
spia2.Spengi();
spia3.Spengi();
}
public function pFFTf(_arg1:Event){
SpengiSpie();
bm3.visible = false;
bm1.visible = false;
}
public function pp5fu(_arg1:Event){
sp5.Accendi();
playFile("5.mp3");
}
public function pRMSfu(_arg1:Event){
spia3.Accendi();
eff = RMS;
bm3.visible = true;
}
}
}//package