Frame 1
this.stop();
var testing = false;
var squirtDone = true;
noRadio = "true";
var flashPlayerData = new Object();
flashPlayerData.operatingSystem = System.capabilities.os;
flashPlayerData.screenRezX = System.capabilities.screenResolutionX;
flashPlayerData.screenRezY = System.capabilities.screenResolutionY;
flashPlayerData.versionNumber = System.capabilities.version;
var currentUserId = 0;
var buttonChannel = "default";
var theDoor = (doorBase + doorPath);
_root.currentDoor = null;
var menuItemArray = new Array();
var doorsArray = new Array();
var weightedDoorArray = new Array();
var commercialsArray = new Array();
var playerTrackArray = new Array();
var randomCommercials = false;
var randomDoors = false;
var commercialPlayType = false;
var imagesDir = "images/";
var menuDir = (imagesDir + "menu/");
var channelsDir = "channels/";
var xmlDir = "xml/";
var bgPhotoDir = (imagesDir + "012104/");
var imagesMenuDir = (imagesDir + "menu/");
var doorDir = "current/advertising/";
var adDir = "current/advertising/";
var pathToDoor = null;
var pathToAd = null;
var doorTrackingId = null;
var doorNamr = null;
var adTrackingId = null;
var adName = null;
var commercialFinishTrackingId = "442";
var commercialSkipTrackingId = "45";
var commercialOverId = "456";
var initialEnterSiteTrackingId = "455";
var genericLandingPageId = "150";
var isFirstChannel = true;
var playCommercial = true;
var isFirstButton = true;
var stageArchiveDir = "../../stage-www/";
var sectionToLoad = "";
var currentPlayList = null;
var currentSong = null;
var numSongs = null;
var currentTab = null;
var firstTime = true;
var currentHeavyCover = null;
var currentVideo = null;
var currentHeavySection = null;
var trackIDOffset = 38;
var section2ChannelNumber = new Array();
var channelGetVariableSet = false;
var systemHeight = 778;
_root.loadBarWidth = 477;
_root.bumpersPerSession;
_root.bumperFrequency;
_root.bumperViewCount = 0;
_root.videoCount = 0;
contentBlocker._alpha = 0;
contentBlocker.useHandCursor = false;
contentBlocker.onPress = function () {
};
if (testing) {
var doorDir = "current/advertising/";
var adDir = "current/advertising/";
} else {
getURL ("javascript:hideLoader();");
}
function playInterstitial(time) {
var _local2 = getDoorFromSection(_root.currentHeavySection);
getRandomDoor(_local2);
_root.currentDoor.closeDoors();
trackThis(doorTrackingId, _root.currentUserId, "imp");
_root.track3rdParty("heavy.interstitial." + _local2);
clearInterval(_root.timedDoorInterval);
_root.timedDoorInterval = setInterval(openInterstitalDoors, time);
}
function loadSection(theSection, id, directDoorName) {
if (_root.transitionState == "CLOSED") {
return(undefined);
}
hideCommercial();
toggleRadio("close");
_root.topBar.URLText = "";
var _local3 = id;
if (isFirstChannel) {
isFirstChannel = false;
} else if (directDoorName != null) {
getRandomDoor(directDoorName);
} else {
var _local5 = getDoorFromSection(theSection);
getRandomDoor(_local5);
}
showTabs();
trace(theSection);
hideBackButton();
tabName = "tabButton" + _root.currentTab;
if (tabs[tabName].state == "OPEN") {
tabs[tabName].state = "CLOSED";
_root.moveTab(tabs[tabName], 618);
}
trackThis(doorTrackingId, _root.currentUserId, "imp");
_root.track3rdParty("heavy.interstitial." + _root.doorName);
if (_local3 == null) {
var _local4 = getTrackingIdFromSection(theSection);
_local3 = _local4.trackingId;
channelName = _local4.channelName;
track3rdParty(("heavy.channel." + channelName) + ".view");
}
trackThis(_local3, _root.currentUserId, "imp");
_root.currentHeavySection = theSection;
_root.sectionToLoad = theSection;
_root.currentDoor.closeDoors();
}
function loadVideo(videoPath, forcePath, fullscreen, nightyHack, doorName, videoW, videoH, bumperCategory) {
_root.nightHack = "false";
if (nightyHack != null) {
_root.nightHack = nightyHack;
}
if (bumperCategory != null) {
_root.bumperCategory = bumperCategory;
} else {
_root.bumperCategory = "PG";
}
_root.isFullscreen = "false";
if (fullscreen == "true") {
_root.isFullscreen = "true";
_root.hideControls();
}
if ((videoW != null) && (videoH != null)) {
_root.videoWidth = videoW;
_root.videoHeight = videoH;
} else {
_root.videoWidth = 640;
_root.videoHeight = 480;
}
backButton.channelPath = _root.currentHeavySection;
if (_root.currentHeavySection == null) {
backButton.channelPath = _root.currentHeavyCover;
}
var _local5 = getTrackingIdFromSection(_root.currentHeavySection);
var _local4 = _local5.channelName;
if (typeof(videoPath) == "string") {
var _local7 = videoPath.substr(videoPath.lastIndexOf("/") + 1);
_root.track3rdParty((("heavy.channel." + _local4) + ".video.") + _local7);
} else {
_root.track3rdParty(("heavy.channel." + _local4) + ".video.playAll");
_root.currentVideo = new Array();
var _local2 = 0;
while (_local2 < videoPath.length) {
_root.currentVideo.push(videoPath[_local2]);
_local2++;
}
}
tabName = "tabButton" + _root.currentTab;
if (tabs[tabName].state == "OPEN") {
tabs[tabName].state = "CLOSED";
_root.moveTab(tabs[tabName], 618);
}
pausePlayer();
var _local8 = Number(getVersion().slice(3, 5));
if (forcePath != "true") {
if (_local8 > 6) {
if (typeof(videoPath) == "string") {
_root.currentVideo = videoPath + ".flv";
}
loadSection("players/FLVPlayer.swf", null, doorName);
} else {
if (typeof(videoPath) == "string") {
_root.currentVideo = videoPath + ".swf";
}
loadSection("players/SWFPlayer.swf", null, doorName);
}
} else {
_root.currentVideo = videoPath;
loadSection("players/SWFPlayer.swf", null, doorName);
}
showBackbutton();
_root.videoCount++;
}
function hideControls() {
_root.moveMovie(menu, 0.3, menu._x, 771);
_root.tabButton1._visible = false;
_root.tabButton1._alpha = 0;
_root.radio._visible = false;
_root.radio._alpha = 0;
}
function showControls() {
_root.moveMovie(menu, 0.4, menu._x, systemHeight - 136);
_root.fade(_root.tabButton1, 100);
_root.fade(_root.radio, 100);
}
function flashURL() {
trace("flashme");
dude = new Sound();
dude.attachSound("dudeSound");
dude.setVolume(100);
dude.start();
topBar.flasher.play();
}
function moveMovie(target, speed, x_stop_pos, y_stop_pos) {
target.createEmptyMovieClip("mover", 15001);
target.mover.onEnterFrame = function () {
x_increment = (x_stop_pos - this._parent._x) * speed;
y_increment = (y_stop_pos - this._parent._y) * speed;
if ((Math.abs(x_increment) < 0.05) && (Math.abs(y_increment) < 0.05)) {
this._parent._x = x_stop_pos;
this._parent._y = y_stop_pos;
this.removeMovieClip();
} else {
this._parent._x = this._parent._x + x_increment;
this._parent._y = this._parent._y + y_increment;
}
};
}
function fade(target, targetAlpha) {
if (targetAlpha != 0) {
target._visible = true;
}
target.createEmptyMovieClip("fader", 15002);
target.fader.onEnterFrame = function () {
increment = (targetAlpha - this._parent._alpha) * 0.3;
if (Math.abs(Math.floor(increment)) < 0.5) {
this._parent._alpha = targetAlpha;
if (targetAlpha == 0) {
this._parent._visible = false;
}
this.removeMovieClip();
} else {
this._parent._alpha = this._parent._alpha + increment;
}
};
}
function getDayOfWeek(number) {
var _local1 = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
return(_local1[number].toUpperCase());
}
function getMonthOfYear(number) {
var _local1 = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
return(_local1[number].toUpperCase());
}
function getRandomDoor(doorName) {
if ((doorName == "random") || (doorName == null)) {
if (_root.randomDoors == "true") {
var _local6 = Math.ceil(Math.random() * 100) % weightedDoorArray.length;
var _local5 = weightedDoorArray[_local6];
_root.pathToDoor = doorDir + doorsArray[_local5].path;
_root.doorTrackingId = doorsArray[_local5].trackingId;
_root.doorName = doorsArray[_local5].name;
_root.currentDoor = transition["door_" + _local5];
} else {
_root.pathToDoor = doorDir + doorsArray[0].path;
_root.doorTrackingId = doorsArray[0].trackingId;
_root.doorName = doorsArray[0].name;
_root.currentDoor = transition.door_0;
}
} else {
var _local2 = 0;
while (_local2 < doorsArray.length) {
if (doorsArray[_local2].name == doorName) {
_root.pathToDoor = doorDir + doorsArray[_local2].path;
_root.doorTrackingId = doorsArray[_local2].trackingId;
_root.doorName = doorsArray[_local2].name;
_root.currentDoor = transition["door_" + _local2];
}
_local2++;
}
}
var _local3 = 0;
while (_local3 < doorsArray.length) {
transition["door_" + _local3]._visible = false;
_local3++;
}
_root.currentDoor._visible = true;
}
function getDoorFromSection(theSection) {
theSection = theSection.substr(theSection.lastIndexOf("/") + 1);
var _local2 = "random";
var _local1 = 0;
while (_local1 < menuItemArray.length) {
if (menuItemArray[_local1].object_path == theSection) {
_local2 = menuItemArray[_local1].doorName;
}
_local1++;
}
return(_local2);
}
function trackThis(trackingId, userId, type) {
var _local1 = new LoadVars();
_local1.id = trackingId;
_local1.uid = userId;
_local1.type = type;
trace((((("TRACKING: tracking id: " + trackingId) + " user id: ") + userId) + " type: ") + type);
_local1.load((("http://www.heavy.com/trackUsers.php?" + _local1) + "&rnd=") + Math.ceil(Math.random() * 100000000));
}
function track3rdParty(trackString, type) {
CID = "us_us-heavy_flash";
if ((type != null) && (type == "click")) {
CID = "us_us-heavy-click_flash";
}
du_start = getTimer();
flashaction = trackString;
loadMovieNum ((((("http://server-us.imrworldwide.com/cgi-bin/count?cid=" add CID) add "&url=") add flashaction) add "&rnd=") add Math.ceil(Math.random() * 100000000), 100);
trace(flashaction);
}
function getTrackingIdFromSection(theSection, state) {
theSection = theSection.substr(theSection.lastIndexOf("/") + 1);
if (state == "landing") {
var _local4 = _root.genericLandingPageId;
var _local2 = 0;
while (_local2 < menuItemArray.length) {
if (menuItemArray[_local2].object_path == theSection) {
_local4 = menuItemArray[_local2].landingId;
theSectionName = menuItemArray[_local2].channelName;
}
_local2++;
}
} else {
var _local2 = 0;
while (_local2 < menuItemArray.length) {
if (menuItemArray[_local2].object_path == theSection) {
var _local4 = menuItemArray[_local2].trackingId;
theSectionName = menuItemArray[_local2].channelName;
}
_local2++;
}
}
if (theSectionName == null) {
theSectionName = theSection;
}
var _local5 = new Object();
_local5.trackingId = _local4;
_local5.channelName = theSectionName;
return(_local5);
}
function startHeavyLoader() {
mainLoader.loadBar._width = 0;
this.createEmptyMovieClip("loaderClip", 10121);
loaderClip.onEnterFrame = function () {
var _local4 = 0;
var _local5 = 0;
var _local3 = 0;
while (_local3 < _root.doorsArray.length) {
_local4 = _local4 + _root.transition["door_" + _local3].getBytesTotal();
_local5 = _local5 + _root.transition["door_" + _local3].getBytesLoaded();
if (_root.transition["door_" + _local3].getBytesLoaded() > 10) {
_root.mainLoader.loadText = ((("LOADING MEDIA (" + (_local3 + 1)) + " of ") + _root.doorsArray.length) + ")";
}
_local3++;
}
var _local6 = Math.ceil((_local5 / _local4) * 100);
var _local8 = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
var _local7 = Math.ceil(((_root.getBytesLoaded() + _local5) / (_root.getBytesTotal() + _local4)) * 100);
mainLoader.loadBar._width = (mainLoader.loadBarFrame._width * _local7) / 100;
if (((_local8 == 100) && (_local6 == 100)) && (_root.currentDoor.getBytesTotal() > 10)) {
_root.loadSite();
_root.fade(mainLoader, 0);
_root.drawMenu();
_root.drawTabs();
_root.fade(_root.radio, 100);
_root.fade(_root.tabButton1, 100);
if ((_root.commercialPlayType == "before") && (_root.noCommercial != "true")) {
_root.loadCommercial();
} else {
_root.letsRockThis();
}
this.removeMovieClip();
}
};
}
function letsRockThis() {
tracks.trackPane._visible = 0;
createTrackListing(currentPlayList);
if (channel != null) {
_root.channelGetVariableSet = true;
if (_root.buttonChannel != "default") {
section = _root.buttonChannel;
_root.buttonChannel = "default";
} else if (channel == "barney") {
section = channelsDir + channel;
} else {
section = (channelsDir + channel) + ".swf";
}
var _local5 = _root.channel + ".swf";
trace(_local5);
var _local3 = getDoorFromSection(_local5);
getRandomDoor(_local3);
var _local2 = getTrackingIdFromSection(section, "landing");
var _local6 = _local2.trackingId;
var _local4 = _local2.channelName;
_root.track3rdParty(("heavy.landing." + _local4) + ".view");
_root.loadSection(section, _local6);
} else if (channelz != null) {
if (_root.buttonChannel != "default") {
section = _root.buttonChannel;
_root.buttonChannel = "default";
} else {
section = (channelsDir + channelz) + ".swf";
}
var _local5 = _root.channel + ".swf";
var _local3 = getDoorFromSection(_local5);
getRandomDoor(_local3);
var _local2 = getTrackingIdFromSection(section, "landing");
var _local6 = _local2.trackingId;
var _local4 = _local2.channelName;
_root.track3rdParty(("heavy.landing." + _local4) + ".view");
_root.loadSection(section, _local6);
} else if (videoPath != null) {
_root.track3rdParty(("heavy.landing.video." + videoPath) + ".view");
_root.trackThis("467", _root.currentUserId, "imp");
loadVideo(videoPath);
} else {
if (_root.buttonChannel != "default") {
section = _root.buttonChannel;
_root.buttonChannel = "default";
}
var _local2 = getTrackingIdFromSection(section, "landing");
var _local6 = _local2.trackingId;
var _local4 = _local2.channelName;
_root.track3rdParty(("heavy.landing." + _local4) + ".view");
_root.loadSection(section, _local6);
}
}
function loadCommercial() {
function fadeForCommercial(target) {
target.createEmptyMovieClip("fader", 15002);
target.fader.onEnterFrame = function () {
increment = (85 - this._parent._alpha) * 0.5;
if (Math.abs(Math.floor(increment)) < 0.5) {
this._parent._alpha = 85;
playTheCommercial();
this.removeMovieClip();
} else {
this._parent._alpha = this._parent._alpha + increment;
}
};
}
function playTheCommercial() {
var _local2 = false;
if (_root.adPixelPath != null) {
_root.createEmptyMovieClip("adPixelTracker", 12667);
_root.adPixelTracker.loadMovie(_root.adPixelPath + Number(Math.random()));
}
_root.trackThis(_root.adTrackingId, _root.currentUserId, "imp");
_root.track3rdParty("heavy.commercial." + _root.adName);
if (_root.pathToAd != null) {
if (_root.flashVersion >= "7") {
_root.videoLoader.loadMovie("entryFLVPlayer.swf", "POST");
} else if ((_root.flashVersion == 6) && (_root.flashPointVersion > "50")) {
_root.videoLoader.loadMovie("entrySWFPlayer.swf", "POST");
}
}
}
if (_root.noCommercial == "true") {
return(undefined);
}
if (_root.videoPath != null) {
clearInterval(_root.commercialInterval);
_root.videoPath = null;
_root.playCommercial = true;
return(undefined);
}
_root.stateOfHeavy = "videointro";
clearInterval(_root.commercialInterval);
_root.contentBlocker._visible = true;
fadeForCommercial(contentBlocker);
contentBlocker.enabled = true;
}
function playSong(songNum) {
_root.radio.readyState = "false";
_root.radio.playing = false;
if (songNum == 0) {
songNum = _root.numSongs;
} else if (songNum == (_root.numSongs + 1)) {
songNum = 1;
}
var _local3 = "trackLine_" + songNum;
var _local4 = _root.playerTrackArray[songNum].file_src_name;
unHighlightTracks();
_root.radio.scrollContent[_local3].gotoAndStop(2);
_root.radio.EQ.gotoAndPlay(2);
_root.radio.playButton.gotoAndStop("pause");
_root.currentSong = songNum;
_root.radio.trackPane.vPosition = 100;
_root.sndtrack.stop();
_root.sndtrack.loadSound(_local4, true);
_root.sndtrack.start();
_root.radio.playing = true;
_root.track3rdParty(("heavy.radio.track." + _root.playerTrackArray[songNum].track) + ".play");
}
function pausePlayer() {
_root.radio.playing = false;
_root.radio.savedSpot = _root.sndtrack.position;
_root.sndtrack.stop();
_root.radio.EQ.gotoAndStop(1);
_root.radio.playButton.gotoAndStop("play");
}
function toggleRadio(toggleDirection) {
var speed = 0.3;
if (toggleDirection == "open") {
var y_stop_pos = 384;
_root.radioIsOpen = true;
_root.track3rdParty("heavy.radio.button.open", "click");
} else {
var y_stop_pos = 616;
_root.radioIsOpen = false;
_root.toggleRadioSlider("close");
}
radio.createEmptyMovieClip("radioMover", 15001);
radio.radioMover.onEnterFrame = function () {
y_increment = (y_stop_pos - this._parent._y) * speed;
if (Math.abs(y_increment) < 0.05) {
this._parent._y = y_stop_pos;
if (toggleDirection == "open") {
_root.toggleRadioSlider("open");
}
this.removeMovieClip();
} else {
this._parent._y = this._parent._y + y_increment;
}
};
}
function toggleRadioSlider(toggleDirection) {
if (toggleDirection == "open") {
radio.slider.isOpen = true;
_root.moveMovie(radio.slider, 0.3, 110, radio.slider._y);
} else {
radio.slider.isOpen = false;
_root.moveMovie(radio.slider, 0.3, -208, radio.slider._y);
}
}
function slideTabThingy(slideDirection) {
if (slideDirection == "open") {
_root.moveMovie(_root.tabButton1.faqButton, 0.2, 133, _root.tabButton1.faqButton._y);
} else {
_root.moveMovie(_root.tabButton1.faqButton, 0.2, 173, _root.tabButton1.faqButton._y);
}
}
function createTrackListing(trackList) {
var _local5 = (_root.xmlDir + "sumosonic/") + trackList;
var _local4 = new XML();
_root.track3rdParty("heavy.radio.playlst.sumosonic" + _root.sumosonicNumber);
loadSumosonicSkin();
_local4.ignoreWhite = true;
_local4.load(_local5);
_local4.onLoad = function (success) {
if (success) {
var _local3 = 1;
while (_local3 <= this.childNodes[0].childNodes.length) {
_root.playerTrackArray[_local3] = new Object();
_root.playerTrackArray[_local3].number = _local3;
_root.playerTrackArray[_local3].file_src_name = this.childNodes[0].childNodes[_local3 - 1].attributes.file_src_name;
_root.playerTrackArray[_local3].artist = (String(_local3) + ". ") + this.childNodes[0].childNodes[_local3 - 1].attributes.artist_name.toUpperCase();
_root.playerTrackArray[_local3].track = this.childNodes[0].childNodes[_local3 - 1].attributes.song_title.toUpperCase();
_root.playerTrackArray[_local3].artistLink = this.childNodes[0].childNodes[_local3 - 1].attributes.artist_url;
_root.playerTrackArray[_local3].labelLink = this.childNodes[0].childNodes[_local3 - 1].attributes.label_url;
_local3++;
}
populateTrackList(isFirst);
populatePlayList();
}
};
}
function populateTrackList() {
_root.radio.trackPane.setScrollContent("container");
_root.radio.scrollContent = _root.radio.trackPane.getScrollContent();
_root.pausePlayer();
var _local3 = 1;
while (_local3 < _root.playerTrackArray.length) {
_root.radio.scrollContent.attachMovie("trackLine", "trackLine_" + _local3, 2000 + _local3);
_root.radio.scrollContent["trackLine_" + _local3].trackText = (_root.playerTrackArray[_local3].artist + " - ") + _root.playerTrackArray[_local3].track;
_root.radio.scrollContent["trackLine_" + _local3].trackNumber = _root.playerTrackArray[_local3].number;
_root.radio.scrollContent["trackLine_" + _local3]._y = 0 + (25 * (_local3 - 1));
_root.radio.scrollContent["trackLine_" + _local3].onRollOver = function () {
this.gotoAndStop(2);
};
_root.radio.scrollContent["trackLine_" + _local3].onRollOut = function () {
if (this.trackNumber != _root.currentSong) {
this.gotoAndStop(1);
}
};
_root.radio.scrollContent["trackLine_" + _local3].onRelease = function () {
_root.playSong(this.trackNumber);
};
_local3++;
}
_root.radio.trackPane.refreshPane();
_root.numSongs = _local3 - 1;
theSongNumber = Math.ceil((_local3 - 1) * Math.random());
prepFirstSong(theSongNumber);
_root.initalizePlayer();
if (_root.noRadio == "true") {
return(undefined);
}
if (_root.channelz != null) {
_root.playSong(_root.currentSong);
} else if (_root.noCommercial == "true") {
_root.playSong(_root.currentSong);
} else if ((_root.videoPath != null) || ((_root.pathToAd != null) && (channelz == null))) {
_root.pausePlayer();
}
}
function populatePlayList() {
var _local2 = _root.maxSumosonicNumber;
while (_local2 > 0) {
_root.radio.slider.sumosonicListHolder.attachMovie("sumosonicListItem", "sumosonic" + _local2, 3000 + _local2);
_root.radio.slider.sumosonicListHolder["sumosonic" + _local2]._y = 0 + (12 * (_root.maxSumosonicNumber - _local2));
_root.radio.slider.sumosonicListHolder["sumosonic" + _local2].playlistText = "SUMOSONIC" + _local2;
_local2--;
}
}
function loadSumosonicSkin() {
_root.radio.sumosonicSkin._alpha = 0;
_root.radio.sumosonicSkin.loadMovie(((_root.imagesDir + "sumosonicSkins/skin") + _root.sumosonicNumber) + ".jpg");
_root.radio.createEmptyMovieClip("skinLoader", 1200);
_root.radio.skinLoader.onEnterFrame = function () {
if ((_root.radio.sumosonicSkin.getBytesLoaded() == _root.radio.sumosonicSkin.getBytesTotal()) && (_root.radio.sumosonicSkin.getBytesLoaded() > 10)) {
_root.fade(_root.radio.sumosonicSkin, 100);
this.removeMovieClip();
}
};
}
function prepFirstSong(songNum) {
_root.radio.readyState = "true";
_root.radio.playing = false;
var _local3 = "trackLine_" + songNum;
var _local4 = _root.playerTrackArray[songNum].file_src_name;
unHighlightTracks();
_root.radio.scrollContent[_local3].gotoAndStop(2);
_root.currentSong = songNum;
}
function unHighlightTracks() {
var _local2 = 1;
while (_local2 < _root.numSongs) {
_root.radio.scrollContent["trackLine_" + _local2].gotoAndStop(1);
_local2++;
}
}
function initalizePlayer() {
_root.sndtrack = new Sound();
_root.sndtrack.setVolume(75);
_root.sndtrack.onSoundComplete = function () {
_root.playSong(_root.currentSong + 1);
};
}
function msecToTime(msec) {
minutes = int(msec / 60000);
totalSeconds = int(msec / 1000);
actualSeconds = totalSeconds - (minutes * 60);
if (minutes < 10) {
minutes = "0" + minutes;
}
if (actualSeconds < 10) {
actualSeconds = "0" + actualSeconds;
}
return((minutes + ":") + actualSeconds);
}
function preloadAndTransition() {
_root.topBar.loadFlickerThing._visible = true;
_root.fade(_root.topBar.loadFlickerThing, 100);
_root.topBar.loadFlickerThing.gotoAndPlay(1);
_root.channelPh.loadMovie(_root.sectionToLoad);
_root.createEmptyMovieClip("thePreLoader", 13568);
thePreLoader.onEnterFrame = function () {
var _local4 = Math.floor(_root.channelPh.getBytesTotal() / 1000);
var _local6 = Math.floor(_root.channelPh.getBytesLoaded() / 1000);
var _local5 = _local6 / _local4;
if (!isNaN(Math.ceil(_local5 * 100))) {
_root.topBar.loaderText = Math.ceil(_local5 * 100) + "%";
}
if (((_local6 == _local4) && (_local4 != 0)) or (_root.channelPh.getBytesLoaded() == null)) {
_root.fade(_root.topBar.loadFlickerThing, 0);
_root.topBar.loaderText = "";
_root.currentDoor.openDoors();
var _local3 = _root.sectionToLoad.substring(_root.sectionToLoad.lastIndexOf("/") + 1);
_local3 = _local3.substring(0, _local3.indexOf("."));
_root.topBar.URLText = "http://www.heavy.com/index.php?channel=" + _local3;
_root.channelPh.gotoAndPlay(1);
if (_root.channelPh.btmtsJloFlag == true) {
_root.channelPh.gotoAndPlay(1);
}
if (_root.channelz != null) {
} else if (((_root.pathToAd != null) && (playCommercial)) && (_root.commercialPlayType == "after")) {
playCommercial = false;
clearInterval(_root.commercialInterval);
_root.commercialInterval = setInterval(_root.loadCommercial, 1000);
}
removeMovieClip(this);
}
};
}
function loadSite() {
trace("LOADING SITE");
_root.videoTracker.onEnterFrame = null;
_root.screen._x = -2000;
_root.screen._y = -2000;
_root.videoLoader.unloadMovie();
}
function openInterstitalDoors() {
clearInterval(_root.timedDoorInterval);
_root.currentDoor.openDoors();
}
function hideCommercial() {
_root.stateOfHeavy = "main";
fade(_root.contentBlocker, 0);
_root.videoTracker.onEnterFrame = null;
_root.videoLoader.unloadMovie();
}
function showBackbutton() {
backButton._visible = true;
var _local1 = backButton.channelPath.substring(backButton.channelPath.lastIndexOf("/"));
_local1 = _local1.substring(1, _local1.indexOf("."));
backButton.attachMovie(_local1 + "BackButton", "backButtonSkin", 10023);
if (backButton.backButtonSkin == null) {
backButton.attachMovie("genericBackButton", "backButtonSkin", 10023);
}
}
function hideBackButton() {
backButton.backButtonSkin.removeMovieClip();
backButton._visible = false;
}
function drawMenu() {
var _local9 = 110;
var _local3 = 0;
while ((_local3 < menuItemArray.length) && (_local3 < 11)) {
var _local4 = "menuButton" + _local3;
_root.menu.menuButton._alpha = 100;
_root.menu.menuButton.duplicateMovieClip(_local4, _local3);
if (menuItemArray[_local3].category == "archive") {
_root.menu[_local4].channelPath = menuItemArray[_local3].object_path;
} else {
_root.menu[_local4].channelPath = _root.channelsDir + menuItemArray[_local3].object_path;
}
_root.menu[_local4]._x = _local9 + ((_local3 - 1) * 88);
var _local6 = _root.imagesMenuDir + menuItemArray[_local3].image_path;
_root.menu[_local4].menuButtonPicture.loadMovie(_local6);
_root.menu[_local4].menuButtonText.text = menuItemArray[_local3].title;
if (menuItemArray[_local3].image_path_over != "") {
var _local5 = _root.imagesMenuDir + menuItemArray[_local3].image_path_over;
_root.menu[_local4].menuButtonPictureOver.loadMovie(_local5);
_root.menu[_local4].overState = true;
}
_root.menu[_local4].channelNumber = _local3;
_root.section2ChannelNumber[_root.menu[_local4].channelPath] = _local3 - 1;
_root.menu[_local4].onRollOver = function () {
this.gotoAndPlay(1);
if (this.overState) {
this.menuButtonPicture._visible = 0;
}
};
_root.menu[_local4].onRollOut = (_root.menu[_local4].onDragOut = function () {
if (this.overState) {
this.menuButtonPicture._visible = 1;
}
});
_root.menu[_local4].onPress = function () {
var _local3 = getTrackingIdFromSection(this.channelPath);
var _local4 = _local3.channelName;
_root.track3rdParty("heavy.menu.button." + _local4, "click");
channelPh.screen.closeFLV();
if (_root.stateOfHeavy == "videointro") {
_root.hideCommercial();
if (isHeavyFullscreen != null) {
} else if (isFirstButton) {
isFirstButton = false;
_root.track3rdParty("heavy.commercial.skipped", "click");
_root.track3rdParty("heavy.commercial.end");
_root.trackThis(_root.commercialSkipTrackingId, _root.currentUserId, "imp");
_root.trackThis(_root.commercialOverId, _root.currentUserId, "imp");
if (_root.commercialPlayType == "before") {
tracks.trackPane._visible = 0;
createTrackListing(currentPlayList);
}
if (_root.noRadio != "true") {
_root.playSong(_root.currentSong);
}
}
}
_root.loadSection(this.channelPath);
};
_local3++;
}
_root.menu.menuButton._visible = 0;
}
function drawTabs() {
var _local5 = 8;
var _local3 = new XML();
_local3.ignoreWhite = true;
var _local4 = xmlDir + "tabs.xml";
_local3.load(_local4);
_local3.onLoad = function (success) {
if (success) {
_root.tabContactContent = this.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.tabFAQContent = this.childNodes[0].childNodes[1].firstChild.nodeValue;
_root.tabButton1.tabContent = this.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.tabButton1.state = "CLOSED";
_root.tabButton1.bounce = false;
_root.tabButton1.hotSpot.onRollOver = function () {
if (this._parent.state == "CLOSED") {
this._parent.gotoAndPlay(1);
this._parent.bounce = true;
}
};
_root.tabButton1.hotSpot.onRollOut = function () {
this._parent.gotoAndStop(1);
this._parent.bounce = false;
};
_root.tabButton1.hotSpot.onPress = function () {
this._parent.tabContent.scroll = 0;
this._parent.tabContent = _root.tabContactContent;
if (this._parent.state == "CLOSED") {
this._parent.state = "OPEN";
_root.moveTab(this._parent, 380);
} else {
this._parent.state = "CLOSED";
_root.moveTab(this._parent, 618);
}
};
}
};
}
function moveTab(tab, finaly) {
var newy = 1;
tab.tabText = "GET INFO";
_root.slideTabThingy("close");
tab.attachMovie("actuator", "tabMover", 15481);
tab.tabMover.onEnterFrame = function () {
disty = (finaly - this._parent._y) * 0.2;
newy = newy * 0.3;
newy = newy + disty;
this._parent._y = this._parent._y + newy;
if (Math.abs(disty) < 0.05) {
if (finaly == 380) {
tab.tabText = "CONTACT";
_root.slideTabThingy("open");
}
removeMovieClip(this);
}
};
}
this.stop();
Stage.scaleMode = "exactFit";
if (!testing) {
getURL ("javascript:hideLoader();");
}
if (isHeavyFullscreen != null) {
topBar.fullScreenButton._visible = false;
}
_root.tabs._y = systemHeight - 160;
_root.menu._y = systemHeight - 136;
oldFlashAlert._visible = false;
radio._alpha = 0;
tabButton1._alpha = 0;
du_start = getTimer();
CID = "us_us-heavy_flash";
flashaction = "heavy.homepage.open";
loadMovieNum ((((("http://server-us.imrworldwide.com/cgi-bin/count?cid=" add CID) add "&url=") add flashaction) add "&rnd=") add Math.ceil(Math.random() * 100000000), 100);
trace(flashaction);
trackThis(_root.initialEnterSiteTrackingId, _root.currentUserId, "imp");
var flashVersion = flashPlayerData.versionNumber;
flashVersion = flashVersion.substring(flashVersion.indexOf(","), flashVersion.indexOf(",") - 1);
var flashPointVersion = flashPlayerData.versionNumber;
flashPointVersion = flashPointVersion.substring(flashPointVersion.indexOf(",") + 3, flashPointVersion.indexOf(",") + 5);
if ((flashVersion == "6") && (flashPointVersion < "50")) {
loadVariablesNum ("http://www.heavy.com/trackUsers.php?id=66&uid=0&type=imp", 1324);
_root.mainLoader._visible = false;
oldFlashAlert._alpha = 100;
oldFlashAlert._visible = true;
oldFlashAlert.onRelease = function () {
getURL ("http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
};
} else if (flashVersion >= "7") {
_root.trackThis("68", _root.currentUserId, "imp");
} else {
_root.trackThis("67", _root.currentUserId, "imp");
}
tracks.adBox.heavyGram.onPress = function () {
getURL ("mailto:heavygram@heavy.com?subject=I wanna Subscribe!");
};
xB.onRollOver = function () {
this.gotoAndStop(2);
};
xB.onRollOut = function () {
this.gotoAndStop(1);
};
xB.onPress = function () {
getURL ("javascript:window.close();");
};
backButton.onRelease = function () {
var _local3 = this.channelPath.substring(section.lastIndexOf("/") + 1);
_local3 = _local3.substring(0, _local3.indexOf("."));
_root.track3rdParty("heavy.button.backButton." + _local3, "click");
channelPh.screen.closeFLV();
showControls();
loadSection(this.channelPath);
};
this.stop();
var heavyXML = new XML();
heavyXML.ignoreWhite = true;
heavyXML.onLoad = function (success) {
if (success) {
currentPlayList = this.firstChild.childNodes[0].attributes.path;
_root.sumosonicNumber = _root.currentPlayList.substr(_root.currentPlayList.indexOf("sumosonic") + 9);
_root.sumosonicNumber = _root.sumosonicNumber.substr(0, _root.sumosonicNumber.indexOf("."));
_root.maxSumosonicNumber = _root.sumosonicNumber;
_root.bumpersPerSession = this.firstChild.childNodes[4].attributes.max_per_session;
_root.bumperFrequency = this.firstChild.childNodes[4].attributes.bumper_frequency;
randomCommercials = this.firstChild.childNodes[1].attributes.random;
commercialPlayType = this.firstChild.childNodes[1].attributes.type;
var _local8 = this.firstChild.childNodes[1].firstChild;
while (_local8 != null) {
var _local10 = new Object();
_local10.path = _local8.attributes.path;
_local10.name = _local8.attributes.name;
_local10.trackingId = _local8.attributes.trackingId;
_local10.trackPixel = _local8.attributes.trackPixelPath;
commercialsArray.push(_local10);
_local8 = _local8.nextSibling;
}
randomDoors = this.firstChild.childNodes[2].attributes.random;
var _local6 = 0;
var _local7 = this.firstChild.childNodes[2].firstChild;
while (_local7 != null) {
var _local5 = new Object();
_local5.path = _local7.attributes.path;
_local5.name = _local7.attributes.name;
_local5.trackingId = _local7.attributes.trackingId;
_local5.weight = _local7.attributes.weight;
_local5.doorNumber = _local6;
doorsArray.push(_local5);
var _local9 = 0;
while (_local9 < _local5.weight) {
weightedDoorArray.push(_local6);
_local9++;
}
transition.createEmptyMovieClip("door_" + _local6, 100 + _local6);
transition["door_" + _local6].loadMovie(doorDir + _local5.path);
transition["door_" + _local6]._visible = false;
transition["door_" + _local6]._x = 0;
transition["door_" + _local6]._y = 0;
_local6++;
_local7 = _local7.nextSibling;
}
if ((_root.channel != null) || (_root.videoPath != null)) {
var _local13 = _root.channel + ".swf";
var _local12 = getDoorFromSection(_local13);
getRandomDoor(_local12);
} else {
getRandomDoor();
}
if (commercialsArray[0].path != null) {
if (randomCommercials == "true") {
var _local11 = Math.ceil(Math.random() * 100) % commercialsArray.length;
pathToAd = adDir + commercialsArray[_local11].path;
adTrackingId = commercialsArray[_local11].trackingId;
adName = commercialsArray[_local11].name;
_root.adPixelPath = commercialsArray[_local11].trackPixel;
} else {
pathToAd = adDir + commercialsArray[0].path;
adTrackingId = commercialsArray[0].trackingId;
adName = commercialsArray[0].name;
_root.adPixelPath = commercialsArray[_local11].trackPixel;
}
}
section = channelsDir + this.firstChild.childNodes[3].attributes.start_channel;
_root.currentHeavyCover = section;
var _local3 = this.firstChild.childNodes[3].firstChild;
while (_local3 != null) {
var _local4 = new Object();
_local4.title = _local3.attributes.title;
_local4.object_path = _local3.attributes.object_path;
_local4.image_path = _local3.attributes.image_path;
_local4.image_path_over = _local3.attributes.image_path_over;
_local4.text = _local3.attributes.text;
_local4.category = _local3.attributes.category;
_local4.trackingId = _local3.attributes.trackingId;
_local4.landingId = _local3.attributes.landingId;
_local4.doorName = _local3.attributes.door;
_local4.channelName = _local3.attributes.title;
menuItemArray.push(_local4);
_local3 = _local3.nextSibling;
}
_root.XMLisLoaded = true;
startHeavyLoader();
} else {
trace("Error loading main.xml");
}
};
heavyXML.load(xmlDir + "main.xml");
Symbol 2 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local16)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 15 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 25 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 34 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 35 MovieClip [UpArrow] Frame 1
stop();
Symbol 35 MovieClip [UpArrow] Frame 2
stop();
Symbol 35 MovieClip [UpArrow] Frame 3
stop();
Symbol 42 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 51 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 56 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 57 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 65 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 73 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 81 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 82 MovieClip [DownArrow] Frame 1
stop();
Symbol 82 MovieClip [DownArrow] Frame 2
stop();
Symbol 82 MovieClip [DownArrow] Frame 3
stop();
Symbol 110 MovieClip [trackLine] Frame 1
this.stop();
Symbol 110 MovieClip [trackLine] Frame 2
this.stop();
Symbol 117 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 118 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = 14;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 122 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 122 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 126 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 3
function FScrollPaneClass() {
function boolToString(str) {
if (str == "false") {
return(false);
}
if (str == "true") {
return(true);
}
return(str);
}
this.init();
this.width = this._width;
this.height = this._height;
this._xscale = (this._yscale = 100);
this.contentWidth = (this.contentHeight = 0);
if (this.hScroll == undefined) {
this.hScroll = (this.vScroll = "auto");
this.dragContent = false;
}
this.offset = new Object();
this.vScroll = boolToString(this.vScroll);
this.hScroll = boolToString(this.hScroll);
this.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:this.styleTable});
this.hScrollBar_mc.setHorizontal(true);
this.hScrollBar_mc.setSmallScroll(5);
this.hScrollBar_mc.setChangeHandler("onScroll", this);
this.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:this.styleTable});
this.vScrollBar_mc.setSmallScroll(5);
this.vScrollBar_mc.setChangeHandler("onScroll", this);
this.setSize(this.width, this.height);
if (this.scrollContent != "") {
this.setScrollContent(this.scrollContent);
}
this.setDragContent(this.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var _local3 = ((this.hScrollBar_mc == undefined) ? 0 : (this.hScrollBar_mc.getScrollPosition()));
var _local2 = ((this.vScrollBar_mc == undefined) ? 0 : (this.vScrollBar_mc.getScrollPosition()));
return({x:_local3, y:_local2});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
this.offset.x = 0;
this.offset.y = 0;
if (this.content_mc != undefined) {
if (target != this.content_mc) {
this.content_mc._visible = false;
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
}
}
if (typeof(target) == "string") {
this.attachMovie(target, "tmp_mc", 3);
this.content_mc = this.tmp_mc;
} else if (target == undefined) {
this.content_mc.unloadMovie();
} else {
this.content_mc = target;
}
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
var _local3 = this.content_mc.getBounds(this);
this.offset.x = -_local3.xMin;
this.offset.y = -_local3.yMin;
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
this.contentWidth = this.content_mc._width;
this.contentHeight = this.content_mc._height;
this.content_mc.setMask(this.mask_mc);
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
if (((arguments.length < 2) || (isNaN(w))) || (isNaN(h))) {
return(undefined);
}
super.setSize(w, h);
this.width = Math.max(w, 60);
this.height = Math.max(h, 60);
this.boundingBox_mc._xscale = 100;
this.boundingBox_mc._yscale = 100;
this.boundingBox_mc._width = this.width;
this.boundingBox_mc._height = this.height;
this.setHandV();
this.initScrollBars();
if (this.mask_mc == undefined) {
this.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
this.mask_mc._xscale = 100;
this.mask_mc._yscale = 100;
this.mask_mc._width = this.hWidth;
this.mask_mc._height = this.vHeight;
this.mask_mc._alpha = 0;
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
x = Math.max(this.hScrollBar_mc.minPos, x);
x = Math.min(this.hScrollBar_mc.maxPos, x);
y = Math.max(this.vScrollBar_mc.minPos, y);
y = Math.min(this.vScrollBar_mc.maxPos, y);
this.hScrollBar_mc.setScrollPosition(x);
this.vScrollBar_mc.setScrollPosition(y);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
this.content_mc._visible = 0;
this.loadContent.duplicateMovieClip("loadTemp", 3);
this.dupeFlag = true;
this.contentLoaded = function () {
this.loadReady = false;
this.content_mc = this.loadTemp;
this.refreshPane();
this.executeCallBack();
};
this.setChangeHandler(handler, location);
this.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
this.hScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
this.vScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
if (dragFlag) {
this.boundingBox_mc.useHandCursor = true;
this.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
this.boundingBox_mc.tabEnabled = false;
this.boundingBox_mc.onRelease = (this.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete this.boundingBox_mc.onPress;
this.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
if ((((this.contentHeight - this.height) > 2) && (this.vScroll != false)) || (this.vScroll == true)) {
this.hWidth = this.width - this.vScrollBar_mc._width;
} else {
this.hWidth = this.width;
}
if ((((this.contentWidth - this.width) > 2) && (this.hScroll != false)) || (this.hScroll == true)) {
this.vHeight = this.height - this.hScrollBar_mc._height;
} else {
this.vHeight = this.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
this.tabFocused = false;
this.myOnSetFocus();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
this.onMouseMove = function () {
this.scrollXMove = this.lastX - this._xmouse;
this.scrollYMove = this.lastY - this._ymouse;
this.scrollXMove = this.scrollXMove + this.hScrollBar_mc.getScrollPosition();
this.scrollYMove = this.scrollYMove + this.vScrollBar_mc.getScrollPosition();
this.setScrollPosition(this.scrollXMove, this.scrollYMove);
if ((this.scrollXMove < this.hScrollBar_mc.maxPos) && (this.scrollXMove > this.hScrollBar_mc.minPos)) {
this.lastX = this._xmouse;
}
if ((this.scrollYMove < this.vScrollBar_mc.maxPos) && (this.scrollYMove > this.vScrollBar_mc.minPos)) {
this.lastY = this._ymouse;
}
this.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
this.hScrollBar_mc._y = this.height - this.hScrollBar_mc._height;
this.hScrollBar_mc.setSize(this.hWidth);
this.hScrollBar_mc.setScrollProperties(this.hWidth, 0, this.contentWidth - this.hWidth);
this.vScrollBar_mc._visible = ((this.hWidth == this.width) ? false : true);
this.vScrollBar_mc._x = this.width - this.vScrollBar_mc._width;
this.vScrollBar_mc.setSize(this.vHeight);
this.vScrollBar_mc.setScrollProperties(this.vHeight, 0, this.contentHeight - this.vHeight);
this.hScrollBar_mc._visible = ((this.vHeight == this.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = component.getScrollPosition();
var _local4 = ((component._name == "hScrollBar_mc") ? "x" : "y");
if (component._name == "hScrollBar_mc") {
this.content_mc._x = (-_local2) + this.offset.x;
} else {
this.content_mc._y = (-_local2) + this.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local3 = this.hScrollBar_mc.getScrollPosition();
var _local2 = this.vScrollBar_mc.getScrollPosition();
if (this.hScrollBar_mc.maxPos > this.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
this.setScrollPosition(_local3 - 3, _local2);
} else if (Key.isDown(39)) {
this.setScrollPosition(_local3 + 3, _local2);
}
}
if (this.vScrollBar_mc.maxPos > this.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
this.setScrollPosition(_local3, _local2 - 3);
} else if (Key.isDown(40)) {
this.setScrollPosition(_local3, _local2 + 3);
} else if (Key.isDown(34)) {
this.setScrollPosition(_local3, _local2 + this.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
this.setScrollPosition(_local3, _local2 - this.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 118 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 126 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 123 MovieClip "loadContent" in Symbol 126 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 141 MovieClip [tab] Frame 1
function tabScroller(direction) {
if (direction == "up") {
tabContent.scroll++;
} else {
tabContent.scroll--;
}
}
function scrollText(scrollDirection) {
_root.scrollInterval = setInterval(tabScroller, 100, scrollDirection);
}
this.stop();
blocker.useHandCursor = false;
scrollUp.onPress = function () {
scrollText("down");
};
scrollUp.onRelease = (scrollUp.onDragOut = (scrollUp.onRollOut = function () {
clearInterval(_root.scrollInterval);
}));
scrollDown.onPress = function () {
scrollText("up");
};
scrollDown.onRelease = (scrollDown.onDragOut = (scrollDown.onRollOut = function () {
clearInterval(_root.scrollInterval);
}));
_root.tabFAQContent;
faqButton.onRelease = function () {
tabContent.scroll = 0;
tabContent = _root.tabFAQContent;
};
Symbol 154 MovieClip Frame 1
this.stop();
Symbol 154 MovieClip Frame 2
this.stop();
Symbol 157 MovieClip Frame 1
this.stop();
Symbol 157 MovieClip Frame 2
this.stop();
Symbol 161 MovieClip Frame 1
this.stop();
Symbol 161 MovieClip Frame 2
this.stop();
Symbol 170 MovieClip Frame 1
this.stop();
Symbol 170 MovieClip Frame 2
this.stop();
Symbol 174 MovieClip Frame 1
this.stop();
Symbol 174 MovieClip Frame 2
this.stop();
Symbol 180 MovieClip Frame 1
this.stop();
Symbol 180 MovieClip Frame 2
this.stop();
Symbol 180 MovieClip Frame 3
this.stop();
Symbol 180 MovieClip Frame 4
this.stop();
Symbol 183 MovieClip Frame 1
this.stop();
Symbol 183 MovieClip Frame 2
this.stop();
Symbol 205 MovieClip Frame 1
this.stop();
Symbol 205 MovieClip Frame 121
this.gotoAndPlay(2);
Symbol 206 MovieClip Frame 1
this.stop();
slider.blocker.useHandCursor = false;
sumosonicButton.onRelease = function () {
_root.track3rdParty("heavy.radio.button.buySumosonic", "click");
_root.loadSection(_root.channelsDir + "hoh_chicks_page2.swf");
};
openButton.onRelease = function () {
if (!_root.radioIsOpen) {
_root.toggleRadio("open");
} else {
_root.toggleRadio("close");
}
};
openButton.onRollOver = function () {
this.gotoAndStop(2);
};
openButton.onRollOut = (openButton.onDragOut = function () {
this.gotoAndStop(1);
});
slider.popUpButton.onRollOver = function () {
this.gotoAndStop(2);
};
slider.popUpButton.onRollOut = (slider.popUpButton.onDragOut = function () {
this.gotoAndStop(1);
});
slider.popUpButton.onRelease = function () {
_root.pausePlayer();
_root.sndtrack.stop();
_root.track3rdParty("heavy.radio.button.popUpPlayer", "click");
getURL ("javascript:launchwin('players/popupRadio.php?theSongNumber=1', 'heavyRadio', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=400')");
};
slider.slideButton.onRelease = function () {
if (!slider.isOpen) {
_root.toggleRadioSlider("open");
} else {
_root.toggleRadioSlider("close");
}
};
slider.slideButton.onRollOver = function () {
this.gotoAndStop(2);
};
slider.slideButton.onRollOut = (slider.slideButton.onDragOut = function () {
this.gotoAndStop(1);
});
slider.upButton.onRollOver = function () {
this.gotoAndStop(2);
};
slider.upButton.onRollOut = (slider.upButton.onDragOut = function () {
this.gotoAndStop(1);
});
slider.upButton.onRelease = function () {
if (_root.sumosonicNumber < _root.maxSumosonicNumber) {
_root.sumosonicNumber++;
_root.moveMovie(this._parent.sumosonicListHolder, 0.2, this._parent.sumosonicListHolder._x, 4 + (-12 * (_root.maxSumosonicNumber - _root.sumosonicNumber)));
_root.createTrackListing(("sumosonic" + _root.sumosonicNumber) + ".xml");
}
};
slider.downButton.onRollOver = function () {
this.gotoAndStop(2);
};
slider.downButton.onRollOut = (slider.downButton.onDragOut = function () {
this.gotoAndStop(1);
});
slider.downButton.onRelease = function () {
if (_root.sumosonicNumber > 2) {
_root.sumosonicNumber--;
_root.moveMovie(this._parent.sumosonicListHolder, 0.2, this._parent.sumosonicListHolder._x, 4 - (12 * (_root.maxSumosonicNumber - _root.sumosonicNumber)));
_root.createTrackListing(("sumosonic" + _root.sumosonicNumber) + ".xml");
}
};
playButton.onRollOver = function () {
if ((this._currentframe == 1) || (this._currentframe == 2)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(4);
}
};
playButton.onRollOut = (playButton.onDragOut = function () {
if ((this._currentframe == 2) || (this._currentframe == 1)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
});
playButton.onRelease = function () {
if (_root.radio.playing) {
_root.radio.playing = false;
_root.radio.savedSpot = _root.sndtrack.position;
_root.sndtrack.stop();
this.gotoAndStop("play");
_root.radio.EQ.gotoAndStop(1);
_root.track3rdParty("heavy.radio.button.pause", "click");
} else if (_root.radio.readyState == "true") {
_root.playSong(_root.currentSong);
} else {
_root.radio.playing = true;
_root.sndtrack.start(int(_root.radio.savedSpot / 1000));
this.gotoAndStop("pause");
_root.radio.EQ.gotoAndPlay(2);
_root.track3rdParty("heavy.radio.button.play", "click");
}
};
prevButton.onRollOver = function () {
this.gotoAndStop(2);
};
prevButton.onRollOut = (prevButton.onDragOut = function () {
this.gotoAndStop(1);
});
prevButton.onRelease = function () {
_root.playSong(_root.currentSong - 1);
};
nextButton.onRollOver = function () {
this.gotoAndStop(2);
};
nextButton.onRollOut = (nextButton.onDragOut = function () {
this.gotoAndStop(1);
});
nextButton.onRelease = function () {
_root.playSong(_root.currentSong + 1);
};
Instance of Symbol 163 MovieClip "slider" in Symbol 206 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 126 MovieClip [FScrollPaneSymbol] "trackPane" in Symbol 206 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
scrollContent = "test";
hScroll = "false";
vScroll = "true";
dragContent = false;
}
Symbol 214 MovieClip Frame 40
stop();
Symbol 231 MovieClip Frame 35
stop();
Symbol 251 MovieClip Frame 41
stop();
Symbol 257 MovieClip Frame 30
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 8
stop();
Symbol 280 MovieClip Frame 15
_parent.nextFrame();
Symbol 280 MovieClip Frame 16
gotoAndPlay ("FORWARD");
Symbol 280 MovieClip Frame 30
_parent.prevFrame();
Symbol 280 MovieClip Frame 31
gotoAndPlay ("REVERSE");
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 14
Symbol 289 MovieClip Frame 1
this.stop();
Symbol 289 MovieClip Frame 2
this.stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 1
this.stop();
loadFlickerThing._alpha = 0;
fullScreenButton.onRelease = function () {
_root.pausePlayer();
_root.hideCommercial();
_root.trackThis("440", "0", "imp");
_root.track3rdParty("heavy.button.fullScreenButton", "click");
var _local2 = _root.currentHeavySection.substring(_root.currentHeavySection.lastIndexOf("/") + 1);
_local2 = _local2.substring(0, _local2.indexOf("."));
if ((_local2 == "FLVPlayer") || (_local2 == "SWFPlayer")) {
getURL ("javascript:launchFullScreen('fullscreen.php');");
} else if (_local2 != null) {
getURL (("javascript:launchFullScreen('fullscreen.php?channel=" + _local2) + "&noCommercial=true');");
} else {
getURL ("javascript:launchFullScreen('fullscreen.php?noCommercial=true');");
}
};
fullScreenButton.onRollOver = function () {
this.gotoAndStop(2);
};
fullScreenButton.onRollOut = function () {
this.gotoAndStop(1);
};
bannerHolder.loadMovie("banners.swf");