Combined Code
// unknown tag 88 length 88
movieClip 6 arrow {
}
frame 1 {
function openSong() {
getURL('http://www.youtube.com/watch?v=j0h2u87JwyA', '_blank');
}
function openAnime() {
getURL('http://myanimelist.net/anime/11879/Oni_Chichi:_Re-born', '_blank');
}
function dead() {}
stop();
var total;
var loaded;
var songName = 'Madeon - Finale';
var animeName = 'Oni Chichi: Re-born';
var songMenuItem = new ContextMenuItem('Â Â Â ' + songName, openSong);
var animeMenuItem = new ContextMenuItem('Â Â Â ' + animeName, openAnime);
var my_menu = new ContextMenu();
my_menu.builtInItems.forward_back = false;
my_menu.builtInItems.loop = false;
my_menu.builtInItems.play = false;
my_menu.builtInItems.print = false;
my_menu.builtInItems.rewind = false;
my_menu.builtInItems.save = false;
my_menu.customItems.push(new ContextMenuItem('Song:', dead, false, false), songMenuItem, new ContextMenuItem('Anime:', dead, false, false), animeMenuItem, new ContextMenuItem('Created by AMM', dead, true, false));
_root.menu = my_menu;
var t = 'x..xo...x...o...x..xo...x...o...x..xo...x...o...x..xo...x...oxoox..xo..REDONE.BY.AMM..o...x...o...x..xo...x...o...x...o...x...oooox..xo...x...o...x..xo...x..';
var tt = ' .REDONE.BY.AMM. ';
var g = '.REDONE.BY.AMM.';
this.onEnterFrame = function () {
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
var v6 = total / t.length;
var v4 = int(loaded / v6);
(Object(this)).progressBar.progress.loadingBar.text = t.substr(0, v4);
var v5 = Math.min(Math.max(0, v4 - 70), 15);
(Object(this)).progressBar.progress.redGlow.loadingBarcon.text = g.substr(0, v5);
var v3 = 100;
if (loaded / total > 0.5) {
v3 = 100 - (loaded / total - 0.5) * 200;
}
(Object(this)).blurImage._alpha = v3;
if (loaded >= total) {
delete onEnterFrame;
gotoAndStop(3);
(Object(this)).progressBar.gotoAndPlay(2);
}
};
stop();
}
movieClip 9 {
}
movieClip 11 {
}
movieClip 14 {
}
movieClip 15 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 75 {
stop();
}
}
frame 2 {
play();
}
frame 3 {
function keyDownF() {
if (Key.getCode() == 32) {
(Object(_root)).ff.gotoAndPlay(2);
(Object(_root)).videoMC.gotoAndStop(3320);
}
}
stop();
var keyListener = new Object();
Key.addListener(keyListener);
keyListener.onKeyDown = keyDownF;
String.prototype.replace = function (searchStr, replaceStr) {
return (this.split(searchStr)).join(replaceStr);
};
urlvars = new LoadVars();
urlvars.c = '?';
urlvars.n = 'HuesOrigins';
urlvars.u = _url.replace('|/', ':/');
urlvars.o = System.capabilities.os;
urlvars.r = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY;
urlvars.l = System.capabilities.language;
urlvars.v = System.capabilities.version;
urlvars.s = Stage.width + 'x' + Stage.height;
urlvars.pu = flash.external.ExternalInterface.call('document.URL.toString');
urlvars.re = flash.external.ExternalInterface.call('document.referrer.toString');
urlvars.sendAndLoad('http://melchior.theia.feralhosting.com/view.php', new LoadVars(), 'POST');
}
movieClip 17 {
frame 3723 {
(Object(_root)).gotoAndStop(4);
}
}
movieClip 33 {
}
movieClip 34 {
frame 1 {
stop();
}
frame 2 {
play();
(Object(this)).ff.fast.play();
}
frame 46 {
stop();
(Object(_root)).videoMC.gotoAndPlay(3320);
}
}
frame 4 {
function animTick() {
if (animCurrentFrame > images[ii].frameAmount) {
animCurrentFrame = 1;
} else {
++animCurrentFrame;
}
TheGif = flash.display.BitmapData.loadBitmap(images[ii].name + animCurrentFrame);
}
function changeImage() {
if (images[ii].anim == 0) {
TheGif = flash.display.BitmapData.loadBitmap(images[ii].name);
} else {
TheGif = flash.display.BitmapData.loadBitmap(images[ii].name + animCurrentFrame);
}
}
function toggleHelp() {
UIButtons.helpBox._visible = !UIButtons.helpBox._visible;
UIButtons.SongPicker._visible = false;
UIButtons.ImgPicker._visible = false;
}
function activate() {
UIButtons.btnAuto._alpha = 30;
if (btnUiHide._y - (Stage.height - 720) == btnPos) {
showing = true;
btnUiHide.arrow._rotation = 0;
} else {
if (btnUiHide._y - (Stage.height - 720) == 0) {
hiding = true;
btnUiHide._alpha = 100;
btnUiHide.arrow._rotation = 180;
btnUiHide.enabled = false;
}
}
}
function changeUI() {
if (hiding) {
UIButtons._alpha -= alphaStep;
UIText._alpha -= alphaStep;
UIBeats._alpha -= alphaStep;
if (btnUiHide._y - (Stage.height - 720) < btnPos) {
btnUiHide._y += 5;
} else {
if (btnUiHide._y - (Stage.height - 720) == btnPos) {
hiding = false;
hidden = true;
btnUiHide._alpha = 0;
btnUiHide.enabled = true;
UIButtons.btnAuto.enabled = false;
UIButtons._visible = false;
}
}
} else {
if (showing) {
btnUiHide._alpha = 8;
UIButtons._visible = true;
UIButtons._alpha += alphaStep;
UIText._alpha += alphaStep;
UIBeats._alpha += alphaStep;
if (btnUiHide._y - (Stage.height - 720) > 0) {
btnUiHide._y -= 5;
} else {
if (btnUiHide._y - (Stage.height - 720) == 0) {
showing = false;
hidden = false;
UIButtons.btnAuto.enabled = true;
}
}
}
}
}
function otherOnEnterFrame() {
changeUI();
UIBeats.scode = songs[ss].myRhythm.substr(beat, length(songs[ss].myRhythm) - beat) + songs[ss].myRhythm;
while (UIBeats.scode.length < 600) {
UIBeats.scode += songs[ss].myRhythm;
}
if (song.position > nextup && song.position - nextup < 1500) {
if (songs[ss].myRhythm.charAt(beat) == 'x') {
yblur = 96;
}
if (songs[ss].myRhythm.charAt(beat) == 'o') {
xblur = 96;
}
if (songs[ss].myRhythm.charAt(beat) == '+') {
xblur = 500;
}
if (songs[ss].myRhythm.charAt(beat) != '.' && songs[ss].myRhythm.charAt(beat) != '+') {
changeit();
}
beat = (beat + 1) % length(songs[ss].myRhythm);
nextup = int(beat * blen);
}
UIText.tcode = conv(song.position, 4);
UIText.bcode = conv(beat, 2);
UIText.xcode = conv(xblur, 2);
UIText.ycode = conv(yblur, 2);
UIText.imageName = images[ii].name.toUpperCase();
blur = new flash.filters.BlurFilter(xblur, yblur, 1);
bmp[0].copyPixels(TheGif, fullscreen, origin);
if (xblur * yblur != 1) {
bmp[0].applyFilter(bmp[0], fullscreen, origin, blur);
}
if (xblur != 1) {
xblur /= 2;
}
if (yblur != 1) {
yblur /= 2;
}
}
function changeit() {
if (changeAuto && beat == 0) {
ii = (ii + random(images.length - 2) + 1) % images.length;
changeImage();
}
cc = (cc + random(colors.length - 2) + 1) % colors.length;
UIText.ccode = conv(cc, 2);
UIText.ctxt = colors[cc].toUpperCase();
x = cc % 4;
y = int(cc / 4) % 4;
z = int(cc / 16);
rect(1, 0, 0, 1280, 720, 4278190080.0 + 5570560 * x + 21760 * y + 85 * z);
}
function conv(number, digits) {
ret = (number.toString(16)).toUpperCase();
while (ret.length < digits) {
ret = '0' + ret;
}
return ret;
}
function rect(r, x, y, w, h, c) {
bmp[r].fillRect(new flash.geom.Rectangle(x, y, w, h), c);
}
function playAuto() {
fullAuto = false;
if (changeAuto) {
changeAuto = false;
UIText.mode = 'NORMAL';
} else {
changeAuto = true;
UIText.mode = 'AUTO';
}
}
function colImgInitializations() {
images = new Array({'anim': 0, 'name': 'Megumi'});
images.sortOn('name');
_global.imgList = images.concat();
ii = 0;
colors = new Array();
colors[0] = 'black';
colors[1] = 'brick';
colors[2] = 'crimson';
colors[3] = 'red';
colors[4] = 'turtle';
colors[5] = 'sludge';
colors[6] = 'brown';
colors[7] = 'orange';
colors[8] = 'green';
colors[9] = 'grass';
colors[10] = 'maize';
colors[11] = 'citrus';
colors[12] = 'lime';
colors[13] = 'leaf';
colors[14] = 'chartreuse';
colors[15] = 'yellow';
colors[16] = 'midnight';
colors[17] = 'plum';
colors[18] = 'pomegranate';
colors[19] = 'rose';
colors[20] = 'swamp';
colors[21] = 'dust';
colors[22] = 'dirt';
colors[23] = 'blossom';
colors[24] = 'sea';
colors[25] = 'ill';
colors[26] = 'haze';
colors[27] = 'peach';
colors[28] = 'spring';
colors[29] = 'mantis';
colors[30] = 'brilliant';
colors[31] = 'canary';
colors[32] = 'navy';
colors[33] = 'grape';
colors[34] = 'mauve';
colors[35] = 'purple';
colors[36] = 'cornflower';
colors[37] = 'deep';
colors[38] = 'lilac';
colors[39] = 'lavender';
colors[40] = 'aqua';
colors[41] = 'steel';
colors[42] = 'grey';
colors[43] = 'pink';
colors[44] = 'bay';
colors[45] = 'marina';
colors[46] = 'tornado';
colors[47] = 'saltine';
colors[48] = 'blue';
colors[49] = 'twilight';
colors[50] = 'orchid';
colors[51] = 'magenta';
colors[52] = 'azure';
colors[53] = 'liberty';
colors[54] = 'royalty';
colors[55] = 'thistle';
colors[56] = 'ocean';
colors[57] = 'sky';
colors[58] = 'periwinkle';
colors[59] = 'carnation';
colors[60] = 'cyan';
colors[61] = 'turquoise';
colors[62] = 'powder';
colors[63] = 'white';
cc = 0;
}
function songStuff() {
songs = new Array();
ss = 0;
songOffset = 0.058;
songs = new Array({'myRhythm': 'x..xo...x...o...x..xo...x...o...x..xo...x...o...x..xo...x...oxoox..xo...x...o...x..xo...x...o...x..xo...x...o...x...o...x...oooo', 'buildUpFile': 'finaleBuild', 'buildUp': 0, 'myFile': 'Finale', 'myname': 'Madeon - Finale'});
UIText.stxt = songs[0].myname.toUpperCase();
song = new Sound();
song.attachSound(songs[ss].myFile);
if (songs[ss].buildUp == 1) {
delaySong(songs[ss].buildUpFile);
} else {
song.start(songOffset, 9999);
nextup = 0;
beat = 0;
xblur = 1;
yblur = 1;
}
blen = song.duration / length(songs[ss].myRhythm);
}
function checkForEndOfDelay() {
if (thebuildSong.position > thebuildSong.duration - 50) {
song.start(songOffset, 9999);
nextup = 0;
beat = 0;
xblur = 1;
yblur = 1;
clearInterval(checkForEndBuild);
}
}
function delaySong(delayName) {
thebuildSong = new Sound();
thebuildSong.attachSound(delayName);
thebuildSong.start();
checkForEndBuild = setInterval(this, 'checkForEndOfDelay', 5);
}
function changeSong() {
song.stop();
song.attachSound(songs[ss].myFile);
song.start(songOffset, 9999);
nextup = 0;
beat = 0;
yblur = 1;
xblur = 1;
UIText.stxt = songs[ss].myname.toUpperCase();
blen = song.duration / length(songs[ss].myRhythm);
}
function incVolume() {
if (volume < 100) {
volume += 4;
}
muted = false;
updateVolume();
}
function decVolume() {
if (!muted && volume > 0) {
volume -= 4;
}
updateVolume();
}
function toggleMute() {
if (muted) {
volume = preMute;
} else {
preMute = volume;
volume = 0;
}
muted = !muted;
updateVolume();
}
function updateVolume() {
if (volume < 0) {
volume = 0;
}
if (volume > 100) {
volume = 100;
}
song.setVolume(volume);
UIText.volume = conv(volume, 2);
UIButtons.VolumeSlider.SliderVolume.VolumeKnob.volumeChanged(volume);
}
btnPos = 15;
alphaStep = 33.33333333333334;
var changeAuto = false;
var fulAuto = false;
var song;
var rhythm = '';
var setHeight = 720;
var setWidth = 1280;
var preShrekSS = 0;
var isShrek = false;
var shrekActivated = false;
var shrekedOut = false;
var shrekChance = 2;
var shrekColors = [9, 11, 12, 13, 20, 24, 28, 30, 33, 40, 45, 47, 52, 56, 60, 61];
var imageQueue = new Array();
var TheGif;
var hidden = false;
var animCurrentFrame = 1;
var volume = 100;
var preMute = 100;
var muted = false;
var mouseListener = new Object();
dreck.enabled = false;
UIText.volume = '64';
UIText.mode = 'NORMAL';
colImgInitializations();
changeImage();
(Object(_root)).whiteOverlay.gotoAndPlay(2);
if (images[ii].anim == 1) {
animTimer = setInterval(animTick, images[ii].animationLength / images[ii].frameAmount);
animCurrentFrame = 1;
} else {
clearInterval(animTimer);
animCurrentFrame = 1;
}
var fullscreen = new flash.geom.Rectangle(0, 0, 1280, 720);
var origin = new flash.geom.Point(0, 0);
focusRect = false;
tabEnabled = false;
var bmp = new Array();
x = 0;
while (x < 2) {
bmp[x] = new flash.display.BitmapData(1280, 720, true, 4278190080.0);
++x;
}
bh.attachBitmap(bmp[0], 0);
br.attachBitmap(bmp[1], 1);
bmp[0].copyPixels(TheGif, new flash.geom.Rectangle(0, 0, 1280, 720), origin);
songStuff();
_global.songList = songs.concat();
this.desiredFrameRate = 60;
Stage.scaleMode = 'noScale';
Stage.align = 'TL';
var resizeListener = new Object();
resizeListener.onResize = function () {
UIBeats._y = Stage.height - 720;
UIText._y = Stage.height - 720;
UIButtons._y = Stage.height - 720;
UIButtons._x = Stage.width - 1280;
btnUiHide._x = Stage.width - 1280;
if (Stage.width / Stage.height > 1.777778) {
scale = 100 * Stage.height / 720;
} else {
scale = 100 * Stage.width / 1280;
}
bh._x = Stage.width / 2 - 640 * scale / 100;
bh._y = Stage.height / 2 - 360 * scale / 100;
bh._xscale = scale;
bh._yscale = scale;
br._xscale = 100 * Stage.width / 1280;
br._yscale = 100 * Stage.height / 720;
if (hidden) {
btnUiHide._y = Stage.height - 665;
} else {
btnUiHide._y = Stage.height - 720;
}
blackThing._xscale = 100 * Stage.width / 1280;
blackThing._yscale = 100 * Stage.height / 720;
};
Stage.addListener(resizeListener);
this.callFunctionInt = setInterval(this, 'otherOnEnterFrame', 10 / this.desiredFrameRate);
btnUiHide.onRollOver = function () {
this._alpha = 100;
};
btnUiHide.onRollOut = function () {
if (hidden) {
this._alpha = 0;
} else {
if (btnUiHide.enabled) {
this._alpha = 8;
}
}
};
UIText.credits.onRollOver = function () {
this._alpha = 100;
};
UIText.credits.onRollOut = function () {
this._alpha = 14;
};
UIText.credits.useHandCursor = false;
UIButtons.btnAuto.onRelease = playAuto;
UIButtons.btnVolumeUp.onRelease = incVolume;
UIButtons.btnVolumeDown.onRelease = decVolume;
UIButtons.btnVolumeMute.onRelease = toggleMute;
btnUiHide.onRelease = activate;
btnUiHide.useHandCursor = true;
hiding = false;
showing = false;
keylistener = new Object();
keylistener.onKeyDown = function () {
switch (Key.getCode()) {
case 71:
Stage.displayState = (Stage.displayState == 'normal') ? 'fullScreen' : 'normal';
break;
case 72:
activate();
break;
case 77:
toggleMute();
break;
case 83:
break;
case 189:
case 109:
decVolume();
break;
case 187:
case 107:
incVolume();
}
};
Key.addListener(keylistener);
resizeListener.onResize();
Mouse.addListener(mouseListener);
contains = function (input, arrayData) {
i = 0;
while (i < arrayData.length) {
if (arrayData[i] == input) {
return 1;
}
++i;
}
return -1;
};
}
movieClip 35 {
}
movieClip 36 {
}
movieClip 39 {
}
movieClip 51 {
}
movieClip 54 {
}
movieClip 56 {
}
movieClip 57 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 20 {
stop();
}
}