home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
Chip_2004-04_cd1.bin
/
opsys
/
wmakeup
/
downloads
/
Need_for_Speed_Underground.wmz
/
nfs.js
< prev
next >
Wrap
Text (UTF-16)
|
2004-01-02
|
78KB
|
1,867 lines
/*
The Skins Factory
http://www.theskinsfactory.com
info@theskinsfactory.com
Need For Speed Underground WMP 9 Skin
*/
function onLoadPreview()
{
if(player){}
view.width = 0;
view.height = 0;
view.backgroundImage = "";
theme.currentViewID = "controlView";
}
function onLoadSkin()
{
theme.savePreference("exitView", "false");
theme.savePreference('htcpID','7');
theme.openView('mainView');
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' );
}
checkControlPlayerState();
}
function checkViewStatus()
{
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 onCloseSkin()
{
theme.savePreference("exitView", "false");
}
function checkControlPlayerState(){
if (player){
switch (player.playState){
case 2:
case 3: //playing
if(("false"==theme.loadPreference("vidViewer"))&&player.currentMedia.ImageSourceWidth>0){
theme.openView('videoView');
}
break;
}
}
}
// sound fx
function loadSoundPrefValue(){
var val = theme.loadPreference('soundFX');
if(val=='--'){
theme.savePreference("soundFX", "true");
}
}
function checkSoundPref(type){
if("true"==theme.loadPreference("soundFX")){
theme.playSound( type );
}
}
function mainStartUp()
{
loadSoundPrefValue();
htcpSetTimerStatus();
htcpSetTimer();
htcpSetID();
volume.value = player.settings.volume;
loadMainPrefs();
theme.savePreference("vidViewer", "false");
checkPlayerState();
updateMetadata('status');
}
function checkPlayerState(){
if (player){
switch (player.playState){
case 2:
case 3: //playing
/*
if(("false"==theme.loadPreference("vidViewer"))&&player.currentMedia.ImageSourceWidth>0){
theme.openView('videoView');
if("true"==theme.loadPreference("visViewer")){
theme.savePreference("visViewer", "false");
theme.closeView( "visView" );
}
break
}
*/
break;
}
}
if (!player.controls.isAvailable("Stop")) {
}
}
// metadata
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);
}
var seekStatus = true;
function drawSeekDigits( seconds )
{
if(player.currentPlaylist.count==0) return;
if( !seekStatus )
{
seconds = player.currentMedia.duration - seconds;
}
frame = 9
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 );
}
// button and hotkey definitions
// open file
function openFile(media)
{
if(media=='file')media = theme.openDialog('FILE_OPEN','FILES_ALLMEDIA');
if(media)
{
player.URL = media;
player.controls.play();
}
}
function viewHotKeys()
{
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:
openFile('file');
break;
}
}
function viewResizer(event)
{
switch(event.keycode)
{
case 37:
view.width-=20;
break;
case 38:
view.height-=20
break;
case 39:
view.width+=20;
break;
case 40:
view.height+=20;
break;
}
}
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 updateShuffRep()
{
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 volKey(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 seekKey(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 toggle
function toggleView(name,id)
{
if("true"==theme.loadPreference(id))
{
theme.savePreference(id, "false");
theme.closeView( name );
}else{
theme.openView( name );
}
}
function closeView(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 );
}
// preferences
function loadMainPrefs(){
htcpStartup();
htcpMain();
//sampleAlpha();
theme.savePreference("exitView", "false");
var _seekStatus = theme.loadPreference('seekStatus');
if (_seekStatus != '--')
{
seekStatus = (_seekStatus.toLowerCase() == 'true') ? false : true;
} else {
seekStatus = true;
}
SetTimeShowState();
}
function saveMainPrefs() {
theme.savePreference('seekStatus',seekStatus);
theme.savePreference("exitView", "true");
}
function mainShutDown(){
saveMainPrefs();
}
// playlist
function loadPlPrefs()
{
theme.savePreference( 'plViewer', "true" );
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 savePlPrefs(){
saveViewSize('plWidth','plHeight');
}
// visualizations
function loadVisPrefs(){
theme.savePreference( 'visViewer', "true" );
visEffects.currentEffectType = mediacenter.effectType;
visEffects.currentPreset = mediacenter.effectPreset;
autoSizeView('visWidth','visHeight');
htcpStartupVis();
checkVisualsPlayerState();
}
function saveVisPrefs(){
mediacenter.effectType = visEffects.currentEffectType;
mediacenter.effectPreset = visEffects.currentPreset;
saveViewSize('visWidth','visHeight');
}
function checkVisualsPlayerState(){
if (player){
switch (player.playState){
case 3: //playing
//visMask.visible = true;
break;
}
}
if (!player.controls.isAvailable("Stop")) {
//visMask.visible = false;
}
}
// eq settings
function loadEQPrefs(){
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 toggleSkinFx()
{
if("true"==theme.loadPreference("soundFX"))
{
theme.savePreference("soundFX", "false");
}else{
theme.savePreference("soundFX", "true");
}
}
// video settings
function loadVidPrefs(){
theme.savePreference( 'vidViewer', "true" );
var _drawerStatus = theme.loadPreference('drawerStatus');
if (_drawerStatus != '--') {
drawerStatus = (_drawerStatus.toLowerCase() == 'true') ? false : true;
} else {
drawerStatus = true;
}
checkSnapStatus();
checkVideoPlayerState();
htcpStartupVid();
updateZoomToolTip();
toggleVidDrawer();
}
function saveVidPrefs(){
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 saveVidSize(){
theme.savepreference( "videoWidth", view.width );
theme.savepreference( "videoHeight", view.height );
theme.savePreference("vidSnapper" , "false");
vidZoom.upToolTip = vidSetTip.toolTip;
mediacenter.videoZoom = 50;
}
function videoZoom(){
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(){
vidZoom.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;
}
vidZoom.upToolTip += nextZoom + vidZoomOut.toolTip;
if("false"==theme.loadPreference("vidSnapper")){
vidZoom.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 + 68;
view.height = viewHeight + 139;
}
function checkSnapStatus(){
if(player.openState!=13) return;
if("false"==theme.loadPreference("vidSnapper")){
loadVidSize();
}else{
SnapToVideo();
}
}
function checkVideoPlayerState(){
if (player){
switch (player.playState){
case 3: //playing
if(!player.currentMedia.ImageSourceWidth>0){
theme.savePreference('vidViewer', "false");
view.close();
break;
}
vidBack.visible = false;
videoFrame.visible = true;
vidResizeDis.visible = vidResize1.visible = vidResize2.visible = vidResize3.visible = vidResize4.visible = vidResize5.visible = vidResize6.visible = vidResize7.visible = false;
if(!player.fullScreen){
checkSnapStatus();
}
break;
case 8:
return;
break;
}
vidResize.enabled = true;
vidZoom.enabled = true;
}
if (!player.controls.isAvailable("Stop")) {
videoFrame.visible = false;
vidResize.enabled = false;
vidZoom.enabled = false;
vidBack.visible = true;
view.width = 379;
view.height = 290;
vidResizeDis.visible = vidResize1.visible = vidResize2.visible = vidResize3.visible = vidResize4.visible = vidResize5.visible = vidResize6.visible = vidResize7.visible = true;
}
}
function toggleVidDrawer(){
if(!drawerStatus){
vidDrawer.moveTo(0,view.height-73,500);
vidDrawerFrame.visible = true;
vidDrawerButton.down = true;
drawerStatus = !drawerStatus;
}else{
vidDrawer.moveTo(0,view.height-160,500);
drawerStatus = !drawerStatus;
}
}
function checkVidDrawer(){
drawerStatus = drawerStatus;
vidDrawerFrame.visible = drawerStatus;
}
var introTimer = false;
var alphaIntroTimer = false;
var frameCount = 12;
function toggleShutter()
{
if(!introTimer)
{
introAnim.backgroundImage = "intro_anim.gif";
checkSoundPref('intro4.wav')
view.timerInterval = 5000;
introTimer = !introTimer;
shutterStatus = true;
shutterLightStatus = true;
return;
}
if(!alphaIntroTimer)
{
shutterLight.alphaBlendTo(0,500);
view.timerInterval = 1000;
alphaIntroFade = false;
alphaIntroTimer = !alphaIntroTimer;
return;
}
if(!alphaIntroFade)
{
introAnim.alphaBlendTo(0,500);
view.timerInterval = 0;
alphaIntroFade = !alphaIntroFade;
return;
}
if(!shutterStatus)
{
frameCount++
shutterSub.backgroundImage = "shutter_f0" + frameCount + ".png";
view.timerInterval = 50;
shutterButton.down = false;
mainBackFrame2.visible = true;
shutterButton.enabled = false;
if(!shutterLightStatus){
shutterLight.alphaBlendTo(0,500);
shutterLightStatus = !shutterLightStatus;
}
if(frameCount==12){
view.timerInterval = 0;
shutterButton.enabled = true;
shutterStatus = !shutterStatus;
}
}
else
{
frameCount--
shutterSub.backgroundImage = "shutter_f0" + frameCount + ".png";
view.timerInterval = 50;
shutterButton.down = true;
shutterButton.enabled = false;
if(shutterLightStatus){
shutterLight.alphaBlendTo(255,500);
shutterLightStatus = !shutterLightStatus;
}
if(frameCount==1){
mainBackFrame2.visible = false;
view.timerInterval = 0;
shutterButton.enabled = true;
shutterStatus = !shutterStatus;
//shutterLight.alphaBlendTo(255,500);
}
}
}
function colorTimer(timerStatus)
{
if(timerStatus=="intro")
{
introAnim.backgroundImage = "intro_anim.gif";
checkSoundPref('intro3.wav')
//view.timerInterval = 50;
//timerStatus = !timerStatus;
}
else if(timerStatus=="color")
{
htcpMain();
theme.savePreference('htcpTimerStatus',"false");
}
}
function colorPlayer()
{
theme.savePreference('htcpTimerStatus', 'true' );
htcpMain();
theme.savePreference('htcpTimerStatus',"false");
}
/*
All scripts are Copyright © 2003. The Skins Factory, Inc. All Rights Reserved.
Private use only. Sale, duplication, or other transfer of this material is strictly prohibited.
*/
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 + ");" );
}
}
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','7');
}
}
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;
}
}
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 = "#00AEEF";
}
else if(mainColor==2)
{
mainBack3.alphaBlend = 255;
mainStatus = 2;
htcpStatus = 1;
metadata.foregroundColor = "#C4DF9B";
}
else if(mainColor==3)
{
mainBack4.alphaBlend = 255;
mainStatus = 3;
htcpStatus = 2;
metadata.foregroundColor = "#A864A8";
}
else if(mainColor==4)
{
mainBack5.alphaBlend = 255;
mainStatus = 4;
htcpStatus = 3;
metadata.foregroundColor = "#F26D7D";
}
else if(mainColor==5)
{
mainBack6.alphaBlend = 255;
mainStatus = 5;
htcpStatus = 4;
metadata.foregroundColor = "#F69679";
}
else if(mainColor==6)
{
mainBack6.alphaBlend = 255;
mainBack7.alphaBlend = 255;
mainStatus = 6;
htcpStatus = 5;
metadata.foregroundColor = "#FFF568";
}
else if(mainColor==7)
{
mainBack7.alphaBlend = 0;
mainStatus = 7;
htcpStatus = 6;
metadata.foregroundColor = "#00AEEF";
}
htcpMain();
theme.savePreference('htcpTimerStatus', 'true' );
}
function htcpMain()
{
var mainTimer = theme.loadPreference('htcpTimer');
if("true"==theme.loadPreference('htcpTimerStatus'))
{
if(mainStatus==1&&htcpStatus==0)
{
mainBack2.alphaBlendTo(255,mainTimer);
mainStatus++
theme.savePreference('htcpID','1');
metadata.foregroundColor = "#00AEEF";
}
else if(mainStatus==2&&htcpStatus==1)
{
mainBack3.alphaBlendTo(255,mainTimer);
mainStatus++
theme.savePreference('htcpID','2');
metadata.foregroundColor = "#C4DF9B";
}
else if(mainStatus==3&&htcpStatus==2)
{
mainBack4.alphaBlendTo(255,mainTimer);
mainStatus++
theme.savePreference('htcpID','3');
metadata.foregroundColor = "#A864A8";
}
else if(mainStatus==4&&htcpStatus==3)
{
mainBack5.alphaBlendTo(255,mainTimer);
mainStatus++
theme.savePreference('htcpID','4');
metadata.foregroundColor = "#F26D7D";
}
else if(mainStatus==5&&htcpStatus==4)
{
mainBack6.alphaBlendTo(255,mainTimer);
mainStatus++;
theme.savePreference('htcpID','5');
metadata.foregroundColor = "#F69679";
}
else if(mainStatus==6&&htcpStatus==5)
{
mainBack7.alphaBlendTo(255,mainTimer);
mainStatus++
theme.savePreference('htcpID','6');
metadata.foregroundColor = "#FFF568";
}
else if(mainStatus==7&&htcpStatus==6)
{
mainBack7.alphaBlendTo(0,mainTimer);
mainStatus = 1;
theme.savePreference('htcpID','7');
metadata.foregroundColor = "#00AEEF";
mainBack2.alphaBlend = 0;
mainBack3.alphaBlend = 0;
mainBack4.alphaBlend = 0;
mainBack5.alphaBlend = 0;
mainBack6.alphaBlend = 0;
}
// var viewTimer = theme.loadPreference('htcpViewTimer');
// view.timerInterval = (Math.round(viewTimer)) + (Math.round(mainTimer));
}
}
function htcpCheck()
{
htcpStatus++
if(htcpStatus==7)
{
htcpStatus = 0;
}
}
function sampleAlpha()
{
var htcpAlpha = theme.loadPreference('htcpID');
if(htcpAlpha==1)
{
htcpOpac = mainBack2.alphaBlend;
theme.savePreference('winAlpha',htcpOpac);
}
else if(htcpAlpha==2)
{
htcpOpac = mainBack3.alphaBlend;
theme.savePreference('winAlpha',htcpOpac);
}
else if(htcpAlpha==3)
{
htcpOpac = mainBack4.alphaBlend;
theme.savePreference('winAlpha',htcpOpac);
}
else if(htcpAlpha==4)
{
htcpOpac = mainBack5.alphaBlend;
theme.savePreference('winAlpha',htcpOpac);
}
else if(htcpAlpha==5)
{
htcpOpac = mainBack6.alphaBlend;
theme.savePreference('winAlpha',htcpOpac);
}
else if(htcpAlpha==6)
{
htcpOpac = mainBack7.alphaBlend;
theme.savePreference('winAlpha',htcpOpac);
}
else if(htcpAlpha==7)
{
htcpOpac = mainBack7.alphaBlend;
theme.savePreference('winAlpha',htcpOpac);
}
}
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.itemPlayingBackgroundColor = "#00539C";
// playlist1.itemPlayingColor = "#000000";
}
else if(htcpAlpha==2)
{
blendFrameFast('pl',2,255);
blendFrameFast('pl',3,winColor);
plStatus = 1;
playlist1.itemPlayingBackgroundColor = "#27BA12";
// playlist1.itemPlayingColor = "#ffffff";
}
else if(htcpAlpha==3)
{
blendFrameFast('pl',2,255);
blendFrameFast('pl',3,255);
blendFrameFast('pl',4,winColor);
plStatus = 2;
playlist1.itemPlayingBackgroundColor = "#784378";
// playlist1.itemPlayingColor = "#ffffff";
}
else if(htcpAlpha==4)
{
blendFrameFast('pl',3,255);
blendFrameFast('pl',4,255);
blendFrameFast('pl',5,winColor);
plStatus = 3;
playlist1.itemPlayingBackgroundColor = "#EF87D6";
// playlist1.itemPlayingColor = "#ffffff";
}
else if(htcpAlpha==5)
{
blendFrameFast('pl',4,255);
blendFrameFast('pl',5,255);
blendFrameFast('pl',6,winColor);
plStatus = 4;
playlist1.itemPlayingBackgroundColor = "#BF350D";
playlist1.itemPlayingColor = "#ffffff";
}
else if(htcpAlpha==6)
{
blendFrameFast('pl',5,255);
blendFrameFast('pl',6,255);
blendFrameFast('pl',7,winColor);
plStatus = 5;
playlist1.itemPlayingBackgroundColor = "#F2E000";
playlist1.itemPlayingColor = "#333333";
}
else if(htcpAlpha==7)
{
blendFrameFast('pl',7,0);
plStatus = 6;
playlist1.itemPlayingBackgroundColor = "#00539C";
playlist1.itemPlayingColor = "#ffffff";
}
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.itemPlayingBackgroundColor = "#00539C";
// playlist1.itemPlayingColor = "#ffffff";
}
else if(htcpAlpha==2&&plStatus==1)
{
blendFrameFast('pl',2,255);
blendFrameSlow('pl',3,255,winTimer);
plStatus++;
playlist1.itemPlayingBackgroundColor = "#27BA12";
// playlist1.itemPlayingColor = "#333333";
}
else if(htcpAlpha==3&&plStatus==2)
{
blendFrameFast('pl',3,255);
blendFrameSlow('pl',4,255,winTimer);
plStatus++;
playlist1.itemPlayingBackgroundColor = "#A864A8";
// playlist1.itemPlayingColor = "#ffffff";
}
else if(htcpAlpha==4&&plStatus==3)
{
blendFrameFast('pl',4,255);
blendFrameSlow('pl',5,255,winTimer);
plStatus++;
playlist1.itemPlayingBackgroundColor = "#EF87D6";
// playlist1.itemPlayingColor = "#ffffff";
}
else if(htcpAlpha==5&&plStatus==4)
{
blendFrameFast('pl',5,255);
blendFrameSlow('pl',6,255,winTimer);
plStatus++;
playlist1.itemPlayingBackgroundColor = "#BF350D";
playlist1.itemPlayingColor = "#ffffff";
}
else if(htcpAlpha==6&&plStatus==5)
{
blendFrameFast('pl',6,255);
blendFrameSlow('pl',7,255,winTimer);
plStatus++;
playlist1.itemPlayingBackgroundColor = "#F2E000";
playlist1.itemPlayingColor = "#333333";
}
else if(htcpAlpha==7&&plStatus==6)
{
blendFrameSlow('pl',7,0,winTimer);
plStatus = 0;
playlist1.itemPlayingBackgroundColor = "#00539C";
playlist1.itemPlayingColor = "#ffffff";
blendFrameFast('pl',2,0);
blendFrameFast('pl',3,0);
blendFrameFast('pl',4,0);
blendFrameFast('pl',5,0);
blendFrameFast('pl',6,0);
}
}
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',3,255);
blendFrameFast('vis',4,255);
blendFrameFast('vis',5,winColor);
visStatus = 3;
}
else if(htcpAlpha==5)
{
blendFrameFast('vis',4,255);
blendFrameFast('vis',5,255);
blendFrameFast('vis',6,winColor);
visStatus = 4;
}
else if(htcpAlpha==6)
{
blendFrameFast('vis',5,255);
blendFrameFast('vis',6,255);
blendFrameFast('vis',7,winColor);
visStatus = 5;
}
else if(htcpAlpha==7)
{
blendFrameFast('vis',7,0);
visStatus = 6;
}
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)
{
blendFrameFast('vis',4,255);
blendFrameSlow('vis',5,255,winTimer);
visStatus++;
}
else if(htcpAlpha==5&&visStatus==4)
{
blendFrameFast('vis',5,255);
blendFrameSlow('vis',6,255,winTimer);
visStatus++;
}
else if(htcpAlpha==6&&visStatus==5)
{
blendFrameFast('vis',6,255);
blendFrameSlow('vis',7,255,winTimer);
visStatus++;
}
else if(htcpAlpha==7&&visStatus==6)
{
blendFrameSlow('vis',7,0,winTimer);
visStatus = 0;
blendFrameFast('vis',2,0);
blendFrameFast('vis',3,0);
blendFrameFast('vis',4,0);
blendFrameFast('vis',5,0);
blendFrameFast('vis',6,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);
eqStatus = 0;
}
else if(htcpAlpha==2)
{
blendFrameFast('eq',2,255);
blendFrameFast('eq',3,winColor);
eqStatus = 1;
}
else if(htcpAlpha==3)
{
blendFrameFast('eq',2,255);
blendFrameFast('eq',3,255);
blendFrameFast('eq',4,winColor);
eqStatus = 2;
}
else if(htcpAlpha==4)
{
blendFrameFast('eq',3,255);
blendFrameFast('eq',4,255);
blendFrameFast('eq',5,winColor);
eqStatus = 3;
}
else if(htcpAlpha==5)
{
blendFrameFast('eq',4,255);
blendFrameFast('eq',5,255);
blendFrameFast('eq',6,winColor);
eqStatus = 4;
}
else if(htcpAlpha==6)
{
blendFrameFast('eq',5,255);
blendFrameFast('eq',6,255);
blendFrameFast('eq',7,winColor);
eqStatus = 5;
}
else if(htcpAlpha==7)
{
blendFrameFast('eq',7,0);
eqStatus = 6;
}
htcpEq();
}
function htcpEq()
{
var winTimer = theme.loadPreference('htcpTimer');
var htcpAlpha = theme.loadPreference('htcpID');
if(htcpAlpha==1&&eqStatus==0)
{
blendFrameSlow('eq',2,255,winTimer);
eqStatus++;
}
else if(htcpAlpha==2&&eqStatus==1)
{
blendFrameFast('eq',2,255);
blendFrameSlow('eq',3,255,winTimer);
eqStatus++;
}
else if(htcpAlpha==3&&eqStatus==2)
{
blendFrameFast('eq',3,255);
blendFrameSlow('eq',4,255,winTimer);
eqStatus++;
}
else if(htcpAlpha==4&&eqStatus==3)
{
blendFrameFast('eq',4,255);
blendFrameSlow('eq',5,255,winTimer);
eqStatus++;
}
else if(htcpAlpha==5&&eqStatus==4)
{
blendFrameFast('eq',5,255);
blendFrameSlow('eq',6,255,winTimer);
eqStatus++;
}
else if(htcpAlpha==6&&eqStatus==5)
{
blendFrameFast('eq',6,255);
blendFrameSlow('eq',7,255,winTimer);
eqStatus++;
}
else if(htcpAlpha==7&&eqStatus==6)
{
blendFrameSlow('eq',7,0,winTimer);
eqStatus = 0;
blendFrameFast('eq',2,0);
blendFrameFast('eq',3,0);
blendFrameFast('eq',4,0);
blendFrameFast('eq',5,0);
blendFrameFast('eq',6,0);
}
}
var infoStatus = 1;
function htcpStartupInfo()
{
var htcpAlpha = theme.loadPreference('htcpID');
//var winColor = theme.loadPreference('winAlpha');
var winColor = 255
if(htcpAlpha==1)
{
blendFrameFast('info',2,winColor);
infoStatus = 0;
}
else if(htcpAlpha==2)
{
blendFrameFast('info',2,255);
blendFrameFast('info',3,winColor);
infoStatus = 1;
}
else if(htcpAlpha==3)
{
blendFrameFast('info',2,255);
blendFrameFast('info',3,255);
blendFrameFast('info',4,winColor);
infoStatus = 2;
}
else if(htcpAlpha==4)
{
blendFrameFast('info',3,255);
blendFrameFast('info',4,255);
blendFrameFast('info',5,winColor);
infoStatus = 3;
}
else if(htcpAlpha==5)
{
blendFrameFast('info',4,255);
blendFrameFast('info',5,255);
blendFrameFast('info',6,winColor);
infoStatus = 4;
}
else if(htcpAlpha==6)
{
blendFrameFast('info',5,255);
blendFrameFast('info',6,255);
blendFrameFast('info',7,winColor);
infoStatus = 5;
}
else if(htcpAlpha==7)
{
blendFrameFast('info',7,0);
infoStatus = 6;
}
htcpInfo();
}
function htcpInfo()
{
var winTimer = theme.loadPreference('htcpTimer');
var htcpAlpha = theme.loadPreference('htcpID');
if(htcpAlpha==1&&infoStatus==0)
{
blendFrameSlow('info',2,255,winTimer);
infoStatus++;
}
else if(htcpAlpha==2&&infoStatus==1)
{
blendFrameFast('info',2,255);
blendFrameSlow('info',3,255,winTimer);
infoStatus++;
}
else if(htcpAlpha==3&&infoStatus==2)
{
blendFrameFast('info',3,255);
blendFrameSlow('info',4,255,winTimer);
infoStatus++;
}
else if(htcpAlpha==4&&infoStatus==3)
{
blendFrameFast('info',4,255);
blendFrameSlow('info',5,255,winTimer);
infoStatus++;
}
else if(htcpAlpha==5&&infoStatus==4)
{
blendFrameFast('info',5,255);
blendFrameSlow('info',6,255,winTimer);
infoStatus++;
}
else if(htcpAlpha==6&&infoStatus==5)
{
blendFrameFast('info',6,255);
blendFrameSlow('info',7,255,winTimer);
infoStatus++;
}
else if(htcpAlpha==7&&infoStatus==6)
{
blendFrameSlow('info',7,0,winTimer);
infoStatus = 0;
blendFrameFast('info',2,0);
blendFrameFast('info',3,0);
blendFrameFast('info',4,0);
blendFrameFast('info',5,0);
blendFrameFast('info',6,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);
vidResize2.alphaBlend = 255;
vidStatus = 0;
}
else if(htcpAlpha==2)
{
blendFrameFast('vid',2,255);
blendFrameFast('vid',3,winColor);
vidResize2.alphaBlend = 255;
vidResize3.alphaBlend = 255;
vidStatus = 1;
}
else if(htcpAlpha==3)
{
blendFrameFast('vid',2,255);
blendFrameFast('vid',3,255);
blendFrameFast('vid',4,winColor);
vidResize3.alphaBlend = 255;
vidResize4.alphaBlend = 255;
vidStatus = 2;
}
else if(htcpAlpha==4)
{
blendFrameFast('vid',3,255);
blendFrameFast('vid',4,255);
blendFrameFast('vid',5,winColor);
vidResize4.alphaBlend = 255;
vidResize5.alphaBlend = 255;
vidStatus = 3;
}
else if(htcpAlpha==5)
{
blendFrameFast('vid',4,255);
blendFrameFast('vid',5,255);
blendFrameFast('vid',6,winColor);
vidResize5.alphaBlend = 255;
vidResize6.alphaBlend = 255;
vidStatus = 4;
}
else if(htcpAlpha==6)
{
blendFrameFast('vid',5,255);
blendFrameFast('vid',6,255);
blendFrameFast('vid',7,winColor);
vidResize6.alphaBlend = 255;
vidResize7.alphaBlend = 255;
vidStatus = 5;
}
else if(htcpAlpha==7)
{
blendFrameFast('vid',7,0);
vidStatus = 6;
}
htcpVid();
}
function htcpVid()
{
var winTimer = theme.loadPreference('htcpTimer');
var htcpAlpha = theme.loadPreference('htcpID');
if(htcpAlpha==1&&vidStatus==0)
{
blendFrameSlow('vid',2,255,winTimer);
vidResize2.alphaBlendTo(255,winTimer);
vidStatus++;
}
else if(htcpAlpha==2&&vidStatus==1)
{
blendFrameFast('vid',2,255);
blendFrameSlow('vid',3,255,winTimer);
vidResize3.alphaBlendTo(255,winTimer);
vidStatus++;
}
else if(htcpAlpha==3&&vidStatus==2)
{
blendFrameFast('vid',3,255);
blendFrameSlow('vid',4,255,winTimer);
vidResize4.alphaBlendTo(255,winTimer);
vidStatus++;
}
else if(htcpAlpha==4&&vidStatus==3)
{
blendFrameFast('vid',4,255);
blendFrameSlow('vid',5,255,winTimer);
vidResize5.alphaBlendTo(255,winTimer);
vidStatus++;
}
else if(htcpAlpha==5&&vidStatus==4)
{
blendFrameFast('vid',5,255);
blendFrameSlow('vid',6,255,winTimer);
vidResize6.alphaBlendTo(255,winTimer);
vidStatus++;
}
else if(htcpAlpha==6&&vidStatus==5)
{
blendFrameFast('vid',6,255);
blendFrameSlow('vid',7,255,winTimer);
vidResize7.alphaBlendTo(255,winTimer);
vidStatus++;
}
else if(htcpAlpha==7&&vidStatus==6)
{
blendFrameSlow('vid',7,0,winTimer);
vidResize7.alphaBlendTo(0,winTimer);
vidStatus = 0;
blendFrameFast('vid',2,0);
blendFrameFast('vid',3,0);
blendFrameFast('vid',4,0);
blendFrameFast('vid',5,0);
blendFrameFast('vid',6,0);
vidResize2.alphaBlend = 0;
vidResize3.alphaBlend = 0;
vidResize4.alphaBlend = 0;
vidResize5.alphaBlend = 0;
vidResize6.alphaBlend = 0;
}
}
// info settings
function loadInfoPrefs(){
theme.savePreference( 'infoViewer', "true" );
view.width = view.minWidth;
view.height = view.minHeight;
htcpStartupInfo();
checkSoundPref('imode.wav');
}
// nav menu
var infoGo = 0;
function showInfo(menu,nav,infoGo){
infoMenuBack.visible = menu;
infoNavSub.visible = infoNavSub2.visible = nav;
menuBackButtons.visible = false;
//menuBack.visible = !menu;
menuBack.backgroundImage = "c_back.jpg";
switch(infoGo){
case 0:
//infoSub.backgroundImage = "";
// menuBack.visible = true;
menuBackButtons.visible = true;
infoSub.alphaBlendTo(0,500);
link1.visible = false;
break;
case 1:
infoMode = 1; // about the game
navGo = 1;
navLimit = 1;
infoNavNext();
break;
case 2:
infoMode = 2; // story
navGo = 1;
navLimit = 4;
infoNavNext();
break;
case 3:
infoMode = 3; // screenshots
navGo = 1;
navLimit = 9;
//link1.visible = true;
infoNavNext();
break;
case 4:
infoMode = 4; // links
navGo = 1;
navLimit = 1;
//link1.visible = true;
infoNavNext();
break;
}
}
navGo = 1;
function infoNavNext(){
infoSub.alphaBlend = 50;
infoSub.backgroundImage = "c_sub_" + infoMode + "_" + navGo + ".jpg";
navCheck();
link1.visible = false;
}
function infoNavPrev(){
infoSub.alphaBlend = 50;
infoSub.backgroundImage = "c_sub_" + infoMode + "_" + navGo + ".jpg";
navCheck();
link1.visible = false;
}
function navCheck(){
if(navGo==1){
navPrev.enabled = false;
navNext.enabled = true;
}else if(navGo==navLimit && infoMode==infoMode){ // enable / disable sections
navNext.enabled = false;
navPrev.enabled = true;
}else{
navNext.enabled = true;
navPrev.enabled = true;
}
infoSub.alphaBlendTo(255,400);
}
function endAlphaBlend(){
if(infoMode==4&&navGo==1&&infoSub.alphaBlend==255)link1.visible = true;
/* if(infoMode==3&&navGo==1&&infoSub.alphaBlend==255)link2.visible = true;
if(infoMode==4&&navGo==1&&infoSub.alphaBlend==255)link3.visible = true;
*/
if(infoSub.alphaBlend==0)return;
menuBack.backgroundImage = infoSub.backgroundImage;
}