Frame 1
function drawRectangle(target_mc, boxWidth, boxHeight) {
target_mc.moveTo(0, 0);
target_mc.lineTo(boxWidth, 0);
target_mc.lineTo(boxWidth, boxHeight);
target_mc.lineTo(0, boxHeight);
target_mc.lineTo(0, 0);
target_mc.endFill();
}
var sw = 1024;
var sh = 128;
var mc = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
var temp_mx = (new flash.geom.Matrix());
temp_mx.createGradientBox(sw, sh, 0, 0, 0);
mc.beginGradientFill("linear", [65501, 16768256, 16711850], [100, 100, 100], [0, 127, 255], temp_mx, "reflect", "linearRGB");
drawRectangle(mc, sw, sh);
var snd = new Sound(mc);
snd.attachSound("m1");
snd.start();
var wave = 0;
var sto = {};
onEnterFrame = function () {
wave = wave + (((mc._xmouse - (sw * 0.5)) / sw) * 0.1);
wave = wave % (Math.PI*2);
temp_mx.createGradientBox(sw, sh, 0, ((sw * wave) / Math.PI) * 2, 0);
mc.beginGradientFill("linear", [65501, 16768256, 16711850], [100, 100, 100], [0, 127, 255], temp_mx, "reflect", "linearRGB");
drawRectangle(mc, sw, sh);
sto.ll = 50 + (50 * Math.sin(wave));
sto.lr = 50 + (50 * Math.cos(wave));
sto.rr = 50 - (50 * Math.sin(wave));
sto.rl = 50 - (50 * Math.cos(wave));
snd.setTransform(sto);
};