Frame 1
NewgroundsAPI.connectMovie(5146);
NewgroundsAPI.addCustomLink(1, "Hanias RCJ song on Newgrounds");
NewgroundsAPI.addCustomLink(2, "RCJ on Youtube");
NewgroundsAPI.addCustomLink(3, "Tarboy Website");
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("51350430", this, 10301, true);
stop();
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("e8722c5f", this, 10301, true);
play();
Frame 1015
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("09c97073", this, 10301, true);
Frame 1936
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("9dd60c67", this, 10301, true);
Frame 1942
stop();
Frame 1943
stop();
Instance of Symbol 787 MovieClip [ToobPlayer (Glossy)] in Frame 1943
//component parameters
onClipEvent (construct) {
autoLoadYouTubePreviewImage = false;
autoPlay = true;
autoRepeat = false;
mouseWheel = "volume";
showFullScreenButton = false;
url = "http://www.youtube.com/watch?v=-FBZ-PQoo9U";
volume = 50;
youTubeProxy = "http://emehmedovic.com/xmca/toobplayer/fl_youTubeProxy.php";
}
Symbol 20 MovieClip Frame 40
stop();
Symbol 34 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 35 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 10 MovieClip in Symbol 36 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 36 MovieClip Frame 101
play();
Symbol 36 MovieClip Frame 165
stop();
Symbol 42 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 48 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 50 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 795 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 796 MovieClip [__Packages.xm.corpus.resizableComponent] Frame 0
class xm.corpus.resizableComponent extends MovieClip
{
var __width, __height, _parent, _width, _height, _xscale, _yscale, Aligner;
function resizableComponent () {
super();
init();
}
function set width(p_width) {
setSize(p_width, height);
//return(width);
}
function set height(p_height) {
setSize(width, p_height);
//return(height);
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setSize(p_width, p_height) {
p_width = Math.min(maxWidth, Math.max(minWidth, p_width));
p_height = Math.min(maxHeight, Math.max(minHeight, p_height));
if ((__width != p_width) || (__height != p_height)) {
__width = p_width;
__height = p_height;
dispatchEvent({type:"resize"});
}
}
function evaluateTarget(p_target) {
var _local4 = p_target.split(".");
var _local3 = _parent;
var _local2 = 0;
while (_local2 < _local4.length) {
_local3 = _local3[_local4[_local2]];
_local2++;
}
return(_local3);
}
function init(Void) {
xm.corpus.dispatch.initialize(this);
if (width == undefined) {
__width = Math.min(maxWidth, Math.max(minWidth, _width));
}
if (height == undefined) {
__height = Math.min(maxHeight, Math.max(minHeight, _height));
}
_xscale = 100;
_yscale = 100;
Aligner = new xm.corpus.aligner(this);
}
function dispatchEvent(p_eventObj) {
}
function addEventListener(p_eventName, p_handler) {
}
function addEventListenerL(p_eventName, p_obj, p_handler) {
}
function removeEventListener(p_eventName, p_handler) {
}
function removeEventListenerL(p_eventName, p_obj, p_handler) {
}
function removeAllEventListeners(p_eventName) {
}
var minWidth = 0;
var minHeight = 0;
var maxWidth = Number.POSITIVE_INFINITY;
var maxHeight = Number.POSITIVE_INFINITY;
}
Symbol 797 MovieClip [__Packages.xm.corpus.aligner] Frame 0
class xm.corpus.aligner
{
var host, alignees, _intervalid, _starttimer;
function aligner (p_host) {
host = p_host;
init();
}
function init(Void) {
alignees = new Object();
xm.corpus.dispatch.initialize(this);
if ((host == Stage) || (host == _global.gStage)) {
if ((Stage.scaleMode != "noScale") || (Stage.align != "TL")) {
Stage.scaleMode = "noScale";
Stage.align = "TL";
}
if (Stage.showMenu) {
Stage.showMenu = false;
}
}
if (host.addEventListener) {
host.addEventListener("resize", this);
} else {
host.addListener(this);
}
}
function free(Void) {
removeAll();
if (host.addEventListener) {
host.removeEventListener("resize", this);
} else {
host.removeListener(this);
}
if (_intervalid != undefined) {
clearInterval(_intervalid);
}
}
function update(p_clip) {
var c;
if (((c = eval (p_clip))) == undefined) {
remove(p_clip);
} else {
updateAfterEvent();
var a = alignees[p_clip];
var $host = host;
with (a) {
if (hAlign || (vAlign)) {
var t = {};
if (hAlign) {
if (hCenterPointCalculated == "center") {
t.x = (hPositionOffset + hPositionRounding(($host.width - hPositionMargin) * hPosition)) - Math.round((c.setSize ? (c.width) : (c._width)) / 2);
} else if (hCenterPointCalculated == "right") {
t.x = (hPositionOffset + hPositionRounding(($host.width - hPositionMargin) * hPosition)) - Math.round((c.setSize ? (c.width) : (c._width)));
} else {
t.x = hPositionOffset + hPositionRounding(($host.width - hPositionMargin) * hPosition);
}
} else {
t.x = 0;
}
if (vAlign) {
if (vCenterPointCalculated == "center") {
t.y = (vPositionOffset + vPositionRounding(($host.height - vPositionMargin) * vPosition)) - Math.round((c.setSize ? (c.height) : (c._height)) / 2);
} else if (vCenterPointCalculated == "bottom") {
t.y = (vPositionOffset + vPositionRounding(($host.height - vPositionMargin) * vPosition)) - Math.round((c.setSize ? (c.height) : (c._height)));
} else {
t.y = vPositionOffset + vPositionRounding(($host.height - vPositionMargin) * vPosition);
}
} else {
t.y = 0;
}
$host.localToGlobal(t);
c._parent.globalToLocal(t);
if (hAlign && (c._x != t.x)) {
c._x = t.x;
}
if (vAlign && (c._y != t.y)) {
c._y = t.y;
}
}
if (proportionalStretch != "none") {
if (((proportionalStretch != "out") && (($host.width / $host.height) >= (boundingRectagleWidth / boundingRectagleHeight))) || ((proportionalStretch == "out") && (($host.width / $host.height) < (boundingRectagleWidth / boundingRectagleHeight)))) {
c._xscale = (($host.height - vPositionMargin) / boundingRectagleHeight) * 100;
c._yscale = (($host.height - vPositionMargin) / boundingRectagleHeight) * 100;
} else {
c._xscale = (($host.width - hPositionMargin) / boundingRectagleWidth) * 100;
c._yscale = (($host.width - hPositionMargin) / boundingRectagleWidth) * 100;
}
} else if (c.setSize && (hStretch || (vStretch))) {
var w = (hStretch ? (hSizeRounding($host.width * hSize) - hSizeMargin) : (c.width));
if (w < 0) {
w = 0;
}
var h = (vStretch ? (vSizeRounding($host.height * vSize) - vSizeMargin) : (c.height));
if (h < 0) {
h = 0;
}
if ((c.width != w) || (c.height != h)) {
c.setSize(w, h);
}
} else {
if (hStretch) {
var w = (hSizeRounding($host.width * hSize) - hSizeMargin);
if (w < 0) {
w = 0;
}
if (c._width != w) {
c._width = w;
}
}
if (vStretch) {
var h = (vSizeRounding($host.height * vSize) - vSizeMargin);
if (h < 0) {
h = 0;
}
if (c._height != h) {
c._height = h;
}
}
}
}
}
}
function remove(p_clip) {
if (alignees[p_clip].resizeReceiver != undefined) {
var c = eval (p_clip);
if (c.addEventListener) {
c.removeEventListener("resize", alignees[p_clip].resizeReceiver);
} else {
c.removeListener(alignees[p_clip].resizeReceiver);
}
}
delete alignees[p_clip];
}
function removeAll(Void) {
var _local2;
for (_local2 in alignees) {
remove(_local2);
}
}
function register(p_mclip, p_alignData) {
registerOnly(p_mclip, p_alignData);
update(String(p_mclip));
}
function registerOnly(p_mclip, p_alignData) {
var p_clip = String(p_mclip);
if (alignees[p_clip]) {
remove(p_clip);
}
var a = ((alignees[p_clip] = new xm.corpus.alignData()));
var i;
for (i in p_alignData) {
a[i] = p_alignData[i];
}
a._clipReference = p_clip;
if ((a.hCenterPointCalculated != "none") || (a.vCenterPointCalculated != "none")) {
var c = eval (p_clip);
a.resizeReceiver = new xm.corpus.alignResizeReceiver(p_clip, this);
if (c.addEventListener) {
c.addEventListener("resize", a.resizeReceiver);
} else {
c.addListener(a.resizeReceiver);
}
}
}
function updateAll(_timedout) {
if (_timedout == true) {
clearInterval(_intervalid);
_intervalid = undefined;
} else if (redrawInertness > 0) {
if (_intervalid == undefined) {
_intervalid = setInterval(this, "updateAll", redrawInertness, true);
_starttimer = getTimer();
return(undefined);
}
if ((getTimer() - _starttimer) > redrawInertness) {
clearInterval(_intervalid);
_intervalid = undefined;
} else {
return(undefined);
}
}
var _local2;
for (_local2 in alignees) {
update(_local2);
}
dispatchEvent({type:"resize"});
}
function _register(p_clip, p_alignData) {
p_alignData._allowRemove = false;
register(p_clip, p_alignData);
}
function _remove(p_clip) {
if (alignees[p_clip]._allowRemove) {
remove(p_clip);
}
}
function dispatchEvent(p_eventObj) {
}
function addEventListener(p_eventName, p_handler) {
}
function addEventListenerL(p_eventName, p_obj, p_handler) {
}
function removeEventListener(p_eventName, p_handler) {
}
function removeEventListenerL(p_eventName, p_obj, p_handler) {
}
function removeAllEventListeners(p_eventName) {
}
var redrawInertness = 0;
var resize = xm.corpus.aligner.prototype.updateAll;
var onResize = xm.corpus.aligner.prototype.updateAll;
}
Symbol 798 MovieClip [__Packages.xm.corpus.dispatch] Frame 0
class xm.corpus.dispatch
{
var _$listeners;
function dispatch () {
}
static function initialize(p_obj) {
p_obj.addEventListener = dispatchInstance.addEventListener;
p_obj.removeEventListener = dispatchInstance.removeEventListener;
p_obj.addEventListenerL = dispatchInstance.addEventListenerL;
p_obj.removeEventListenerL = dispatchInstance.removeEventListenerL;
p_obj.removeAllEventListeners = dispatchInstance.removeAllEventListeners;
p_obj.removeAllListeners = dispatchInstance.removeAllListeners;
p_obj.dispatchEvent = dispatchInstance.dispatchEvent;
p_obj._$listeners = {};
}
function dispatchEvent(p_eventObj) {
var _local6 = p_eventObj.type;
var _local2 = _$listeners[_local6];
this[_local6 + "Handler"](p_eventObj);
var _local3;
for (_local3 in _local2) {
var _local4 = typeof(_local2[_local3].f);
if (_local4 == "string") {
_local2[_local3].o[_local2[_local3].f](p_eventObj);
} else if (_local4 == "function") {
_local2[_local3].f.apply(_local2[_local3].o, p_eventObj);
} else if ((_local4 == "object") || (_local4 == "movieclip")) {
if (_local2[_local3].f.handleEvent) {
_local2[_local3].f[_local6](p_eventObj);
} else {
_local2[_local3].f.handleEvent(p_eventObj);
}
}
}
if (_local6 != "ALL") {
p_eventObj.type = "ALL";
dispatchEvent(p_eventObj);
}
}
function addEventListener(p_eventName, p_handler) {
if (typeof(p_handler) == "function") {
addEventListenerL(p_eventName, this, p_handler);
} else {
addEventListenerL(p_eventName, p_handler);
}
}
function addEventListenerL(p_eventName, p_obj, p_handler) {
var _local2 = _$listeners[p_eventName];
if (p_handler == undefined) {
p_handler = p_eventName;
}
if (_local2 == undefined) {
_local2 = (_$listeners[p_eventName] = []);
}
var _local3;
for (_local3 in _local2) {
if ((_local2[_local3].o == p_obj) && (_local2[_local3].f == p_handler)) {
return(undefined);
}
}
_local2[_local2.length] = {o:p_obj, f:p_handler};
}
function removeEventListener(p_eventName, p_handler) {
if (typeof(p_handler) == "function") {
removeEventListenerL(p_eventName, this, p_handler);
} else {
removeEventListenerL(p_eventName, p_handler);
}
}
function removeEventListenerL(p_eventName, p_obj, p_handler) {
var _local2 = _$listeners[p_eventName];
var _local3;
for (_local3 in _local2) {
if ((_local2[_local3].o == p_obj) && (_local2[_local3].f == p_handler)) {
_local2.splice(_local3, 1);
return(undefined);
}
}
}
function removeAllEventListeners(p_eventName) {
delete _$listeners[p_eventName];
}
function removeAllListeners(Void) {
_$listeners = {};
}
static var dispatchInstance = new xm.corpus.dispatch();
}
Symbol 799 MovieClip [__Packages.xm.corpus.alignData] Frame 0
class xm.corpus.alignData
{
function alignData () {
}
static function noRounding(p_n) {
return(p_n);
}
var hAlign = false;
var vAlign = false;
var hPosition = 0;
var vPosition = 0;
var hPositionMargin = 0;
var vPositionMargin = 0;
var hPositionOffset = 0;
var vPositionOffset = 0;
var hCenterPointCalculated = "none";
var vCenterPointCalculated = "none";
var hPositionRounding = noRounding;
var vPositionRounding = noRounding;
var resizeReceiver = undefined;
var hStretch = false;
var vStretch = false;
var hSize = 1;
var vSize = 1;
var hSizeMargin = 0;
var vSizeMargin = 0;
var hSizeRounding = noRounding;
var vSizeRounding = noRounding;
var proportionalStretch = "none";
var boundingRectagleWidth = 550;
var boundingRectagleHeight = 400;
}
Symbol 800 MovieClip [__Packages.xm.corpus.alignResizeReceiver] Frame 0
class xm.corpus.alignResizeReceiver
{
var alignee, alignerObj;
function alignResizeReceiver (p_clip, p_alignerObj) {
alignee = p_clip;
alignerObj = p_alignerObj;
}
function resize(Void) {
alignerObj.update(alignee);
}
}
Symbol 801 MovieClip [__Packages.xm.components.ToobPlayerComponent] Frame 0
class xm.components.ToobPlayerComponent extends xm.corpus.resizableComponent
{
var tabChildren, dispatchEvent, initialized, display, preStatus, __url, __showFullScreenButton, image, youTubeId, youTubeProxy, youTubeProxyXML, __autoPlay, __autoRepeat, __volume, __mouseWheel, _xmouse, __get__width, _ymouse, __get__height, _wheelSeekIId, _wheelSeekWasPlaying, _wheelSeekTime;
function ToobPlayerComponent () {
super();
}
function init(Void) {
super.init();
tabChildren = false;
}
function setFullScreen(p_fs) {
if (isFullScreen == p_fs) {
return(undefined);
}
isFullScreen = p_fs;
if (isFullScreen) {
dispatchEvent({type:"enterFullScreen"});
} else {
dispatchEvent({type:"exitFullScreen"});
}
}
function lateInit(Void) {
initialized = true;
volume = (volume);
autoPlay = (autoPlay);
autoRepeat = (autoRepeat);
display.addEventListenerL("start", this, videoStart);
url = (url);
}
function prePlay(Void) {
preStatus = "play";
display.dispatchEvent({type:"prePlay"});
}
function preStop(Void) {
preStatus = "stop";
display.dispatchEvent({type:"preStop"});
}
function get url() {
return(__url);
}
function get showFullScreenButton() {
return(__showFullScreenButton);
}
function set showFullScreenButton(p_val) {
__showFullScreenButton = p_val;
dispatchEvent({type:"showOrHideFullScreenButton"});
//return(showFullScreenButton);
}
function loadYouTubePreviewImage(Void) {
image.__set__url((youTubeProxy + "?image=") + escape(("http://img.youtube.com/vi/" + youTubeId) + "/default.jpg"));
}
function videoStart(Void) {
image.clear();
}
function set url(p_val) {
__url = p_val;
if (((url == "") || (url == undefined)) || (!initialized)) {
return;
}
display.stop();
youTubeId = extractYouTubeId(url);
if (youTubeId) {
display.preferredWidth = 320;
display.preferredHeight = 240;
if (autoLoadYouTubePreviewImage) {
loadYouTubePreviewImage();
} else {
image.clear();
}
isAcquiringYouTubeUrl = true;
delete youTubeProxyXML.onXMLLoad;
delete youTubeProxyXML.onError;
youTubeProxyXML = new xm.util.quickParsedXML((youTubeProxy + "?id=") + escape(youTubeId));
youTubeProxyXML.retry = false;
youTubeProxyXML.toobPlayerRef = this;
youTubeProxyXML.onError = function () {
this.toobPlayerRef.preStop();
this.toobPlayerRef.isAcquiringYouTubeUrl = false;
this.toobPlayerRef.display.dispatchEvent({type:"errorAcquiringYouTubeUrl"});
};
youTubeProxyXML.onXMLLoad = function () {
var _local2 = this.defaultParse()[0];
if (!_local2.video_id) {
this.onError();
} else {
this.toobPlayerRef.isAcquiringYouTubeUrl = false;
delete this.toobPlayerRef.preStatus;
this.toobPlayerRef.display.url = (("http://youtube.com/get_video.php?video_id=" + _local2.video_id) + "&t=") + _local2.t;
if ((!this.toobPlayerRef.autoPlay) && (this.toobPlayerRef.ctrl.playpause._currentFrame == 2)) {
this.toobPlayerRef.display.play();
}
this.toobPlayerRef.display.dispatchEvent({type:"acquiredYouTubeUrl"});
}
};
display.dispatchEvent({type:"acquiringYouTubeUrl"});
if (autoPlay) {
prePlay();
}
} else {
delete youTubeProxyXML.onXMLLoad;
delete youTubeProxyXML.onError;
image.clear();
isAcquiringYouTubeUrl = false;
display.__set__url(url);
}
//return(url);
}
function get autoPlay() {
return(__autoPlay);
}
function set autoPlay(p_val) {
__autoPlay = p_val;
display.autoPlay = autoPlay;
//return(autoPlay);
}
function get autoRepeat() {
return(__autoRepeat);
}
function set autoRepeat(p_val) {
__autoRepeat = p_val;
display.autoRepeat = autoRepeat;
//return(autoRepeat);
}
function get volume() {
return(__volume);
}
function set volume(p_val) {
__volume = p_val;
display.__set__volume(volume);
//return(volume);
}
function checkYouTubeId(p_id, p_handler) {
var _local2 = new xm.util.quickParsedXML((youTubeProxy + "?id=") + escape(p_id));
_local2.retry = false;
_local2.handler = p_handler;
_local2.onError = function () {
this.handler(false);
};
_local2.onXMLLoad = function () {
var _local2 = this.defaultParse()[0];
if (!_local2.video_id) {
this.handler(false, p_id);
} else {
this.handler(true, p_id);
}
};
}
static function extractYouTubeId(p_url) {
var _local1;
_local1 = p_url.indexOf("youtube.com/watch?v=");
if (_local1 != -1) {
var _local2 = p_url.substr(_local1 + 20);
_local1 = _local2.indexOf("&");
if (_local1 < 0) {
_local1 = undefined;
}
return(_local2.substr(0, _local1));
}
_local1 = p_url.indexOf("youtube.com/v/");
if (_local1 != -1) {
var _local2 = p_url.substr(_local1 + 14);
var _local6 = _local2.indexOf("&");
var _local5 = _local2.indexOf("'");
var _local4 = _local2.indexOf("\"");
if (_local6 < 0) {
_local6 = Infinity;
}
if (_local5 < 0) {
_local5 = Infinity;
}
if (_local4 < 0) {
_local4 = Infinity;
}
_local1 = Math.min(_local4, Math.min(_local6, _local5));
if (_local1 == Infinity) {
_local1 = undefined;
}
return(_local2.substr(0, _local1));
}
if (p_url.indexOf(".") == -1) {
return(p_url);
}
}
function get mouseWheel() {
return(__mouseWheel);
}
function set mouseWheel(p_val) {
Mouse.removeListener(this);
if (((__mouseWheel = p_val)) != "none") {
Mouse.addListener(this);
}
//return(mouseWheel);
}
function _wheelSeekStop(p_toob) {
clearInterval(p_toob._wheelSeekIId);
delete p_toob._wheelSeekIId;
if (p_toob._wheelSeekWasPlaying) {
p_toob.display.disablePlayingEvents = true;
p_toob.display.__set__time(p_toob.display.time);
p_toob.display.pause(false);
p_toob.display.disablePlayingEvents = false;
p_toob.display.__set__time(p_toob.display.time);
}
}
function onMouseWheel(p_delta, t_scrollTarget) {
if ((((_xmouse >= 0) && (_xmouse < __get__width())) && (_ymouse >= 0)) && (_ymouse < __get__height())) {
if (mouseWheel == "volume") {
display.__set__volume(Math.max(0, Math.min(100, display.__get__volume() - (p_delta * mouseWheelVolumeStep))));
} else if (mouseWheel == "seek") {
if (_wheelSeekIId == undefined) {
_wheelSeekIId = setInterval(_wheelSeekStop, 350, this);
_wheelSeekWasPlaying = display.playing;
_wheelSeekTime = display.time;
display.disablePlayingEvents = true;
display.pause(true);
display.disablePlayingEvents = false;
} else {
clearInterval(_wheelSeekIId);
_wheelSeekIId = setInterval(_wheelSeekStop, 350, this);
}
_wheelSeekTime = Math.max(0, Math.min((display.duration ? (display.duration) : (Infinity)), _wheelSeekTime - ((p_delta * mouseWheelSeekStep) * 1)));
display.__set__time(_wheelSeekTime);
}
}
updateAfterEvent();
}
var isAcquiringYouTubeUrl = false;
var isFullScreen = false;
var autoLoadYouTubePreviewImage = false;
var mouseWheelVolumeStep = 5;
var mouseWheelSeekStep = 5;
}
Symbol 802 MovieClip [__Packages.xm.util.quickXML] Frame 0
class xm.util.quickXML extends XML
{
var url, onError, _iid, load, onXMLLoad;
function quickXML (p_url) {
super();
url = p_url;
fetch();
}
function onData(p_raw) {
if (p_raw) {
if (p_raw.substr(0, 4) != "<xml") {
trace("INVALID XML:");
trace("-------------------------------------------");
trace(p_raw);
trace("-------------------------------------------");
onError("Invalid XML");
} else if (globalVerboseXml) {
trace("XML:");
trace("-------------------------------------------");
trace(p_raw.substr(0, 255));
trace("-------------------------------------------");
}
}
return(super.onData(p_raw));
}
function fetch(Void) {
if (globalVerboseXml) {
trace("<- " + url);
}
if (_iid != undefined) {
clearInterval(_iid);
delete _iid;
}
if (preventCaching && ((url.substr(0, 7) == "http://") || (!Boolean(_global.MMSave)))) {
if (url.indexOf("?") != -1) {
load((((url + "&rnd=") + random(9999)) + "_") + random(9999));
} else {
load((((url + "?rnd=") + random(9999)) + "_") + random(9999));
}
} else {
load(url);
}
}
function onLoad(p_success) {
if (!p_success) {
trace(" ERROR LOADING XML");
if (_global.MMSave) {
trace(" Loading will not retry while testing in IDE.");
} else if (retry) {
_iid = setInterval(fetch, 100);
}
onError("Loading error");
} else {
onXMLLoad();
}
}
var preventCaching = true;
var retry = true;
static var globalVerboseXml = false;
}
Symbol 803 MovieClip [__Packages.xm.util.quickParsedXML] Frame 0
class xm.util.quickParsedXML extends xm.util.quickXML
{
var firstChild;
function quickParsedXML (p_url) {
super(p_url);
}
function defaultParse(Void) {
var _local7 = new Array();
var _local5 = firstChild.childNodes;
var _local4 = 0;
while (_local4 < _local5.length) {
var _local3 = new Object();
var _local2 = _local5[_local4].attributes;
for (var _local6 in _local2) {
_local3[_local6] = unescape(_local2[_local6]).split("\r\n").join(newline);
}
_local7.push(_local3);
_local4++;
}
return(_local7);
}
}
Symbol 804 MovieClip [__Packages.xm.components.FLVDisplayComponent] Frame 0
class xm.components.FLVDisplayComponent extends xm.corpus.resizableComponent
{
var ns, _currentframe, dispatchEvent, _sound, __playing, _this, duration, preloading, preloadingBL, preloadingBT, started, opening, video, __get__width, __get__height, width, height, __url, oldTime, stuckTime, nextFrame, Aligner, _mask, setMask, nc, callWhenInitialized;
function FLVDisplayComponent () {
super();
}
function get bufferTime() {
return(__bufferTime);
}
function set bufferTime(p_btime) {
__bufferTime = p_btime;
ns.setBufferTime(p_btime);
//return(bufferTime);
}
function get zoom() {
return(__zoom);
}
function set zoom(p_zoom) {
__zoom = p_zoom;
if (_currentframe == 1) {
return;
}
resetResizeMode();
dispatchEvent({type:"zoom"});
//return(zoom);
}
function get volume() {
return(__volume);
}
function set volume(p_volume) {
__volume = p_volume;
_sound.setVolume(p_volume);
dispatchEvent({type:"volume"});
//return(volume);
}
function setPlaying(p_val) {
if (playing != p_val) {
__playing = p_val;
if (!disablePlayingEvents) {
dispatchEvent({type:(playing ? "playing" : "notPlaying")});
}
} else {
__playing = p_val;
}
}
function get playing() {
return(__playing);
}
function __onMetaData(p_eobj) {
_this.___onMetaData(p_eobj);
}
function ___onMetaData(p_eobj) {
bufferTime = (bufferTime);
if (p_eobj.width) {
preferredWidth = p_eobj.width;
}
if (p_eobj.height) {
preferredHeight = p_eobj.height;
}
if (p_eobj.duration) {
duration = parseFloat(p_eobj.duration);
} else {
delete duration;
}
resetResizeMode();
if (playing) {
ns.pause(false);
}
dispatchEvent({type:"meta"});
}
function __onStatus(p_eobj) {
_this.___onStatus(p_eobj);
}
function ___onStatus(p_eobj) {
if (p_eobj.code == "NetStream.Play.StreamNotFound") {
setPlaying(false);
preloading = false;
preloadingBL = undefined;
preloadingBT = undefined;
started = false;
opening = false;
dispatchEvent({type:"closed"});
dispatchEvent({type:"change"});
dispatchEvent({type:"error"});
} else if (p_eobj.code == "NetStream.Buffer.Empty") {
dispatchEvent({type:"bufferEmpty"});
} else if (p_eobj.code == "NetStream.Buffer.Full") {
dispatchEvent({type:"bufferFull"});
} else if (p_eobj.code == "NetStream.Buffer.Flush") {
dispatchEvent({type:"bufferFlush"});
} else if (p_eobj.code == "NetStream.Play.Start") {
started = true;
opening = false;
dispatchEvent({type:"start"});
setPlaying(true);
video.smoothing = true;
} else if (p_eobj.code == "NetStream.Play.Stop") {
var _local3 = playing;
if (_local3) {
if (autoRepeat) {
time = (0);
ns.pause(false);
} else {
pause(true);
time = (0);
}
}
dispatchEvent({type:"complete"});
}
}
function get resizeMode() {
return(__resizeMode);
}
function set resizeMode(p_mode) {
__resizeMode = p_mode;
if (_currentframe == 1) {
return;
}
resetResizeMode();
//return(resizeMode);
}
function resetResizeMode(Void) {
var _local2 = Math.round((preferredWidth * zoom) / 100);
var _local3 = Math.round((preferredHeight * zoom) / 100);
var _local4 = resizeMode;
if (_local4 == rmCenterOrFitInto) {
_local4 = (((_local2 > __get__width()) || (_local3 > __get__height())) ? (rmFitIntoAR) : (rmCenter));
}
if (_local4 == rmCenter) {
video._width = _local2;
video._height = _local3;
video._x = Math.ceil((__get__width() - _local2) / 2);
video._y = Math.ceil((__get__height() - _local3) / 2);
} else if (_local4 == rmFitInto) {
video._width = width;
video._height = height;
video._x = 0;
video._y = 0;
} else if (_local4 == rmComponentToVideo) {
video._width = _local2;
video._height = _local3;
video._x = 0;
video._y = 0;
setSize(_local2, _local3);
} else {
var _local5 = (__get__width() / __get__height()) > (_local2 / _local3);
if (((_local4 == rmFillOut) ? (_local5) : (!_local5))) {
video._width = width;
video._height = (__get__width() * _local3) / _local2;
video._y = -Math.round((video._height - __get__height()) / 2);
video._x = 0;
} else {
video._height = height;
video._width = (__get__height() * _local2) / _local3;
video._x = -Math.round((video._width - __get__width()) / 2);
video._y = 0;
}
}
dispatchEvent({type:"resizeVideo"});
}
function setSize(p_width, p_height) {
super.setSize(p_width, p_height);
if (resizeMode != rmComponentToVideo) {
resetResizeMode();
}
}
function get url() {
return(__url);
}
function onEnterFrame(Void) {
if (preloading) {
if ((preloadingBL != ns.bytesLoaded) || (preloadingBT != ns.bytesTotal)) {
preloadingBL = ns.bytesLoaded;
preloadingBT = ns.bytesTotal;
dispatchEvent({type:"progress", bl:preloadingBL, bt:preloadingBT});
}
if ((preloadingBL >= preloadingBT) && (preloadingBT > 0)) {
preloading = false;
dispatchEvent({type:"loaded"});
}
}
if (time != oldTime) {
oldTime = time;
stuckTime = getTimer();
dispatchEvent({type:"change"});
} else if (playing && (!preloading)) {
if ((getTimer() - stuckTime) > 1000) {
time = ((time+1));
}
} else {
stuckTime = getTimer();
}
}
function set url(p_val) {
__url = p_val;
if (((_currentframe == 1) || (url == "")) || (url == undefined)) {
return;
}
stop();
if (autoPlay) {
play();
}
//return(url);
}
function clear(Void) {
stop();
video.clear();
}
function play(Void) {
if ((url == "") || (url == undefined)) {
return(undefined);
}
setPlaying(false);
started = false;
opening = true;
preloading = true;
preloadingBL = undefined;
preloadingBT = undefined;
ns.setBufferTime(0);
ns.play(url);
ns.pause(true);
dispatchEvent({type:"opening"});
}
function pause(p_pause) {
ns.pause(p_pause);
if (p_pause == undefined) {
setPlaying(!playing);
} else if (p_pause) {
setPlaying(false);
} else {
setPlaying(true);
}
}
function stop(Void) {
setPlaying(false);
preloading = false;
started = false;
opening = false;
delete duration;
ns.close();
preloadingBL = ns.bytesLoaded;
preloadingBT = ns.bytesTotal;
dispatchEvent({type:"closed"});
dispatchEvent({type:"progress", bl:preloadingBL, bt:preloadingBT});
}
function get time() {
return(ns.time);
}
function set time(p_time) {
ns.seek(p_time);
dispatchEvent({type:"seeking"});
//return(time);
}
function init(Void) {
super.init();
nextFrame();
Aligner.register(_mask, {hStretch:true, vStretch:true});
setMask(_mask);
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
video.smoothing = true;
video.attachVideo(ns);
ns._this = this;
ns.onMetaData = __onMetaData;
ns.onStatus = __onStatus;
_mask.attachAudio(ns);
_sound = new Sound(_mask);
var _local3 = 0;
while (_local3 < callWhenInitialized.length) {
var _local4 = callWhenInitialized[_local3];
_local4.f.apply(_local4.o);
_local3++;
}
bufferTime = (bufferTime);
url = (url);
volume = (volume);
resizeMode = (resizeMode);
}
static var rmFitIntoAR = "fit into component area / mind aspect ratio";
static var rmFitInto = "fit into component area";
static var rmFillOut = "fill out component area";
static var rmCenter = "center in component area";
static var rmCenterOrFitInto = "center in component area / shrink if necessary";
static var rmComponentToVideo = "resize component to video size";
var __volume = 100;
var __zoom = 100;
var __bufferTime = 0.5;
var __resizeMode = rmFitIntoAR;
var disablePlayingEvents = false;
var preferredWidth = 320;
var preferredHeight = 240;
var autoRepeat = false;
var autoPlay = true;
}
Symbol 805 MovieClip [__Packages.xm.components.FLVControllerComponent] Frame 0
class xm.components.FLVControllerComponent extends xm.corpus.resizableComponent
{
var addEventListener, display, nextFrame, evaluateTarget, _targetInstanceName;
function FLVControllerComponent () {
super();
}
function addListeners(Void) {
addEventListener("resize", this);
display.addEventListenerL("resize", this, "resizeDisplay");
display.addEventListener("resizeVideo", this);
display.addEventListener("start", this);
display.addEventListener("complete", this);
display.addEventListener("progress", this);
display.addEventListener("loaded", this);
display.addEventListener("change", this);
display.addEventListener("opening", this);
display.addEventListener("seeking", this);
display.addEventListener("closed", this);
display.addEventListener("error", this);
display.addEventListener("volume", this);
display.addEventListener("zoom", this);
display.addEventListener("playing", this);
display.addEventListener("notPlaying", this);
display.addEventListener("bufferEmpty", this);
display.addEventListener("bufferFull", this);
display.addEventListener("bufferFlush", this);
display.addEventListener("acquiringYouTubeUrl", this);
display.addEventListener("acquiredYouTubeUrl", this);
display.addEventListener("errorAcquiringYouTubeUrl", this);
display.addEventListener("prePlay", this);
display.addEventListener("preStop", this);
}
function init(Void) {
super.init();
nextFrame();
display = evaluateTarget(_targetInstanceName);
if (display.addEventListener) {
addListeners();
} else {
if (!display.callWhenInitialized) {
display.callWhenInitialized = new Array();
}
display.callWhenInitialized.push({f:addListeners, o:this});
}
}
}
Symbol 806 MovieClip [__Packages.xm.components.ImageContainerComponent] Frame 0
class xm.components.ImageContainerComponent extends xm.corpus.resizableComponent
{
static var globalPreventImageCaching;
var _currentframe, __applyMask, _initializing, attachMovie, getNextHighestDepth, Aligner, _mask, _container, __url, imageQueue, anyLoading, loader, dispatchEvent, anyShowing, _iid, __get__width, __get__height, width, height, evaluateTarget, nextFrame;
function ImageContainerComponent () {
super();
}
function get resizeMode() {
return(__resizeMode);
}
function set resizeMode(p_mode) {
__resizeMode = p_mode;
if (_currentframe == 1) {
return;
}
refresh();
//return(resizeMode);
}
function setSize(p_width, p_height) {
super.setSize(p_width, p_height);
if (resizeMode != rmComponentToImage) {
refresh();
}
}
function get applyMask() {
return(__applyMask);
}
function set applyMask(p_mode) {
if ((p_mode == applyMask) && (!_initializing)) {
return;
}
__applyMask = p_mode;
if (_currentframe == 1) {
return;
}
if (applyMask) {
attachMovie("ImageContainer Component: Mask", "_mask", getNextHighestDepth());
Aligner.register(_mask, {hStretch:true, vStretch:true});
_container.setMask(_mask);
} else {
_mask.removeMovieClip();
_container.setMask(null);
}
//return(applyMask);
}
function get url() {
return(__url);
}
function set url(p_val) {
if (((((preventImageCaching || (globalPreventImageCaching)) && ((url.substr(0, 7) == "http://") || (!Boolean(_global.MMSave)))) && (p_val != undefined)) && (p_val != "")) && (!_initializing)) {
if (p_val.indexOf("?") >= 0) {
p_val = p_val + ((("&rnd=" + getTimer()) + "_") + random(999999999));
} else {
p_val = p_val + ((("?rnd=" + getTimer()) + "_") + random(999999999));
}
}
if ((((p_val == url) && (!_initializing)) || (p_val == undefined)) || (p_val == "")) {
return;
}
__url = p_val;
if (_currentframe == 1) {
return;
}
addImageToSupraQueue(url);
//return(url);
}
function addImageToQueue(p_url) {
var _local2 = _container.createEmptyMovieClip(String(++imageCounter), _container.getNextHighestDepth());
_local2 = _local2.createEmptyMovieClip(String(imageCounter), _local2.getNextHighestDepth());
imageQueue.push({mc:_local2, url:p_url});
if (loadingType == ltParallel) {
clearNotLoadedImagesBelow(_local2);
}
if (!((loadingType == ltQueue) && (anyLoading))) {
loadNextImage();
}
}
function loadNextImage() {
var _local3 = 0;
while (_local3 < imageQueue.length) {
var _local2 = imageQueue[_local3];
if (!_local2.started) {
_local2.started = true;
anyLoading = true;
loader.loadClip(_local2.url, _local2.mc);
dispatchEvent({type:"loadStart", image:_local2.mc});
return(undefined);
}
_local3++;
}
anyLoading = false;
}
function clear(Void) {
while (imageQueue.length) {
var _local2 = imageQueue[0];
_local2.mc.removeMovieClip();
imageQueue.shift();
}
delete __url;
anyShowing = false;
if (anyLoading) {
dispatchEvent({type:"loadComplete"});
}
loadNextImage();
}
function clearImagesBelow(p_cont) {
while (imageQueue.length) {
var _local2 = imageQueue[0];
if ((!_local2.started) || (_local2.mc == p_cont)) {
break;
}
_local2.mc.removeMovieClip();
imageQueue.shift();
}
}
function clearNotLoadedImagesBelow(p_cont) {
var _local3 = 0;
while (_local3 < imageQueue.length) {
var _local2 = imageQueue[_local3];
if (_local2.mc == p_cont) {
break;
}
if (!_local2.mc.imageLoaded) {
_local2.mc.removeMovieClip();
imageQueue.splice(_local3, 1);
} else {
_local3++;
}
}
}
function findInQueue(p_mc) {
var _local2 = 0;
while (_local2 < imageQueue.length) {
if (imageQueue[_local2].mc == p_mc) {
return(imageQueue[_local2]);
}
_local2++;
}
}
function getImageBelow(p_mc) {
var _local3;
var _local2 = 0;
while (_local2 < imageQueue.length) {
if (imageQueue[_local2].mc == p_mc) {
return(_local3);
}
if (imageQueue[_local2].mc.imageLoaded) {
_local3 = imageQueue[_local2].mc;
}
_local2++;
}
}
function _retryTimeout(Void) {
clearInterval(_iid);
delete _iid;
loadNextImage();
}
function onLoadError(p_mc) {
var _local2 = findInQueue(p_mc);
if (!_local2) {
return(undefined);
}
if (p_mc == imageQueue[imageQueue.length - 1].mc) {
_local2.started = false;
clearInterval(_iid);
_iid = setInterval(this, "_retryTimeout", retryDelay * 1000);
} else {
loadNextImage();
}
}
function onLoadComplete(p_mc) {
var _local3 = findInQueue(p_mc);
if (!_local3) {
return(undefined);
}
p_mc.url = findInQueue(p_mc).url;
p_mc.imageLoaded = true;
clearNotLoadedImagesBelow(p_mc);
dispatchEvent({type:"loadComplete", image:p_mc});
}
function onLoadInit(p_mc) {
var _local5 = findInQueue(p_mc);
if (!_local5) {
return(undefined);
}
anyShowing = true;
if (smoothing) {
var _local6 = p_mc.url;
var _local3 = new flash.display.BitmapData(p_mc._width, p_mc._height, smoothTransparency, 0);
_local3.draw(p_mc);
var _local4 = p_mc._parent;
p_mc = _local4.createEmptyMovieClip(p_mc._name, p_mc.getDepth());
p_mc.attachBitmap(_local3, 0, "never", true);
p_mc.url = _local6;
p_mc.imageLoaded = true;
}
p_mc.imageLoaded = true;
p_mc.imageReady = true;
if (!p_mc.preferredWidth) {
p_mc.preferredWidth = p_mc._width;
p_mc.preferredHeight = p_mc._height;
}
refreshSingle(p_mc);
dispatchEvent({type:"loadInit", image:p_mc});
loadNextImage();
if (supraQueueing) {
supraQueued = ((supraQueued-1));
processSupraQueue();
}
}
function refresh(Void) {
var _local2 = 0;
while (_local2 < imageQueue.length) {
if (imageQueue[_local2].mc.imageReady) {
refreshSingle(imageQueue[_local2].mc);
}
_local2++;
}
}
function refreshSingle(p_mc) {
var _local3 = resizeMode;
if (_local3 == rmCenterOrFitInto) {
_local3 = (((p_mc.preferredWidth > __get__width()) || (p_mc.preferredHeight > __get__height())) ? (rmFitIntoAR) : (rmCenter));
}
if (_local3 == rmCenter) {
p_mc._width = p_mc.preferredWidth;
p_mc._height = p_mc.preferredHeight;
p_mc._x = Math.ceil((__get__width() - p_mc.preferredWidth) / 2);
p_mc._y = Math.ceil((__get__height() - p_mc.preferredHeight) / 2);
} else if (_local3 == rmFitInto) {
p_mc._width = width;
p_mc._height = height;
p_mc._x = 0;
p_mc._y = 0;
} else if (_local3 == rmComponentToImage) {
p_mc._width = p_mc.preferredWidth;
p_mc._height = p_mc.preferredHeight;
p_mc._x = 0;
p_mc._y = 0;
setSize(p_mc.preferredWidth, p_mc.preferredHeight);
} else {
var _local4 = (__get__width() / __get__height()) > (p_mc.preferredWidth / p_mc.preferredHeight);
if (((_local3 == rmFillOut) ? (_local4) : (!_local4))) {
p_mc._width = width;
p_mc._yscale = p_mc._xscale;
p_mc._y = -Math.round((p_mc._height - __get__height()) / 2);
p_mc._x = 0;
} else {
p_mc._height = height;
p_mc._xscale = p_mc._yscale;
p_mc._x = -Math.round((p_mc._width - __get__width()) / 2);
p_mc._y = 0;
}
}
}
function onLoadProgress(p_mc, p_bl, p_bt) {
var _local2 = findInQueue(p_mc);
if (!_local2) {
return(undefined);
}
if (p_bt > 0) {
dispatchEvent({type:"loadProgress", bl:p_bl, bt:p_bt, image:p_mc});
}
}
function get supraQueueParent() {
var _local2 = evaluateTarget(supraQueueParentTarget);
if (!_local2.__supraQueue) {
_local2.__supraQueued = 0;
_local2.__supraQueue = new Array();
}
return(_local2);
}
function get supraQueue() {
return(supraQueueParent.__supraQueue);
}
function set supraQueued(p_val) {
supraQueueParent.__supraQueued = p_val;
//return(supraQueued);
}
function get supraQueued() {
return(supraQueueParent.__supraQueued);
}
function addImageToSupraQueue(p_url) {
if (supraQueueing) {
supraQueue.push({o:this, url:p_url});
processSupraQueue();
} else {
addImageToQueue(p_url);
}
}
function processSupraQueue(Void) {
while (supraQueue.length && (supraQueued < supraQueueWidth)) {
var _local2 = supraQueue.shift();
_local2.o.addImageToQueue(_local2.url);
supraQueued = ((supraQueued+1));
}
}
function init(Void) {
super.init();
nextFrame();
imageQueue = new Array();
loader = new MovieClipLoader();
loader.addListener(this);
_initializing = true;
applyMask = (applyMask);
url = (url);
_initializing = false;
}
static var rmFitIntoAR = "fit into component area / mind aspect ratio";
static var rmFitInto = "fit into component area";
static var rmFillOut = "fill out component area";
static var rmCenter = "center in component area";
static var rmCenterOrFitInto = "center in component area / shrink if necessary";
static var rmComponentToImage = "resize component to image size";
static var ltQueue = "queue";
static var ltParallel = "parallel";
static var imageCounter = 0;
var __resizeMode = rmFitInto;
var smoothing = true;
var smoothTransparency = false;
var retryDelay = 0.5;
var preventImageCaching = false;
var loadingType = ltQueue;
var supraQueueing = false;
var supraQueueParentTarget = "_parent";
var supraQueueWidth = 1;
}
Symbol 807 MovieClip [__Packages.xm.util.miniTweener] Frame 0
class xm.util.miniTweener
{
function miniTweener () {
}
static function addTween(p_mc, p_params) {
var _local7;
_local7 = p_mc[tweenerMcName];
if (!_local7) {
_local7 = p_mc.createEmptyMovieClip(tweenerMcName, p_mc.getNextHighestDepth());
}
var time = p_params.time;
var transition = ((typeof(p_params.transition) == "function") ? (p_params.transition) : (((p_params.transition == "linear") ? (easeNone) : (easeOutExpo))));
var startTime = getTimer();
var onComplete = p_params.onComplete;
var onUpdate = p_params.onUpdate;
var rounded = p_params.rounded;
delete p_params.time;
delete p_params.transition;
delete p_params.startTime;
delete p_params.onComplete;
delete p_params.onUpdate;
delete p_params.rounded;
for (var _local9 in p_params) {
var _local2;
_local2.startTime = startTime;
_local2 = _local7["prop_" + _local9];
if (!_local2) {
_local2 = _local7.createEmptyMovieClip("prop_" + _local9, _local7.getNextHighestDepth());
} else if (!_local2.completed) {
_local2.onEnterFrame();
} else {
_local2.completed = false;
}
_local2.time = time;
_local2.transition = transition;
_local2.startTime = startTime;
_local2.prop = _local9;
_local2.endPropValue = p_params[_local9];
_local2.startPropValue = p_mc[_local9];
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.rounded = rounded;
_local2.onEnterFrame = function () {
var _local2 = this._parent._parent;
var _local3 = getTimer();
var _local4 = this.transition(Math.min(this.time * 1000, _local3 - this.startTime), this.startPropValue, this.endPropValue - this.startPropValue, this.time * 1000);
_local2[this.prop] = (this.rounded ? (Math.round(_local4)) : (_local4));
this.onUpdate.apply(_local2);
if ((_local3 - this.startTime) >= (this.time * 1000)) {
this.completed = true;
this.onComplete.apply(_local2);
if ((_local3 - this.startTime) >= (this.time * 1000)) {
this.removeMovieClip();
}
}
};
}
}
static function removeTweens(p_mc) {
p_mc[tweenerMcName].removeMovieClip();
}
static function easeOutExpo(t, b, c, d) {
return(((t == d) ? (b + c) : (((c * 1.001) * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static var tweenerMcName = "__mini_tweener";
}
Symbol 76 Button
on (press) {
gotoAndPlay ("p2");
}
Symbol 77 Button
on (press) {
gotoAndPlay ("p1");
}
Symbol 81 Button
on (press) {
stop();
}
Symbol 85 Button
on (press) {
play();
}
Symbol 140 Button
on (press) {
gotoAndStop (1943);
}
Symbol 243 Button
on (press) {
gotoAndPlay ("p3");
}
Symbol 344 Button
on (press) {
gotoAndPlay ("p4");
}
Symbol 371 Button
on (press) {
gotoAndPlay ("p5");
}
Symbol 399 Button
on (press) {
gotoAndPlay ("p6");
}
Symbol 436 Button
on (press) {
gotoAndPlay ("p8");
}
Symbol 546 Button
on (press) {
gotoAndPlay ("p9");
}
Symbol 702 Button
on (press) {
NewgroundsAPI.loadCustomLink("Hanias RCJ song on Newgrounds");
}
Symbol 707 Button
on (press) {
NewgroundsAPI.loadCustomLink("RCJ on Youtube");
}
Symbol 711 Button
on (press) {
NewgroundsAPI.loadCustomLink("Tarboy Website");
}
Symbol 716 Button
on (press) {
gotoAndStop (2);
}
Symbol 719 MovieClip Frame 1
onRelease = null;
useHandCursor = false;
Symbol 726 MovieClip [ImageContainer (Basic Fade)] Frame 1
#initclip 21
Object.registerClass("ImageContainer (Basic Fade)", xm.components.ImageContainerComponent);
#endinitclip
Symbol 726 MovieClip [ImageContainer (Basic Fade)] Frame 2
function loadInit(eventObj) {
clearImagesBelow(eventObj.image);
_alpha = 0;
xm.util.miniTweener.addTween(this, {_alpha:100, time:0.2, transition:linear});
}
addEventListener("loadInit", this);
Symbol 729 MovieClip [FLVDisplay] Frame 1
#initclip 14
Object.registerClass("FLVDisplay", xm.components.FLVDisplayComponent);
#endinitclip
Symbol 740 MovieClip Frame 1
stop();
Symbol 752 MovieClip Frame 1
stop();
xm.util.miniTweener.addTween(hi, {_alpha:0, time:0.2, transition:"linear"});
Symbol 752 MovieClip Frame 2
xm.util.miniTweener.removeTweens(hi);
hi._alpha = 100;
Symbol 753 MovieClip [Glossy: FLVController: Scrubber] Frame 1
#initclip 15
Object.registerClass("Glossy: FLVController: Scrubber", xm.components.FLVControllerComponent);
#endinitclip
Symbol 753 MovieClip [Glossy: FLVController: Scrubber] Frame 2
function change() {
if (!dragging) {
if (isNaN(display.duration)) {
handle._x = 0;
} else {
handle._x = Math.round((display.time / display.duration) * (width - 1));
}
}
}
Aligner.register(bar, {hStretch:true});
pbar._width = 1;
opening = function () {
delete maxTime;
};
progress = (loaded = (resize = function () {
if ((maxTime == undefined) || (maxTime < display.time)) {
maxTime = display.time;
}
var _local1 = Math.max(display.preloadingBL / display.preloadingBT, ((display.duration != undefined) ? (((maxTime != undefined) ? (maxTime) : 0) / display.duration) : 0));
if (isNaN(_local1)) {
pbar._width = 1;
} else {
pbar._width = Math.round((width * _local1) + (1 * (1 - _local1)));
}
change();
}));
handle.onRollOver = function () {
handle.nextFrame();
};
handle.onPress = function () {
wasPlaying = false;
if (display.started) {
dragging = true;
onMouseMove = _onMouseMove;
wasPlaying = display.playing;
display.disablePlayingEvents = true;
display.pause(true);
display.disablePlayingEvents = false;
}
};
_onMouseMove = function () {
display.time = Math.min(Math.max((_xmouse / (width - 1)) * display.duration, 0), display.duration);
handle._x = Math.round(Math.min(Math.max(_xmouse, 0), pbar._width - 1));
updateAfterEvent();
};
bar.onPress = function () {
handle.onRollOver();
handle.onPress();
onMouseMove();
};
handle.onRelease = function () {
dragging = false;
delete onMouseMove;
if (wasPlaying) {
display.time = display.time;
display.pause(false);
}
};
bar.onRelease = (bar.onReleaseOutside = (handle.onReleaseOutside = function () {
handle.onRelease();
handle.prevFrame();
}));
handle.onRollOut = function () {
handle.prevFrame();
};
resize();
Symbol 754 MovieClip [Glossy: FLVController: Volume Slider] Frame 1
#initclip 16
Object.registerClass("Glossy: FLVController: Volume Slider", xm.components.FLVControllerComponent);
#endinitclip
Symbol 754 MovieClip [Glossy: FLVController: Volume Slider] Frame 2
function resize() {
volume();
}
function volume() {
handle._x = Math.round((Math.min(100, display.volume) / 100) * (width - 1));
_parent.muted._visible = !display.volume;
}
Aligner.register(bar, {hStretch:true});
Aligner.register(pbar, {hStretch:true});
pbar._visible = false;
handle.onRollOver = function () {
handle.nextFrame();
};
handle.onPress = function () {
onMouseMove = _onMouseMove;
};
bar.onPress = function () {
handle.onRollOver();
handle.onPress();
onMouseMove();
};
_onMouseMove = function () {
display.volume = Math.min(Math.max((_xmouse / (width - 1)) * 100, 0), 100);
updateAfterEvent();
};
handle.onRelease = function () {
delete onMouseMove;
};
bar.onRelease = (bar.onReleaseOutside = (handle.onReleaseOutside = function () {
delete onMouseMove;
handle.prevFrame();
}));
handle.onRollOut = function () {
handle.prevFrame();
};
volume();
Symbol 768 MovieClip Frame 1
stop();
Symbol 773 MovieClip [FLVController (Glossy)] Frame 1
#initclip 17
Object.registerClass("FLVController (Glossy)", xm.components.FLVControllerComponent);
#endinitclip
Symbol 773 MovieClip [FLVController (Glossy)] Frame 2
function expandTime(p_time) {
var _local3 = Math.floor(p_time / 3600);
p_time = p_time - (_local3 * 3600);
var _local1 = Math.floor(p_time / 60);
p_time = p_time - (_local1 * 60);
var _local4 = Math.floor(p_time);
return(((((((((_local3 < 10) ? "0" : "") + _local3) + ":") + ((_local1 < 10) ? "0" : "")) + _local1) + ":") + ((_local4 < 10) ? "0" : "")) + _local4);
}
Aligner.register(slider, {hStretch:true, hSize:1, hSizeMargin:320 - slider.width});
Aligner.register(bg_c, {hStretch:true, hSize:1, hSizeMargin:320 - bg_c._width});
Aligner.register(hi, {hStretch:true, hSize:1, hSizeMargin:320 - hi._width});
Aligner.register(sound, {hAlign:true, hPosition:1, hPositionMargin:320 - sound._x});
Aligner.register(muted, {hAlign:true, hPosition:1, hPositionMargin:320 - muted._x});
Aligner.register(volumeslider, {hAlign:true, hPosition:1, hPositionMargin:320 - volumeslider._x});
Aligner.register(rdiv1, {hAlign:true, hPosition:1, hPositionMargin:320 - rdiv1._x});
Aligner.register(rdiv2, {hAlign:true, hPosition:1, hPositionMargin:320 - rdiv2._x});
Aligner.register(rdiv3, {hAlign:true, hPosition:1, hPositionMargin:320 - rdiv3._x});
Aligner.register(time, {hAlign:true, hPosition:1, hPositionMargin:320 - time._x});
Aligner.register(bg_r, {hAlign:true, hPosition:1, hPositionMargin:320 - bg_r._x});
playing = (prePlay = function () {
b_playpause.gotoAndStop(2);
b_playpause_hi.gotoAndStop(2);
});
notPlaying = (preStop = function () {
b_playpause.gotoAndStop(1);
b_playpause_hi.gotoAndStop(1);
});
change = (closed = function () {
time.text = expandTime(display.time);
});
_this = this;
b_playpause.onRollOver = function () {
xm.util.miniTweener.removeTweens(_this[this._name + "_hi"]);
_this[this._name + "_hi"]._alpha = 100;
};
b_playpause.onRollOut = (b_playpause.onReleaseOutside = function () {
xm.util.miniTweener.addTween(_this[this._name + "_hi"], {_alpha:0, time:0.2, transition:"linear"});
});
b_playpause.onRelease = function () {
var _local2 = _parent.display;
if (_parent.acquiringYouTubeUrl) {
if (b_playpause._currentframe == 2) {
_parent.preStop();
} else {
_parent.prePlay();
}
return(undefined);
}
if (_local2.playing) {
_local2.pause();
} else if (!_local2.started) {
_local2.play();
} else {
if (_local2.time >= _local2.duration) {
_local2.time = 0;
}
_local2.pause(false);
}
};
b_stop.onRollOver = function () {
xm.util.miniTweener.removeTweens(_this[this._name + "_hi"]);
_this[this._name + "_hi"]._alpha = 100;
};
b_stop.onRollOut = (b_stop.onReleaseOutside = function () {
xm.util.miniTweener.addTween(_this[this._name + "_hi"], {_alpha:0, time:0.2, transition:"linear"});
});
b_stop.onRelease = function () {
if (_parent.acquiringYouTubeUrl) {
_parent.preStop();
return(undefined);
}
_parent.display.stop();
};
Instance of Symbol 753 MovieClip [Glossy: FLVController: Scrubber] "slider" in Symbol 773 MovieClip [FLVController (Glossy)] Frame 2
//component parameters
onClipEvent (construct) {
_targetInstanceName = "display";
}
Instance of Symbol 754 MovieClip [Glossy: FLVController: Volume Slider] "volumeslider" in Symbol 773 MovieClip [FLVController (Glossy)] Frame 2
//component parameters
onClipEvent (construct) {
_targetInstanceName = "display";
}
Symbol 778 MovieClip Frame 1
#initclip 18
if (!_global.gStage) {
o = {width:Stage.width, height:Stage.height, minWidth:0, minHeight:0, maxWidth:Infinity, maxHeight:Infinity};
o.onResize = function () {
var _local3 = Math.min(this.maxWidth, Math.max(this.minWidth, Stage.width));
var _local2 = Math.min(this.maxHeight, Math.max(this.minHeight, Stage.height));
if ((this.width != _local3) || (this.height != _local2)) {
this.width = _local3;
this.height = _local2;
this.dispatchEvent({type:"resize"});
}
};
o.onResize();
xm.corpus.dispatch.initialize(o);
Stage.addListener(o);
_global.gStage = o;
delete o;
}
if (!gStage.Aligner) {
gStage.Aligner = new xm.corpus.aligner(gStage);
}
#endinitclip
stop();
stop();
_Stage = Stage;
toobPlayer = _parent;
onRelease = function () {
if (!toobPlayer.isFullScreen) {
beforeDisplayState = _Stage.displayState;
beforeX = toobPlayer._x;
beforeY = toobPlayer._y;
beforeW = toobPlayer.width;
beforeH = toobPlayer.height;
toobPlayer.setFullScreen(true);
if (_Stage.displayState != "fullScreen") {
_Stage.displayState = "fullScreen";
}
gStage.Aligner.register(toobPlayer, {hAlign:true, hPosition:0, vAlign:true, vPosition:0, hStretch:true, hSize:1, vStretch:true, vSize:1});
} else {
if (_Stage.displayState != beforeDisplayState) {
_Stage.displayState = beforeDisplayState;
}
gStage.Aligner.remove(toobPlayer);
toobPlayer._x = beforeX;
toobPlayer._y = beforeY;
toobPlayer.setSize(beforeW, beforeH);
toobPlayer.setFullScreen(false);
}
};
Stage.addListener(this);
onFullScreen = function (p_fs) {
if ((!p_fs) && (toobPlayer.isFullScreen)) {
onRelease();
}
};
onRollOver = function () {
xm.util.miniTweener.addTween(hi, {_alpha:100, time:0.2, transition:"linear"});
};
onRollOut = (onReleaseOutside = function () {
xm.util.miniTweener.addTween(hi, {_alpha:0, time:0.2, transition:"linear"});
});
Symbol 783 MovieClip Frame 1
display = _parent._parent.display;
onEnterFrame = function () {
if (display.ns.bufferLength >= display.bufferTime) {
_parent._parent.clear();
}
status._width = Math.round(Math.min(1, display.ns.bufferLength / display.bufferTime) * _width);
};
Symbol 786 MovieClip [FLVController (Graph Status)] Frame 1
#initclip 19
Object.registerClass("FLVController (Graph Status)", xm.components.FLVControllerComponent);
#endinitclip
Symbol 786 MovieClip [FLVController (Graph Status)] Frame 2
function reveal(p_status) {
if (display.preloading || (!display.started)) {
xm.util.miniTweener.removeTweens(status);
status._alpha = 100;
delay = 7;
status.gotoAndStop(p_status);
}
}
function clear() {
xm.util.miniTweener.addTween(status, {_alpha:0, time:0.15, transition:"linear", onComplete:function () {
status.gotoAndStop("clear");
}});
}
opening = function () {
reveal("connecting");
};
acquiringYouTubeUrl = function () {
reveal("acquiring");
};
acquiredYouTubeUrl = function () {
clear();
};
error = (errorAcquiringYouTubeUrl = function () {
delete onEnterFrame;
reveal("error");
});
seeking = (start = (bufferEmpty = function () {
clear();
delay = 7;
onEnterFrame = _onEnterFrame;
}));
_onEnterFrame = function () {
if (!(delay--)) {
if ((display.ns.bufferLength < display.bufferTime) && (display.playing)) {
reveal("buffering");
}
delete onEnterFrame;
}
};
closed = (complete = (bufferFull = function () {
delete onEnterFrame;
clear();
}));
if (_parent.isAcquiringYouTubeUrl) {
acquiringYouTubeUrl();
} else if (display.opening) {
opening();
} else {
status.gotoAndStop("clear");
}
Symbol 787 MovieClip [ToobPlayer (Glossy)] Frame 1
#initclip 20
Object.registerClass("ToobPlayer (Glossy)", xm.components.ToobPlayerComponent);
#endinitclip
Aligner.register(display, {hStretch:true, vStretch:true, vSizeMargin:17});
Aligner.register(image, {hStretch:true, vStretch:true, vSizeMargin:17});
Aligner.register(bg, {hStretch:true, vStretch:true, vSizeMargin:17});
Aligner.register(invisibg, {hStretch:true, vStretch:true});
addEventListener("showOrHideFullScreenButton", this);
showOrHideFullScreenButton = function () {
if (showFullScreenButton) {
fs.gotoAndStop("show");
Aligner.register(ctrl, {hStretch:true, hSizeMargin:15, vAlign:true, vPosition:1, vPositionOffset:-15});
Aligner.register(fs, {hAlign:true, hPosition:1, hPositionOffset:-17, vAlign:true, vPosition:1, vPositionOffset:-15});
} else {
fs.gotoAndStop("hide");
Aligner.register(ctrl, {hStretch:true, vAlign:true, vPosition:1, vPositionOffset:-15});
Aligner.register(fs, {hAlign:true, hPosition:1, hPositionOffset:0, vAlign:true, vPosition:1, vPositionOffset:-15});
}
};
showOrHideFullScreenButton();
bg.onRollOver = function () {
ctrl.b_playpause.onRollOver();
};
bg.onRollOut = (bg.onReleaseOutside = function () {
ctrl.b_playpause.onRollOut();
});
bg.onRelease = function () {
ctrl.b_playpause.onRelease();
onEnterFrame = function () {
ctrl.b_playpause.onRollOver();
delete onEnterFrame;
};
};
lateInit();
Instance of Symbol 726 MovieClip [ImageContainer (Basic Fade)] "image" in Symbol 787 MovieClip [ToobPlayer (Glossy)] Frame 1
//component parameters
onClipEvent (construct) {
applyMask = true;
loadingType = "queue";
preventImageCaching = false;
resizeMode = "fill out component area";
retryDelay = 0.5;
smoothing = true;
smoothTransparency = false;
supraQueueing = false;
supraQueueParentTarget = "_parent";
supraQueueWidth = 1;
url = "";
}
Instance of Symbol 729 MovieClip [FLVDisplay] "display" in Symbol 787 MovieClip [ToobPlayer (Glossy)] Frame 1
//component parameters
onClipEvent (construct) {
autoPlay = false;
autoRepeat = false;
bufferTime = 5;
resizeMode = "fit into component area / mind aspect ratio";
url = "";
volume = 100;
zoom = 100;
}
Instance of Symbol 773 MovieClip [FLVController (Glossy)] "ctrl" in Symbol 787 MovieClip [ToobPlayer (Glossy)] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "display";
}
Instance of Symbol 786 MovieClip [FLVController (Graph Status)] in Symbol 787 MovieClip [ToobPlayer (Glossy)] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "display";
}
Symbol 792 Button
on (press) {
gotoAndPlay (109);
}