function timer()
{
time = sound_mc.sound_obj.position / 1000;
min = Math.floor(time / 60);
min = min %26lt; 10 ? ("0" + min) : (min);
sec = Math.floor(time % 60);
sec = sec %26lt; 10 ? ("0" + sec) : (sec);
timeDisplay_txt.text = min + ":" + sec;
} // End of the function
function pheader()
{
dur = sound_mc.sound_obj.duration;
pos = sound_mc.sound_obj.position;
tot = sound_mc.sound_obj.getBytesTotal();
lod = sound_mc.sound_obj.getBytesLoaded();
ratio = lod / tot * (pos / dur);
tracking1.playhead._x = ratio * trackwidth;
tracking1.playheadbg._x = ratio * trackwidth;
} // End of the function
function loader()
{
if (!sound_mc.sound_obj.fullyLoaded)
{
mySoundBytesTotal = sound_mc.sound_obj.getBytesTotal();
mySoundBytesLoaded = sound_mc.sound_obj.getBytesLoaded();
mySoundLoading = mySoundBytesLoaded / mySoundBytesTotal * 100;
tracking1.loadBar._xscale = mySoundLoading;
} // end if
if ((sound_mc.sound_obj.position == prevpos || stillbuff) %26amp;%26amp; !itsStopped %26amp;%26amp; !itsPaused)
{
equalizer._alpha = 0;
buf_txt.text = "buffering.";
buf_wheel._alpha = 100;
}
else if (!itsStopped %26amp;%26amp; !itsPaused)
{
buf_txt.text = "";
buf_wheel._alpha = 0;
equalizer._alpha = 100;
bufstage = 0;
prevpos = sound_mc.sound_obj.position;
} // end if
if (stillbuff)
{
stillbuff = 0;
prevpos = sound_mc.sound_obj.position;
} // end if
} // End of the function
function contains(input, arrayData)
{
for (i = 0; i %26lt; arrayData.length; i++)
{
if (arrayData[i] == input)
{
return(1);
} // end if
} // end of for
return(0);
} // End of the function
function writePrice(price)
{
var _l2 = "";
_l2 = _l2 + "$";
if (Math.floor(price / 100000) != 0)
{
_l2 = _l2 + (Math.floor(price / 100000) + ",");
} // end if
if (Math.floor(price / 10000) != 0)
{
_l2 = _l2 + (Math.floor(price / 10000) - Math.floor(price / 100000) * 10);
} // end if
if (Math.floor(price / 1000) != 0)
{
_l2 = _l2 + (Math.floor(price / 1000) - Math.floor(price / 10000) * 10);
} // end if
_l2 = _l2 + (Math.floor(price / 100) - Math.floor(price / 1000) * 10 + ".");
_l2 = _l2 + (Math.floor(price / 10) - Math.floor(price / 100) * 10);
_l2 = _l2 + (Math.floor(price) - Math.floor(price / 10) * 10);
return(_l2);
} // End of the function
function writeTotal(price)
{
display_txt_total.text = writePrice(total_price);
if (total_price == 0)
{
mc_checkout._alpha = 0;
delete mc_checkout["onRollOver"];
delete mc_checkout["onRollOut"];
delete mc_checkout["onPress"];
delete mc_checkout["onRelease"];
delete mc_checkout["onReleaseOutside"];
}
else
{
mc_checkout._alpha = 100;
mc_checkout.onRollOver = function ()
{
mc_checkout.mc_checkoutover._alpha = 100;
};
mc_checkout.onRollOut = function ()
{
mc_checkout.mc_checkoutover._alpha = 0;
};
mc_checkout.onPress = function ()
{
mc_checkout.mc_checkoutdown._alpha = 100;
};
mc_checkout.onRelease = function ()
{
mc_checkout.mc_checkoutdown._alpha = 0;
gotoCheckout();
};
mc_checkout.onReleaseOutside = function ()
{
mc_checkout.mc_checkoutdown._alpha = 0;
mc_checkout.mc_checkoutover._alpha = 0;
};
} // end if
} // End of the function
function soundSpectrum()
{
var _l3 = new ByteArray();
SoundMixer.computeSpectrum(spectrum);
sp.graphics.clear();
sp.graphics.moveTo(0, 60);
var _l1 = 0;
while (i %26lt; 256)
{
spc = 20 + spectrum.readFloat() * 20;
sp.graphics.lineStyle(1, 65280);
sp.graphics.lineTo(i, Math.abs(spc) * 3);
addChild(sp);
i++;
} // end while
sp.graphics.moveTo(257, 60);
var _l2 = 0;
while (j %26lt; 256)
{
spc = 20 + spectrum.readFloat() * 20;
sp.graphics.lineStyle(1, 255);
sp.graphics.lineTo(j + 257, Math.abs(spc) * 3);
addChild(sp);
j++;
} // end while
} // End of the function
function sortrelease(category)
{
mc_sorttitle.mc_asc._alpha = 0;
mc_sorttitle.mc_desc._alpha = 0;
mc_sortrating.mc_asc._alpha = 0;
mc_sortrating.mc_desc._alpha = 0;
mc_sortproducer.mc_asc._alpha = 0;
mc_sortproducer.mc_desc._alpha = 0;
mc_sortlength.mc_asc._alpha = 0;
mc_sortlength.mc_desc._alpha = 0;
mc_sortgold.mc_asc._alpha = 0;
mc_sortgold.mc_desc._alpha = 0;
mc_sortplatinum.mc_asc._alpha = 0;
mc_sortplatinum.mc_desc._alpha = 0;
if (category == 1)
{
mc_sorttitle.mc_loading._alpha = 100;
mc_sorttitle.mc_darktext._alpha = 100;
if (titleasc_on == 0)
{
mc_sorttitle.mc_asc._alpha = 100;
outputVars.sort = "titleasc";
titleasc_on = 1;
}
else
{
mc_sorttitle.mc_desc._alpha = 100;
outputVars.sort = "titledesc";
titleasc_on = 0;
} // end if
}
else
{
mc_sorttitle.mc_loading._alpha = 0;
mc_sorttitle.mc_darktext._alpha = 0;
titleasc_on = 0;
} // end if
if (category == 2)
{
mc_sortrating.mc_loading._alpha = 100;
mc_sortrating.mc_darktext._alpha = 100;
if (ratingasc_on == 0)
{
mc_sortrating.mc_asc._alpha = 100;
outputVars.sort = "ratingasc";
ratingasc_on = 1;
}
else
{
mc_sortrating.mc_desc._alpha = 100;
outputVars.sort = "ratingdesc";
ratingasc_on = 0;
} // end if
}
else
{
mc_sortrating.mc_loading._alpha = 0;
mc_sortrating.mc_darktext._alpha = 0;
ratingasc_on = 1;
} // end if
if (category == 3)
{
mc_sortproducer.mc_loading._alpha = 100;
mc_sortproducer.mc_darktext._alpha = 100;
if (producerasc_on == 0)
{
mc_sortproducer.mc_asc._alpha = 100;
outputVars.sort = "producerasc";
producerasc_on = 1;
}
else
{
mc_sortproducer.mc_desc._alpha = 100;
outputVars.sort = "producerdesc";
producerasc_on = 0;
} // end if
}
else
{
mc_sortproducer.mc_loading._alpha = 0;
mc_sortproducer.mc_darktext._alpha = 0;
producerasc_on = 0;
} // end if
if (category == 4)
{
mc_sortlength.mc_loading._alpha = 100;
mc_sortlength.mc_darktext._alpha = 100;
if (lengthasc_on == 0)
{
mc_sortlength.mc_asc._alpha = 100;
outputVars.sort = "lengthasc";
lengthasc_on = 1;
}
else
{
mc_sortlength.mc_desc._alpha = 100;
outputVars.sort = "lengthdesc";
lengthasc_on = 0;
} // end if
}
else
{
mc_sortlength.mc_loading._alpha = 0;
mc_sortlength.mc_darktext._alpha = 0;
lengthasc_on = 0;
} // end if
if (category == 5)
{
mc_sortgold.mc_loading._alpha = 100;
mc_sortgold.mc_darktext._alpha = 100;
if (goldasc_on == 0)
{
mc_sortgold.mc_asc._alpha = 100;
outputVars.sort = "goldasc";
goldasc_on = 1;
}
else
{
mc_sortgold.mc_desc._alpha = 100;
outputVars.sort = "golddesc";
goldasc_on = 0;
} // end if
}
else
{
mc_sortgold.mc_loading._alpha = 0;
mc_sortgold.mc_darktext._alpha = 0;
goldasc_on = 0;
} // end if
if (category == 6)
{
mc_sortplatinum.mc_loading._alpha = 100;
mc_sortplatinum.mc_darktext._alpha = 100;
if (platinumasc_on == 0)
{
mc_sortplatinum.mc_asc._alpha = 100;
outputVars.sort = "platinumasc";
platinumasc_on = 1;
}
else
{
mc_sortplatinum.mc_desc._alpha = 100;
outputVars.sort = "platinumdesc";
platinumasc_on = 0;
} // end if
}
else
{
mc_sortplatinum.mc_loading._alpha = 0;
mc_sortplatinum.mc_darktext._alpha = 0;
platinumasc_on = 0;
} // end if
loadkey++;
outputVars.key = loadkey;
outputVars.sendAndLoad("http://www.jeeju... inputVars, "POST");
} // End of the function
function topstarsover(stars)
{
mc_topstars.mc_topstar1._alpha = 100;
if (stars %26gt; 1)
{
mc_topstars.mc_topstar2._alpha = 100;
} // end if
if (stars %26gt; 2)
{
mc_topstars.mc_topstar3._alpha = 100;
} // end if
if (stars %26gt; 3)
{
mc_topstars.mc_topstar4._alpha = 100;
} // end if
if (stars %26gt; 4)
{
mc_topstars.mc_topstar5._alpha = 100;
} // end if
txt_rate.text = "Rate this song.";
} // End of the function
function topstarsup(stars)
{
mc_topstars.mc_topstar1._alpha = 0;
mc_topstars.mc_topstar2._alpha = 0;
mc_topstars.mc_topstar3._alpha = 0;
mc_topstars.mc_topstar4._alpha = 0;
mc_topstars.mc_topstar5._alpha = 0;
txt_rate.text = "";
} // End of the function
function ratesong(rating)
{
rated_array.push(currentsongid);
userSO = SharedObject.getLocal("ratinghistory");
if (userSO.data.ratings == undefined)
{
userSO.data.ratings = [currentsongid];
outputVars.errorcode = 0;
}
else if (contains(currentsongid, userSO.data.ratings))
{
outputVars.errorcode = 1;
}
else
{
userSO.data.ratings.push(currentsongid);
outputVars.errorcode = 0;
} // end if
outputVars.rating = rating;
outputVars.songid = currentsongid;
outputVars.sendAndLoad("http://www.jeeju... rateVars, "POST");
mc_topstars._visible = false;
txt_thankyou.text = "Thank You.";
} // End of the function
stop();
_soundbuftime = 50;
btn_play._visible = false;
var itsStopped:Boolean = 0;
var itsPaused:Boolean = 0;
var prevtracknum = 0;
tracking1.loadBar._xscale = 0;
var temploadbarwidth = 0;
var bottom = 0;
var prevpos = 0;
var stillbuff = 0;
var shuffle_on = 0;
var loop_on = 0;
var mute_on = 0;
var titleasc_on = 0;
var ratingasc_on = 0;
var producerasc_on = 0;
var lengthasc_on = 0;
var goldasc_on = 0;
var platinumasc_on = 0;
var total_price = new Number(0);
var trackwidth = 576;
var scrolltrackheight = 477;
var p = 100;
var currentsongid = 0;
var loadkey = 0;
rated_array = [0];
checked_id = [];
cart_song = [];
cart_producer = [];
cart_price = [];
cart_pack = [];
cart_n = 0;
mc_topstars._visible = false;
inputVars = new LoadVars();
rateVars = new LoadVars();
outputVars = new LoadVars();
outputVars.sort = "ratingdesc";
var spc:Number;
var sp:Sprite = new Sprite();
inputVars.onLoad = function (success)
{
if (success)
{
_global.songid = [];
_global.songname = [];
_global.songstars = [];
_global.songband = [];
_global.songfile = [];
_global.songlength = [];
_global.songgold = [];
_global.songplatinum = [];
var i = 0;
while (i %26lt; this.n)
{
_global.songid[i] = this["songID" + i];
_global.songname[i] = this["songTitle" + i];
_global.songstars[i] = this["songStars" + i];
_global.songband[i] = this["songProducer" + i];
_global.songfile[i] = "http://www.jeejuh.com/mp3/" + this["songAddress" + i];
_global.songlength[i] = this["songLength" + i];
_global.songgold[i] = new Number(this["songGold" + i]);
_global.songplatinum[i] = new Number(this["songPlatinum" + i]);
_root.plwindow.attachMovie("butTemp", "but" + i, i + 50);
_root.plwindow["but" + i].id = i;
_root.plwindow["but" + i]._x = 1;
_root.plwindow["but" + i]._y = i * 15;
_root.plwindow["but" + i].but_txt.text = songname[i];
_root.plwindow["but" + i].butname_txt.text = songband[i];
_root.plwindow["but" + i].butlength_txt.text = songlength[i];
if (songstars[i] == 0)
{
_root.plwindow["but" + i].butstars_txt.text = "unrated";
_root.plwindow["but" + i].starsbg._alpha = 0;
} // end if
if (songstars[i] %26gt; 0)
{
_root.plwindow["but" + i].butstars_txt.text = "";
_root.plwindow["but" + i].starsbg._alpha = 100;
} // end if
if (songstars[i] %26gt; 1)
{
_root.plwindow["but" + i].star2._alpha = 100;
} // end if
if (songstars[i] %26gt; 2)
{
_root.plwindow["but" + i].star3._alpha = 100;
} // end if
if (songstars[i] %26gt; 3)
{
_root.plwindow["but" + i].star4._alpha = 100;
} // end if
if (songstars[i] %26gt; 4)
{
_root.plwindow["but" + i].star5._alpha = 100;
} // end if
_root.plwindow["but" + i].mc_hit_area.onRollOver = function ()
{
this._parent.mc_selectover._alpha = 10;
};
_root.plwindow["but" + i].mc_hit_area.onRollOut = function ()
{
this._parent.mc_selectover._alpha = 0;
};
_root.plwindow["but" + i].mc_hit_area.onRelease = function ()
{
clearInterval(pheadInterval);
clearInterval(timeInterval);
timeDisplay_txt.text = "00:00";
tracking1.playhead._x = 0;
tracking1.playheadbg._x = 0;
clearInterval(loadInterval);
tracking1.loadBar._xscale = 0;
equalizer._alpha = 0;
_global.song_nr = this._parent.id;
_root.sound_mc.songStarter(songid[this._... songfile[this._parent.id], songname[this._parent.id], songband[this._parent.id], this._parent.id);
btn_play._visible = false;
btn_pause._visible = true;
};
_root.plwindow["but" + i].mc_hit_area.onReleaseOutside = function ()
{
this._parent.mc_selectover._alpha = 0;
};
if (checked_id[songid[i]] == 1)
{
_root.plwindow["but" + i].gold_checkbox.mc_checked._alpha = 100;
} // end if
if (checked_id[songid[i]] == 2)
{
_root.plwindow["but" + i].platinum_checkbox.mc_checked._alpha = 100;
} // end if
if (songgold[i] == 0)
{
_root.plwindow["but" + i].butgold_txt.text = "";
_root.plwindow["but" + i].butgold_txt._alpha = 25;
_root.plwindow["but" + i].gold_checkbox._alpha = 25;
}
else
{
_root.plwindow["but" + i].butgold_txt.text = writePrice(songgold[i]);
_root.plwindow["but" + i].gold_checkbox.onRelease = function ()
{
if (this.mc_checked._alpha == 0)
{
checked_id[songid[this._parent.id]] = 1;
this.mc_checked._alpha = 100;
total_price = total_price + songgold[this._parent.id];
if (this._parent.platinum_checkbox.mc_check... == 100)
{
this._parent.platinum_checkbox.mc_checke... = 0;
total_price = total_price - songplatinum[this._parent.id];
} // end if
}
else
{
checked_id[songid[this._parent.id]] = 0;
this.mc_checked._alpha = 0;
total_price = total_price - songgold[this._parent.id];
} // end if
writeTotal();
};
_root.plwindow["but" + i].gold_checkbox.onRollOver = function ()
{
startDrag(cursor_gold, true);
_root.fade(cursor_gold);
};
_root.plwindow["but" + i].gold_checkbox.onRollOut = function ()
{
stopDrag;
_root.fade(nothing);
cursor_gold._alpha = 0;
};
} // end if
if (songplatinum[i] == 0)
{
_root.plwindow["but" + i].butplatinum_txt.text = "";
_root.plwindow["but" + i].butplatinum_txt._alpha = 25;
_root.plwindow["but" + i].platinum_checkbox._alpha = 25;
}
else
{
_root.plwindow["but" + i].butplatinum_txt.text = writePrice(songplatinum[i]);
_root.plwindow["but" + i].platinum_checkbox.onRelease = function ()
{
if (this.mc_checked._alpha == 0)
{
checked_id[songid[this._parent.id]] = 2;
this.mc_checked._alpha = 100;
total_price = total_price + songplatinum[this._parent.id];
if (this._parent.gold_checkbox.mc_checked._... == 100)
{
this._parent.gold_checkbox.mc_checked._a... = 0;
total_price = total_price - songgold[this._parent.id];
} // end if
}
else
{
checked_id[songid[this._parent.id]] = 0;
this.mc_checked._alpha = 0;
total_price = total_price - songplatinum[this._parent.id];
} // end if
writeTotal();
};
_root.plwindow["but" + i].platinum_checkbox.onRollOver = function ()
{
startDrag(cursor_platinum, true);
_root.fade(cursor_platinum);
};
_root.plwindow["but" + i].platinum_checkbox.onRollOut = function ()
{
stopDrag;
_root.fade(nothing);
cursor_platinum._alpha = 0;
};
} // end if
if (currentsongid == songid[i])
{
_root.plwindow["but" + i].select._alpha = 100;
prevtracknum = i;
_global.song_nr = i;
} // end if
plwindowheight = (i + 1) * 15;
i++;
} // end while
if (plwindowheight %26lt; plmask.height)
{
plwindowheight = plmask.height;
mc_scrollbar._height = mc_scrolltrack._height * (plmask._height / plwindowheight);
}
else
{
mc_scrollbar._height = mc_scrolltrack._height * (plmask._height / plwindowheight);
} // end if
if (currentsongid == 0)
{
_root.createEmptyMovieClip("sound_mc", 1);
if (!itsStopped)
{
_global.song_nr = random(songfile.length / 4);
_root.sound_mc.songStarter(songid[song_n... songfile[song_nr], songname[song_nr], songband[song_nr], song_nr);
} // end if
} // end if
if (loadkey == this.key)
{
mc_sorttitle.mc_loading._alpha = 0;
mc_sortrating.mc_loading._alpha = 0;
mc_sortproducer.mc_loading._alpha = 0;
mc_sortlength.mc_loading._alpha = 0;
mc_sortgold.mc_loading._alpha = 0;
mc_sortplatinum.mc_loading._alpha = 0;
} // end if
} // end if
};
MovieClip.prototype.fade = function (obj)
{
this.obj = obj;
this.obj._alpha = 0;
this.onEnterFrame = function ()
{
this.obj._alpha = this.obj._alpha + (100 - this.obj._alpha) / 8;
if (this.obj._alpha %26gt; 90)
{
this.c = new Color(this.obj);
this.b = 0;
this.onEnterFrame = function ()
{
this.obj._alpha = this.obj._alpha + (100 - this.obj._alpha) / 4;
this.b = this.b + (255 - this.b) / 2;
this.c.setTransform({ra: 100, rb: this.b, ga: 100, gb: this.b, ba: 100, bb: this.b, aa: 100, ab: 0});
if (this.b %26gt; 200)
{
this.onEnterFrame = function ()
{
this.b = this.b + -this.b / 10;
this.c.setTransform({ra: 100, rb: this.b, ga: 100, gb: this.b, ba: 100, bb: this.b, aa: 100, ab: 0});
if (this.b %26lt; 10)
{
this.c.setTransform({ra: 100, rb: 0, ga: 100, gb: 0, ba: 100, bb: 0, aa: 100, ab: 0});
delete this["onEnterFrame"];
} // end if
};
} // end if
};
} // end if
};
};
MovieClip.prototype.songStarter = function (songid, file, name, band, tracknum)
{
if (this.sound_obj)
{
this.sound_obj.stop();
delete this["sound_obj"];
} // end if
this.sound_obj = new Sound(this);
this.sound_obj.loadSound(file, true);
currentsongid = songid;
tracking1._alpha = 100;
this.sound_obj.setVolume(p);
_root.plwindow["but" + prevtracknum].select._alpha = 0;
_root.plwindow["but" + tracknum].select._alpha = 100;
prevtracknum = tracknum;
stillbuff = 1;
loadInterval = setInterval(loader, 100);
display_txt_title.text = name + " - " + band;
if (contains(currentsongid, rated_array))
{
txt_thankyou.text = "You have already rated this song.";
mc_topstars._visible = false;
}
else
{
txt_thankyou.text = "";
mc_topstars._visible = true;
} // end if
itsPaused = 0;
itsStopped = 0;
if (plwindow["but" + tracknum]._y %26lt; plmask._y - plwindow._y)
{
plwindow._y = plmask._y - plwindow["but" + tracknum]._y;
mc_scrollbar._y = mc_scrolltrack._y + (plmask._y - plwindow._y) * (mc_scrolltrack._height / plwindowheight);
}
else if (plwindow._y + plwindow["but" + tracknum]._y + 15 %26gt; plmask._y + plmask._height)
{
plwindow._y = plmask._y + plmask._height - (plwindow["but" + tracknum]._y + 15);
mc_scrollbar._y = mc_scrolltrack._y + (plmask._y - plwindow._y) * (mc_scrolltrack._height / plwindowheight);
} // end if
this.onEnterFrame = function ()
{
if (this.sound_obj.position %26gt; 0)
{
delete this["onEnterFrame"];
buf_txt.text = "";
buf_wheel._alpha = 0;
timeInterval = setInterval(timer, 1000);
pheadInterval = setInterval(pheader, 250);
spectrumInterval = setInterval(soundSpectrum, 250);
} // end if
};
this.sound_obj.onSoundComplete = function ()
{
if (loop_on)
{
_root.sound_mc.sound_obj.start(0, 0);
}
else
{
clearInterval(timeInterval);
timeDisplay_txt.text = "00:00";
clearInterval(pheadInterval);
tracking1.playhead._x = 0;
tracking1.playheadbg._x = 0;
clearInterval(loadInterval);
tracking1.loadBar._xscale = 0;
buf_txt.text = "";
buf_wheel._alpha = 0;
equalizer._alpha = 0;
if (shuffle_on)
{
_global.song_nr = random(songfile.length);
}
else
{
song_nr == songfile.length - 1 ? (_global.song_nr = 0, _global.song_nr = 0) : (_global.song_nr++);
} // end if
sound_mc.songStarter(_global.songid[song... _global.songfile[song_nr], _global.songname[song_nr], _global.songband[song_nr], _global.song_nr);
} // end if
};
volume1.dragger.onRollOver = function ()
{
this.mc_volknobover._alpha = 100;
};
volume1.dragger.onRollOut = function ()
{
this.mc_volknobover._alpha = 0;
};
volume1.dragger.onPress = function ()
{
this.mc_volknobdown._alpha = 100;
startDrag(this, true, 0, this._y, volume1.volBG._width, this._y);
this.onEnterFrame = function ()
{
volume1.mc_voldarkbar._x = this._x;
p = Math.ceil(Math.pow(this._x / volume1.volBG._width, 2) * 100);
if (!mute_on)
{
sound_mc.sound_obj.setVolume(p);
} // end if
};
};
volume1.dragger.onMouseUp = function ()
{
this.mc_volknobdown._alpha = 0;
delete this["onEnterFrame"];
stopDrag();
};
volume1.dragger.onReleaseOutside = function ()
{
this.mc_volknobover._alpha = 0;
};
tracking1.playhead.onRollOver = function ()
{
this.playheadover._alpha = 100;
};
tracking1.playhead.onRollOut = function ()
{
this.playheadover._alpha = 0;
};
tracking1.playhead.onPress = function ()
{
clearInterval(pheadInterval);
temploadbarwidth = tracking1.loadBar._width - 1;
startDrag(this, true, 0, this._y, trackwidth / 100 * tracking1.loadBar._xscale, this._y);
this.onEnterFrame = function ()
{
tracking1.playheadbg._x = this._x;
};
tracking1.playhead.playheaddown._alpha = 100;
};
tracking1.playhead.onRelease = function ()
{
stopDrag();
var _l2 = this._x / temploadbarwidth * (sound_mc.sound_obj.duration / 1000);
tracking1.playhead.playheaddown._alpha = 0;
if (!itsPaused)
{
sound_mc.sound_obj.stop();
sound_mc.sound_obj.start(_l2, 0);
pheadInterval = setInterval(pheader, 250);
stillbuff = 1;
} // end if
};
tracking1.playhead.onReleaseOutside = function ()
{
stopDrag();
var _l2 = this._x / temploadbarwidth * (sound_mc.sound_obj.duration / 1000);
myMusicPosition = _l2;
tracking1.playhead.playheaddown._alpha = 0;
if (!itsPaused)
{
sound_mc.sound_obj.stop();
sound_mc.sound_obj.start(_l2, 0);
pheadInterval = setInterval(pheader, 250);
stillbuff = 1;
} // end if
};
tracking1.loadBar.onRollOver = function ()
{
tracking1.playhead.playheadup._alpha = 100;
};
tracking1.loadBar.onRollOut = function ()
{
tracking1.playhead.playheadup._alpha = 0;
};
tracking1.loadBar.onPress = function ()
{
sound_mc.sound_obj.stop();
var _l1 = (_xmouse - 16) / (tracking1.loadBar._width - 1) * (sound_mc.sound_obj.duration / 1000);
myMusicPosition = _l1;
tracking1.playhead._x = _xmouse - 16;
tracking1.playheadbg._x = _xmouse - 16;
if (!itsPaused)
{
sound_mc.sound_obj.start(_l1, 0);
stillbuff = 1;
} // end if
};
trackingbg.onPress = function ()
{
sound_mc.sound_obj.stop();
var _l1 = (_xmouse - 16) / (tracking1.loadBar._width - 1) * (sound_mc.sound_obj.duration / 1000);
myMusicPosition = _l1;
if (_xmouse - 16 %26gt; 0 %26amp;%26amp; _xmouse - 16 %26lt; trackwidth / 100 * tracking1.loadBar._xscale)
{
tracking1.playhead._x = _xmouse - 16;
tracking1.playheadbg._x = _xmouse - 16;
}
else if (_xmouse - 16 %26lt; 0)
{
tracking1.playhead._x = 0;
tracking1.playheadbg._x = 0;
} // end if
if (!itsPaused)
{
sound_mc.sound_obj.start(_l1, 0);
stillbuff = 1;
} // end if
};
};
trackingbg.onRollOver = function ()
{
tracking1.playhead.playheadup._alpha = 100;
};
trackingbg.onRollOut = function ()
{
tracking1.playhead.playheadup._alpha = 0;
};
mc_scrollbar.useHandCursor = false;
mc_scrollbar.onRollOver = function ()
{
this.over._alpha = 100;
};
mc_scrollbar.onRollOut = function ()
{
this.over._alpha = 0;
};
mc_scrollbar.onPress = function ()
{
this.down._alpha = 100;
this.startDrag(false, mc_scrollbar._x, mc_scrolltrack._y, mc_scrollbar._x, mc_scrolltrack._height - mc_scrollbar._height + mc_scrolltrack._y);
this.onEnterFrame = function ()
{
plwindow._y = plmask._y - (mc_scrollbar._y - mc_scrolltrack._y) * (plwindowheight / mc_scrolltrack._height);
};
};
mc_scrollbar.onRelease = function ()
{
this.down._alpha = 0;
this.stopDrag();
delete this["onEnterFrame"];
};
mc_scrollbar.onReleaseOutside = function ()
{
this.down._alpha = 0;
this.over._alpha = 0;
this.stopDrag();
delete this["onEnterFrame"];
};
mc_scrolltrack.useHandCursor = false;
mc_scrolltrack.onPress = function ()
{
if (mc_scrollbar._y %26gt; this._parent._ymouse)
{
mc_scrollbar._y = this._parent._ymouse;
}
else
{
mc_scrollbar._y = this._parent._ymouse - mc_scrollbar._height;
} // end if
plwindow._y = plmask._y - (mc_scrollbar._y - mc_scrolltrack._y) * (plwindowheight / mc_scrolltrack._height);
};
mc_scrollup.useHandCursor = false;
mc_scrollup.onRollOver = function ()
{
this.over._alpha = 100;
};
mc_scrollup.onRollOut = function ()
{
this.over._alpha = 0;
};
mc_scrollup.onPress = function ()
{
this.down._alpha = 100;
this.onEnterFrame = function ()
{
if (mc_scrollbar._y %26gt; mc_scrolltrack._y)
{
if (mc_scrollbar._y - mc_scrolltrack._y %26gt;= 10)
{
mc_scrollbar._y = mc_scrollbar._y - 10;
plwindow._y = plmask._y - (mc_scrollbar._y - mc_scrolltrack._y) * (plwindowheight / mc_scrolltrack._height);
}
else
{
mc_scrollbar._y = mc_scrolltrack._y;
plwindow._y = plmask._y;
} // end if
}
else
{
delete this["onEnterFrame"];
} // end if
};
};
mc_scrollup.onRelease = function ()
{
delete this["onEnterFrame"];
this.down._alpha = 0;
};
mc_scrollup.onReleaseOutside = function ()
{
delete this["onEnterFrame"];
this.down._alpha = 0;
this.over._alpha = 0;
};
mc_scrolldown.useHandCursor = false;
mc_scrolldown.onRollOver = function ()
{
this.over._alpha = 100;
};
mc_scrolldown.onRollOut = function ()
{
this.over._alpha = 0;
};
mc_scrolldown.onPress = function ()
{
this.down._alpha = 100;
this.onEnterFrame = function ()
{
if (mc_scrollbar._y + mc_scrollbar._height %26lt; mc_scrolltrack._y + mc_scrolltrack._height)
{
if (mc_scrolltrack._y + mc_scrolltrack._height - (mc_scrollbar._y + mc_scrollbar._height) %26gt; 10)
{
mc_scrollbar._y = mc_scrollbar._y + 10;
plwindow._y = plmask._y - (mc_scrollbar._y - mc_scrolltrack._y) * (plwindowheight / mc_scrolltrack._height);
}
else
{
mc_scrollbar._y = mc_scrolltrack._y + mc_scrolltrack._height - mc_scrollbar._height;
plwindow._y = plmask._y - (plwindowheight - plmask._height);
} // end if
}
else
{
delete this["onEnterFrame"];
} // end if
};
};
mc_scrolldown.onRelease = function ()
{
delete this["onEnterFrame"];
this.down._alpha = 0;
};
mc_scrolldown.onReleaseOutside = function ()
{
delete this["onEnterFrame"];
this.down._alpha = 0;
this.over._alpha = 0;
};
btn_play.onRelease = function ()
{
if (itsStopped)
{
sound_mc.songStarter(songid[song_nr], songfile[song_nr], songname[song_nr], songband[song_nr], song_nr);
itsStopped = 0;
} // end if
sound_mc.sound_obj.start(myMusicPosition... 0);
pheadInterval = setInterval(pheader, 250);
btn_play._visible = false;
btn_pause._visible = true;
itsPaused = 0;
};
btn_pause.onRelease = function ()
{
myMusicPosition = sound_mc.sound_obj.position / 1000;
buf_txt.text = "";
buf_wheel._alpha = 0;
equalizer._alpha = 0;
sound_mc.sound_obj.stop();
clearInterval(pheadInterval);
btn_play._visible = true;
btn_pause._visible = false;
itsPaused = 1;
};
btn_stop.onRelease = function ()
{
clearInterval(timeInterval);
timeDisplay_txt.text = "00:00";
clearInterval(pheadInterval);
tracking1.playhead._x = 0;
tracking1.playheadbg._x = 0;
clearInterval(loadInterval);
tracking1.loadBar._xscale = 0;
buf_txt.text = "";
buf_wheel._alpha = 0;
equalizer._alpha = 0;
sound_mc.sound_obj.stop();
delete sound_mc["sound_obj"];
btn_play._visible = true;
btn_pause._visible = false;
tracking1._alpha = 0;
itsStopped = 1;
};
btn_fw.onRelease = function ()
{
clearInterval(timeInterval);
timeDisplay_txt.text = "00:00";
clearInterval(pheadInterval);
tracking1.playhead._x = 0;
tracking1.playheadbg._x = 0;
clearInterval(loadInterval);
tracking1.loadBar._xscale = 0;
buf_txt.text = "";
buf_wheel._alpha = 0;
equalizer._alpha = 0;
if (shuffle_on)
{
_global.song_nr = random(songfile.length);
}
else
{
song_nr == songfile.length - 1 ? (_global.song_nr = 0, _global.song_nr = 0) : (_global.song_nr++);
} // end if
sound_mc.songStarter(songid[song_nr], songfile[song_nr], songname[song_nr], songband[song_nr], song_nr);
btn_play._visible = false;
btn_pause._visible = true;
};
btn_rev.onRelease = function ()
{
clearInterval(timeInterval);
timeDisplay_txt.text = "00:00";
clearInterval(pheadInterval);
tracking1.playhead._x = 0;
tracking1.playheadbg._x = 0;
clearInterval(loadInterval);
tracking1.loadBar._xscale = 0;
buf_txt.text = "";
buf_wheel._alpha = 0;
equalizer._alpha = 0;
if (shuffle_on)
{
_global.song_nr = random(songfile.length);
}
else
{
song_nr == 0 ? (_global.song_nr = songfile.length - 1, _global.song_nr = songfile.length - 1) : (_global.song_nr--);
} // end if
sound_mc.songStarter(songid[song_nr], songfile[song_nr], songname[song_nr], songband[song_nr], song_nr);
btn_play._visible = false;
btn_pause._visible = true;
};
btn_shuff.onRelease = function ()
{
if (shuffle_on == 0)
{
btn_shuff._alpha = 100;
shuffle_on = 1;
}
else
{
btn_shuff._alpha = 0;
shuffle_on = 0;
} // end if
};
btn_loop.onRelease = function ()
{
if (loop_on == 0)
{
btn_loop._alpha = 100;
loop_on = 1;
}
else
{
btn_loop._alpha = 0;
loop_on = 0;
} // end if
};
btn_mute.onRelease = function ()
{
if (mute_on == 0)
{
sound_mc.sound_obj.setVolume(0);
btn_mute._alpha = 0;
mute_on = 1;
}
else
{
sound_mc.sound_obj.setVolume(p);
btn_mute._alpha = 100;
mute_on = 0;
} // end if
};
mc_sorttitle.onRelease = function ()
{
sortrelease(1);
};
mc_sortrating.onRelease = function ()
{
sortrelease(2);
};
mc_sortproducer.onRelease = function ()
{
sortrelease(3);
};
mc_sortlength.onRelease = function ()
{
sortrelease(4);
};
mc_sortgold.onRelease = function ()
{
sortrelease(5);
};
mc_sortplatinum.onRelease = function ()
{
sortrelease(6);
};
mc_topstars.mc_topstar1.onRollOver = function ()
{
topstarsover(1);
};
mc_topstars.mc_topstar1.onRollOut = function ()
{
topstarsup();
};
mc_topstars.mc_topstar1.onReleaseOutsi... = function ()
{
topstarsup();
};
mc_topstars.mc_topstar1.onRelease = function ()
{
ratesong(1);
};
mc_topstars.mc_topstar2.onRollOver = function ()
{
topstarsover(2);
};
mc_topstars.mc_topstar2.onReleaseOutsi... = function ()
{
topstarsup();
};
mc_topstars.mc_topstar2.onRollOut = function ()
{
topstarsup();
};
mc_topstars.mc_topstar2.onRelease = function ()
{
ratesong(2);
};
mc_topstars.mc_topstar3.onRollOver = function ()
{
topstarsover(3);
};
mc_topstars.mc_topstar3.onRollOut = function ()
{
topstarsup();
};
mc_topstars.mc_topstar3.onReleaseOutsi... = function ()
{
topstarsup();
};
mc_topstars.mc_topstar3.onRelease = function ()
{
ratesong(3);
};
mc_topstars.mc_topstar4.onRollOver = function ()
{
topstarsover(4);
};
mc_topstars.mc_topstar4.onRollOut = function ()
{
topstarsup();
};
mc_topstars.mc_topstar4.onReleaseOutsi... = function ()
{
topstarsup();
};
mc_topstars.mc_topstar4.onRelease = function ()
{
ratesong(4);
};
mc_topstars.mc_topstar5.onRollOver = function ()
{
topstarsover(5);
};
mc_topstars.mc_topstar5.onRollOut = function ()
{
topstarsup();
};
mc_topstars.mc_topstar5.onReleaseOutsi... = function ()
{
topstarsup();
};
mc_topstars.mc_topstar5.onRelease = function ()
{
ratesong(5);
};
gotoCheckout = function ()
{
var _l2 = 0;
var _l1 = 0;
while (_l1 %26lt; inputVars.n)
{
if (checked_id[songid[_l1]] == 1)
{
cart_song[_l2] = songname[_l1];
cart_producer[_l2] = songband[_l1];
cart_price[_l2] = songgold[_l1];
cart_pack[_l2] = "Gold";
_l2++;
} // end if
if (checked_id[songid[_l1]] == 2)
{
cart_song[_l2] = songname[_l1];
cart_producer[_l2] = songband[_l1];
cart_price[_l2] = songplatinum[_l1];
cart_pack[_l2] = "Platinum";
_l2++;
} // end if
_l1++;
} // end while
cart_n = _l2;
getURL("http://www.jeejuh.com/google-che... "_blank", "POST");
};
outputVars.sendAndLoad("http://www.jee... inputVars, "POST");
How can i change this too put my music in this player?
i have no idea what u want
more details u wasted 2 minutes of my life trying to scroll lol j/k j/k
soo yeah more details and ill be glad to help
P.S
cut low on all those words hehe
people wont take time to answer this ?)
Reply:all you have to do is to change their urls to yours.
do you have the player ? where did you get it ? Report It
song words
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment