Frame 1
function onShowComplete() {
if (first_completion) {
dispatchEvent({type:"onWidgetFinished", target:controller});
first_completion = false;
}
}
function playAdvertisement() {
controller.stopMusic();
controller.ad_showing = true;
controller.showCaption("");
ad_mc.playVideo(stageWidth, stageHeight);
}
function getDimensions() {
bug_mc.scaleMenu(stageWidth, stageHeight, bug_mc._x, bug_mc._y);
}
function dismissAdvertisement() {
ad_mc.removeVideo();
overlay.clear();
if (controller.ad_showing) {
controller.ad_showing = false;
}
}
function initializeSkinFile(url) {
var _local1 = new Object();
_local1.onLoadInit = function (target_mc) {
controller.onSkinImageLoaded(target_mc);
};
_local1.onLoadError = function (target_mc) {
};
var _local2 = new MovieClipLoader();
_local2.addListener(_local1);
_local2.loadClip(url, skin_mc);
}
function InitializeRequester(init_callback, root_url, channel_id, controller) {
_global.debug("InitializeRequester in request.as");
var requester = new Object();
requester.controller = controller;
AsBroadcaster.initialize(requester);
requester.addListener(preloader_mc);
requester.batch = 0;
requester.url = ((("http://" + root_url) + "/accept/application/x-xmljson/channel/") + channel_id) + "/screenconfig/1";
_level0.OUTPUT = requester.url;
CMP = CMP + ("\nREQUEST URL: \n" + requester.url);
requester.more = ((("http://" + root_url) + "/accept/application/x-xmljson/channel/") + channel_id) + "/moreitems?batch=";
requester.item_array = new Array();
requester.index = 0;
requester.numLoops = 0;
requester.pending = false;
requester.no_more = false;
requester.menuClickSimulated = false;
requester.threshold = 10;
requester.init_callback = init_callback;
requester.parseLocalItems = function (text) {
DB = DB + "\nPARSING LOCAL";
var _local1 = new XML();
_local1.parseXML(text);
var _local2 = convertPlistGeneric(_local1.firstChild);
requester.processMarkupItems(_local2.items);
};
requester.requestData = function () {
var _local2 = new XML();
_local2.onLoad = this.loadData;
_local2.load(this.url);
};
requester.requestMore = function () {
if ((this.pending == false) && (this.no_more == false)) {
this.pending = true;
var _local2 = new XML();
requester.batch++;
var _local3 = requester.more + requester.batch;
_local2.onLoad = this.loadData;
_local2.load(_local3);
}
};
requester.loadData = function (loaded) {
var _local3 = 0;
var _local4 = 0;
var _local2 = 0;
if (loaded) {
_local2 = convertPlistGeneric(this.firstChild);
com.slide.FlashVars.__set__FULL_DICT(_local2);
com.slide.FlashVars.__set__TICKER_CFG(_local2.tickerconf);
com.slide.FlashVars.__set__GLOBAL_CFG(_local2.globalconf);
com.slide.FlashVars.__set__ITEM_ARRAY(_local2.items);
}
if (_local2) {
requester.processMarkup(_local2);
} else {
requester.broadcastMessage("onZeroItems");
}
};
requester.processMarkup = function (full_dict) {
var _local3 = full_dict.items;
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2].uid = _local2;
_local2++;
}
tickerconf_dict = full_dict.tickerconf;
globalconf_dict = full_dict.globalconf;
this.pending = false;
requester.processMarkupItems(_local3);
if (requester.init_callback) {
for (_local2 in globalconf_dict) {
tickerconf_dict[_local2] = globalconf_dict[_local2];
}
DB = DB + "/n&&&&REQUESTER CALLING CALLBACK";
this.init_callback(tickerconf_dict, true, play_list);
this.init_callback = 0;
}
};
requester.processMarkupItems = function (item_array) {
this.clearItems();
this.populate(item_array);
play_list = InitializeAudio(this.item_array);
};
requester.clearItems = function () {
this.item_array.splice(0);
this.index = 0;
};
requester.populate = function (array) {
if (array.length == 0) {
this.no_more = true;
} else {
var _local2 = 0;
while (_local2 < array.length) {
this.item_array.push(array[_local2]);
_local2++;
}
}
};
requester.getNextItem = function () {
if (this.index >= this.item_array.length) {
this.index = 0;
requester.numLoops++;
if (!requester.counting) {
requester.counting = true;
requester.menuClickSimulated = true;
this.menuClickInterval = setInterval(this, "menuAutoOpen", com.slide.FlashVars.__get__GLOBAL_CFG().auto_menu_open_timer);
}
}
return(this.item_array[this.index++]);
};
requester.menuAutoOpen = function () {
requester.counting = false;
clearInterval(menuClickInterval);
controller.onShowComplete();
};
requester.clickSimulated = false;
requester.simulateMenuClick = function () {
if (requester.clickSimulated) {
return(undefined);
}
_root.onShowComplete();
requester.clickSimulated = true;
clearInterval(this.menuClickInterval);
if (((!_root.arrange) || (!_root.disablemenu)) || (_level0.notice_mc.is_enabled)) {
if (com.slide.FlashVars.__get__TICKER_CFG().allow_rating || (com.slide.FlashVars.__get__TICKER_CFG().allow_comment)) {
if (!_level0.cont_mc) {
menu_mc.menuClick(true);
requester.menuClickSimulated = true;
requester.startAutoCloseCountdown();
}
}
}
};
requester.startAutoCloseCountdown = function () {
clearInterval(this.autoCloseInterval);
this.autoCloseInterval = setInterval(this, "autoClose", com.slide.FlashVars.__get__GLOBAL_CFG().auto_menu_close_timer);
};
requester.autoClose = function () {
clearInterval(this.autoCloseInterval);
_level0.menu_mc.slideTo(Stage.width, -Stage.height, 0.35);
_level0.dialog_mc.visible = !_level0.dialog_mc.visible;
_level0.bug_mc._visible = true;
_level0.ad_mc.visible = true;
};
var _local12 = new Object();
_local12.onMouseMove = function () {
if (requester.menuClickSimulated) {
if (_level0.bug_mc._visible != true) {
clearInterval(requester.autoCloseInterval);
requester.startAutoCloseCountdown();
}
}
};
Mouse.addListener(_local12);
requester.badItem = function (meta) {
var _local2 = 0;
while (_local2 < this.item_array.length) {
if (meta.item_img_url == this.item_array[_local2].item_img_url) {
this.index = Math.max(this.index - 1, 0);
this.item_array.splice(_local2, 1);
if (this.item_array.length < 1) {
requester.broadcastMessage("onNoImagesFound");
}
break;
}
_local2++;
}
};
requester.getLength = function () {
return(this.item_array.length);
};
requester.restartCount = function () {
this.index = 0;
};
requester.getItemDict = function (start, end) {
start = (start ? (start) : 0);
end = (end ? (end) : (this.item_array.length));
end = Math.min(end, this.item_array.length);
var _local4 = new Array();
var _local2 = start;
while (_local2 < end) {
_local4.push(this.item_array[_local2]);
_local2++;
}
return(_local4);
};
requester.shuffle = function () {
var _local5 = this.item_array.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = Math.floor(Math.random() * _local5);
var _local4 = this.item_array[_local2];
this.item_array[_local2] = this.item_array[_local3];
this.item_array[_local3] = _local4;
_local2++;
}
};
return(requester);
}
this.preloader_mc._visible = false;
System.exactSettings = false;
var DEFAULT_LINK = "http://www.slide.com/";
var TRUE = "true";
var SEPARATION = 2;
var UNLOADED = 0;
var ERROR = -1;
var LOADED_NOT_DISPLAYED = 2;
var DISPLAYED = 3;
var HARD = 0;
var SOFT = 1;
var LEFT_LIMIT = 0;
var MAX_RETRIES = 3;
var TIMEOUT = 75;
var TICKER_HEIGHT = 0;
var TICKER_WIDTH = 0;
var SW = Stage.width;
var SH = Stage.height;
var BLACK = 1;
var PINK = 2;
var BLUE = 3;
var ORANGE = 4;
var AQUA = 5;
var MULTIPLE_FLAME = 1;
var SINGLE_FLAME = 2;
XML.prototype.ignoreWhite = true;
var SLIDE = 1;
var MYSPACE = 2;
var D_SPEED = 2;
var D_TEXT_SIZE = 2;
var D_BACKGROUND_COLOR = 0;
var D_TEXT_COLOR = 16777215;
var D_TRANSITION = 1;
var D_CHANNEL = "4524923";
var D_SITE = "widget.slide.com";
var LOADING = 1;
var ERROR = 2;
var BLANK = 3;
var convertPlistGeneric = function (node) {
switch (node.nodeName.toLowerCase()) {
case "dict" :
return(convertPlistDict(node));
case "array" :
return(convertPlistArray(node));
case "string" :
return(convertPlistString(node));
case "integer" :
return(convertPlistInteger(node));
case "integer" :
return(convertPlistReal(node));
case "true" :
return(true);
case "false" :
return(false);
case "null" :
return(null);
case "s" :
return(convertPlistItem(node));
}
};
var convertPlistDict = function (plist) {
var _local5 = {};
var _local1 = 0;
while (_local1 < plist.childNodes.length) {
var _local3 = plist.childNodes[_local1].childNodes[0].nodeValue;
var _local2 = plist.childNodes[_local1 + 1];
_local5[_local3] = convertPlistGeneric(_local2);
_local1 = _local1 + 2;
}
return(_local5);
};
var convertNodeNameToKey = function (node) {
var _local1 = node.nodeName.toLowerCase();
switch (_local1) {
case "d" :
return("description");
case "t" :
return("target_url");
case "i" :
return("item_img_url");
case "f" :
return("fallback_img_url");
case "m" :
return("media_url");
case "c" :
return("content_type");
case "n" :
return("ciid");
}
return(_local1);
};
var convertPlistItem = function (plist) {
var _local5 = {};
var _local1 = 0;
while (_local1 < plist.childNodes.length) {
var _local3 = convertNodeNameToKey(plist.childNodes[_local1]);
var _local2 = plist.childNodes[_local1].childNodes[0].nodeValue;
_local5[_local3] = _local2;
_local1++;
}
return(_local5);
};
var convertPlistArray = function (node) {
var _local3 = [];
var _local1 = 0;
while (_local1 < node.childNodes.length) {
_local3.push(convertPlistGeneric(node.childNodes[_local1]));
_local1++;
}
return(_local3);
};
var convertPlistString = function (node) {
return(node.childNodes[0].nodeValue);
};
var convertPlistInteger = function (node) {
return(parseInt(node.childNodes[0].nodeValue));
};
var convertPlistReal = function (node) {
return(parseFloat(node.childNodes[0].nodeValue));
};
System.security.allowDomain("*");
_lockroot = true;
var stageWidth;
var stageHeight;
var __root = this;
mx.events.EventDispatcher.initialize(this);
var dMgr = (new com.slide.managers.RootDepthManager());
com.slide.sis.Translog.CURRENT_VIEW = (com.slide.sis.Translog.PREVIOUS_VIEW = (__root.internal ? "INTERNAL_TICKER" : "TICKER"));
VERSION = "9";
Stage.align = "TL";
Stage.scaleMode = "noScale";
cache_killer = Math.random();
preloader_mc._visible = false;
loadbar_mc._visible = false;
notice_mc._visible = false;
fantab_mc._visible = false;
fantab_mc.swapDepths(com.slide.managers.RootDepthManager.FANTAB_MC);
music_gui_mc._visible = false;
video_gui_mc._visible = false;
var stage_listener_mc = __root.createEmptyMovieClip("stage_listener_mc", com.slide.managers.RootDepthManager.STAGE_LISTENER_MC);
Stage.addListener(stage_listener_mc);
stage_listener_mc.onResize = (stage_listener_mc.onEnterFrame = function () {
BADITEM = (stageWidth + " x ") + stageHeight;
if ((Stage.width > 1) && (Stage.height > 1)) {
Stage.align = "TL";
Stage.scaleMode = "noScale";
delete this.onEnterFrame;
Stage.removeListener(this);
stageWidth = __root.stagew || (Stage.width);
stageHeight = __root.stageh || (Stage.height);
controller.initialize(this._parent);
dispatchEvent({type:"onWidgetInit", target:controller});
}
});
var first_completion = true;
preloader_mc.initialize = function () {
this._x = stageWidth / 2;
this._y = stageHeight / 2;
this.setState(LOADING);
this._visible = true;
};
preloader_mc.setState = function (state) {
switch (state) {
case LOADING :
this.gotoAndStop("loading");
break;
case ERROR :
this.gotoAndStop("error");
loadbar_mc.kill();
break;
case BLANK :
this.gotoAndStop("blank");
loadbar_mc.kill();
break;
case 777 :
this.gotoAndStop("update");
loadbar_mc.kill();
break;
case 666 :
dMgr.swapTop(this);
loadbar_mc.kill();
this.gotoAndStop("zero");
}
};
preloader_mc.onFirstImage = function () {
this.setState(BLANK);
loadbar_mc.kill();
};
preloader_mc.onXMLError = function () {
BADITEM = BADITEM + "\nPRELOADER LISTENED";
this._x = stageWidth / 2;
this._y = stageHeight / 2;
this.setState(ERROR);
};
preloader_mc.onZeroItems = (preloader_mc.onNoImagesFound = function () {
this._x = stageWidth / 2;
this._y = stageHeight / 2;
this._visible = true;
this.setState(666);
});
loadbar_mc.init = function () {
this.max = 50;
this._x = stageWidth / 2;
this._y = stageHeight / 2;
var _local2 = controller.SW / 422;
this._xscale = (this._yscale = _local2 * 100);
this.p = 0;
this.onEnterFrame = function () {
this.percent_txt.text = Math.floor(this.p) + "%";
this.p = this.p + ((this.max - this.p) / 75);
};
this._visible = true;
};
loadbar_mc.goToTop = function () {
dMgr.swapTop(this);
};
loadbar_mc.fill = function () {
this.p = 100;
this.percent_txt.text = Math.floor(this.p) + "%";
delete this.onEnterFrame;
};
loadbar_mc.goTo = function (state) {
switch (state) {
case "wrapUp" :
this.max = 80;
break;
case "firstImage" :
this.max = 100;
}
};
loadbar_mc.kill = function () {
this.glitterer_mc.onEnterFrame = null;
delete this.onEnterFrame;
this._visible = false;
};
mask_mc.init = function (controller, x0, y0) {
this._x = x0;
this._y = y0;
this._width = controller.SW;
this._height = controller.SH;
RAT = RAT + ((("\nMASK X" + x0) + "y: ") + y0);
};
var controller = new Object();
var transition_mc = this.createEmptyMovieClip("transition_mc", com.slide.managers.RootDepthManager.TRANSITION_MC);
controller.transition_swf = transition_mc;
var itemXML = "empty";
var configXML = "empty";
trans_bg = this.createEmptyMovieClip("trans_bg", com.slide.managers.RootDepthManager.TRANS_BG);
skin_bg = this.createEmptyMovieClip("skin_bg", com.slide.managers.RootDepthManager.SKIN_BG);
trans_bg.onRelease = function () {
__root.menu_mc.menuClick();
};
__root.newCaption = function (tr) {
caption_mc = this.createEmptyMovieClip("caption_mc", com.slide.managers.RootDepthManager.CAPTION_MC);
newCaption = new com.slide.caption.OldCaptionManager(controller, caption_mc, tr);
return(newCaption);
};
controller.initialize = function (mc) {
if (Number(this.getPlayerVersion()) < 8) {
preloader_mc.initialize();
preloader_mc.setState(777);
preloader_mc.btn_mc.onRelease = function () {
var _local1 = "http://www.adobe.com/go/getflashplayer/";
com.slide.utils.URL.getURL(_local1, com.slide.utils.URL._BLANK);
};
return(undefined);
}
this.mc = mc;
this.getFlashVars();
this.ad_height = 18;
this.ad_width = 100;
this.ad_align = "BL";
this.real_SW = stageWidth;
this.real_SH = stageHeight;
this.SW = stageWidth;
this.SH = stageHeight;
this.VERTICAL = stageWidth < stageHeight;
this.log_load = false;
this.log_run = false;
songs = {};
this.loadbar_mc = loadbar_mc;
loadbar_mc.init();
notice_mc.init();
this.player_version = (this.config.player_version = Number(this.getPlayerVersion()));
if (Number(__root.fp) == 9) {
this.player_version = (this.config.player_version = 9);
}
this.getURLs();
this.requester = InitializeRequester(controller.wrapUp, this.site, this.channel, this);
this.requester.addListener(preloader_mc);
this.requester.addListener(controller);
if (this.is_arrange || (__root.mySongs)) {
controller.setConnection();
}
if (this.is_arrange) {
this.log = function () {
};
var _local2 = __root.myItems;
_local2 = controller.jerobiUnescape(_local2);
controller.requester.parseLocalItems(_local2);
var _local3 = new XML();
var _local6 = controller.jerobiUnescape(__root.myConfig);
_local3.parseXML(_local6);
var _local4 = convertPlistGeneric(_local3.firstChild);
com.slide.FlashVars.__set__TICKER_CFG(_local4);
controller.startUp(_local4);
} else {
preloader_mc.initialize();
this.requester.requestData();
}
this.onFirstImage = function () {
loadbar_mc.goTo("firstImage");
controller.initMusics(songs);
controller.initRatingsLanguages();
controller.initQuantcast();
controller.initControls();
};
};
controller.parseMusicStickerData = function (x) {
var _local1 = new XML(("<a>" + x) + "</a>");
var _local2 = com.slide.utils.XMLUtils.parseGenericXML(_local1, com.slide.utils.XMLUtils.NAMED_NODE);
return(Object(_local2.a));
};
controller.initMusics = function (songs) {
if (songs[0]) {
controller.hasSound = true;
if (songs[0].metadata == undefined) {
var _local4 = this.parseMusicStickerData(songs[0].data);
songs[0].metadata = _local4.youtube;
songs[0].metadata.media_type = 2;
songs[0].metadata.music_url = "http://www.youtube.com/v/" + songs[0].metadata.id;
songs[0].data = _local4.autoplay + "";
}
this.autoplay = ((songs[0].data == "true") ? ((__root.connect ? (__root.ns == "1") : true)) : false);
if ((songs[0].metadata.media_type == 1) && (__root.ns == "3")) {
this.soundIsInternal = false;
return(undefined);
}
this.soundIsInternal = true;
songs[0].autoplay = ((songs[0].data == "true") ? ((__root.connect ? (__root.ns == "1") : true)) : false);
var _local3 = songs[0].metadata.media_type;
if (_local3 === 1) {
controller.initVideo(songs[0]);
} else if (_local3 === 2) {
controller.initUTVideo(songs[0]);
} else if (_local3 === 0) {
controller.initMusic(songs[0]);
}
} else {
controller.hasSound = false;
}
};
controller.jerobiUnescape = function (_str) {
var _local1 = _str.split("-|-|-");
return(_local1.join("&"));
};
controller.initMusic = function (song) {
this.song = song;
var _local4 = __root.createEmptyMovieClip("music_classes", -34009);
var _local2 = com.slide.utils.URL.parseUrl(_url);
var _local5 = ((_local2.protocol + "://") + _local2.path) + "music.swf";
var _local3 = new MovieClipLoader();
_local3.loadClip(_local5, _local4);
};
controller.initQuantcast = function () {
if (com.slide.FlashVars.__get__TICKER_CFG().allow_tracking == 1) {
new com.slide.sis.PackageLoader("com.slide.quantcast");
}
};
controller.initRatingsLanguages = function () {
if ((stageWidth >= 350) && (stageHeight >= 262)) {
if (controller.shouldShowMenu()) {
_lang = new Local();
_lang.addEventListener("Local_xmlLoaded", this);
_lang.loadLangXML("ss_menu.xml");
}
}
};
controller.Local_xmlLoaded = function () {
};
controller.initVideo = function (song) {
this.song = song;
var _local4 = __root.createEmptyMovieClip("video_classes", -34009);
var _local2 = com.slide.utils.URL.parseUrl(_url);
var _local5 = ((_local2.protocol + "://") + _local2.path) + "video.swf";
var _local3 = new MovieClipLoader();
_local3.loadClip(_local5, _local4);
};
controller.initUTVideo = function (song) {
this.song = song;
var _local4 = __root.createEmptyMovieClip("video_classes", -34009);
var _local2 = com.slide.utils.URL.parseUrl(_url);
var _local5 = ((_local2.protocol + "://") + _local2.path) + "video_ut.swf";
var _local3 = new MovieClipLoader();
_local3.loadClip(_local5, _local4);
};
notice_mc.init = function () {
this.is_enabled = true;
this.o_depth = this.getDepth();
this._visible = (this.enabled = false);
var _local2 = 0.8;
var _local3 = this._width / this._height;
if ((controller.SW / controller.SH) > _local3) {
this._width = (controller.SH * _local3) * _local2;
this._height = controller.SH * _local2;
} else {
this._height = (controller.SW * _local2) / _local3;
this._width = controller.SW * _local2;
}
if (this._height > 104) {
this._height = 104;
this._width = 104 * _local3;
}
this._x = (controller.SW - this._width) / 2;
this._y = (controller.SH - this._height) / 2;
this.showNotice = function () {
__root.menu_mc.menuClick();
for (var _local2 in com.slide.FlashVars) {
}
if ((!this.is_enabled) || (com.slide.FlashVars.__get__SHOW_NOTICE() == "0")) {
return(undefined);
}
clearInterval(this.notice_interval);
if (this.getDepth() < 0) {
dMgr.swapTop(this);
}
dMgr.swapTop(this);
this.stopTween();
this._visible = true;
this.enabled = true;
this.alphaTo(100, 0.5);
this.notice_interval = setInterval(this, "hideNotice", 5000);
};
this.hideNotice = function () {
clearInterval(this.notice_interval);
this.enabled = false;
this.stopTween();
this.alphaTo(30, 1, "linear", 0, {scope:this, func:this.removeNotice});
};
this.removeNotice = function () {
this._visible = false;
this.enabled = false;
};
this.onRelease = function () {
this.hideNotice();
};
};
controller.setPadding = function () {
if (!this.hide_bottom_ad) {
switch (this.ad_align) {
case "TL" :
break;
case "TR" :
break;
case "BL" :
this.real_SH = this.SH;
if (!this.hide_tabs) {
this.SH = this.SH - this.ad_height;
}
break;
case "BR" :
break;
case "CC" :
break;
default :
this.real_SH = this.SH;
if (this.hide_tabs) {
break;
}
this.SH = this.SH - this.ad_height;
}
}
};
controller.getFlashVars = function () {
this.getSite();
if (__root.channel) {
this.channel = __root.channel;
} else if (__root["amp;channel"]) {
this.channel = __root["amp;channel"];
} else if (__root["amp;amp;channel"]) {
this.channel = __root["amp;amp;channel"];
} else if (__root["amp;amp;amp;channel"]) {
this.channel = __root["amp;amp;amp;channel"];
} else if (__root["amp;amp;amp;amp;channel"]) {
this.channel = __root["amp;amp;amp;amp;channel"];
} else {
for (var _local3 in __root) {
if (_local3.indexOf("snhack") == 0) {
arr = _local3.split("&");
for (var _local2 in arr) {
r = arr[_local2].split("=");
__root[r[0]] = r[1];
}
}
}
this.channel = __root.channel;
}
if (!this.channel) {
this.channel = D_CHANNEL;
}
__root.channel = this.channel;
this.needs_add = __root.m == "1";
this.hide_bottom_ad = __root.s == "1";
this.nocache = __root.n == "1";
this.hide_caption = (__root.hc ? true : false);
this.ticker_kind = Number((__root.ticker_kind ? (__root.ticker_kind) : (MYSPACE)));
this.gid = __root.gid;
this.browser_target = "_slide";
this.config = new Object();
this.config.theme_inset = 0;
this.textFX = (this.config.textFX = (__root.tfx ? (__root.tfx) : 0));
this.config.font = (__root.ft ? (__root.ft) : 0);
this.config.textSize = Number((__root.ts ? (__root.ts) : (D_TEXT_SIZE)));
__root.textSize = this.config.textSize;
this.config.backgroundColor = Number((__root.bc ? (__root.bc) : (D_BACKGROUND_COLOR)));
this.config.textColor = Number((__root.tc ? (__root.tc) : (D_TEXT_COLOR)));
this.speed = (this.config.speed = Number((__root.sp ? (__root.sp) : 2)));
if (__root.ov) {
this.config.textSize = 1;
}
this.transition = (this.config.transition = Number((__root.tt ? (__root.tt) : (D_TRANSITION))));
this.config.help_url = __root.help_url;
this.is_arrange = __root.arrange == eval("TRUE");
this.no_ct = (this.is_arrange && (!__root.tf)) || (__root.nc == eval("TRUE"));
this.theme = (this.config.theme = (__root.th ? (__root.th) : 0));
this.cl = (this.config.cl = (__root.cl ? (__root.cl) : null));
this.config.red_alert = (__root.nt ? true : false);
this.config.red_alert_message = (__root.nt ? (__root.nt) : "Visit slide.com");
this.config.red_alert_link = (__root.nu ? (__root.nu) : "http://www.slide.com");
this.themeColor = (this.config.themeColor = Number((__root.thc ? (__root.thc) : -1)));
this.chromeColor = (this.config.chromeColor = Number((__root.chc ? (__root.chc) : -1)));
this.stageColor = (this.config.stageColor = Number(__root.sc));
this.hide_tabs = (this.config.hide_tabs = true);
};
controller.updateConfig = function (dict) {
for (var _local3 in dict) {
this.config[_local3] = dict[_local3];
}
if (__root.ov) {
this.config.textSize = 1;
}
if (this.requester.getLength() < 1) {
preloader_mc.onZeroItems();
}
if (this.config.shuffle) {
this.shuffleItems();
}
if (__root.tt) {
this.config.transition = Number(__root.tt);
}
if (__root.sk && (__root.sk != undefined)) {
this.skin = (this.config.skin = __root.sk);
}
if (__root.sp) {
this.speed = Number(__root.sp);
}
if (__root.ad_type) {
this.ad_type = (this.config.ad_type = __root.ad_type);
}
if (__root.s) {
this.hide_bottom_ad = __root.s == "1";
}
if (__root.clear) {
this.cl = (this.config.cl = __root.cl);
}
if (__root.cy) {
this.cy = (this.config.cy = __root.cy);
}
if (__root.th) {
this.theme = (this.config.theme = __root.th);
}
this.config.stageColor = (__root.sc = (this.stageColor = com.slide.FlashVars.__get__TICKER_CFG().stageColor));
if (__root.thc) {
this.themeColor = (this.config.themeColor = Number(__root.thc));
}
if (__root.chc) {
this.chromeColor = (this.config.chromeColor = Number(__root.chc));
}
if (__root.ft) {
this.font = (this.config.font = Number(__root.ft));
}
if (__root.tfx) {
this.textFX = (this.config.textFX = Number(__root.tfx));
}
this.hide_bottom_ad = __root.s == "1";
if (Number(__root.il) == 1) {
this.il = (this.config.il = __root.il);
}
this.config.skin = String(this.config.skin);
this.skin = (this.config.skin = (((!this.config.skin) || (this.config.skin == "0")) ? undefined : (this.config.skin)));
this.config.ad_click = (((this.config.ad_click + "pivot?id=") + this.channel) + "&map=1") || "www.slide.com";
this.config.ad_click = this.config.ad_click + ((("&ver=" + VERSION) + "&tt=") + tickerconf_dict.transition);
this.config.log_url = (((this.config.log_url + "&ver=") + VERSION) + "&tt=") + tickerconf_dict.transition;
if (this.config.friend_url) {
this.config.log_url = this.config.log_url + "&fr=true";
this.config.ad_click = this.config.ad_click + "&fr=true";
}
if ((((__root.s == "1") || (__root.arrange == eval("TRUE"))) || (__root.internal == eval("TRUE"))) || (__root.il == "1")) {
this.config.log_url = this.config.log_url + "&internal=true";
this.config.ad_click = this.config.ad_click + "&internal=true";
}
if (__root.cy) {
this.config.log_url = this.config.log_url + ("&cy=" + __root.cy);
this.config.ad_click = this.config.ad_click + ("&cy=" + __root.cy);
}
if (this.player_version) {
this.config.log_url = this.config.log_url + ("&pv=" + this.player_version);
this.config.ad_click = this.config.ad_click + ("&pv=" + this.player_version);
}
if (this.theme) {
this.config.ad_click = this.config.ad_click + ("&th=" + this.theme);
}
if (this.skin) {
this.config.ad_click = this.config.ad_click + ("&sk=" + this.skin);
}
this.hide_tabs = (this.config.hide_tabs = true);
this.config.red_alert = this.config.red_alert_message.length;
this.myspace9 = (this.config.myspace9 = (this.cy == "ms") && (Number(this.player_version) == 9));
this.constrainStage();
this.loadSkinConfig();
this.setPadding();
this.loadAds();
};
controller.loadSkinConfig = function () {
if (__root.ad_cy == undefined) {
__root.ad_cy = "";
}
skin_num = new Number(this.config.skin);
skin_str = skin_num.toString();
if (((skin_str != "NaN") && (!__root.skin_mc)) && (skin_num > 0)) {
var _local2 = new XML();
_local2.onLoad = controller.loadSkinData;
var _local3 = (((((((((("http://" + this.site) + "/skininfo?sk=") + String(this.config.skin)) + "&w=") + this.SW) + "&h=") + this.SH) + "&ad_cy=") + __root.ad_cy) + "&cy=") + __root.cy;
_local2.load(_local3);
} else {
this.skin = (this.config.skin = 0);
controller.initSkin();
}
};
controller.onSkinImageLoaded = function (_mc) {
_mc._visible = true;
skin_bg.alphaTo(0, 0.3, "linear", 0, {scope:controller, func:controller.killSkinBg});
controller.killSkinBgInt = setInterval(controller, "killSkinBg", 300);
};
controller.killSkinBg = function () {
clearInterval(controller.killSkinBgInt);
skin_bg._visible = false;
};
controller.loadSkinData = function (loaded) {
if (loaded) {
skin_dict = convertPlistGeneric(this.firstChild);
com.slide.FlashVars.__set__SKIN_CONFIG(skin_dict);
com.slide.FlashVars.__get__SKIN_CONFIG()._src = this.toString();
}
if (!skin_dict) {
controller.skin = (controller.config.skin = "0");
}
controller.initSkin(skin_dict);
};
controller.onBgClicked = function () {
switch (com.slide.FlashVars.__get__BG_CLICK()) {
case "0" :
controller.getNothing(item_mc);
break;
case "1" :
controller.getItemDetail(item_mc, "TICKER_BG_CLICK");
break;
case "2" :
controller.getLTPaused(item_mc, "TICKER_BG_CLICK");
break;
case "3" :
controller.getCustomArrange(item_mc, "TICKER_BG_CLICK");
break;
case "4" :
controller.getLT(item_mc);
}
notice_mc.showNotice();
};
controller.initSkin = function (skin_dict) {
for (var k in skin_dict.insets) {
skin_dict.insets[k] = Number(skin_dict.insets[k]);
}
insets = skin_dict.insets;
if (skin_dict.tracking_url != undefined) {
var trackingUrl = new XML();
trackingUrl.load(skin_dict.tracking_url);
}
if (((this.config.skin && (this.config.player_version > 7)) && (!__root.skin_mc)) && (skin_dict)) {
var skin_mc = __root.createEmptyMovieClip("skin_mc", com.slide.managers.RootDepthManager.SKIN_MC);
var sbutton = __root.createEmptyMovieClip("sbutton", com.slide.managers.RootDepthManager.SBUTTON);
if (!controller.hide_bottom_ad) {
var surl = (this.config.ad_click + "&ad=400");
with (sbutton) {
moveTo(0, 0);
beginFill(39423, 0);
lineTo(controller.SW, 0);
lineTo(controller.SW, controller.SH);
lineTo(0, controller.SH);
lineTo(0, 0);
moveTo(insets.left, insets.top);
lineTo(insets.left, controller.SH - insets.bottom);
lineTo(controller.SW - insets.right, controller.SH - insets.bottom);
lineTo(controller.SW - insets.right, insets.top);
lineTo(insets.left, insets.top);
endFill();
}
skin_mc.onRelease = (sbutton.onRelease = function () {
switch (com.slide.FlashVars.__get__SKIN_CLICK()) {
case "0" :
controller.getNothing(item_mc);
break;
case "1" :
controller.getItemDetail(item_mc, "TICKER_SKIN_CLICK");
break;
case "2" :
controller.getLTPaused(item_mc, "TICKER_SKIN_CLICK");
break;
case "3" :
case "4" :
if (com.slide.FlashVars.__get__SKIN_CONFIG().target_url) {
getURL (com.slide.FlashVars.__get__SKIN_CONFIG().target_url, "_blank");
} else {
controller.getCustomArrange(item_mc, "TICKER_SKIN_CLICK");
}
}
notice_mc.showNotice();
});
}
controller.makeSkinBg();
initializeSkinFile(skin_dict.url);
} else {
config.skin = undefined;
insets = {top:0, left:0, bottom:0, right:0};
}
tx = ((stageWidth - this.SW) / 2) + insets.left;
ty = ((stageHeight - this.SH) / 2) + insets.top;
this.SW = (this.config.SW = (this.SW - insets.left) - insets.right);
this.SH = (this.config.SH = (this.SH - insets.top) - insets.bottom);
this.config.tx = (this.tx = (transition_mc._x = tx));
this.config.ty = (this.ty = (transition_mc._y = ty));
var tnum = Number(this.config.theme);
if ((tnum == 47) || (tnum == 48)) {
this.config.ty = (this.ty = (transition_mc._y = transition_mc._y - (this.config.theme_inset / 2)));
}
this.maskInit(this.tx, this.ty);
for (var k in insets) {
}
controller.InitializePlayControls(play_list);
controller.loadTransition();
controller.skin_dict = skin_dict;
music.setBackground(skin_dict.primary_color);
};
controller.initControls = function () {
if (!controller.shouldShowControls()) {
return(undefined);
}
var _local3 = __root.createEmptyMovieClip("controls_mc", com.slide.managers.RootDepthManager.CONTROLS_MC);
var _local2 = new Array();
_local2.push("slide_ctrl");
if (this.shouldShowMute() or this.shouldShowMenu()) {
_local2.push("div_ctrl");
}
if (this.shouldShowMute()) {
_local2.push("mute_ctrl");
}
if (this.shouldShowMenu()) {
_local2.push("menu_ctrl");
}
controller.controls = new SkinnableControls(_local3, _local2, this.skin_dict, 24);
this.controls.align = "left";
this.controls._x = transition_mc._x + 4;
this.controls._y = insets.top + 3;
this.controls.autoclose = true;
this.controls.addEventListener("onControlClick", this);
this.controls.addEventListener("onControlOut", this);
this.controls.addEventListener("onControlOver", this);
this.initMute(!this.autoplay);
controller.initTimeline();
};
controller.initMute = function (b) {
var _local2 = controller.controls.getControl("mute_ctrl");
if (b) {
this.muted = true;
_local2.gotoAndStop(2);
} else {
this.muted = false;
_local2.gotoAndStop(1);
}
};
controller.initTimeline = function () {
this.menuLoaded = false;
this.menuHasOpened = false;
this.menuShowing = false;
this.blockMenuAutoOpen = false;
this.autoCloseInterval = 0;
this.wantsAd = true;
this.adObject = null;
this.adUnitShowing = false;
this.adHasShown = false;
this.adStoppedMusic = false;
this.videoShowing = false;
_global.debug("cookie state");
_global.report(this.geocookie);
this.startMouseMoveListener();
var _local3 = com.slide.event.MasterEvent.getInstance();
_local3.addEventListener("onShowComplete", mx.utils.Delegate.create(controller, controller.onShowComplete));
if (this.shouldShowAdHere()) {
this.wandsAd = true;
this.adInterval = setInterval(this, "showAdvertisement", 8000);
} else {
this.wantsAd = false;
}
};
controller.onShowComplete = function () {
_global.debug("controller.onShowComplete..........................................................");
if ((((!this.shouldAutoOpenMenu()) or this.menuHasOpened) or this.blockMenuAutoOpen) or (this.wantsAd and (!this.adHasShown))) {
_global.debug("controller.onShowComplete ignored");
return(undefined);
}
this.showMenu(true);
this.startAutoCloseCountdown();
};
controller.onControlClick = function (ev) {
switch (ev.target._name) {
case "slide_ctrl" :
controller.slideReleased();
break;
case "menu_ctrl" :
if (this.wantsAd and (!this.adHasShown)) {
controller.restartAdInterval();
}
if (!this.adUnitShowing) {
controller.showMenu(false);
}
break;
case "mute_ctrl" :
if (this.adUnitShowing) {
break;
}
controller.muteReleased();
}
};
controller.onControlOver = function (ev) {
switch (ev.target._name) {
case "menu_ctrl" :
break;
case "mute_ctrl" :
controller.showAttribution();
}
};
controller.onControlOut = function (ev) {
switch (ev.target._name) {
case "menu_ctrl" :
break;
case "mute_ctrl" :
controller.hideAttribution();
}
};
controller.hideVideoIcon = function () {
this.video.hideIcon();
};
controller.showVideoIcon = function () {
this.video.showIcon();
};
controller.onVideoPlay = function () {
this.initMute(false);
};
controller.onVideoPause = function () {
this.initMute(true);
};
controller.onVideoMaximize = function () {
_global.debug(".................................on video maximize");
this.videoShowing = true;
};
controller.onVideoMinimize = function () {
_global.debug(".................................on video minimize");
this.videoShowing = false;
if (this.wantsAd and (!this.adHasShown)) {
this.restartAdInterval();
}
};
controller.showAttribution = function () {
if (this.adUnitShowing) {
return(undefined);
}
this.video.show();
this.music.show();
};
controller.hideAttribution = function (fast) {
this.video.hide(fast);
this.music.hide(fast);
};
controller.muteReleased = function () {
if (this.muted) {
com.slide.sis.Translog.logAction("MUSIC_AUDIO_PLAY");
this.setMute(false);
} else {
com.slide.sis.Translog.logAction("MUSIC_AUDIO_PAUSE");
this.setMute(true);
}
};
controller.setMute = function (mute) {
if (mute) {
this.music.stopSound();
this.video.stopSound();
} else {
this.music.startSound();
this.video.startSound();
}
this.updateMuteCtrl(mute);
};
controller.updateMuteCtrl = function (mute) {
_global.debug("controller.updateMuteCtrl " + mute);
var _local3 = controller.controls.getControl("mute_ctrl");
if (mute) {
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(1);
}
this.muted = mute;
};
controller.muteForAdvertisment = function () {
if (this.hasSound and (!this.muted)) {
_global.debug("controller.muteForAd (hasSound and !isMuted)");
this.setMute(true);
this.adStoppedMusic = true;
}
};
controller.stopMusic = function () {
if (this.music && (!this.music.paused)) {
com.slide.sis.Translog.logAction("MUSIC_AUDIO_PAUSE");
this.music.gui.mute_btn.onRelease();
}
};
controller.showMenu = function (isAuto) {
controller.menuAutoFlag = isAuto;
controller.menuHasOpened = true;
this.menuShowing = true;
if (!menuLoaded) {
menuLoaded = true;
new com.slide.sis.PackageLoader("com.slide.prod.ratings", controller.onMenuLoaded, controller);
} else {
controller.menu.menuClick(controller.menuAutoFlag);
}
};
controller.menuClosed = function () {
_global.debug("controller.menuClosed....");
this.menuShowing = false;
if (this.wantsAd and (!this.adHasShown)) {
this.restartAdInterval();
}
};
controller.startAutoCloseCountdown = function () {
clearInterval(this.autoCloseInterval);
this.autoCloseInterval = setInterval(this, "autoClose", com.slide.FlashVars.__get__GLOBAL_CFG().auto_menu_close_timer);
};
controller.autoClose = function () {
_global.debug("AUTO CLOSE");
clearInterval(this.autoCloseInterval);
controller.menu.quietClose();
};
controller.startMouseMoveListener = function () {
var _local1 = new Object();
_local1.onMouseMove = function () {
if (requester.menuClickSimulated) {
clearInterval(controller.autoCloseInterval);
requester.startAutoCloseCountdown();
}
};
Mouse.addListener(_local1);
};
controller.onMenuLoaded = function (success) {
if (success) {
if ((com.slide.FlashVars.__get__GLOBAL_CFG().lang == "xx") || (!com.slide.FlashVars.__get__GLOBAL_CFG().lang)) {
if (System.capabilities.language == "zh-cn") {
com.slide.FlashVars.__get__GLOBAL_CFG().lang = System.capabilities.language;
} else {
com.slide.FlashVars.__get__GLOBAL_CFG().lang = System.capabilities.language.substring(0, 2);
}
}
Object.registerClass("_blank", _global.com.slide.prod.ratings.controls.Menu);
var _local2 = {};
_local2.cid = com.slide.FlashVars.CHANNEL;
_local2.shareLink = com.slide.FlashVars.__get__GLOBAL_CFG().view_url;
_local2.allowComment = com.slide.FlashVars.__get__TICKER_CFG().allow_comment;
_local2.allowRating = com.slide.FlashVars.__get__TICKER_CFG().allow_rating;
_local2.allowShare = com.slide.FlashVars.__get__TICKER_CFG().privacy != "invite";
_local2.tlx = controller.tx + controller.SW;
_local2.tly = controller.ty;
_local2.clicked = clicked;
controller.menu = __root.attachMovie("_blank", "menu_mc", com.slide.managers.RootDepthManager.MENU_MC, _local2);
controller.menu.menuClick(controller.menuAutoFlag);
}
};
controller.onOverlayDismiss = function () {
_global.debug("############################ onOverlayDismiss");
this.exitAdvertisement();
};
controller.onOverlayTimeout = function () {
_global.debug("############################ onOverlayTimeout");
this.exitAdvertisement();
};
controller.onOverlayClick = function () {
_global.debug("############################ onOverlayClick");
};
controller.onMediaDismiss = function () {
_global.debug("############################ onMediaDismiss");
this.exitAdvertisement();
};
controller.onMediaTimeout = function () {
_global.debug("############################ onMediaTimeout");
this.exitAdvertisement();
};
controller.onMediaActivate = function () {
this.muteForAdvertisment();
_global.debug("############################ onMediaActivate");
};
controller.restartAdInterval = function () {
_global.debug("restarting ad interval from 0....");
clearInterval(this.adInterval);
this.adInterval = setInterval(this, "showAdvertisement", 5000);
};
controller.enterAdvertisment = function () {
this.adUnitShowing = true;
this.hideAttribution(true);
this.hideVideoIcon();
this.adHasShown = true;
this.blockMenuAutoOpen = true;
};
controller.exitAdvertisement = function () {
this.adUnitShowing = false;
if (this.adStoppedMusic) {
this.setMute(false);
}
this.showVideoIcon();
this.adInterval = setInterval(this, "releaseMenuBlock", 30000);
};
controller.releaseMenuBlock = function () {
clearInterval(this.adInterval);
this.blockMenuAutoOpen = false;
_global.debug("---------------releasing block on menu auto open");
};
controller.initAdvertisement = function () {
_global.debug("-------------------------initializing ad unit");
this.ad_unit.initialize(stageWidth, stageHeight, this.getAdvertismentInsets());
this.ad_unit.addEventListener("onOverlayTimeout", mx.utils.Delegate.create(this, this.onOverlayTimeout));
this.ad_unit.addEventListener("onOverlayOffClick", mx.utils.Delegate.create(this, this.onOverlayOffClick));
this.ad_unit.addEventListener("onOverlayDismiss", mx.utils.Delegate.create(this, this.onOverlayDismiss));
this.ad_unit.addEventListener("onMediaActivate", mx.utils.Delegate.create(this, this.onMediaActivate));
this.ad_unit.addEventListener("onMediaTimeout", mx.utils.Delegate.create(this, this.onMediaTimeout));
this.ad_unit.addEventListener("onMediaOffClick", mx.utils.Delegate.create(this, this.onMediaOffClick));
this.ad_unit.addEventListener("onMediaDismiss", mx.utils.Delegate.create(this, this.onMediaDismiss));
};
controller.getAdvertismentInsets = function () {
var _local1 = new Object();
_local1.top = insets.top;
_local1.right = stageWidth - insets.right;
_local1.bottom = stageHeight - insets.bottom;
_local1.left = insets.left;
return(_local1);
};
controller.shouldShowAdHere = function () {
if ((((__root.ad_cy and (!__root.campaign)) and (__root.ad_cy != "fb_tf")) and (__root.ad_cy != "be_tf")) and this.hasRoomForAdvertisement()) {
return(true);
}
return(false);
};
controller.hasRoomForAdvertisement = function () {
var _local1 = stageWidth - (insets.right + insets.left);
if (_local1 < 245) {
return(false);
}
return(true);
};
controller.showAdvertisement = function () {
_global.debug("---------------------------- showAdvertisment");
clearInterval(this.adInterval);
if (this.menuShowing or this.videoShowing) {
_global.debug("---------------------------- ignoring showAdvertisment (menu is open)");
return(undefined);
}
this.geocookie = this.getGeoCookie();
if (this.config.want_geo and (this.geocookie == undefined)) {
_global.debug("-------------------------------need to get geo");
this.pingLocationServer();
} else {
_global.debug("-------------------------------don't need to get geo");
this.pingItemServerAdvertising();
}
};
controller.pingLocationServer = function () {
var geo_xml = new XML();
var _local3 = this;
_global.debug("****************************pinging Location Server url = " + this.config.locserv);
geo_xml.load(this.config.locserv);
geo_xml.onLoad = function (success) {
controller.onLocationServerResponse(geo_xml);
};
};
controller.onLocationServerResponse = function (xml) {
_global.debug("****************************on location server response");
this.geocookie = SlideXML.convertPlistGeneric(xml.firstChild);
_global.report(this.geocookie);
this.storeGeoCookie(this.geocookie);
this.pingItemServerAdvertising();
};
controller.pingItemServerAdvertising = function () {
if (__root.site) {
var _local3 = ((__root.campaign || (wordcampaign)) || (this.config.campaign)) || 0;
adURL = ("http://" + __root.site) + "/advertising/?";
adURL = adURL + ((controller.searchFlashVars("ad_") + "&campaign=") + (_local3 || 0));
if (this.config.want_geo) {
adURL = adURL + ("&country_code=" + controller.geocookie["country-code"]);
}
var _local4 = new com.slide.sis.AdService();
_global.debug("************************* pingItemServerAdvertising url = " + adURL);
_local4.getAd(adURL, controller.onItemServerAdvertisingResponse, this);
}
};
controller.onItemServerAdvertisingResponse = function (res) {
_global.debug("************************* onItemServerAdvertisingResponse");
this.adObject = res.data;
_global.report(adObject);
var _local3 = this.adObject.creativeurl;
var _local5 = this.adObject.creativeposition;
var _local4 = this.adObject.creativewidth;
var _local6 = this.adObject.creativeheight;
var _local7 = this.adObject.belowskin;
var _local8 = this.adObject.creativescaled;
if (this.isBlankAdvertising(this.adObject.creativeurl)) {
_global.debug("server responded with blank.swf xml...not showing an ad");
this.blockMenuAutoOpen = false;
this.wantsAd = false;
this.adUnitShowing = false;
return(undefined);
}
_global.debug("server responded with xml...");
this.enterAdvertisment();
this.loadAdUnit(this.adObject.creativeurl);
};
controller.isBlankAdvertising = function (creative_url) {
if (creative_url == "/widgets/blank.swf") {
return(true);
}
return(false);
};
controller.loadAdUnit = function (url) {
ROOT_URL = _url.split("/").slice(0, 3).join("/") + "/";
System.security.allowDomain(ROOT_URL);
url = ROOT_URL + url;
_global.debug("************************* loadAdUnit url = " + url);
this.ad_unit = __root.createEmptyMovieClip("ad_unit", com.slide.managers.RootDepthManager.THIRD_PARTY_AD_UNIT);
var _local3 = new MovieClipLoader();
ad_unit_listener = new Object();
ad_unit_listener.onLoadInit = function (ad_unit) {
_global.debug("****************************ad unit loaded..............");
controller.initAdvertisement(ad_unit);
};
_local3.addListener(ad_unit_listener);
_local3.loadClip(String(url), this.ad_unit);
};
controller.getGeoCookie = function () {
SlideCookie.__set__id("slideshow");
return(SlideCookie.Load("geocookie"));
};
controller.storeGeoCookie = function (cookie) {
SlideCookie.__set__id("slideshow");
SlideCookie.Save("geocookie", cookie);
};
controller.getAdTestURL = function () {
return("widgets/ads/qa/ad_unit.swf");
};
controller.hasRoomForMenu = function () {
if ((stageWidth < 350) or (stageHeight < 262)) {
return(false);
}
return(true);
};
controller.shouldShowMenu = function () {
if (!this.hasRoomForMenu()) {
return(false);
}
if (((com.slide.FlashVars.__get__TICKER_CFG().allow_comment || (com.slide.FlashVars.__get__TICKER_CFG().allow_rating)) || (com.slide.FlashVars.__get__TICKER_CFG().privacy != "invite")) && (com.slide.FlashVars.__get__SHOW_MENU())) {
return(true);
}
return(false);
};
controller.shouldShowMute = function () {
if (!this.soundIsInternal) {
return(false);
}
return(this.hasSound);
};
controller.shouldShowControls = function () {
return(true);
};
controller.shouldAutoOpenMenu = function () {
if (!this.hasRoomForMenu()) {
return(false);
}
if (((!_root.arrange) || (!_root.disablemenu)) || (_level0.notice_mc.is_enabled)) {
if (com.slide.FlashVars.__get__TICKER_CFG().allow_rating || (com.slide.FlashVars.__get__TICKER_CFG().allow_comment)) {
if (com.slide.FlashVars.__get__SHOW_MENU()) {
if (!_level0.cont_mc) {
return(true);
}
}
}
}
return(false);
};
controller.isLargeTicker = function () {
if (__root.internal and (__root.map == "130100000")) {
return(true);
}
return(false);
};
controller.makeSkinBg = function () {
skin_bg.swapDepths(com.slide.managers.RootDepthManager.SKIN_BG);
with (skin_bg) {
moveTo(0, 0);
beginFill(8355711, 50);
lineTo(controller.SW, 0);
lineTo(controller.SW, controller.SH);
lineTo(0, controller.SH);
lineTo(0, 0);
endFill();
_x = controller.tx;
_y = controller.ty;
}
};
controller.showDims = function (s) {
_global.debug(s + " --------------------------------------------------------------------");
_global.debug((("THIS.SW = " + this.SW) + " stageWidth = ") + stageWidth);
_global.debug((("THIS.SH = " + this.SH) + " stageHeight = ") + stageHeight);
};
controller.constrainStage = function () {
var _local2 = ((((this.config.transition == 0) || (this.config.transition == 14)) || (this.config.skin)) ? 100 : 1.55);
if (((this.config.transition != 0) && (this.config.transition != 14)) || (this.config.skin)) {
this.SH = Math.min(this.SH, stageHeight);
this.SW = Math.min(this.SW, stageWidth);
this.showDims("constranStage if");
} else {
this.SH = stageHeight;
this.SW = stageWidth;
this.showDims("constranStage else");
}
var _local4 = Math.max(this.SW, this.SH) / Math.min(this.SW, this.SH);
if (_local4 > _local2) {
if (this.SW > this.SH) {
this.SW = this.SH * _local2;
} else {
this.SH = this.SW * _local2;
}
}
var _local3 = Number(this.config.theme);
if ((_local3 == 47) || (_local3 == 48)) {
this.config.theme_inset = 43;
this.SH = this.SH - this.config.theme_inset;
}
};
controller.getPlayerVersion = function () {
var _local1 = System.capabilities.version;
var _local3 = _local1.indexOf(" ");
var _local2 = _local1.substr(_local3 + 1, 1);
return(Number(_local2));
};
controller.getSite = function () {
this.site = D_SITE;
this.swfbase = "";
if (__root._url) {
var _local2 = __root._url.split("/");
if (__root._url.lastIndexOf("file:") == -1) {
this.site = _local2[2];
}
_local2.pop();
this.logbase = (this.swfbase = _local2.join("/") + "/");
this.config.swfbase = (this.swfbase = this.swfbase + (("ver" + VERSION) + "/"));
}
};
controller.getURLs = function () {
var _local2 = this.site;
var _local3 = this.config.ticker_kind;
this.config.log_url = (("http://" + this.site) + "/slide_ticker_log?channel=") + __root.channel;
};
controller.setTransition = function (transition) {
this.transition = transition;
};
controller.wrapUp = function (config_dict, loaded, play_list) {
loadbar_mc.goTo("wrapUp");
controller.play_list = play_list;
if (loaded) {
controller.startUp(config_dict);
} else {
preloader_mc.setState(ERROR);
}
};
controller.getTheme = function () {
switch (Number(this.config.theme)) {
case 0 :
return(null);
case 1 :
return(this.swfbase + "t_hearts.swf");
case 2 :
return(this.swfbase + "t_star.swf");
case 3 :
return(this.swfbase + "t_bubbles.swf");
case 4 :
return(this.swfbase + "t_bling.swf");
case 5 :
return(this.swfbase + "t_girl.swf");
case 6 :
return(this.swfbase + "t_6.swf");
case 7 :
return(this.swfbase + "t_7.swf");
case 8 :
return(this.swfbase + "t_8.swf");
}
return(((this.swfbase + "t_") + this.config.theme) + ".swf");
};
controller.getTransition = function () {
var _local2 = this.config.transition;
var _local3 = "slide,fading,pushing,bounce,crusher,spinner,t007,fire,ripple,shatter,bullet,glass,spotlight,swirl,zeit,star,desk,gallery,videogallery,scrap,warp".split(",");
if ((_local2 > 20) && (_local2 < 999)) {
return(((this.swfbase + "trans_") + _local2) + ".swf");
}
if ((_local2 < 18) || (_local2 == 20)) {
return((this.swfbase + _local3[_local2]) + ".swf");
}
if ((_local2 == 18) || (_local2 == 19)) {
return(((this.swfbase + _local3[_local2]) + ".swf?nc=") + Math.random());
}
return(((this.swfbase + "trans_") + _local2) + ".swf");
};
controller.log = function (phase) {
var _local2 = new XML();
_local2.onLoad = controller.loadFavXML;
_local2.load(this.config.log_url + phase);
};
controller.logLoad = function () {
if (this.log_load == false) {
this.log("&p=load");
}
this.log_load = true;
};
controller.logRun = function () {
if (this.log_run == false) {
this.log("&p=run");
}
this.log_run = true;
};
controller.loadFavXML = function (loaded) {
CMP = CMP + "\nLOADED FAVORITE, ";
if (loaded) {
var _local2 = convertPlistGeneric(this.firstChild);
controller.config.add_favorite = _local2.add_favorite;
CMP = CMP + ("\nREALLY LOADED" + _local2.add_favorite);
}
};
controller.startUp = function (config_dict) {
if (__root.mySongs) {
mySongs = controller.jerobiUnescape(__root.mySongs);
var _local2 = new XML();
_local2.parseXML(__root.mySongs);
songs = convertPlistGeneric(_local2.firstChild);
} else {
songs = config_dict.songs;
}
this.updateConfig(config_dict);
this.logLoad();
this.__root = __root;
this.fetcher = new com.slide.sis.Fetcher(this.requester, this.is_arrange, this);
this.fetcher.addListener(preloader_mc);
this.fetcher.addListener(controller);
};
controller.loadTransition = function () {
_global.debug("preloader.controller.loadTransition()");
this.showDims("load Transition");
var _local4 = this.getTransition();
var _local3 = new MovieClipLoader();
transition_listener = new Object();
transition_listener.controller = this;
_local3.addListener(transition_listener);
transition_listener.onLoadError = function () {
preloader_mc.setState(ERROR);
};
transition_listener.onLoadInit = function (target_mc) {
target_mc.initialize(this.controller);
__root.transition_swf = target_mc;
target_mc.setMask(mask_mc);
controller.makeTransitionBg();
this.controller.loadTheme();
loadbar_mc.goToTop();
if (!this.controller.hide_bottom_ad) {
this.controller.setFantab();
}
if (this.controller.config.red_alert && (__root.cy == "ms")) {
this.controller.loadNotice();
}
if (this.controller.goto_arrange) {
target_mc.onRelease = function () {
com.slide.utils.URL.getURL("http://www.slide.com/arrange");
};
}
};
_local3.loadClip(_local4, transition_mc);
};
controller.makeTransitionBg = function () {
trans_bg.moveTo(0, 0);
var _local3 = this.config.stageColor;
var _local2 = 100;
switch (Number(this.config.stageColor)) {
case -1 :
_local2 = 0;
break;
case 0 :
if (this.config.transition == 0) {
_local2 = 0;
}
break;
case 17 :
_local3 = 0;
}
trans_bg.beginFill(_local3, _local2);
trans_bg.lineTo(controller.config.SW, 0);
trans_bg.lineTo(controller.config.SW, controller.config.SH);
trans_bg.lineTo(0, controller.config.SH);
trans_bg.lineTo(0, 0);
trans_bg.endFill();
trans_bg._x = tx;
trans_bg._y = ty;
};
controller.loadTheme = function () {
var _local2 = this.getTheme();
if (_local2) {
var _local4 = __root.createEmptyMovieClip("theme_mc", 100);
var _local3 = new MovieClipLoader();
theme_listener = new Object();
theme_listener.controller = this;
_local3.addListener(theme_listener);
theme_listener.onLoadError = function () {
THBUG = THBUG + "\nERROR!";
};
theme_listener.onLoadInit = function (target_mc) {
THBUG = THBUG + "\nSUCCESFUL THEME LOADING";
target_mc.initialize(this.controller);
};
}
THBUG = THBUG + ((("\n WILL TRY TO LOAD: " + _local2) + "\nON: ") + _local4);
_local3.loadClip(_local2, _local4);
};
var numLoadAdErrors = 0;
controller.loadAds = function () {
if (__root.site) {
var _local2 = ((__root.campaign || (wordcampaign)) || (this.config.campaign)) || 0;
adURL = ("http://" + __root.site) + "/advertising/?";
adURL = adURL + ((controller.searchFlashVars("ad_") + "&campaign=") + _local2);
var _local3 = new com.slide.sis.AdService();
_local3.getAd(adURL, controller.loadAds_, this);
}
};
controller.loadAds_ = function (res) {
var _local10 = (o = res.data);
var _local5 = o.creativeurl;
var creativeposition = o.creativeposition;
var creativewidth = o.creativewidth;
var creativeheight = o.creativeheight;
var _local11 = o.belowskin;
var _local12 = o.creativescaled;
video_listener = new Object();
video_listener.o = o;
video_listener.onLoadInit = function (ad_mc) {
ad_mc._visible = false;
if (this.o.trackingurl) {
tracking = new LoadVars();
tracking.load(String(this.o.trackingurl));
delete tracking;
}
if (String(this.o.creativescaled) == "true") {
if (__root.ad_cy == "sl") {
var _local4 = 45;
} else {
var _local4 = 100;
}
if (this.o.creativewidth <= stageWidth) {
var _local3 = (this.o.creativewidth / stageWidth) * _local4;
} else {
var _local3 = (stageWidth / this.o.creativewidth) * _local4;
}
if (_local3 < 20) {
var _local3 = 20;
}
if (_local3 > 80) {
var _local3 = 80;
}
if (String(this.o.creativeposition) != "br") {
ad_mc._xscale = _local3;
ad_mc._yscale = _local3;
}
}
if (String(creativeposition) == "tl") {
ad_mc._x = insets.left;
ad_mc._y = insets.top;
}
if (String(this.o.creativeposition) == "tf") {
var _local6 = stageWidth - (insets.left + insets.right);
if (this.o.creativewidth > _local6) {
var _local5 = (_local6 / this.o.creativewidth) * 100;
} else {
var _local5 = 100;
}
ad_mc._yscale = (ad_mc._xscale = _local5);
ad_mc._x = insets.left + ((_local6 / 2) - ((this.o.creativewidth * (_local5 / 100)) / 2));
ad_mc._y = ((stageHeight - insets.bottom) - (this.o.creativeheight * (_local5 / 100))) - 20;
}
if (String(this.o.creativeposition) == "br") {
if (this.o.creativewidth <= stageWidth) {
var _local3 = (this.o.creativewidth / ((stageWidth - insets.right) - insets.left)) * _local4;
} else {
var _local3 = (((stageWidth - insets.right) - insets.left) / this.o.creativewidth) * _local4;
}
ad_mc._xscale = _local3;
ad_mc._yscale = _local3;
ad_mc._x = (stageWidth - ((creativewidth * _local3) / 100)) - insets.right;
ad_mc._y = (stageHeight - ((creativeheight * _local3) / 100)) - insets.bottom;
}
if (String(this.o.creativeposition) == "bl") {
ad_mc._x = insets.left;
ad_mc._y = (stageHeight - ad_mc._height) - insets.bottom;
}
if (String(this.o.creativeposition) == "tr") {
ad_mc._x = (stageWidth - ad_mc._width) - insets.right;
ad_mc._y = insets.top;
}
if (String(this.o.belowskin) == "true") {
ad_mc.swapDepths(skin_mc);
ad_mc.swapDepths(sbutton);
}
ad_mc._visible = true;
};
video_listener.onLoadError = function (ad_mc) {
};
video_listener.onLoadProgress = function (ad_mc) {
ad_mc._visible = false;
};
var _local9 = __root.createEmptyMovieClip("ad_mc", com.slide.managers.RootDepthManager.AD_MC);
_local9._visible = false;
var _local8 = new MovieClipLoader();
var _local4 = "";
if (__root._url.indexOf("http") == 0) {
_local4 = _url.split("/").slice(0, 3).join("/") + "/";
} else {
_local4 = "http://widget.dev.slide.com/";
}
System.security.allowDomain(_local4);
_local5 = _local4 + _local5;
_local8.addListener(video_listener);
_local8.loadClip(String(_local5), _local9);
};
controller.searchFlashVars = function (searchValue) {
var _local1 = "";
for (var _local3 in __root) {
if (_local3.substr(0, 3) == searchValue) {
if (((_local3 != "ad_click") && (_local3 != "video_mc")) && (_local3 != "ad_mc")) {
_local1 = _local1 + ((("&" + _local3) + "=") + escape(__root[_local3]));
}
}
}
return(_local1);
};
controller.loadNotice = function () {
this.notice_url = this.swfbase + "notice.swf";
var _local3 = __root.createEmptyMovieClip("notice_mc", com.slide.managers.RootDepthManager.NOTICE_MC);
var _local2 = new MovieClipLoader();
ad_listener = new Object();
ad_listener.controller = this;
_local2.addListener(ad_listener);
ad_listener.onLoadInit = function (target_mc) {
target_mc.initialize(this.controller);
};
_local2.loadClip(this.notice_url, _local3);
};
controller.maskInit = function (x0, y0) {
mask_mc.init(this, x0, y0);
};
controller.nextItem = function (callback, num_copies) {
this.fetcher.getNextItem(callback, num_copies);
};
controller.recycleItem = function (target_mc) {
this.fetcher.recycleItem(target_mc);
};
controller.setRecipient = function (recipient_mc) {
this.fetcher.setRecipient(recipient_mc);
};
controller.slideReleased = function () {
if ((__root.s == "1") and (com.slide.FlashVars.__get__ITEM_CLICK() != "3")) {
return(undefined);
}
var _local1 = controller.config.ad_click + "&ad=300";
_local1 = com.slide.sis.Translog.getURLWithLogging(_local1, com.slide.FlashVars.__get__CHANNEL(), "SLIDE_TAB_CLICK", "TICKER", "ARRANGE");
com.slide.utils.URL.getURL(_local1);
notice_mc.showNotice();
};
controller.isHomePage = function () {
};
controller.getCustomArrange = function (item_mc, action) {
var _local1 = (((controller.config.create_url + "?ciid=") + item_mc.meta.ciid) + "&previous_view=TICKER&previous_action=") + action;
com.slide.utils.URL.getURL(_local1);
};
controller.getItemDetail = function (item_mc, action) {
if (item_mc.meta.target_url) {
var _local1 = item_mc.meta.target_url;
if ((_local1.indexOf("/item_finder?") >= 0) && (!__root.tf)) {
if (((__root.s == "1") || (__root.arrange == eval("TRUE"))) || (__root.internal == eval("TRUE"))) {
_local1 = _local1 + "&referrer=site";
} else {
_local1 = _local1 + "&referrer=show";
}
_local1 = _local1 + ("&previous_view=TICKER&previous_action=" + action);
}
com.slide.utils.URL.getURL(_local1);
}
};
controller.getLTPaused = function (item_mc, action) {
var _local2 = (item_mc.meta.ciid ? ("&ciid=" + item_mc.meta.ciid) : "");
var _local1 = (controller.config.view_url ? (controller.config.view_url) : "http://www.slide.com/");
_local1 = _local1 + (("?previous_view=TICKER&previous_action=" + action) + _local2);
com.slide.utils.URL.getURL(_local1, window);
};
controller.getLT = function (item_mc) {
var _local1 = controller.config.view_url || (DEFAULT_LINK);
_local1 = _local1 + "?previous_view=TICKER&previous_action=TICKER_BG_CLICK";
com.slide.utils.URL.getURL(_local1);
};
controller.getNothing = function () {
return(undefined);
};
controller.itemReleased = function (item_mc) {
switch (com.slide.FlashVars.__get__ITEM_CLICK()) {
case "0" :
controller.getNothing(item_mc);
break;
case "1" :
controller.getItemDetail(item_mc, "TICKER_ITEM_CLICK");
break;
case "2" :
controller.getLTPaused(item_mc, "TICKER_ITEM_CLICK");
break;
case "3" :
controller.getCustomArrange(item_mc, "TICKER_ITEM_CLICK");
break;
case "5" :
controller.getLTPaused(item_mc, "TICKER_ITEM_CLICK");
}
notice_mc.showNotice();
};
controller.itemRolledOver = function (item_mc) {
if (ad_mc) {
ad_mc.itemRolledOver();
}
};
controller.favLoaded = function () {
if (ad_mc) {
ad_mc.setFavorite();
}
};
controller.itemRolledOut = function (item_mc) {
};
controller.shuffleItems = function () {
this.requester.shuffle();
};
controller.getNumItems = function () {
return(this.requester.getLength());
};
controller.getItemDict = function (s, e) {
return(this.requester.getItemDict(s, e));
};
controller.restartCount = function () {
this.requester.restartCount();
};
controller.hackCaption = function (w) {
this.adjustCaption = w;
c_mc = transition_mc.caption_mc;
c_mc.back_mc._width = c_mc.back_mc._width - (w - 20);
c_mc.my_txt._width = c_mc.my_txt._width - w;
c_mc.back_mc._x = c_mc.back_mc._x - ((w * 0.5) - 5);
c_mc.my_txt._x = c_mc.my_txt._x - ((w * 0.5) - 5);
};
setConnection = function () {
local_connection = new LocalConnection();
local_connection.connectEvent = function (func, args) {
if (controller[func]) {
controller[func](args);
}
};
local_connection.connect("slide_connect");
};
transition_mc.chromify = function (controller) {
this._x = (this._y = 0);
dMgr.swapTop(this);
};
controller.setConnection = function () {
local_connection = new LocalConnection();
local_connection.connectEvent = function (func, args) {
if (controller[func]) {
controller[func](args);
}
};
local_connection.connect("slide_connect");
};
controller.destroy = function () {
var _local1 = 0;
while (_local1 < 1000) {
clearInterval(_local1);
_local1++;
}
com.slide.FlashVars.clearAll();
};
controller.setFantab = function () {
fantab_mc.container_mc.setMask(fantab_mc.mask_mc);
fantab_mc.btn_mc._alpha = 0;
fantab_mc._x = mask_mc._x + mask_mc._width;
if ((this.config.transition == 0) && (!this.config.skin)) {
fantab_mc._x = fantab_mc._x - 19;
}
fantab_mc._y = (mask_mc._height + mask_mc._y) - fantab_mc.mask_mc._height;
if ((this.config.transition == 0) && (!this.config.skin)) {
fantab_mc._y = fantab_mc._y - 10;
}
fantab_mc.btn_mc.onRollOver = function () {
this._parent._alpha = 100;
};
fantab_mc.btn_mc.onRelease = function () {
this._parent._alpha = 70;
_level0.controller.slideReleased();
};
fantab_mc.btn_mc.onReleaseOutside = (fantab_mc.btn_mc.onDragOut = (fantab_mc.btn_mc.onRollOut = function () {
this._parent._alpha = 70;
}));
fantab_mc.swapDepths(com.slide.managers.RootDepthManager.FANTAB_MC);
fantab_mc._alpha = 70;
};
stop();
Symbol 9 MovieClip [menu_ctrl] Frame 1
stop();
Symbol 14 MovieClip [mute_ctrl] Frame 1
stop();
Symbol 57 MovieClip [audioBtn] Frame 1
stop();
Symbol 65 MovieClip [asset_button] Frame 1
#initclip 45
Object.registerClass("asset_button", com.slide.prod.video.AssetButton);
#endinitclip
this.stop();
Symbol 65 MovieClip [asset_button] Frame 9
this.stop();
Symbol 65 MovieClip [asset_button] Frame 19
this.stop();
Symbol 65 MovieClip [asset_button] Frame 29
this.stop();
Symbol 65 MovieClip [asset_button] Frame 39
this.stop();
Symbol 65 MovieClip [asset_button] Frame 48
this.stop();
Symbol 65 MovieClip [asset_button] Frame 58
this.stop();
Symbol 65 MovieClip [asset_button] Frame 68
this.stop();
Symbol 65 MovieClip [asset_button] Frame 78
this.stop();
Symbol 92 MovieClip Frame 80
gotoAndPlay ("2");
Symbol 100 MovieClip Frame 1
stop();
Symbol 109 MovieClip [__Packages.SlideCookie] Frame 0
class SlideCookie
{
static var cookie_name, __get__id;
function SlideCookie () {
}
static function set id(s) {
cookie_name = s;
//return(__get__id());
}
static function Save(key, val) {
var _local1 = SharedObject.getLocal(cookie_name, "/");
_local1.data[key] = val;
_local1.flush();
}
static function Load(key) {
var _local1 = SharedObject.getLocal(cookie_name, "/");
if (key) {
if ((_local1.data[key] == null) || (_local1 == undefined)) {
return(undefined);
}
return(_local1.data[key]);
}
return(_local1.data);
}
static function SaveDict(dict) {
var _local2 = SharedObject.getLocal(cookie_name, "/");
for (var _local3 in dict) {
_local2.data[_local3] = dict[_local3];
}
_local2.flush();
}
}
Symbol 110 MovieClip [__Packages.com.slide.sis.SISConnector] Frame 0
class com.slide.sis.SISConnector
{
function SISConnector () {
if (_url.indexOf("http") == 0) {
ROOT_URL = _url.split("/").slice(0, 3).join("/") + "/";
} else {
ROOT_URL = "http://widget.dev.slide.com:9922/";
}
}
var ROOT_URL = "";
}
Symbol 111 MovieClip [__Packages.com.slide.sis.AdService] Frame 0
class com.slide.sis.AdService extends com.slide.sis.SISConnector
{
function AdService () {
super();
}
function getAd(adURL, callback, context, data) {
var _local2 = new LoadVars();
var _local3 = new com.slide.sis.XMLTarget(getAd_, this, callback, context, data);
_local2.sendAndLoad(adURL, _local3);
}
function getAd_(res, callback, context, data) {
var _local4 = {};
var _local3 = res.firstChild.childNodes;
var _local2 = 0;
while (_local2 < _local3.length) {
_local4[_local3[_local2].nodeName] = _local3[_local2].firstChild.nodeValue;
_local2++;
}
var _local5 = {};
_local5.data = _local4;
_local5.error = Object(res).rc;
_local5._src = Object(res)._src;
callback.apply(context, [_local5].concat(arguments.slice(3)));
}
}
Symbol 112 MovieClip [__Packages.com.slide.sis.XMLTarget] Frame 0
class com.slide.sis.XMLTarget extends XML
{
var _timer, _callback, _context, _data, _src, severity, onLoad, parseXML, loaded, status;
function XMLTarget (callback, context) {
super();
ignoreWhite = true;
_timer = getTimer();
_callback = callback;
_context = context;
_data = [this].concat(arguments.slice(2));
}
function onData(src) {
var _local3 = getTimer();
_src = src + "";
if (src == undefined) {
severity = 2;
onLoad(false);
} else {
parseXML(src);
loaded = true;
if (status) {
severity = 2;
}
onLoad(true);
}
_callback.apply(_context, _data);
}
var ignoreWhite = true;
}
Symbol 113 MovieClip [__Packages.com.slide.caption.OldCaptionManager] Frame 0
class com.slide.caption.OldCaptionManager
{
var _controller, _bColor, _tColor, _x0, _y0, _mc, _transition, _delay, _hideInterval, _tField, _bg, _maxWidth, _maxHeight, _stageHeight, _tFormat, _stageWidth, _cb, _scope, _args, _autohide, _embedFonts;
function OldCaptionManager (controller, mc, tr) {
_controller = controller || (_root.controller);
_bColor = (((_controller.config.backgroundColor == undefined) || (_controller.config.backgroundColor < 0)) ? 0 : (_controller.config.backgroundColor));
_tColor = (((_controller.config.textColor == undefined) || (_controller.config.textColor < 0)) ? 16777215 : (_controller.config.textColor));
_x0 = _controller.config.tx;
_y0 = _controller.config.ty;
_mc = mc;
_mc._visible = false;
_transition = tr;
_delay = 500;
setFormat();
setSizeLimits();
makeBg();
makeTextField();
_level0.debug_mc.swapDepths(_level0.getNextHighestDepth());
hideCaption();
}
function hideCaption() {
clearInterval(_hideInterval);
_tField._visible = false;
_mc.stopTween("_alpha");
_mc.alphaTo(0, _delay / 5, "easeInQuad");
}
function makeBg() {
_bg = _mc.createEmptyMovieClip("_bg", 5);
_bg.moveTo(0, 0);
_bg.beginFill(_bColor, _bgAlpha);
_bg.lineTo(_maxWidth - _margin.side, 0);
_bg.lineTo(_maxWidth - _margin.side, _maxHeight);
_bg.lineTo(0, _maxHeight);
_bg.lineTo(0, 0);
_bg.endFill();
_mc._y = ((_stageHeight - _bg._height) + _y0) - (_margin.top / 2);
_mc._x = _x0 + (_margin.side / 2);
}
function setFormat() {
_tFormat = new TextFormat();
_tFormat.size = 40;
_tFormat.bold = true;
_tFormat.font = "Arial";
_tFormat.color = _tColor;
_tFormat.align = "center";
}
function makeTextField() {
_tField = _mc.createTextField("_tField", 20, _padding / 2, 0, _bg._width - _padding, _bg._height + 5);
_tField.selectable = false;
_tField.multiline = true;
_tField.autoSize = true;
_tField.wordWrap = true;
_tField.setTextFormat(_tFormat);
}
function setSizeLimits() {
var _local2 = 0.3;
switch (_controller.config.textSize) {
case 0 :
_local2 = 0.075;
break;
case 1 :
_local2 = 0.15;
break;
case 2 :
_local2 = 0.2;
break;
case 3 :
_local2 = 0.25;
break;
default :
_local2 = 0.3;
}
_local2 = _local2 * 0.66;
_stageWidth = _controller.config.SW;
_stageHeight = _controller.config.SH;
_maxWidth = _controller.config.SW;
_maxHeight = _controller.config.SH * _local2;
}
function showCaption(string, delay, autohide, scope, callback, args) {
clearInterval(_hideInterval);
hideCaption();
makeTextField();
_tField._visible = false;
_cb = callback || (_cb);
_scope = scope || (_scope);
_args = args || (_args);
_delay = delay || (_delay);
_autohide = autohide || (autohide);
if (string) {
_tField.text = string;
setFormat();
_tField.setTextFormat(_tFormat);
if (com.slide.utils.StringUtil.isForeign(string)) {
_tField.embedFonts = false;
} else if (_tFormat != undefined) {
_tField.embedFonts = _embedFonts;
}
com.slide.utils.StringUtil.fitSize(_tField, _bg._width, _bg._height);
var _local3 = _tField.getTextFormat();
_tFormat.size = _local3.size;
var _local5 = _tField._height;
_tField.text = "";
var _local4 = com.slide.utils.StringUtil.trimToField(string, _tField, "", _local5);
_tField.text = _local4;
_tField.setTextFormat(_tFormat);
_tField._y = ((_bg._height - _tField.textHeight) / 2) - 2;
fadeIn();
} else {
_mc._visisble = false;
if (!_autohide) {
_hideInterval = setInterval(this, "callback", _delay * 800);
}
}
}
function fadeIn() {
_tField._alpha = 100;
_mc._alpha = 0;
_mc._visible = true;
_mc.alphaTo(100, _delay / 3, "easeInQuad", 0, {scope:this, func:stall});
}
function stall() {
_tField._visible = true;
if (!_autohide) {
_hideInterval = setInterval(this, "callback", _delay * 700);
}
}
function callback() {
clearInterval(_hideInterval);
_scope[_cb](_args);
}
function setMargins(margins) {
_margin.side = margins.side;
_margin.top = margins.top;
setFormat();
setSizeLimits();
makeBg();
makeTextField();
}
var _bgAlpha = 70;
var _padding = 10;
var _margin = {side:0, top:0};
}
Symbol 114 MovieClip [__Packages.com.slide.utils.StringUtil] Frame 0
class com.slide.utils.StringUtil
{
function StringUtil () {
}
static function trimToField(s, tf, endStr, h) {
endStr = endStr || "...";
var _local9 = s.length;
tf.autoSize = false;
tf.wordWrap = true;
var _local6 = s.split(" ");
var _local2;
var _local7 = _local6.length;
_local2 = 0;
while (_local2 < _local7) {
var _local3 = h || (tf._height);
tf.text = tf.text + (" " + _local6[_local2]);
if (tf.textHeight >= _local3) {
if (tf.textWidth >= tf._width) {
s = tf.text.substring(0, tf.text.lastIndexOf(" ") - endStr.length);
break;
}
}
_local2++;
}
if (s.length != _local9) {
var _local10 = s.lastIndexOf(" ");
s = s.substring(0, _local10) + endStr;
}
return(s);
}
static function lTrim(s) {
if ((s.length > 1) || (((s.length == 1) && (s.charCodeAt(0) > 32)) && (s.charCodeAt(0) < 255))) {
var _local1 = 0;
while ((_local1 < s.length) && ((s.charCodeAt(_local1) <= 32) || (s.charCodeAt(_local1) >= 255))) {
_local1++;
}
s = s.substring(_local1);
} else {
s = "";
}
return(s);
}
static function sanitiseHTML(s) {
var _local1 = 0;
while (_local1 < _entityArr.length) {
var _local2 = _entityArr[_local1];
s = s.split(_local2.char).join(_local2.rep);
_local1++;
}
s = lTrim(s);
s = s.split("\n\n").join(newline);
return(s);
}
static function parseDate(dateStr) {
var _local1 = dateStr.split("/");
var _local5 = Number(_local1[2]);
var _local3 = Number(_local1[0] - 1);
var _local4 = Number(_local1[1]);
var _local2 = new Date(_local5, _local3, _local4, 0, 0, 0, 0);
return(_local2);
}
static function isForeign(str) {
var _local1 = 0;
var _local2 = str.length;
_local1 = 0;
while (_local1 < _local2) {
if (str.charCodeAt(_local1) > 123) {
return(true);
}
_local1++;
}
return(false);
}
static function fitSize(txt, txtWd, txtHt) {
txt.autoSize = false;
var _local1 = txt.getTextFormat();
_local1.size = txtHt;
if (txt.text == "") {
return(undefined);
}
var _local8 = txt.text;
var _local7 = 0;
var _local3 = 2;
var _local2;
var _local6 = txt._width;
var _local5 = txt._height;
do {
if (_local1.getTextExtent(txt.text, _local6).textFieldHeight == _local5) {
break;
}
if (_local1.getTextExtent(txt.text, _local6).textFieldHeight < _local5) {
_local1.size = _local1.size + (_local1.size / _local3);
_local7++;
if (((_local2 == _local1.size) || ((_local2 + 1) == _local1.size)) || ((_local2 - 1) == _local1.size)) {
break;
}
_local2 = _local1.size;
_local3 = _local3 + 2;
}
if (_local1.getTextExtent(txt.text, _local6).textFieldHeight > _local5) {
_local1.size = _local1.size - (_local1.size / _local3);
_local7++;
if (((_local2 == _local1.size) || ((_local2 + 1) == _local1.size)) || ((_local2 - 1) == _local1.size)) {
break;
}
_local2 = _local1.size;
_local3 = _local3 + 2;
}
} while (!((_local1.getTextExtent(txt.text, _local6).textFieldHeight == _local5) || (_local7 > 4)));
txt.setTextFormat(_local1);
txt.setNewTextFormat(_local1);
}
static var _entityArr = [{char:"<P>", rep:newline}, {char:"<p>", rep:newline}, {char:"</P>", rep:""}, {char:"</p>", rep:""}];
static var _DAY_NAMES_ARR = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
static var _MONTH_NAMES_ARR = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
}
Symbol 115 MovieClip [__Packages.SlideXML] Frame 0
class SlideXML
{
function SlideXML () {
}
static function convertPlistGeneric(node) {
switch (node.nodeName.toLowerCase()) {
case "dict" :
return(convertPlistDict(node));
case "array" :
return(convertPlistArray(node));
case "string" :
return(convertPlistString(node));
case "integer" :
return(convertPlistInteger(node));
case "integer" :
return(convertPlistReal(node));
case "true" :
return(true);
case "false" :
return(false);
case "null" :
return(null);
case "s" :
return(convertPlistItem(node));
}
}
static function convertPlistDict(plist) {
var _local5 = {};
var _local1 = 0;
while (_local1 < plist.childNodes.length) {
var _local3 = plist.childNodes[_local1].childNodes[0].nodeValue;
var _local2 = plist.childNodes[_local1 + 1];
_local5[_local3] = convertPlistGeneric(_local2);
_local1 = _local1 + 2;
}
return(_local5);
}
static function convertNodeNameToKey(node) {
var _local1 = node.nodeName.toLowerCase();
switch (_local1) {
case "d" :
return("description");
case "t" :
return("target_url");
case "i" :
return("item_img_url");
case "f" :
return("fallback_img_url");
case "m" :
return("media_url");
case "c" :
return("content_type");
case "n" :
return("ciid");
}
return(String(_local1));
}
static function convertPlistItem(plist) {
var _local5 = {};
var _local1 = 0;
while (_local1 < plist.childNodes.length) {
var _local3 = convertNodeNameToKey(plist.childNodes[_local1]);
var _local2 = plist.childNodes[_local1].childNodes[0].nodeValue;
_local5[_local3] = _local2;
_local1++;
}
return(_local5);
}
static function convertPlistSticker(plist) {
var _local5 = {};
var _local1 = 0;
while (_local1 < plist.childNodes.length) {
var _local3 = plist.childNodes[_local1].nodeName;
var _local2 = plist.childNodes[_local1].childNodes[0].nodeValue;
_local5[_local3] = _local2;
_local1++;
}
return(_local5);
}
static function convertPlistArray(node) {
var _local3 = [];
var _local1 = 0;
while (_local1 < node.childNodes.length) {
_local3.push(convertPlistGeneric(node.childNodes[_local1]));
_local1++;
}
return(_local3);
}
static function convertPlistString(node) {
return(node.childNodes[0].nodeValue);
}
static function convertPlistInteger(node) {
return(parseInt(node.childNodes[0].nodeValue));
}
static function convertPlistReal(node) {
return(parseFloat(node.childNodes[0].nodeValue));
}
static function parseUploadSlot(data) {
var _local3 = new Object();
var _local2 = data.firstChild.childNodes;
var _local1 = 0;
while (_local1 < _local2.length) {
if ((_local2[_local1].nodeName == "key") && (_local2[_local1].firstChild.nodeValue == "upload_url")) {
_local3.upload_url = _local2[_local1 + 1].firstChild.nodeValue;
}
if ((_local2[_local1].nodeName == "key") && (_local2[_local1].firstChild.nodeValue == "share_url")) {
_local3.share_url = _local2[_local1 + 1].firstChild.nodeValue;
}
if ((_local2[_local1].nodeName == "key") && (_local2[_local1].firstChild.nodeValue == "detail_url")) {
_local3.detail_url = _local2[_local1 + 1].firstChild.nodeValue;
}
if ((_local2[_local1].nodeName == "key") && (_local2[_local1].firstChild.nodeValue == "img_url")) {
_local3.img_url = _local2[_local1 + 1].firstChild.nodeValue;
}
_local1++;
}
return(_local3);
}
static function parseUploadDetails(data) {
var _local3 = new Object();
var _local2 = data.firstChild.childNodes;
var _local1 = 0;
while (_local1 < _local2.length) {
if ((_local2[_local1].nodeName == "key") && (_local2[_local1].firstChild.nodeValue == "rc")) {
_local3.rc = Number(_local2[_local1 + 1].firstChild.nodeValue);
}
if ((_local2[_local1].nodeName == "key") && (_local2[_local1].firstChild.nodeValue == "content_type")) {
_local3.content_type = String(_local2[_local1 + 1].firstChild.nodeValue);
}
if ((_local2[_local1].nodeName == "key") && (_local2[_local1].firstChild.nodeValue == "filename")) {
_local3.filename = String(_local2[_local1 + 1].firstChild.nodeValue);
}
_local1++;
}
return(_local3);
}
}
Symbol 116 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 117 MovieClip [__Packages.SkinnableControls] Frame 0
class SkinnableControls
{
var skinConfig, control_names, h, clip, panel_mc, background_mc, mask_mc, w, controls, closed_width, ALIGN, __get__align, __get__autoclose, x, y;
function SkinnableControls (clip, control_names, skinConfig, h) {
mx.events.EventDispatcher.initialize(this);
this.skinConfig = skinConfig;
this.control_names = control_names;
this.h = h || 30;
this.clip = clip;
checkColors();
createClips();
attachControls();
drawBackground();
drawMask();
detectRollOvers();
}
function checkColors() {
if (skinConfig == undefined) {
skinConfig = defaultConfig();
}
}
function defaultConfig() {
return({primary_color:2500134, secondary_color:6710886, text_color:16777215});
}
function createClips() {
panel_mc = clip.createEmptyMovieClip("panel_mc", clip.getNextHighestDepth());
background_mc = panel_mc.createEmptyMovieClip("background_mc", panel_mc.getNextHighestDepth());
mask_mc = clip.createEmptyMovieClip("mask_mc", clip.getNextHighestDepth());
panel_mc.setMask(mask_mc);
background_mc.onRollOver = function () {
};
}
function drawBackground() {
roundedRect(background_mc, 0, 0, w, h, 95, skinConfig.primary_color || 13421772, corner);
}
function drawMask() {
roundedRect(mask_mc, 0, 0, w + 1, h + 1, 100, 0, corner);
}
function detectRollOvers() {
var scope = this;
clip.onEnterFrame = function () {
if (scope.isMouseOver(scope.clip._xmouse, scope.clip._ymouse)) {
if (!scope.mouseover) {
scope.onPanelOver();
scope.mouseover = true;
}
} else if (scope.mouseover) {
scope.onPanelOut();
scope.mouseover = false;
}
};
}
function isMouseOver(xx, yy) {
if ((((xx > 0) and (xx < mask_mc._width)) and (yy > 0)) and (yy < mask_mc._height)) {
return(true);
}
return(false);
}
function attachControls() {
controls = new Array();
var _local4 = left_padding;
var _local3 = 0;
while (_local3 < control_names.length) {
var _local2 = panel_mc.attachMovie(control_names[_local3], control_names[_local3], panel_mc.getNextHighestDepth());
_local2._x = _local4;
_local2._y = top_padding;
scaleControl(_local2);
skinControl(_local2);
wireControl(_local2);
controls.push(_local2);
_local4 = _local4 + (_local2._width + control_space);
_local3++;
}
closed_width = (2 * left_padding) + controls[0]._width;
w = (_local4 - control_space) + right_padding;
}
function scaleControl(c) {
c._height = h - (top_padding + bottom_padding);
c._xscale = c._yscale;
}
function skinControl(c) {
var _local3;
for (var _local4 in c) {
if (typeof(c[_local4]) == "movieclip") {
if (c[_local4]._name.indexOf("primary") != -1) {
_local3 = new Color(c[_local4]);
_local3.setRGB(skinConfig.primary_color);
} else if (c[_local4]._name.indexOf("secondary") != -1) {
_local3 = new Color(c[_local4]);
_local3.setRGB(skinConfig.secondary_color);
} else if (c[_local4]._name.indexOf("text") != -1) {
_local3 = new Color(c[_local4]);
_local3.setRGB(skinConfig.text_color);
}
}
}
}
function wireControl(c) {
var scope = this;
c.onRelease = function () {
scope.onControlClick(this);
};
c.onRollOver = function () {
scope.onControlOver(this);
};
c.onRollOut = function () {
scope.onControlOut(this);
};
}
function onPanelOver() {
first_action = true;
if (!AUTO_CLOSE) {
return(undefined);
}
if (_state != OPENED) {
open();
}
}
function onPanelOut() {
if ((!AUTO_CLOSE) or (!first_action)) {
return(undefined);
}
if (_state != CLOSED) {
close();
}
}
function onControlOver(c) {
c._alpha = 100;
c.filters = getGlowFilter();
fire("onControlOver", c);
}
function onControlOut(c) {
c._alpha = 100;
c.filters = new Array();
fire("onControlOut", c);
}
function onControlClick(c) {
first_action = true;
fire("onControlClick", c);
}
function fire(event_type, target_mc) {
var _local2 = {target:target_mc, type:event_type};
dispatchEvent(_local2);
}
function getControl(n) {
var _local2 = 0;
while (_local2 < controls.length) {
if (controls[_local2]._name == n) {
return(controls[_local2]);
}
_local2++;
}
}
function open() {
var _local4 = this;
if (_state == OPENED) {
return(undefined);
}
_state = OPENED;
var _local3 = new mx.transitions.Tween(mask_mc, "_width", TWEEN, mask_mc._width, w, tween_seconds, true);
var _local2 = new mx.transitions.Tween(clip, "_x", TWEEN, clip._x, getOpenedPosition(), tween_seconds, true);
}
function close() {
var _local4 = this;
if (_state == CLOSED) {
return(undefined);
}
_state = CLOSED;
var _local3 = new mx.transitions.Tween(mask_mc, "_width", TWEEN, mask_mc._width, closed_width, tween_seconds, true);
var _local2 = new mx.transitions.Tween(clip, "_x", TWEEN, clip._x, getClosedPosition(), tween_seconds, true);
}
function set align(str) {
ALIGN = str;
position();
//return(__get__align());
}
function set autoclose(b) {
AUTO_CLOSE = b;
//return(__get__autoclose());
}
function get _x() {
return(x);
}
function set _x(xval) {
x = xval;
position();
//return(_x);
}
function get _y() {
return(clip._y);
}
function set _y(yval) {
y = yval;
position();
//return(_y);
}
function position() {
clip._y = y;
switch (ALIGN) {
case "center" :
clip._x = x - (w / 2);
break;
case "left" :
clip._x = x;
break;
case "right" :
clip._x = x - w;
break;
default :
clip._x = x;
}
}
function getClosedPosition() {
switch (ALIGN) {
case "center" :
return(x - (closed_width / 2));
case "left" :
return(x);
case "right" :
return(x - closed_width);
}
return(x);
}
function getOpenedPosition() {
switch (ALIGN) {
case "center" :
return(x - (w / 2));
case "left" :
return(x);
case "right" :
return(x - w);
}
return(x);
}
function getGlowFilter() {
var _local4 = 16777215 /* 0xFFFFFF */;
var _local10 = 0.8;
var _local7 = 3;
var _local6 = 3;
var _local8 = 1;
var _local2 = 10;
var _local5 = false;
var _local9 = false;
var _local3 = new flash.filters.GlowFilter(_local4, _local10, _local7, _local6, _local8, _local2, _local5, _local9);
var _local1 = new Array();
_local1.push(_local3);
return(_local1);
}
function getShadowFilter() {
var _local6 = 1;
var _local2 = 45;
var _local5 = 0;
var _local13 = 0.8;
var _local9 = 2;
var _local8 = 2;
var _local11 = 1;
var _local3 = 10;
var _local7 = false;
var _local12 = false;
var _local10 = false;
var _local4 = new flash.filters.DropShadowFilter(_local6, _local2, _local5, _local13, _local9, _local8, _local11, _local3, _local7, _local12, _local10);
var _local1 = new Array();
_local1.push(_local4);
return(_local1);
}
function roundedRect(target_mc, x0, y0, x1, y1, alpha, color, radius) {
var _local2 = (radius ? (radius) : 0);
target_mc.moveTo(x0 + _local2, y0);
target_mc.beginFill(color, alpha);
target_mc.lineTo(x1 - _local2, y0);
target_mc.curveTo(x1, y0, x1, y0 + _local2);
target_mc.lineTo(x1, y1 - _local2);
target_mc.curveTo(x1, y1, x1 - _local2, y1);
target_mc.lineTo(x0 + _local2, y1);
target_mc.curveTo(x0, y1, x0, y1 - _local2);
target_mc.lineTo(x0, y0 + _local2);
target_mc.curveTo(x0, y0, x0 + _local2, y0);
target_mc.endFill();
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
var top_padding = 3;
var bottom_padding = 3;
var left_padding = 4;
var right_padding = 4;
var control_space = 5;
var corner = 4;
var tween_seconds = 0.2;
var AUTO_CLOSE = false;
var TWEEN = null;
var OPENED = 0;
var CLOSED = 1;
var _state = SkinnableControls.prototype.OPENED;
var mouseover = false;
var first_action = false;
}
Symbol 118 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 119 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 120 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 121 MovieClip [__Packages.GenericBroadcaster] Frame 0
class GenericBroadcaster
{
function GenericBroadcaster () {
mx.events.EventDispatcher.initialize(this);
}
function wrapDispatchEvent(eventObject) {
eventObject.target = this;
dispatchEvent(eventObject);
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
}
Symbol 122 MovieClip [__Packages.Local] Frame 0
class Local extends GenericBroadcaster
{
var wrapDispatchEvent;
function Local () {
super();
}
function parseIt(xml_obj) {
var _local4 = {};
var _local3 = 0;
while (_local3 < xml_obj.childNodes.length) {
var _local2 = xml_obj.childNodes[_local3];
if (_local2.attributes.id) {
_local4[_local2.attributes.id] = "";
}
if (_local2.childNodes.length > 0) {
_local4[_local2.attributes.id] = parseIt(_local2);
} else if ((_local2.nodeValue != null) && (has_real_text(String(_local2.nodeValue)))) {
return(String(_local2.nodeValue));
}
_local3++;
}
return(_local4);
}
function loadLangXML(fileName, retry) {
var _local3 = constructXmlUrl(fileName);
var scope = this;
var _local2 = new XML();
_local2.onLoad = function (success) {
if (success) {
scope.onXmlLoaded(this, fileName);
} else {
Local.langIsJanky();
if (!retry) {
scope.loadLangXML(fileName, true);
}
}
};
_local2.load(_local3);
}
function onXmlLoaded(x, fName) {
var _local2 = parseIt(x.firstChild);
_langStrings[fName] = _local2;
wrapDispatchEvent({type:"Local_xmlLoaded", content:_local2, name:fName});
}
function has_real_text(astring) {
var _local1 = 0;
while (_local1 < astring.length) {
var _local2 = astring.charCodeAt(_local1);
if ((_local2 != 9) && (_local2 != 10)) {
return(true);
}
_local1++;
}
return(false);
}
static function constructXmlUrl(fileName) {
var _local1 = getLangKey();
return(((com.slide.FlashVars.__get__GLOBAL_CFG().lang_url + _local1) + "/") + fileName);
}
static function chopLangKey(langKey) {
langKey = langKey.toUpperCase();
if (langKey == "ZH-CN") {
return("ZH-CN");
}
return(langKey.substr(0, 2));
}
static function getLangKey() {
var _local1 = chopLangKey(findLanguage());
if (_local1 == "undefined") {
_local1 = "EN";
}
return(_local1);
}
static function langIsJanky() {
_language = "EN";
}
static function findLanguage() {
if (_language) {
return(_language);
}
if (existsInConfig()) {
_language = com.slide.FlashVars.__get__GLOBAL_CFG().lang;
} else {
_language = "EN";
}
return(_language);
}
static function existsInConfig() {
if ((com.slide.FlashVars.__get__GLOBAL_CFG().lang == "xx") || (!com.slide.FlashVars.__get__GLOBAL_CFG().lang)) {
return(false);
}
return(true);
}
static function getSystemLanguage() {
return(System.capabilities.language);
}
static function getStrings(file, key) {
if (!_langStrings[file]) {
return(undefined);
}
if (!key) {
return(_langStrings[file]);
}
return(_langStrings[file][key]);
}
static var _language = undefined;
static var _langStrings = {};
}
Symbol 123 MovieClip [__Packages.com.slide.FlashVars] Frame 0
class com.slide.FlashVars
{
static var _skinConfig, _tickerCfg, _globalCfg, _itemArray, _fullDict;
function FlashVars () {
}
static function showViewerUpload() {
switch (TICKER_CFG.publish_status) {
case "public" :
return(true);
case "moderate" :
return(true);
}
return(false);
}
static function get ARTIST_INFO_CLICK() {
return(parseMap(3));
}
static function get BG_CLICK() {
return(parseMap(2));
}
static function get CHANNEL() {
return(_channel);
}
static function get GB_ITEM_CLICK() {
return(parseMap(5));
}
static function get ITEM_CLICK() {
return(parseMap(0));
}
static function get LANGUAGE() {
return(_language.toLowerCase());
}
static function get SHOW_AD() {
return(parseMap(4));
}
static function get SHOW_MENU() {
return(parseMap(6) == ONE);
}
static function get SHOW_NOTICE() {
return(parseMap(7) == ONE);
}
static function get SKIN_CLICK() {
return(parseMap(1));
}
static function get TARGET_WINDOW() {
return(parseTargetWindow(parseMap(8)));
}
static function get WIDGET_URL() {
var _local2 = _root._url.split("\\").join("/").split("/");
_local2.pop();
var _local3 = _local2.join("/") + "/";
return(_local3);
}
static function get SKIN_CONFIG() {
return(_skinConfig);
}
static function set SKIN_CONFIG(o) {
_skinConfig = o;
//return(SKIN_CONFIG);
}
static function get TICKER_CFG() {
return(_tickerCfg);
}
static function set TICKER_CFG(o) {
if (!(_root.sc === undefined)) {
o.stageColor = _root.sc;
}
_tickerCfg = o;
//return(TICKER_CFG);
}
static function get GLOBAL_CFG() {
return(_globalCfg);
}
static function set GLOBAL_CFG(o) {
_globalCfg = o;
//return(GLOBAL_CFG);
}
static function get ITEM_ARRAY() {
return(_itemArray);
}
static function set ITEM_ARRAY(o) {
_itemArray = o;
//return(ITEM_ARRAY);
}
static function get FULL_DICT() {
return(_fullDict);
}
static function set FULL_DICT(o) {
_fullDict = o;
//return(FULL_DICT);
}
static function clearAll() {
_channel = null;
_language = null;
_itemArray = null;
_globalCfg = null;
_tickerCfg = null;
_fullDict = null;
}
static function findVar(prop) {
var _local4 = 10;
var _local2 = "amp;" + prop;
var _local5 = 0;
do {
if (_root[prop] === undefined) {
_root[prop] = _root[_local2];
_local2 = "amp;" + _local2;
} else {
return(_root[prop]);
}
} while ((_local5++) < _local4);
}
static function parseMap(index) {
var _local4 = (_root.map || (TICKER_CFG.default_map)) || (MAP_DEFAULT);
var _local2 = _local4.split("")[index];
if ((_local2 === "_") || (_local2 === undefined)) {
var _local3 = TICKER_CFG.default_map || (MAP_DEFAULT);
_local2 = _local3.split("")[index] || "0";
}
return(_local2);
}
static function parseTargetWindow(targetValue) {
switch (targetValue) {
case "0" :
return(com.slide.utils.URL._SELF);
case "1" :
return(com.slide.utils.URL._BLANK);
case "2" :
return(com.slide.utils.URL._TOP);
case "3" :
return(com.slide.utils.URL._DIE);
case "4" :
return(com.slide.utils.URL._PARENT);
}
return(com.slide.utils.URL._BLANK);
}
static function WEB_DOMAIN() {
return(_globalCfg.ad_click);
}
var nopretty = "";
static var _channel = findVar("channel") || "4294972048";
static var _language = findVar("lang") || "en-us";
static var MAP_DEFAULT = "546111111";
static var ONE = "1";
}
Symbol 124 MovieClip [__Packages.com.slide.utils.URL] Frame 0
class com.slide.utils.URL
{
function URL () {
}
static function parseUrl(url) {
var _local2 = url.split(BSLASH).join(FSLASH).split(FSLASH);
var _local1 = {};
_local1.url = url + "";
_local1.protocol = _local2[0].slice(0, -1);
_local1.domain = _local2[2].split(":")[0];
_local1.port = _local2[2].split(":")[1];
_local1.path = _local2.slice(2, -1).join(FSLASH) + FSLASH;
_local1.file = _local2.slice(-1).pop().split("?")[0];
_local1.query = _local2.slice(-1).pop().split("?")[1];
_local1.base = _local2.slice(0, 3).join(FSLASH) + FSLASH;
return(_local1);
}
static function decoFinder(base, itm) {
var _local1;
_local1 = base + "decofinder2/0/0/";
_local1 = _local1 + escape(imageUrl(itm));
return(_local1);
}
static function imageUrl(itm) {
var _local1;
_local1 = (isInArray(itm.content_type, SUPPORTEDIMG) ? (itm.media_url) : (itm.item_img_url));
return(_local1);
}
static function isInArray(input, arrayData) {
var _local1 = 0;
while (_local1 < arrayData.length) {
if (arrayData[_local1] == input) {
return(true);
}
_local1++;
}
return(false);
}
static function cleanURL(url) {
if ((url.indexOf("?") == -1) && (url.indexOf("&") == -1)) {
return(url);
}
var _local1 = url.split("?").join("&").split("&");
var _local3 = _local1.shift();
return((_local3 + "?") + _local1.join("&"));
}
static function createEmptyTarget(namespace) {
var _local3 = _root.hidden_mc || (_root.createEmptyMovieClip("hidden_mc", com.slide.managers.RootDepthManager.HIDDEN));
var _local2 = _root.hidden_mc;
return(_local2[namespace] || (_local2.createEmptyMovieClip(namespace, _local2.getNextHighestDepth())));
}
static function getEmbeddedURL(callback, fullURL) {
var _local5 = "com.slide.utils.URL.getEmbeddedURL";
var cb = callback;
var _local1 = {};
_local1.onLoadError = function (target) {
var _local1 = target._url + "";
target.unloadMovie();
cb(_local1.substr(0, _local1.lastIndexOf("/")));
};
_local1.onLoadInit = function (target) {
var _local1 = target._url + "";
target.unloadMovie();
cb(_local1.substr(0, _local1.lastIndexOf("/")));
};
var _local4 = createEmptyTarget(_local5);
var _local3 = new MovieClipLoader();
_local3.addListener(_local1);
_local3.loadClip((fullURL ? "" : "/") + "favicon.ico", _local4);
}
static function getURL(url, window, method) {
var _local3 = (window || (com.slide.FlashVars.__get__TARGET_WINDOW())) || (_BLANK);
if (_local3 == _DIE) {
} else {
url = url || "http://www.slide.com/?url=false";
url = cleanURL(url);
if (_local3 == _SELF) {
_root.getURL(url);
} else {
_root.getURL(url, _local3);
}
}
}
static var _DIE = "slide.com.utils.url._die";
static var _BLANK = "_blank";
static var _SELF = "_self";
static var _TOP = "_top";
static var _PARENT = "_parent";
static var FSLASH = "/";
static var BSLASH = "\\";
static var SUPPORTEDIMG = ["image/jpeg", "image/gif", "image/png"];
}
Symbol 125 MovieClip [__Packages.com.slide.managers.DepthManager] Frame 0
class com.slide.managers.DepthManager
{
var _managee, _mc, _depth;
function DepthManager (mc) {
_managee = mc;
}
function swapTop(clip) {
if (_mc) {
_mc.swapDepth(_depth);
}
_mc = clip;
_depth = _mc.getDepth();
var _local2 = _managee.getNextHighestDepth();
clip.swapDepths(_local2);
}
}
Symbol 126 MovieClip [__Packages.com.slide.managers.RootDepthManager] Frame 0
class com.slide.managers.RootDepthManager extends com.slide.managers.DepthManager
{
function RootDepthManager () {
super(_root);
}
static var STAGE_LISTENER_MC = -100004;
static var HIDDEN = -100001;
static var PACKAGES = -100000;
static var MASK_MC = -16383;
static var PRELOADER_MC = -16381;
static var NOTICE_MC = -16377;
static var _QUANTCAST_COM = 0;
static var TRANS_BG = 1;
static var SKIN_BG = 2;
static var TRANSITION_MC = 3;
static var FX_MC = 99;
static var THEME_MC = 100;
static var CONTROLS_MC = 1100;
static var SBUTTON = 200;
static var AD_MC = 201;
static var SKIN_MC = 999;
static var NCAPTION_MC = 1000;
static var __JAVASCRIPT_CALLBACK = 1562;
static var _TH_ = 6788;
static var CAPTION_MC = 6799;
static var FANTAB_MC = 6800;
static var VIDEO_GUI_MC = 6801;
static var MUSIC_GUI_MC = 6802;
static var BUG_MC = 6803;
static var MENU_MC = 6804;
static var LOADBAR_MC = 6805;
static var THIRD_PARTY_AD_UNIT = 9000;
}
Symbol 127 MovieClip [__Packages.com.slide.event.MasterEvent] Frame 0
class com.slide.event.MasterEvent
{
static var _instance;
function MasterEvent (deny) {
if (!deny) {
_global.assert(false, 1);
return;
}
if (!_instance) {
mx.events.EventDispatcher.initialize(this);
_global.slide = _global.slide || ({});
_global.slide.MasterEvent = _instance;
}
}
static function getInstance() {
_instance = _instance || (new com.slide.event.MasterEvent(new com.slide.SingletonEnforcer()));
return(_instance);
}
}
Symbol 128 MovieClip [__Packages.com.slide.SingletonEnforcer] Frame 0
class com.slide.SingletonEnforcer
{
function SingletonEnforcer () {
}
}
Symbol 129 MovieClip [__Packages.com.slide.sis.Translog] Frame 0
class com.slide.sis.Translog extends com.slide.sis.SISConnector
{
static var PREVIOUS_VIEW, CURRENT_VIEW;
var ROOT_URL;
function Translog () {
super();
}
static function logAction(action, callback, context, data) {
var _local1 = new com.slide.sis.Translog();
_local1.logEvent(com.slide.FlashVars.__get__CHANNEL(), action, PREVIOUS_VIEW, CURRENT_VIEW, callback, context, data);
}
function logEvent(cid, action, previous_view, current_view, req_lang, rend_lang, callback, context, data) {
if (!req_lang) {
req_lang = "";
}
if (!rend_lang) {
rend_lang = "";
}
var _local2 = new LoadVars();
_local2.channel_id = cid;
_local2.previous_action = action;
_local2.previous_view = previous_view;
_local2.current_view = current_view;
_local2.req_lang = req_lang;
_local2.rend_lang = rend_lang;
var _local6 = ROOT_URL + "translog";
var _local4 = new com.slide.sis.LoadVarsTarget(builder, this, callback, context, data);
_local2.sendAndLoad(_local6, _local4, "GET");
}
static function getURLWithLogging(url, cid, action, previous_view, current_view) {
var _local1 = [];
if (url.indexOf(cid) == -1) {
_local1.cid = cid;
}
if (action) {
_local1.previous_action = action;
}
if (previous_view) {
_local1.previous_view = previous_view;
}
if (current_view) {
_local1.current_view = current_view;
}
var _local2 = [];
for (var _local3 in _local1) {
_local2.push((_local3 + "=") + _local1[_local3]);
}
return((url + ((url.indexOf("?") == -1) ? "?" : "&")) + _local2.join("&"));
}
function builder(result, callback, context, data) {
var _local2 = {};
var _local3 = 0;
_local2.src = result._src;
_local2.count = result.count || (_local3);
_local2.sum = result.sum || (_local3 * _local3);
_local2.average = result.average || (_local3);
_local2.rc = result.rc || (_local3);
_local2.rank = (_local2.count ? (Math.round((_local2.sum * 10) / _local2.count) / 10) : (_local3));
callback.apply(context, [_local2].concat(arguments.slice(3)));
}
static var ACTION_MAP = {};
}
Symbol 130 MovieClip [__Packages.com.slide.sis.LoadVarsTarget] Frame 0
class com.slide.sis.LoadVarsTarget extends LoadVars
{
var _timer, _callback, _context, _data, _src, decode;
function LoadVarsTarget (callback, context) {
super();
_timer = getTimer();
_callback = callback;
_context = context;
_data = [this].concat(arguments.slice(2));
}
function onData(src) {
var _local2 = getTimer();
_src = src + "";
decode(src);
_callback.apply(_context, _data);
}
function toString() {
return(_src || null);
}
}
Symbol 131 MovieClip [__Packages.com.slide.sis.PackageLoader] Frame 0
class com.slide.sis.PackageLoader extends MovieClipLoader
{
static var _packages;
var callback, context, data, url, addListener, loadClip;
function PackageLoader (pName, callback, context, data) {
super();
_packages = _packages || (_root.createEmptyMovieClip(namespace, -100000));
_packages = _root[namespace];
_packages._visible = false;
this.callback = callback;
this.context = context;
this.data = data;
url = ((com.slide.FlashVars.__get__WIDGET_URL() + "packages/") + pName) + ".swf";
if (_packages[pName]) {
callback.apply(context, [true, data]);
} else {
var _local4 = {};
_local4.context = this;
_local4.onLoadInit = function (target) {
this.context.onLoadSuccess.apply(this.context);
};
_local4.onLoadError = function (target) {
this.context.onLoadFailure.apply(this.context);
};
addListener(_local4);
_packages.createEmptyMovieClip(pName, _packages.getNextHighestDepth());
loadClip(url, _packages[pName]);
}
}
function onLoadFailure() {
callback.apply(context, [false, data]);
}
function onLoadSuccess() {
callback.apply(context, [true, data]);
}
var namespace = "com.slide.sis.PackageLoader.packages";
}
Symbol 132 MovieClip [__Packages.com.slide.utils.XMLUtils] Frame 0
class com.slide.utils.XMLUtils
{
function XMLUtils () {
}
static function parseGenericXML(src, type) {
type = type || (NAMED_NODE);
var _local1 = {};
if (!(type === NAMED_NODE)) {
} else {
_local1 = parseNodeNamedXML(src.childNodes);
}
return(_local1);
}
static function parseNodeNamedXML(src) {
var _local4 = {};
for (var _local5 in src) {
var _local2 = src[_local5].nodeName;
var _local3 = src[_local5].nodeType;
switch (_local3) {
case 1 :
_local4[_local2] = parseNodeNamedXML(src[_local5].childNodes);
break;
case 3 :
return(src[_local5].nodeValue);
}
}
return(_local4);
}
static var NAMED_NODE = 1;
}
Symbol 133 MovieClip [__Packages.com.slide.sis.IFetcher] Frame 0
interface com.slide.sis.IFetcher
{
}
Symbol 134 MovieClip [__Packages.com.slide.sis.Fetcher] Frame 0
class com.slide.sis.Fetcher extends MovieClip implements com.slide.sis.IFetcher
{
var requester, controller, recipient_mc, item_array, to_reuse_array, in_use_mc_array, callback, item_mc, par, broadcastMessage, first_missing_url;
function Fetcher (requester, is_arrange, controller) {
super();
AsBroadcaster.initialize(this);
this.requester = requester;
this.is_arrange = is_arrange;
this.controller = controller;
recipient_mc = _root.transition_mc;
item_array = [];
to_reuse_array = [];
in_use_mc_array = [];
}
function addListener(listener) {
}
function getNextItem(callback, num_copies) {
_getNextItem(callback, num_copies);
}
function recycleItem(item_mc) {
_recycleItem(item_mc);
}
function setRecipient(recipient_mc) {
_setRecipient(recipient_mc);
}
function _getNextItem(callback, num_copies) {
if ((requester.getLength() != 0) && (item_array.length < 300)) {
this.callback = callback;
this.num_copies = num_copies || 1;
item_mc = getNextTarget();
item_mc.meta = requester.getNextItem();
item_mc.nc = num_copies;
item_mc.cb = callback;
num_loaded = 0;
setMouseActions(item_mc);
if (item_mc.meta.item_img_url && (item_mc.meta.item_img_url != "")) {
loadNextItem(callback, item_mc);
item_mc.meta.item_type = "image";
item_mc.meta.has_mouse = true;
} else {
makeTextItem(this.callback, item_mc);
}
}
}
function _recycleItem(item_mc) {
if (item_mc) {
item_mc._x = (item_mc._y = 0);
item_mc._xscale = (item_mc._yscale = 100);
item_mc._alpha = 100;
if (item_mc.meta.item_type == "text") {
item_mc.smart_text.kill();
item_mc.smart_text.removeMovieClip();
}
if (item_mc.meta.item_type == "text") {
item_mc.smart_text.kill();
item_mc.smart_text.removeMovieClip();
}
for (var _local3 in item_mc.image_array) {
item_mc.image_array[_local3].removeMovieClip();
}
item_mc.images_mc.removeMovieClip();
item_mc.meta = 0;
to_reuse_array.push(item_mc);
}
}
function _setRecipient(recipient_mc) {
if (recipient_mc) {
this.recipient_mc = recipient_mc;
}
}
function getNextTarget() {
var _local2;
if (to_reuse_array.length) {
_local2 = MovieClip(to_reuse_array.shift());
} else {
var _local3 = item_array.length;
_local2 = recipient_mc.createEmptyMovieClip(("item" + _local3) + "_mc", _local3);
item_array.push(_local2);
}
_local2.createEmptyMovieClip("images_mc", 0);
_local2.image_array = new Array();
_local2._visible = false;
return(_local2);
}
function loadImage(url, target, itm) {
var _local3 = {sizeOn:"none", target:target, url:url};
for (var _local4 in itm) {
_local3[_local4] = itm[_local4];
}
var _local7 = new com.slide.sis.ImageLoader();
if ((Number(controller.config.transition) == 11) || (Number(controller.config.transition) == 25)) {
return(_local7.attachImage(url, target.createEmptyMovieClip("_target", _targetDepth), 0, "loadImage_", this, _local3));
}
return(_local7.loadImage(url, target.createEmptyMovieClip("_target", _targetDepth), 0, "loadImage_", this, _local3));
}
function loadImage_(bmpData, params) {
num_loaded++;
if (bmpData) {
var _local9 = flash.display.BitmapData(bmpData);
var _local14 = MovieClip(params.target);
var _local15 = _local14._parent._parent._parent;
var _local8 = _local14._parent._parent;
var _local6 = _local15.image_array;
var _local3 = num_loaded;
while (_local3 < num_copies) {
var _local4 = _local8.createEmptyMovieClip(("img" + _local3) + "_mc", _local8.getNextHighestDepth());
var _local10 = _local4.createEmptyMovieClip("real_img0_mc", _local4.getNextHighestDepth());
_local6.push(_local4);
_local3++;
}
for (var _local12 in _local6) {
var _local5 = _local6[_local12].real_img0_mc;
var _local11 = _local9.clone();
_local5.attachBitmap(_local9, _targetDepth, "auto", true);
if ((_root.fx || (com.slide.FlashVars.__get__TICKER_CFG().effects)) != "0") {
var _local7 = com.slide.graphics.fx.FX.resolveEffect(_root.fx || (com.slide.FlashVars.__get__TICKER_CFG().effects));
_local7.applyEffect(_local5);
}
}
onItemLoadInit(params.target, callback, params.target._parent, 1);
} else {
onItemLoadError(params.target, callback, params.target._parent, 1);
}
}
function loadNextItem(callback, target_mc) {
target_mc = target_mc || (recipient_mc);
var _local2 = item_mc.images_mc.createEmptyMovieClip(("img" + num_loaded) + "_mc", num_loaded);
var _local4 = _local2.createEmptyMovieClip(("real_img" + num_loaded) + "_mc", num_loaded);
item_mc.image_array.push(_local2);
var _local3 = item_mc.meta.item_img_url;
loadImage(_local3, _local4, item_mc.meta);
}
function makeColoredSquare(parent) {
var _local5 = [[16672257, 16694565], [96775, 8179970], [11338880, 16086981], [26215, 1472433], [22199, 7509716]];
var _local10 = "linear";
var _local8 = _local5[Math.round(Math.random() * (_local5.length - 1))];
var _local6 = [100, 100];
var _local11 = [0, 255];
var _local7 = {matrixType:"box", x:0, y:0, w:120, h:120, r:(((Math.random() * 30) - 15) / 180) * Math.PI};
var _local2 = par.createEmptyMovieClip("warn_mc", par.getNextHighestDepth());
_local2.lineStyle(1, 6710886, 0);
_local2.moveTo(0, 0);
_local2.beginGradientFill(_local10, _local8, _local6, _local11, _local7);
_local2.lineTo(0, 100);
_local2.lineTo(100, 100);
_local2.lineTo(100, 0);
_local2.lineTo(0, 0);
_local2.endFill();
par._x = (par._y = 0);
_local2._x = (_local2._y = 1);
var _local3 = new TextFormat();
_local3.align = "center";
_local3.font = "_sans";
_local3.color = 16777215 /* 0xFFFFFF */;
_local3.leftMargin = (_local3.rightMargin = 10);
_local3.size = 7;
_local3.bold = false;
_local2.createTextField("warn_txt", 0, 0, 0, 100, 100);
var _local4 = _local2.warn_txt;
_local4.background = false;
_local4.selectable = false;
_local4.enabled = false;
_local4.backgroundColor = 3355443 /* 0x333333 */;
_local4.multiline = true;
_local4.wordWrap = true;
var _local9 = "If you have trouble\nseeing photos\nCLICK HERE";
_local4.text = _local9;
_local4.setTextFormat(_local3);
return(_local2);
}
function makeTextItem(callback, target_mc) {
item_mc.smart_text = newSmartText(target_mc.images_mc, controller, target_mc.meta.description);
item_mc.meta.item_type = "text";
item_mc.meta.has_mouse = false;
item_mc.image_array.push(item_mc.smart_text);
broadcastMessage(ON_FIRST_IMAGE);
callback(item_mc);
}
function newSmartText(images_mc, controller, description) {
return(images_mc.createTextField("smart_txt", images_mc.getNextHighestDepth(), 0, 0, 100, 22));
}
function onImage() {
loadNextItem();
}
function onItemLoadError(target_mc, callback, parent_mc, errtype) {
var _local10 = this;
total_bad++;
var _local2 = parent_mc._parent._parent;
var _local3 = _local2.cb;
var _local4 = _local2.nc;
var _local5 = _local2.meta.item_img_url;
var _local6 = _local2.meta;
if (errtype == 2) {
var _local7 = makeColoredSquare(parent_mc);
_local2.meta.has_mouse = true;
_local2.useHandCursor = true;
if (controller.config.help_url) {
_local2.meta.target_url = controller.config.help_url;
_local2.useHandCursor = true;
_local2.onRelease = function () {
this.controller.itemReleased(this);
};
}
callback(_local2);
} else if (errtype == 1) {
recycleItem(_local2);
requester.badItem(_local6);
if (missing_flag == false) {
missing_flag = true;
number_consecutive_missing = 1;
first_missing_url = _local5;
getNextItem(_local3, _local4);
} else if (missing_flag == true) {
number_consecutive_missing = 1;
if (number_consecutive_missing > 1000) {
broadcastMessage(ON_NO_IMAGE_FOUND);
} else {
getNextItem(_local3, _local4);
}
}
}
}
function onItemLoadInit(target_mc, callback) {
if (total_loaded == 0) {
broadcastMessage(ON_FIRST_IMAGE);
}
missing_flag = false;
total_loaded++;
if (target_mc._width <= 1) {
onItemLoadError(target_mc, callback, par, 2);
} else if (callback == onImage) {
onImage(target_mc._parent._parent._parent);
} else {
callback(target_mc._parent._parent._parent);
}
}
function setMouseActions(item_mc) {
item_mc.ctrl = controller;
if (!controller.no_ct) {
item_mc.onRelease = function () {
this.ctrl.itemReleased(this);
};
item_mc.onRollOver = function () {
this._alpha = 50;
this.ctrl.itemRolledOver(this);
};
item_mc.onRollOut = (item_mc.onReleaseOutside = (item_mc.onDragOut = function () {
this._alpha = 100;
this.ctrl.itemRolledOut(this);
}));
} else {
item_mc.useHandCursor = false;
}
}
static var ON_NO_IMAGE_FOUND = "onNoImagesFound";
static var ON_FIRST_IMAGE = "onFirstImage";
var buff_count = 3;
var className = "com.slide.sis.Fetcher";
var is_arrange = false;
var missing_flag = false;
var num_copies = 1;
var num_loaded = 0;
var number_consecutive_missing = 0;
var numCopies = 0;
var total_bad = 0;
var total_loaded = 0;
var _targetDepth = 100;
}
Symbol 135 MovieClip [__Packages.com.slide.sis.ImageLoader] Frame 0
class com.slide.sis.ImageLoader
{
function ImageLoader () {
}
function attachImage(url, shimTarget, depth, callback, context, params) {
var _local1 = new com.slide.sis.ImageLoaderProxy();
_local1.loadClip(url, shimTarget, depth, callback, context, params);
return(_local1);
}
function loadImage(url, shimTarget, depth, callback, context, params, site) {
var _local1 = new com.slide.sis.ImageLoaderMovieClipProxy();
_local1.loadClip(url, shimTarget, depth, callback, context, params, false, site);
return(_local1);
}
function loadOnlyImage(url, scope, depth, callBack, mother, convert, params) {
var _local7 = new Date();
if ((depth == null) || (depth == undefined)) {
depth = scope.getNextHighestDepth();
}
var _local3 = scope.createEmptyMovieClip((("imgLoadr" + _local7.getTime()) + "__") + Math.round(Math.random() * 100000), depth);
var _local9 = _local3.createEmptyMovieClip("lder", 100);
var mcLoader = new MovieClipLoader();
var _local2 = new Object();
mcLoader.addListener(_local2);
var thisV = this;
_local2.onLoadError = function (m) {
mother[callBack](null, params, "error");
mcLoader = null;
this=null;//parameter overwritten
};
_local2.onLoadProgress = function (m, tot, left) {
if (!params.grid) {
}
};
_local2.onLoadComplete = function (m, succ) {
};
_local2.onLoadInit = function (m) {
if (m._width < 1) {
mother[callBack](null, params, "sizeError");
} else if (convert) {
var _local5 = thisV.createBitmap(m, params);
mother[callBack](_local5, params);
var _local4 = new Date();
var _local3 = m._parent._parent.createEmptyMovieClip("clear_" + _local4.getTime(), m._parent.getDepth());
_local3.removeMovieClip();
_local3 = null;
} else {
mother[callBack](m._parent, params);
}
mcLoader = null;
this=null;//parameter overwritten
};
_local3._highquality = 1;
mcLoader.loadClip(url, _local9);
}
function createBitmap(mc1, params) {
var _local3 = mc1;
mc1 = mc1._parent;
if (params.fx != undefined) {
var _local13 = com.slide.graphics.fx.FX.resolveEffect(params.fx);
_local13.applyEffect(_local3);
}
params.borderWidth = params.borderWidth || 0;
if (params.borderBackground != undefined) {
params.borderWidth = params.borderWidth || 10;
var _local7 = _local3._width + (params.borderWidth * 2);
var _local6 = _local3._height + (params.borderWidth * 2);
mc1.createEmptyMovieClip("bg", 2);
mc1.bg.beginFill(params.borderColor || 16777215, 100);
mc1.bg.lineTo(0, _local6);
mc1.bg.lineTo(_local7, _local6);
mc1.bg.lineTo(_local7, 0);
mc1.bg.lineTo(0, 0);
mc1.bg.endFill();
_local3._x = (mc1._width - _local3._width) / 2;
_local3._y = (mc1._height - _local3._height) / 2;
}
if (params.corners != undefined) {
mc1.attachMovie(params.corners + "TL", "tlc", 500);
mc1.attachMovie(params.corners + "TR", "trc", 501);
mc1.trc._x = _local3._width + (params.borderWidth * 2);
mc1.attachMovie(params.corners + "BL", "blc", 502);
mc1.blc._y = _local3._height + (params.borderWidth * 2);
mc1.attachMovie(params.corners + "BR", "brc", 503);
mc1.brc._y = _local3._height + (params.borderWidth * 2);
mc1.brc._x = _local3._width + (params.borderWidth * 2);
}
if (params.border == undefined) {
params.border = 0;
}
params.scaleUp = params.scaleUp || true;
params.height = params.height || (mc1._height);
params.width = params.width || (mc1._width);
params.scaleUp = params.scaleUp || true;
var _local10;
var _local7 = ((params.scaleUp == true) ? (params.width) : (Math.min(mc1._width, params.width)));
var _local6 = ((params.scaleUp == true) ? (params.height) : (Math.min(mc1._height, params.height)));
var _local5 = new flash.geom.Matrix();
var _local4;
var _local22;
switch (params.sizeOn) {
case "height" :
_local10 = mc1._width / mc1._height;
_local7 = _local6 * _local10;
_local4 = _local6 / mc1._height;
break;
case "width" :
_local10 = mc1._height / mc1._width;
_local6 = _local7 * _local10;
_local4 = _local7 / mc1._width;
break;
case "fill" :
if ((mc1._height / mc1._width) > (params.height / params.width)) {
_local4 = params.width / mc1._width;
} else {
_local4 = params.height / mc1._height;
}
break;
case "any" :
if ((mc1._height / mc1._width) > (params.height / params.width)) {
_local4 = params.height / (mc1._height + params.border);
} else {
_local4 = params.width / (mc1._width + params.border);
}
}
var _local9;
if (params.sizeOn != "none") {
_local9 = new flash.display.BitmapData(_local7, _local6, params.color == undefined, params.color || 0);
var _local19 = mc1._width - (_local7 / _local4);
var _local20 = mc1._height - (_local6 / _local4);
_local5.tx = -Math.floor(_local19 / 2);
_local5.ty = -Math.floor(_local20 / 3);
_local5.scale(_local4, _local4);
var _local18 = new flash.geom.Transform(mc1);
_local18.matrix = _local5;
var _local15 = new flash.geom.ColorTransform();
var _local14 = "normal";
var _local21 = true;
_local9.draw(mc1, _local5, _local15, _local14, null, _local21);
} else {
var _local11 = mc1._width;
var _local12 = mc1._height;
_local7 = params.width;
_local6 = params.height;
var _local17 = _local7 / _local11;
var _local16 = _local6 / _local12;
var _local8 = Math.min(_local17, _local16);
_local5.scale(_local8, _local8);
var _local18 = new flash.geom.Transform(mc1);
_local18.matrix = _local5;
_local9 = new flash.display.BitmapData(_local11 * _local8, _local12 * _local8);
_local9.draw(mc1, _local5);
}
return(_local9);
}
}
Symbol 136 MovieClip [__Packages.com.slide.sis.ImageLoaderProxy] Frame 0
class com.slide.sis.ImageLoaderProxy
{
var imgLdr, shim, _params, _shimLoader, _url, _target, _callback, _context;
function ImageLoaderProxy (app) {
imgLdr = new com.slide.sis.ImageLoader();
}
function loadClip(url, target, depth, callback, context, params) {
var _local7 = new Date();
shim = target.createEmptyMovieClip((("shim" + _local7.getTime()) + "_") + Math.round(Math.random() * 1000), depth);
_params = params;
var _local4 = com.slide.utils.URL.parseUrl(url);
System.security.allowDomain(_local4.domain);
System.security.allowInsecureDomain(_local4.domain);
_shimLoader = new MovieClipLoader();
_shimLoader.addListener(this);
_url = url;
_target = target;
_callback = callback;
_context = context;
if (url.indexOf("slide.com") < 0) {
_local4.base = ("http://" + _root.controller.site) + "/";
var _local10 = com.slide.utils.URL.decoFinder(_local4.base, params);
var _local8 = new XML();
var thisV = this;
var _local5 = new XML();
_local5.ignoreWhite = true;
_local5.onLoad = function () {
this.parseXML(this);
var _local2 = this.firstChild.firstChild.firstChild.nodeValue;
for (var _local3 in this.firstChild.childNodes) {
if (this.firstChild.childNodes[_local3].nodeName == "string") {
_local2 = this.firstChild.childNodes[_local3].firstChild.nodeValue;
}
}
thisV.loadClip(_local2, target, depth, callback, context, params);
};
_local5.onError = function () {
};
_local8.sendAndLoad(_local10, _local5);
return(undefined);
}
_shimLoader.addListener(this);
_shimLoader.loadClip(_local4.base + "widgets/shim_1.swf", shim);
}
function onLoadInit(clip) {
var _local2 = {};
var thisV = this;
_local2.onLoadInit = function (evt) {
thisV.onShimClip(evt.bitmap);
};
_local2.onLoadError = function (evt) {
thisV.onShimClipError();
};
clip.main.addEventListener("onLoadInit", _local2);
clip.main.addEventListener("onLoadError", _local2);
clip.main.loadClip(_url, onShimClip, this);
}
function onShimClipError() {
_context[_callback](false, _params);
}
function onShimClip(bmp) {
var _local6 = new Date();
var _local2 = shim._parent.createEmptyMovieClip((("imgHolder" + _local6.getTime()) + "_") + Math.round(Math.random() * 1000), shim.getDepth());
var _local3 = _local2.createEmptyMovieClip("lder", 100);
_local3.attachBitmap(bmp, 2, "auto", true);
var _local4 = imgLdr.createBitmap(_local3, _params);
bmp.dispose();
var _local5 = new Date();
var _local7 = _local2._parent.createEmptyMovieClip((("clr" + _local5.getTime()) + "_") + Math.round(Math.random() * 1000), _local2.getDepth());
_local7.removeMovieClip();
_context[_callback](_local4, _params);
}
function onLoadProgress(clip, bl, bt) {
}
function onLoadError(clip) {
}
}
Symbol 137 MovieClip [__Packages.com.slide.sis.ImageLoaderMovieClipProxy] Frame 0
class com.slide.sis.ImageLoaderMovieClipProxy extends com.slide.sis.ImageLoaderProxy
{
var _url, _target, _callback, _context, _params, _convert, shim, _shimLoader;
function ImageLoaderMovieClipProxy (app) {
super();
}
function loadClip(url, target, depth, callback, context, params, convert, site) {
_url = url;
_target = target;
_callback = context[callback];
_context = context;
_params = params;
_convert = convert;
var _local6 = new Date();
shim = target.createEmptyMovieClip((("imgLoadr" + _local6.getTime()) + "_") + Math.random(), depth);
var _local3;
if (!site) {
_local3 = com.slide.utils.URL.parseUrl(_root._url);
} else {
_local3 = com.slide.utils.URL.parseUrl("http://" + site);
}
System.security.allowDomain(_local3.domain);
System.security.allowInsecureDomain(_local3.domain);
var _local4 = {};
var _local10 = this;
_local4.onLoadInit = mx.utils.Delegate.create(this, onShimLoadInit);
_local4.onLoadError = mx.utils.Delegate.create(this, onShimLoadError);
_local4.onLoadProgress = mx.utils.Delegate.create(this, onShimLoadProgress);
_shimLoader = new MovieClipLoader();
_shimLoader.addListener(_local4);
var _local5 = _local3.base + "widgets/shim7.swf";
if (_local5.indexOf("file:") >= 0) {
_local5 = com.slide.DevConfig.PG + "/widgets/shim7.swf";
}
_shimLoader.loadClip(_local5, shim);
}
function onShimLoadError() {
_callback(false, _params);
}
function onShimLoadInit(clip) {
clip.main.addEventListener("onLoadInit", mx.utils.Delegate.create(this, onMovieLoadInit));
clip.main.addEventListener("onLoadError", mx.utils.Delegate.create(this, onMovieLoadError));
clip.main.addEventListener("onLoadProgress", mx.utils.Delegate.create(this, onMovieLoadProgress));
clip.main.loadClip(_url, onMovieClip, this);
}
function onShimLoadProgress(clip, bl, bt) {
}
function onMovieClip(clip, bl, bt) {
}
function onMovieLoadInit(event) {
if (event.target._width < 1) {
_callback.apply(_context, [null, _params, "sizeError"]);
} else {
_callback.apply(_context, [event.target, _params]);
}
}
function onMovieLoadError() {
_callback.apply(_context, [null, _params]);
this=null;//parameter overwritten
}
function onMovieLoadProgress(clip, bl, bt) {
}
}
Symbol 138 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
func = arguments.callee.func;
return(func.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 139 MovieClip [__Packages.com.slide.DevConfig] Frame 0
class com.slide.DevConfig
{
function DevConfig () {
}
static var PG = "http://shannon.dev.slide.com/";
}
Symbol 140 MovieClip [__Packages.com.slide.graphics.fx.FX] Frame 0
class com.slide.graphics.fx.FX
{
function FX (effects) {
}
static function resolveEffect(id) {
var _local3 = com.slide.FlashVars.__get__SKIN_CONFIG().insets;
var _local11 = (_local3.right - _local3.left) || (Stage.width);
var _local10 = (_local3.bottom - _local3.top) || (Stage.height);
effects = [];
var _local5 = Number(id) - 0;
var _local6 = false;
if (_local5 & 4) {
_local6 = true;
_local5 = _local5 - 4;
}
var _local4;
switch (_local5) {
case 1 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.BW));
break;
case 2 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.SEPIA));
break;
case 3 :
var _local9 = com.slide.FlashVars.__get__TICKER_CFG().stageColor || 16777215;
effects.push(new flash.filters.GlowFilter(_local9, 0.75, _local11 / 10, _local10 / 10, 2, 5, true, false));
break;
case 8 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.COLORCONTRAST));
break;
case 9 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.INVERSE));
break;
case 10 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.COLORBOOST));
break;
case 11 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.REDTINT));
break;
case 16 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.GREENTINT));
break;
case 17 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.BLUETINT));
break;
case 18 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.PASTEL));
break;
case 19 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.WHITEOUT));
break;
case 24 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.NEGATIVE));
break;
case 25 :
effects.push(new flash.filters.ConvolutionFilter(3, 3, [-2, -1, 0, -1, 1, 1, 0, 1, 2], 0));
break;
case 26 :
effects.push(new flash.filters.ConvolutionFilter(3, 3, [1, 0, 1, 0, 0, 0, 1, 0, -2], 0));
break;
case 27 :
_local4 = com.slide.graphics.fx.JailCell;
break;
case 32 :
_local4 = com.slide.graphics.fx.WindowPane;
break;
case 33 :
_local4 = com.slide.graphics.fx.OldFilm;
break;
case 34 :
_local4 = com.slide.graphics.fx.MysticMirror;
break;
case 35 :
break;
case 40 :
switch (_count % 3) {
case 0 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.REDFLOOD));
break;
case 1 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.WHITEOUT));
break;
case 2 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.BLUEFLOOD));
}
break;
case 41 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.REDFLOOD));
break;
case 42 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.GREENFLOOD));
break;
case 43 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.BLUEFLOOD));
break;
case 48 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.BABYGIRL));
break;
case 49 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.BABYBOY));
break;
case 50 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.BABYUNIY));
break;
case 51 :
effects.push(new flash.filters.ColorMatrixFilter(com.slide.graphics.fx.ColorFX.BABYUNIG));
break;
}
if (_local4) {
if (!_root.fx_mc) {
var _local7 = _root.fx_mc || (_root.createEmptyMovieClip("fx_mc", _global.com.slide.managers.RootDepthManager.FX_MC || 99));
var _local8 = new flash.geom.Rectangle(_local3.left || 0, _local3.top || 0, ((Stage.width - _local3.right) - _local3.left) || (Stage.width), ((Stage.height - _local3.bottom) - _local3.top) || (Stage.height));
effects.push(new _local4[undefined](_local7, _local8));
}
}
if (_local6) {
effects.push(new flash.filters.BevelFilter(4, 45, 16777215, 0.8, 0, 0.8, 12, 12, 1.5, 1, "inner", false));
}
_count++;
return(new com.slide.graphics.fx.FX(effects));
}
function applyEffect(_mc) {
var _local2 = [];
var _local1 = 0;
while (_local1 < effects.length) {
if (effects[_local1].execute) {
effects[_local1].execute(_mc);
} else {
_local2.push(effects[_local1]);
}
_local1++;
}
_mc.filters = _local2;
}
var classname = "com.slide.graphics.fx.FX";
static var effects = [];
static var _count = 0;
static var LIST = "NONE,BW,SEPIA,SOFTEN BORDER,BEVEL,BEVEL,BEVEL,BEVEL,COLOR CONTRAST,INVERSE,COLOR BOOST,RED TINT,BEVEL,BEVEL,BEVEL,BEVEL,GREEN TINT,BLUE TINT,PASTEL,WHITEOUT,BEVEL,BEVEL,BEVEL,BEVEL,NEGATIVE,EMBOSS UP,STAMP".split(",");
}
Symbol 141 MovieClip [__Packages.com.slide.graphics.fx.ColorFX] Frame 0
class com.slide.graphics.fx.ColorFX
{
function ColorFX () {
}
var classname = "com.slide.graphics.fx.ColorFX";
static var e = 0;
static var f = 0.05;
static var g = 0.1;
static var h = 0.15;
static var j = 0.2;
static var k = 0.3;
static var n = 0.35;
static var m = 0.4;
static var o = 0.45;
static var p = 0.5;
static var q = 0.55;
static var r = 0.6;
static var s = 0.65;
static var t = 0.7;
static var u = 0.75;
static var v = 0.8;
static var w = 0.85;
static var x = 0.9;
static var y = 0.95;
static var z = 1;
static var BW = [n, n, n, e, e, n, n, n, e, e, n, n, n, e, e, e, e, e, z, e];
static var SEPIA = [n, n, n, e, e, k, k, k, e, e, j, j, j, e, e, e, e, e, z, e];
static var PASTEL = [p, h, h, 0, 84, h, p, h, 0, 84, h, h, p, 0, 84, 0, 0, 0, 1, 0];
static var BABYGIRL = [1, 0.3, 0.3, 0, 0, 0.6, 0.2, 0.2, 0, 0, 0.6, 0.2, 0.2, 0, 0, 0, 0, 0, 1, 0];
static var BABYBOY = [-0.2, 0, 1.1, 0, 0, 0, -0.2, 1.5, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0];
static var BABYUNIY = [0.4, 0.2, 0.8, 0, 0, 0.2, 0.4, 0.8, 0, 0, 0.2, 0.2, 0.5, 0, 0, 0, 0, 0, 1, 0];
static var BABYUNIG = [0.3, 0.5, 0.3, 0, 0, 0.3, 0.8, 0.4, 0, 0, 0.3, 0.5, 0.3, 0, 0, 0, 0, 0, 1, 0];
static var WHITEOUT = [m, m, m, m, m, m, m, m, m, m, m, m, m, m, m, m, m, m, m, m];
static var HIGHCONTRAST = [-3, -3, -3, e, 1500, -3, -3, -3, e, 1500, -3, -3, -3, e, 1500, e, e, e, z, e];
static var COLORCONTRAST = [5, 0, 0, 0, -355, 0, 5, 0, 0, -355, 0, 0, 5, 0, -355, 0, 0, 0, 1, 0];
static var INVERSE = [-q, 1.43, g, e, e, m, o, g, e, e, m, 1.43, -g, e, e, e, e, e, z, e];
static var COLORBOOST = [q, -k, u, e, e, j, z, j, e, e, -p, v, t, e, e, e, e, e, z, e];
static var REDTINT = [k, r, g, e, 50, k, r, g, e, e, k, r, g, e, e, e, e, e, z, e];
static var REDFLOOD = [1.2, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0];
static var BLUETINT = [k, r, g, e, e, k, r, g, e, e, k, r, g, e, 50, e, e, e, z, e];
static var BLUEFLOOD = [0, 0, 0.2, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 1.7, 0, 0, 0, 0, 0, 1, 0];
static var GREENTINT = [k, r, g, e, e, k, r, g, e, 50, k, r, g, e, e, e, e, e, z, e];
static var GREENFLOOD = [0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 1, 0];
static var NEGATIVE = [-z, e, e, e, 256, e, -z, e, e, 256, e, e, -z, e, 256, e, e, e, z, e];
}
Symbol 142 MovieClip [__Packages.com.slide.graphics.fx.JailCell] Frame 0
class com.slide.graphics.fx.JailCell
{
var _target, _rect;
function JailCell (target, rect) {
_target = target;
_rect = rect;
init();
}
function init() {
var _local8 = _target;
var _local7 = _rect.width;
var _local9 = _rect.height;
var _local5 = _rect.x;
var _local6 = _rect.y;
var _local3 = Math.ceil(_local7 / 80);
_local8.clear();
_local8.filters = [];
_local8.beginFill(16711680, 30);
var _local4 = [];
_local4.push([new flash.geom.Point(_local5 - 0, _local6 - 0), new flash.geom.Point(_local5 + _local7, _local6 - 0), new flash.geom.Point(_local5 + _local7, _local6 + _local9), new flash.geom.Point(_local5 - 0, _local9 - 0)]);
_local7 = _local7 * 0.5;
_local9 = _local9 * 0.5;
_local5 = _local5 + (_local7 / 2);
_local6 = _local6 + (_local9 / 2);
var _local10 = _local9 / 10;
_local4.push([new flash.geom.Point(_local5, _local6 + (_local3 * 4)), new flash.geom.Point((_local5 + (_local7 / 4)) - _local3, _local6 + (_local3 * 2)), new flash.geom.Point((_local5 + (_local7 / 4)) - _local3, (_local6 + _local9) - _local10), new flash.geom.Point(_local5 + (_local3 * 4), (_local6 + _local9) - _local10)]);
_local4.push([new flash.geom.Point((_local5 + ((_local7 / 4) * 1)) + _local3, _local6 + (_local3 * 2)), new flash.geom.Point((_local5 + ((_local7 / 4) * 2)) - _local3, _local6 + (_local3 * 0)), new flash.geom.Point((_local5 + ((_local7 / 4) * 2)) - _local3, (_local6 + _local9) - _local10), new flash.geom.Point((_local5 + ((_local7 / 4) * 1)) + _local3, (_local6 + _local9) - _local10)]);
_local4.push([new flash.geom.Point((_local5 + ((_local7 / 4) * 2)) + _local3, _local6 + (_local3 * 0)), new flash.geom.Point((_local5 + ((_local7 / 4) * 3)) - _local3, _local6 - (_local3 * 2)), new flash.geom.Point((_local5 + ((_local7 / 4) * 3)) - _local3, (_local6 + _local9) - _local10), new flash.geom.Point((_local5 + ((_local7 / 4) * 2)) + _local3, (_local6 + _local9) - _local10)]);
_local4.push([new flash.geom.Point((_local5 + ((_local7 / 4) * 3)) + _local3, _local6 - (_local3 * 2)), new flash.geom.Point(_local5 + ((_local7 / 4) * 4), _local6 - (_local3 * 4)), new flash.geom.Point((_local5 + ((_local7 / 4) * 4)) - (_local3 * 4), (_local6 + _local9) - _local10), new flash.geom.Point((_local5 + ((_local7 / 4) * 3)) + _local3, (_local6 + _local9) - _local10)]);
_local4.push([new flash.geom.Point((_local5 + ((_local7 / 4) * 1)) - _local3, ((_local6 + _local9) - _local10) + (_local3 * 2)), new flash.geom.Point((_local5 + ((_local7 / 4) * 1)) + _local3, (_local6 + _local9) + (_local3 * 2)), new flash.geom.Point((_local5 + ((_local7 / 4) * 3)) - _local3, (_local6 + _local9) + (_local3 * 2)), new flash.geom.Point((_local5 + ((_local7 / 4) * 3)) + _local3, ((_local6 + _local9) - _local10) + (_local3 * 2))]);
_local8.beginFill(0, 70);
var _local2;
_local2 = 0;
while (_local2 < _local4.length) {
drawPoly(_local8, _local4[_local2]);
_local2++;
}
var _local11 = Math.min(_local7, _local9) / 20;
com.slide.drawing.Keyhole.draw(_local8, (_local5 + ((_local7 / 4) * 3)) + (_local3 * 2), ((_local6 + _local9) - _local10) + (_local3 * 2), _local11 / 2, _local11, 0, false);
_local8.beginFill(16777215, 20);
_local2 = 1;
while (_local2 < _local4.length) {
drawPoly(_local8, _local4[_local2]);
_local2++;
}
com.slide.drawing.Keyhole.draw(_local8, (_local5 + ((_local7 / 4) * 3)) + (_local3 * 2), ((_local6 + _local9) - _local10) + (_local3 * 2), _local11 / 2, _local11, 0, false);
_local8.endFill();
_local8.filters = [new flash.filters.BlurFilter(4, 4, 1)];
}
function drawPoly(target, pts) {
target.moveTo(pts[0].x, pts[0].y);
var _local1 = 0;
while (_local1 < pts.length) {
target.lineTo(pts[_local1].x, pts[_local1].y);
_local1++;
}
target.lineTo(pts[0].x, pts[0].y);
}
}
Symbol 143 MovieClip [__Packages.com.slide.drawing.Shape] Frame 0
class com.slide.drawing.Shape
{
function Shape () {
}
static var DEFAULT_RADIUS = 100;
static var DEFAULT_X = 0;
static var DEFAULT_Y = 0;
}
Symbol 144 MovieClip [__Packages.com.slide.drawing.Keyhole] Frame 0
class com.slide.drawing.Keyhole extends com.slide.drawing.Shape
{
function Keyhole () {
super();
}
static function draw(_mc, x, y, holeRadius, keyRadius, rotation, center) {
x = x || 0;
y = y || 0;
holeRadius = holeRadius || 100;
keyRadius = keyRadius || (holeRadius * 2.1);
rotation = rotation || 0;
center = center || false;
if (!center) {
x = x + holeRadius;
y = y + holeRadius;
}
if (_mc && (holeRadius)) {
_mc.moveTo(x, y - holeRadius);
_global.debug((_mc + ":n:") + holeRadius);
var _local4;
var _local3 = holeRadius;
var _local7;
var _local6;
var _local2 = 0;
do {
if (_local2 > 155) {
_local3 = keyRadius;
_local2 = Math.max(_local2, 165);
}
if (_local2 > 195) {
_local3 = holeRadius;
_local2 = Math.max(_local2, 205);
}
_local4 = com.slide.utils.Convert.toRadians((_local2 + 180) - rotation);
_local7 = x + (_local3 * Math.sin(_local4));
_local6 = y + (_local3 * Math.cos(_local4));
_mc.lineTo(_local7, _local6);
_local2++;
} while (_local2 <= 360);
}
}
}
Symbol 145 MovieClip [__Packages.com.slide.utils.Convert] Frame 0
class com.slide.utils.Convert
{
function Convert () {
}
static function toDegrees(rad) {
return(rad * 57.2957795130823);
}
static function toRadians(deg) {
return(deg * (Math.PI/180));
}
}
Symbol 146 MovieClip [__Packages.com.slide.graphics.fx.WindowPane] Frame 0
class com.slide.graphics.fx.WindowPane
{
var _target, _rect;
function WindowPane (target, rect) {
_target = target;
_rect = rect;
init();
}
function init() {
var _local7 = _target;
var _local9 = _rect.width;
var _local8 = _rect.height;
var _local5 = _rect.x;
var _local6 = _rect.y;
var _local4 = Math.ceil(_local9 / 80);
_local7.clear();
_local7.filters = [];
_local7.beginFill(16711680, 30);
var _local3 = [];
_local3.push([new flash.geom.Point(_local5 - 0, _local6 - 0), new flash.geom.Point(_local5 + _local9, _local6 - 0), new flash.geom.Point(_local5 + _local9, _local6 + _local8), new flash.geom.Point(_local5 - 0, _local8 - 0)]);
_local9 = _local9 * 0.6;
_local8 = _local8 * 0.8;
_local5 = _local5 + (_local9 * 0.4);
_local6 = _local6 + (_local8 * 0.14);
var _local10 = _local8 / 10;
_local3.push([new flash.geom.Point(_local5, _local6 + (_local4 * 2)), new flash.geom.Point((_local5 + ((_local9 / 4) * 2)) - _local4, _local6 + (_local4 * 0)), new flash.geom.Point((_local5 + ((_local9 / 4) * 2)) - _local4, _local6 + (_local8 / 2)), new flash.geom.Point(_local5 + (_local4 * 3), _local6 + (_local8 / 2))]);
_local3.push([new flash.geom.Point((_local5 + ((_local9 / 4) * 2)) + _local4, _local6 + (_local4 * 0)), new flash.geom.Point(_local5 + ((_local9 / 4) * 4), _local6 - (_local4 * 2)), new flash.geom.Point((_local5 + ((_local9 / 4) * 4)) - (_local4 * 4), _local6 + (_local8 / 2)), new flash.geom.Point((_local5 + ((_local9 / 4) * 2)) + _local4, _local6 + (_local8 / 2))]);
_local3.push([new flash.geom.Point(_local5 + (_local4 * 3), (_local6 + (_local8 / 2)) + (_local4 * 2)), new flash.geom.Point((_local5 + ((_local9 / 4) * 2)) - _local4, (_local6 + (_local8 / 2)) + (_local4 * 2)), new flash.geom.Point((_local5 + ((_local9 / 4) * 2)) - _local4, _local6 + _local8), new flash.geom.Point(_local5 + (_local4 * 6), _local6 + _local8)]);
_local3.push([new flash.geom.Point((_local5 + ((_local9 / 4) * 2)) + _local4, (_local6 + (_local8 / 2)) + (_local4 * 2)), new flash.geom.Point((_local5 + ((_local9 / 4) * 4)) - (_local4 * 4), (_local6 + (_local8 / 2)) + (_local4 * 2)), new flash.geom.Point((_local5 + ((_local9 / 4) * 4)) - (_local4 * 6), _local6 + _local8), new flash.geom.Point((_local5 + ((_local9 / 4) * 2)) + _local4, _local6 + _local8)]);
_local7.beginFill(0, 70);
var _local2;
_local2 = 0;
while (_local2 < _local3.length) {
drawPoly(_local7, _local3[_local2]);
_local2++;
}
_local7.beginFill(16777215, 20);
_local2 = 1;
while (_local2 < _local3.length) {
drawPoly(_local7, _local3[_local2]);
_local2++;
}
_local7.endFill();
_local7.filters = [new flash.filters.BlurFilter(8, 8, 1)];
}
function drawPoly(target, pts) {
target.moveTo(pts[0].x, pts[0].y);
var _local1 = 0;
while (_local1 < pts.length) {
target.lineTo(pts[_local1].x, pts[_local1].y);
_local1++;
}
target.lineTo(pts[0].x, pts[0].y);
}
function execute(_mc, x, y, w, h) {
}
}
Symbol 147 MovieClip [__Packages.com.slide.graphics.fx.OldFilm] Frame 0
class com.slide.graphics.fx.OldFilm
{
var _m, _rect;
function OldFilm (target, rect) {
_m = target;
_rect = rect;
createNoise();
setInterval(mx.utils.Delegate.create(this, update), 83.3333333333333);
}
function createNoise() {
var _local4 = _root.fx_mc.createEmptyMovieClip("noise", 35);
var _local3 = new flash.display.BitmapData(_rect.width, _rect.height, true, 285212671);
_local3.noise(Math.random() * 100, 50, 200, 7, false);
}
function execute(_mc, rect) {
}
function update() {
var _local5 = 34;
_m.clear();
var _local2 = [com.slide.drawing.particle.OldFilmReelScratch, com.slide.drawing.particle.OldFilmDander, com.slide.drawing.particle.OldFilmHair];
var _local3 = Math.floor(_local2.length * Math.random());
var _local4 = new _local2[_local3].draw(_m, _rect);
}
}
Symbol 148 MovieClip [__Packages.com.slide.drawing.particle.OldFilmReelScratch] Frame 0
class com.slide.drawing.particle.OldFilmReelScratch
{
function OldFilmReelScratch () {
}
static function draw(_mc, rect) {
var _local5 = ((Math.floor(Math.random() * 100) % 2) ? 16777215 : 0);
var _local4 = rect.x + (Math.random() * rect.width);
var _local3 = rect.y;
_mc.lineStyle(2, _local5, Math.random() * 60, true, "none", "round");
_mc.moveTo(_local4, _local3);
_mc.lineTo(_local4, _local3 + rect.height);
_mc.lineStyle(1, 16711680, 0);
}
function execute(_mc, x, y, w, h) {
}
}
Symbol 149 MovieClip [__Packages.com.slide.drawing.particle.OldFilmDander] Frame 0
class com.slide.drawing.particle.OldFilmDander
{
function OldFilmDander () {
}
static function draw(_mc, rect) {
var _local6 = ((Math.floor(Math.random() * 100) % 2) ? 16777215 : 0);
var _local3 = rect.x + (Math.random() * (rect.width || 0));
var _local2 = rect.y + (Math.random() * (rect.height || 0));
var _local5 = 0;
_mc.lineStyle(2, _local6, Math.random() * 100, true, "none", "round");
_mc.moveTo(_local3, _local2);
while ((_local5++) < 100) {
_local3 = _local3 + (0.5 - Math.random());
_local2 = _local2 + (0.5 - Math.random());
if (rect && ((((_local3 < rect.x) || (_local2 < rect.y)) || (_local3 > (rect.x + rect.width))) || (_local2 > (rect.y + rect.height)))) {
} else {
_mc.lineTo(_local3, _local2);
}
}
_mc.lineStyle(1, 16711680, 0);
updateAfterEvent();
}
}
Symbol 150 MovieClip [__Packages.com.slide.drawing.particle.OldFilmHair] Frame 0
class com.slide.drawing.particle.OldFilmHair
{
function OldFilmHair () {
}
static function draw(_mc, rect) {
var _local8 = ((Math.floor(Math.random() * 100) % 2) ? 16777215 : 0);
var _local3 = rect.x + (Math.random() * rect.width);
var _local2 = rect.y + (Math.random() * rect.height);
var _local7 = 0;
var _local4 = 1000 * Math.random();
_mc.lineStyle(2, _local8, _local4 / 40, true, "none", "round");
_mc.moveTo(_local3, _local2);
while ((_local7++) < 10) {
var _local5 = _local3;
_local3 = _local3 + ((_local4 / 2) - (Math.random() * _local4));
_local2 = _local2 + ((_local4 / 2) - (Math.random() * _local4));
if (rect && ((((_local3 < rect.x) || (_local2 < rect.y)) || (_local3 > (rect.x + rect.width))) || (_local2 > (rect.y + rect.height)))) {
} else {
_mc.curveTo(_local3, _local2, _local5, _local2);
}
}
_mc.lineStyle(1, 16711680, 0);
}
function execute(_mc, x, y, w, h) {
}
}
Symbol 151 MovieClip [__Packages.com.slide.graphics.fx.MysticMirror] Frame 0
class com.slide.graphics.fx.MysticMirror
{
var _bmp, _dmf;
function MysticMirror (target, rect) {
_bmp = new flash.display.BitmapData(rect.width, rect.height, true, 0);
_dmf = new flash.filters.DisplacementMapFilter(_bmp, new flash.geom.Point(), 1, 15, 45, -45, "color", 0, 0);
_bmp.perlinNoise(rect.width / 10, 100, 1, 245, true, true, 7, true);
var _local3 = _root.transition_mc || _root;
_local3.filters = [_dmf];
}
}
Symbol 152 MovieClip [__Packages.com.slide.prod.video.AssetButton] Frame 0
class com.slide.prod.video.AssetButton extends MovieClip
{
var _icon, icon_mc, _height, _width, dispatchEvent, _state, gotoAndPlay;
function AssetButton () {
super();
mx.events.EventDispatcher.initialize(this);
icon = (_icon);
}
function get enabled() {
return(_enabled);
}
function set enabled(b) {
_enabled = b == true;
invalidate();
//return(enabled);
}
function get icon() {
return(_icon);
}
function set icon(s) {
_icon = s;
drawIcons();
//return(icon);
}
function set selected(b) {
_selected = b == true;
onRollOut();
//return(selected);
}
function get selected() {
return(_selected);
}
function set toggle(b) {
_toggle = b == true;
//return(toggle);
}
function get toggle() {
return(_toggle);
}
function drawIcons() {
drawIcons_Icon(NORMAL_OFF_STATE, 100, [NORMAL_OFF_STATE, NORMAL_OFF_STATE, ""]);
drawIcons_Icon(NORMAL_ON_STATE, 101, [NORMAL_ON_STATE, NORMAL_OFF_STATE, ""]);
drawIcons_Icon(FOCUS_OFF_STATE, 102, [FOCUS_OFF_STATE, NORMAL_OFF_STATE, ""]);
drawIcons_Icon(FOCUS_ON_STATE, 103, [FOCUS_ON_STATE, FOCUS_OFF_STATE, NORMAL_ON_STATE, NORMAL_OFF_STATE, ""]);
drawIcons_Icon(SELECTED_OFF_STATE, 104, [SELECTED_OFF_STATE, NORMAL_OFF_STATE, ""]);
drawIcons_Icon(SELECTED_ON_STATE, 105, [SELECTED_ON_STATE, SELECTED_OFF_STATE, NORMAL_ON_STATE, NORMAL_OFF_STATE, ""]);
drawIcons_Icon(DISABLED_OFF_STATE, 106, [DISABLED_OFF_STATE, NORMAL_OFF_STATE, ""]);
drawIcons_Icon(DISABLED_ON_STATE, 107, [DISABLED_ON_STATE, DISABLED_OFF_STATE, NORMAL_ON_STATE, NORMAL_OFF_STATE, ""]);
onRollOut();
}
function drawIcons_Icon(state, depth, list) {
list = list || ([]);
var _local3 = 0;
while (_local3 < list.length) {
var _local2 = icon_mc.attachMovie(_icon + list[_local3], state, depth);
_local2._y = (_height - _local2._height) / 2;
_local2._x = (_width - _local2._width) / 2;
if (_local2) {
return(_local2);
}
_local3++;
}
return(null);
}
function invalidate() {
}
function onRollOver() {
if (_enabled) {
if (_selected && (_toggle)) {
setState(FOCUS_ON_STATE);
} else {
setState(FOCUS_OFF_STATE);
}
}
}
function onRollOut() {
if (_enabled) {
if (_selected && (_toggle)) {
setState(NORMAL_ON_STATE);
} else {
setState(NORMAL_OFF_STATE);
}
}
}
function onPress() {
if (_enabled) {
if (_selected && (_toggle)) {
setState(SELECTED_ON_STATE);
} else {
setState(SELECTED_OFF_STATE);
}
}
}
function onReleaseOutside() {
onRollOut();
}
function onDragOut() {
onRollOut();
}
function onDragOver() {
onPress();
}
function onRelease() {
if (_enabled) {
_selected = !_selected;
onRollOver();
dispatchEvent({type:"click", selected:_selected, target:this});
}
}
function setState(s) {
if (_enabled) {
_state = s;
for (var _local2 in icon_mc) {
if (typeof(icon_mc[_local2]) == "movieclip") {
icon_mc[_local2]._visible = false;
}
}
icon_mc[s]._visible = true;
gotoAndPlay(s);
} else if (selected) {
gotoAndPlay("disabledOn");
} else {
gotoAndPlay("disabled");
}
}
static var ON = "On";
static var DISABLED_OFF_STATE = "disabled";
static var DISABLED_ON_STATE = DISABLED_OFF_STATE + ON;
static var FOCUS_OFF_STATE = "focus";
static var FOCUS_ON_STATE = FOCUS_OFF_STATE + ON;
static var NORMAL_OFF_STATE = "normal";
static var NORMAL_ON_STATE = NORMAL_OFF_STATE + ON;
static var SELECTED_OFF_STATE = "selected";
static var SELECTED_ON_STATE = SELECTED_OFF_STATE + ON;
var _selected = false;
var _toggle = true;
var _enabled = true;
}