Section 1
//MainTimeline (mdance_fla.MainTimeline)
package mdance_fla {
import flash.media.*;
import flash.display.*;
import flash.events.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var rightrect:Shape;
public var sound;
public var leftrect:Shape;
public var soundOut;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14);
}
function frame10(){
updaterects();
}
function frame14(){
gotoAndPlay(2);
updaterects();
}
function frame12(){
updaterects();
}
function frame3(){
updaterects();
}
function frame6(){
updaterects();
}
function frame7(){
updaterects();
}
function frame13(){
updaterects();
}
function frame4(){
updaterects();
}
function frame5(){
updaterects();
}
function frame9(){
updaterects();
}
function frame1(){
sound = new guitars();
soundOut = new SoundChannel();
soundOut = sound.play(0, int.MAX_VALUE);
leftrect = new Shape();
leftrect.graphics.beginFill(7447444);
leftrect.graphics.drawRect(0, 0, 93, 435);
leftrect.graphics.endFill();
addChild(leftrect);
rightrect = new Shape();
rightrect.graphics.beginFill(15033958);
rightrect.graphics.drawRect(607, 0, 93, 435);
rightrect.graphics.endFill();
addChild(rightrect);
}
function frame8(){
updaterects();
}
function frame2(){
updaterects();
}
function frame11(){
updaterects();
}
public function updaterects(){
leftrect.height = (435 * soundOut.leftPeak);
rightrect.height = (435 * soundOut.rightPeak);
trace(leftrect);
trace(rightrect);
}
}
}//package mdance_fla
Section 2
//guitars (guitars)
package {
import flash.media.*;
public dynamic class guitars extends Sound {
}
}//package