STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/82139036?noj=FRM82139036-22DC" width="1" height="1"></div>

0x40 hues v2.31S.swf

This is the info page for
Flash #146575

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
// unknown tag 88 length 88 movieClip 117 ListItemBG { } movieClip 118 ListItem { #initclip Object.registerClass('ListItem', ListItem); #endinitclip } movieClip 120 ImgListItemBG { } movieClip 121 ImgListItem { #initclip Object.registerClass('ImgListItem', ImgListItem); #endinitclip } movieClip 124 arrow { } movieClip 125 ImgListContainer { #initclip Object.registerClass('ImgListContainer', ImgListContainer); #endinitclip } movieClip 130 scrollbar { #initclip Object.registerClass('scrollbar', SongScroller); #endinitclip } movieClip 131 ImgPicker { #initclip Object.registerClass('ImgPicker', ImgPicker); #endinitclip } movieClip 132 ListContainer { #initclip Object.registerClass('ListContainer', ListContainer); #endinitclip } movieClip 134 SongPicker { #initclip Object.registerClass('SongPicker', SongPicker); #endinitclip } movieClip 135 VolumeKnob { #initclip Object.registerClass('VolumeKnob', VolumeKnob); #endinitclip } movieClip 136 VolumeControl { #initclip Object.registerClass('VolumeControl', VolumeControl); #endinitclip } // unknown tag 88 length 88 movieClip 139 btnImgPicker { #initclip Object.registerClass('btnImgPicker', UIButton); #endinitclip } movieClip 141 btnVolumeMute { #initclip Object.registerClass('btnVolumeMute', UIButton); #endinitclip } movieClip 143 btnVolumeUp { #initclip Object.registerClass('btnVolumeUp', UIButton); #endinitclip } movieClip 145 btnVolumeDown { #initclip Object.registerClass('btnVolumeDown', UIButton); #endinitclip } // unknown tag 88 length 88 movieClip 148 btnSongs { #initclip Object.registerClass('btnSongs', UIButton); #endinitclip } // unknown tag 88 length 88 movieClip 151 showHelp { #initclip Object.registerClass('showHelp', UIButton); #endinitclip } movieClip 154 btnSongForward { #initclip Object.registerClass('btnSongForward', UIButton); #endinitclip } movieClip 155 btnSongBack { #initclip Object.registerClass('btnSongBack', UIButton); #endinitclip } frame 1 { 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 { trace('Switching to animation, the first frame is:' + images[ii].name + animCurrentFrame); 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.btnForward._alpha = 30; UIButtons.btnBack._alpha = 30; UIButtons.btnSongBack._alpha = 30; UIButtons.btnSongForward._alpha = 30; UIButtons.btnAuto._alpha = 30; UIButtons.btnFullAuto._alpha = 30; UIButtons.showHelp._alpha = 30; if (btnUiHide._y - (Stage.height - 720) == 55) { 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 -= 15; UIText._alpha -= 15; UIBeats._alpha -= 15; if (btnUiHide._y - (Stage.height - 720) < 55) { btnUiHide._y += 5; } else { if (btnUiHide._y - (Stage.height - 720) == 55) { hiding = false; hidden = true; btnUiHide._alpha = 0; btnUiHide.enabled = true; UIButtons.btnForward.enabled = false; UIButtons.btnBack.enabled = false; UIButtons.btnSongBack.enabled = false; UIButtons.btnSongForward.enabled = false; UIButtons.btnAuto.enabled = false; UIButtons.btnFullAuto.enabled = false; UIButtons.showHelp.enabled = false; UIButtons.btnSongs.enabled = false; UIButtons._visible = false; } } } else { if (showing) { btnUiHide._alpha = 8; UIButtons._visible = true; UIButtons._alpha += 15; UIText._alpha += 15; UIBeats._alpha += 15; UIBeats.scode._alpha += 15; if (btnUiHide._y - (Stage.height - 720) > 0) { btnUiHide._y -= 5; } else { if (btnUiHide._y - (Stage.height - 720) == 0) { showing = false; hidden = false; UIButtons.btnForward.enabled = true; UIButtons.btnBack.enabled = true; UIButtons.btnSongBack.enabled = true; UIButtons.btnSongForward.enabled = true; UIButtons.btnAuto.enabled = true; UIButtons.btnFullAuto.enabled = true; UIButtons.showHelp.enabled = true; UIButtons.btnSongs.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') { blackening = false; yblur = 96; } if (songs[ss].myRhythm.charAt(beat) == 'o') { blackening = false; xblur = 96; } if (songs[ss].myRhythm.charAt(beat) == '+') { blackening = true; 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); } if (song.position < 100 && !shrekActivated && !shrekedOut) { if (!shrekActivated && fullAuto) { shrekedOut = true; trace('HOLEE SHET, A SHREK?'); var v2 = 1; var v3 = 100; var v1 = Math.floor(Math.random() * (v3 - v2 + 1)) + v2; trace('We rolled: ' + v1); if (v1 <= shrekChance) { trace('SHREK ACTIVATED'); dreck._alpha = 10; dreck.enabled = true; shrekActivated = true; } else { trace('SHREK NOT ACTIVATED :('); } } } else { if (song.position > 100) { shrekedOut = false; } else { if (song.position < 100 && shrekActivated && !shrekedOut) { trace('SHREK GOT AWAY SAFELY'); dreck.enabled = false; dreck._alpha = 0; shrekActivated = false; } } } if (blackening) { blackThing._alpha += 25; } else { blackThing._alpha = 0; } 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); if (isShrek) { bmp[0].copyPixels(flash.display.BitmapData.loadBitmap('imgdreck'), fullscreen, origin); } else { 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 (!isShrek) { if (fullAuto) { var v2 = ii; while (v2 == ii) { var v1 = random(images.length); if (contains(v1, imageQueue) == -1) { imageQueue.push(v1); if (imageQueue.length > images.length * 0.75) { imageQueue.shift(); } ii = v1; } } var v3 = ''; changeImage(); } else { if (changeAuto && beat == 0) { ii = (ii + random(images.length - 2) + 1) % images.length; changeImage(); } } } if (!isShrek) { cc = (cc + random(colors.length - 2) + 1) % colors.length; } else { cc = shrekColors[random(shrekColors.length - 1)]; } 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 playForward() { if (!isShrek) { changeAuto = false; fullAuto = false; UIText.mode = 'NORMAL'; if (ii < images.length - 1) { ++ii; } else { ii = 0; } if (images[ii].anim == 1) { animTimer = setInterval(animTick, images[ii].animationLength / images[ii].frameAmount); animCurrentFrame = 1; } else { clearInterval(animTimer); animCurrentFrame = 1; } changeImage(); } } function playBack() { if (!isShrek) { changeAuto = false; fullAuto = false; UIText.mode = 'NORMAL'; if (ii > 0) { --ii; } else { ii = images.length - 1; } if (images[ii].anim == 1) { animTimer = setInterval(animTick, images[ii].animationLength / images[ii].frameAmount); animCurrentFrame = 1; } else { clearInterval(animTimer); animCurrentFrame = 1; } changeImage(); } } function playAuto() { fullAuto = false; if (changeAuto) { changeAuto = false; UIText.mode = 'NORMAL'; } else { changeAuto = true; UIText.mode = 'AUTO'; } } function playFullAuto() { changeAuto = false; if (fullAuto) { fullAuto = false; UIText.mode = 'NORMAL'; } else { fullAuto = true; UIText.mode = 'FULL AUTO'; } } function colImgInitializations() { images = new Array({'anim': 0, 'name': 'Megumi'}, {'anim': 0, 'name': 'lolicatgirl'}, {'anim': 0, 'name': 'kagami'}, {'anim': 0, 'name': 'yukari'}, {'anim': 0, 'name': 'konata'}, {'anim': 0, 'name': 'shinobu'}, {'anim': 0, 'name': 'yotsuba'}, {'anim': 0, 'name': 'misaka'}, {'anim': 0, 'name': 'louise'}, {'anim': 0, 'name': 'ibara'}, {'anim': 0, 'name': 'madotsuki'}, {'anim': 0, 'name': 'yasuna'}, {'animationLength': 2000, 'frameAmount': 18, 'anim': 1, 'name': 'lain'}, {'anim': 0, 'name': 'nee-san'}, {'anim': 0, 'name': 'kurisu'}, {'anim': 0, 'name': 'mao'}, {'anim': 0, 'name': 'tomoko'}, {'anim': 0, 'name': 'kyoko'}, {'anim': 0, 'name': 'demon sisters'}, {'anim': 0, 'name': 'cirno'}, {'anim': 0, 'name': 'kyubey'}, {'anim': 0, 'name': 'yui'}, {'anim': 0, 'name': 'renge'}, {'anim': 0, 'name': 'rei'}, {'anim': 0, 'name': 'astraea'}, {'anim': 0, 'name': 'taiga'}, {'anim': 0, 'name': 'lucy'}, {'anim': 0, 'name': 'nano'}, {'anim': 0, 'name': 'hakase'}, {'anim': 0, 'name': 'asuka'}, {'anim': 0, 'name': 'flandre'}, {'anim': 0, 'name': 'haruko'}, {'anim': 0, 'name': 'kirino'}, {'anim': 0, 'name': 'kanoe'}, {'anim': 0, 'name': 'akarin'}, {'anim': 0, 'name': 'mio'}, {'anim': 0, 'name': 'ryuuko'}, {'anim': 0, 'name': 'maka'}, {'anim': 0, 'name': 'agiri'}, {'anim': 0, 'name': 'hitoha'}, {'anim': 0, 'name': 'holo'}, {'anim': 0, 'name': 'karen'}, {'anim': 0, 'name': 'luccini'}, {'anim': 0, 'name': 'miho'}, {'anim': 0, 'name': 'miyako'}, {'anim': 0, 'name': 'noel'}, {'anim': 0, 'name': 'ritsu'}, {'anim': 0, 'name': 'stocking'}, {'anim': 0, 'name': 'ika'}, {'anim': 0, 'name': 'ayase'}, {'anim': 0, 'name': 'senjougahara'}, {'anim': 0, 'name': 'melfina'}, {'anim': 0, 'name': 'chitanda'}, {'anim': 0, 'name': 'hanako'}, {'anim': 0, 'name': 'haruhi'}, {'anim': 0, 'name': 'kyouko'}, {'anim': 0, 'name': 'mayuri'}, {'anim': 0, 'name': 'ruri'}, {'anim': 0, 'name': 'mami'}, {'anim': 0, 'name': 'misaki'}, {'anim': 0, 'name': 'miu'}, {'anim': 0, 'name': 'motoko'}, {'anim': 0, 'name': 'excel'}, {'anim': 0, 'name': 'miku'}, {'anim': 0, 'name': 'suiseiseki'}, {'anim': 0, 'name': 'rin'}, {'anim': 0, 'name': 'faye'}, {'anim': 0, 'name': 'fuu'}, {'anim': 0, 'name': 'chrona'}, {'anim': 0, 'name': 'chiri'}, {'anim': 0, 'name': 'haruhi fujioka'}, {'anim': 0, 'name': 'morgiana'}, {'anim': 0, 'name': 'shiina'}, {'anim': 0, 'name': 'yuno'}, {'anim': 0, 'name': 'mayoi'}, {'anim': 0, 'name': 'rika'}, {'anim': 0, 'name': 'eureka'}, {'anim': 0, 'name': 'yunocchi'}); 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; 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': 'build_Finale', 'buildUp': 1, 'myFile': 'Finale', 'myname': 'Madeon - Finale'}, {'myRhythm': 'o...x.o.o...x.o.o...x...o...x.o.o...x.o.o...x.......x.......x...', 'myFile': 'Radioactive', 'myname': 'Imagine Dragons - Radioactive'}, {'myRhythm': 'o...x...o...x...o...x...o...x...o...x...o...x...o...x...o...xxx.x...x...o...x...o...x...o...x...o...x...o...x...o...o...o...o...', 'myFile': 'RowRow', 'myname': '@LILINTERNET - Row Row Fight the Power (RAGEFOXX & SLUTTT MIX)'}, {'myRhythm': 'o...x...o.o.x.x...o.x...o.o.x...o...x...o.o.x.x...o.x...oo..x.x.o...x...o.o.x.x...o.x...oo..x.x.o...x...o.o.x.x...o.x...x...x.xx', 'myFile': 'Desire', 'myname': 'Outlaw Star OST - Desire'}, {'myRhythm': 'o.....oox.......o.o....ox.......o.....oox...o...o.o....ox.......o......ox.......o.o....ox.......o.....oox...o...o.o.....+.......', 'myFile': 'Sight', 'myname': 'The Bloody Beetroots - Out of Sight'}, {'myRhythm': 'o......ox.....o.o.......x.......o......ox.....o.o.....o.x.ooooooo......ox.....o.o.......x.......o......ox.....o.o.....o.x.oooooo', 'myFile': 'Smile', 'myname': 'Buckethead - Smile Without a Face'}, {'myRhythm': 'o...x.....o.x...o...x.....o.x...o...x.....o.x...o...x.....o.+...', 'myFile': 'Courtship', 'myname': 'Crystal Castles - Courtship Dating'}, {'myRhythm': 'o...x..---o.x...-.o.x------.x..-o.-.x.o..-.ox-.-----x-o-------o-o...x..---o.x...-.o.x------.x..-o.-.x.o..-.ox-.-----x-o-------o-', 'myFile': 'Vordhosbn', 'myname': 'Aphex Twin - Vordhosbn'}, {'myRhythm': 'o.o.x..o.x.x....o..ox......x....o...x....o.x....o...x....o.xx...o.o.x..o.x.x....o..ox......x....o...x....o.x...xo...x....o.xx...', 'myFile': 'Orange', 'myname': 'Culprate - Orange (Sunrise, Sunset)'}, {'myRhythm': 'x+......o+......x+......o+......x+......o+......x+......o+......x+......o+......x+......o+......x+......o+......x+..............x+......o+......x+......o+......x+......o+......x+......o+......x+......o+......x+......o+......x---------------x+......o.......', 'myFile': 'Spoiler', 'myname': 'Hyper - Spoiler'}, {'myRhythm': 'o.x..ox.o.x..ox.o.x..ox.o.x..ox.o.x..xx.o.x..xx.o.x..xx.o.x..xx.o.x..ox.o.x..ox.o.x..ox.o.x..ox.o.x..xx.o.x..xx.o.xx.xx.o.x..xx.', 'myFile': 'Kryptonite', 'myname': 'DJ Fresh - Kryptonite'}, {'myRhythm': 'o.......x...o.......o...xxxxx...o.o.....x...o.......o...xxxxx...o.......x...o.......o...xxxxx...o.......x...o...o.......+.......o.......x...o.......o...xxxxx...o.o.....x...o...-.-.o.-.xxx+x+x+o.......x...o.......o...xxxxx...o.......x...o...o...x.x.+.......', 'myFile': 'Glitch', 'myname': 'STS9 - Beyond Right Now (Glitch Mob Remix)'}, {'myRhythm': 'o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...............+...', 'myFile': 'Liquor', 'myname': 'Kanye West - Hold My Liquor'}, {'myRhythm': 'o...x...o...x...o...x...o...x...o...x...o...x...o...x...o...x.-.o...x...o...x...o...x...o...x...o...x...o...x...o...x...o...xx-.', 'myFile': 'Heart', 'myname': 'Savant - Heart'}, {'myRhythm': 'o.-.x...o...x...o.-.x...o...x...o.-.x...o...x...o.-.x...o...x...o.-.x...o...x...o.-.x...o...x...o..o..o...o...o.............x...', 'myFile': 'Weapon', 'myname': 'deadmau5 - Raise Your Weapon (Madeon Remix)'}, {'myRhythm': 'o...x..oo.o.x...o...x..oo.o.x...o...x..oo.o.x...o...x..oo.x.x...o...x..oo.o.x...o...x..oo.o.x...o...x..oo.o.x...o...x..oo.o.x...', 'myFile': 'All-Star', 'myname': 'Triple-Q - All Star Circulation'}); 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 songForward() { if (!isShrek) { if (ss < songs.length - 2) { ++ss; } else { ss = 0; } changeSong(); } } function songBack() { if (!isShrek) { if (ss > 0) { --ss; } else { ss = songs.length - 2; } changeSong(); } } 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); } 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(); 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.777777777777778) { 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); UIButtons.btnSongs.onRelease = function () { UIButtons.SongPicker._visible = !UIButtons.SongPicker._visible; UIButtons.ImgPicker._visible = false; UIButtons.helpBox._visible = false; }; UIButtons.btnImgPicker.onRelease = function () { UIButtons.ImgPicker._visible = !UIButtons.ImgPicker._visible; UIButtons.SongPicker._visible = false; UIButtons.helpBox._visible = false; }; 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; dreck.onRelease = function () { if (isShrek) { isShrek = false; ss = preShrekSS; changeSong(); UIText.mode = 'NORMAL'; dreck._alpha = 0; dreck.enabled = false; shrekActivated = false; } else { isShrek = true; preShrekSS = ss; ss = songs.length - 1; changeSong(); UIText.mode = 'SHREK IS DRECK'; } }; UIButtons.btnForward.onRelease = playForward; UIButtons.btnBack.onRelease = playBack; UIButtons.btnSongBack.onRelease = songBack; UIButtons.btnSongForward.onRelease = songForward; UIButtons.btnAuto.onRelease = playAuto; UIButtons.btnFullAuto.onRelease = playFullAuto; UIButtons.btnVolumeUp.onRelease = incVolume; UIButtons.btnVolumeDown.onRelease = decVolume; UIButtons.btnVolumeMute.onRelease = toggleMute; btnUiHide.onRelease = activate; btnUiHide.useHandCursor = true; UIButtons.showHelp.onRelease = toggleHelp; hiding = false; showing = false; keylistener = new Object(); keylistener.onKeyDown = function () { switch (Key.getCode()) { case 39: playForward(); break; case 37: playBack(); break; case 38: songForward(); break; case 40: songBack(); break; case 65: playAuto(); break; case 66: nextAnimationFrame(); break; case 67: UIButtons.btnImgPicker.onRelease(); break; case 70: playFullAuto(); break; case 71: Stage.displayState = (Stage.displayState == 'normal') ? 'fullScreen' : 'normal'; break; case 72: activate(); break; case 77: toggleMute(); break; case 83: UIButtons.btnSongs.onRelease(); break; case 189: case 109: decVolume(); break; case 187: case 107: incVolume(); } }; Key.addListener(keylistener); var blackening = false; resizeListener.onResize(); mouseListener.onMouseWheel = function (delta) { if (UIButtons.ImgPicker._visible) { UIButtons.ImgPicker.scrollNotify(delta); } else { if (UIButtons.SongPicker._visible) { UIButtons.SongPicker.scrollNotify(delta); } } }; Mouse.addListener(mouseListener); contains = function (input, arrayData) { i = 0; while (i < arrayData.length) { if (arrayData[i] == input) { return 1; } ++i; } return -1; }; } movieClip 156 { } movieClip 158 { } // unknown tag 88 length 88 movieClip 171 { } movieClip 174 { } movieClip 175 btnForward { #initclip Object.registerClass('btnForward', UIButton); #endinitclip } movieClip 176 btnBack { #initclip Object.registerClass('btnBack', UIButton); #endinitclip } movieClip 178 btnAuto { #initclip Object.registerClass('btnAuto', UIButton); #endinitclip } movieClip 180 btnFullAuto { #initclip Object.registerClass('btnFullAuto', UIButton); #endinitclip } movieClip 181 { } movieClip 182 { } movieClip 183 { frame 1 { symb.setMask(SliderVolume); } } movieClip 186 { } movieClip 187 { } movieClip 188 { } movieClip 189 { } movieClip 190 { } movieClip 194 __Packages.ImgListItem { #initclip if (!_global.ImgListItem) { var v1 = function () { super(); this.listItemBG = this.attachMovie('ImgListItemBG', 'listItemBG', this.getNextHighestDepth(), {'_x': 0, '_y': 0, '_alpha': 50}); this.useHandCursor = true; }; _global.ImgListItem = v1; _global.ImgListItem extends MovieClip; var v2 = v1.prototype; v2.setText = function (itemName, itemID) { var v3 = this.createTextField('ItemName', this.getNextHighestDepth(), 5, 6, 188, 12); var v2 = new TextFormat(); v2.font = 'Pet Me 64'; v2.color = 0; v2.size = 8; v3.selectable = false; v3.text = itemName; v3.setTextFormat(v2); v3.embedFonts = true; this.imgid = itemID; }; v2.onRollOver = function () { this.listItemBG._alpha = 100; }; v2.onRollOut = function () { this.listItemBG._alpha = 50; }; v2.onRelease = function () { _root.ii = this.imgid; _root.changeImage(); }; v2.onReleaseOutside = function () { this.listItemBG._alpha = 50; }; ASSetPropFlags(_global.ImgListItem.prototype, null, 1); } #endinitclip } movieClip 195 __Packages.ImgListContainer { #initclip if (!_global.ImgListContainer) { var v1 = function () { super(); }; _global.ImgListContainer = v1; _global.ImgListContainer extends MovieClip; var v2 = v1.prototype; v2.init = function () { this.itemList = new Array(); this.populate(); }; v2.populate = function () { var v4 = _global.imgList; var v3 = 0; while (v3 < v4.length - 1) { this.itemList[v3] = this.attachMovie('ImgListItem', 'imglistItem' + v3, this.getNextHighestDepth(), {'_x': 0, '_y': 24 * v3}); this.itemList[v3].setText(v4[v3].name.toUpperCase(), v3); ++v3; } }; ASSetPropFlags(_global.ImgListContainer.prototype, null, 1); } #endinitclip } movieClip 196 __Packages.UIButton { #initclip if (!_global.UIButton) { var v1 = function () { super(); }; _global.UIButton = v1; _global.UIButton extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._alpha = 30; this.useHandCursor = true; }; v2.onRollOver = function () { this._alpha = 100; }; v2.onRollOut = function () { this._alpha = 30; }; v2.onReleaseOutside = function () { this._alpha = 30; }; ASSetPropFlags(_global.UIButton.prototype, null, 1); } #endinitclip } movieClip 197 __Packages.SongScroller { #initclip if (!_global.SongScroller) { var v1 = function () { super(); }; _global.SongScroller = v1; _global.SongScroller extends UIButton; var v2 = v1.prototype; v2.assign = function (o) { this.owner = o; }; v2.onPress = function () { this.moving = true; this.mouse = _root._ymouse; this.starty = this._y; }; v2.onRelease = function () { this.moving = false; }; v2.onReleaseOutside = function () { this.moving = false; this._alpha = 30; }; v2.onMouseMove = function () { if (!this.moving) { return undefined; } var v4 = _root._ymouse - this.mouse; var v3 = this.starty + v4; if (0 <= v3 && v3 <= this.owner.scrollHeight) { this._y = v3; this.owner.dragNotify(v3); } else { if (0 > v3) { this._y = 0; this.owner.dragNotify(0); } else { this._y = this.owner.scrollHeight; this.owner.dragNotify(this.owner.scrollHeight); } } }; ASSetPropFlags(_global.SongScroller.prototype, null, 1); } #endinitclip } movieClip 198 __Packages.SongPicker { #initclip if (!_global.SongPicker) { var v1 = function () { super(); }; _global.SongPicker = v1; _global.SongPicker extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.scrollbar = _root.UIButtons.SongPicker.scrollbar; this.listContainer = _root.UIButtons.SongPicker.ListContainer; this.scrollbar.assign(this); this.listContainer.init(); }; v2.dragNotify = function (dy) { if (this.listContainer._height > this.scrollHeight) { this.listContainer._y = int(-(dy / this.scrollHeight) * (this.listContainer._height - this.innerHeight)); } }; v2.populate = function (songList) { this.listContainer.populate(songList); }; v2.scrollNotify = function (delta) { if (delta > 0) { if (this.scrollbar._y <= this.scrollHeight) { this.listContainer._y += 24; this.scrollbar._y = -this.listContainer._y * this.scrollHeight / (this.listContainer._height - this.innerHeight); } } else { if (this.scrollbar._y >= 0) { this.listContainer._y -= 24; this.scrollbar._y = -this.listContainer._y * this.scrollHeight / (this.listContainer._height - this.innerHeight); } } if (this.scrollbar._y < 0) { this.scrollbar._y = 0; this.listContainer._y = 0; } if (this.scrollbar._y > this.scrollHeight) { this.scrollbar._y = this.scrollHeight; if (this.listContainer._height > this.innerHeight) { this.listContainer._y = -int(this.listContainer._height - this.innerHeight); } } }; v2.innerHeight = 222; v2.scrollHeight = 198; ASSetPropFlags(_global.SongPicker.prototype, null, 1); } #endinitclip } movieClip 199 __Packages.ImgPicker { #initclip if (!_global.ImgPicker) { var v1 = function () { super(); }; _global.ImgPicker = v1; _global.ImgPicker extends SongPicker; var v2 = v1.prototype; v2.onLoad = function () { this.scrollbar = _root.UIButtons.ImgPicker.scrollbar; this.listContainer = _root.UIButtons.ImgPicker.ImgListContainer; this.scrollbar.assign(this); this.listContainer.init(); }; v2.dragNotify = function (dy) { if (this.listContainer._height > this.scrollHeight) { this.listContainer._y = int(-(dy / this.scrollHeight) * (this.listContainer._height - this.innerHeight)); } }; v2.populate = function (songList) { this.listContainer.populate(songList); }; v2.innerHeight = 222; v2.scrollHeight = 198; ASSetPropFlags(_global.ImgPicker.prototype, null, 1); } #endinitclip } movieClip 200 __Packages.ListContainer { #initclip if (!_global.ListContainer) { var v1 = function () { super(); }; _global.ListContainer = v1; _global.ListContainer extends MovieClip; var v2 = v1.prototype; v2.init = function () { this.itemList = new Array(); this.populate(); }; v2.populate = function () { var v4 = _global.songList; var v3 = 0; while (v3 < v4.length - 1) { this.itemList[v3] = this.attachMovie('ListItem', 'listItem' + v3, this.getNextHighestDepth(), {'_x': 0, '_y': 24 * v3}); this.itemList[v3].setText(v4[v3].myname.toUpperCase(), v3); ++v3; } }; ASSetPropFlags(_global.ListContainer.prototype, null, 1); } #endinitclip } movieClip 201 __Packages.VolumeKnob { #initclip if (!_global.VolumeKnob) { var v1 = function () { super(); this.useHandCursor = true; }; _global.VolumeKnob = v1; _global.VolumeKnob extends MovieClip; var v2 = v1.prototype; v2.onRollOver = function () { _root.UIButtons.VolumeSlider._alpha = 100; }; v2.onRollOut = function () { _root.UIButtons.VolumeSlider._alpha = 30; }; v2.onPress = function () { this.moving = true; this.mouse = _root._xmouse; this.startx = this._x; }; v2.onRelease = function () { this.moving = false; }; v2.onReleaseOutside = function () { this.moving = false; _root.UIButtons.VolumeSlider._alpha = 30; }; v2.onMouseMove = function () { if (!this.moving) { return undefined; } _root.muted = false; var v3 = this.startx + _root._xmouse - this.mouse; if (0 <= v3 && v3 <= 100) { this._x = v3; _root.volume = v3; } else { if (0 > v3) { this._x = 0; _root.volume = 0; } else { _root.volume = 100; } } _root.updateVolume(); }; v2.volumeChanged = function (vol) { this._x = vol; }; ASSetPropFlags(_global.VolumeKnob.prototype, null, 1); } #endinitclip } movieClip 202 __Packages.VolumeControl { #initclip if (!_global.VolumeControl) { var v1 = function () { super(); this.useHandCursor = true; }; _global.VolumeControl = v1; _global.VolumeControl extends MovieClip; var v2 = v1.prototype; v2.onPress = function () { _root.volume = this._xmouse; _root.updateVolume(); }; v2.onRollOver = function () { _root.UIButtons.VolumeSlider._alpha = 100; }; v2.onRollOut = function () { _root.UIButtons.VolumeSlider._alpha = 30; }; v2.onReleaseOutside = function () { _root.UIButtons.VolumeSlider._alpha = 30; }; ASSetPropFlags(_global.VolumeControl.prototype, null, 1); } #endinitclip } movieClip 203 __Packages.ListItem { #initclip if (!_global.ListItem) { var v1 = function () { super(); this.listItemBG = this.attachMovie('ListItemBG', 'listItemBG', this.getNextHighestDepth(), {'_x': 0, '_y': 0, '_alpha': 50}); this.useHandCursor = true; }; _global.ListItem = v1; _global.ListItem extends MovieClip; var v2 = v1.prototype; v2.setText = function (itemName, itemID) { var v3 = this.createTextField('ItemName', this.getNextHighestDepth(), 5, 6, 436, 12); var v2 = new TextFormat(); v2.font = 'Pet Me 64'; v2.color = 0; v2.size = 8; v3.selectable = false; v3.text = itemName; v3.setTextFormat(v2); v3.embedFonts = true; this.songid = itemID; }; v2.onRollOver = function () { this.listItemBG._alpha = 100; }; v2.onRollOut = function () { this.listItemBG._alpha = 50; }; v2.onRelease = function () { _root.ss = this.songid; _root.changeSong(); }; v2.onReleaseOutside = function () { this.listItemBG._alpha = 50; }; ASSetPropFlags(_global.ListItem.prototype, null, 1); } #endinitclip }




http://swfchan.com/30/146575/info.shtml
Created: 26/10 -2018 07:04:20 Last modified: 26/10 -2018 07:04:20 Server time: 22/12 -2024 06:38:06