import flash.events.SampleDataEvent; import flash.events.Event; import flash.utils.ByteArray; import flash.display.Graphics; import flash.display.FrameLabel; import flash.display.Sprite; import flash.media.Sound; import flash.media.SoundChannel; import flash.media.SoundMixer; import flash.filters.BlurFilter; import flash.display.BitmapData; import flash.geom.Rectangle; import flash.geom.ColorTransform; import flash.desktop.ClipboardTransferMode; import flash.text.Font; import flash.net.FileReference; import flash.events.Event; import flash.net.FileFilter; import flash.display.Loader; //import flash.media.SoundCodec; //import flash.media.ID3Info; gotoAndStop(1); stage.quality = "low"; var rainbow: Array = new Array("0xFF0000", "0xFF1900", "0xFF3200", "0xFF4B00", "0xFF6400", "0xFF7D00", "0xFF9600", "0xFFAF00", "0xFFC800", "0xFFE100", "0xFFFA00", "0xEAFF00", "0xD1FF00", "0xB7FF00", "0x9EFF00", "0x85FF00", "0x6CFF00", "0x53FF00", "0x3AFF00", "0x21FF00", "0x08FF00", "0x00FF10", "0x00FF29", "0x00FF42", "0x00FF5B", "0x00FF75", "0x00FF8E", "0x00FFA7", "0x00FFC0", "0x00FFD9", "0x00FFF2", "0x00F2FF", "0x00D9FF", "0x00C0FF", "0x00A7FF", "0x008EFF", "0x0075FF", "0x005BFF", "0x0042FF", "0x0029FF", "0x0010FF", "0x0800FF", "0x2100FF", "0x3A00FF", "0x5300FF", "0x6C00FF", "0x8500FF", "0x9E00FF", "0xB700FF", "0xD100FF", "0xEA00FF", "0xFF00FA", "0xFF00E1", "0xFF00C8", "0xFF00AF", "0xFF0096", "0xFF007D", "0xFF0064", "0xFF004B", "0xFF0032", "0xFF0019"); var colsrm: uint = 0; var asci: Array = new Array("-", "!", "#", "$", "%", "&", "(", ")", "*", "+", ",", "-", ".", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "?", "@", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "]", "^", "_", "`", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "{", "|", "}", "~", "¦", "Ç", "ü", "é", "â", "ä", "à", "å", "ç", "ê", "ë", "è", "ï", "î", "ì", "Ä", "Å", "É", "æ", "Æ", "ô", "ö", "ò", "û", "ù", "ÿ", "Ö", "Ü", "ø", "£", "Ø", "×", "ƒ", "á", "í", "ó", "ú", "ñ", "Ñ", "ª", "º", "¿", "®", "¬", "½", "¼", "¡", "«", "»", "¦", "¦", "¦", "¦", "¦", "Á", "Â", "À", "©", "¦", "¦", "+", "+", "¢", "¥", "+", "+", "-", "-", "+", "-", "+", "ã", "Ã", "+", "+", "-", "-", "¦", "-", "+", "¤", "ð", "Ð", "Ê", "Ë", "È", "i", "Í", "Î", "Ï", "+", "+", "¦", "_", "¦", "Ì", "¯", "Ó", "ß", "Ô", "Ò", "õ", "Õ", "µ", "þ", "Þ", "Ú", "Û", "Ù", "ý", "Ý", "¯", "´", "±", "=", "¾", "¶", "§", "÷", "¸", "°", "¨", "·", "¹", "³", "²", "¦", "-"); //linie ######################################################################### var abstand = 0; var hoehe = 0; var count1 = 0; var speedy = 5; //zahlenrefresh var im = 0; var playlistc = 0; var playlistc2 = 0; //var mtxts: BitmapData = new BitmapData(1024, 768, true, 0xFF0000); //toooooooooon var volumeLevel: SoundTransform = new SoundTransform(); var wielaut = new SoundTransform(); var ba: ByteArray = new ByteArray(); var bild3: Sprite = new Sprite(); var bild4: Sprite = new Sprite(); var bild5: Sprite = new Sprite(); var all: Sprite = new Sprite(); var allp: Sprite = new Sprite(); var alls: Sprite = new Sprite(); var allss: Sprite = new Sprite(); var seli: Sprite = new Sprite(); var wavy: Sprite = new Sprite(); var pulse = 0; var pulse2 = 0; var z14 = 40; var z15 = 600; var z10 = 0; var z11 = 0; var z16 = 0; var z18 = 0; var z110 = 0; var z111 = 0; var z116 = 0; var z118 = 0; var wuschy201 = 0; var col = 0; var zzz = 0; var stati: Sprite = new Sprite(); var selia: Sprite = new Sprite(); var voli: Sprite = new Sprite(); var allb: Sprite = new Sprite(); var allsb: Sprite = new Sprite(); var id3s = String; var pressi = 0; var sensu = 0; var dri = 0; var drir = 0; //meow zeugs++++++++++++++++++++ var speicherarray2: Array; var speicherarray3: Array; var zeugsa: Array = new Array(); var zeugsb: Array = new Array(); var zeugsc: Array = new Array(); var zeugsd: Array = new Array(); var hohe: Array = new Array(); var mtxtzahl: Number = 2; var maxmtxts: Number = 10; speicherarray2 = []; var mtxtalpha = 1; var beat4 = 0; var col2 = 0; //+++++++++++++++++++++++++++++++++ var count2 = 0; var liny: Array = new Array("M", "E", "O", "W"); var count3 = 0; var chari = 0; var hoch = 0; var zahly = 0; var delays = 0; //addChild(txty); var smooth: Array = new Array(); var smooth2: Array = new Array(); var zeugsz: Array = new Array(); var armenge = 0; var armenge2 = 0; var smothy = 2; var pulse3 = 0; var ram = 0; var max = 1; var ist = 0; var gfx: BitmapData = new BitmapData(1130, 768, true, 0xFF0000); var cTransform: ColorTransform = new ColorTransform(); cTransform.alphaMultiplier = 0.992 var rect: Rectangle = new Rectangle(0, 0, 400, 768); //schrift~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ var mono: Font = new monospace(); var txty: TextField = new TextField(); var txtyf: TextFormat = new TextFormat(); var sizy = 12; txtyf.align = TextFormatAlign.LEFT; txtyf.font = mono.fontName; txtyf.size = 40; txtyf.bold = true; var txtyfa: TextFormat = new TextFormat(); var txtya: TextField = new TextField(); txtyfa.align = TextFormatAlign.CENTER; txtyfa.font = mono.fontName; txtyfa.size = 15; txtyfa.bold = true; txtya.background = false; txtya.border = false; txtya.multiline = true; txtya.wordWrap = true; txtya.embedFonts = true; txtya.width = 100; txtya.height = 70; txtya.defaultTextFormat = txtyfa; txtya.textColor = 0xFF0069; txtya.alpha = 1; txtya.text = String("MEOW Drawing sound >^.^<"); txtya.alpha = 1; txtya.x = 1212; txtya.y = 355; addChild(txtya); var musy: Array = new Array(); var numy = 0; var mux = 0.5; var s4: SoundChannel; var noicse: loops16 = new loops16(); var inputfile: FileReference; var tonx: FileReference; var list: FileReference; var id3c: Array = new Array(); var names: Array = new Array(); var txtyfm: TextFormat = new TextFormat(); var txtym: TextField = new TextField(); txtyfm.align = TextFormatAlign.LEFT; txtyfm.font = mono.fontName; txtyfm.size = 10; txtyfm.bold = false; txtym.background = false; txtym.border = true; txtym.borderColor = 0x000000; txtym.multiline = true; txtym.wordWrap = false; txtym.embedFonts = true; txtym.width = 255; txtym.height = 67; txtym.defaultTextFormat = txtyfm; txtym.textColor = 0xFF0069; txtym.alpha = 1; txtym.text = String("Press M to open your mp3"); txtym.alpha = 1; txtym.x = 1060; txtym.y = 700; addChild(txtym); var txtyftm: TextFormat = new TextFormat(); var txtytm: TextField = new TextField(); txtyftm.align = TextFormatAlign.LEFT; txtyftm.font = mono.fontName; txtyftm.size = 10; txtyftm.bold = true; txtytm.background = false; txtytm.border = false; txtytm.borderColor = 0x000000; txtytm.multiline = true; txtytm.wordWrap = false; txtytm.embedFonts = true; txtytm.width = 295; txtytm.height = 690; txtytm.defaultTextFormat = txtyftm; txtytm.textColor = 0xFF0069; txtytm.alpha = 1; txtytm.text = String("<<-Playlist->> \n"); txtytm.alpha = 1; txtytm.x = 1026; txtytm.y = 10; addChild(txtytm); var txtyftmv: TextFormat = new TextFormat(); var txtytmv: TextField = new TextField(); txtyftmv.align = TextFormatAlign.LEFT; txtyftmv.font = mono.fontName; txtyftmv.size = 10; txtyftmv.bold = true; txtytmv.background = false; txtytmv.border = false; txtytmv.borderColor = 0x000000; txtytmv.multiline = true; txtytmv.wordWrap = true; txtytmv.embedFonts = true; txtytmv.width = 295; txtytmv.height = 12; txtytmv.defaultTextFormat = txtyftmv; txtytmv.textColor = 0xFF0069; txtytmv.alpha = 1; txtytmv.text = String("Key: S = Silence! ~ D = louder! "); txtytmv.alpha = 1; txtytmv.x = 1061; txtytmv.y = 680; addChild(txtytmv); var txtyfp: TextFormat = new TextFormat(); var txtyp: TextField = new TextField(); txtyfp.align = TextFormatAlign.LEFT; txtyfp.font = mono.fontName; txtyfp.size = 10; txtyfp.bold = true; txtyp.background = false; txtyp.border = false; txtyp.borderColor = 0x000000; txtyp.multiline = true; txtyp.wordWrap = false; txtyp.embedFonts = true; txtyp.width = 295; txtyp.height = 14; txtyp.defaultTextFormat = txtyfp; txtyp.textColor = 0xFF0069; txtyp.alpha = 1; txtyp.text = String("Key: 1 - 6 for presents ~C =config"); txtyp.alpha = 1; txtyp.x = 1061; txtyp.y = 660; addChild(txtyp); //config var bars: Number = 1; var bwidth = 2; var rspeed = 10; var smtime = 10; var stime = 10; var rground = 1; var kcounty = 0; var bstyle = 0; var nnumbers = 300; var sens = 1; var bhight = 2; var txtyfpc: TextFormat = new TextFormat(); var txtypc: TextField = new TextField(); txtyfpc.align = TextFormatAlign.LEFT; txtyfpc.font = mono.fontName; txtyfpc.size = 12; txtyfpc.bold = false; txtypc.background = false; txtypc.border = true; txtypc.borderColor = 0x000000; txtypc.multiline = true; txtypc.wordWrap = false; txtypc.embedFonts = true; txtypc.borderColor = 0x000000; txtypc.width = 125; txtypc.height = 165; txtypc.defaultTextFormat = txtyfpc; txtypc.textColor = 0xFF0069; txtypc.alpha = 1; txtypc.text = String("MEOW ~ config \nuse Arrow keys \n \nBars: " + bars + "\nRGBspeed: " + rspeed + "\nGround: " + rground + "\nNumbers: " + nnumbers + "\nSensibly: " + sens + "\nBarheight: " + bhight + "\nBar-width: " + bwidth + "\nSmooth: " + smtime + "\nScroll: " + stime + "\nBarstyle: " + bstyle + "\nAuto: " + dri); txtypc.alpha = 1; txtypc.x = 1185; txtypc.y = 480; var countco = 0; var linec = 0; stage.addEventListener(KeyboardEvent.KEY_DOWN, madebys); var presi = 0; var presi2 = 0; function madebys(e: KeyboardEvent) { if (e.keyCode == Keyboard.NUMBER_1) { presi = 1; } if (e.keyCode == Keyboard.NUMBER_2) { presi = 3; } if (e.keyCode == Keyboard.NUMBER_3) { presi = 2; } if (e.keyCode == Keyboard.NUMBER_4) { presi = 4; } if (e.keyCode == Keyboard.NUMBER_5) { presi = 5; } if (e.keyCode == Keyboard.NUMBER_6) { presi = 0; } if (e.keyCode == Keyboard.N) { numy += 1; if (numy >= (musy.length)) { numy = 0; } wechsel(); } if (e.keyCode == Keyboard.B) { numy -= 1; if (numy <= -1) { numy = (musy.length - 1); } wechsel(); } if (e.keyCode == Keyboard.S) { if (mux > 0.05) { mux -= 0.05; } } if (e.keyCode == Keyboard.D) { if (mux < 2) { mux += 0.05; } } if (e.keyCode == Keyboard.M) { zzz = 1; tonx = new FileReference(); inputfile = new FileReference(); var nurmp3: FileFilter = new FileFilter("MP3 Files (*.mp3)", "*.mp3"); inputfile.browse([nurmp3]); inputfile.addEventListener(Event.SELECT, ausgewelt); } var colrund: uint = (mux * 30); voli.graphics.clear(); voli.graphics.lineStyle(0.5, (rainbow[colrund]), 6); voli.graphics.moveTo((1320 - ((1320 - txtytmv.x) - (120 * mux))), (txtytmv.y - 2)); voli.graphics.lineTo((txtytmv.x - 2), (txtytmv.y - 2)); voli.graphics.lineTo((txtytmv.x - 2), ((txtytmv.y + 2) + txtytmv.height)); voli.graphics.lineTo((1320 - ((1320 - txtytmv.x) - (120 * mux))), ((txtytmv.y + 2) + txtytmv.height)); txtytmv.textColor = (rainbow[colrund]); addChild(voli); if (e.keyCode == Keyboard.R) { bars = 1; bwidth = 2; rspeed = 10; smtime = 10; stime = 10; rground = 1; bstyle = 0; nnumbers = 300; sens = 1; bhight = 2; } if (e.keyCode == Keyboard.C) { pressi++; if (pressi >= 1) {} if (pressi >= 2) { removeChild(txtypc); removeChild(seli); pressi = 0; } } if (pressi == 1) { addChild(txtypc); seli.graphics.drawRect(1188, 559, 130, 14); if (e.keyCode == Keyboard.UP) { kcounty--; } if (kcounty <= -1) { kcounty = 10; } if (e.keyCode == Keyboard.DOWN) { kcounty++; if (kcounty >= 11) { kcounty = 0; } } seli.x = 0; seli.y = (11.5 * (kcounty - 4)); if (e.keyCode == Keyboard.LEFT) { if (kcounty == 0 && bars >= 2) { bars--; } if (kcounty == 1 && rspeed >= 1) { rspeed--; } if (kcounty == 2 && rground >= 2) { rground--; } if (kcounty == 3 && nnumbers >= 1) { nnumbers -= 10; } if (kcounty == 4 && bars >= 0.2) { sens -= 0.2; } if (kcounty == 5 && bhight >= -312) { bhight--; } //-----------------reihe2 if (kcounty == 6 && bwidth >= -312) { bwidth--; } if (kcounty == 7 && smtime >= 1) { smtime--; } if (kcounty == 8 && stime >= 1) { stime--; } if (kcounty == 9 && bars >= 1) { bstyle--; } if (kcounty == 10) { dri = 1; } } if (e.keyCode == Keyboard.RIGHT) { if (kcounty == 0 && bars <= 255) { bars++; } if (kcounty == 1) { rspeed++; } if (kcounty == 2 && rground <= 3) { rground++; } if (kcounty == 3) { nnumbers += 10; } if (kcounty == 4 && sens <= 10) { sens += 0.2; } if (kcounty == 5 && bhight <= 312) { bhight++; } //-----------------reihe2 if (kcounty == 6 && bwidth <= 312) { bwidth++; } if (kcounty == 7) { smtime++; } if (kcounty == 8) { stime++; } if (kcounty == 9 && bars <= 500) { bstyle++; } if (kcounty == 10) { dri = 0; } } txtypc.text = String("> something went wrong"); } function wieviel(event: ProgressEvent) { var file: FileReference = FileReference(event.target); var percentLoaded: uint = event.bytesLoaded / event.bytesTotal * 61; txtym.text = String("MEOW getting new Pencil ..."); alls.graphics.clear(); stati.graphics.lineStyle(0.5, (rainbow[percentLoaded]), 6); stati.graphics.moveTo(1060, 698); stati.graphics.lineTo((percentLoaded * 4.2) + 1060, 698); addChild(stati); // percentage = Math.round((event.bytesLoaded / event.bytesTotal) * 100).toString() + "%"; } function geladen(event: Event) { var inputfile: FileReference = event.target as FileReference; var data: ByteArray = inputfile.data; var nb16: Sound = new Sound(); nb16.addEventListener(Event.ID3, getid3); function getid3(e: Event) { var s: Sound = e.target as Sound; id3s = String("Titel: " + s.id3.songName + "\n" + "Album: " + s.id3.album + "\n" + "Artist: " + s.id3.artist + "\n" + "Gerne: " + s.id3.genre + "\n" + (inputfile.size / 1000) + " kb.. \nKey M for add more MP3s "); id3c.push(id3s); txtym.text = id3s; addChild(txtym); } nb16.loadCompressedDataFromByteArray(data, data.length); data.clear(); names.push(inputfile.name); musy.push(nb16); soundplaying(); } function soundplaying() { txtym.text = id3c[numy]; txtytm.text = String("< MEOW! Playlist key: N = down B = up >\n"); for (var it = -1; it < (musy.length - 1); it++) { //txtytm.text = String(""); // musy[it].addEventListener(Event.ID3, getid3); if ((it) == (numy)) { txtytm.appendText("=> " + names[it] + "\n"); } if ((it) != (numy)) { txtytm.appendText("-- " + names[it] + "\n"); } } numy = (musy.length - 1); s4.stop(); s4 = musy[numy].play(0, 999999); //wechsel(); } //ende input function wechsel() { s4.stop(); s4 = musy[numy].play(0, 999999); txtym.text = id3c[numy]; txtytm.text = String("<-Playlist>> key: N =next B =prev \n"); for (var it = -1; it < (musy.length - 1); it++) { //txtytm.text = String(""); // musy[it].addEventListener(Event.ID3, getid3); if ((it) == (numy - 1)) { txtytm.appendText("=> " + names[it] + "\n"); } if ((it) != (numy - 1)) { txtytm.appendText("-- " + names[it] + "\n"); } // numy = it; } } musy.push(noicse); id3c.push(String("some problems with id3 \n but working on it \n ~~*wusel* \n |-__/,| ('`\ \n _.|^.^ |_ ) )\n----(((------(((---------")); s4 = musy[numy].play(0, 999999); addEventListener(Event.ENTER_FRAME, loopa); function loopa(e: Event) { if (armenge <= 300) { var smoothy = Math.random() * 200; smooth.push(smoothy); armenge++; } if (armenge2 <= 600) { var smoothy2 = Math.random() * 768; smooth2.push(smoothy2); armenge2++; } allss.graphics.clear(); addChild(allss); wielaut.volume = mux; s4.soundTransform = wielaut; SoundMixer.computeSpectrum(ba, true); max += 1 if (max >= 258) { max = 0; } wavy.graphics.clear(); all.graphics.clear(); allb.graphics.clear(); allsb.graphics.clear(); alls.graphics.clear(); linec = 0; wavy.graphics.moveTo(0, 384); for (var i: uint = 0; i < 256; i++) { //1024 4 if ((i % bars) == 0) { if (presi >= 1 && presi <= 3) { col += 0.481 + ((rspeed - 10) / 100); if (col >= (rainbow.length)) { col = 0; } } if (presi == 0) { col += Math.random() * 0.47; if (col >= (rainbow.length)) { col = 0; } } if (presi == 4) { col += Math.random() * 0.47; if (col >= (rainbow.length)) { col = 0; } } if (presi >= 5) { col += 0.481 + ((rspeed - 10) / 100); if (col >= (rainbow.length)) { col = 0; } } var colsrm: uint = col; if (presi == 0) { if (col >= (60)) { col = 0; } var wuschy19: Number = ba.readFloat() * (100 + ist + ((i / 1.2) * sens)); var colrm: uint = smooth[i] / 5; if ((smooth[i] / 3) <= 2 && (smooth[i] / 3) >= 0 && rground <= 2) { all.graphics.beginFill(rainbow[colsrm]); } if ((smooth[i] / 3) >= 2 && (smooth[i] / 5) <= 61 && rground <= 3) { all.graphics.beginFill(rainbow[Math.floor(colsrm)]); } if ((wuschy19 - 1) >= 10) { all.graphics.beginFill(rainbow[Math.floor((wuschy19 / 2))]); } alls.graphics.beginFill(rainbow[Math.floor(col)]); if (smooth[i] >= (wuschy19 * 2)) { smooth[i] -= (0.1 * smtime); } if (smooth[i] <= (wuschy19 * 2)) { smooth[i] = (wuschy19 / 4); } if (rground == 1) { all.graphics.drawRect(1018 - (smooth[i] / 2), (768 - ((i * 3)) + 1), bwidth - 1, bhight - 1); } if (rground <= 4) { all.graphics.drawRect(1018 - (wuschy19 / 4), (768 - (i * 3)), bwidth - 1, bhight - 1); } //if (i <1024) {} (wuschy19 /6)+ if (wuschy19 >= 3) { allss.graphics.lineStyle(0.5, (rainbow[colsrm]), 6); allss.graphics.moveTo(1225, 350); allss.graphics.lineTo(1018 - (smooth[i] / 2), (768 - (i * 3))); allss.graphics.lineTo(1225, 418); allss.graphics.lineTo(1305, 418); allss.graphics.lineTo(1305, 350); allss.graphics.lineTo(1225, 350); txtya.textColor = (rainbow[colsrm]); } allss.graphics.lineStyle(0.5, (rainbow[colsrm]), 6); } if (presi >= 1 && presi <= 2) { var wuschy19b: Number = ba.readFloat() * ((200 + (i * 2)) * sens); allb.graphics.beginFill(rainbow[Math.floor(col)]); allsb.graphics.beginFill(rainbow[Math.floor(col)]); allss.graphics.lineStyle(0.5, (rainbow[colsrm]), 6); txtya.textColor = (rainbow[colsrm]); if (smooth2[i] >= (wuschy19b * 2)) { smooth2[i] -= 1 + (wuschy19b / (5 * smtime)); } if (smooth2[i] <= (wuschy19b * 2)) { smooth2[i] += (wuschy19b / (4 * smtime)); } if (bstyle == 0) { allb.graphics.drawRect((i * 4), wuschy19b, bwidth, (wuschy19b / 6) + 10); allsb.graphics.drawRect(((i * 4) + 5), (754 - smooth2[i]), bwidth, (((wuschy19b / 6) + 10) * pulse3)); } if (bstyle == 1) { allb.graphics.drawRect((i * 4), wuschy19b, bwidth, bhight); allsb.graphics.drawRect(((i * 4) + 5), (754 - smooth2[i]), bwidth, bhight); } if (bstyle == 2) { allb.graphics.drawRect((i * 4), 1, bwidth, wuschy19b); allsb.graphics.drawRect(((i * 4) + 5), 767, bwidth, (768 - (768 + (smooth2[i])))); } if (bstyle == 3) { // allb.graphics.drawRect((i * 4), 1, wuschy19b, bwidth); allsb.graphics.drawRect(((i * 4) + 5), (754 - (smooth2[i] * 2)), (wuschy19b / (16 / bwidth)) + 1, bhight); } } if (presi >= 2 && presi <= 3) { if (pulse == 1 && maxmtxts < nnumbers) { pulse = 0; maxmtxts += 50; pulse = 0; } delays++; if (delays > 3 && maxmtxts > 20) { maxmtxts--; delays = 0; } if (mtxtzahl <= maxmtxts && z16 <= 5 && z16 >= 1) { machmal(); machmal(); machmal(); machmal(); machmal(); machmal(); machmal(); machmal(); machmal(); machmal(); machmal(); machmal(); } allss.graphics.lineStyle(0.5, (rainbow[colsrm]), 6); } } if (presi == 4 && i < 250) { var wuschy19c: Number = ba.readFloat() * ((200 + (i * 2)) * sens); allss.graphics.lineStyle(1, rainbow[Math.floor(colsrm)], 6); wavy.graphics.lineStyle(bhight, rainbow[Math.floor(colsrm)], 5); txtya.textColor = (rainbow[colsrm]); allss.graphics.moveTo(1225, 350); if (i == 248) { allss.graphics.lineTo(1018, 384 - (wuschy19c / 2)); } allss.graphics.lineTo(1225, 418); allss.graphics.lineTo(1305, 418); allss.graphics.lineTo(1305, 350); allss.graphics.lineTo(1225, 350); if (i > 1 && i < 256) { linec++; } if (i <= 1) { linec = 0; } wavy.graphics.moveTo(512, 384); wavy.graphics.lineTo(((i * 4.1)), (384 - (wuschy19c / 2) * sens)); wavy.graphics.moveTo(512, 384); wavy.graphics.lineTo(((i * 4.1)), (384 + (384 - (wuschy19c * 5) * sens))); // wavy.graphics.lineTo((768-(i*4)), 384-(wuschy19c/5)); txtya.textColor = (rainbow[colsrm]); 1018 - (1024 - (i * 4)) } if (presi == 5 && i < 250) { var wuschy19cs: Number = ba.readFloat() * ((200 + (i * 2)) * sens); allss.graphics.lineStyle(1, rainbow[Math.floor(colsrm)], 6); wavy.graphics.lineStyle(bhight, rainbow[Math.floor(col)], 5); txtya.textColor = (rainbow[colsrm]); allss.graphics.moveTo(1225, 350); if (i == 248) { allss.graphics.lineTo(1018, 384); } allss.graphics.lineTo(1225, 418); allss.graphics.lineTo(1305, 418); allss.graphics.lineTo(1305, 350); allss.graphics.lineTo(1225, 350); if (i > 1 && i < 256) { linec++; } if (i <= 1) { linec = 0; } wavy.graphics.lineTo(((i * 4.1)), (384 - (wuschy19cs / 2) * sens)); txtya.textColor = (rainbow[colsrm]); 1018 - (1024 - (i * 4)) } if (i > 5 && i <= 7) { var wuschy20: Number = ba.readFloat() * 480; wuschy201 = wuschy20; } if (pulse3 >= 3) { pulse3 -= 1; } // begin beaterkennung frequenzwahl ----------------------------------- if (i >= 248 && i <= 251) { var wuschy115: Number = ba.readFloat() * 1100; // multiplikator = exponenzielle empfindlichkeit var z103 = wuschy115; // minikorrectur var z108 = z15 + 30; // differenz offset gelb und deterction var z108b = z108 - z15; var z109a = z15 + z108b; var z109b = z15; var z109aa = wuschy115; if (z103 > 40) { //offset 40 ist der mindestpegel damit beaterkennung läuft if (z103 < z15) { z15 -= 0.3; //offset speed } else { z15 += 0.3; //offset speed } } if (z118 == 0 && z110 == 1) { pulse2 = 1; pulse3 = 8; } if (z110 == 1) { // anzeigeverlängerung z111 += 1; z116 += 1; z118 = 1; } if (z116 == 30) { //wartedauer bis neue mögliche anzeige z116 = 0; z118 = 0; z110 = 0; z111 = 0; } if (z103 > 20) { // uberhaupt musik da if (z103 < z108) { bild5.graphics.beginFill(0x0000FF); } else { bild5.graphics.beginFill(0xFFFFFF); z110 = 1; } //umfärben bei beat +signal } //ende beaterkennung ----------------------------------- } // begin beaterkennung frequenzwahl ----------------------------------- if (i >= 8 && i <= 9) { var wuschy15: Number = ba.readFloat() * 200; // multiplikator = exponenzielle empfindlichkeit var z03 = wuschy15; // minikorrectur var z08 = z14 + 30; // differenz offset gelb und deterction var z08b = z08 - z14; var z09a = z14 + z08b; var z09b = z14; var z09aa = wuschy15; if (z03 > 20) { //offset 40 ist der mindestpegel damit beaterkennung läuft if (z03 < z14) { z14 -= 0.3; //offset speed } else { z14 += 0.3; //offset speed } } if (z18 == 0 && z10 == 1) { pulse = 1; } if (z10 == 1) { // anzeigeverlängerung z11 += 1; z16 += 1; z18 = 1; } if (z16 == 20) { //wartedauer bis neue mögliche anzeige z16 = 0; z18 = 0; z10 = 0; z11 = 0; } if (z03 > 20) { // uberhaupt musik da if (z03 < z08) { bild5.graphics.beginFill(0x0000FF); } else { bild5.graphics.beginFill(0xFFFFFF); z10 = 1; } //umfärben bei beat +signalm } //ende beaterkennung ----------------------------------- } } txtym.borderColor = (rainbow[colsrm]); allss.graphics.moveTo(1306, 418); allss.graphics.lineTo(1306, (418 - z14)); allss.graphics.moveTo(1307, (418 - z14)); allss.graphics.lineTo((1307 + (z16 / 1.5)), (418 - z14)); allss.graphics.moveTo(1307, (419 - z14)); allss.graphics.lineTo((1307 + (z03 / 5)), (419 - z14)); playlistc++; if (playlistc >= 2) { playlistc2++; playlistc = 0; } if (pressi == 1) { seli.graphics.clear(); txtypc.borderColor = (rainbow[z16 + 40]); txtypc.textColor = (rainbow[z16]); seli.graphics.lineStyle(((z16) / 5) + 1, (rainbow[z16 + 30]), ((z16) / 3) + 1); seli.graphics.drawRect(1177, 559, 142, 15); addChild(seli); } txtytm.textColor = (rainbow[playlistc2]); if (playlistc2 >= (rainbow.length + 1)) { playlistc2 = 0; } acellerate2(); addChild(allb); addChild(wavy); addChild(allsb); addChild(alls); var sowiso: uint = (z15 - 300) / 10; txtyp.textColor = (rainbow[sowiso]); gfx.draw(all); gfx.scroll(-(0.3 * stime), 0); gfx.colorTransform(rect, cTransform); if (z16 == 5) { drir = Math.random() * 2; } if (dri == 1 && drir < 1) { bars += 1; if (bars >= 256) { bars = 1; } txtypc.text = String("MEOW ~ config \nuse Arrow keys \n \nHSL + psy: " + bars + "\nRGBspeed: " + rspeed + "\nGround: " + rground + "\nNumbers: " + nnumbers + "\nSensibly: " + sens + "\nBarheight: " + bhight + "\nBar-width: " + bwidth + "\nSmooth: " + smtime + "\nScroll: " + stime + "\nBarstyle: " + bstyle + "\nAuto: " + dri); } if (dri == 1 && drir > 1) { bars -= 1; if (bars <= 0) { bars = 256; } txtypc.text = String("MEOW ~ config \nuse Arrow keys \n \nHSL + psy: " + bars + "\nRGBspeed: " + rspeed + "\nGround: " + rground + "\nNumbers: " + nnumbers + "\nSensibly: " + sens + "\nBarheight: " + bhight + "\nBar-width: " + bwidth + "\nSmooth: " + smtime + "\nScroll: " + stime + "\nBarstyle: " + bstyle + "\nAuto: " + dri); } if (ist <= 1) { var bm: Bitmap = new Bitmap(gfx); ist++; addChild(bm); } } function machmal() { var chari = 0; var zahly = Math.random() * 4; var txty: TextField = new TextField(); var hoch = Math.random() * 768; var speedy = Math.random() * 20; var hohes = 0; //-------------------------------- txtyf.align = TextFormatAlign.LEFT; txtyf.font = mono.fontName; txtyf.size = Math.random() * 30 + 20; txtyf.bold = true; txty.x = 0; txty.y = 0; txty.background = false; txty.backgroundColor = 0x000000; txty.border = false; txty.multiline = true; txty.wordWrap = true; txty.embedFonts = true; txty.width = 40; txty.height = 40; txty.defaultTextFormat = txtyf; txty.textColor = 0xFF0069; txty.alpha = 1; txty.text = String(liny[chari]); txty.alpha = 0.5; txty.x = Math.random() * 1024; txty.y = hoch; //------------------------------------- mtxtzahl++; zeugsa.push(hoch); zeugsb.push(chari); zeugsc.push(speedy); zeugsd.push(zahly); hohe.push(hohes); speicherarray2.push(txty); addChild(txty); } function verschwind2(mtxti: TextField) { //movieclip for (var i3 = 0; i3 < speicherarray2.length; i3++) { var mtxt: TextField = speicherarray2[i3]; //movieclip if (mtxt == mtxti) { mtxtzahl--; speicherarray2.splice(i3, 1); // speicherarray3.splice(i3, 1); zeugsa.splice(i3, 1); zeugsb.splice(i3, 1); zeugsc.splice(i3, 1); zeugsd.splice(i3, 1); hohe.splice(i3, 1); removeChild(mtxt); } } } function acellerate2() { for (var i3 = 0; i3 < speicherarray2.length; i3++) { var mtxt: TextField = speicherarray2[i3]; //movieclip if (pulse2 == 1) { mtxt.alpha += 0.08; pulse2 = 0; } if (pulse == 1) { mtxt.alpha += 0.008; pulse = 0; } // mtxt.y /= 1.002; mtxt.y -= zeugsd[i3] / 2; if (mtxt.alpha >= 0.3) { mtxt.alpha += 0.01; } zeugsd[i3]++; if (zeugsd[i3] >= zeugsc[i3]) { zeugsb[i3]++; if (zeugsb[i3] >= 4) { zeugsb[i3] = 0; } mtxt.text = String(liny[zeugsb[i3]]); hohe[i3] += 30 / smooth[i3]; mtxt.y = zeugsa[i3] + hohe[i3]; zeugsd[i3] = 0; } if (mtxt.alpha <= 0.03) { verschwind2(mtxt); } if (mtxt.y <= 0) { verschwind2(mtxt); } if (mtxt.y >= 780) { verschwind2(mtxt); } if (mtxt.alpha >= 0.999) { verschwind2(mtxt); } } } var MEOW: Array = new Array("MEOW! FLASH music player by marderchen =^.^= .. getting better+ Cats are awesome ~~~ purr its cute.. and its free! working for fun and cutenes not for making money!)");