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

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

Ranekti_cd_skinned_002.swf

This is the info page for
Flash #246254

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


Text
SoundPlayer

00:00

ActionScript [AS1/AS2]

Instance of Symbol 45 MovieClip [SoundPlayer] "sp" in Frame 1
//component parameters onClipEvent (initialize) { pl_array = []; pl_array[0] = "pnv/mp3/01.mp3"; pl_array[1] = "pnv/mp3/02.mp3"; pl_array[2] = "pnv/mp3/03.mp3"; pl_array[3] = "pnv/mp3/04.mp3"; pl_array[4] = "pnv/mp3/05.mp3"; pl_array[5] = "pnv/mp3/06.mp3"; pl_array[6] = "pnv/mp3/07.mp3"; pl_array[7] = "pnv/mp3/08.mp3"; pl_array[8] = "pnv/mp3/09.mp3"; pl_array[9] = "pnv/mp3/10.mp3"; pl_array[10] = "pnv/mp3/11.mp3"; pl_array[11] = "pnv/mp3/12.mp3"; pl_array[12] = "pnv/mp3/13.mp3"; disp_array = []; disp_array[0] = "01. \u041B\u0435\u0442\u0438-\u043B\u0435\u0442\u0438"; disp_array[1] = "02. \u041E\u0431\u0435\u0449\u0430\u0439"; disp_array[2] = "03. \u041C\u0430\u043B\u044C\u0447\u0438\u043A \u043C\u043E\u0439"; disp_array[3] = "4. \u0427\u0442\u043E-\u0442\u043E \u0442\u0438\u043F\u0430 \u0442\u043E\u0433\u043E..."; disp_array[4] = "5. \u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u0448\u0430\u043D\u0441"; disp_array[5] = "6. \u041D\u0435\u0442 \u043C\u0438\u0440\u0430 \u0431\u0435\u0437 \u0442\u0435\u0431\u044F"; disp_array[6] = "7. \u041B\u044E\u0431\u043E\u0432\u044C-\u043D\u0430\u0434\u0435\u0436\u0434\u0430"; disp_array[7] = "8. \u0427\u0435\u043C\u043F\u0438\u043E\u043D\u044B \u043B\u044E\u0431\u0432\u0438"; disp_array[8] = "9. \u0415\u0441\u043B\u0438 \u0442\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0448\u044C \u0440\u044F\u0434\u043E\u043C"; disp_array[9] = "10. \u041D\u0430 \u043C\u043E\u0435\u0439 \u043B\u0443\u043D\u0435"; disp_array[10] = "11. \u041D\u0430\u0441 \u043D\u0435 \u0438\u0437\u043C\u0435\u043D\u044F\u0442"; disp_array[11] = "12. \u042F \u0432 \u0448\u043E\u043A\u0435"; disp_array[12] = "13. \u042F \u0443\u0439\u0434\u0443"; xml_file = ""; startVolume = 100; startPan = 0; autoPlay = true; shuffle = false; loopList = true; streaming = true; preloadColor = 13260; sbuffer = 5; autoscroll = 50; repeat = 1; displayDuration = false; pl_comp = "pl"; }
Symbol 5 MovieClip [playlist_btn] Frame 1
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 12 MovieClip [SoundPlayerPlaylist] Frame 1
#initclip 1 function SoundPlayerPlaylistClass() { var _local1 = this; _local1.w = _local1._width; _local1.h = _local1._height; _local1._xscale = 100; _local1._yscale = 100; if (_local1.maskit) { _local1.makeMask(); } } var s = ((SoundPlayerPlaylistClass.prototype = new MovieClip())); s.setList = function (sp) { var _local1 = this; _local1.splayer = sp; _local1.lista = sp.lista; _local1.makeButtons(); if (_local1.maskit) { _local1.setScrollButtons(); } }; s.makeButtons = function () { var _local2 = this; _local2.deleteButtons(); _local2.initButton(0); var _local1 = 1; while (_local1 < _local2.lista.length) { var _local3 = _local2.plist.pl0_btn.duplicateMovieClip(("pl" + _local1) + "_btn", _local1, {_y:_local2.plist[("pl" + (_local1 - 1)) + "_btn"]._y + _local2.plist.pl0_btn._height}); _local2.initButton(_local1); _local1++; } _local2.setCurrent(_local2.splayer.autoPlay); }; s.initButton = function (no) { var _local2 = this; var _local1 = _local2.plist[("pl" + no) + "_btn"]; _local1.no = no; var _local3 = (_local2.enumerate ? ((no + 1) + ". ") : ""); _local1.songname = _local3 + _local2.lista[no].display_txt; _local1.onRelease = function () { this._parent._parent.splayer.doPlay(this.no); }; }; s.setCurrent = function (t) { var _local1 = this; _local1.cur.enabled = true; _local1.cur.gotoAndStop("_up"); _local1.cur = _local1.plist[("pl" + _local1.splayer.curIndex) + "_btn"]; _local1.setCurrentState(t); if (_local1.mask) { if ((_local1.plist._y + _local1.cur._y) > (_local1.h - _local1.cur._height)) { _local1.plist._y = (-_local1.cur._y) + (_local1.h - _local1.cur._height); } if ((_local1.plist._y + _local1.cur._y) < 0) { _local1.plist._y = -_local1.cur._y; } } }; s.setCurrentState = function (t) { var _local1 = this; if (t) { _local1.cur.gotoAndStop("_on"); _local1.cur.enabled = false; } else { _local1.cur.gotoAndStop("_up"); _local1.cur.enabled = true; } }; s.deleteButtons = function () { var _local2 = this; var _local1 = 1; while (_local2[("pl" + _local1) + "_btn"] != undefined) { _local2.plist[("pl" + _local1) + "_btn"].removeMovieClip(); _local1++; } }; s.setScrollButtons = function () { var _local1 = this; if ((_local1.plist._height < _local1.h) || (_local1.up_btn)) { } else { var _local3 = _local1.attachMovie("playlist_btn", "up_btn", 31); _local3._x = _local1.w; var _local2 = _local1.attachMovie("playlist_btn", "down_btn", 32); _local2._rotation = 180; _local2._x = _local1.w + _local2._width; _local2._y = _local1.h; _local3.pl = (_local2.pl = _local1.plist); _local3.onPress = function () { var _local1 = this; _local1.onEnterFrame = function () { var _local1 = this; if (_local1.pl._y < 0) { _local1.pl._y = _local1.pl._y + _local1._parent.step; } }; }; _local2.onPress = function () { var _local1 = this; _local1.onEnterFrame = function () { var _local1 = this; if (_local1.pl._y > (_local1._parent.h - _local1.pl._height)) { _local1.pl._y = _local1.pl._y - _local1._parent.step; } }; }; _local3.onRelease = (_local2.onRelease = function () { this.onEnterFrame = undefined; }); } }; s.makeMask = function () { var _local2 = this; _local2.setScrollButtons(); var _local1 = _local2.createEmptyMovieClip("mask", 23); _local2.plist.setMask(_local1); _local1.beginFill(0); _local1.lineTo(_local2.w, 0); _local1.lineTo(_local2.w, _local2.h); _local1.lineTo(0, _local2.h); _local1.lineTo(0, 0); _local1.endFill(); }; Object.registerClass("SoundPlayerPlaylist", SoundPlayerPlaylistClass); #endinitclip
Symbol 16 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 45 MovieClip [SoundPlayer] Frame 1
#initclip 2 function SoundPlayerClass() { var _local1 = this; _local1.tl = _local1; _local1.ctrls = new SPControls(_local1); _local1.init(); } var s = ((SoundPlayerClass.prototype = new MovieClip())); s.init = function () { this.stopped = true; this.paused = false; this.kontraTime = false; this.setVolume(this.startVolume); this.setPan(this.startPan); this.prevPosition = 0; this.isPlaying = false; this.ctrls.time_slider._visible = false; this.lista = []; this.curIndex = 0; this.pl_comp = eval (this.pl_comp); var i = 0; while (i < this.pl_array.length) { this.addFile(this.pl_array[i], this.disp_array[i]); i++; } this.plIntID = setInterval(this, "doLater", 50); if (this.xml_file != "") { this.addXML(this.xml_file); } else { if (this.shuffle) { this.randomizeList(); } if (this.autoPlay && (this.pl_array != undefined)) { this.doPlay(); } this.ctrls.setSongName(); } }; s.initSound = function (startSound) { var _local1 = this; _local1.resetStream(); _local1.ctrls.nameCounter = 0; _local1.currentPlay = new Sound(_local1); _local1.currentPlay.tl = _local1; _local1.currentPlay.onSoundComplete = _local1.onNext; _local1.currentPlay.onID3 = function () { this.tl.ctrls.setSongName(true); }; if (startSound) { _local1.currentPlay.onLoad = function () { var _local1 = this; _local1.start(0, _local1.tl.repeat); _local1.tl.setVolume(_local1.tl.currentVolume); _local1.tl.setPan(_local1.tl.currentPan); _local1.tl.ctrls.setSongName(); }; } else { _local1.currentPlay.onLoad = function () { var _local1 = this; _local1.tl.setVolume(_local1.tl.currentVolume); _local1.tl.setPan(_local1.tl.currentPan); _local1.tl.ctrls.setSongName(); }; } }; s.streamSound = function (id) { var _local1 = this; var _local2 = id; if (_local2 != undefined) { _local1.curIndex = Number(_local2); _local1.currentPlay.stop(); _local1.currentPlay.pos = 0; _local1.isPlaying = false; _local1.initSound(!_local1.lista[_local1.curIndex].stream); if (_local1.lista[_local1.curIndex].path.indexOf(".") != -1) { _local1.currentPlay.loadSound(_local1.lista[_local1.curIndex].path, _local1.lista[_local1.curIndex].stream); _local1.setVolume(_local1.currentVolume); _local1.preStream(); } else { _local1.initSound(true); _local1.currentPlay.attachSound(_local1.lista[_local2].path); _local1.currentPlay.onLoad(); } _soundbuftime = _local1.lista[_local1.curIndex].buffer; _local1.ctrls.time_slider._visible = true; } }; s.onPlay = function (mc_btn) { var _local1 = this; var _local2 = mc_btn; if (_local1.lista) { if (_local1.paused) { _local1.currentPlay.start(_local1.currentPlay.pos); _local1.paused = false; _local1.ctrls.Pause.gotoAndStop("_up"); _local1.ctrls.Pause.onRollOver = function () { this.$path.onPauseOver(); }; _local1.ctrls.Pause.onRollOut = function () { this.$path.onPauseOut(); }; } else { _local1.currentPlay.pos = 0; _local1.streamSound(_local1.getCurrent()); _local1.stopped = false; } _local2.gotoAndStop("_on"); _local2.enabled = false; clearInterval(_local1.intID); _local1.intID = setInterval(_local1, "whenPlaying", 100); _local1.ctrls.setSongName(); _local1.pl_comp.setCurrent(true); _local1.onPlayRelease(_local2); } }; s.whenPlaying = function () { var _local1 = this; if ((_local1.currentPlay.position != _local1.prevPosition) && (!_local1.isPlaying)) { _local1.isPlaying = true; _local1.onSoundStart(); } if ((_local1.currentPlay.position == _local1.prevPosition) && (_local1.isPlaying)) { _local1.isPlaying = false; _local1.onSoundStop(); } _local1.prevPosition = _local1.currentPlay.position; var _local2 = (_local1.paused ? (_local1.currentPlay.pos) : (_local1.currentPlay.position / 1000)); _local1.ctrls.setTimePosition(_local2, _local1.currentPlay.duration / 1000); _local1.ctrls.setTime(Math.round(_local1.currentPlay.position / 1000)); }; s.onNext = function (mc_btn) { var _local1 = this; if (_local1.tl.lista.length != 1) { if (_local1.mon) { _local1.tl.resetStream(); } if (_local1.tl.paused) { _local1.doStop(); _local1.doNext(); } else if (_local1.stopped) { _local1.setNext(); _local1.ctrls.setSongName(true); } else { _local1.tl.setNext(); if ((_local1.tl.curIndex == 0) && (!_local1.tl.loopList)) { _local1.tl.doStop(); _local1.tl.ctrls.setSongName(true); } else { _local1.tl.doPlay(); } } } _local1.onNextRelease(mc_btn); }; s.onPrev = function (mc_btn) { var _local1 = this; if (_local1.getPrev() != null) { if (_local1.mon) { _local1.resetStream(); } if (_local1.tl.paused) { _local1.doStop(); _local1.doPrev(); _local1.doPause(); } else if (_local1.stopped) { _local1.setPrev(); _local1.ctrls.setSongName(true); } else { _local1.tl.setPrev(); _local1.tl.doPlay(); } } _local1.onPrevRelease(btn_mc); }; s.onStop = function (mc_btn) { var _local1 = this; _local1.currentPlay.pos = 0; _local1.ctrls.time_slider._x = 0; _local1.stopPlayback(); _local1.ctrls.Play.gotoAndStop("_up"); if (_local1.paused) { _local1.ctrls.Pause.gotoAndStop("_up"); _local1.ctrls.Play.onRollOver = function () { this.$path.onPlayOver(); }; _local1.ctrls.Play.onRollOut = function () { this.$path.onPlayOut(); }; _local1.ctrls.Pause.onRollOver = function () { this.$path.onPauseOver(); }; _local1.ctrls.Pause.onRollOut = function () { this.$path.onPauseOut(); }; _local1.paused = false; } _local1.stopped = true; _local1.ctrls.time_txt.text = "00:00"; _local1.ctrls.time_slider._visible = false; _local1.pl_comp.setCurrentState(false); _local1.onStopRelease(btn_mc); }; s.stopPlayback = function () { var _local1 = this; _local1.currentPlay.stop(); clearInterval(_local1.intID); _local1.ctrls.Play.enabled = true; if (_local1.isPlaying) { _local1.onSoundStop(); } _local1.isPlaying = false; }; s.onPause = function (mc_btn) { var _local1 = this; var _local2 = mc_btn; if (_local1.ctrls.Play._currentframe != 1) { if (_local1.paused) { _local1.doPlay(); _local2.gotoAndStop("_over"); _local2.onRollOver = function () { this.$path.onPauseOver(); }; _local2.onRollOut = function () { this.$path.onPauseOut(); }; _local1.ctrls.Play.enabled = false; _local1.ctrls.Play.onRollOver = function () { this.$path.onPlayOver(); }; _local1.ctrls.Play.onRollOut = function () { this.$path.onPlayOut(); }; } else { _local1.currentPlay.pos = _local1.currentPlay.position / 1000; _local1.paused = true; _local1.stopPlayback(); _local2.gotoAndStop("_on"); _local2.onRollOver = function () { this.gotoAndStop("_on"); this.$path.onPauseOver(); }; _local2.onRollOut = function () { this.gotoAndStop("_on"); this.$path.onPauseOut(); }; _local1.ctrls.Play.onRollOver = function () { this.gotoAndStop("_on"); this.$path.onPlayOver(); }; _local1.ctrls.Play.onRollOut = function () { this.gotoAndStop("_on"); this.$path.onPlayOut(); }; } } _local1.onPauseRelease(btn_mc); }; s.setPosition = function (pos) { var _local1 = this; _local1.currentPlay.stop(); _local1.currentPlay.pos = pos; if (!_local1.paused) { _local1.currentPlay.start(pos); } }; s.getPosition = function () { return(this.currentPlay.position); }; s.setVolume = function (vol) { var _local1 = vol; var _local2 = this; _local2.currentPlay.setVolume(_local1); _local2.currentVolume = _local1; _local2.ctrls.setVolumePosition(_local1); }; s.setPan = function (val) { var _local1 = val; var _local2 = this; _local2.currentPlay.setPan(_local1); _local2.currentPan = _local1; _local2.ctrls.setPanPosition(_local1); }; s.preStream = function () { var _local1 = this; _local1.createEmptyMovieClip("mon", 93); var bbox = _local1.gfx.time_slider.track; _local1.mon.sw = bbox._width; bbox.col.setRGB(_local1.preloadColor); _local1.mon.onEnterFrame = function () { var _local1 = this; var t = _local1._parent.currentPlay.getBytesTotal(); var l = _local1._parent.currentPlay.getBytesLoaded(); var _local2 = Math.round((l / t) * 100); var _local3 = _local1._parent.gfx.time_slider.track; _local1._parent.ctrls.changeDisplayDuration(); _local1._parent.onPercentage(_local2); if ((_local2 < 100) && (_local3._alpha == 0)) { _local3._alpha = 100; } _local3._width = _local2 * (_local1.sw / 100); if (_local2 == 100) { _local1._parent.resetStream(); } }; }; s.resetStream = function () { var _local2 = this; if (_local2.mon) { var _local1 = _local2.gfx.time_slider.track; _local1._width = _local2.mon.sw; _local1.col.setTransform({ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0"}); _local1._alpha = 0; _local2.mon.removeMovieClip(); } }; s.addFile = function (path, display_txt, streaming, soundbuffer) { var _local1 = this; var _local2 = soundbuffer; var _local3 = streaming; if (_local3 == undefined) { _local3 = _local1.streaming; } if (_local2 == undefined) { _local2 = _local1.sbuffer; } _local1.lista.push({path:path, display_txt:display_txt, stream:_local3, buffer:_local2}); _local1.pl_comp.setList(_local1); }; s.addXML = function (url) { var _local3 = this; _local3.x = new XML(); _local3.x.tl = _local3; _local3.x.ignoreWhite = true; _local3.x.onLoad = function () { var _local3 = this; var _local2 = _local3.childNodes[0].childNodes; var _local1 = 0; while (_local1 < _local2.length) { _local3.tl.addFile(_local2[_local1].attributes.src, _local2[_local1].childNodes[0].nodeValue, ((_local2[_local1].attributes.stream == "true") ? true : false), Number(_local2[_local1].attributes.soundbuffer)); _local1++; } if (_local3.tl.shuffle) { _local3.tl.randomizeList(); } if (_local3.tl.autoPlay && (!_local3.tl.isPlaying)) { _local3.tl.doPlay(); } _local3.tl.ctrls.setSongName(); _local3.tl.pl_comp.setList(_local3.tl); _local3.tl.onXMLLoad(); }; _local3.x.load(url); }; s.removeFile = function (id) { var _local1 = this; _local1.lista.splice(id, 1); _local1.pl_comp.setList(_local1); }; s.moveFile = function (id, new_id) { var _local1 = this; var _local2 = _local1.lista[id]; _local1.lista.splice(id, 1); _local1.lista.splice(new_id, 0, _local2); _local1.pl_comp.setList(_local1); }; s.getCurrent = function () { return(this.curIndex); }; s.getNext = function () { var _local1 = this; if (_local1.curIndex < (_local1.lista.length - 1)) { return(_local1.curIndex + 1); } if (_local1.shuffle) { var _local2 = _local1.lista[_local1.getCurrent()].path; do { _local1.randomizeList(); } while (_local2 == _local1.lista[0].path); } return(0); }; s.setNext = function () { this.curIndex = this.getNext(); }; s.getPrev = function () { var _local1 = this; if (_local1.curIndex > 0) { return(_local1.curIndex - 1); } if (_local1.loopList && (_local1.lista.length != 1)) { return(_local1.lista.length - 1); } return(null); }; s.setPrev = function () { this.curIndex = this.getPrev(); }; s.getPlayList = function () { var _local2 = this; var _local3 = []; var _local1 = 0; while (_local1 < _local2.lista.length) { _local3.push(_local2.lista[_local1]); _local1++; } return(_local3); }; s.getDuration = function () { var _local2 = Math.round(this.currentPlay.duration / 1000); var _local1 = _local2 % 60; var _local3 = ((_local2 - (_local2 % 60)) / 60).toString(); _local1 = ((_local1.toString().length > 1) ? (_local1) : ("0" + _local1)); return((_local3 + ":") + _local1); }; s.toggleTimeDisplay = function (aim) { var _local1 = this; if (aim == "visibility") { _local1.ctrls.time_txt._visible = !_local1.ctrls.time_txt._visible; } else { _local1.kontraTime = !_local1.kontraTime; } }; s.getCurrentTime = function (secs) { var _local2 = secs; if (this.kontraTime) { var tot = Math.round(this.currentPlay.duration / 1000); _local2 = tot - _local2; } _local2 = (isNaN(_local2) ? 0 : (_local2)); var _local1 = ((_local2 - (_local2 % 60)) / 60).toString(); var _local3 = _local2 % 60; _local1 = ((_local1.length > 1) ? (_local1) : ("0" + _local1)); _local3 = ((_local3.toString().length > 1) ? (_local3) : ("0" + _local3)); if (this.kontraTime) { _local1 = "-" + _local1; } return((_local1 + ":") + _local3); }; s.randomizeList = function () { var _local1 = this; var _local3 = _local1.lista[_local1.curIndex].path; _local1.temp_arr = []; for (var i in _local1.lista) { _local1.addUnique(_local1.temp_arr, _local1.lista.length); } var _local2 = []; for (var i in _local1.temp_arr) { _local2[i] = _local1.lista[_local1.temp_arr[i]]; } _local1.lista = _local2; for (var i in _local1.lista) { if (_local1.lista[i].path == _local3) { _local1.curIndex = parseInt(i); break; } } _local1.pl_comp.setList(_local1); delete _local1.temp_arr; }; s.addUnique = function (arr, max) { var _local2 = arr; var _local3 = random(max); _local2.push(_local3); var _local1 = 0; while (_local1 < (_local2.length - 1)) { if (_local2[_local1] == _local3) { _local2.pop(); this.addUnique(_local2, max); return; } _local1++; } }; s.fadeTween = function (t, b, c, d) { return(((c * t) / d) + b); }; s.fadeSound = function (final_value, duration, obj, met) { var _local2 = this; _local2.ttime = 0; var _local1 = _local2.currentPlay.getVolume(); _local2.fade_int = setInterval(_local2, "fadeAction", 100, _local1, final_value - _local1, duration, obj, met); }; s.fadeAction = function (b, c, d, obj, met) { var _local1 = this; _local1.ttime = _local1.ttime + 100; if (_local1.ttime >= d) { clearInterval(_local1.fade_int); obj[met](); var _local2 = b + c; } else { var _local2 = _local1.fadeTween(_local1.ttime, b, c, d); } _local1.currentPlay.setVolume(_local2); _local1.ctrls.setVolumePosition(_local2); }; s.panSound = function (final_value, duration, obj, met) { var _local2 = this; _local2.ttime = 0; var _local1 = _local2.currentPlay.getPan(); _local2.pan_int = setInterval(_local2, "panAction", 100, _local1, final_value - _local1, duration, obj, met); }; s.panAction = function (b, c, d, obj, met) { var _local1 = this; _local1.ttime = _local1.ttime + 100; if (_local1.ttime >= d) { clearInterval(_local1.pan_int); obj[met](); var _local2 = b + c; } else { var _local2 = _local1.fadeTween(_local1.ttime, b, c, d); } _local1.currentPlay.setPan(_local2); _local1.ctrls.setPanPosition(_local2); }; s.moveOn = function (interval, period) { var _local1 = this; if (!_local1.stopped) { _local1.ff_int = setInterval(_local1, "movePosition", interval, period); } }; s.movePosition = function (sec) { var _local1 = (this.getPosition() / 1000) + sec; this.setPosition(_local1); }; s.moveOff = function () { clearInterval(this.ff_int); }; s.doPlay = function (id) { var _local1 = this; if (id != undefined) { _local1.curIndex = id; } _local1.onPlay(_local1.ctrls.Play); }; s.doPause = function () { this.onPause(this.ctrls.Pause); }; s.doNext = function () { this.onNext(this.ctrls.Next); }; s.doPrev = function () { this.onPrev(this.ctrls.Prev); }; s.doStop = function () { this.onStop(this.ctrls.Stop); }; s.setPlayList = function (path) { var _local1 = this; _local1.pl_comp = path; _local1.pl_comp.setList(_local1); }; s.doLater = function () { var _local1 = this; _local1.pl_comp.setList(_local1); clearInterval(_local1.plIntID); }; Object.registerClass("SoundPlayer", SoundPlayerClass); function SPControls(tl) { var _local1 = this; _local1.tl = tl; _local1.paused = true; _local1.init(); } var b = SPControls.prototype; b.init = function () { var _local1 = this; _local1.list = ["Prev", "Play", "Pause", "Stop", "Next"]; var _local3 = _local1.tl.gfx.btns_mc; for (var i in _local1.list) { var _local2 = _local1.list[i] + "_btn"; _local1[_local1.list[i]] = _local3[_local2]; _local3[_local2].$path = _local1.tl; _local3[_local2].$no = i; _local3[_local2].onRelease = function () { var _local1 = this; _local1.$path["on" + _local1.$path.ctrls.list[_local1.$no]](_local1); }; _local3[_local2].onRollOver = function () { var _local1 = this; _local1.$path[("on" + _local1.$path.ctrls.list[_local1.$no]) + "Over"](_local1); }; _local3[_local2].onRollOut = function () { var _local1 = this; _local1.$path[("on" + _local1.$path.ctrls.list[_local1.$no]) + "Out"](_local1); }; _local3[_local2].onPress = function () { var _local1 = this; _local1.gotoAndStop("_on"); _local1.$path[("on" + _local1.$path.ctrls.list[_local1.$no]) + "Press"](_local1); }; _local3[_local2].onReleaseOutside = function () { var _local1 = this; _local1.$path[("on" + _local1.$path.ctrls.list[_local1.$no]) + "ReleaseOutside"](_local1); }; } _local1.sn_txt = _local1.tl.gfx.sn_mc.songname_txt; _local1.initDisplay(); _local1.time_txt = _local1.tl.gfx.time_txt; _local1.time_slider = _local1.tl.gfx.time_slider.slider; _local1.time_slider.$path = _local1.tl; _local1.time_track = _local1.tl.gfx.time_slider.track; _local1.time_track.col = new Color(_local1.time_track); _local1.getTrackWidth = function () { var _local1 = this.time_track._width - this.time_slider._width; if (_local1 <= 0) { return(1); } return(_local1); }; _local1.time_slider.onPress = function () { var _local1 = this; clearInterval(_local1.$path.intID); _local1.gotoAndStop("_drag"); _local1.startDrag(false, 0, _local1._y, _local1.$path.ctrls.getTrackWidth(), _local1._y); _local1.onMouseMove = function () { var _local1 = this; _local1._x = Math.round(_local1._x); var _local2 = (_local1.$path.currentPlay.duration / 1000) / (_local1.$path.ctrls.getTrackWidth() / _local1._x); _local1.$path.onTimeDrag(_local2); _local1.$path.ctrls.setTime(Math.round(_local2)); }; }; _local1.time_slider.onRelease = (_local1.time_slider.onReleaseOutside = function () { var _local1 = this; _local1.onMouseMove = undefined; _local1.stopDrag(); _local1.gotoAndStop("_up"); _local1.$path.setPosition((_local1.$path.currentPlay.duration / 1000) / (_local1.$path.ctrls.getTrackWidth() / _local1._x)); if (!_local1.$path.paused) { _local1.$path.intID = setInterval(_local1.$path, "whenPlaying", 100); } }); _local1.time_track.onPress = function () { var _local1 = this; if (_local1._parent.slider._visible) { _local1._xm = Math.round((_local1._xmouse * _local1._xscale) / 100) - (_local1._parent.slider._width / 2); _local1._parent.slider._x = _local1._xm; _local1._parent.slider.onPress(); } }; _local1.time_track.onRelease = (_local1.time_track.onReleaseOutside = function () { this._parent.slider.onRelease(); }); _local1.volume_slider = _local1.tl.gfx.volume_slider.slider; _local1.volume_slider.$path = _local1.tl; _local1.volume_track = _local1.tl.gfx.volume_slider.track; _local1.volume_track.w = Math.floor(_local1.volume_track._width - _local1.volume_slider._width); _local1.volume_slider.onPress = function () { var _local1 = this; _local1.gotoAndStop("_drag"); clearInterval(_local1.$path.ctrls.as_int); _local1.startDrag(false, 0, _local1._y, _local1._parent.track.w, _local1._y); _local1.onMouseMove = function () { var _local1 = this; _local1._x = Math.round(_local1._x); _local1.$path.ctrls.sn_txt.text = "\u0417\u0432\u0443\u043A " + _local1.$path.currentPlay.getVolume(); var _local2 = 100 / (_local1._parent.track.w / _local1._x); _local1.$path.setVolume(_local2); _local1.$path.onVolumeDrag(_local2); }; _local1.display_position = _local1.$path.ctrls.sn_txt._x; _local1.$path.ctrls.sn_txt._x = 0; }; _local1.volume_slider.onRelease = (_local1.volume_slider.onReleaseOutside = function () { var _local1 = this; _local1.onMouseMove = undefined; _local1.stopDrag(); _local1.gotoAndStop("_up"); _local1.$path.ctrls.setSongName(true); _local1.$path.ctrls.sn_txt._x = _local1.display_position; }); _local1.volume_track.onPress = function () { var _local1 = this; _local1._xm = Math.round((_local1._xmouse * _local1._xscale) / 100); _local1._parent.slider.$path.setVolume(100 / (_local1.w / _local1._xm)); _local1._parent.slider._x = _local1._xm; _local1._parent.slider.onPress(); }; _local1.volume_track.onRelease = (_local1.volume_track.onReleaseOutside = function () { this._parent.slider.onRelease(); }); _local1.pan_slider = _local1.tl.gfx.pan_slider.slider; _local1.pan_slider.$path = _local1.tl; _local1.pan_track = _local1.tl.gfx.pan_slider.track; _local1.pan_track.w = Math.floor(_local1.pan_track._width - _local1.pan_slider._width); _local1.pan_slider.onPress = function () { var _local1 = this; _local1.gotoAndStop("_drag"); clearInterval(_local1.$path.ctrls.as_int); _local1.startDrag(false, 0, _local1._y, _local1._parent.track.w, _local1._y); _local1.onMouseMove = function () { var _local1 = this; _local1._x = Math.round(_local1._x); var _local2 = ((100 / (_local1._parent.track.w / _local1._x)) * 2) - 100; _local1.$path.ctrls.sn_txt.text = "Panorama " + Math.round(_local2); _local1.$path.setPan(_local2); _local1.$path.onPanDrag(_local2); }; _local1.display_position = _local1.$path.ctrls.sn_txt._x; _local1.$path.ctrls.sn_txt._x = 0; }; _local1.pan_slider.onRelease = (_local1.pan_slider.onReleaseOutside = function () { var _local1 = this; _local1.onMouseMove = undefined; _local1.stopDrag(); _local1.gotoAndStop("_up"); _local1.$path.ctrls.setSongName(true); _local1.$path.ctrls.sn_txt._x = _local1.display_position; }); _local1.pan_track.onPress = function () { var _local1 = this; _local1._xm = Math.round((_local1._xmouse * _local1._xscale) / 100); _local1._parent.slider.$path.setPan((200 / (_local1.w / _local1._xm)) - 100); _local1._parent.slider._x = _local1._xm; _local1._parent.slider.onPress(); }; _local1.pan_track.onRelease = (_local1.pan_track.onReleaseOutside = function () { this._parent.slider.onRelease(); }); }; b.setTimePosition = function (cur, total) { this.time_slider._x = Math.round((this.getTrackWidth() / total) * cur); }; b.getTimePosition = function (total) { var _local1 = this.time_slider._x / (this.getTrackWidth() / total); return(_local1); }; b.setVolumePosition = function (val) { this.volume_slider._x = Math.round((val * this.volume_track.w) / 100); }; b.getVolumePosition = function () { return(100 / (this.volume_track.w / this.volume_slider._x)); }; b.setPanPosition = function (val) { var _local1 = this; _local1.pan_slider._x = Math.round((val * _local1.pan_track.w) / 200) + (_local1.pan_track.w / 2); }; b.getPanPosition = function () { return((200 / (this.pan_track.w / this.pan_slider._x)) - 100); }; b.setSongName = function (flag) { var _local1 = this; var _local2 = ""; if (flag) { _local1.nameCounter = 0; } _local1.nameCounter++; if (_local1.nameCounter == 1) { var _local3 = _local1.tl.currentPlay; var durDisp = (_local1.tl.displayDuration ? (("<" + _local1.tl.getDuration()) + "> ") : ""); if (_local1.tl.lista[_local1.tl.getCurrent()].display_txt != undefined) { _local2 = (_local1.tl.lista[_local1.tl.getCurrent()].display_txt + " ") + durDisp; } else if (_local3.id3) { if (_local3.id3.artist == "") { _local1.nameCounter--; } _local2 = (((_local3.id3.artist + " - ") + _local3.id3.songname) + " ") + durDisp; } else { var path = _local1.tl.lista[_local1.tl.getCurrent()].path; _local2 = (path.substring(path.lastIndexOf("\\") + 1) + " ") + durDisp; } _local1.sn_txt.text = _local2; if (_local1.tl.autoscroll != 0) { _local1.autoscrollSongName(); } } }; b.autoscrollSongName = function () { var _local1 = this; clearInterval(_local1.as_int); _local1.scrolling = false; _local1.sn_txt._x = 0; if (_local1.sn_txt.textWidth > _local1.iniWidth) { _local1.sn_txt._width = _local1.sn_txt.textWidth; } _local1.leftEdge = (-_local1.sn_txt._width) + _local1.tl.gfx.sn_mask._width; if (_local1.sn_txt.textWidth > _local1.tl.gfx.sn_mask._width) { if ((_local1.volume_slider.onMouseMove == undefined) && (_local1.pan_slider.onMouseMove == undefined)) { _local1.as_int = setInterval(_local1, "moveText", _local1.tl.autoscroll); } _local1.scrolling = true; } }; b.changeDisplayDuration = function () { var _local2 = this; if ((_local2.volume_slider.onMouseMove == undefined) && (_local2.pan_slider.onMouseMove == undefined)) { var _local1 = _local2.sn_txt.text; if (_local2.tl.displayDuration) { var beg = (_local1.lastIndexOf("<") + 1); var _local3 = _local1.lastIndexOf(">"); _local1 = (_local1.substring(0, beg) + _local2.tl.getDuration()) + _local1.substr(_local3); } _local2.sn_txt.text = _local1; } }; b.moveText = function () { var _local1 = this; if ((smer != -1) && (_local1.sn_txt._x >= 0)) { smer = -1; } if ((smer == -1) && (_local1.sn_txt._x <= _local1.leftEdge)) { smer = 1; } _local1.sn_txt._x = _local1.sn_txt._x + smer; }; b.setTime = function (secs) { this.time_txt.text = this.tl.getCurrentTime(secs); }; b.initDisplay = function () { var _local2 = this; _local2.iniWidth = _local2.sn_txt._width; var w = _local2.iniWidth; var _local3 = _local2.sn_txt._height; var _local1 = _local2.tl.gfx.createEmptyMovieClip("sn_mask", 87); _local1._x = _local2.tl.gfx.sn_mc._x; _local1._y = _local2.tl.gfx.sn_mc._y; _local2.tl.gfx.sn_mc.setMask(_local1); _local1.beginFill(0); _local1.lineTo(w, 0); _local1.lineTo(w, _local3); _local1.lineTo(0, _local3); _local1.lineTo(0, 0); _local1.endFill(); }; #endinitclip

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:5 10 16 21 24 27 30 36 38
Symbol 3 BitmapUsed by:4
Symbol 4 GraphicUses:3Used by:5
Symbol 5 MovieClip [playlist_btn]Uses:2 4
Symbol 6 FontUsed by:7 8 9
Symbol 7 EditableTextUses:6Used by:10
Symbol 8 EditableTextUses:6Used by:10
Symbol 9 EditableTextUses:6Used by:10
Symbol 10 MovieClipUses:2 7 8 9Used by:11
Symbol 11 MovieClipUses:10Used by:12
Symbol 12 MovieClip [SoundPlayerPlaylist]Uses:11
Symbol 13 GraphicUsed by:44
Symbol 14 BitmapUsed by:15
Symbol 15 GraphicUses:14Used by:16
Symbol 16 MovieClipUses:2 15Used by:31
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:21
Symbol 19 BitmapUsed by:20
Symbol 20 GraphicUses:19Used by:21
Symbol 21 MovieClipUses:2 18 20Used by:31
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:22Used by:24
Symbol 24 MovieClipUses:2 23Used by:31
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:27
Symbol 27 MovieClipUses:2 26Used by:31
Symbol 28 BitmapUsed by:29
Symbol 29 GraphicUses:28Used by:30
Symbol 30 MovieClipUses:2 29Used by:31
Symbol 31 MovieClipUses:16 21 24 27 30Used by:44
Symbol 32 GraphicUsed by:36
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:35
Symbol 35 MovieClipUses:34Used by:36 38
Symbol 36 MovieClipUses:2 32 35Used by:44
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:2 37 35Used by:44
Symbol 39 FontUsed by:40
Symbol 40 EditableTextUses:39Used by:41
Symbol 41 MovieClipUses:40Used by:44
Symbol 42 FontUsed by:43
Symbol 43 EditableTextUses:42Used by:44
Symbol 44 MovieClipUses:13 31 36 38 41 43Used by:45
Symbol 45 MovieClip [SoundPlayer]Uses:44Used by:Timeline
Symbol 46 BitmapUsed by:47
Symbol 47 GraphicUses:46Used by:Timeline

Instance Names

"sp"Frame 1Symbol 45 MovieClip [SoundPlayer]
"sn_txt"Symbol 10 MovieClip Frame 1Symbol 7 EditableText
"sn_txt"Symbol 10 MovieClip Frame 6Symbol 8 EditableText
"sn_txt"Symbol 10 MovieClip Frame 12Symbol 9 EditableText
"pl0_btn"Symbol 11 MovieClip Frame 1Symbol 10 MovieClip
"plist"Symbol 12 MovieClip [SoundPlayerPlaylist] Frame 1Symbol 11 MovieClip
"Prev_btn"Symbol 31 MovieClip Frame 1Symbol 16 MovieClip
"Play_btn"Symbol 31 MovieClip Frame 1Symbol 21 MovieClip
"Pause_btn"Symbol 31 MovieClip Frame 1Symbol 24 MovieClip
"Stop_btn"Symbol 31 MovieClip Frame 1Symbol 27 MovieClip
"Next_btn"Symbol 31 MovieClip Frame 1Symbol 30 MovieClip
"track"Symbol 36 MovieClip Frame 1Symbol 2 MovieClip
"slider"Symbol 36 MovieClip Frame 1Symbol 35 MovieClip
"track"Symbol 38 MovieClip Frame 1Symbol 2 MovieClip
"slider"Symbol 38 MovieClip Frame 1Symbol 35 MovieClip
"songname_txt"Symbol 41 MovieClip Frame 1Symbol 40 EditableText
"btns_mc"Symbol 44 MovieClip Frame 1Symbol 31 MovieClip
"time_slider"Symbol 44 MovieClip Frame 1Symbol 36 MovieClip
"volume_slider"Symbol 44 MovieClip Frame 1Symbol 38 MovieClip
"sn_mc"Symbol 44 MovieClip Frame 1Symbol 41 MovieClip
"time_txt"Symbol 44 MovieClip Frame 1Symbol 43 EditableText
"gfx"Symbol 45 MovieClip [SoundPlayer] Frame 1Symbol 44 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 5 as "playlist_btn"
ExportAssets (56)Timeline Frame 1Symbol 12 as "SoundPlayerPlaylist"
ExportAssets (56)Timeline Frame 1Symbol 45 as "SoundPlayer"
ExportAssets (56)Timeline Frame 1Symbol 45 as "SoundPlayer"

Labels

"_up"Symbol 5 MovieClip [playlist_btn] Frame 1
"_over"Symbol 5 MovieClip [playlist_btn] Frame 6
"_up"Symbol 10 MovieClip Frame 1
"_over"Symbol 10 MovieClip Frame 6
"_on"Symbol 10 MovieClip Frame 12
"_up"Symbol 16 MovieClip Frame 1
"_over"Symbol 16 MovieClip Frame 6
"_on"Symbol 16 MovieClip Frame 12
"_up"Symbol 21 MovieClip Frame 1
"_over"Symbol 21 MovieClip Frame 6
"_on"Symbol 21 MovieClip Frame 12
"_up"Symbol 24 MovieClip Frame 1
"_over"Symbol 24 MovieClip Frame 6
"_up"Symbol 27 MovieClip Frame 1
"_over"Symbol 27 MovieClip Frame 6
"_on"Symbol 27 MovieClip Frame 12
"_up"Symbol 30 MovieClip Frame 1
"_over"Symbol 30 MovieClip Frame 6
"_on"Symbol 30 MovieClip Frame 12
"_up"Symbol 35 MovieClip Frame 1
"_drag"Symbol 35 MovieClip Frame 6

Dynamic Text Variables

songnameSymbol 7 EditableText""
songnameSymbol 8 EditableText""
songnameSymbol 9 EditableText""




http://swfchan.com/50/246254/info.shtml
Created: 14/4 -2022 16:07:48 Last modified: 14/4 -2022 16:07:48 Server time: 03/01 -2025 16:56:16