Section 1
//MainTimeline (giveittome_fla.MainTimeline)
package giveittome_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var version;
public var my_menu:ContextMenu;
public var music:Music;
public var soundChannel:SoundChannel;
public var amagami:Sprite;
public var i;
public var bytes:ByteArray;
public var max:Array;
public var bmp:BitmapData;
public var thissong;
public var anchor:Sprite;
public var bars:Array;
public var channels:Array;
public var credit;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function openSClink(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest("https://www.youtube.com/watch?v=VDP0BxYek5s"));
}
function frame3(){
update();
gotoAndPlay(2);
}
function frame1(){
stage.align = StageAlign.TOP_LEFT;
my_menu = new ContextMenu();
my_menu.hideBuiltInItems();
version = new ContextMenuItem("Give It To Me rev.1");
version.enabled = false;
credit = new ContextMenuItem("Rubber NAND 2015");
credit.enabled = false;
thissong = new ContextMenuItem("Kylie Minogue - Give It To Me");
thissong.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openSClink);
thissong.separatorBefore = true;
my_menu.customItems.push(version, credit, thissong);
contextMenu = my_menu;
soundChannel = new SoundChannel();
music = new Music();
soundChannel = music.play(0, int.MAX_VALUE);
anchor = new Sprite();
stage.addChild(anchor);
bars = new Array();
i = 0;
while (i < 0x0200) {
bars.push(new Sprite());
bars[i].x = i;
bars[i].y = 240;
bars[i].graphics.beginFill(16724889, 1);
bars[i].graphics.drawRect(0, -240, 1, 480);
bars[i].graphics.endFill();
bars[i].alpha = (1 - Math.pow((((i < 0x0100)) ? (0xFF - i) : (i - 0xFF) / 0x0100), 2));
anchor.addChild(bars[i]);
i++;
};
bytes = new ByteArray();
channels = new Array();
max = new Array();
i = 0;
while (i < 0x0200) {
channels[i] = 0;
max[i] = 0.5;
i++;
};
amagami = new Sprite();
bmp = new SS(927, 480);
amagami.graphics.beginBitmapFill(bmp);
amagami.graphics.drawRect(0, 0, 1854, 480);
amagami.graphics.endFill();
stage.addChild(amagami);
}
function frame2(){
update();
}
public function update(){
amagami.x = (((amagami.x - 1))>-927) ? (amagami.x - 1) : 0;
soundUpdate();
}
public function soundUpdate(){
var _local1:*;
SoundMixer.computeSpectrum(bytes, true, 0);
i = 0;
while (i < 0x0200) {
_local1 = bytes.readFloat();
max[i] = ((_local1 > max[i])) ? _local1 : max[i];
channels[i] = ((_local1 > channels[i])) ? _local1 : (channels[i] * 0.95);
bars[((i)<0x0100) ? (0xFF - i) : i].scaleY = (0.1 + (channels[i] / max[i]));
i++;
};
}
}
}//package giveittome_fla
Section 2
//Music (Music)
package {
import flash.media.*;
public dynamic class Music extends Sound {
}
}//package
Section 3
//SS (SS)
package {
import flash.display.*;
public dynamic class SS extends BitmapData {
public function SS(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package