// Scene_1 > main
// 잔상 스크립트 소스입니다
onSelfEvent (load) {
imgW = 700;
imgH = 500;
imgAlpha = 70;
changeTime = 8;
maskClip._width = imgW;
maskClip._height = imgH;
imgClip.duplicateMovieClip("botClip", _root.getDepth());
setMask(maskClip), topArray = [], botArray = [];
for (i in imgClip) topArray.push(imgClip[i]), botArray.push(botClip[i]);
for (j in topArray) topArray[j]._x = botArray[j]._x = -imgW * j;
MovieClip.prototype.imgGo = function(speed) {
this.myX = this._x;
this._alpha = this._parent.imgAlpha;
this.onEnterFrame = function() {
_parent.botClip._alpha = 100;
if (Math.round(_parent.botClip._x % _parent.imgW) == _parent.imgW) {
this._x = Math.round(this._x), delete this.onEnterFrame;
}
else if (Math.round(_parent.botClip._x) == 0) {
this._x = 0, delete this.onEnterFrame;
}
else this._x += (this.myX - this._x) / speed;
}
}
function btnClick(btn) {
botClip._x += 1;
imgClip.imgGo(3);
botClip.imgGo(6);
imgClip.myX = botClip.myX = (n = btn) * imgW;
imgIndex.text = ("0" + (n + 1)).slice(-2) + ":" + ("0" + topArray.length).slice(-2);
timerClip.gotoAndPlay(1);
}
btnClick(0);
nextBtn._x = imgW - nextBtn._width;
nextBtn._y = (imgH - nextBtn._height) / 2;
prevBtn._x = nextprevController = 0;
prevBtn._y = (imgH - prevBtn._height) / 2;
imgIndex._x = 40;
imgIndex._y = 20;
nextBtn.onRelease = function() {
btnClick(n = n == topArray.length - 1 ? 0 : ++n), nextprevController = 0;
}
prevBtn.onRelease = function() {
btnClick(n = n == 0 ? topArray.length - 1 : --n), nextprevController = 1;
}
nextBtn.onRollOver = prevBtn.onRollOver = function() {
this._alpha = 70;
}
nextBtn.onRollOut = prevBtn.onRollOut = function() {
this._alpha = 100;
}
timerClip.onEnterFrame = function() {
if (timerClip._currentframe == int(changeTime * 25)) {
nextprevController ? prevBtn.onRelease() : nextBtn.onRelease();
}
}
}
// Scene_1 > mu
function songMode(option) {
song.start();
song.loadSound(songList[num = option], true);
playBtn._visible = 0;
pauseBtn._visible = 1;
bannerTitle.text = infoList[num = option];
bannerTitle.gotoAndPlay(1);
}
function listClick(option) {
songMode(option);
}
onSelfEvent (load) {
songList = new Array();
infoList = new Array();
url = "http://cafedb10.godpeople.com/_img_/data2/jjh107021c/WEASFiles/355-11/";
ext = ".mp3";
songList[1] = url + "1" + ext;
songList[2] = url + "2" + ext;
songList[3] = url + "3" + ext;
songList[4] = url + "4" + ext;
songList[5] = url + "5" + ext;
songList[6] = url + "6" + ext;
songList[7] = url + "7" + ext;
songList[8] = url + "8" + ext;
songList[9] = url + "9" + ext;
songList[10] = url + "10" + ext;
songList[11] = url + "11" + ext;
songList[12] = url + "12" + ext;
songList[13] = url + "13" + ext;
songList[14] = url + "14" + ext;
songList[15] = url + "15" + ext;
songList[16] = url + "16" + ext;
songList[17] = url + "17" + ext;
songList[18] = url + "18" + ext;
songList[19] = url + "19" + ext;
songList[20] = url + "20" + ext;
songList[21] = url + "21" + ext;
songList[22] = url + "22" + ext;
songList[23] = url + "23" + ext;
songList[24] = url + "24" + ext;
songList[25] = url + "25" + ext;
songList[26] = url + "26" + ext;
songList[27] = url + "27" + ext;
songList[28] = url + "28" + ext;
songList[29] = url + "29" + ext;
songList[30] = url + "30" + ext;
songList[31] = url + "31" + ext;
songList[32] = url + "32" + ext;
songList[33] = url + "33" + ext;
songList[34] = url + "34" + ext;
songList[35] = url + "35" + ext;
songList[36] = url + "36" + ext;
songList[37] = url + "37" + ext;
songList[38] = url + "38" + ext;
songList[39] = url + "39" + ext;
songList[40] = url + "40" + ext;
songList[41] = url + "41" + ext;
songList[42] = url + "42" + ext;
songList[43] = url + "43" + ext;
songList[44] = url + "44" + ext;
songList[45] = url + "45" + ext;
songList[46] = url + "46" + ext;
songList[47] = url + "47" + ext;
songList[48] = url + "48" + ext;
songList[49] = url + "49" + ext;
songList[50] = url + "50" + ext;
songList[51] = url + "51" + ext;
songList[52] = url + "52" + ext;
songList[53] = url + "53" + ext;
infoList[1] = "01 댄서의순정-김추자";
infoList[2] = "02 하늘에서 온 편지-네잎클로버";
infoList[3] = "03 로렐라이-문주란";
infoList[4] = "04 작은새-강촌사람들";
infoList[5] = "05 연 적-도시의 아이들";
infoList[6] = "06 인연-김석옥";
infoList[7] = "07 당신이 오신다기에-나훈아";
infoList[8] = "08 눈물이 나면은-강은철";
infoList[9] = "09 누구라도 그러하듯이-이수영";
infoList[10] = "10 신토불이-김혜연";
infoList[11] = "11 사랑앓이-정한용";
infoList[12] = "12 정말 좋았네-김용임";
infoList[13] = "13 아직도 못다한사랑-솔개트리오";
infoList[14] = "14 아쉬운이별-김부선";
infoList[15] = "15 철새는날아가고-정훈희";
infoList[16] = "16 아름다운 사람-나윤선";
infoList[17] = "17 슬픈인연-김태정";
infoList[18] = "18 그사람 데려다 주오-조미미";
infoList[19] = "19 사랑은 생명의 꽃-임태경";
infoList[20] = "20 그대 발길이 머무는 곳에-조용필";
infoList[21] = "21 다시부르는 노래-조동진";
infoList[22] = "22 딸의 마음-오성이";
infoList[23] = "23 기차는 8시에 떠나네 - 조수미";
infoList[24] = "24 목로주점 - 김연숙";
infoList[25] = "25 새마을 내고향 - 김상진";
infoList[26] = "26 처녀 뱃사공-오승근";
infoList[27] = "27 옛님-김훈과 트리퍼스";
infoList[28] = "28 목장길 따라 - 김세환";
infoList[29] = "29 들꽃-유익종";
infoList[30] = "30 누구없소-윤명윤";
infoList[31] = "31 토요일은 밤이 좋아-인순이";
infoList[32] = "32 어디로 가나-바니걸스";
infoList[33] = "33 겨울비는내리고-김범용";
infoList[34] = "34 라라라-SG 워너비";
infoList[35] = "35 나의 작은 꿈-작은별가족";
infoList[36] = "36 어메-나훈아";
infoList[37] = "37 사랑이야-제아";
infoList[38] = "38 사랑은 이젠그만-민혜경";
infoList[39] = "39 노래를 잃은 카나리아-문주란";
infoList[40] = "40 빗속을 둘이서-김정호";
infoList[41] = "41 모래의 꿈-이진석";
infoList[42] = "42 생각이나면-들고양이들";
infoList[43] = "43 5월의 편지-소리새";
infoList[44] = "44 젊은 날의 초상-심재영과 젊은 연인들";
infoList[45] = "45 장미빛 스카프-윤향기";
infoList[46] = "46 어디서 무엇이 되어 다시 만나리-유심초";
infoList[47] = "47 바람,잊어야 한다면-김정미";
infoList[48] = "48 사랑의 슬픔-이치현과 벗님들";
infoList[49] = "49 세상 모르고 살았노라 - 활주로";
infoList[50] = "50 파ty란 낙엽-배호";
infoList[51] = "51 당신도 울고 있네요-나훈아";
infoList[52] = "52 어서 말을 해-이춘근";
infoList[53] = "53 꿈속의 사랑-심수봉";
song = new Sound();
showPlaylist = "yes";
autoStart = "yes";
myAlfa = 20;
myColor = "#556655";
nLimit = songList.length - 1;
bot.list_bg.botShape1._alpha = myAlfa;
bot.list_grad.botShape2._alpha = myAlfa;
bot.botShape3._alpha = myAlfa;
new Color(bot.list_bg.botShape1).setRGB("0x" + myColor.slice(-6));
new Color(bot.botShape3).setRGB("0x" + myColor.slice(-6));
bot.playlist.setMask(bot.list_bg);
bot.setMask(bot_mask);
botpos = bot._y;
bot._y = botpos - bot.list_bg._height - 6;
botup = true;
for (i = 0; i < nLimit; i++) {
bot.playlist.btn.duplicateMovieClip("btn" + i, i);
bot.playlist["btn" + i]._y = bot.playlist.btn._y + i * int(bot.playlist.btn._height) + i;
bot.playlist["btn" + i].txt = infoList[i + 1];
bot.playlist["btn" + i].button.onPress = function () {
listClick(this._parent.getDepth() + 1);
Eq.mask.gotoAndPlay(1);
}
}
songMode(1);
song.onSoundComplete = function () {
songMode(num == nLimit ? (1) : (++num));
}
playBtn.onPress = function () {
playBtn._visible = 0;
pauseBtn._visible = 1;
song.start(PauseStop);
Eq.mask.gotoAndPlay(1);
}
pauseBtn.onPress = function () {
playBtn._visible = 1;
pauseBtn._visible = 0;
song.stop();
PauseStop = song.position / 1000;
Eq.mask.gotoAndPlay(21);
}
listBtn.onPress = function () {
if (botup == true) {
bot.easeY(botpos);
botup = false;
}
else {
bot.easeY(botpos - bot.list_bg._height - 6);
botup = true;
}
this._rotation += 180;
}
bot.list_bg.onEnterFrame = function () {
pl = this._parent.playlist;
if (!(!hitTest(_root._xmouse, _root._ymouse, true) || pl._height <= this._height)) {
ymin = this._y + this._height - pl._height;
ymax = this._y + 3;
conv = (this._ymouse - 15) * 1.3 / this._height;
if (conv <= 1) {
}
else {
conv = 1;
}
if (conv >= 0) {
}
else {
conv = 0;
}
pl.easeY(ymax - conv * (ymax - ymin));
}
}
MovieClip.prototype.easeY = function (t) {
this.onEnterFrame = function () {
this._y = int(t - (t - this._y) / 1.5);
if (!(this._y <= t - 1 || this._y >= t + 1)) {
delete this.onEnterFrame;
}
}
}
trackBar.totalBar.onPress = function () {
trackBar.curtBar._width = trackBar.totalBar._xmouse;
song.start(trackBar.curtBar._width * song.duration / 1000 / trackBar.loadBar._width);
playBtn._visible = 0;
pauseBtn._visible = 1;
}
if (showPlaylist == "yes") {
listBtn.onPress();
}
else {
(playBtn._visible = pauseBtn._visible = 0);
}
}
onSelfEvent (enterFrame) {
geTotal = song.getBytesTotal();
geLoaded = song.getBytesLoaded();
trackBar.loadBar._width = trackBar.totalBar._width * geLoaded / geTotal;
trackBar.curtBar._width = trackBar.totalBar._width * song.position * geLoaded / geTotal / song.duration;
}
// Scene_1 > mu > Eq
onSelfEvent (load) {
num = 12; // 이퀄라이저 갯수
setMask(mask);
for (n = 0; n <= num; n++) {
eq.duplicateMovieClip("eq2" + n, n);
this["eq2" + n]._x = n * 4;
mask._width = n * 4;
_parent.playBtn._width = n * 4;
_parent.pauseBtn._width = n * 4;
}
}
// Scene_1 > mu > Eq > eq
onFrame (1) {
setMask(eqMask);
_currentframe == 1 ? eqMask._height = random(15) + 1 : null;
}
onFrame (3) {
}
// Scene_1 > mu > Eq > mask
onFrame (20) {
stop();
}
onFrame (40) {
stop();
}