home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 November
/
Chip_2004-11_cd1.bin
/
opsys
/
wmakeup
/
downloads
/
Rave-MP.wmz
/
rave.js
< prev
next >
Wrap
Text (UTF-16)
|
2004-08-26
|
72KB
|
1,653 lines
/*
The Skins Factory
http://www.theskinsfactory.com
info@theskinsfactory.com
RaveMP
*/
function introAnim()
{
view.timerInterval = 0;
mainScreen.alphaBlendTo(0,700);
}
/*
skin preview
*/
function onLoadSkinPreview()
{
if(player){}
view.width = 0;
view.height = 0;
view.backgroundImage = "";
theme.currentViewID = "controlView";
}
/*
skin startup & exit / (remote) control view
*/
function onLoadSkin()
{
theme.savePreference("vidViewer", "false");
theme.savePreference("exitView", "false");
if ("true"==theme.loadPreference("plViewer"))
{
theme.openView( 'plView' );
}
if ("true"==theme.loadPreference("eqViewer"))
{
theme.openView( 'eqView' );
}
if ("true"==theme.loadPreference("visViewer"))
{
theme.openView( 'visView' );
}
if ("true"==theme.loadPreference("infoViewer"))
{
theme.openView( 'infoView' );
}
theme.openView('mainView');
}
function onCloseSkin()
{
theme.savePreference("exitView", "false");
}
var controlStatus = true;
function checkRemoteViewStatus()
{
if(controlStatus)
{
onChangeControlPlayerState();
controlStatus = !controlStatus;
}
else
{
if("true"==theme.loadPreference("remoteCallPl"))
{
toggleView('plView','plViewer')
theme.savePreference("remoteCallPl", "false");
}
if("true"==theme.loadPreference("remoteCallEq"))
{
toggleView('eqView','eqViewer')
theme.savePreference("remoteCallEq", "false");
}
if("true"==theme.loadPreference("remoteCallVis"))
{
toggleView('visView','visViewer')
theme.savePreference("remoteCallVis", "false");
}
if("true"==theme.loadPreference("remoteCallInfo"))
{
toggleView('infoView','infoViewer')
theme.savePreference("remoteCallInfo", "false");
}
//
if("true"==theme.loadPreference("minimizeView"))
{
view.minimize();
theme.savePreference("minimizeView", "false");
}
if("true"==theme.loadPreference("exitView"))
{
view.close();
}
}
}
function onChangeControlPlayerState(){
if (player)
{
switch (player.playState)
{
case 2:
case 3: //playing
if(("false"==theme.loadPreference("vidViewer"))&&player.currentMedia.ImageSourceWidth>0)
{
theme.openView('videoView');
}
break;
}
}
}
/*
main mode startup & exit
*/
function onLoadMain(){
volume.value = player.settings.volume;
theme.savePreference("exitView", "false");
htcpSetTimerStatus();
htcpSetTimer();
htcpSetID();
htcpStartup();
htcpMain();
onChangeMainPlayerState();
updateMetadata('status');
var prefStatus = theme.loadPreference( 'seekStatus' )
if( prefStatus != '--' )
{
seekStatus = ( prefStatus.toLowerCase() == 'true') ? false : true;
}
else
{
seekStatus = true
}
SetTimeShowState();
var val = theme.loadPreference('htcpID');
mainScreen.backgroundImage = "m_screen_off_" + val + ".png";
}
function onCloseMain() {
theme.savePreference("exitView", "true");
theme.savePreference('seekStatus',seekStatus);
}
function onChangeMainPlayerState(){
if (player){
switch (player.playState){
case 2:
break;
case 3: //playing
break;
case 8:
return;
break;
}
}
if (!player.controls.isAvailable("Stop")) {
}
}
/*
other view methods
*/
function onVolInc()
{
if(player.settings.volume < 96)
{
player.settings.volume+=4;
}else{
player.settings.volume = 100;
}
player.settings.mute = false;
volume.toolTip = locVol.toolTip;
}
function onVolDec()
{
if(player.settings.volume > 4)
{
player.settings.volume-=4;
}else{
player.settings.volume = 0;
}
player.settings.mute = false;
volume.toolTip = locVol.toolTip;
}
// sound preferences
function loadSoundPref(){
var val = theme.loadPreference('soundFX');
if(val=='--'){
theme.savePreference("soundFX", "true");
}
}
function checkSoundPref(type){
if("true"==theme.loadPreference("soundFX")){
theme.playSound( type );
}
}
var seekStatus = true;
function drawSeekDigits( seconds )
{
if(player.currentPlaylist.count==0) return;
if( !seekStatus )
{
seconds = player.currentMedia.duration - seconds;
}
frame = 20
seconds = seconds - seconds % 1;
time4.left = -( seconds % 10 ) * frame;
seconds = seconds - ( seconds % 10);
time3.left = -( ( seconds % 60 ) / 10 ) * frame;
seconds = seconds - ( seconds % 60 );
seconds = seconds / 60;
time2.left = -( seconds % 10 ) * frame;
seconds = seconds - ( seconds % 10 );
time1.left = -( seconds / 10 ) * frame;
}
function SetTimeShowState()
{
seekStatus = !seekStatus;
if( seekStatus )
{
timeDash.visible = false;
time1.upToolTip = time2.upToolTip = time3.upToolTip = time4.upToolTip = timeElapsed.toolTip;
}
else
{
timeDash.visible = true;
time1.upToolTip = time2.upToolTip = time3.upToolTip = time4.upToolTip = timeRemaining.toolTip;
}
seconds = seek.value;
drawSeekDigits( seconds );
}
function updateMetadata(type){
if("status"==type){
if(player.openState!=13) return;
var metaAuthor = player.currentMedia.getItemInfo("author");
if (metaAuthor != "") {
metaAuthor += " - ";
}
metadata.value = player.status;
if (metadata.value != "") {
metadata.value += " - ";
}
metadata.value += metaAuthor;
}else if("playlist"==type){
if(player.currentPlaylist.count==0) return;
var metaAuthor = player.currentMedia.getItemInfo("author");
if (metaAuthor != "") {
metaAuthor += " - ";
}
if(player.openState!=13){
metadata.value = metaAuthor;
}
}else{
metadata.value = player.status;
metadata.scrolling = (metadata.textWidth>metadata.width);
return;
}
metadata.value += player.currentmedia.name;
metadata.scrolling = (metadata.textWidth>metadata.width);
}
function openMediaFile( media )
{
if(media=='file')media = theme.openDialog('FILE_OPEN','FILES_ALLMEDIA');
if(media)
{
player.URL = media;
player.controls.play();
}
}
function updateToolTip(id,button,tip)
{
if("true"==theme.loadPreference( id ))
{
eval( button +".upToolTip = locHide" + tip + ".toolTip" );
}
else
{
eval( button +".upToolTip = locShow" + tip + ".toolTip" );
}
}
function updateSeekToolTip()
{
if(player.openState!=13) return;
var seekHours = Math.floor((seek.value / 3600));
if (seekHours < 10) seekHours = "0" + seekHours;
var seekMinutes = Math.floor((seek.value - (seekHours*3600))/60);
if (seekMinutes < 10) seekMinutes = "0" + seekMinutes;
var seekSeconds = Math.floor((seek.value - (seekMinutes*60) - (seekHours*3600)));
if (seekSeconds < 10) seekSeconds = "0" + seekSeconds;
var seekString;
if (seekHours==00)
{
seekString = "";
}
else
{
seekString = seekHours + ":";
}
seekString += seekMinutes + ":" + seekSeconds;
seek.toolTip = seekString;
seek.toolTip += " / ";
seek.toolTip += player.currentMedia.DurationString;
}
function updateVolToolTip(id)
{
vol = "";
vol += player.settings.volume;
eval(id + ".toolTip = vol" );
}
function onShuffRepeatModeChange()
{
if(player.settings.getMode('shuffle'))
{
shuffleButton.down = true;
}else{
shuffleButton.down = false;
}
if(player.settings.getMode('loop'))
{
repeatButton.down = true;
}else{
repeatButton.down = false;
}
}
function onVolKeyPress(event)
{
switch(event.keycode)
{
case 39:
case 38:
if(player.settings.volume < 95)
{
player.settings.volume+=5;
}else{
player.settings.volume = 100;
}
break;
case 37:
case 40:
if(player.settings.volume > 5)
{
player.settings.volume-=5;
}else{
player.settings.volume = 0;
}
break;
}
player.settings.mute = false;
}
function onSeekKeyPress(event)
{
if(player.openState!=13) return;
switch(event.keycode)
{
case 37:
case 40:
if(player.controls.currentPosition > 10)
{
player.controls.currentPosition-=10;
}else{
player.controls.currentPosition = 0;
}
break;
case 39:
case 38:
if(player.controls.currentPosition < player.currentMedia.duration)
{
player.controls.currentPosition+=10;
}else{
player.controls.currentPosition = player.currentMedia.duration;
}
break;
}
}
/*
view global methods
*/
function toggleView(name,id)
{
if("true"==theme.loadPreference(id))
{
theme.savePreference(id, "false");
theme.closeView( name );
}else{
theme.openView( name );
}
}
function onViewClose(id)
{
theme.savePreference(id, "false");
if( id=="vidViewer" )
{
player.controls.stop();
//theme.savePreference("vidCheck", "false");
theme.savePreference("vidViewer", "false");
}
view.close();
}
function autoSizeView(width,height)
{
var viewSize = theme.loadPreference( width );
if( "--" != viewSize )
{
view.width = viewSize;
}else{
view.width = view.minWidth;
}
viewSize = theme.loadpreference( height );
if( "--" != viewSize )
{
view.height = viewSize;
}else{
view.height = view.minHeight;
}
}
function saveViewSize(width,height)
{
theme.savepreference( width , view.width );
theme.savepreference( height , view.height );
}
function onHotKeyPress()
{
switch(event.keycode)
{
case 122:
case 90:
player.controls.previous();
break;
case 120:
case 88:
player.controls.play();
break;
case 99:
case 67:
player.controls.pause();
break;
case 118:
case 86:
player.controls.stop();
break;
case 98:
case 66:
player.controls.next();
break;
case 108:
case 76:
openMediaFile();
break;
}
}
function onViewResize(event)
{
var size = 20
switch(event.keycode)
{
case 37:
view.width-=size;
break;
case 38:
view.height-=size
break;
case 39:
view.width+=size;
break;
case 40:
view.height+=size;
break;
}
}
/*
playlist window load & exit
*/
function onLoadPl()
{
theme.savePreference( 'plViewer', "true" );
playlist1.backgroundColor = "#84d9ff";
playlist1.foregroundcolor = "#32004b";
playlist1.itemPlayingColor = "#ffffff"
playlist1.itemPlayingBackgroundColor = "#84d9ff"
playlist1.disabledItemColor = "#666666"
autoSizeView('plWidth','plHeight');
var index = 0;
playlist1.setColumnResizeMode( index++, "AutosizeData" );
playlist1.setColumnResizeMode( index++, "Stretches" );
playlist1.setColumnResizeMode( index++, "AutosizeHeader" );
playlist1.setColumnResizeMode( index++, "AutosizeHeader" );
playlist1.setColumnResizeMode( index++, "AutosizeHeader" );
playlist1.setColumnResizeMode( index++, "AutosizeHeader" );
htcpStartupPl()
}
function onClosePl()
{
saveViewSize('plWidth','plHeight');
}
/*
equalizer window load & exit
*/
function onLoadEq(){
theme.savePreference( 'eqViewer', "true" );
view.width = view.minWidth;
view.height = view.minHeight;
htcpStartupEq();
}
function updateBalToolTip(){
balance.toolTip = "";
balance.toolTip += player.settings.balance;
}
function toggleSpeaker(){
if(eq.speakerSize==2){
eq.speakerSize = -1;
}
eq.speakerSize++
}
function setSrsEffect()
{
eq.enhancedAudio = !eq.enhancedAudio
if(eq.enhancedAudio)
{
speakerText.alphaBlendTo(255,300);
btnLabelTruBass.alphaBlendTo(255,300);
btnLabelWowEffect.alphaBlendTo(255,300);
truBass.visible = wowEffect.visible = true;
btnSrs.upToolTip = eqSrsOff.toolTip
btnSrs.image = "eq_srs_on_no.png";
btnSrs.hoverImage = "eq_srs_on_hov.png";
btnSrs.downImage = "eq_srs_on_do.png";
}
else
{
speakerText.alphaBlendTo(100,300);
btnLabelTruBass.alphaBlendTo(100,300);
btnLabelWowEffect.alphaBlendTo(100,300);
truBass.visible = wowEffect.visible = false;
btnSrs.upToolTip = eqSrsOn.toolTip;
btnSrs.image = "eq_srs_no.png";
btnSrs.hoverImage = "eq_srs_hov.png";
btnSrs.downImage = "eq_srs_do.png";
}
}
/*
visuals window load & exit
*/
function onLoadVis(){
theme.savePreference( 'visViewer', "true" );
visEffects.currentEffectType = mediacenter.effectType;
visEffects.currentPreset = mediacenter.effectPreset;
autoSizeView('visWidth','visHeight');
htcpStartupVis();
}
function onCloseVis(){
mediacenter.effectType = visEffects.currentEffectType;
mediacenter.effectPreset = visEffects.currentPreset;
saveViewSize('visWidth','visHeight');
}
function onChangeVisualsPlayerState(){
if (player){
switch (player.playState){
case 3: //playing
//visMask.visible = true;
if(player.currentMedia.ImageSourceWidth>0){
theme.savePreference('visViewer', "false");
view.close();
}
break;
}
}
if (!player.controls.isAvailable("Stop")) {
//visMask.visible = false;
}
}
function onChangeVis(){
visEffectsText.visible = true;
visEffectsText.value = visEffects.currentEffectTitle + ": " + visEffects.currentPresetTitle;
visView.timerInterval = 6000;
}
function hideVisText(){
visEffectsText.visible = false;
visView.timerInterval = 0;
}
/*
video load & exit
*/
function onLoadVid(){
theme.savePreference( 'vidViewer', "true" );
var prefStatus = theme.loadPreference( 'drawerStatus' )
if( prefStatus != '--' )
{
drawerStatus = ( prefStatus.toLowerCase() == 'true') ? false : true;
}
else
{
drawerStatus = true
}
checkSnapStatus();
onChangeVidPlayerState();
updateZoomToolTip();
toggleVidDrawer('0');
checkVidDrawer();
htcpStartupVid();
}
function onCloseVid(){
theme.savePreference('drawerStatus',drawerStatus);
}
function loadVidSize(){
var vidSizer = theme.loadPreference( "videoWidth" );
if( "--" != vidSizer )
{
view.width = vidSizer;
}
vidSizer = theme.loadpreference( "videoHeight" );
if( "--" != vidSizer )
{
view.height = vidSizer;
}
}
function onVidSetSize(){
theme.savepreference( "videoWidth", view.width );
theme.savepreference( "videoHeight", view.height );
theme.savePreference("vidSnapper" , "false");
btnZoom.upToolTip = vidSetTip.toolTip;
mediacenter.videoZoom = 50;
}
function onVideoZoom(){
if("false"==theme.loadPreference("vidSnapper")){
mediacenter.videoZoom = 50;
}
if(mediacenter.videoZoom < 76){
mediacenter.videoZoom = 100;
}else if(mediacenter.videoZoom <101){
mediacenter.videoZoom = 150;
}else if(mediacenter.videoZoom < 156){
mediacenter.videoZoom = 200;
}else{
mediacenter.videoZoom = 75;
}
SnapToVideo();
updateZoomToolTip();
}
function updateZoomToolTip(){
btnZoom.upToolTip = vidZoomIn.toolTip + mediacenter.videoZoom + vidZoomMid.toolTip;
if(mediacenter.videoZoom < 76){
nextZoom = 100;
}else if(mediacenter.videoZoom <101){
nextZoom = 150;
}else if(mediacenter.videoZoom < 156){
nextZoom = 200;
}else{
nextZoom = 75;
}
btnZoom.upToolTip += nextZoom + vidZoomOut.toolTip;
if("false"==theme.loadPreference("vidSnapper")){
btnZoom.upToolTip = vidSetTip.toolTip;
}
}
function SnapToVideo(){
theme.savePreference("vidSnapper" , "true");
var zoom = mediacenter.videoZoom;
var viewWidth = (player.currentMedia.imageSourceWidth * (zoom/100.00));
var viewHeight = (player.currentMedia.imageSourceHeight * (zoom/100.00));
view.width = viewWidth + 40;
view.height = viewHeight + 125;
}
function checkSnapStatus(){
if(player.openState!=13) return;
if("false"==theme.loadPreference("vidSnapper")){
loadVidSize();
}else{
SnapToVideo();
}
}
function onChangeVidPlayerState(){
if (player){
switch (player.playState){
case 2:
case 3: //playing
if(!player.currentMedia.ImageSourceWidth>0){
theme.savePreference('vidViewer', "false");
view.close();
break;
}
vidBack1.visible = vidBack2.visible = vidBack3.visible = vidBack4.visible = false;
//vidBack.alphaBlend = 0;
videoFrame.visible = true;
if(!player.fullScreen){
checkSnapStatus();
}
btnVidResize.enabled = true;
btnZoom.enabled = true;
// DEBUG::DEBUG
return;
break;
case 8:
return;
break;
}
}
if (!player.controls.isAvailable("Stop"))
{
videoFrame.visible = false;
btnVidResize.enabled = false;
btnZoom.enabled = false;
vidBack1.visible = vidBack2.visible = vidBack3.visible = vidBack4.visible = true;
//vidBack.alphaBlendTo(255,600);
view.width = 308;
view.height = 245;
}
}
var drawerStatus = false;
function toggleVidDrawer(speed){
if(!drawerStatus){
vidDrawer.moveTo(0,view.height-75,speed);
vidDrawerFrame.visible = true;
btnVidDrawer.down = true;
//btnVidDrawer.downImage = "vid_drawer_do1.png";
drawerStatus = !drawerStatus;
}else{
vidDrawer.moveTo(0,view.height-150,speed);
//btnVidDrawer.downImage = "vid_drawer_do.png";
drawerStatus = !drawerStatus;
}
}
function checkVidDrawer(){
drawerStatus = drawerStatus;
vidDrawerFrame.visible = drawerStatus;
}
/*
All scripts are Copyright © 2004. The Skins Factory, Inc. All Rights Reserved.
Private use only. Sale, duplication, or other transfer of this material is strictly prohibited.
*/
function colorPlayer()
{
theme.savePreference('htcpTimerStatus', 'true' );
htcpMain();
theme.savePreference('htcpTimerStatus',"false");
}
function blendFrameFast(win, num, blend)
{
for(x=1; x<9; x++)
{
eval( win + x + "_" + num + ".alphaBlend = '" + blend + "';" );
}
}
function blendFrameSlow(win, num, blend, speed)
{
for(x=1; x<9; x++)
{
eval( win + x + "_" + num + ".alphaBlendTo(" + blend + "," + speed + ");" );
}
}
// disabled for this version
function htcpSetMsg()
{
var val = theme.loadPreference('htcpMsg');
if(val=='--')
{
theme.savePreference('htcpMsg','true');
}
}
function htcpMsgToggle()
{
if("true"==theme.loadPreference("htcpMsg")){
theme.savePreference('htcpMsg', "false" );
msgButton.down = true;
}
else
{
theme.savePreference('htcpMsg', "true" );
msgButton.down = false;
}
}
function htcpSetTimerStatus()
{
var val = theme.loadPreference('htcpTimerStatus');
if(val=='--')
{
theme.savePreference('htcpTimerStatus',"false");
}
}
function htcpSetTimer()
{
var val = theme.loadPreference('htcpTimer');
if(val=='--')
{
theme.savePreference('htcpTimer',700);
}
}
function htcpSetID()
{
var val = theme.loadPreference('htcpID');
if(val=='--')
{
theme.savePreference('htcpID','4');
}
}
function htcpTimerPause()
{
if("true"==theme.loadPreference("htcpTimerStatus")){
theme.savePreference('htcpTimerStatus', "false" );
htcpValue.value = htcpPause.toolTip;
htcpAdjust.toolTip = htcp2.toolTip;
htcpAdjust.enabled = false;
}
else
{
theme.savePreference('htcpTimerStatus', "true" );
htcpAdjust.enabled = true;
htcpSliderUpdate();
htcpAdjust.toolTip = htcp1.toolTip;
}
}
// main vars
var mainStatus = 1;
var htcpStatus = 0;
function htcpStartup()
{
var mainColor = theme.loadPreference('htcpID');
if(mainColor==1)
{
mainBack2.alphaBlend = 255;
mainStatus = 1;
htcpStatus = 0;
metadata.foregroundColor = "#261c18";
}
else if(mainColor==2)
{
mainBack3.alphaBlend = 255;
mainStatus = 2;
htcpStatus = 1;
metadata.foregroundColor = "#040404";
}
else if(mainColor==3)
{
mainBack4.alphaBlend = 255;
mainStatus = 3;
htcpStatus = 2;
metadata.foregroundColor = "#261c18";
}
else if(mainColor==4)
{
mainBack4.alphaBlend = 0;
mainStatus = 4;
htcpStatus = 3;
metadata.foregroundColor = "#32004b"; // white body
}
htcpMain();
theme.savePreference('htcpTimerStatus', 'true' );
}
function htcpMain()
{
var mainTimer = theme.loadPreference('htcpTimer');
if("true"==theme.loadPreference('htcpTimerStatus'))
{
// hide the buttons
mainScreenButtons.visible = false;
if(mainStatus==1&&htcpStatus==0)
{
mainBack2.alphaBlendTo(255,mainTimer);
mainStatus++
theme.savePreference('htcpID','1');
mainScreenButtons.image = "m_set_no_2.png";
mainScreenButtons.hoverImage = "m_set_hov_2.png";
mainScreenButtons.downImage = "m_set_do_2.png";
seek.image = "seek_2.png";
time1.image = "time_1_2.png";
time2.image = "time_2_2.png";
time3.image = "time_3_2.png";
time4.image = "time_4_2.png";
timeSign.image = "time_sign_2.png";
metadata.foregroundColor = "#221916"; // red body
}
else if(mainStatus==2&&htcpStatus==1)
{
mainBack3.alphaBlendTo(255,mainTimer);
mainStatus++
theme.savePreference('htcpID','2');
mainScreenButtons.image = "m_set_no_3.png";
mainScreenButtons.hoverImage = "m_set_hov_3.png";
mainScreenButtons.downImage = "m_set_do_3.png";
seek.image = "seek_3.png";
time1.image = "time_1_3.png";
time2.image = "time_2_3.png";
time3.image = "time_3_3.png";
time4.image = "time_4_3.png";
timeSign.image = "time_sign_3.png";
metadata.foregroundColor = "#000000"; // blue body
}
else if(mainStatus==3&&htcpStatus==2)
{
mainBack4.alphaBlendTo(255,mainTimer);
mainStatus++
theme.savePreference('htcpID','3');
mainScreenButtons.image = "m_set_no_2.png";
mainScreenButtons.hoverImage = "m_set_hov_2.png";
mainScreenButtons.downImage = "m_set_do_2.png";
seek.image = "seek_2.png";
time1.image = "time_1_2.png";
time2.image = "time_2_2.png";
time3.image = "time_3_2.png";
time4.image = "time_4_2.png";
timeSign.image = "time_sign_2.png";
metadata.foregroundColor = "#221916"; // green body
}
else if(mainStatus==4&&htcpStatus==3)
{
mainBack4.alphaBlendTo(0,mainTimer);
mainStatus = 1;
theme.savePreference('htcpID','4');
mainScreenButtons.image = "m_set_no_1.png";
mainScreenButtons.hoverImage = "m_set_hov_1.png";
mainScreenButtons.downImage = "m_set_do_1.png";
seek.image = "seek_1.png";
time1.image = "time_1_1.png";
time2.image = "time_2_1.png";
time3.image = "time_3_1.png";
time4.image = "time_4_1.png";
timeSign.image = "time_sign_1.png";
metadata.foregroundColor = "#2D0043"; // white body
mainBack2.alphaBlend = 0;
mainBack3.alphaBlend = 0;
}
// var viewTimer = theme.loadPreference('htcpViewTimer');
// view.timerInterval = (Math.round(viewTimer)) + (Math.round(mainTimer));
}
}
function htcpCheck()
{
htcpStatus++
if(htcpStatus==4)
{
htcpStatus = 0;
}
// show the buttons
mainScreenButtons.visible = true;
}
var plStatus = 1;
function htcpStartupPl()
{
var htcpAlpha = theme.loadPreference('htcpID');
//var winColor = theme.loadPreference('winAlpha');
var winColor = 255
if(htcpAlpha==1)
{
blendFrameFast('pl',2,winColor);
plStatus = 0;
playlist1.backgroundColor = "#d4ad33";
playlist1.foregroundcolor = "#261c18";
playlist1.itemPlayingColor = "#ffffff"
playlist1.itemPlayingBackgroundColor = "#261c18"
playlist1.disabledItemColor = "#666666"
}
else if(htcpAlpha==2)
{
blendFrameFast('pl',2,255);
blendFrameFast('pl',3,winColor);
plStatus = 1;
playlist1.backgroundColor = "#d4ad33";
playlist1.foregroundcolor = "#261c18";
playlist1.itemPlayingColor = "#ffffff"
playlist1.itemPlayingBackgroundColor = "#261c18"
playlist1.disabledItemColor = "#666666"
}
else if(htcpAlpha==3)
{
//blendFrameFast('pl',2,255);
blendFrameFast('pl',3,255);
blendFrameFast('pl',4,winColor);
plStatus = 2;
playlist1.backgroundColor = "#99de53";
playlist1.foregroundcolor = "#000000";
playlist1.itemPlayingColor = "#ffffff"
playlist1.itemPlayingBackgroundColor = "#000000"
playlist1.disabledItemColor = "#666666"
}
else if(htcpAlpha==4)
{
blendFrameFast('pl',4,0);
plStatus = 3;
playlist1.backgroundColor = "#84d9ff";
playlist1.foregroundcolor = "#32004b";
playlist1.itemPlayingColor = "#ffffff"
playlist1.itemPlayingBackgroundColor = "#32004b"
playlist1.disabledItemColor = "#666666"
}
htcpPl();
}
function htcpPl()
{
var winTimer = theme.loadPreference('htcpTimer');
var htcpAlpha = theme.loadPreference('htcpID');
if(htcpAlpha==1&&plStatus==0)
{
blendFrameSlow('pl',2,255,winTimer);
plStatus++;
playlist1.backgroundColor = "#d4ad33";
playlist1.foregroundcolor = "#221916";
playlist1.itemPlayingColor = "#ffffff"
playlist1.itemPlayingBackgroundColor = "#221916"
playlist1.disabledItemColor = "#666666"
}
else if(htcpAlpha==2&&plStatus==1)
{
blendFrameFast('pl',2,255);
blendFrameSlow('pl',3,255,winTimer);
plStatus++;
playlist1.backgroundColor = "#99de53";
playlist1.foregroundcolor = "#000000";
playlist1.itemPlayingColor = "#ffffff"
playlist1.itemPlayingBackgroundColor = "#000000"
playlist1.disabledItemColor = "#666666"
}
else if(htcpAlpha==3&&plStatus==2)
{
blendFrameFast('pl',3,255);
blendFrameSlow('pl',4,255,winTimer);
plStatus++;
playlist1.backgroundColor = "#d4ad33";
playlist1.foregroundcolor = "#221916";
playlist1.itemPlayingColor = "#ffffff"
playlist1.itemPlayingBackgroundColor = "#221916"
playlist1.disabledItemColor = "#666666"
}
else if(htcpAlpha==4&&plStatus==3)
{
blendFrameSlow('pl',4,0,winTimer);
plStatus = 0
playlist1.backgroundColor = "#84d9ff";
playlist1.foregroundcolor = "#2D0043";
playlist1.itemPlayingColor = "#ffffff"
playlist1.itemPlayingBackgroundColor = "#2D0043"
playlist1.disabledItemColor = "#666666"
blendFrameFast('pl',2,0);
blendFrameFast('pl',3,0);
}
}
var eqStatus = 1;
function htcpStartupEq()
{
var htcpAlpha = theme.loadPreference('htcpID');
//var winColor = theme.loadPreference('winAlpha');
var winColor = 255
if(htcpAlpha==1)
{
blendFrameFast('eq',2,winColor);
eqBack2.alphaBlend = 255;
htcpEqSet2();
eqStatus = 0;
}
else if(htcpAlpha==2)
{
blendFrameFast('eq',2,255);
blendFrameFast('eq',3,winColor);
eqBack3.alphaBlend = 255;
htcpEqSet3();
eqStatus = 1;
}
else if(htcpAlpha==3)
{
//blendFrameFast('eq',2,255);
blendFrameFast('eq',3,255);
blendFrameFast('eq',4,winColor);
eqBack4.alphaBlend = 255;
htcpEqSet2();
eqStatus = 2;
}
else if(htcpAlpha==4)
{
blendFrameFast('eq',4,0);
eqBack4.alphaBlend = 0;
htcpEqSet1();
eqStatus = 3;
}
htcpEq();
}
function htcpEq()
{
var winTimer = theme.loadPreference('htcpTimer');
var htcpAlpha = theme.loadPreference('htcpID');
if(htcpAlpha==1&&eqStatus==0)
{
blendFrameSlow('eq',2,255,winTimer);
eqBack2.alphaBlendTo(255,winTimer);
htcpEqSet2();
eqStatus++;
}
else if(htcpAlpha==2&&eqStatus==1)
{
blendFrameFast('eq',2,255);
blendFrameSlow('eq',3,255,winTimer);
eqBack3.alphaBlendTo(255,winTimer);
htcpEqSet3();
eqStatus++;
}
else if(htcpAlpha==3&&eqStatus==2)
{
blendFrameFast('eq',3,255);
blendFrameSlow('eq',4,255,winTimer);
eqBack4.alphaBlendTo(255,winTimer);
htcpEqSet2();
eqStatus++;
}
else if(htcpAlpha==4&&eqStatus==3)
{
blendFrameSlow('eq',4,0,winTimer);
eqBack4.alphaBlendTo(0,winTimer);
eqStatus = 0
htcpEqSet1();
eqBack2.alphaBlend = 0;
eqBack3.alphaBlend = 0;
blendFrameFast('eq',2,0);
blendFrameFast('eq',3,0);
}
}
function htcpEqSet1()
{
eqBackGroup1.visible = false;
eqBackGroup3.visible = false;
eqNav.image = "eq_nav_no_1.png";
eqNav.hoverImage = "eq_nav_hov_1.png";
eqNav.downImage = "eq_nav_do_1.png";
srsSet.image = "eq_srs_no_1.png";
srsSet.hoverImage = "eq_srs_hov_1.png";
srsSet.downImage = "eq_srs_do_1.png";
balance.thumbImage = "bal_thumb_1.png";
truBass.foregroundImage = "srs_slider_1.png";
wowEffect.foregroundImage = "srs_slider_1.png";
eqPresetText.foregroundColor = "#2D0043";
balanceText.foregroundColor= "#2D0043";
SrsWowText.foregroundColor= "#2D0043";
SrsSpeaker.foregroundColor= "#2D0043";
SrsTruBass.foregroundColor= "#2D0043";
SrsWowEffect.foregroundColor= "#2D0043";
eq1.foregroundImage = "eq_slider_1.png";
eq2.foregroundImage = "eq_slider_1.png";
eq3.foregroundImage = "eq_slider_1.png";
eq4.foregroundImage = "eq_slider_1.png";
eq5.foregroundImage = "eq_slider_1.png";
eq6.foregroundImage = "eq_slider_1.png";
eq7.foregroundImage = "eq_slider_1.png";
eq8.foregroundImage = "eq_slider_1.png";
eq9.foregroundImage = "eq_slider_1.png";
eq10.foregroundImage = "eq_slider_1.png";
}
function htcpEqSet2()
{
eqBackGroup1.visible = false;
eqBackGroup3.visible = false;
eqNav.image = "eq_nav_no_2.png";
eqNav.hoverImage = "eq_nav_hov_2.png";
eqNav.downImage = "eq_nav_do_2.png";
srsSet.image = "eq_srs_no_2.png";
srsSet.hoverImage = "eq_srs_hov_2.png";
srsSet.downImage = "eq_srs_do_2.png";
balance.thumbImage = "bal_thumb_2.png";
truBass.foregroundImage = "srs_slider_2.png";
wowEffect.foregroundImage = "srs_slider_2.png";
eqPresetText.foregroundColor = "#221916";
balanceText.foregroundColor= "#221916";
SrsWowText.foregroundColor= "#221916";
SrsSpeaker.foregroundColor= "#221916";
SrsTruBass.foregroundColor= "#221916";
SrsWowEffect.foregroundColor= "#221916";
eq1.foregroundImage = "eq_slider_2.png";
eq2.foregroundImage = "eq_slider_2.png";
eq3.foregroundImage = "eq_slider_2.png";
eq4.foregroundImage = "eq_slider_2.png";
eq5.foregroundImage = "eq_slider_2.png";
eq6.foregroundImage = "eq_slider_2.png";
eq7.foregroundImage = "eq_slider_2.png";
eq8.foregroundImage = "eq_slider_2.png";
eq9.foregroundImage = "eq_slider_2.png";
eq10.foregroundImage = "eq_slider_2.png";
}
function htcpEqSet3()
{
eqBackGroup1.visible = false;
eqBackGroup3.visible = false;
eqNav.image = "eq_nav_no_3.png";
eqNav.hoverImage = "eq_nav_hov_3.png";
eqNav.downImage = "eq_nav_do_3.png";
srsSet.image = "eq_srs_no_3.png";
srsSet.hoverImage = "eq_srs_hov_3.png";
srsSet.downImage = "eq_srs_do_3.png";
balance.thumbImage = "bal_thumb_3.png";
truBass.foregroundImage = "srs_slider_3.png";
wowEffect.foregroundImage = "srs_slider_3.png";
eqPresetText.foregroundColor = "#000000";
balanceText.foregroundColor= "#000000";
SrsWowText.foregroundColor= "#000000";
SrsSpeaker.foregroundColor= "#000000";
SrsTruBass.foregroundColor= "#000000";
SrsWowEffect.foregroundColor= "#000000";
eq1.foregroundImage = "eq_slider_3.png";
eq2.foregroundImage = "eq_slider_3.png";
eq3.foregroundImage = "eq_slider_3.png";
eq4.foregroundImage = "eq_slider_3.png";
eq5.foregroundImage = "eq_slider_3.png";
eq6.foregroundImage = "eq_slider_3.png";
eq7.foregroundImage = "eq_slider_3.png";
eq8.foregroundImage = "eq_slider_3.png";
eq9.foregroundImage = "eq_slider_3.png";
eq10.foregroundImage = "eq_slider_3.png";
}
var visStatus = 1;
function htcpStartupVis()
{
var htcpAlpha = theme.loadPreference('htcpID');
//var winColor = theme.loadPreference('winAlpha');
var winColor = 255
if(htcpAlpha==1)
{
blendFrameFast('vis',2,winColor);
visStatus = 0;
}
else if(htcpAlpha==2)
{
blendFrameFast('vis',2,255);
blendFrameFast('vis',3,winColor);
visStatus = 1;
}
else if(htcpAlpha==3)
{
//blendFrameFast('vis',2,255);
blendFrameFast('vis',3,255);
blendFrameFast('vis',4,winColor);
visStatus = 2;
}
else if(htcpAlpha==4)
{
blendFrameFast('vis',4,0);
visStatus = 3;
}
htcpVis();
}
function htcpVis()
{
var winTimer = theme.loadPreference('htcpTimer');
var htcpAlpha = theme.loadPreference('htcpID');
if(htcpAlpha==1&&visStatus==0)
{
blendFrameSlow('vis',2,255,winTimer);
visStatus++;
}
else if(htcpAlpha==2&&visStatus==1)
{
blendFrameFast('vis',2,255);
blendFrameSlow('vis',3,255,winTimer);
visStatus++;
}
else if(htcpAlpha==3&&visStatus==2)
{
blendFrameFast('vis',3,255);
blendFrameSlow('vis',4,255,winTimer);
visStatus++;
}
else if(htcpAlpha==4&&visStatus==3)
{
blendFrameSlow('vis',4,0,winTimer);
visStatus = 0
blendFrameFast('vis',2,0);
blendFrameFast('vis',3,0);
}
}
var vidStatus = 1;
function htcpStartupVid()
{
var htcpAlpha = theme.loadPreference('htcpID');
//var winColor = theme.loadPreference('winAlpha');
var winColor = 255
if(htcpAlpha==1)
{
blendFrameFast('vid',2,winColor);
vidDrawer2.alphaBlend = 255;
vidBack2.alphaBlend = 255;
vidStatus = 0;
}
else if(htcpAlpha==2)
{
blendFrameFast('vid',2,255);
blendFrameFast('vid',3,winColor);
vidDrawer3.alphaBlend = 255;
vidBack3.alphaBlend = 255;
vidStatus = 1;
}
else if(htcpAlpha==3)
{
//blendFrameFast('vid',2,255);
blendFrameFast('vid',3,255);
blendFrameFast('vid',4,winColor);
vidDrawer4.alphaBlend = 255;
vidBack4.alphaBlend = 255;
vidStatus = 2;
}
else if(htcpAlpha==4)
{
blendFrameFast('vid',4,0);
vidDrawer4.alphaBlend = 0;
vidBack4.alphaBlend = 0;
vidStatus = 3;
}
htcpVid();
}
function htcpVid()
{
var winTimer = theme.loadPreference('htcpTimer');
var htcpAlpha = theme.loadPreference('htcpID');
if(htcpAlpha==1&&vidStatus==0)
{
blendFrameSlow('vid',2,255,winTimer);
vidDrawer2.alphaBlendTo(255,winTimer);
vidBack2.alphaBlendTo(255,winTimer);
brightnessText.foregroundColor = "#221916";
contrastText.foregroundColor = "#221916";
hueText.foregroundColor = "#221916";
saturationText.foregroundColor = "#221916";
brightness.thumbImage = "bal_thumb_2.png";
contrast.thumbImage = "bal_thumb_2.png";
hue.thumbImage = "bal_thumb_2.png";
saturation.thumbImage = "bal_thumb_2.png";
vidStatus++;
}
else if(htcpAlpha==2&&vidStatus==1)
{
blendFrameFast('vid',2,255);
blendFrameSlow('vid',3,255,winTimer);
vidDrawer3.alphaBlendTo(255,winTimer);
vidBack3.alphaBlendTo(255,winTimer);
brightnessText.foregroundColor = "#000000";
contrastText.foregroundColor = "#000000";
hueText.foregroundColor = "#000000";
saturationText.foregroundColor = "#000000";
brightness.thumbImage = "bal_thumb_3.png";
contrast.thumbImage = "bal_thumb_3.png";
hue.thumbImage = "bal_thumb_3.png";
saturation.thumbImage = "bal_thumb_3.png";
vidStatus++;
}
else if(htcpAlpha==3&&vidStatus==2)
{
blendFrameFast('vid',3,255);
blendFrameSlow('vid',4,255,winTimer);
vidDrawer4.alphaBlendTo(255,winTimer);
vidBack4.alphaBlendTo(255,winTimer);
brightnessText.foregroundColor = "#221916";
contrastText.foregroundColor = "#221916";
hueText.foregroundColor = "#221916";
saturationText.foregroundColor = "#221916";
brightness.thumbImage = "bal_thumb_2.png";
contrast.thumbImage = "bal_thumb_2.png";
hue.thumbImage = "bal_thumb_2.png";
saturation.thumbImage = "bal_thumb_2.png";
vidStatus++;
}
else if(htcpAlpha==4&&vidStatus==3)
{
blendFrameSlow('vid',4,0,winTimer);
vidDrawer4.alphaBlendTo(0,winTimer);
vidBack4.alphaBlendTo(0,winTimer);
brightnessText.foregroundColor = "#2D0043";
contrastText.foregroundColor = "#2D0043";
hueText.foregroundColor = "#2D0043";
saturationText.foregroundColor = "#2D0043";
brightness.thumbImage = "bal_thumb_1.png";
contrast.thumbImage = "bal_thumb_1.png";
hue.thumbImage = "bal_thumb_1.png";
saturation.thumbImage = "bal_thumb_1.png";
vidStatus = 0
vidBack2.alphaBlend = 0;
vidBack3.alphaBlend = 0;
vidDrawer2.alphaBlend = 0;
vidDrawer3.alphaBlend = 0;
blendFrameFast('vid',2,0);
blendFrameFast('vid',3,0);
}
}