STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229494 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2575 · P5149 |
This is the info page for Flash #22822 |
LOADING |
Free Games AND ShowS |
MINICLIP.COM INTRO COMPONENT v1.7 |
Place this component on the top layer of the first and second frame and other content on frame two onwards. The silhouette helps you position the preloader correctly on your page. |
The Game is loading (0%) |
The Game is loading (0%) |
© 2007 Momentum Pictures. All Rights Reserved. |
<p align="center"></p> |
<p align="center"></p> |
START |
TIME'S UP! YOUR SCORE: |
<p align="center"><font face="Gotham-Ultra" size="74" color="#ffffff" letterSpacing="0.000000" kerning="1">100</font></p> |
PLAY AGAIN |
NEXT LEVEL |
<p align="center"></p> |
YOUR BEST SCORE: |
<p align="center"></p> |
OK! |
FLY HIGHER AND CATCH MORE ROMEOS click your mouse and to flap Beta's arms! |
Catch as many Romeos and Juliettes as you can in 30 seconds. |
Click and drag Betameche downward. Release to launch him into the air. |
<p align="center"></p> |
The aim is simple: Flip Arthur into the air and guide him to collect the treasure. Complete 3 levels to save The Invisibles’ World! |
STEP 1: Click and drag Arthur downward. Release your mouse button to fire him into the air. |
STEP 2: Move your mouse left and right to catch the treasure. Watch out for the mosquitos! |
STEP 3: While Arthur is in the air, click your mouse button to fly higher and catch more treasure |
GOLD IS WORTH 10 POINTS |
RUBIES ARE WORTH 50 POINTS |
MOSQUITOS ARE WORTH -50 POINTS |
SCORING |
UNLUCKY! |
YOU SCORED |
POINTS |
<p align="center"><font face="Futura ExtraBold" size="36" color="#d7e83d" letterSpacing="-2.000000" kerning="0">320</font></p> |
WELL DONE! |
YOU’VE SAVED THE INVISIBLES’ WORLD. |
ActionScript [AS1/AS2]
Frame 1Stage.scaleMode = "noScale"; Stage.align = "T"; site.Main.getInstance(this); new site.Preloader(); this.stop();Symbol 3 MovieClip [MAINLoader] Frame 1#initclip 58 Object.registerClass("MAINLoader", site.components.MAINLoader); #endinitclipSymbol 11 MovieClip [romeo_neg] Frame 1this.stop();Symbol 11 MovieClip [romeo_neg] Frame 16this.stop();Symbol 12 MovieClip [MAINView] Frame 1#initclip 57 Object.registerClass("MAINView", site.components.MAINView); #endinitclipSymbol 17 MovieClip [VideoPlayer] Frame 1#initclip 55 Object.registerClass("VideoPlayer", mx.video.VideoPlayer); #endinitclipSymbol 21 MovieClip [FLVPlayback] Frame 1#initclip 56 Object.registerClass("FLVPlayback", mx.video.FLVPlayback); #endinitclip stop();Symbol 34 Buttonon (release) { getURL ("http://www.miniclip.com/", "_blank"); }Symbol 35 MovieClip Frame 2_parent.mcAnimation.play(); stop();Symbol 35 MovieClip Frame 13_parent.gotoAndPlay("preload"); stop();Symbol 51 MovieClip Frame 1stop();Symbol 51 MovieClip Frame 60Symbol 51 MovieClip Frame 121_parent.mcBackground.play(); stop();Symbol 56 MovieClip Frame 1this._visible = false;Symbol 62 Buttonon (release) { getURL ("http://www.miniclip.com", "_blank"); }Symbol 67 MovieClip Frame 2if (_url.indexOf("http") > -1) { if (_parent._parent._parent.loadAdNow) { cacheBuster = getTimer() + random(999999); showAd = "http://www.miniclip.com/swfcontent/push/didyouknow.swf?cacheBuster" + cacheBuster; trace("Loading ad: " + showAd); mcAd.loadMovie(showAd); } else { gotoAndPlay(_currentframe - 1); } }Symbol 67 MovieClip Frame 4if ((mcAd.getBytesTotal() != 0) && (mcAd.getBytesLoaded() == mcAd.getBytesTotal())) { gotoAndStop ("showAd"); } else { gotoAndPlay(_currentframe - 1); }Symbol 67 MovieClip Frame 12stop();Symbol 77 MovieClip Frame 1stop();Symbol 77 MovieClip Frame 100stop();Symbol 79 MovieClip Frame 1stop();Symbol 79 MovieClip Frame 12_root.play(); _root.isFinished = true; _parent.stop(); stop();Symbol 80 MovieClip Frame 1loadAdNow = false; _root.stop(); play();Instance of Symbol 56 MovieClip "mcIntro" in Symbol 80 MovieClip Frame 1onClipEvent (load) { _visible = false; }Symbol 80 MovieClip Frame 2xPos = _x; yPos = _y; mcBackground._x = mcBackground._x - xPos; mcBackground._y = mcBackground._y - yPos; mcAnimation._x = mcAnimation._x - xPos; mcAnimation._y = mcAnimation._y - yPos; var stageWidth = Stage.width; var stageHeight = Stage.height; var centerStageX = (stageWidth / 2); var centerStageY = (stageHeight / 2); mcBackground._width = stageWidth; mcBackground._height = stageHeight; mcAnimation._x = mcAnimation._x + centerStageX; mcAnimation._y = mcAnimation._y + (centerStageY - (stageHeight / 10)); stop();Instance of Symbol 79 MovieClip "mcLoadingAnimated" in Symbol 80 MovieClip Frame 2onClipEvent (load) { _visible = false; }Symbol 80 MovieClip Frame 3var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (loadedPercent == 100) { _root.play(); stop(); } else { loadAdNow = true; mcLoadingAnimated._visible = true; }Symbol 80 MovieClip Frame 5var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (loadedPercent < 100) { mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent); mcLoadingAnimated.mcLoading.txtPercentLoaded1 = ("The game is loading (" + loadedPercent) + "%)"; mcLoadingAnimated.mcLoading.txtPercentLoaded2 = ("The game is loading (" + loadedPercent) + "%)"; _root.gotoAndStop(2); gotoAndPlay(_currentframe - 1); } else { mcLoadingAnimated.play(); stop(); }Symbol 367 MovieClip [__Packages.site.Main] Frame 0class site.Main { static var __reference, __instance; function Main (reference) { __reference = reference; __reference.width = __width; __reference.height = __height; } static function getInstance(reference) { if (__instance == undefined) { __instance = new site.Main(reference); } return(__instance); } function get reference() { return(__reference); } function get mainframe() { return(__mainframe); } static var __mainframe = 3; var __width = 862; var __height = 1120; }Symbol 368 MovieClip [__Packages.site.Base] Frame 0class site.Base { static var __data, __main_instance, __main; function Base () { __data = com.mammoth.xml.Data.getInstance(); __main_instance = site.Main.getInstance(); __main = __main_instance.reference; com.mammoth.AnimationManager.getInstance(__main, 8799); } static function extend(target) { var properties = arguments.slice(1); for (var property in properties) { var property_to_extend = ("__" + properties[property]); target[property_to_extend] = site.Base[property_to_extend]; } } }Symbol 369 MovieClip [__Packages.com.mammoth.xml.Data] Frame 0class com.mammoth.xml.Data { static var __instance; var __cache, __queue, __loading, __xml; function Data () { __cache = new Object(); __queue = new Array(); __loading = false; } static function getInstance() { if (__instance == undefined) { __instance = new com.mammoth.xml.Data(); } return(__instance); } function toString() { return("[Data Version 0.3]"); } function get cache() { return(__cache); } function load() { if (__loading) { return(undefined); } if (__queue.length > 0) { var datum = __queue.shift(); var callback = (new com.mammoth.util.Callback(this, "applyFile", datum[0], datum[2])); __loading = true; __xml = new com.mammoth.xml.ObjectXML(datum[1], callback); } } function addFile(identifier, file, callback) { __queue.push(new Array(identifier, file, callback)); } function loadFile(identifier, file, callback) { addFile(identifier, file, callback); load(); } function fetch(identifier, query) { if (query == undefined) { return(duplicate(__cache[identifier])); } var inquiry = query.split(__separator); var limit = inquiry.length; var index = 0; var value = __cache[identifier][inquiry[index]]; while ((++index) < limit) { value = value[inquiry[index]]; } return(duplicate(value)); } function applyFile(identifier, callback) { __cache[identifier] = __xml.__get__data()[__xml.__get__parent()]; if (callback != undefined) { callback.execute(); } __loading = false; load(); } function duplicate(original) { var dummy; var modified = false; var duplicated = new Object(); for (var item in original) { dummy = original[item]; if (com.mammoth.util.Convert.isArray(dummy)) { dummy = com.mammoth.util.Convert.toArray(duplicate(dummy)); } else if (com.mammoth.util.Convert.isObject(dummy)) { dummy = duplicate(dummy); } duplicated[item] = dummy; modified = true; } if (!modified) { dummy = new Object(); dummy.unoriginal = original; return(dummy.unoriginal); } return(duplicated); } static var __separator = "/"; }Symbol 370 MovieClip [__Packages.com.mammoth.xml.ObjectXML] Frame 0class com.mammoth.xml.ObjectXML { var __file, __callback, __xml, __data, __parent; function ObjectXML (file, callback) { __file = file; __callback = callback; __xml = new com.mammoth.xml.DynamicXML(); __xml.reference = this; __xml.onLoad = function () { this.reference.parseInstantiated(); }; __xml.load(__file); } function get xml() { return(__xml); } function get data() { return(__data); } function get parent() { return(__parent); } function get loaded() { return(__loaded); } static function parseStatic(text) { var nodes = new XML(text); return(traverse(nodes)); } function parseInstantiated() { __parent = __xml.childNodes[0].nodeName; __data = traverse(__xml); __loaded = true; if (__callback != undefined) { __callback.execute(); } } static function traverse(node) { var element = new Object(); var modified = false; for (var attribute in node.attributes) { element[attribute] = castNodeValue(node.attributes[attribute]); modified = true; } for (var child in node.childNodes) { var name = node.childNodes[child].nodeName; var type = node.childNodes[child].nodeType; var value = node.childNodes[child].nodeValue; if (type == 3) { element = castNodeValue(value); } if ((type == 1) && (name != undefined)) { if (element[name] == undefined) { element[name] = traverse(node.childNodes[child]); } else if (!com.mammoth.util.ArrayList.isArray(element[name])) { element[name] = [element[name]]; } if (com.mammoth.util.ArrayList.isArray(element[name])) { element[name].unshift(traverse(node.childNodes[child])); } } modified = true; } if (!modified) { return(""); } return(element); } static function castNodeValue(value) { if (isNaN(value - 0)) { return(value); } return(Number(value)); } var __loaded = false; }Symbol 371 MovieClip [__Packages.com.mammoth.xml.DynamicXML] Frame 0class com.mammoth.xml.DynamicXML extends XML { function DynamicXML (text) { super(text); } var ignoreWhite = true; }Symbol 372 MovieClip [__Packages.com.mammoth.util.Callback] Frame 0class com.mammoth.util.Callback { var __caller, __method, __arguments; function Callback (caller, method) { __caller = caller; __method = method; if (arguments.length > 2) { __arguments = arguments.slice(2); } } function get argumentation() { return(__arguments); } function set argumentation(args) { __arguments = args; //return(argumentation); } function argue() { __arguments = arguments; } function execute() { __caller[__method].apply(__caller, __arguments); } static function assert(object, property, value) { object[property] = value; } }Symbol 373 MovieClip [__Packages.com.mammoth.util.ArrayList] Frame 0class com.mammoth.util.ArrayList extends Array { var splice, length; function ArrayList () { super(); if (arguments.length > 0) { splice.apply(this, [0, 0].concat(arguments)); } } function indexOf(value) { var limit = length; var i = 0; while (i < limit) { if (this[i] == value) { return(i); } i++; } return(-1); } function lastIndexOf(value) { var i = length; while (--i) { if (this[i] == value) { return(i); } } return(-1); } function contains(value) { return(indexOf(value) > -1); } function indexOfProperty(property, value) { var limit = length; var i = 0; while (i < limit) { if (this[i][property] == value) { return(i); } i++; } return(-1); } function containsProperty(property, value) { return(indexOfProperty(property, value) > -1); } function shuffle() { var i = length; while (i--) { var j = Math.floor(Math.random() * (i + 1)); var ti = this[i]; var tj = this[j]; this[i] = tj; this[j] = ti; } } static function isArray(value) { return(value instanceof Array); } static function sortOnDepth(tar, array, highest) { var d = tar.getDepth(); array.push(tar); for (var ea in array) { var tar_d = array[ea].getDepth(); var hd = ((highest > tar_d) ? (highest) : (Number(ea))); } if (d > array[hd].getDepth()) { array.splice(hd - 2, hd - 1, tar); } return(array[hd].getDepth()); } }Symbol 374 MovieClip [__Packages.com.mammoth.util.Convert] Frame 0class com.mammoth.util.Convert { function Convert () { } static function toArray(object) { var modified = false; var value = new Array(); if (isArray(object)) { return(Array(object)[0]); } for (var item in object) { value.unshift(object[item]); modified = true; } if (!modified) { value.push(object); } return(value); } static function isArray(object) { return(object instanceof Array); } static function isObject(object) { return(object instanceof Object); } }Symbol 375 MovieClip [__Packages.com.mammoth.AnimationManager] Frame 0class com.mammoth.AnimationManager { static var __instance; var __is_playing, __item_list, __controller, __identity; function AnimationManager (reference, depth) { __is_playing = false; __item_list = new com.mammoth.util.ArrayList(); __controller = reference.createEmptyMovieClip("__AnimationManager__", depth); __controller.manager = this; __identity = "[AnimationManager Version 0.2]"; } static function getInstance(reference, depth) { if (__instance == undefined) { __instance = new com.mammoth.AnimationManager(reference, depth); } return(__instance); } function begin() { __is_playing = true; __controller.onEnterFrame = function () { this.manager.update.call(this.manager); }; } function end() { delete __controller.onEnterFrame; __is_playing = false; } function update() { for (var item in __item_list) { if (__item_list[item].exists) { __item_list[item].advance(); } else { removeItem(__item_list[item]); } } } function appendItem(item) { var preexisting = __item_list.indexOfProperty("identity", item.identity); if (preexisting > -1) { removeItem(__item_list[preexisting]); } if (!__is_playing) { begin(); } __item_list.push(item); item.begin(); } function removeItem(item) { var i = __item_list.length; while (i--) { if (__item_list[i] == item) { __item_list.splice(i, 1); if (__item_list.length < 1) { end(); } return(undefined); } } } function removeItemsWithTarget(target) { var i = __item_list.length; while (i--) { if (__item_list[i].target == target) { __item_list.splice(i, 1); if (__item_list.length < 1) { end(); } return(undefined); } } } function toString() { return(__identity); } }Symbol 376 MovieClip [__Packages.site.Preloader] Frame 0class site.Preloader extends site.Base { var __loader, __bar; function Preloader () { super(); var callback = (new com.mammoth.util.Callback(this, "begin")); site.Base.__data.addFile("ui", "data/ui.xml"); site.Base.__data.addFile("base", "data/base.xml", callback); site.Base.__data.load(); } function begin() { var callback = (new com.mammoth.util.Callback(this, "end")); __loader = com.mammoth.FullClip.create(site.Base.__main, "loader", 2, {reference:site.Base.__main, p:0, pa:0, percent:0}); __bar = com.mammoth.FullClip.attach(__loader, "MAINLoader", "bar", 1, {callback:callback}); __loader.onEnterFrame = function () { this.p = Math.floor((this.reference.getBytesLoaded() / this.reference.getBytesTotal()) * 100); if (!isNaN(this.p)) { this.pa = this.pa + Math.round(((this.p - this.pa) + 2) / 5); this.percent = this.pa; this.bar.setPercent(this.percent); } }; } function end() { var callback = (new com.mammoth.util.Callback(this, "finalize")); delete __loader.onEnterFrame; site.Base.__main.gotoAndStop(site.Base.__main_instance.__get__mainframe()); __bar.motion("_alpha", "easeInOutQuad", 0, 15, callback); } function finalize() { __loader.removeMovieClip; site.Base.__main.home = new site.Home(); } function die() { __loader.removeMovieClip(); } }Symbol 377 MovieClip [__Packages.com.mammoth.FullClip] Frame 0class com.mammoth.FullClip { function FullClip () { } static function create(target, name, depth, properties) { var clip = target.createEmptyMovieClip(name, depth); extend(clip); applyProperties(clip, properties); return(clip); } static function attach(target, linkage, name, depth, properties) { var clip = target.attachMovie(linkage, name, depth, properties); extend(clip); applyProperties(clip, properties, undefined, true); return(clip); } static function remove(target, callback) { target.removeMovieClip(); callback.execute(); } static function extend(target) { if (target._has_been_extended) { return(undefined); } var animation_manager = com.mammoth.AnimationManager.getInstance(); animation_manager.removeItemsWithTarget(target); target._has_been_extended = true; target.assert = function (object, property, value) { object[property] = value; }; target.box = function (width, height, color, corner, offset_x, offset_y, border, inner) { com.mammoth.Drawing.box(this, width, height, color, corner, offset_x, offset_y, border, inner); }; target.motion = function (property, method, change, duration, callback, delay, amplitude, period) { return(new com.mammoth.animation.Motion(this, property, method, change, duration, callback, delay, amplitude, period)); }; target.mix = function (property, method, change, duration, callback, delay, amplitude, period) { return(new com.mammoth.animation.Mix(this, property, method, change, duration, callback, delay, amplitude, period)); }; target.redraw = function (property, method, change, duration, callback, delay, amplitude, period) { return(new com.mammoth.animation.Redraw(this, property, method, change, duration, callback, delay, amplitude, period)); }; target.tint = function (color, method, change, duration, callback, delay, amplitude, period) { return(new com.mammoth.animation.Tint(this, color, method, change, duration, callback, delay, amplitude, period)); }; target.burn = function (color, method, change, duration, callback, delay, amplitude, period) { return(new com.mammoth.animation.Burn(this, color, method, change, duration, callback, delay, amplitude, period)); }; target.dodge = function (color, method, change, duration, callback, delay, amplitude, period) { return(new com.mammoth.animation.Dodge(this, color, method, change, duration, callback, delay, amplitude, period)); }; target.blur = function (property, method, change, duration, callback, delay, amplitude, period) { return(new com.mammoth.animation.Blur(this, property, method, change, duration, callback, delay, amplitude, period)); }; target.glow = function (property, method, change, duration, callback, delay, amplitude, period) { return(new com.mammoth.animation.Glow(this, property, method, change, duration, callback, delay, amplitude, period)); }; target.drop = function (property, method, change, duration, callback, delay, amplitude, period) { return(new com.mammoth.animation.Drop(this, property, method, change, duration, callback, delay, amplitude, period)); }; target.displace = function (property, method, change, duration, callback, delay, amplitude, period) { return(new com.mammoth.animation.DisplacementMap(this, property, method, change, duration, callback, delay, amplitude, period)); }; } static function applyProperties(target, properties, prefix, only_executables) { for (var property in properties) { var applied_property = property; if (__executable.contains(property)) { target[property].apply(target, properties[property]); continue; } if (only_executables) { continue; } if (prefix != undefined) { applied_property = prefix + property; } target[applied_property] = properties[property]; } } static var __executable = new com.mammoth.util.ArrayList("box", "motion", "redraw"); }Symbol 378 MovieClip [__Packages.com.mammoth.Drawing] Frame 0class com.mammoth.Drawing { function Drawing () { } static function box(target, width, height, color, corner, offset_x, offset_y, border, inner) { var compensated_corner = figureCornerSize(corner, border); var x = ((offset_x == undefined) ? 0 : (offset_x)); var y = ((offset_y == undefined) ? 0 : (offset_y)); if (typeof(color) == "number") { target.beginFill(Number(color)); } else if (com.mammoth.util.ArrayList.isArray(color)) { target.beginFill(color[0], color[1]); } else { if (color.d != "radial") { color.d = "linear"; } if (color.r == undefined) { color.r = 0; } if (color.ox == undefined) { color.ox = 0; } if (color.oy == undefined) { color.oy = 0; } var matrix = {matrixType:"box", x:color.ox, y:color.oy, w:width - color.ox, h:height - color.oy, r:com.mammoth.util.Equation.radian(color.r)}; target.beginGradientFill(color.d, color.m, color.p, color.n, matrix); } drawLines(target, x, y, width, height, compensated_corner); if (border != undefined) { var compensated_border = (border * 2); drawLines(target, x + border, y + border, width - compensated_border, height - compensated_border, corner); if (inner != undefined) { box(target, width - compensated_border, height - compensated_border, inner, corner, x + border, y + border); } } target.endFill(); target._drawx = x; target._drawy = y; target._draww = width; target._drawh = height; target._drawcorner = corner; target._drawcolor = color; target._drawborder = border; target._drawinner = inner; } static function drawLines(target, x, y, width, height, corner) { if (corner == 0) { target.moveTo(x, y); target.lineTo(x + width, y); target.lineTo(x + width, y + height); target.lineTo(x, y + height); target.lineTo(x, y); } else { var t = com.mammoth.util.Equation.radian(45); var a = -1.5707963267949; var j = Math.cos(t / 2); var q = (t / 2); var placement = 0; corner = Math.min(corner, Math.min(width, height) / 2); target.moveTo(x + corner, y); target.lineTo((x + width) - corner, y); a = drawCorners(target, x, y, width, height, corner, placement++, t, a, j, q); target.lineTo(x + width, (y + height) - corner); a = drawCorners(target, x, y, width, height, corner, placement++, t, a, j, q); target.lineTo(x + corner, y + height); a = drawCorners(target, x, y, width, height, corner, placement++, t, a, j, q); target.lineTo(x, y + corner); a = drawCorners(target, x, y, width, height, corner, placement, t, a, j, q); } } static function drawCorners(target, x, y, width, height, corner, placement, t, a, j, q) { var modifier_a = [width - corner, width - corner, corner, corner]; var modifier_b = [corner, height - corner, height - corner, corner]; var cx; var cy; var px; var py; var corner_j = (corner / j); var i = 0; while ((i++) < 2) { cx = (x + modifier_a[placement]) + (Math.cos(a + q) * corner_j); cy = (y + modifier_b[placement]) + (Math.sin(a + q) * corner_j); px = (x + modifier_a[placement]) + (Math.cos(a + t) * corner); py = (y + modifier_b[placement]) + (Math.sin(a + t) * corner); target.curveTo(cx, cy, px, py); a = a + t; } return(a); } static function figureCornerSize(corner, border) { if ((corner == undefined) || (corner == 0)) { return(0); } if (border == undefined) { return(corner); } return(Math.ceil(corner + (corner * (border / corner)))); } }Symbol 379 MovieClip [__Packages.com.mammoth.util.Equation] Frame 0class com.mammoth.util.Equation { function Equation () { } static function rounder(num, decimal_places) { var round_val = Math.pow(10, decimal_places); return(Math.round(num * round_val) / round_val); } static function randomize(mn, mx) { return(Math.floor((((mx - mn) + 1) * Math.random()) + mn)); } static function radian(degree) { return(degree * (Math.PI/180)); } static function linear(t, b, c, d) { return(((c * t) / d) + b); } static function easeInQuad(t, b, c, d) { return(((c * ((t = t / d))) * t) + b); } static function easeOutQuad(t, b, c, d) { return((((-c) * ((t = t / d))) * (t - 2)) + b); } static function easeInOutQuad(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return((((c / 2) * t) * t) + b); } return((((-c) / 2) * (((--t) * (t - 2)) - 1)) + b); } static function easeInCubic(t, b, c, d) { return((((c * ((t = t / d))) * t) * t) + b); } static function easeOutCubic(t, b, c, d) { return((c * (((((t = (t / d) - 1)) * t) * t) + 1)) + b); } static function easeInOutCubic(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return(((((c / 2) * t) * t) * t) + b); } return(((c / 2) * (((((t = t - 2)) * t) * t) + 2)) + b); } static function easeInQuart(t, b, c, d) { return(((((c * ((t = t / d))) * t) * t) * t) + b); } static function easeOutQuart(t, b, c, d) { return(((-c) * ((((((t = (t / d) - 1)) * t) * t) * t) - 1)) + b); } static function easeInOutQuart(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return((((((c / 2) * t) * t) * t) * t) + b); } return((((-c) / 2) * ((((((t = t - 2)) * t) * t) * t) - 2)) + b); } static function easeInQuint(t, b, c, d) { return((((((c * ((t = t / d))) * t) * t) * t) * t) + b); } static function easeOutQuint(t, b, c, d) { return((c * (((((((t = (t / d) - 1)) * t) * t) * t) * t) + 1)) + b); } static function easeInOutQuint(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return(((((((c / 2) * t) * t) * t) * t) * t) + b); } return(((c / 2) * (((((((t = t - 2)) * t) * t) * t) * t) + 2)) + b); } static function easeInSine(t, b, c, d) { return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b); } static function easeOutSine(t, b, c, d) { return((c * Math.sin((t / d) * (Math.PI/2))) + b); } static function easeInOutSine(t, b, c, d) { return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b); } static function easeInCirc(t, b, c, d) { return(((-c) * (Math.sqrt(1 - (((t = t / d)) * t)) - 1)) + b); } static function easeOutCirc(t, b, c, d) { return((c * Math.sqrt(1 - (((t = (t / d) - 1)) * t))) + b); } static function easeInOutCirc(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b); } return(((c / 2) * (Math.sqrt(1 - (((t = t - 2)) * t)) + 1)) + b); } static function easeInExpo(t, b, c, d) { return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b))); } static function easeOutExpo(t, b, c, d) { return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b))); } static function easeInOutExpo(t, b, c, d) { if (t == 0) { return(b); } if (t == d) { return(b + c); } if (((t = t / (d / 2))) < 1) { return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b); } return(((c / 2) * ((-Math.pow(2, -10 * (--t))) + 2)) + b); } static function easeInBack(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } return((((c * ((t = t / d))) * t) * (((s + 1) * t) - s)) + b); } static function easeOutBack(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } return((c * (((((t = (t / d) - 1)) * t) * (((s + 1) * t) + s)) + 1)) + b); } static function easeInOutBack(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } if (((t = t / (d / 2))) < 1) { return(((c / 2) * ((t * t) * (((((s = s * 1.525)) + 1) * t) - s))) + b); } return(((c / 2) * (((((t = t - 2)) * t) * (((((s = s * 1.525)) + 1) * t) + s)) + 2)) + b); } static function easeInBounce(t, b, c, d) { return((c - easeOutBounce(d - t, 0, c, d)) + b); } static function easeOutBounce(t, b, c, d) { if (((t = t / d)) < 0.363636363636364) { return((c * ((7.5625 * t) * t)) + b); } if (t < 0.727272727272727) { return((c * (((7.5625 * ((t = t - 0.545454545454545))) * t) + 0.75)) + b); } if (t < 0.909090909090909) { return((c * (((7.5625 * ((t = t - 0.818181818181818))) * t) + 0.9375)) + b); } return((c * (((7.5625 * ((t = t - 0.954545454545455))) * t) + 0.984375)) + b); } static function easeInOutBounce(t, b, c, d) { if (t < (d / 2)) { return((easeInBounce(t * 2, 0, c, d) * 0.5) + b); } return(((easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b); } static function easeInElastic(t, b, c, d, a, p) { if (t == 0) { return(b); } if (((t = t / d)) == 1) { return(b + c); } if (!p) { p = d * 0.3; } if (!a) { a = 0; } if (a < Math.abs(c)) { a = c; var s = (p / 4); } else { var s = ((p / (Math.PI*2)) * Math.asin(c / a)); } return((-((a * Math.pow(2, 10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p))) + b); } static function easeOutElastic(t, b, c, d, a, p) { if (t == 0) { return(b); } if (((t = t / d)) == 1) { return(b + c); } if (!p) { p = d * 0.3; } if (!a) { a = 0; } if (a < Math.abs(c)) { a = c; var s = (p / 4); } else { var s = ((p / (Math.PI*2)) * Math.asin(c / a)); } return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - s) * (Math.PI*2)) / p)) + c) + b); } static function easeInOutElastic(t, b, c, d, a, p) { if (t == 0) { return(b); } if (((t = t / (d / 2))) == 2) { return(b + c); } if (!p) { p = d * 0.45; } if (!a) { a = 0; } if (a < Math.abs(c)) { a = c; var s = (p / 4); } else { var s = ((p / (Math.PI*2)) * Math.asin(c / a)); } if (t < 1) { return((-0.5 * ((a * Math.pow(2, 10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p))) + b); } return(((((a * Math.pow(2, -10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p)) * 0.5) + c) + b); } }Symbol 380 MovieClip [__Packages.com.mammoth.animation.ManagedAnimation] Frame 0class com.mammoth.animation.ManagedAnimation { static var __manager; var __target, __property, __method, __change, __duration, __amplitude, __period, __callback, __delay, __identity, __current_time, __begin_property, __end_property, __properties, __defaults, __filter; function ManagedAnimation (target, property, method, change, duration, callback, delay, amplitude, period, unmanaged) { __manager = com.mammoth.AnimationManager.getInstance(); __target = target; __property = property; __method = method; __change = change; __duration = duration; __amplitude = amplitude; __period = period; __callback = callback; __delay = ((delay == undefined) ? 0 : (delay)); __identity = (("[" + __target) + property) + "]"; if (unmanaged) { return; } __manager.appendItem(this); } function begin() { __current_time = -__delay; __begin_property = ((__target[__property] == undefined) ? 0 : (__target[__property])); __end_property = __change - __begin_property; } function end() { __manager.removeItem(this); __target[__property] = __change; if (__callback != undefined) { __callback.execute(); } } function advance() { if ((__current_time++) < 0) { return(undefined); } __target[__property] = com.mammoth.util.Equation[__method](__current_time, __begin_property, __end_property, __duration, __amplitude, __period); if (__current_time == __duration) { end(); } } function get exists() { return(__target._name != undefined); } function get target() { return(__target); } function get identity() { return(__identity); } function toString() { return(__identity); } function setPropertyDefaults() { for (var property in __properties) { if (__target[property] == undefined) { __target[property] = __defaults[property]; } } } function constructFilter() { setPropertyDefaults(); if (__target._managed_filters == undefined) { __target._managed_filters = new Array(); } if (__target._managed_filters[__filters_place[__filter]] == undefined) { __target._managed_filters[__filters_place[__filter]] = addFilter(); __target.filters = __target._managed_filters; } } function advanceFilter() { __target._managed_filters[__filters_place[__filter]][__properties[__property]] = __target[__property]; __target.filters = __target._managed_filters; } function addFilter() { return(new Object()); } function removeFilter() { if (__target._managed_filters == undefined) { return(undefined); } if (__target._managed_filters[__filters_place[__filter]] == undefined) { return(undefined); } delete __target._managed_filters[__filters_place[__filter]]; __target.filters = __target._managed_filters; } static var __filters_place = {blur:0, glow:1, shadow:2, displace:3}; }Symbol 381 MovieClip [__Packages.com.mammoth.animation.Motion] Frame 0class com.mammoth.animation.Motion extends com.mammoth.animation.ManagedAnimation { function Motion () { super.constructor.apply(this, arguments); } }Symbol 382 MovieClip [__Packages.com.mammoth.animation.Mix] Frame 0class com.mammoth.animation.Mix extends com.mammoth.animation.ManagedAnimation { var __properties, __defaults, __begin_property, __target, __end_property, __change, __property; function Mix () { super.constructor.apply(this, arguments); __properties = {_volume:"Volume", _pan:"Pan"}; __defaults = {_volume:100, _pan:0}; } function begin() { super.begin(); __begin_property = __target._sound.getVolume(); __end_property = __change - __begin_property; } function end() { super.end(); advanceMix(); } function advance() { super.advance(); advanceMix(); } function advanceMix() { __target._sound["set" + __properties[__property]](__target[__property]); } }Symbol 383 MovieClip [__Packages.com.mammoth.animation.Redraw] Frame 0class com.mammoth.animation.Redraw extends com.mammoth.animation.ManagedAnimation { var __target; function Redraw () { super.constructor.apply(this, arguments); } function end() { super.end(); box(); } function advance() { super.advance(); box(); } function box() { __target.clear(); com.mammoth.Drawing.box(__target, __target._draww, __target._drawh, __target._drawcolor, __target._drawcorner, __target._drawx, __target._drawy, __target._drawborder, __target._drawinner); } }Symbol 384 MovieClip [__Packages.com.mammoth.animation.Tint] Frame 0class com.mammoth.animation.Tint extends com.mammoth.animation.ManagedAnimation { var __tint, __property, __begin_property, __end_property, __change, __target; function Tint () { super.constructor.apply(this, arguments); __tint = Number(__property); __property = "_tint"; } function begin() { super.begin(); __begin_property = percentage; __end_property = __change - __begin_property; } function end() { super.end(); advanceTone(); } function advance() { super.advance(); advanceTone(); } function get color() { var transform = (new flash.geom.Transform(__target)); var color_transform = transform.colorTransform; var ratio = (1 / (1 - color_transform.redMultiplier)); return((((color_transform.redOffset * ratio) << 16) | ((color_transform.greenOffset * ratio) << 8)) | (color_transform.blueOffset * ratio)); } function get percentage() { var transform = (new flash.geom.Transform(__target)); var color_transform = transform.colorTransform; return(Math.round((1 - color_transform.redMultiplier) * 100)); } static function tone(target, color, percent) { var ratio = (percent / 100); var invert = (1 - ratio); var r = ((color >> 16) * ratio); var g = (((color >> 8) & 255) * ratio); var b = ((color & 255) * ratio); var transform = (new flash.geom.Transform(target)); var color_transform = (new flash.geom.ColorTransform(invert, invert, invert, 1, r, g, b, 0)); transform.colorTransform = color_transform; } function advanceTone() { tone(__target, __tint, __target[__property]); } }Symbol 385 MovieClip [__Packages.com.mammoth.animation.Burn] Frame 0class com.mammoth.animation.Burn extends com.mammoth.animation.ManagedAnimation { var __burn, __property, __begin_property, __end_property, __change, __target; function Burn () { super.constructor.apply(this, arguments); __burn = Number(__property); __property = "_burn"; } function begin() { super.begin(); __begin_property = percentage; __end_property = __change - __begin_property; } function end() { super.end(); advanceTone(); } function advance() { super.advance(); advanceTone(); } function get color() { var transform = (new flash.geom.Transform(__target)); var color_transform = transform.colorTransform; var ratio = (Math.abs(200 - percentage) / 200); return((((color_transform.redOffset * ratio) << 16) | ((color_transform.greenOffset * ratio) << 8)) | (color_transform.blueOffset * ratio)); } function get percentage() { var percent = ((__target._burn != undefined) ? (__target._burn) : 0); return(percent); } static function tone(target, color, percent) { var proportion = (Math.abs(200 - percent) / 200); var ratio = ((proportion > 0.5) ? (1 - proportion) : (proportion)); var mod = ((proportion > 0.5) ? ((1 - proportion) * 510) : 255); var r = (((color >> 16) * ratio) - mod); var g = ((((color >> 8) & 255) * ratio) - mod); var b = (((color & 255) * ratio) - mod); var transform = (new flash.geom.Transform(target)); var color_transform = (new flash.geom.ColorTransform(1, 1, 1, 1, r, g, b, 0)); transform.colorTransform = color_transform; target._burn = percent; } function advanceTone() { tone(__target, __burn, __target[__property]); } }Symbol 386 MovieClip [__Packages.com.mammoth.animation.Dodge] Frame 0class com.mammoth.animation.Dodge extends com.mammoth.animation.ManagedAnimation { var __dodge, __property, __begin_property, __end_property, __change, __target; function Dodge () { super.constructor.apply(this, arguments); __dodge = Number(__property); __property = "_dodge"; } function begin() { super.begin(); __begin_property = percentage; __end_property = __change - __begin_property; } function end() { super.end(); advanceTone(); } function advance() { super.advance(); advanceTone(); } function get color() { var transform = (new flash.geom.Transform(__target)); var color_transform = transform.colorTransform; var ratio = (Math.abs(200 - percentage) / 200); return((((color_transform.redOffset * ratio) << 16) | ((color_transform.greenOffset * ratio) << 8)) | (color_transform.blueOffset * ratio)); } function get percentage() { var percent = ((__target._dodge != undefined) ? (__target._dodge) : 0); return(percent); } static function tone(target, color, percent) { var ratio = (percent / 100); var mod = ((ratio > 1) ? ((ratio - 1) * 255) : 0); var r = (((color >> 16) + mod) * ratio); var g = ((((color >> 8) & 255) + mod) * ratio); var b = (((color & 255) + mod) * ratio); var transform = (new flash.geom.Transform(target)); var color_transform = (new flash.geom.ColorTransform(1, 1, 1, 1, r, g, b, 0)); transform.colorTransform = color_transform; target._dodge = percent; } function advanceTone() { tone(__target, __dodge, __target[__property]); } }Symbol 387 MovieClip [__Packages.com.mammoth.animation.Blur] Frame 0class com.mammoth.animation.Blur extends com.mammoth.animation.ManagedAnimation { var __properties, __defaults, __filter, advanceFilter, __target; function Blur () { super.constructor.apply(this, arguments); __properties = {_blurx:"blurX", _blury:"blurY", _blurquality:"quality"}; __defaults = {_blurx:0, _blury:0, _blurquality:2}; __filter = "blur"; super.constructFilter(); } function end() { super.end(); advanceFilter(); } function advance() { super.advance(); advanceFilter(); } function addFilter() { var blurx = __target._blurx; var blury = __target._blury; var quality = __target._blurquality; return(new flash.filters.BlurFilter(blurx, blury, quality)); } static function enable(target, blurx, blury, blurquality) { if (blurx != undefined) { target._blurx = blurx; } if (blury != undefined) { target._blury = blury; } if (blurquality != undefined) { target._blurquality = blurquality; } new com.mammoth.animation.Blur(target, "_blur_enabler", undefined, 0, 0, undefined, 0, 0, 0, true); } static function disable(target) { var blur = (new com.mammoth.animation.Blur(target, "_blur_disabler", undefined, 0, 0, undefined, 0, 0, 0, true)); blur.removeFilter(); } }Symbol 388 MovieClip [__Packages.com.mammoth.animation.Glow] Frame 0class com.mammoth.animation.Glow extends com.mammoth.animation.ManagedAnimation { var __properties, __defaults, __filter, advanceFilter, __target; function Glow () { super.constructor.apply(this, arguments); __properties = {_glowcolor:"color", _glowalpha:"alpha", _glowx:"blurX", _glowy:"blurY", _glowstrength:"strength", _glowquality:"quality"}; __defaults = {_glowcolor:0, _glowalpha:1, _glowx:6, _glowy:6, _glowstrength:2, _glowquality:2}; __filter = "glow"; super.constructFilter(); } function end() { super.end(); advanceFilter(); } function advance() { super.advance(); advanceFilter(); } function addFilter() { var color = __target._glowcolor; var alpha = __target._glowalpha; var blurx = __target._glowx; var blury = __target._glowy; var strength = __target._glowstrength; var quality = __target._glowquality; return(new flash.filters.GlowFilter(color, alpha, blurx, blury, strength, quality)); } static function enable(target, glowcolor, glowalpha, glowx, glowy, glowstrength, glowquality) { if (glowcolor != undefined) { target._glowcolor = glowcolor; } if (glowalpha != undefined) { target._glowalpha = glowalpha; } if (glowx != undefined) { target._glowx = glowx; } if (glowy != undefined) { target._glowy = glowy; } if (glowstrength != undefined) { target._glowstrength = glowstrength; } if (glowquality != undefined) { target._glowquality = glowquality; } new com.mammoth.animation.Glow(target, "_glow_enabler", undefined, 0, 0, undefined, 0, 0, 0, true); } static function disable(target) { var glow = (new com.mammoth.animation.Glow(target, "_glow_disabler", undefined, 0, 0, undefined, 0, 0, 0, true)); glow.removeFilter(); } }Symbol 389 MovieClip [__Packages.com.mammoth.animation.Drop] Frame 0class com.mammoth.animation.Drop extends com.mammoth.animation.ManagedAnimation { var __properties, __defaults, __filter, advanceFilter, __target; function Drop () { super.constructor.apply(this, arguments); __properties = {_dropalpha:"alpha", _dropangle:"angle", _dropx:"blurX", _dropy:"blurY", _dropcolor:"color", _dropdistance:"distance", _dropquality:"quality", _dropstrength:"strength"}; __defaults = {_dropalpha:1, _dropangle:45, _dropx:4, _dropy:4, _dropcolor:0, _dropdistance:4, _dropquality:2, _dropstrength:1}; __filter = "shadow"; super.constructFilter(); } function end() { super.end(); advanceFilter(); } function advance() { super.advance(); advanceFilter(); } function addFilter() { var alpha = __target._dropalpha; var angle = __target._dropangle; var blurx = __target._dropx; var blury = __target._dropy; var color = __target._dropcolor; var distance = __target._dropdistance; var quality = __target._dropquality; var strength = __target._dropstrength; return(new flash.filters.DropShadowFilter(distance, angle, color, alpha, blurx, blury, strength, quality)); } static function enable(target, dropalpha, dropangle, dropx, dropy, dropcolor, dropdistance, dropquality, dropstrength) { if (dropalpha != undefined) { target._dropalpha = dropalpha; } if (dropangle != undefined) { target._dropangle = dropangle; } if (dropx != undefined) { target._dropx = dropx; } if (dropy != undefined) { target._dropy = dropy; } if (dropcolor != undefined) { target._dropcolor = dropcolor; } if (dropdistance != undefined) { target._dropdistance = dropdistance; } if (dropquality != undefined) { target._dropquality = dropquality; } if (dropstrength != undefined) { target._dropstrength = dropstrength; } new com.mammoth.animation.Drop(target, "_drop_enabler", undefined, 0, 0, undefined, 0, 0, 0, true); } static function disable(target) { var drop = (new com.mammoth.animation.Drop(target, "_drop_disabler", undefined, 0, 0, undefined, 0, 0, 0, true)); drop.removeFilter(); } }Symbol 390 MovieClip [__Packages.com.mammoth.animation.DisplacementMap] Frame 0class com.mammoth.animation.DisplacementMap extends com.mammoth.animation.ManagedAnimation { var __properties, __defaults, __filter, advanceFilter, __target; function DisplacementMap () { super.constructor.apply(this, arguments); __properties = {_bitmap:"bitmap", _offsetX:"offsetX", _offsetY:"offsetY", _channelX:"channelX", _channelY:"channelY", _scaleX:"scaleX", _scaleY:"scaleY", _wrap:"wrap", _wrapcolor:"color", _wrapalpha:"alpha"}; __defaults = {_bitmap:undefined, _offsetX:0, _offsetY:0, _channelX:1, _channelY:1, _scaleX:0, _scaleY:0, _wrap:"clamp", _wrapcolor:0, _wrapalpha:0}; __filter = "displace"; super.constructFilter(); } function end() { super.end(); advanceFilter(); } function advance() { super.advance(); advanceFilter(); } function addFilter() { var bitmap = __target._bitmap; var offsetX = __target._offsetX; var offsetY = __target._offsetY; var channelX = __target._channelX; var channelY = __target._channelY; var scaleX = __target._scaleX; var scaleY = __target._scaleY; var wrap = __target._wrap; var wrapcolor = __target._wrapcolor; var wrapalpha = __target._wrapalpha; return(new flash.filters.DisplacementMapFilter(bitmap, new flash.geom.Point(offsetX, offsetY), channelX, channelY, scaleX, scaleY, wrap, wrapcolor, wrapalpha / 100)); } static function enable(target, bitmap, scaleX, scaleY, channelX, channelY, offsetX, offsetY, wrap, wrapcolor, wrapalpha) { if (bitmap != undefined) { target._bitmap = bitmap; } if (offsetX != undefined) { target._offsetX = offsetX; } if (offsetY != undefined) { target._offsetY = offsetY; } if (channelX != undefined) { target._channelX = channelX; } if (channelY != undefined) { target._channelY = channelY; } if (scaleX != undefined) { target._scaleX = scaleX; } if (scaleY != undefined) { target._scaleY = scaleY; } if (wrap != undefined) { target._wrap = wrap; } if (wrapcolor != undefined) { target._wrapcolor = wrapcolor; } if (wrapalpha != undefined) { target._wrapalpha = wrapalpha; } new com.mammoth.animation.DisplacementMap(target, "_displacement_enabler", undefined, 0, 0, undefined, 0, 0, 0, true); } static function disable(target) { var displace = (new com.mammoth.animation.DisplacementMap(target, "_displacement_disabler", undefined, 0, 0, undefined, 0, 0, 0, true)); displace.removeFilter(); } }Symbol 391 MovieClip [__Packages.site.Home] Frame 0class site.Home extends site.Base { var __audio, __view; function Home () { super(); __audio = site.SoundManager.getInstance(); __view = com.mammoth.FullClip.attach(site.Base.__main, "MAINView", "view", 3); } }Symbol 392 MovieClip [__Packages.site.SoundManager] Frame 0class site.SoundManager extends site.Base { static var __instance; var __sounds, __master, __manager; function SoundManager (reference) { super(); __sounds = new Array(); __master = new Sound(); __manager = com.mammoth.FullClip.create(site.Base.__main, "audioControl", 6767); __manager._sound = __master; } function get volume() { return(__master.getVolume()); } function set volume(newvolume) { if (newvolume > 0) { __master.setVolume(newvolume); } //return(volume); } static function getInstance(reference) { if (__instance == undefined) { __instance = new site.SoundManager(reference); } return(__instance); } static function extend(target) { target.__soundmanager = __instance; target.removeSound = function (callback) { this._sound.stop(); this._sound.setVolume(0); this.__soundmanager.clearSound(this._sound, callback); }; } function clearSound(snd, callback) { var i = -1; while ((++i) < __sounds.length) { if (__sounds[i] == snd) { __sounds.splice(i, 1); } } callback.execute(); } function loadMP3(target, linkage, streaming) { extend(target); var snd = new Sound(target); snd.loadSound(linkage, streaming); var sndEvent = (new com.mammoth.util.Callback(target, "onSoundEvent")); snd.onID3 = function () { sndEvent.__set__argumentation([{type:"onID3", id3:this.id3}]); sndEvent.execute(); }; snd.onSoundComplete = function () { sndEvent.__set__argumentation([{type:"onSoundComplete"}]); sndEvent.execute(); }; snd.onLoad = function () { sndEvent.__set__argumentation([{type:"onLoad"}]); sndEvent.execute(); }; __sounds.push(snd); return(snd); } function attachSound(id, volume, loops, killOnComplete, cb) { if (loops == undefined) { loops = 1; } if (volume == undefined) { volume = __master_volume; } var d = __manager.getNextHighestDepth(); var m = com.mammoth.FullClip.create(__manager, "s" + d, d); m.die_callback = new com.mammoth.util.Callback(this, "killSound", m); m.die = function () { this.die_callback.execute(); }; var callback = (killOnComplete ? (new com.mammoth.util.Callback(this, "killSound", m, cb)) : (cb)); var s = ((m._sound = new Sound(m))); s.attachSound(id); s.setVolume(volume); s.onSoundComplete = function () { callback.execute(); }; if (loops > 0) { s.start(0, loops); } __sounds.push(m); return(m); } function killSound(m, callback) { var i = -1; while ((++i) < __sounds.length) { if (__sounds[i] == m) { var s = m._sound; s.setVolume(0); s.stop(); delete s; m.removeMovieClip(); __sounds.splice(i, 1); } } callback.execute(); } function mute() { __manager.mix("_volume", "linear", 0, __fade_time); } function unmute(cb) { __manager.mix("_volume", "linear", __master_volume, __fade_time, cb); } var __master_volume = 100; var __fade_time = 60; }Symbol 393 MovieClip [__Packages.site.components.MAINView] Frame 0class site.components.MAINView extends MovieClip { var __game, __sound_bed_audio, __sound_nature_audio, __beta, __splash, sound_music1, sound_music2, __screen, __sidepanel, __high_score, __score, __timer; function MAINView () { super(); Base.extend(this, "main", "data"); __game = com.mammoth.FullClip.create(this, "game", 10); __sound_bed_audio = com.mammoth.FullClip.create(this, "gamesound", 17); __sound_nature_audio = com.mammoth.FullClip.create(this, "gamesound2", 18); addBeta(); __beta.game_level = 1; addSplash(); addSidePanel(); } function addSplash() { __splash = com.mammoth.FullClip.attach(this, "MAINSplash", "splash", 1000, {callback1:new com.mammoth.util.Callback(this, "addInstructions"), callback2:new com.mammoth.util.Callback(this, "startGameTidy")}); } function addSoundBed() { trace("try to add sound bed"); sound_music1 = new Sound(__sound_bed_audio); sound_music1.attachSound("sound_bed.wav"); sound_music1.setVolume(100); sound_music1.start(0, 99); } function addNature() { sound_music2 = new Sound(__sound_nature_audio); sound_music2.attachSound("nature.wav"); sound_music2.setVolume(25); sound_music2.start(0, 99); } function showVideo() { trace("TRACK LINK - video"); loadVariablesNum ("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/arthur_trailer/1233434@x01", 2); sound_music1.setVolume(0); sound_music2.setVolume(0); __splash.removeMovieClip(); __video = com.mammoth.FullClip.attach(this, "mc_video", "videoclip", 1001, {_x:295, _y:300}); } function killVideo() { sound_music1.setVolume(100); sound_music2.setVolume(25); __video.removeMovieClip(); } function addInstructions() { __splash.removeMovieClip(); __screen = com.mammoth.FullClip.attach(this, "MAINScreenInstructions", "screen", 600, {view:this, callback:new com.mammoth.util.Callback(this, "startGameTidy")}); } function addSidePanel() { trace("-- function addSidePanel"); __sidepanel = com.mammoth.FullClip.attach(this, "sidepanel", "sidepanel", 700, {_x:0, _y:0}); trace("sidepanel: " + __sidepanel); } function startGameTidy() { trace("start game tidy"); __screen.removeMovieClip(); __splash.removeMovieClip(); startGame(); } function startGame() { trace("start game"); addScore(); trace("timer was added here:" + this); addLevel(); __beta.start(); } function endGame() { if ((__score.score > __high_score) || (__high_score == undefined)) { __high_score = __score.score; } __beta.endGame(new com.mammoth.util.Callback(this, "betaOnComplete")); } function betaOnComplete(cb) { addEndScreen(); } function addEndScreen() { __screen = com.mammoth.FullClip.attach(this, "MAINScreenEnd", "screen", 600, {glevel:__beta.game_level, score:__score.score, view:this, high_score:__high_score}); } function sameLevel() { __screen.removeMovieClip(); __beta.game_level = __beta.game_level - 1; nextLevel(); } function nextLevel() { new_level = __beta.game_level + 1; __beta.removeMovieClip(); __score.removeMovieClip(); __timer.removeMovieClip(); addBeta(); __beta.game_level = new_level; startGame(); } function resetGame() { __screen.removeMovieClip(); __beta.removeMovieClip(); __score.removeMovieClip(); __timer.removeMovieClip(); addBeta(); __beta.game_level = 1; startGame(); } function addScore() { __score = com.mammoth.FullClip.attach(this, "MAINScore", "score", 701, {_x:446, _y:-207}); __score.create(__high_score); __beta.score = __score; } function addLevel() { __gamelevel = com.mammoth.FullClip.attach(this, "gamelevel", "leveldisplay", 704, {_x:546, _y:306}); __gamelevel.level_display.text = __beta.game_level; trace("level mc:" + __gamelevel.level_display); } function addTimer() { __timer = com.mammoth.FullClip.attach(this, "MAINTimer", "timer", 702, {callback:new com.mammoth.util.Callback(this, "endGame"), duration:30, frames_per_second:30, _x:116, _y:-120}).start(); trace("timer: " + __timer); } function addBeta() { if (__beta != undefined) { __beta.removeMovieClip(); } __beta = com.mammoth.FullClip.attach(__game, "MAINBeta", "beta", 3, {ref:this}); } var DEBUGGER = false; }Symbol 394 MovieClip [__Packages.site.components.MAINLoader] Frame 0class site.components.MAINLoader extends MovieClip { var _x, _y, __border, __bar, callback, removeMovieClip; function MAINLoader () { super(); _x = 153.5; _y = -60; add_border(); add_bar(); } function add_border() { __border = com.mammoth.FullClip.create(this, "border", 1, {_y:32, box:[__width, __height, __color, __curve, 0, 0, __border_width]}); } function add_bar() { __bar = com.mammoth.FullClip.create(this, "bar", 0, {_y:32, _xscale:0, box:[__width - (__border_width * 2), __height - (__border_width * 2), __color, __curve, __border_width, __border_width]}); } function setPercent(percent) { __bar._xscale = percent; if (percent == 100) { loaded(); } } function loaded() { prepare(); } function prepare(cb) { callback.execute(); } function complete() { callback.execute(); die(); } function die(cb) { removeMovieClip(); } var __border_complete = false; var __width = 283; var __height = 7; var __border_width = 1; var __curve = 2; var __color = 12310099; }Symbol 395 MovieClip [__Packages.site.components.MAINMenu] Frame 0class site.components.MAINMenu extends MovieClip { var space, __buttons, __depth, datum, auto_lock, auto_activate, appearance, orientation, add_dots, align, ref, __lock, _width, _height; function MAINMenu () { super(); if (space == undefined) { space = 0; } __buttons = new Array(); create(); } function create() { var i = -1; __depth = -1; while ((++i) < datum.length) { create_button(i); } if (auto_lock) { lock(); } if (auto_activate) { activate_button(0); } } function activate_button(id) { __buttons[id].onRollOver(); __buttons[id].onRelease(); } function create_button(id) { var d = datum[id]; var c = d.caption; var properties = {caption:c, callback:callback, reference:this, active:true, datum:d}; var button = com.mammoth.FullClip.attach(this, appearance, "b" + id, ++__depth, properties); button.ref = this; button.id = id; button.type = d.type; button.link = ((d.link != undefined) ? (d.link) : (id)); button.enabled = true; button.reset = function () { this.enabled = true; this.deactivate(); }; button.callback = function () { var cb = this.ref.callback; cb.__set__argumentation([this.id]); cb.execute(); }; button.onRollOver = function () { if (this.enabled) { this.flag(); } }; button.onRollOut = (n.onReleaseOutside = function () { if (this.enabled) { this.deflag(); } }); button.onRelease = function () { if (this.enabled) { if (this.type == "url") { this.ref.get_URL(this.link, this.id); } else { this.enabled = false; this.ref.reset(this); this.activate(new com.mammoth.util.Callback(this, "callback")); } } }; __buttons.push(button); if (orientation == "horizontal") { button._x = __x; if (add_dots && (id < (datum.length - 1))) { var dot = com.mammoth.FullClip.attach(this, "dot", "dot" + id, ++__depth); dot._x = (button._x + button._width) + (space / 2); dot._y = button._y + (button._height / 2); } __x = __x + (button._width + space); } else { button._y = __y; __y = __y + (button._height + space); if (align == "right") { button._x = -button._width; } } } function reset(m) { var i = -1; while ((++i) < __buttons.length) { if (((!__buttons[i].enabled) && (__buttons[i] != m)) && (__buttons[i].type != "url")) { __buttons[i].reset(); } } } function get_URL(link, id) { ref.get_URL(link, id); } function lock(cb) { __lock = com.mammoth.FullClip.create(this, "lock_mc", 2000, {_alpha:0, box:[_width, _height, 65280]}); __lock._x = ((align != "right") ? 0 : (-__lock._width)); __lock.onRelease = function () { return(undefined); }; __lock.useHandCursor = false; cb.execute(); } function unlock(cb) { __lock.removeMovieClip(); cb.execute(); } function get buttons() { return(__buttons); } var __y = 0; var __x = 0; }Symbol 396 MovieClip [__Packages.site.components.MAINBG] Frame 0class site.components.MAINBG extends MovieClip { var __bg; function MAINBG () { super(); var b = ((__bg = com.mammoth.FullClip.attach(this, "bg.mc", "bg.mc", 0, {_y:0}))); b._y = (-b._height) + __height; } var __height = 600; }Symbol 397 MovieClip [__Packages.site.components.MAINPage] Frame 0class site.components.MAINPage extends MovieClip { var __content, __xml, __data, __header, __xml_from_file, __xml_file, callback, bg, removeMovieClip; function MAINPage () { super(); __content = com.mammoth.FullClip.create(this, "content", 0); site.Base.extend(this, "data"); } function kill_bg(cb) { __bg.motion("_alpha", "easeInQuad", 0, 7, cb); } function add_section_header(caption, cb) { trace("add header! : " + caption); var h = ((caption != undefined) ? (caption) : (__xml.header)); var cp = __data.fetch("ui", "header"); cp.caption = h; __header = com.mammoth.text.Field.create(this, "header", 950, {_alpha:0, _x:645, _y:370}, cp); com.mammoth.animation.Blur.enable(__header, 15, 15, 3); __header.blur("_blurx", "easeInOutQuad", 0, 15); __header.blur("_blury", "easeInOutQuad", 0, 15); __header.motion("_alpha", "easeInOutQuad", 100, 15); cb.execute(); } function load_xml(cb) { __xml_from_file = new com.mammoth.xml.ObjectXML(__xml_file, new com.mammoth.util.Callback(this, "on_xml_complete", cb)); } function on_xml_complete(cb) { __xml = __xml_from_file.__data.content; delete __xml_file; delete __xml_from_file; add_section_header(); cb.execute(); } function on_complete() { callback.execute(); } function die(cb) { if (__header != undefined) { __header.blur("_blury", "easeInExpo", 30, 15); __header.motion("_alpha", "easeInExpo", 0, 15); __header.motion("_y", "easeInExpo", __header._y + 300, 15, cb); } else { cb.execute(); } } function bg_die(cb) { bg.redraw("_drawh", "easeInOutExpo", 5, 15, new com.mammoth.util.Callback(this, "finalize", cb)); } function finalize(cb) { removeMovieClip(); cb.execute(); } }Symbol 398 MovieClip [__Packages.com.mammoth.text.Field] Frame 0class com.mammoth.text.Field { var __target, __caption, __background, __leading, __letterSpacing, __tabs; function Field (target, properties) { __target = target; com.mammoth.FullClip.applyProperties(this, properties, "__"); if ((__target != undefined) && (__caption != undefined)) { build(); } } static function create(target, name, depth, properties, copy) { var clip = com.mammoth.FullClip.create(target, name, depth, properties); clip._field = new com.mammoth.text.Field(clip, copy); return(clip); } function get width() { return(__target.txt.textWidth); } function get height() { return(__target.txt.textHeight); } function get caption() { return(__caption); } function set caption(text) { __caption = text; build(); //return(caption); } function build() { var face = new Array(((((("<font face=\"" + __font) + "\" size=\"") + __size) + "\" color=\"#") + __color.toString(16)) + "\">", "</font>"); var text_format = new TextFormat(); switch (__align) { case "left" : var paragraph = new Array("<p>", "</p>"); var x = 0; break; case "right" : var paragraph = new Array("<p align=\"right\">", "</p>"); var x = (-1 * __wrap); break; case "center" : var paragraph = new Array("<p align=\"center\">", "</p>"); var x = (-1 * Math.round(__wrap / 2)); } __target.createTextField("txt", 1, x, 0, __wrap, 0); if (__wrap > 0) { __target.txt.multiline = (__target.txt.wordWrap = true); } if ((__caption.indexOf("<br>") > 0) || (__caption.indexOf(newline) > 0)) { __target.txt.multiline = true; } if (__advanced) { __target.txt.antiAliasType = "advanced"; __target.txt.sharpness = -50; __target.txt.gridFitType = "none"; } __target.txt.selectable = __selectable; __target.txt.embedFonts = __embed; __target.txt.autoSize = __align; __target.txt.html = true; if (__background != undefined) { __target.txt.background = true; __target.txt.backgroundColor = __background; } if (__caption.indexOf(newline) > 0) { var lines = __caption.split(newline); var index = 0; var limit = lines.length; while (index < limit) { __target.txt.htmlText = __target.txt.htmlText + (((((paragraph[0] + face[0]) + lines[index++]) + face[1]) + paragraph[1]) + "<br>"); } } else { __target.txt.htmlText = (((paragraph[0] + face[0]) + __caption) + face[1]) + paragraph[0]; } if (__leading != undefined) { text_format.leading = __leading; } if (__letterSpacing != undefined) { text_format.kerning = true; text_format.letterSpacing = __letterSpacing; } text_format.align = __align; text_format.bold = __bold; text_format.italic = __italic; text_format.tabStops = __tabs; __target.txt.setTextFormat(text_format); var field_height = height; var clip_height = __target._height; } var __font = "_sans"; var __size = 12; var __color = 0; var __align = "left"; var __bold = false; var __italic = false; var __selectable = false; var __advanced = false; var __embed = true; var __wrap = 0; }Symbol 399 MovieClip [__Packages.site.components.MAINSplash] Frame 0class site.components.MAINSplash extends MovieClip { var __audio, __intro, __beta, __title, callback1, callback2; function MAINSplash () { super(); __audio = site.SoundManager.getInstance(); addIntro(); } function addIntro() { var b = ((__intro = com.mammoth.FullClip.attach(this, "GAME_INTRO", "INTRO", 10))); b._x = b._width / 2; b._y = b._height / 2; trace("game intro:" + b); } function addBeta() { __audio.attachSound("beta_in.wav", 75, 1, true); var b = ((__beta = com.mammoth.FullClip.attach(this, "splash.beta", "beta", 0))); b._x = -40; b._y = -b._height; b.motion("_y", "easeOutElastic", -4, 30, new com.mammoth.util.Callback(this, "addTitle")); } function addTitle() { __audio.attachSound("title_in.wav", 75, 1, true); addStart(); var t = ((__title = com.mammoth.FullClip.attach(this, "flight_of_betameche", "title", 1, {_x:46}))); t._y = -t._height; t.motion("_y", "easeOutElastic", 44, 30); } function addStart() { var b = com.mammoth.FullClip.attach(this, "splash.start", "start", 2, {_y:546, _alpha:0, ref:this}); b._x = 170 - (b._width / 2); b.motion("_alpha", "easeInOutQuad", 100, 15); b.onRelease = function () { this.motion("_alpha", "easeInOutQuad", 0, 15); this.enabled = false; this.ref.die(); }; } function die(ccc) { trace("splash dies"); trace("ccc: " + ccc); if (ccc == 1) { __intro.motion("_alpha", "easeInOutQuad", 0, 1, callback1); } else { __intro.motion("_alpha", "easeInOutQuad", 0, 1, callback2); } } }Symbol 400 MovieClip [__Packages.site.components.MAINBeta] Frame 0class site.components.MAINBeta extends MovieClip { var __controller, __bg_controller, __audio, __game_over, __start_screen, game_level, createEmptyMovieClip, _parent, __drag_instruction, __beta_in_flight, __beta, __bg, __romeos_holder, __foreground, __clouds, __rope, __romeos, __beta_catch_rope, __consecutive_hits, __velocity, onMouseDown, __bang, _xmouse, __fall, score, __bling, __flap, __catch, ref, _y; function MAINBeta () { super(); __controller = com.mammoth.FullClip.create(this, "controller", 500); __bg_controller = com.mammoth.FullClip.create(this, "bg_controller", 501); __audio = site.SoundManager.getInstance(); __game_over = false; addBg(); } function start() { trace("-- function playgame"); __start_screen = com.mammoth.FullClip.attach(this, "mc_levels", "start_screen", 200, {_y:90, _x:70}); var frame_list = Array("level1", "level2", "level3"); __start_screen.gotoAndPlay(frame_list[game_level - 1]); } function playgame() { trace("TRACK LINK - gamplays"); createEmptyMovieClip("target_mc", 5771); loadVariablesNum ("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/arthur_gameplays/1234334@x01", 3); trace("-- function playgame"); addBeta(); addRope(); addRomeoHolder(); addForeground(); addClouds(); populateBg(); _parent._parent.addTimer(); trace("want to start timer HERE:" + this); addDragInstruction(); _parent._parent.addNature(); } function endGame(cb) { trace("-- function endGame"); __game_over = true; __drag_instruction.die(); if (!__beta_in_flight) { __beta.enabled = false; } if (__beta.__is_pressed) { __beta.onRelease(); } cb.execute(); } function addBg() { trace("-- function addBg"); __bg = com.mammoth.FullClip.attach(this, "bg.mc", "bg", 0); __bg._y = (-__bg._height) + 600; trace("addBg: " + __bg); } function addRomeoHolder() { var y = (__bg._y - 500); __romeos_holder = com.mammoth.FullClip.create(this, "romeos_holder", 2, {_y:y, __y_origin:y}); } function addForeground() { trace("-- function addForeground"); var y = (__bg._y - 600); __foreground = com.mammoth.FullClip.attach(this, "foreground", "foreground", 50, {_y:y, __y_origin:y}); trace("addForeground: " + __foreground); } function addClouds() { var y = (__bg._y - 600); __clouds = com.mammoth.FullClip.attach(this, "clouds", "clouds", 51, {_y:y, __y_origin:y}); } function addRope() { __rope = com.mammoth.FullClip.attach(this, "MAINRope", "rope", 20, {beta:__beta}); } function populateBg() { var levelsets = Array([33, 3, 3, 4], [33, 3, 5, 8], [31, 3, 3, 9]); var num_romeos = levelsets[game_level - 1][0]; var num_bonus = levelsets[game_level - 1][1]; var num_bonus2 = levelsets[game_level - 1][2]; var num_negs = levelsets[game_level - 1][3]; var pushcount = 0; trace("Game Level:" + game_level); trace("*-- create romeos"); __romeos = new com.mammoth.util.ArrayList(); var i = -1; var count = num_romeos; while ((++i) < count) { var m = com.mammoth.FullClip.attach(__romeos_holder, "MAINRomeo", "romeo" + i, i, {_visible:true}); m.id = "romeo" + i; m._x = com.mammoth.util.Equation.randomize(10, 380 - m._width); var max = (__bg._height - 600); m._y = ((-50 + com.mammoth.util.Equation.randomize(0, 100)) + max) - com.mammoth.util.Equation.easeOutQuad(i, 0, max, count); m.points = __point_value; m.sndfile = "clang.wav"; __romeos.push(m); } pushcount = pushcount + num_romeos; trace("*-- create romeo bonus"); i = -1; count = num_bonus; while ((++i) < count) { var m = com.mammoth.FullClip.attach(__romeos_holder, "MAINRomeoBonus", ("romeo" + pushcount) + i, pushcount + i, {_visible:true}); m.id = ("romeo" + pushcount) + i; m._x = com.mammoth.util.Equation.randomize(10, 380 - m._width); var max = (__bg._height - 600); m._y = max - (700 + com.mammoth.util.Equation.randomize(0, 500)); m.points = __point_value * 5; m.sndfile = "flexit_2.mp3"; __romeos.push(m); } pushcount = pushcount + num_bonus; trace("*-- create romeo bonus"); i = -1; count = num_bonus2; while ((++i) < count) { var m = com.mammoth.FullClip.attach(__romeos_holder, "MAINRomeoBonus", ("romeo" + pushcount) + i, pushcount + i, {_visible:true}); m.id = ("romeo" + pushcount) + i; m._x = com.mammoth.util.Equation.randomize(10, 380 - m._width); var max = (__bg._height - 600); m._y = max - (2100 + com.mammoth.util.Equation.randomize(0, 700)); m.points = __point_value * 5; m.sndfile = "flexit_2.mp3"; __romeos.push(m); } pushcount = pushcount + num_bonus2; trace("*-- create romeo negs"); i = -1; count = num_negs; while ((++i) < count) { var m = com.mammoth.FullClip.attach(__romeos_holder, "MAINRomeoNeg", ("romeo" + pushcount) + i, pushcount + i, {_visible:true}); m.id = ("romeo" + pushcount) + i; m._x = com.mammoth.util.Equation.randomize(10, 380 - m._width); var max = (__bg._height - 600); m._y = max - (1600 + com.mammoth.util.Equation.randomize(0, 900)); m.points = __point_value * -5; m.sndfile = "ball_shake.mp3"; __romeos.push(m); } } function resetBeta() { if (__game_over) { return(undefined); } __beta_catch_rope.removeMovieClip(); addRomeoHolder(); populateBg(); addBeta(); addRope(); addSidePanel(); addDragInstruction(); } function addDragInstruction() { var m = ((__drag_instruction = com.mammoth.FullClip.attach(this, "drag_instruction", "drag_instruction", 155))); m._x = __beta._x + (__beta._width / 2); m._y = __beta._y + 65; m._alpha = 0; m.fi = -1; m.onEnterFrame = function () { if ((++this.fi) == 15) { this.gotoAndStop(1); this.motion("_alpha", "easeInOutQuad", 100, 15, new com.mammoth.util.Callback(this, "gotoAndPlay", 1)); } }; m.die = function () { delete this.onEnterFrame; this.motion("_alpha", "easeInOutQuad", 0, 7); }; } function addBeta() { __consecutive_hits = 0; var b = ((__beta = com.mammoth.FullClip.create(this, "beta", 1, {ref:this, _y:__y}))); b._x = 146; com.mammoth.FullClip.attach(b, "beta", "beta", 0); com.mammoth.FullClip.extend(b.beta); b.beta.audio = new com.mammoth.util.Callback(this, "flap"); b.onPress = function () { this.__is_pressed = true; this.ref.dragBeta(); }; b.onRelease = (b.onReleaseOutside = function () { this.__is_pressed = false; this.ref.throwBeta(); this.stopDrag(); }); } function dragBeta() { __drag_instruction.die(); __audio.attachSound("stretch.wav", 60, 1, true); __rope.start(); __beta.startDrag(false, __x, __y, __x, 515); } function throwBeta() { __audio.attachSound("beta_launch.wav", 75, 1, true); __rope.fling(); __beta.enabled = false; __beta.beta.gotoAndStop(2); __beta_in_flight = true; __velocity = (__beta._y - __y) / 5.55; __controller.callback = new com.mammoth.util.Callback(this, "moveBeta"); __controller.onEnterFrame = function () { this.callback.execute(); }; __bg_controller.callback = new com.mammoth.util.Callback(this, "followBeta"); __bg_controller.onEnterFrame = function () { this.callback.execute(); }; setMouseActions(); } function setMouseActions() { onMouseDown = adjustGravity; } function moveBeta() { __gravity = (((__gravity - 0.01) >= __gravity_max) ? (__gravity - 0.01) : (__gravity)); __velocity = __velocity + __gravity; if ((__beta._y - __velocity) < __bg._y) { if (__bang == undefined) { __bang = __audio.attachSound("bang.wav", 100, 1, false); } else { __bang._sound.start(); } __beta._y = __bg._y; __velocity = __velocity * -1; } else { __beta._y = __beta._y - __velocity; } if (!__game_over) { __beta._x = __beta._x + ((_xmouse - __beta._x) / 10); if (__beta._x > 340) { __beta._x = 340; } } if (__velocity < 0) { if (__fall == undefined) { __fall = __audio.attachSound("beta_fall.wav", 50, 0, false); } if (!__fall_is_playing) { __fall_is_playing = true; __fall._sound.setVolume(50); if (!__game_over) { __fall._sound.start(); } } } if ((__beta._y > __y) && (__velocity < 0)) { if (!__game_over) { stopBeta(); } else if (__beta._y > 600) { killBeta(); } } checkHit(); } function boostRomeo() { __velocity = 60; __consecutive_hits = 0; } function checkHit() { if (__game_over) { return(undefined); } var i = -1; while ((++i) < __romeos.length) { var m = __romeos[i]; if (__beta.beta.hit_area.hitTest(m.romeo.hit_area)) { hit(m.points); bling(m.sndfile); removeRomeo(m.id); } } } function hit(p) { __score = __score + p; score.score = __score; } function bling(sndfile) { __bling = __audio.attachSound(sndfile, 25, 0); var p = Math.round(-100 + (200 * (__beta._x / (425 - __beta._width)))); __bling._sound.setPan(p); __bling._sound.start(); } function flap() { if (__flap == undefined) { __flap = __audio.attachSound("flap.wav", 30, 0, false); } __flap._sound.start(); } function findRomeo(id) { var limit = __romeos.length; var i = 0; while (i < limit) { if (__romeos[i].id == id) { return(i); } i++; } return(-1); } function removeRomeo(id) { var index = findRomeo(id); if (index >= 0) { MovieClip = __romeos[index].hit(); __romeos.splice(index, 1); } } function stopBeta() { __beta.enabled = true; __beta_in_flight = false; delete __controller.onEnterFrame; __fall.mix("_volume", "easeInOutQuad", 0, 15); __fall_is_playing = false; addBetaCatchRope(); } function killBeta() { __beta_in_flight = false; delete __controller.onEnterFrame; __fall.mix("_volume", "easeInOutQuad", 0, 15); __fall_is_playing = false; } function addBetaCatchRope() { __catch = __audio.attachSound("beta_catch_rope.wav", 75, 1, true); var cb = (new com.mammoth.util.Callback(this, "catchAlign")); __beta_catch_rope = com.mammoth.FullClip.attach(this, "beta.catch", "beta_catch", 35, {_y:__y - 3, _x:__beta._x, callback:cb}); __beta._enabled = false; __beta._visible = false; __rope.removeMovieClip(); } function catchAlign() { var cb = (new com.mammoth.util.Callback(this, "resetBeta")); __beta_catch_rope.motion("_x", "easeInOutExpo", __x, 15, cb); } function addEndScreen() { ref.addEndScreen(); } function adjustGravity() { if (__beta_in_flight && (!__game_over)) { __gravity = (((__gravity + 0.1) < __gravity_min) ? (__gravity + 0.1) : (__gravity)); var b = __beta.beta; if (b.flaps == undefined) { b.flaps = 0; } if (b.flaps < 5) { b.flaps++; } if (b._currentframe == 2) { b.gotoAndPlay(2); } } else { trace("beta not in flight"); } } function followBeta() { var y = __beta._y; var yt = Math.min(Math.max(0, 152 - y), __bg._height - 600); _y = _y + ((yt - _y) / 4); moveRomeos(); moveForeground(); moveClouds(); } function moveRomeos() { var p = (_y / 3000); __romeos_holder._y = __romeos_holder.__y_origin + (p * 500); } function moveForeground() { var p = (_y / 3000); __foreground._y = __foreground.__y_origin + (p * 2000); } function moveClouds() { var p = (_y / 3000); __clouds._y = __clouds.__y_origin + (p * 2100); } function setRomeoVisibility() { var i = -1; while ((++i) < __romeos.length) { var m = __romeos[i]; var y = (__bg._height - m._y); var sy = Math.abs(_y); var visible = (((y > sy) && (y < (sy + 600))) ? true : false); m._visible = visible; } } var __y = 175; var __x = 146; var __width = 425; var __gravity_min = -0.3; var __gravity_max = -0.75; var __gravity = site.components.MAINBeta.prototype.__gravity_max; var __beta_y_low = 480; var __beta_y_high = -1300; var __hits = 0; var __score = 0; var __point_value = 10; var __fall_is_playing = false; }Symbol 401 MovieClip [__Packages.site.components.MAINRomeo] Frame 0class site.components.MAINRomeo extends MovieClip { var __colors, __romeo, onEnterFrame; function MAINRomeo () { super(); __colors = new Array(16711680, 65280); __romeo = com.mammoth.FullClip.attach(this, "romeo", "romeo", 0); start(); } function start() { onEnterFrame = function () { var y = (1 - (com.mammoth.util.Equation.randomize(0, 1) * 2)); var x = (1 - (com.mammoth.util.Equation.randomize(0, 1) * 2)); this._x = this._x + x; this._y = this._y + y; }; } function hit() { __romeo.play(); } }Symbol 402 MovieClip [__Packages.site.components.MAINRope] Frame 0class site.components.MAINRope extends MovieClip { var __lines, beta, onEnterFrame, __flung; function MAINRope () { super(); start(); } function start() { __lines = com.mammoth.FullClip.create(this, "lines", 0); __start = beta._y + __y_offset; onEnterFrame = function () { this.followBeta(); }; } function followBeta() { var l = __lines; l.clear(); l.lineStyle(1, __light); l.moveTo(0, __start); l.lineTo(beta._x + 2, beta._y + __y_offset); l.moveTo(beta._x + 60, beta._y + __y_offset); l.lineTo(370, __start); l.lineStyle(1, __dark); l.moveTo(0, __start + 1); l.lineTo(beta._x + 2, (beta._y + __y_offset) + 1); l.moveTo(beta._x + 60, (beta._y + __y_offset) + 1); l.lineTo(370, __start + 1); } function fling() { __lines.removeMovieClip(); __flung = com.mammoth.FullClip.attach(this, "rope.flung", "flung", 0, {_y:__start}); } var __light = 14210973; var __dark = 8881762; var __y_offset = 24; }Symbol 403 MovieClip [__Packages.site.components.MAINTimer] Frame 0class site.components.MAINTimer extends MovieClip { var __frame_index, __time_remaining, duration, __display, __controller, frames_per_second, callback; function MAINTimer () { super(); create(); } function start() { __frame_index = 0; __time_remaining = duration; __display.timer_display.text = __time_remaining; __controller.onEnterFrame = function () { this.callback.execute(); }; } function create() { __controller = com.mammoth.FullClip.create(this, "controller", 10, {callback:new com.mammoth.util.Callback(this, "advanceTime")}); __display = com.mammoth.FullClip.attach(this, "timer", "timer_display", 11, {_y:600, _x:425, _alpha:0}); __display.timer_display.text = duration; __display.motion("_alpha", "easeInOutQuad", 100, 15); } function advanceTime() { if (((++__frame_index) % frames_per_second) == 0) { if ((--__time_remaining) >= 0) { __display.timer_display.text = __time_remaining; } else { delete __controller.onEnterFrame; callback.execute(); } } } }Symbol 404 MovieClip [__Packages.site.components.MAINScreen] Frame 0class site.components.MAINScreen extends MovieClip { var __bg, __width, __height, removeMovieClip; function MAINScreen () { super(); } function addBg(cb) { __bg = com.mammoth.FullClip.create(this, "bg", 0, {box:[__curve * 2, __curve * 2, [16777215, 85], __curve * 2, 0, 0, 1, [0, 75]]}); __bg._x = Math.round((__screenWidth - __curve) / 2); __bg._y = Math.round((600 - __curve) / 2); var f = 15; var x = Math.round((__screenWidth - __width) / 2); var y = Math.round((600 - __height) / 2); __bg.motion("_x", "easeInOutExpo", x, f); __bg.motion("_y", "easeInOutExpo", y, f); __bg.redraw("_drawh", "easeInOutExpo", __height, f); __bg.redraw("_draww", "easeInOutExpo", __width, f, cb); } function die(cb) { __content.removeMovieClip(); var f = 7; var x = Math.round((__screenWidth - __curve) / 2); var y = Math.round((600 - __curve) / 2); __bg.motion("_x", "easeInOutExpo", x, f); __bg.motion("_y", "easeInOutExpo", y, f); __bg.redraw("_drawh", "easeInOutExpo", __curve * 2, f); __bg.redraw("_draww", "easeInOutExpo", __curve * 2, f, new com.mammoth.util.Callback(this, "finalize", cb)); } function finalize(cb) { removeMovieClip(); cb.execute(); } var __curve = 10; var __screenWidth = 340; }Symbol 405 MovieClip [__Packages.site.components.MAINScreenEnd] Frame 0class site.components.MAINScreenEnd extends site.components.MAINScreen { var glevel, score, __audio; function MAINScreenEnd () { super(); addContent(); } function addContent() { __content = com.mammoth.FullClip.attach(this, "mc_end", "content", 1); __content._x = 70; __content._y = 80; trace("end screen:" + __content); var b = __content.play_again; var score_targets = Array(500, 600, 750); var score_target = score_targets[glevel - 1]; com.mammoth.FullClip.extend(b); if (score < score_target) { __content.msg_display.display_score = score; __audio = site.SoundManager.getInstance(); __audio.attachSound("window_shrink.wav", 100, 1, true); trace("TRACK LINK - game over"); loadVariablesNum ("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/arthur_gameovers/1234534@x01", 2); } else if (glevel < 3) { __audio = site.SoundManager.getInstance(); __audio.attachSound("ending.wav", 100, 1, true); view.nextLevel(); __content.removeMovieClip(); } else { trace("TRACK LINK - game over - (this is from a win)"); loadVariablesNum ("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/arthur_gameovers/1234534@x01", 2); trace("game won"); __audio = site.SoundManager.getInstance(); __audio.attachSound("end_gesture.mp3", 100, 1, true); __content.gotoAndPlay("well_done"); } } function die(cb) { __audio.attachSound("button.wav", 75, 1, true, new com.mammoth.util.Callback(__audio, "attachSound", "window_shrink.wav", 60, 1, true)); __content.motion("_alpha", "easeInOutQuad", 0, 7, new com.mammoth.util.Callback(super, "die", cb)); } var __width = 385; var __height = 450; }Symbol 406 MovieClip [__Packages.site.components.MAINRomeoBonus] Frame 0class site.components.MAINRomeoBonus extends MovieClip { var __colors, __romeo, onEnterFrame; function MAINRomeoBonus () { super(); __colors = new Array(16711680, 65280); __romeo = com.mammoth.FullClip.attach(this, "romeo_bonus", "romeo", 0); start(); } function start() { onEnterFrame = function () { var y = (1 - (com.mammoth.util.Equation.randomize(0, 1) * 2)); var x = (1 - (com.mammoth.util.Equation.randomize(0, 1) * 2)); this._x = this._x + x; this._y = this._y + y; }; } function hit() { __romeo.play(); } }Symbol 407 MovieClip [__Packages.site.components.MAINRomeoNeg] Frame 0class site.components.MAINRomeoNeg extends MovieClip { var __colors, __romeo, onEnterFrame; function MAINRomeoNeg () { super(); __colors = new Array(16711680, 65280); __romeo = com.mammoth.FullClip.attach(this, "romeo_neg", "romeo", 0); start(); } function start() { onEnterFrame = function () { var y = (1 - (com.mammoth.util.Equation.randomize(0, 1) * 2)); var x = (1 - (com.mammoth.util.Equation.randomize(0, 1) * 2)); this._x = this._x + x; this._y = this._y + y; }; } function hit() { __romeo.play(); } }Symbol 408 MovieClip [__Packages.site.components.MAINScore] Frame 0class site.components.MAINScore extends MovieClip { var __controller, __display; function MAINScore () { super(); __controller = com.mammoth.FullClip.create(this, "controller", 10, {callback:new com.mammoth.util.Callback(this, "advanceScore")}); __display = com.mammoth.FullClip.attach(this, "score", "score_display", 11, {_y:600, _alpha:0}); __display.motion("_alpha", "easeInOutQuad", 100, 15); __display.score_display.text = __score; } function set score(new_score) { __score = new_score; if (__visual_score < __score) { __controller.onEnterFrame = function () { this.callback.execute(); }; } //return(score); } function get score() { return(__score); } function advanceScore() { __visual_score = Math.min(__score, __visual_score + 2); if (__visual_score <= __score) { __display.score_display.text = __visual_score; } else { delete __controller.onEnterFrame; } } var __score = 0; var __visual_score = 0; }Symbol 409 MovieClip [__Packages.site.components.MAINScreenInstructions] Frame 0class site.components.MAINScreenInstructions extends site.components.MAINScreen { var __audio, __bg, callback; function MAINScreenInstructions () { super(); __audio = site.SoundManager.getInstance(); __content = com.mammoth.FullClip.attach(this, "mc_howToPlay", "content", 1); __content._x = 16; } function exit() { trace("** "); die(); } function addContent() { __content._x = (__bg._x + (__bg._width / 2)) - (__content._width / 2); __content._y = (__bg._y + (__bg._height / 2)) - (__content._height / 2); } function die() { __audio.attachSound("button.wav", 75, 1, true, new com.mammoth.util.Callback(__audio, "attachSound", "window_shrink.wav", 60, 1, true)); __content.motion("_alpha", "easeInOutQuad", 0, 7, new com.mammoth.util.Callback(super, "die", callback)); } var __width = 385; var __height = 475; }Symbol 410 MovieClip [__Packages.site.components.MAINNav] Frame 0class site.components.MAINNav extends MovieClip { var __buttons, __depth, __x, __menu, datum, __main, __bg, view, getURL, __controller; function MAINNav () { super(); __buttons = new Array(); __intro = 0; __depth = 0; __x = 0; create(); } function create() { site.Base.extend(this, "main"); var cb = (new com.mammoth.util.Callback(this, "navigate")); __menu = com.mammoth.FullClip.attach(this, "MAINMenu", "menu", 1, {_visible:true, space:27, orientation:"horizontal", ref:this, datum:datum, appearance:"MAINButton", auto_lock:false, add_dots:true, callback:cb}); __menu._x = __main.width - __menu._width; __menu._y = 35; } function navigate_home(id) { navigate(id); } function kill_home(id) { __menu.motion("_alpha", "easeInOutQuad", 0, 7, new com.mammoth.util.Callback(__bg.mask, "motion", "_width", "easeInOutExpo", 0, 15, new com.mammoth.util.Callback(view, "init_sub_page"))); } function navigate(id) { var attach = datum[id].link; var file = datum[id].file; view.navigate(attach, undefined, file); } function get_URL(link, id) { (getURL(link, "_blank"));// not popped } function activate() { __menu.activate_button(0); } function finalize() { if (__intro < __buttons.length) { var callback = (new com.mammoth.util.Callback(this, "finalize")); __buttons[__intro].motion("_alpha", "easeOutQuad", 100, 5, callback); __intro++; } else { __buttons[0].active = true; __buttons[0].onRelease(); } } function show() { var b = __menu.buttons; var i = -1; while ((++i) < b.length) { var m = b[i]; m._alpha = 0; m.__xtar = m._x; m.__ytar = m._y; m._xscale = 150; m._yscale = 150; } __menu._visible = true; var c = ((__controller = com.mammoth.FullClip.create(this, "controller", 150))); c.ref = this; c.frame_index = -1; c.target_index = -1; c.interval = 2; c.target_array = b; c.onEnterFrame = function () { if (((++this.frame_index) % this.interval) == 0) { if ((++this.target_index) < this.target_array.length) { var ii = -1; var m = this.target_array[this.target_index]; m.motion("_alpha", "easeInOutQuad", 100, 7); m.motion("_xscale", "easeInOutExpo", 100, 7); m.motion("_yscale", "easeInOutExpo", 100, 7); m.motion("_x", "easeInOutExpo", m.__xtar, 7); var cb = ((this.target_index == (this.target_array.length - 1)) ? (new com.mammoth.util.Callback(this.ref, "show_complete")) : undefined); m.motion("_y", "easeInOutExpo", m.__ytar, 7, cb); } else { delete this.onEnterFrame; } } }; } function show_complete() { view.nav_complete(); unlock(); } function lock() { __menu.lock(); } function unlock() { trace("unlock"); __menu.unlock(); } function reset(button) { view.kill(); for (var index in __buttons) { if ((!__buttons[index].active) && (__buttons[index] != button)) { __buttons[index].reset(); } } } }Symbol 13 MovieClip [__Packages.mx.video.FLVPlayback] Frame 0class mx.video.FLVPlayback extends MovieClip { var _autoPlay, _autoRewind, _autoSize, _bufferTime, _contentPath, _cuePoints, _idleTimeout, _isLive, _aspectRatio, _seekToPrevOffset, _playheadUpdateInterval, _progressInterval, _totalTime, _transform, _volume, _skinAutoHide, _bufferingBarHides, _origHeight, _prevHeight, __height, _height, _origWidth, _prevWidth, __width, _width, _scaleX, _scaleY, _xscale, _yscale, _preSeekTime, _firstStreamReady, _firstStreamShown, _activeVP, _visibleVP, _topVP, _vp, _vpState, _cpMgr, boundingBox_mc, preview_mc, dispatchEvent, _uiMgr, _bufferingBar, _backButton, __get__cuePoints, _forwardButton, _muteButton, _pauseButton, _playButton, _playPauseButton, _seekBar, _seekBarInterval, _seekBarScrubTolerance, _skin, _stopButton, _visible, _volumeBar, _volumeBarInterval, _volumeBarScrubTolerance, _x, _y, attachMovie, createEmptyMovieClip; function FLVPlayback () { super(); mx.events.EventDispatcher.initialize(this); if (_autoPlay == undefined) { _autoPlay = true; } if (_autoRewind == undefined) { _autoRewind = true; } if (_autoSize == undefined) { _autoSize = false; } if (_bufferTime == undefined) { _bufferTime = 0.1; } if (_contentPath == undefined) { _contentPath = ""; } if (_cuePoints == undefined) { _cuePoints = null; } if (_idleTimeout == undefined) { _idleTimeout = mx.video.VideoPlayer.DEFAULT_IDLE_TIMEOUT_INTERVAL; } if (_isLive == undefined) { _isLive = false; } if (_aspectRatio == undefined) { _aspectRatio = true; } if (_seekToPrevOffset == undefined) { _seekToPrevOffset = SEEK_TO_PREV_OFFSET_DEFAULT; } if (_playheadUpdateInterval == undefined) { _playheadUpdateInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_PROGRESS_INTERVAL; } if (_progressInterval == undefined) { _progressInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_TIME_INTERVAL; } if (_totalTime == undefined) { _totalTime = 0; } if (_transform == undefined) { _transform = null; } if (_volume == undefined) { _volume = 100; } if (_skinAutoHide == undefined) { _skinAutoHide = false; } if (_bufferingBarHides == undefined) { _bufferingBarHides = false; } _origHeight = (_prevHeight = (__height = _height)); _origWidth = (_prevWidth = (__width = _width)); _scaleX = 100; _scaleY = 100; _xscale = 100; _yscale = 100; _preSeekTime = -1; _firstStreamReady = false; _firstStreamShown = false; createUIManager(); _activeVP = 0; _visibleVP = 0; _topVP = 0; _vp = new Array(); _vpState = new Array(); _cpMgr = new Array(); createVideoPlayer(0); _vp[0].visible = false; _vp[0].volume = 0; boundingBox_mc._visible = false; boundingBox_mc.unloadMovie(); delete boundingBox_mc; if (_global.isLivePreview) { createLivePreviewMovieClip(); setSize(__width, __height); } _cpMgr[0].processCuePointsProperty(_cuePoints); delete _cuePoints; _cuePoints = null; } function setSize(w, h) { if (_global.isLivePreview) { if (preview_mc == undefined) { createLivePreviewMovieClip(); } preview_mc.box_mc._width = w; preview_mc.box_mc._height = h; if ((preview_mc.box_mc._width < preview_mc.icon_mc._width) || (preview_mc.box_mc._height < preview_mc.icon_mc._height)) { preview_mc.icon_mc._visible = false; } else { preview_mc.icon_mc._visible = true; preview_mc.icon_mc._x = (preview_mc.box_mc._width - preview_mc.icon_mc._width) / 2; preview_mc.icon_mc._y = (preview_mc.box_mc._height - preview_mc.icon_mc._height) / 2; } } if ((w == width) && (h == height)) { return(undefined); } _prevWidth = (__width = w); _prevHeight = (__height = h); var _local3 = 0; while (_local3 < _vp.length) { if (_vp[_local3] != undefined) { _vp[_local3].setSize(w, h); } _local3++; } dispatchEvent({type:"resize", x:x, y:y, width:w, height:h}); } function setScale(xs, ys) { if ((xs == scaleX) && (ys == scaleY)) { return(undefined); } _scaleX = xs; _scaleY = ys; var _local2 = 0; while (_local2 < _vp.length) { if (_vp[_local2] != undefined) { _vp[_local2].setSize((_origWidth * xs) / 100, (_origHeight * ys) / 100); } _local2++; } dispatchEvent({type:"resize", x:x, y:y, width:width, height:height}); } function handleEvent(e) { var _local3 = e.state; if (((e.state != undefined) && (e.target._name == _visibleVP)) && (scrubbing)) { _local3 = SEEKING; } if (e.type == "metadataReceived") { _cpMgr[e.target._name].processFLVCuePoints(e.info.cuePoints); dispatchEvent({type:e.type, info:e.info, vp:e.target._name}); } else if (e.type == "cuePoint") { if (_cpMgr[e.target._name].isFLVCuePointEnabled(e.info)) { dispatchEvent({type:e.type, info:e.info, vp:e.target._name}); } } else if (e.type == "rewind") { dispatchEvent({type:e.type, auto:true, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); _cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); } else if (e.type == "resize") { dispatchEvent({type:e.type, x:x, y:y, width:width, height:height, auto:true, vp:e.target._name}); _prevWidth = __width; _prevHeight = __height; } else if (e.type == "playheadUpdate") { dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if ((_preSeekTime >= 0) && (e.target.state != SEEKING)) { var _local5 = _preSeekTime; _preSeekTime = -1; _cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); dispatchEvent({type:"seek", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if (_local5 < e.playheadTime) { dispatchEvent({type:"fastForward", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } else if (_local5 > e.playheadTime) { dispatchEvent({type:"rewind", auto:false, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } _cpMgr[e.target._name].dispatchASCuePoints(); } else if (e.type == "stateChange") { var _local4 = e.target._name; if ((_local4 == _visibleVP) && (scrubbing)) { return(undefined); } if (e.state == mx.video.VideoPlayer.RESIZING) { return(undefined); } if (((_vpState[_local4].prevState == LOADING) && (_vpState[_local4].autoPlay)) && (e.state == STOPPED)) { return(undefined); } _vpState[_local4].prevState = e.state; dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if (_vp[e.target._name].state != _local3) { return(undefined); } switch (_local3) { case BUFFERING : dispatchEvent({type:"buffering", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case PAUSED : dispatchEvent({type:"paused", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case PLAYING : dispatchEvent({type:"playing", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case STOPPED : dispatchEvent({type:"stopped", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } else if (e.type == "progress") { dispatchEvent({type:e.type, bytesLoaded:e.bytesLoaded, bytesTotal:e.bytesTotal, vp:e.target._name}); } else if (e.type == "ready") { var _local4 = e.target._name; if (!_firstStreamReady) { if (_local4 == _visibleVP) { _firstStreamReady = true; if (_uiMgr.__get__skinReady() && (!_firstStreamShown)) { _uiMgr.__set__visible(true); showFirstStream(); } } } else if ((_firstStreamShown && (_local3 == STOPPED)) && _vpState[_local4].autoPlay) { _vp[_local4].play(); } dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } else if ((e.type == "close") || (e.type == "complete")) { dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } function load(contentPath, totalTime, isLive) { if (_vp[_activeVP] == undefined) { return(undefined); } if (((contentPath == undefined) || (contentPath == null)) || (contentPath == "")) { return(undefined); } autoPlay = (false); if (totalTime != undefined) { this.totalTime = (totalTime); } if (isLive != undefined) { this.isLive = (isLive); } this.contentPath = (contentPath); } function play(contentPath, totalTime, isLive) { if (_vp[_activeVP] == undefined) { return(undefined); } if (contentPath == undefined) { _vp[_activeVP].play(); } else { autoPlay = (true); if (totalTime != undefined) { this.totalTime = (totalTime); } if (isLive != undefined) { this.isLive = (isLive); } this.contentPath = (contentPath); } } function pause() { if (_vp[_activeVP] == undefined) { return(undefined); } _vp[_activeVP].pause(); } function stop() { if (_vp[_activeVP] == undefined) { return(undefined); } _vp[_activeVP].stop(); } function seek(time) { if (_vp[_activeVP] == undefined) { return(undefined); } _preSeekTime = playheadTime; _vp[_activeVP].seek(time); } function seekSeconds(time) { seek(time); } function seekPercent(percent) { if (_vp[_activeVP] == undefined) { return(undefined); } if (((((percent < 0) || (percent > 100)) || (_vp[_activeVP].totalTime == undefined)) || (_vp[_activeVP].totalTime == null)) || (_vp[_activeVP].totalTime <= 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } seek((_vp[_activeVP].totalTime * percent) / 100); } function get playheadPercentage() { if (((_vp[_activeVP].totalTime == undefined) || (_vp[_activeVP].totalTime == null)) || (_vp[_activeVP].totalTime <= 0)) { return(undefined); } return((_vp[_activeVP].playheadTime / _vp[_activeVP].totalTime) * 100); } function set playheadPercentage(percent) { seekPercent(percent); //return(playheadPercentage); } function seekToNavCuePoint(timeNameOrCuePoint) { var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } if (((_local3.name == null) || (_local3.name == undefined)) || (typeof(_local3.name) != "string")) { seekToNextNavCuePoint(_local3.time); return(undefined); } if (isNaN(_local3.time)) { _local3.time = 0; } var _local2 = findNearestCuePoint(timeNameOrCuePoint, NAVIGATION); while ((_local2 != null) && ((_local2.time < _local3.time) || (!isFLVCuePointEnabled(_local2)))) { _local2 = findNextCuePointWithName(_local2); } if (_local2 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } seek(_local2.time); } function seekToNextNavCuePoint(time) { if (_vp[_activeVP] == undefined) { return(undefined); } if (isNaN(time) || (time < 0)) { time = _vp[_activeVP].playheadTime + 0.001; } var _local3; _local3 = findNearestCuePoint(time, NAVIGATION); if (_local3 == null) { seek(_vp[_activeVP].totalTime); return(undefined); } var _local2 = _local3.index; if (_local3.time < time) { _local2++; } while ((_local2 < _local3.array.length) && (!isFLVCuePointEnabled(_local3.array[_local2]))) { _local2++; } if (_local2 >= _local3.array.length) { var _local5 = _vp[_activeVP].totalTime; if (_local3.array[_local3.array.length - 1].time > _local5) { _local5 = _local3.array[_local3.array.length - 1]; } seek(_local5); } else { seek(_local3.array[_local2].time); } } function seekToPrevNavCuePoint(time) { if (_vp[_activeVP] == undefined) { return(undefined); } if (isNaN(time) || (time < 0)) { time = _vp[_activeVP].playheadTime; } var _local3 = findNearestCuePoint(time, NAVIGATION); if (_local3 == null) { seek(0); return(undefined); } var _local2 = _local3.index; while ((_local2 >= 0) && ((!isFLVCuePointEnabled(_local3.array[_local2])) || (_local3.array[_local2].time >= (time - _seekToPrevOffset)))) { _local2--; } if (_local2 < 0) { seek(0); } else { seek(_local3.array[_local2].time); } } function addASCuePoint(timeOrCuePoint, name, parameters) { return(_cpMgr[_activeVP].addASCuePoint(timeOrCuePoint, name, parameters)); } function removeASCuePoint(timeNameOrCuePoint) { return(_cpMgr[_activeVP].removeASCuePoint(timeNameOrCuePoint)); } function findCuePoint(timeNameOrCuePoint, type) { switch (type) { case "event" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].eventCuePoints, false, timeNameOrCuePoint)); case "navigation" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].navCuePoints, false, timeNameOrCuePoint)); case "flv" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].flvCuePoints, false, timeNameOrCuePoint)); case "actionscript" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].asCuePoints, false, timeNameOrCuePoint)); case "all" : } return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].allCuePoints, false, timeNameOrCuePoint)); } function findNearestCuePoint(timeNameOrCuePoint, type) { switch (type) { case "event" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].eventCuePoints, true, timeNameOrCuePoint)); case "navigation" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].navCuePoints, true, timeNameOrCuePoint)); case "flv" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].flvCuePoints, true, timeNameOrCuePoint)); case "actionscript" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].asCuePoints, true, timeNameOrCuePoint)); case "all" : } return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].allCuePoints, true, timeNameOrCuePoint)); } function findNextCuePointWithName(cuePoint) { return(_cpMgr[_activeVP].getNextCuePointWithName(cuePoint)); } function setFLVCuePointEnabled(enabled, timeNameOrCuePoint) { return(_cpMgr[_activeVP].setFLVCuePointEnabled(enabled, timeNameOrCuePoint)); } function isFLVCuePointEnabled(timeNameOrCuePoint) { return(_cpMgr[_activeVP].isFLVCuePointEnabled(timeNameOrCuePoint)); } function getNextHighestDepth() { var _local2 = super.getNextHighestDepth(); return(((_local2 < 1000) ? 1000 : (_local2))); } function bringVideoPlayerToFront(index) { if ((index == _topVP) || (_vp[index] == undefined)) { return(undefined); } _vp[_topVP].swapDepths(_vp[index].getDepth()); _topVP = index; } function getVideoPlayer(index) { return(_vp[index]); } function closeVideoPlayer(index) { if (_vp[index] == undefined) { return(undefined); } if (index == 0) { throw new mx.video.VideoError(mx.video.VideoError.DELETE_DEFAULT_PLAYER); } if (_visibleVP == index) { visibleVideoPlayerIndex = (0); } if (_activeVP == index) { activeVideoPlayerIndex = (0); } _vp[index].close(); _vp[index].unloadMovie(); delete _vp[index]; _vp[index] = undefined; } function get activeVideoPlayerIndex() { return(_activeVP); } function set activeVideoPlayerIndex(i) { if (_activeVP == i) { return; } if (_vp[_activeVP].onEnterFrame != undefined) { doContentPathConnect(); } _activeVP = i; if (_vp[_activeVP] == undefined) { createVideoPlayer(_activeVP); _vp[_activeVP].visible = false; _vp[_activeVP].volume = 0; } //return(activeVideoPlayerIndex); } function get autoPlay() { if (_vpState[_activeVP] == undefined) { return(_autoPlay); } return(_vpState[_activeVP].autoPlay); } function set autoPlay(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoPlay = flag; } _vpState[_activeVP].autoPlay = flag; //return(autoPlay); } function get autoRewind() { if (_vp[_activeVP] == undefined) { return(_autoRewind); } return(_vp[_activeVP].autoRewind); } function set autoRewind(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoRewind = flag; } _vp[_activeVP].autoRewind = flag; //return(autoRewind); } function get autoSize() { if (_vp[_activeVP] == undefined) { return(_autoSize); } return(_vp[_activeVP].autoSize); } function set autoSize(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoSize = flag; } _vp[_activeVP].autoSize = flag; //return(autoSize); } function get bitrate() { return(ncMgr.getBitrate()); } function set bitrate(b) { ncMgr.setBitrate(b); //return(bitrate); } function get buffering() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == BUFFERING); } function get bufferingBar() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _bufferingBar = _uiMgr.getControl(mx.video.UIManager.BUFFERING_BAR); } return(_bufferingBar); } function set bufferingBar(s) { _bufferingBar = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, s); } //return(bufferingBar); } function get bufferingBarHidesAndDisablesOthers() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _bufferingBarHides = _uiMgr.bufferingBarHidesAndDisablesOthers; } return(_bufferingBarHides); } function set bufferingBarHidesAndDisablesOthers(b) { _bufferingBarHides = b; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__bufferingBarHidesAndDisablesOthers(b); } //return(bufferingBarHidesAndDisablesOthers); } function get backButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _backButton = _uiMgr.getControl(mx.video.UIManager.BACK_BUTTON); } return(_backButton); } function set backButton(s) { _backButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, s); } //return(backButton); } function get bufferTime() { if (_vp[_activeVP] == undefined) { return(_bufferTime); } return(_vp[_activeVP].bufferTime); } function set bufferTime(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _bufferTime = aTime; } _vp[_activeVP].bufferTime = aTime; //return(bufferTime); } function get bytesLoaded() { return(_vp[_activeVP].bytesLoaded); } function get bytesTotal() { return(_vp[_activeVP].bytesTotal); } function get contentPath() { if ((_vp[_activeVP] == undefined) || (_vp[_activeVP].onEnterFrame != undefined)) { return(_contentPath); } return(_vp[_activeVP].url); } function set contentPath(url) { if (_global.isLivePreview) { return; } if (_vp[_activeVP] == undefined) { if (url == _contentPath) { return; } _contentPath = url; } else { if (_vp[_activeVP].url == url) { return; } _vpState[_activeVP].minProgressPercent = undefined; if (_vp[_activeVP].onEnterFrame != undefined) { delete _vp[_activeVP].onEnterFrame; _vp[_activeVP].onEnterFrame = undefined; } _cpMgr[_activeVP].reset(); if (_vpState[_activeVP].autoPlay && (_firstStreamShown)) { _vp[_activeVP].play(url, _vpState[_activeVP].isLive, _vpState[_activeVP].totalTime); } else { _vp[_activeVP].load(url, _vpState[_activeVP].isLive, _vpState[_activeVP].totalTime); } _vpState[_activeVP].isLiveSet = false; _vpState[_activeVP].totalTimeSet = false; } //return(contentPath); } function set cuePoints(cp) { if (_cuePoints != undefined) { return; } _cuePoints = cp; //return(__get__cuePoints()); } function get forwardButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _forwardButton = _uiMgr.getControl(mx.video.UIManager.FORWARD_BUTTON); } return(_forwardButton); } function set forwardButton(s) { _forwardButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, s); } //return(forwardButton); } function get height() { if (_global.isLivePreview) { return(__height); } if (_vp[_visibleVP] != undefined) { __height = _vp[_visibleVP].height; } return(__height); } function set height(h) { setSize(width, h); //return(height); } function get idleTimeout() { if (_vp[_activeVP] == undefined) { return(_idleTimeout); } return(_vp[_activeVP].idleTimeout); } function set idleTimeout(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _idleTimeout = aTime; } _vp[_activeVP].idleTimeout = aTime; //return(idleTimeout); } function get isRTMP() { if (_global.isLivePreview) { return(true); } if (_vp[_activeVP] == undefined) { return(undefined); } return(_vp[_activeVP].isRTMP); } function get isLive() { if (_vp[_activeVP] == undefined) { return(_isLive); } if (_vpState[_activeVP].isLiveSet) { return(_vpState[_activeVP].isLive); } return(_vp[_activeVP].isLive); } function set isLive(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _isLive = flag; } _vpState[_activeVP].isLive = flag; _vpState[_activeVP].isLiveSet = true; //return(isLive); } function get maintainAspectRatio() { if (_vp[_activeVP] == undefined) { return(_aspectRatio); } return(_vp[_activeVP].maintainAspectRatio); } function set maintainAspectRatio(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _aspectRatio = flag; } _vp[_activeVP].maintainAspectRatio = flag; //return(maintainAspectRatio); } function get metadata() { if (_vp[_activeVP] == undefined) { return(null); } return(_vp[_activeVP].metadata); } function get metadataLoaded() { if (_vp[_activeVP] == undefined) { return(false); } return(_cpMgr[_activeVP].metadataLoaded); } function get muteButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _muteButton = _uiMgr.getControl(mx.video.UIManager.MUTE_BUTTON); } return(_muteButton); } function set muteButton(s) { _muteButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, s); } //return(muteButton); } function get ncMgr() { if (_vp[_activeVP] == undefined) { return(null); } return(_vp[_activeVP].ncMgr); } function get pauseButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _pauseButton = _uiMgr.getControl(mx.video.UIManager.PAUSE_BUTTON); } return(_pauseButton); } function set pauseButton(s) { _pauseButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, s); } //return(pauseButton); } function get paused() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == PAUSED); } function get playButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _playButton = _uiMgr.getControl(mx.video.UIManager.PLAY_BUTTON); } return(_playButton); } function set playButton(s) { _playButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, s); } //return(playButton); } function get playheadTime() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].playheadTime); } function set playheadTime(position) { seek(position); //return(playheadTime); } function get playheadUpdateInterval() { if (_vp[_activeVP] == undefined) { return(_playheadUpdateInterval); } return(_vp[_activeVP].playheadUpdateInterval); } function set playheadUpdateInterval(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _playheadUpdateInterval = aTime; } _cpMgr[_activeVP].playheadUpdateInterval = aTime; _vp[_activeVP].playheadUpdateInterval = aTime; //return(playheadUpdateInterval); } function get playing() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == PLAYING); } function get playPauseButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _playPauseButton = _uiMgr.getControl(mx.video.UIManager.PLAY_PAUSE_BUTTON); } return(_playPauseButton); } function set playPauseButton(s) { _playPauseButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, s); } //return(playPauseButton); } function get preferredHeight() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].videoHeight); } function get preferredWidth() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].videoWidth); } function get progressInterval() { if (_vp[_activeVP] == undefined) { return(_progressInterval); } return(_vp[_activeVP].progressInterval); } function set progressInterval(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _progressInterval = aTime; } _vp[_activeVP].progressInterval = aTime; //return(progressInterval); } function get scaleX() { if (_vp[_visibleVP] != undefined) { _scaleX = (_vp[_visibleVP].width / _origWidth) * 100; } return(_scaleX); } function set scaleX(xs) { setScale(xs, scaleY); //return(scaleX); } function get scaleY() { if (_vp[_visibleVP] != undefined) { _scaleY = (_vp[_visibleVP].height / _origHeight) * 100; } return(_scaleY); } function set scaleY(ys) { setScale(scaleX, ys); //return(scaleY); } function get scrubbing() { var _local2 = seekBar; if ((_local2 == undefined) || (_local2.isDragging == undefined)) { return(false); } return(_local2.isDragging); } function get seekBar() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _seekBar = _uiMgr.getControl(mx.video.UIManager.SEEK_BAR); } return(_seekBar); } function set seekBar(s) { _seekBar = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.SEEK_BAR, s); } //return(seekBar); } function get seekBarInterval() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _seekBarInterval = _uiMgr.seekBarInterval; } return(_seekBarInterval); } function set seekBarInterval(s) { _seekBarInterval = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__seekBarInterval(_seekBarInterval); } //return(seekBarInterval); } function get seekBarScrubTolerance() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _seekBarScrubTolerance = _uiMgr.seekBarScrubTolerance; } return(_seekBarScrubTolerance); } function set seekBarScrubTolerance(s) { _seekBarScrubTolerance = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__seekBarScrubTolerance(_seekBarScrubTolerance); } //return(seekBarScrubTolerance); } function get seekToPrevOffset() { return(_seekToPrevOffset); } function set seekToPrevOffset(s) { _seekToPrevOffset = s; //return(seekToPrevOffset); } function get skin() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _skin = _uiMgr.skin; } return(_skin); } function set skin(s) { _skin = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__skin(s); } //return(skin); } function get skinAutoHide() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _skinAutoHide = _uiMgr.skinAutoHide; } return(_skinAutoHide); } function set skinAutoHide(b) { if (_global.isLivePreview) { return; } _skinAutoHide = b; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__skinAutoHide(b); } //return(skinAutoHide); } function get transform() { return(_transform); } function set transform(s) { _transform = s; if (_vp[_activeVP] != undefined) { _vp[_activeVP].transform = _transform; } //return(transform); } function get state() { if (_global.isLivePreview) { return(STOPPED); } if (_vp[_activeVP] == undefined) { return(DISCONNECTED); } if ((_activeVP == _visibleVP) && (scrubbing)) { return(SEEKING); } var _local3 = _vp[_activeVP].state; if (_local3 == mx.video.VideoPlayer.RESIZING) { return(LOADING); } if (((_vpState[_activeVP].prevState == LOADING) && (_vpState[_activeVP].autoPlay)) && (_local3 == STOPPED)) { return(LOADING); } return(_local3); } function get stateResponsive() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].stateResponsive); } function get stopButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _stopButton = _uiMgr.getControl(mx.video.UIManager.STOP_BUTTON); } return(_stopButton); } function set stopButton(s) { _stopButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, s); } //return(stopButton); } function get stopped() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == STOPPED); } function get totalTime() { if (_global.isLivePreview) { return(1); } if (_vp[_activeVP] == undefined) { return(_totalTime); } if (_vpState[_activeVP].totalTimeSet) { return(_vpState[_activeVP].totalTime); } return(_vp[_activeVP].totalTime); } function set totalTime(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _totalTime = aTime; } _vpState[_activeVP].totalTime = aTime; _vpState[_activeVP].totalTimeSet = true; //return(totalTime); } function get visible() { return(_visible); } function set visible(v) { _visible = v; //return(visible); } function get visibleVideoPlayerIndex() { return(_visibleVP); } function set visibleVideoPlayerIndex(i) { if (_visibleVP == i) { return; } var _local2 = _visibleVP; if (_vp[i] == undefined) { createVideoPlayer(i); } var _local5 = (_vp[i].height != _vp[_visibleVP].height) || (_vp[i].width != _vp[_visibleVP].width); _vp[_visibleVP].visible = false; _vp[_visibleVP].volume = 0; _visibleVP = i; if (_firstStreamShown) { _uiMgr.setupSkinAutoHide(_local2); _vp[_visibleVP].visible = true; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } } else if ((_vp[_visibleVP].stateResponsive && (_vp[_visibleVP].state != DISCONNECTED)) && (_uiMgr.__get__skinReady())) { _uiMgr.__set__visible(true); _uiMgr.setupSkinAutoHide(_local2); _firstStreamReady = true; showFirstStream(); } if ((_vp[_local2].height != _vp[_visibleVP].height) || (_vp[_local2].width != _vp[_visibleVP].width)) { dispatchEvent({type:"resize", x:x, y:y, width:width, height:height, auto:false, vp:_visibleVP}); } _uiMgr.handleEvent({type:"stateChange", state:_vp[_visibleVP].state, vp:_visibleVP}); _uiMgr.handleEvent({type:"playheadUpdate", playheadTime:_vp[_visibleVP].playheadTime, vp:_visibleVP}); if (_vp[_visibleVP].isRTMP) { _uiMgr.handleEvent({type:"ready", vp:_visibleVP}); } else { _uiMgr.handleEvent({type:"progress", bytesLoaded:_vp[_visibleVP].bytesLoaded, bytesTotal:_vp[_visibleVP].bytesTotal, vp:_visibleVP}); } //return(visibleVideoPlayerIndex); } function get volume() { return(_volume); } function set volume(aVol) { if (_volume == aVol) { return; } _volume = aVol; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } dispatchEvent({type:"volumeUpdate", volume:aVol}); //return(volume); } function get volumeBar() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _volumeBar = _uiMgr.getControl(mx.video.UIManager.VOLUME_BAR); } return(_volumeBar); } function set volumeBar(s) { _volumeBar = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, s); } //return(volumeBar); } function get volumeBarInterval() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _volumeBarInterval = _uiMgr.volumeBarInterval; } return(_volumeBarInterval); } function set volumeBarInterval(s) { _volumeBarInterval = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__volumeBarInterval(_volumeBarInterval); } //return(volumeBarInterval); } function get volumeBarScrubTolerance() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _volumeBarScrubTolerance = _uiMgr.volumeBarScrubTolerance; } return(_volumeBarScrubTolerance); } function set volumeBarScrubTolerance(s) { _volumeBarScrubTolerance = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__volumeBarScrubTolerance(_volumeBarScrubTolerance); } //return(volumeBarScrubTolerance); } function get width() { if (_global.isLivePreview) { return(__width); } if (_vp[_visibleVP] != undefined) { __width = _vp[_visibleVP].width; } return(__width); } function set width(w) { setSize(w, height); //return(width); } function get x() { return(_x); } function set x(xpos) { _x = xpos; //return(x); } function get y() { return(_y); } function set y(ypos) { _y = ypos; //return(y); } function createVideoPlayer(index) { if (_global.isLivePreview) { return(undefined); } var _local4 = width; var _local5 = height; _vp[index] = mx.video.VideoPlayer(attachMovie("VideoPlayer", String(index), VP_DEPTH_OFFSET + index)); _vp[index].setSize(_local4, _local5); _topVP = index; _vp[index].autoRewind = _autoRewind; _vp[index].autoSize = _autoSize; _vp[index].bufferTime = _bufferTime; _vp[index].idleTimeout = _idleTimeout; _vp[index].maintainAspectRatio = _aspectRatio; _vp[index].playheadUpdateInterval = _playheadUpdateInterval; _vp[index].progressInterval = _progressInterval; _vp[index].transform = _transform; _vp[index].volume = _volume; if (index == 0) { _vpState[index] = {id:index, isLive:_isLive, isLiveSet:true, totalTime:_totalTime, totalTimeSet:true, autoPlay:_autoPlay}; if (((_contentPath != null) && (_contentPath != undefined)) && (_contentPath != "")) { _vp[index].onEnterFrame = mx.utils.Delegate.create(this, doContentPathConnect); } } else { _vpState[index] = {id:index, isLive:false, isLiveSet:true, totalTime:0, totalTimeSet:true, autoPlay:false}; } _vp[index].addEventListener("resize", this); _vp[index].addEventListener("close", this); _vp[index].addEventListener("complete", this); _vp[index].addEventListener("cuePoint", this); _vp[index].addEventListener("playheadUpdate", this); _vp[index].addEventListener("progress", this); _vp[index].addEventListener("metadataReceived", this); _vp[index].addEventListener("stateChange", this); _vp[index].addEventListener("ready", this); _vp[index].addEventListener("rewind", this); _cpMgr[index] = new mx.video.CuePointManager(this, index); _cpMgr[index].playheadUpdateInterval = _playheadUpdateInterval; } function createUIManager() { _uiMgr = new mx.video.UIManager(this); _uiMgr.__set__visible(false); if ((_backButton != undefined) && (_backButton != null)) { _uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, _backButton); } if ((_bufferingBar != undefined) && (_bufferingBar != null)) { _uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, _bufferingBar); } _uiMgr.__set__bufferingBarHidesAndDisablesOthers(_bufferingBarHides); if ((_forwardButton != undefined) && (_forwardButton != null)) { _uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, _forwardButton); } if ((_pauseButton != undefined) && (_pauseButton != null)) { _uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, _pauseButton); } if ((_playButton != undefined) && (_playButton != null)) { _uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, _playButton); } if ((_playPauseButton != undefined) && (_playPauseButton != null)) { _uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, _playPauseButton); } if ((_stopButton != undefined) && (_stopButton != null)) { _uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, _stopButton); } if ((_seekBar != undefined) && (_seekBar != null)) { _uiMgr.setControl(mx.video.UIManager.SEEK_BAR, _seekBar); } if ((_seekBarInterval != undefined) && (_seekBarInterval != null)) { _uiMgr.__set__seekBarInterval(_seekBarInterval); } if ((_seekBarScrubTolerance != undefined) && (_seekBarScrubTolerance != null)) { _uiMgr.__set__seekBarScrubTolerance(_seekBarScrubTolerance); } if ((_skin != undefined) && (_skin != null)) { _uiMgr.__set__skin(_skin); } if ((_skinAutoHide != undefined) && (_skinAutoHide != null)) { _uiMgr.__set__skinAutoHide(_skinAutoHide); } if ((_muteButton != undefined) && (_muteButton != null)) { _uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, _muteButton); } if ((_volumeBar != undefined) && (_volumeBar != null)) { _uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, _volumeBar); } if ((_volumeBarInterval != undefined) && (_volumeBarInterval != null)) { _uiMgr.__set__volumeBarInterval(_volumeBarInterval); } if ((_volumeBarScrubTolerance != undefined) && (_volumeBarScrubTolerance != null)) { _uiMgr.__set__volumeBarScrubTolerance(_volumeBarScrubTolerance); } } function createLivePreviewMovieClip() { preview_mc = createEmptyMovieClip("preview_mc", 10); preview_mc.createEmptyMovieClip("box_mc", 10); preview_mc.box_mc.beginFill(0); preview_mc.box_mc.moveTo(0, 0); preview_mc.box_mc.lineTo(0, 100); preview_mc.box_mc.lineTo(100, 100); preview_mc.box_mc.lineTo(100, 0); preview_mc.box_mc.lineTo(0, 0); preview_mc.box_mc.endFill(); preview_mc.attachMovie("Icon", "icon_mc", 20); } function doContentPathConnect() { delete _vp[0].onEnterFrame; _vp[0].onEnterFrame = undefined; if (_global.isLivePreview) { return(undefined); } if (_vpState[0].autoPlay && (_firstStreamShown)) { _vp[0].play(_contentPath, _isLive, _totalTime); } else { _vp[0].load(_contentPath, _isLive, _totalTime); } _vpState[0].isLiveSet = false; _vpState[0].totalTimeSet = false; } function showFirstStream() { _firstStreamShown = true; _vp[_visibleVP].visible = true; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } var _local2 = 0; while (_local2 < _vp.length) { if (((_vp[_local2] != undefined) && (_vp[_local2].state == STOPPED)) && (_vpState[_local2].autoPlay)) { _vp[_local2].play(); } _local2++; } } function _scrubStart() { var _local2 = playheadTime; _vp[_visibleVP].volume = 0; dispatchEvent({type:"stateChange", state:SEEKING, playheadTime:_local2, vp:_visibleVP}); dispatchEvent({type:"scrubStart", state:SEEKING, playheadTime:_local2}); } function _scrubFinish() { var _local3 = playheadTime; var _local2 = state; _vp[_visibleVP].volume = _volume; if (_local2 != SEEKING) { dispatchEvent({type:"stateChange", state:_local2, playheadTime:_local3, vp:_visibleVP}); } dispatchEvent({type:"scrubFinish", state:_local2, playheadTime:_local3}); } function skinError(message) { if (_firstStreamReady && (!_firstStreamShown)) { showFirstStream(); } dispatchEvent({type:"skinError", message:message}); } function skinLoaded() { if (_firstStreamReady) { _uiMgr.__set__visible(true); if (!_firstStreamShown) { showFirstStream(); } } else if (((_contentPath == undefined) || (_contentPath == null)) || (_contentPath == "")) { _uiMgr.__set__visible(true); } dispatchEvent({type:"skinLoaded"}); } static var version = "1.0.0.103"; static var DISCONNECTED = "disconnected"; static var STOPPED = "stopped"; static var PLAYING = "playing"; static var PAUSED = "paused"; static var BUFFERING = "buffering"; static var LOADING = "loading"; static var CONNECTION_ERROR = "connectionError"; static var REWINDING = "rewinding"; static var SEEKING = "seeking"; static var ALL = "all"; static var EVENT = "event"; static var NAVIGATION = "navigation"; static var FLV = "flv"; static var ACTIONSCRIPT = "actionscript"; static var VP_DEPTH_OFFSET = 100; static var SEEK_TO_PREV_OFFSET_DEFAULT = 1; }Symbol 22 MovieClip [__Packages.mx.video.VideoPlayer] Frame 0class mx.video.VideoPlayer extends MovieClip { var _state, _cachedState, _bufferState, _cachedPlayheadTime, _metadata, _startingPlay, _invalidSeekTime, _invalidSeekRecovery, _currentPos, _atEnd, _cmdQueue, _readyDispatched, _autoResizeDone, _lastUpdateTime, _sawSeekNotify, _updateTimeIntervalID, _updateTimeInterval, _updateProgressIntervalID, _updateProgressInterval, _idleTimeoutIntervalID, _idleTimeoutInterval, _autoResizeIntervalID, _rtmpDoStopAtEndIntervalID, _rtmpDoSeekIntervalID, _httpDoSeekIntervalID, _httpDoSeekCount, _finishAutoResizeIntervalID, _delayedBufferingIntervalID, _delayedBufferingInterval, _isLive, _autoSize, _aspectRatio, _autoPlay, _autoRewind, _bufferTime, _volume, _sound, __visible, _hiddenForResize, _hiddenForResizeMetadataDelay, _contentPath, _video, _ncMgr, _ns, attachAudio, _prevVideoWidth, _prevVideoHeight, _streamLength, _videoWidth, _videoHeight, dispatchEvent, _x, _y, _visible, _hiddenRewindPlayheadTime, ncMgrClassName, _height, _width; function VideoPlayer () { super(); mx.events.EventDispatcher.initialize(this); _state = DISCONNECTED; _cachedState = _state; _bufferState = BUFFER_EMPTY; _cachedPlayheadTime = 0; _metadata = null; _startingPlay = false; _invalidSeekTime = false; _invalidSeekRecovery = false; _currentPos = 0; _atEnd = false; _cmdQueue = new Array(); _readyDispatched = false; _autoResizeDone = false; _lastUpdateTime = -1; _sawSeekNotify = false; _updateTimeIntervalID = 0; _updateTimeInterval = DEFAULT_UPDATE_TIME_INTERVAL; _updateProgressIntervalID = 0; _updateProgressInterval = DEFAULT_UPDATE_PROGRESS_INTERVAL; _idleTimeoutIntervalID = 0; _idleTimeoutInterval = DEFAULT_IDLE_TIMEOUT_INTERVAL; _autoResizeIntervalID = 0; _rtmpDoStopAtEndIntervalID = 0; _rtmpDoSeekIntervalID = 0; _httpDoSeekIntervalID = 0; _httpDoSeekCount = 0; _finishAutoResizeIntervalID = 0; _delayedBufferingIntervalID = 0; _delayedBufferingInterval = HTTP_DELAYED_BUFFERING_INTERVAL; if (_isLive == undefined) { _isLive = false; } if (_autoSize == undefined) { _autoSize = false; } if (_aspectRatio == undefined) { _aspectRatio = true; } if (_autoPlay == undefined) { _autoPlay = true; } if (_autoRewind == undefined) { _autoRewind = true; } if (_bufferTime == undefined) { _bufferTime = 0.1; } if (_volume == undefined) { _volume = 100; } _sound = new Sound(this); _sound.setVolume(_volume); __visible = true; _hiddenForResize = false; _hiddenForResizeMetadataDelay = 0; _contentPath = ""; } function setSize(w, h) { if (((w == _video._width) && (h == _video._height)) || (_autoSize)) { return(undefined); } _video._width = w; _video._height = h; if (_aspectRatio) { startAutoResize(); } } function setScale(xs, ys) { if (((xs == _video._xscale) && (ys == _video._yscale)) || (_autoSize)) { return(undefined); } _video._xscale = xs; _video._yscale = ys; if (_aspectRatio) { startAutoResize(); } } function play(url, isLive, totalTime) { if ((url != null) && (url != undefined)) { if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(PLAY, url, isLive, totalTime); return(undefined); } execQueuedCmds(); } _autoPlay = true; _load(url, isLive, totalTime); return(undefined); } if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } flushQueuedCmds(); queueCmd(PLAY); setState(LOADING); _cachedState = LOADING; _ncMgr.reconnect(); return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(PLAY); return(undefined); } execQueuedCmds(); } if ((_ns == null) || (_ns == undefined)) { _createStream(); _video.attachVideo(_ns); attachAudio(_ns); } switch (_state) { case BUFFERING : if (_ncMgr.isRTMP()) { _play(0); if (_atEnd) { _atEnd = false; _currentPos = 0; setState(REWINDING); } else if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; } } case PLAYING : return(undefined); case STOPPED : if (_ncMgr.isRTMP()) { if (_isLive) { _play(-1); setState(BUFFERING); } else { _play(0); if (_atEnd) { _atEnd = false; _currentPos = 0; _state = BUFFERING; setState(REWINDING); } else if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; setState(BUFFERING); } else { setState(BUFFERING); } } } else { _pause(false); if (_atEnd) { _atEnd = false; _seek(0); _state = BUFFERING; setState(REWINDING); } else if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(PLAYING); } } break; case PAUSED : _pause(false); if (!_ncMgr.isRTMP()) { if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(PLAYING); } } else { setState(BUFFERING); } } } function load(url, isLive, totalTime) { if ((url == null) || (url == undefined)) { throw new Error("null url sent to VideoPlayer.load"); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(LOAD, url, isLive, totalTime); return(undefined); } execQueuedCmds(); } _autoPlay = false; _load(url, isLive, totalTime); } function _load(url, isLive, totalTime) { _prevVideoWidth = videoWidth; if (_prevVideoWidth == undefined) { _prevVideoWidth = _video.width; if (_prevVideoWidth == undefined) { _prevVideoWidth = 0; } } _prevVideoHeight = videoHeight; if (_prevVideoHeight == undefined) { _prevVideoHeight = _video.height; if (_prevVideoHeight == undefined) { _prevVideoHeight = 0; } } _autoResizeDone = false; _cachedPlayheadTime = 0; _bufferState = BUFFER_EMPTY; _metadata = null; _startingPlay = false; _invalidSeekTime = false; _invalidSeekRecovery = false; _isLive = ((isLive == undefined) ? false : (isLive)); _contentPath = url; _currentPos = 0; _streamLength = totalTime; _atEnd = false; _videoWidth = undefined; _videoHeight = undefined; _readyDispatched = false; _lastUpdateTime = -1; _sawSeekNotify = false; clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = 0; clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; clearInterval(_httpDoSeekIntervalID); _httpDoSeekIntervalID = 0; clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = 0; clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; closeNS(false); if ((_ncMgr == null) || (_ncMgr == undefined)) { createINCManager(); } var _local2 = _ncMgr.connectToURL(_contentPath); setState(LOADING); _cachedState = LOADING; if (_local2) { _createStream(); _setUpStream(); } if (!_ncMgr.isRTMP()) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = setInterval(this, "doUpdateProgress", _updateProgressInterval); } } function pause() { if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(PAUSE); return(undefined); } execQueuedCmds(); } if ((((_state == PAUSED) || (_state == STOPPED)) || (_ns == null)) || (_ns == undefined)) { return(undefined); } _pause(true); setState(PAUSED); } function stop() { if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(STOP); return(undefined); } execQueuedCmds(); } if (((_state == STOPPED) || (_ns == null)) || (_ns == undefined)) { return(undefined); } if (_ncMgr.isRTMP()) { if (_autoRewind && (!_isLive)) { _currentPos = 0; _play(0, 0); _state = STOPPED; setState(REWINDING); } else { closeNS(true); setState(STOPPED); } } else { _pause(true); if (_autoRewind) { _seek(0); _state = STOPPED; setState(REWINDING); } else { setState(STOPPED); } } } function seek(time) { if (_invalidSeekTime) { return(undefined); } if (isNaN(time) || (time < 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } flushQueuedCmds(); queueCmd(SEEK, null, false, time); setState(LOADING); _cachedState = LOADING; _ncMgr.reconnect(); return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(SEEK, null, false, time); return(undefined); } execQueuedCmds(); } if ((_ns == null) || (_ns == undefined)) { _createStream(); _video.attachVideo(_ns); attachAudio(_ns); } if (_atEnd && (time < playheadTime)) { _atEnd = false; } switch (_state) { case PLAYING : _state = BUFFERING; case BUFFERING : case PAUSED : _seek(time); setState(SEEKING); break; case STOPPED : if (_ncMgr.isRTMP()) { _play(0); _pause(true); } _seek(time); _state = PAUSED; setState(SEEKING); } } function close() { closeNS(true); if (((_ncMgr != null) && (_ncMgr != undefined)) && (_ncMgr.isRTMP())) { _ncMgr.close(); } setState(DISCONNECTED); dispatchEvent({type:"close", state:_state, playheadTime:playheadTime}); } function get x() { return(_x); } function set x(xpos) { _x = xpos; //return(x); } function get y() { return(_y); } function set y(ypos) { _y = ypos; //return(y); } function get scaleX() { return(_video._xscale); } function set scaleX(xs) { setScale(xs, scaleY); //return(scaleX); } function get scaleY() { return(_video._yscale); } function set scaleY(ys) { setScale(scaleX, ys); //return(scaleY); } function get width() { return(_video._width); } function set width(w) { setSize(w, _video._height); //return(width); } function get height() { return(_video._height); } function set height(h) { setSize(_video._width, h); //return(height); } function get videoWidth() { if (_readyDispatched) { _videoWidth = _video.width; } return(_videoWidth); } function get videoHeight() { if (_readyDispatched) { _videoHeight = _video.height; } return(_videoHeight); } function get visible() { if (!_hiddenForResize) { __visible = _visible; } return(__visible); } function set visible(v) { __visible = v; if (!_hiddenForResize) { _visible = __visible; } //return(visible); } function get autoSize() { return(_autoSize); } function set autoSize(flag) { if (_autoSize != flag) { _autoSize = flag; if (_autoSize) { startAutoResize(); } } //return(autoSize); } function get maintainAspectRatio() { return(_aspectRatio); } function set maintainAspectRatio(flag) { if (_aspectRatio != flag) { _aspectRatio = flag; if (_aspectRatio && (!_autoSize)) { startAutoResize(); } } //return(maintainAspectRatio); } function get autoRewind() { return(_autoRewind); } function set autoRewind(flag) { _autoRewind = flag; //return(autoRewind); } function get playheadTime() { var _local2 = (((_ns == null) || (_ns == undefined)) ? (_currentPos) : (_ns.time)); if (_metadata.audiodelay != undefined) { _local2 = _local2 - _metadata.audiodelay; if (_local2 < 0) { _local2 = 0; } } return(_local2); } function set playheadTime(position) { seek(position); //return(playheadTime); } function get url() { return(_contentPath); } function get volume() { return(_volume); } function set volume(aVol) { _volume = aVol; if (!_hiddenForResize) { _sound.setVolume(_volume); } //return(volume); } function get transform() { return(_sound.getTransform()); } function set transform(s) { _sound.setTransform(s); //return(transform); } function get isRTMP() { if ((_ncMgr == null) || (_ncMgr == undefined)) { return(undefined); } return(_ncMgr.isRTMP()); } function get isLive() { return(_isLive); } function get state() { return(_state); } function get stateResponsive() { switch (_state) { case DISCONNECTED : case STOPPED : case PLAYING : case PAUSED : case BUFFERING : return(true); } return(false); } function get bytesLoaded() { if (((_ns == null) || (_ns == undefined)) || (_ncMgr.isRTMP())) { return(-1); } return(_ns.bytesLoaded); } function get bytesTotal() { if (((_ns == null) || (_ns == undefined)) || (_ncMgr.isRTMP())) { return(-1); } return(_ns.bytesTotal); } function get totalTime() { return(_streamLength); } function get bufferTime() { return(_bufferTime); } function set bufferTime(aTime) { _bufferTime = aTime; if ((_ns != null) && (_ns != undefined)) { _ns.setBufferTime(_bufferTime); } //return(bufferTime); } function get idleTimeout() { return(_idleTimeoutInterval); } function set idleTimeout(aTime) { _idleTimeoutInterval = aTime; if (_idleTimeoutIntervalID > 0) { clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = setInterval(this, "doIdleTimeout", _idleTimeoutInterval); } //return(idleTimeout); } function get playheadUpdateInterval() { return(_updateTimeInterval); } function set playheadUpdateInterval(aTime) { _updateTimeInterval = aTime; if (_updateTimeIntervalID > 0) { clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = setInterval(this, "doUpdateTime", _updateTimeInterval); } //return(playheadUpdateInterval); } function get progressInterval() { return(_updateProgressInterval); } function set progressInterval(aTime) { _updateProgressInterval = aTime; if (_updateProgressIntervalID > 0) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = setInterval(this, "doUpdateProgress", _updateProgressInterval); } //return(progressInterval); } function get ncMgr() { if ((_ncMgr == null) || (_ncMgr == undefined)) { createINCManager(); } return(_ncMgr); } function get metadata() { return(_metadata); } function doUpdateTime() { var _local2 = playheadTime; switch (_state) { case STOPPED : case PAUSED : case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; } if (_lastUpdateTime != _local2) { dispatchEvent({type:"playheadUpdate", state:_state, playheadTime:_local2}); _lastUpdateTime = _local2; } } function doUpdateProgress() { if ((_ns == null) || (_ns == undefined)) { return(undefined); } if ((_ns.bytesTotal >= 0) && (_ns.bytesTotal >= 0)) { dispatchEvent({type:"progress", bytesLoaded:_ns.bytesLoaded, bytesTotal:_ns.bytesTotal}); } if (((_state == DISCONNECTED) || (_state == CONNECTION_ERROR)) || (_ns.bytesLoaded == _ns.bytesTotal)) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = 0; } } function rtmpOnStatus(info) { if (_state == CONNECTION_ERROR) { return(undefined); } switch (info.code) { case "NetStream.Play.Stop" : if (_startingPlay) { return(undefined); } switch (_state) { case RESIZING : if (_hiddenForResize) { finishAutoResize(); } break; case LOADING : case STOPPED : case PAUSED : break; default : if ((_bufferState == BUFFER_EMPTY) || (_bufferTime <= 0.1)) { _cachedPlayheadTime = playheadTime; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = setInterval(this, "rtmpDoStopAtEnd", RTMP_DO_STOP_AT_END_INTERVAL); } else { if (_bufferState != BUFFER_FULL) { break; } _bufferState = BUFFER_FULL_SAW_PLAY_STOP; } } break; case "NetStream.Buffer.Empty" : switch (_bufferState) { case BUFFER_FULL_SAW_PLAY_STOP : rtmpDoStopAtEnd(true); break; case BUFFER_FULL : if (_state == PLAYING) { setState(BUFFERING); } break; } _bufferState = BUFFER_EMPTY; break; case "NetStream.Buffer.Flush" : case "NetStream.Buffer.Full" : if (_sawSeekNotify && (_state == SEEKING)) { _bufferState = BUFFER_EMPTY; setStateFromCachedState(); doUpdateTime(); } switch (_bufferState) { case BUFFER_EMPTY : if (!_hiddenForResize) { if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) { setState(PLAYING); } else if (_cachedState == BUFFERING) { _cachedState = PLAYING; } } _bufferState = BUFFER_FULL; break; default : } break; case "NetStream.Pause.Notify" : if ((_state == RESIZING) && (_hiddenForResize)) { finishAutoResize(); } break; case "NetStream.Play.Start" : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; _bufferState = BUFFER_EMPTY; if (_startingPlay) { _startingPlay = false; _cachedPlayheadTime = playheadTime; } else if (_state == PLAYING) { setState(BUFFERING); } break; case "NetStream.Play.Reset" : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; if (_state == REWINDING) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; if ((playheadTime == 0) || (playheadTime < _cachedPlayheadTime)) { setStateFromCachedState(); } else { _cachedPlayheadTime = playheadTime; _rtmpDoSeekIntervalID = setInterval(this, "rtmpDoSeek", RTMP_DO_SEEK_INTERVAL); } } break; case "NetStream.Seek.Notify" : if (playheadTime != _cachedPlayheadTime) { setStateFromCachedState(); doUpdateTime(); } else { _sawSeekNotify = true; if (_rtmpDoSeekIntervalID == 0) { _rtmpDoSeekIntervalID = setInterval(this, "rtmpDoSeek", RTMP_DO_SEEK_INTERVAL); } } break; case "Netstream.Play.UnpublishNotify" : break; case "Netstream.Play.PublishNotify" : break; case "NetStream.Play.StreamNotFound" : if (!_ncMgr.connectAgain()) { setState(CONNECTION_ERROR); } break; case "NetStream.Play.Failed" : case "NetStream.Failed" : setState(CONNECTION_ERROR); } } function httpOnStatus(info) { switch (info.code) { case "NetStream.Play.Stop" : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; if (_invalidSeekTime) { _invalidSeekTime = false; _invalidSeekRecovery = true; setState(_cachedState); seek(playheadTime); } else { switch (_state) { case PLAYING : case BUFFERING : case SEEKING : httpDoStopAtEnd(); } } break; case "NetStream.Seek.InvalidTime" : if (_invalidSeekRecovery) { _invalidSeekTime = false; _invalidSeekRecovery = false; setState(_cachedState); seek(0); } else { _invalidSeekTime = true; } break; case "NetStream.Buffer.Empty" : _bufferState = BUFFER_EMPTY; if (_state == PLAYING) { clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = setInterval(this, "doDelayedBuffering", _delayedBufferingInterval); } break; case "NetStream.Buffer.Full" : case "NetStream.Buffer.Flush" : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; _bufferState = BUFFER_FULL; if (!_hiddenForResize) { if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) { setState(PLAYING); } else if (_cachedState == BUFFERING) { _cachedState = PLAYING; } } break; case "NetStream.Seek.Notify" : _invalidSeekRecovery = false; switch (_state) { case SEEKING : case REWINDING : if (_httpDoSeekIntervalID != 0) { break; } _httpDoSeekCount = 0; _httpDoSeekIntervalID = setInterval(this, "httpDoSeek", HTTP_DO_SEEK_INTERVAL); } break; case "NetStream.Play.StreamNotFound" : setState(CONNECTION_ERROR); } } function ncConnected() { if ((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { setState(CONNECTION_ERROR); } else { _createStream(); _setUpStream(); } } function ncReconnected() { if ((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { setState(CONNECTION_ERROR); } else { _ns = null; _state = STOPPED; execQueuedCmds(); } } function onMetaData(info) { if (_metadata != null) { return(undefined); } _metadata = info; if (((_streamLength == undefined) || (_streamLength == null)) || (_streamLength <= 0)) { _streamLength = info.duration; } if (isNaN(_videoWidth) || (_videoWidth <= 0)) { _videoWidth = info.width; } if (isNaN(_videoHeight) || (_videoHeight <= 0)) { _videoHeight = info.height; } dispatchEvent({type:"metadataReceived", info:info}); } function onCuePoint(info) { if ((!_hiddenForResize) || ((!isNaN(_hiddenRewindPlayheadTime)) && (playheadTime < _hiddenRewindPlayheadTime))) { dispatchEvent({type:"cuePoint", info:info}); } } function setState(s) { if (s == _state) { return(undefined); } _hiddenRewindPlayheadTime = undefined; _cachedState = _state; _cachedPlayheadTime = playheadTime; _state = s; var _local2 = _state; dispatchEvent({type:"stateChange", state:_local2, playheadTime:playheadTime}); if (!_readyDispatched) { switch (_local2) { case STOPPED : case PLAYING : case PAUSED : case BUFFERING : _readyDispatched = true; dispatchEvent({type:"ready", state:_local2, playheadTime:playheadTime}); } } if (!(_cachedState === REWINDING)) { } else { dispatchEvent({type:"rewind", state:_local2, playheadTime:playheadTime}); if (_ncMgr.isRTMP() && (_local2 == STOPPED)) { closeNS(); } } switch (_local2) { case STOPPED : case PAUSED : if (_ncMgr.isRTMP() && (_idleTimeoutIntervalID == 0)) { _idleTimeoutIntervalID = setInterval(this, "doIdleTimeout", _idleTimeoutInterval); } break; case SEEKING : case REWINDING : _bufferState = BUFFER_EMPTY; case PLAYING : case BUFFERING : if (_updateTimeIntervalID == 0) { _updateTimeIntervalID = setInterval(this, "doUpdateTime", _updateTimeInterval); } case LOADING : case RESIZING : clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; } execQueuedCmds(); } function setStateFromCachedState() { switch (_cachedState) { case PLAYING : case PAUSED : setState(_cachedState); break; case BUFFERING : if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(_cachedState); } break; default : setState(STOPPED); } } function createINCManager() { if ((ncMgrClassName == null) || (ncMgrClassName == undefined)) { ncMgrClassName = DEFAULT_INCMANAGER; } var ncMgrConstructor = eval (this.ncMgrClassName); _ncMgr = new ncMgrConstructor(); _ncMgr.setVideoPlayer(this); } function rtmpDoStopAtEnd(force) { if (_rtmpDoStopAtEndIntervalID > 0) { switch (_state) { case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; return(undefined); } if (force || (_cachedPlayheadTime == playheadTime)) { clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; } else { _cachedPlayheadTime = playheadTime; return(undefined); } } _bufferState = BUFFER_EMPTY; _atEnd = true; setState(STOPPED); if (_state != STOPPED) { return(undefined); } doUpdateTime(); if (_state != STOPPED) { return(undefined); } dispatchEvent({type:"complete", state:_state, playheadTime:playheadTime}); if (_state != STOPPED) { return(undefined); } if ((_autoRewind && (!_isLive)) && (playheadTime != 0)) { _atEnd = false; _currentPos = 0; _play(0, 0); setState(REWINDING); } else { closeNS(); } } function rtmpDoSeek() { if ((_state != REWINDING) && (_state != SEEKING)) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; _sawSeekNotify = false; } else if (playheadTime != _cachedPlayheadTime) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; _sawSeekNotify = false; setStateFromCachedState(); doUpdateTime(); } } function httpDoStopAtEnd() { _atEnd = true; if (((_streamLength == undefined) || (_streamLength == null)) || (_streamLength <= 0)) { _streamLength = _ns.time; } _pause(true); setState(STOPPED); if (_state != STOPPED) { return(undefined); } doUpdateTime(); if (_state != STOPPED) { return(undefined); } dispatchEvent({type:"complete", state:_state, playheadTime:playheadTime}); if (_state != STOPPED) { return(undefined); } if (_autoRewind) { _atEnd = false; _pause(true); _seek(0); setState(REWINDING); } } function httpDoSeek() { var _local2 = (_state == REWINDING) || (_state == SEEKING); if ((_local2 && (_httpDoSeekCount < HTTP_DO_SEEK_MAX_COUNT)) && ((_cachedPlayheadTime == playheadTime) || (_invalidSeekTime))) { _httpDoSeekCount++; return(undefined); } _httpDoSeekCount = 0; clearInterval(_httpDoSeekIntervalID); _httpDoSeekIntervalID = 0; if (!_local2) { return(undefined); } setStateFromCachedState(); if (_invalidSeekTime) { _invalidSeekTime = false; _invalidSeekRecovery = true; seek(playheadTime); } else { doUpdateTime(); } } function closeNS(updateCurrentPos) { if ((_ns != null) && (_ns != undefined)) { if (updateCurrentPos) { clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; doUpdateTime(); _currentPos = _ns.time; } delete _ns.onStatus; _ns.onStatus = null; _ns.close(); _ns = null; } } function doDelayedBuffering() { switch (_state) { case LOADING : case RESIZING : break; case PLAYING : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; setState(BUFFERING); break; default : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; } } function _pause(doPause) { _ns.pause(doPause); } function _play() { _startingPlay = true; switch (arguments.length) { case 0 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : 0), -1); break; case 1 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : (arguments[0])), -1); break; case 2 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : (arguments[0])), arguments[1]); break; default : throw new Error("bad args to _play"); } } function _seek(time) { if ((_metadata.audiodelay != undefined) && ((time + _metadata.audiodelay) < _streamLength)) { time = time + _metadata.audiodelay; } _ns.seek(time); _invalidSeekTime = false; _bufferState = BUFFER_EMPTY; _sawSeekNotify = false; } function isXnOK() { if (_state == LOADING) { return(true); } if (_state == CONNECTION_ERROR) { return(false); } if (_state != DISCONNECTED) { if (((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) || (!_ncMgr.getNetConnection().isConnected)) { setState(DISCONNECTED); return(false); } return(true); } return(false); } function startAutoResize() { switch (_state) { case DISCONNECTED : case CONNECTION_ERROR : return(undefined); } _autoResizeDone = false; if ((stateResponsive && (_videoWidth != undefined)) && (_videoHeight != undefined)) { doAutoResize(); } else { clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = setInterval(this, "doAutoResize", AUTO_RESIZE_INTERVAL); } } function doAutoResize() { if (_autoResizeIntervalID > 0) { switch (_state) { case RESIZING : case LOADING : break; case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; return(undefined); default : if (stateResponsive) { break; } return(undefined); } if ((((_video.width != _prevVideoWidth) || (_video.height != _prevVideoHeight)) || (_bufferState >= BUFFER_FULL)) || (_ns.time > AUTO_RESIZE_PLAYHEAD_TIMEOUT)) { if ((_hiddenForResize && (_metadata == null)) && (_hiddenForResizeMetadataDelay < AUTO_RESIZE_METADATA_DELAY_MAX)) { _hiddenForResizeMetadataDelay++; return(undefined); } _videoWidth = _video.width; _videoHeight = _video.height; clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; } else { return(undefined); } } if (((!_autoSize) && (!_aspectRatio)) || (_autoResizeDone)) { setState(_cachedState); return(undefined); } _autoResizeDone = true; if (_autoSize) { _video._width = _videoWidth; _video._height = _videoHeight; } else if (_aspectRatio) { var _local3 = (_videoWidth * height) / _videoHeight; var _local2 = (_videoHeight * width) / _videoWidth; if (_local2 < height) { _video._height = _local2; } else if (_local3 < width) { _video._width = _local3; } } if (_hiddenForResize) { _hiddenRewindPlayheadTime = playheadTime; if (_state == LOADING) { _cachedState = PLAYING; } if (!_ncMgr.isRTMP()) { _pause(true); _seek(0); clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = setInterval(this, "finishAutoResize", FINISH_AUTO_RESIZE_INTERVAL); } else if (!_isLive) { _currentPos = 0; _play(0, 0); setState(RESIZING); } else if (_autoPlay) { clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = setInterval(this, "finishAutoResize", FINISH_AUTO_RESIZE_INTERVAL); } else { finishAutoResize(); } } else { dispatchEvent({type:"resize", x:_x, y:_y, width:_width, height:_height}); } } function finishAutoResize() { clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = 0; if (stateResponsive) { return(undefined); } _visible = __visible; _sound.setVolume(_volume); _hiddenForResize = false; dispatchEvent({type:"resize", x:_x, y:_y, width:_width, height:_height}); if (_autoPlay) { if (_ncMgr.isRTMP()) { if (!_isLive) { _currentPos = 0; _play(0); } if (_state == RESIZING) { setState(LOADING); _cachedState = PLAYING; } } else { _pause(false); _cachedState = PLAYING; } } else { setState(STOPPED); } } function _createStream() { _ns = new NetStream(_ncMgr.getNetConnection()); _ns.mc = this; if (_ncMgr.isRTMP()) { _ns.onStatus = function (info) { this.mc.rtmpOnStatus(info); }; } else { _ns.onStatus = function (info) { this.mc.httpOnStatus(info); }; } _ns.onMetaData = function (info) { this.mc.onMetaData(info); }; _ns.onCuePoint = function (info) { this.mc.onCuePoint(info); }; _ns.setBufferTime(_bufferTime); } function _setUpStream() { _video.attachVideo(_ns); attachAudio(_ns); if ((!isNaN(_ncMgr.getStreamLength())) && (_ncMgr.getStreamLength() >= 0)) { _streamLength = _ncMgr.getStreamLength(); } if ((!isNaN(_ncMgr.getStreamWidth())) && (_ncMgr.getStreamWidth() >= 0)) { _videoWidth = _ncMgr.getStreamWidth(); } else { _videoWidth = undefined; } if ((!isNaN(_ncMgr.getStreamHeight())) && (_ncMgr.getStreamHeight() >= 0)) { _videoHeight = _ncMgr.getStreamHeight(); } else { _videoHeight = undefined; } if (((_autoSize || (_aspectRatio)) && (_videoWidth != undefined)) && (_videoHeight != undefined)) { _prevVideoWidth = undefined; _prevVideoHeight = undefined; doAutoResize(); } if (((!_autoSize) && (!_aspectRatio)) || ((_videoWidth != undefined) && (_videoHeight != undefined))) { if (_autoPlay) { if (!_ncMgr.isRTMP()) { _cachedState = BUFFERING; _play(); } else if (_isLive) { _cachedState = BUFFERING; _play(-1); } else { _cachedState = BUFFERING; _play(0); } } else { _cachedState = STOPPED; if (_ncMgr.isRTMP()) { _play(0, 0); } else { _play(); _pause(true); _seek(0); } } } else { _hiddenForResize = true; _hiddenForResizeMetadataDelay = 0; __visible = _visible; _visible = false; _volume = _sound.getVolume(); _sound.setVolume(0); _play(0); if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; } } clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = setInterval(this, "doAutoResize", AUTO_RESIZE_INTERVAL); } function doIdleTimeout() { clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; close(); } function flushQueuedCmds() { while (_cmdQueue.length > 0) { _cmdQueue.pop(); } } function execQueuedCmds() { while (((_cmdQueue.length > 0) && (stateResponsive || (_state == CONNECTION_ERROR))) && (((_cmdQueue[0].url != null) && (_cmdQueue[0].url != undefined)) || ((_state != DISCONNECTED) && (_state != CONNECTION_ERROR)))) { var _local2 = _cmdQueue.shift(); _cachedState = _state; _state = EXEC_QUEUED_CMD; switch (_local2.type) { case PLAY : play(_local2.url, _local2.isLive, _local2.time); break; case LOAD : load(_local2.url, _local2.isLive, _local2.time); break; case PAUSE : pause(); break; case STOP : stop(); break; case SEEK : seek(_local2.time); } } } function queueCmd(type, url, isLive, time) { _cmdQueue.push({type:type, url:url, isLive:false, time:time}); } static var version = "1.0.0.103"; static var DISCONNECTED = "disconnected"; static var STOPPED = "stopped"; static var PLAYING = "playing"; static var PAUSED = "paused"; static var BUFFERING = "buffering"; static var LOADING = "loading"; static var CONNECTION_ERROR = "connectionError"; static var REWINDING = "rewinding"; static var SEEKING = "seeking"; static var RESIZING = "resizing"; static var EXEC_QUEUED_CMD = "execQueuedCmd"; static var BUFFER_EMPTY = "bufferEmpty"; static var BUFFER_FULL = "bufferFull"; static var BUFFER_FULL_SAW_PLAY_STOP = "bufferFullSawPlayStop"; static var DEFAULT_INCMANAGER = "mx.video.NCManager"; static var DEFAULT_UPDATE_TIME_INTERVAL = 250; static var DEFAULT_UPDATE_PROGRESS_INTERVAL = 250; static var DEFAULT_IDLE_TIMEOUT_INTERVAL = 300000; static var AUTO_RESIZE_INTERVAL = 100; static var AUTO_RESIZE_PLAYHEAD_TIMEOUT = 0.5; static var AUTO_RESIZE_METADATA_DELAY_MAX = 5; static var FINISH_AUTO_RESIZE_INTERVAL = 250; static var RTMP_DO_STOP_AT_END_INTERVAL = 500; static var RTMP_DO_SEEK_INTERVAL = 100; static var HTTP_DO_SEEK_INTERVAL = 250; static var HTTP_DO_SEEK_MAX_COUNT = 4; static var CLOSE_NS_INTERVAL = 0.25; static var HTTP_DELAYED_BUFFERING_INTERVAL = 100; static var PLAY = 0; static var LOAD = 1; static var PAUSE = 2; static var STOP = 3; static var SEEK = 4; }Symbol 23 MovieClip [__Packages.mx.video.INCManager] Frame 0interface mx.video.INCManager { }Symbol 24 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0class 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 25 MovieClip [__Packages.mx.video.VideoError] Frame 0class mx.video.VideoError extends Error { var _code, message, name; function VideoError (errCode, msg) { super(); _code = errCode; message = ((("" + errCode) + ": ") + ERROR_MSG[errCode - BASE_ERROR_CODE]) + ((msg == undefined) ? "" : (": " + msg)); name = "VideoError"; } function get code() { return(_code); } static var version = "1.0.0.103"; static var BASE_ERROR_CODE = 1000; static var NO_CONNECTION = 1000; static var NO_CUE_POINT_MATCH = 1001; static var ILLEGAL_CUE_POINT = 1002; static var INVALID_SEEK = 1003; static var INVALID_CONTENT_PATH = 1004; static var INVALID_XML = 1005; static var NO_BITRATE_MATCH = 1006; static var DELETE_DEFAULT_PLAYER = 1007; static var ERROR_MSG = ["Unable to make connection to server or to find FLV on server", "No matching cue point found", "Illegal cue point", "Invalid seek", "Invalid contentPath", "Invalid xml", "No bitrate match, must be no default flv", "Cannot delete default VideoPlayer"]; }Symbol 26 MovieClip [__Packages.mx.video.UIManager] Frame 0class mx.video.UIManager { var _vc, _skin, _skinAutoHide, _skinReady, __visible, _bufferingBarHides, _controlsEnabled, _lastScrubPos, _lastVolumePos, cachedSoundLevel, _isMuted, controls, customClips, skin_mc, skinLoader, layout_mc, border_mc, _seekBarIntervalID, _seekBarInterval, _seekBarScrubTolerance, _volumeBarIntervalID, _volumeBarInterval, _volumeBarScrubTolerance, _bufferingDelayIntervalID, _bufferingDelayInterval, _bufferingOn, _skinAutoHideIntervalID, _progressPercent, placeholderLeft, placeholderRight, placeholderTop, placeholderBottom, videoLeft, videoRight, videoTop, videoBottom, _playAfterScrub; function UIManager (vc) { _vc = vc; _skin = undefined; _skinAutoHide = false; _skinReady = true; __visible = true; _bufferingBarHides = false; _controlsEnabled = true; _lastScrubPos = 0; _lastVolumePos = 0; cachedSoundLevel = _vc.volume; _isMuted = false; controls = new Array(); customClips = undefined; skin_mc = undefined; skinLoader = undefined; layout_mc = undefined; border_mc = undefined; _seekBarIntervalID = 0; _seekBarInterval = SEEK_BAR_INTERVAL_DEFAULT; _seekBarScrubTolerance = SEEK_BAR_SCRUB_TOLERANCE_DEFAULT; _volumeBarIntervalID = 0; _volumeBarInterval = VOLUME_BAR_INTERVAL_DEFAULT; _volumeBarScrubTolerance = VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT; _bufferingDelayIntervalID = 0; _bufferingDelayInterval = BUFFERING_DELAY_INTERVAL_DEFAULT; _bufferingOn = false; _skinAutoHideIntervalID = 0; _vc.addEventListener("metadataReceived", this); _vc.addEventListener("playheadUpdate", this); _vc.addEventListener("progress", this); _vc.addEventListener("stateChange", this); _vc.addEventListener("ready", this); _vc.addEventListener("resize", this); _vc.addEventListener("volumeUpdate", this); } function handleEvent(e) { if ((e.vp != undefined) && (e.vp != _vc.__get__visibleVideoPlayerIndex())) { return(undefined); } var _local9 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (e.type == "stateChange") { if (e.state == mx.video.FLVPlayback.BUFFERING) { if (!_bufferingOn) { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = setInterval(this, "doBufferingDelay", _bufferingDelayInterval); } } else { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = 0; _bufferingOn = false; } if (e.state == mx.video.FLVPlayback.LOADING) { _progressPercent = (_vc.getVideoPlayer(e.vp).__get__isRTMP() ? 100 : 0); var _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, e.state); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } } else if ((e.type == "ready") || (e.type == "metadataReceived")) { var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, _vc.__get__state()); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } if (_vc.getVideoPlayer(e.vp).__get__isRTMP()) { _progressPercent = 100; _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } } else if (e.type == "resize") { layoutSkin(); setupSkinAutoHide(); } else if (e.type == "volumeUpdate") { if (_isMuted && (e.volume > 0)) { _isMuted = false; setEnabledAndVisibleForState(MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_OFF_BUTTON]); setEnabledAndVisibleForState(MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_ON_BUTTON]); } var _local5 = controls[VOLUME_BAR]; _local5.percentage = (_isMuted ? (cachedSoundLevel) : (e.volume)); if (_local5.percentage < 0) { _local5.percentage = 0; } else if (_local5.percentage > 100) { _local5.percentage = 100; } positionHandle(VOLUME_BAR); } else if ((e.type == "playheadUpdate") && (controls[SEEK_BAR] != undefined)) { if ((!_vc.__get__isLive()) && (_vc.__get__totalTime() > 0)) { var _local6 = (e.playheadTime / _vc.__get__totalTime()) * 100; if (_local6 < 0) { _local6 = 0; } else if (_local6 > 100) { _local6 = 100; } var _local10 = controls[SEEK_BAR]; _local10.percentage = _local6; positionHandle(SEEK_BAR); } } else if (e.type == "progress") { _progressPercent = ((e.bytesTotal <= 0) ? 100 : ((e.bytesLoaded / e.bytesTotal) * 100)); var _local7 = _vc._vpState[e.vp].minProgressPercent; if ((!isNaN(_local7)) && (_local7 > _progressPercent)) { _progressPercent = _local7; } if (_vc.__get__totalTime() > 0) { var _local8 = (_vc.__get__playheadTime() / _vc.__get__totalTime()) * 100; if (_local8 > _progressPercent) { _progressPercent = _local8; _vc._vpState[e.vp].minProgressPercent = _progressPercent; } } var _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } _vc.__set__activeVideoPlayerIndex(_local9); } function get bufferingBarHidesAndDisablesOthers() { return(_bufferingBarHides); } function set bufferingBarHidesAndDisablesOthers(b) { _bufferingBarHides = b; //return(bufferingBarHidesAndDisablesOthers); } function get controlsEnabled() { return(_controlsEnabled); } function set controlsEnabled(flag) { if (_controlsEnabled == flag) { return; } _controlsEnabled = flag; var _local2 = 0; while (_local2 < NUM_BUTTONS) { if (controls[_local2] == undefined) { } else { controls[_local2].releaseCapture(); controls[_local2].enabled = _controlsEnabled && (controls[_local2].myEnabled); skinButtonControl(controls[_local2]); } _local2++; } //return(controlsEnabled); } function get skin() { return(_skin); } function set skin(s) { if (s == _skin) { return; } if (_skin != undefined) { removeSkin(); } _skin = s; _skinReady = ((_skin == undefined) || (_skin == null)) || (_skin == ""); if (!_skinReady) { downloadSkin(); } //return(skin); } function get skinAutoHide() { return(_skinAutoHide); } function set skinAutoHide(b) { if (b == _skinAutoHide) { return; } _skinAutoHide = b; setupSkinAutoHide(); //return(skinAutoHide); } function get skinReady() { return(_skinReady); } function get seekBarInterval() { return(_seekBarInterval); } function set seekBarInterval(s) { if (_seekBarInterval == s) { return; } _seekBarInterval = s; if (_seekBarIntervalID > 0) { clearInterval(_seekBarIntervalID); _seekBarIntervalID = setInterval(this, "seekBarListener", _seekBarInterval, false); } //return(seekBarInterval); } function get volumeBarInterval() { return(_volumeBarInterval); } function set volumeBarInterval(s) { if (_volumeBarInterval == s) { return; } _volumeBarInterval = s; if (_volumeBarIntervalID > 0) { clearInterval(_volumeBarIntervalID); _volumeBarIntervalID = setInterval(this, "volumeBarListener", _volumeBarInterval, false); } //return(volumeBarInterval); } function get bufferingDelayInterval() { return(_bufferingDelayInterval); } function set bufferingDelayInterval(s) { if (_bufferingDelayInterval == s) { return; } _bufferingDelayInterval = s; if (_bufferingDelayIntervalID > 0) { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = setInterval(this, "doBufferingDelay", _bufferingDelayIntervalID); } //return(bufferingDelayInterval); } function get volumeBarScrubTolerance() { return(_volumeBarScrubTolerance); } function set volumeBarScrubTolerance(s) { _volumeBarScrubTolerance = s; //return(volumeBarScrubTolerance); } function get seekBarScrubTolerance() { return(_seekBarScrubTolerance); } function set seekBarScrubTolerance(s) { _seekBarScrubTolerance = s; //return(seekBarScrubTolerance); } function get visible() { return(__visible); } function set visible(v) { if (__visible == v) { return; } __visible = v; if (!__visible) { skin_mc._visible = false; } else { setupSkinAutoHide(); } //return(visible); } function getControl(index) { return(controls[index]); } function setControl(index, s) { if (s == null) { s = undefined; } if (s == controls[index]) { return(undefined); } switch (index) { case PAUSE_BUTTON : case PLAY_BUTTON : resetPlayPause(); break; case PLAY_PAUSE_BUTTON : if (s._parent != layout_mc) { resetPlayPause(); setControl(PAUSE_BUTTON, s.pause_mc); setControl(PLAY_BUTTON, s.play_mc); } break; case MUTE_BUTTON : if (s._parent == layout_mc) { break; } setControl(MUTE_ON_BUTTON, s.on_mc); setControl(MUTE_OFF_BUTTON, s.off_mc); } if (index >= NUM_BUTTONS) { controls[index] = s; switch (index) { case SEEK_BAR : addBarControl(SEEK_BAR); break; case VOLUME_BAR : addBarControl(VOLUME_BAR); controls[VOLUME_BAR].percentage = _vc.volume; break; case BUFFERING_BAR : controls[BUFFERING_BAR].uiMgr = this; controls[BUFFERING_BAR].controlIndex = BUFFERING_BAR; if (controls[BUFFERING_BAR]._parent == skin_mc) { finishAddBufferingBar(); } else { controls[BUFFERING_BAR].onEnterFrame = function () { this.uiMgr.finishAddBufferingBar(); }; } } setEnabledAndVisibleForState(index, _vc.__get__state()); } else { removeButtonControl(index); controls[index] = s; addButtonControl(index); } } function resetPlayPause() { if (controls[PLAY_PAUSE_BUTTON] == undefined) { return(undefined); } var _local2 = PAUSE_BUTTON; while (_local2 <= PLAY_BUTTON) { removeButtonControl(_local2); _local2++; } controls[PLAY_PAUSE_BUTTON] = undefined; } function addButtonControl(index) { var _local3 = controls[index]; if (_local3 == undefined) { return(undefined); } var _local5 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); _local3.id = index; _local3.state = UP_STATE; _local3.uiMgr = this; setEnabledAndVisibleForState(index, _vc.__get__state()); _local3.onRollOver = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.skinButtonControl(this); }; _local3.onRollOut = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; if ((index == SEEK_BAR_HANDLE) || (index == VOLUME_BAR_HANDLE)) { _local3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; _local3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; _local3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; } else { _local3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.skinButtonControl(this); }; _local3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; _local3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; } if (_local3._parent == skin_mc) { skinButtonControl(_local3); } else { _local3.onEnterFrame = function () { this.uiMgr.skinButtonControl(this); }; } _vc.__set__activeVideoPlayerIndex(_local5); } function removeButtonControl(index) { if (controls[index] == undefined) { return(undefined); } controls[index].uiMgr = undefined; controls[index].onRollOver = undefined; controls[index].onRollOut = undefined; controls[index].onPress = undefined; controls[index].onRelease = undefined; controls[index].onReleaseOutside = undefined; controls[index] = undefined; } function downloadSkin() { if (skinLoader == undefined) { skinLoader = new MovieClipLoader(); skinLoader.addListener(this); } if (skin_mc == undefined) { skin_mc = _vc.createEmptyMovieClip("skin_mc", _vc.getNextHighestDepth()); } skin_mc._visible = false; skin_mc._x = Stage.width + 100; skin_mc._y = Stage.height + 100; skinLoader.loadClip(_skin, skin_mc); } function onLoadError(target_mc, errorCode) { _skinReady = true; _vc.skinError("Unable to load skin swf"); } function onLoadInit() { try { skin_mc._visible = false; skin_mc._x = 0; skin_mc._y = 0; layout_mc = skin_mc.layout_mc; if (layout_mc == undefined) { throw new Error("No layout_mc"); } layout_mc._visible = false; customClips = new Array(); setCustomClips("bg"); if (layout_mc.playpause_mc != undefined) { setSkin(PLAY_PAUSE_BUTTON, layout_mc.playpause_mc); } else { setSkin(PAUSE_BUTTON, layout_mc.pause_mc); setSkin(PLAY_BUTTON, layout_mc.play_mc); } setSkin(STOP_BUTTON, layout_mc.stop_mc); setSkin(BACK_BUTTON, layout_mc.back_mc); setSkin(FORWARD_BUTTON, layout_mc.forward_mc); setSkin(MUTE_BUTTON, layout_mc.volumeMute_mc); setSkin(SEEK_BAR, layout_mc.seekBar_mc); setSkin(VOLUME_BAR, layout_mc.volumeBar_mc); setSkin(BUFFERING_BAR, layout_mc.bufferingBar_mc); setCustomClips("fg"); layoutSkin(); setupSkinAutoHide(); skin_mc._visible = __visible; _skinReady = true; _vc.skinLoaded(); var _local4 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local3 = _vc.__get__state(); var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, _local3); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } _vc.__set__activeVideoPlayerIndex(_local4); } catch(err:Error) { _vc.skinError(err.message); removeSkin(); } } function layoutSkin() { if (layout_mc == undefined) { return(undefined); } var _local3 = layout_mc.video_mc; if (_local3 == undefined) { throw new Error("No layout_mc.video_mc"); } placeholderLeft = _local3._x; placeholderRight = _local3._x + _local3._width; placeholderTop = _local3._y; placeholderBottom = _local3._y + _local3._height; videoLeft = 0; videoRight = _vc.width; videoTop = 0; videoBottom = _vc.height; if (((!isNaN(layout_mc.minWidth)) && (layout_mc.minWidth > 0)) && (layout_mc.minWidth > videoRight)) { videoLeft = videoLeft - ((layout_mc.minWidth - videoRight) / 2); videoRight = layout_mc.minWidth + videoLeft; } if (((!isNaN(layout_mc.minHeight)) && (layout_mc.minHeight > 0)) && (layout_mc.minHeight > videoBottom)) { videoTop = videoTop - ((layout_mc.minHeight - videoBottom) / 2); videoBottom = layout_mc.minHeight + videoTop; } var _local2; _local2 = 0; while (_local2 < customClips.length) { layoutControl(customClips[_local2]); _local2++; } _local2 = 0; while (_local2 < NUM_CONTROLS) { layoutControl(controls[_local2]); _local2++; } } function layoutControl(ctrl) { if (ctrl == undefined) { return(undefined); } if (ctrl.skin.anchorRight) { if (ctrl.skin.anchorLeft) { ctrl._x = (ctrl.skin._x - placeholderLeft) + videoLeft; ctrl._width = (((ctrl.skin._x + ctrl.skin._width) - placeholderRight) + videoRight) - ctrl._x; if (ctrl.origWidth != undefined) { ctrl.origWidth = undefined; } } else { ctrl._x = (ctrl.skin._x - placeholderRight) + videoRight; } } else { ctrl._x = (ctrl.skin._x - placeholderLeft) + videoLeft; } if (ctrl.skin.anchorTop) { if (ctrl.skin.anchorBottom) { ctrl._y = (ctrl.skin._y - placeholderTop) + videoTop; ctrl._height = (((ctrl.skin._y + ctrl.skin._height) - placeholderBottom) + videoBottom) - ctrl._y; if (ctrl.origHeight != undefined) { ctrl.origHeight = undefined; } } else { ctrl._y = (ctrl.skin._y - placeholderTop) + videoTop; } } else { ctrl._y = (ctrl.skin._y - placeholderBottom) + videoBottom; } switch (ctrl.controlIndex) { case SEEK_BAR : case VOLUME_BAR : if (ctrl.progress_mc != undefined) { if (_progressPercent == undefined) { _progressPercent = (_vc.__get__isRTMP() ? 100 : 0); } positionBar(ctrl, "progress", _progressPercent); } positionHandle(ctrl.controlIndex); break; case BUFFERING_BAR : if (ctrl.fill_mc == undefined) { break; } positionMaskedFill(ctrl, ctrl.fill_mc, 100); } if (ctrl.layoutSelf != undefined) { ctrl.layoutSelf(); } } function removeSkin() { if (skin_mc != undefined) { var _local2 = 0; while (_local2 < NUM_BUTTONS) { removeButtonControl(_local2); _local2++; } _local2 = NUM_BUTTONS; while (_local2 < NUM_CONTROLS) { controls[_local2] = undefined; _local2++; } skin_mc.unloadMovie(); layout_mc = undefined; border_mc = undefined; } } function setCustomClips(prefix) { var _local4 = 1; while (true) { var _local2 = layout_mc[(prefix + (_local4++)) + "_mc"]; if (_local2 == undefined) { break; } var _local3 = _local2.mc; if (_local3 == undefined) { _local3 = _local2._parent._parent[_local2._name]; } if (_local3 == undefined) { throw new Error("Bad clip in skin: " + _local2); } _local3.skin = _local2; customClips.push(_local3); if ((prefix == "bg") && (_local4 == 2)) { border_mc = _local3; } } } function setSkin(index, s) { if (s == undefined) { return(undefined); } var _local2 = s.mc; if (_local2 == undefined) { _local2 = s._parent._parent[s._name]; } if (_local2 == undefined) { throw new Error("Bad clip in skin: " + s); } _local2.skin = s; if (index < NUM_BUTTONS) { setupSkinStates(_local2); } else { switch (index) { case PLAY_PAUSE_BUTTON : setupSkinStates(_local2.play_mc); setupSkinStates(_local2.pause_mc); break; case MUTE_BUTTON : setupSkinStates(_local2.on_mc); setupSkinStates(_local2.off_mc); break; case SEEK_BAR : case VOLUME_BAR : var _local4 = ((index == SEEK_BAR) ? "seekBar" : "volumeBar"); if (_local2.handle_mc == undefined) { _local2.handle_mc = _local2.skin.seekBarHandle_mc; if (_local2.handle_mc == undefined) { _local2.handle_mc = _local2.skin._parent._parent[_local4 + "Handle_mc"]; } } if (_local2.progress_mc == undefined) { _local2.progress_mc = _local2.skin.progress_mc; if (_local2.progress_mc == undefined) { _local2.progress_mc = _local2.skin._parent._parent[_local4 + "Progress_mc"]; } } if (_local2.fullness_mc == undefined) { _local2.fullness_mc = _local2.skin.fullness_mc; if (_local2.fullness_mc == undefined) { _local2.fullness_mc = _local2.skin._parent._parent[_local4 + "Fullness_mc"]; } } break; case BUFFERING_BAR : if (_local2.fill_mc != undefined) { break; } _local2.fill_mc = _local2.skin.fill_mc; if (_local2.fill_mc != undefined) { break; } _local2.fill_mc = _local2.skin._parent._parent.bufferingBarFill_mc; } } setControl(index, _local2); } function setupSkinStates(ctrl) { if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl; ctrl.over_mc = ctrl; ctrl.down_mc = ctrl; ctrl.disabled_mc = ctrl; } else { ctrl._x = 0; ctrl._y = 0; ctrl.up_mc._x = 0; ctrl.up_mc._y = 0; ctrl.up_mc._visible = true; if (ctrl.over_mc == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc._x = 0; ctrl.over_mc._y = 0; ctrl.over_mc._visible = false; } if (ctrl.down_mc == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc._x = 0; ctrl.down_mc._y = 0; ctrl.down_mc._visible = false; } if (ctrl.disabled_mc == undefined) { ctrl.disabled_mc_mc = ctrl.up_mc; } else { ctrl.disabled_mc._x = 0; ctrl.disabled_mc._y = 0; ctrl.disabled_mc._visible = false; } } } function skinButtonControl(ctrl) { if (ctrl.onEnterFrame != undefined) { delete ctrl.onEnterFrame; ctrl.onEnterFrame = undefined; } if (ctrl.enabled) { switch (ctrl.state) { case UP_STATE : if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl.attachMovie(ctrl.upLinkageID, "up_mc", ctrl.getNextHighestDepth()); } applySkinState(ctrl, ctrl.up_mc); break; case OVER_STATE : if (ctrl.over_mc == undefined) { if (ctrl.overLinkageID == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc = ctrl.attachMovie(ctrl.overLinkageID, "over_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.over_mc); break; case DOWN_STATE : if (ctrl.down_mc == undefined) { if (ctrl.downLinkageID == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc = ctrl.attachMovie(ctrl.downLinkageID, "down_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.down_mc); } } else { ctrl.state = UP_STATE; if (ctrl.disabled_mc == undefined) { if (ctrl.disabledLinkageID == undefined) { ctrl.disabled_mc = ctrl.up_mc; } else { ctrl.disabled_mc = ctrl.attachMovie(ctrl.disabledLinkageID, "disabled_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.disabled_mc); } if (ctrl.placeholder_mc != undefined) { ctrl.placeholder_mc.unloadMovie(); delete ctrl.placeholder_mc; ctrl.placeholder_mc = undefined; } } function applySkinState(ctrl, state) { if (state != ctrl.currentState_mc) { if (state != undefined) { state._visible = true; } if (ctrl.currentState_mc != undefined) { ctrl.currentState_mc._visible = false; } ctrl.currentState_mc = state; } } function addBarControl(controlIndex) { var _local2 = controls[controlIndex]; _local2.isDragging = false; _local2.percentage = 0; _local2.uiMgr = this; _local2.controlIndex = controlIndex; if (_local2._parent == skin_mc) { finishAddBarControl(controlIndex); } else { _local2.onEnterFrame = function () { this.uiMgr.finishAddBarControl(this.controlIndex); }; } } function finishAddBarControl(controlIndex) { var _local2 = controls[controlIndex]; delete _local2.onEnterFrame; _local2.onEnterFrame = undefined; if (_local2.addBarControl != undefined) { _local2.addBarControl(); } calcBarMargins(_local2, "handle", true); calcBarMargins(_local2, "progress", false); calcBarMargins(_local2.progress_mc, "fill", false); calcBarMargins(_local2.progress_mc, "mask", false); calcBarMargins(_local2, "fullness", false); calcBarMargins(_local2.fullness_mc, "fill", false); calcBarMargins(_local2.fullness_mc, "mask", false); _local2.origWidth = _local2._width; _local2.origHeight = _local2._height; fixUpBar(_local2, "progress"); if (_local2.progress_mc != undefined) { fixUpBar(_local2, "progressBarFill"); if (_progressPercent == undefined) { _progressPercent = (_vc.__get__isRTMP() ? 100 : 0); } positionBar(_local2, "progress", _progressPercent); } fixUpBar(_local2, "fullness"); if (_local2.fullness_mc != undefined) { fixUpBar(_local2, "fullnessBarFill"); } fixUpBar(_local2, "handle"); _local2.handle_mc.controlIndex = controlIndex; switch (controlIndex) { case SEEK_BAR : setControl(SEEK_BAR_HANDLE, _local2.handle_mc); break; case VOLUME_BAR : setControl(VOLUME_BAR_HANDLE, _local2.handle_mc); } positionHandle(controlIndex); } function fixUpBar(ctrl, type) { if ((ctrl[type + "LinkageID"] != undefined) && (ctrl[type + "LinkageID"].length > 0)) { var _local1; if (ctrl[type + "Below"]) { _local1 = -1; while (ctrl._parent.getInstanceAtDepth(_local1) != undefined) { _local1--; } } else { ctrl[type + "Below"] = false; _local1 = ctrl._parent.getNextHighestDepth(); } ctrl[type + "_mc"] = ctrl._parent.attachMovie(ctrl[type + "LinkageID"], type + "_mc", _local1); } } function calcBarMargins(ctrl, type, symmetricMargins) { var _local2 = ctrl[type + "_mc"]; if (_local2 == undefined) { return(undefined); } if ((ctrl[type + "LeftMargin"] == undefined) && (_local2._parent == ctrl._parent)) { ctrl[type + "LeftMargin"] = _local2._x - ctrl._x; } if (ctrl[type + "RightMargin"] == undefined) { if (symmetricMargins) { ctrl[type + "RightMargin"] = ctrl[type + "LeftMargin"]; } else if (_local2._parent == ctrl._parent) { ctrl[type + "RightMargin"] = ((ctrl._width - _local2._width) - _local2._x) + ctrl._x; } } if ((ctrl[type + "TopMargin"] == undefined) && (_local2._parent == ctrl._parent)) { ctrl[type + "TopMargin"] = _local2._y - ctrl._y; } if (ctrl[type + "BottomMargin"] == undefined) { if (symmetricMargins) { ctrl[type + "BottomMargin"] = ctrl[type + "TopMargin"]; } else if (_local2._parent == ctrl._parent) { ctrl[type + "BottomMargin"] = ((ctrl._height - _local2._height) - _local2._y) + ctrl._y; } } if (ctrl[type + "X"] == undefined) { if (_local2._parent == ctrl._parent) { ctrl[type + "X"] = _local2._x - ctrl._x; } else if (_local2._parent == ctrl) { ctrl[type + "X"] = _local2._x; } } if (ctrl[type + "Y"] == undefined) { if (_local2._parent == ctrl._parent) { ctrl[type + "Y"] = _local2._y - ctrl._y; } else if (_local2._parent == ctrl) { ctrl[type + "Y"] = _local2._y; } } ctrl[type + "XScale"] = _local2._xscale; ctrl[type + "YScale"] = _local2._yscale; ctrl[type + "Width"] = _local2._width; ctrl[type + "Height"] = _local2._height; } function finishAddBufferingBar() { var _local2 = controls[BUFFERING_BAR]; delete _local2.onEnterFrame; _local2.onEnterFrame = undefined; calcBarMargins(_local2, "fill", true); fixUpBar(_local2, "fill"); if (_local2.fill_mc != undefined) { positionMaskedFill(_local2, _local2.fill_mc, 100); } } function positionMaskedFill(ctrl, fill, percent) { var _local5 = fill._parent; var _local3 = ctrl.mask_mc; if (_local3 == undefined) { _local3 = _local5.createEmptyMovieClip(ctrl._name + "Mask_mc", _local5.getNextHighestDepth()); ctrl.mask_mc = _local3; _local3.beginFill(16777215); _local3.lineTo(0, 0); _local3.lineTo(1, 0); _local3.lineTo(1, 1); _local3.lineTo(0, 1); _local3.lineTo(0, 0); _local3.endFill(); fill.setMask(_local3); _local3._x = ctrl.fillX; _local3._y = ctrl.fillY; _local3._width = ctrl.fillWidth; _local3._height = ctrl.fillHeight; _local3._visible = false; calcBarMargins(ctrl, "mask", true); } if (_local5 == ctrl) { if (fill.slideReveal) { fill._x = (ctrl.maskX - ctrl.fillWidth) + ((ctrl.fillWidth * percent) / 100); } else { _local3._width = (ctrl.fillWidth * percent) / 100; } } else if (_local5 == ctrl._parent) { if (fill.slideReveal) { _local3._x = ctrl._x + ctrl.maskLeftMargin; _local3._y = ctrl._y + ctrl.maskTopMargin; _local3._width = (ctrl._width - ctrl.maskRightMargin) - ctrl.maskLeftMargin; _local3._height = (ctrl._height - ctrl.maskTopMargin) - ctrl.maskBottomMargin; fill._x = (_local3._x - ctrl.fillWidth) + ((ctrl.maskWidth * percent) / 100); fill._y = ctrl._y + ctrl.fillTopMargin; } else { fill._x = ctrl._x + ctrl.fillLeftMargin; fill._y = ctrl._y + ctrl.fillTopMargin; _local3._x = fill._x; _local3._y = fill._y; _local3._width = (((ctrl._width - ctrl.fillRightMargin) - ctrl.fillLeftMargin) * percent) / 100; _local3._height = (ctrl._height - ctrl.fillTopMargin) - ctrl.fillBottomMargin; } } } function startHandleDrag(controlIndex) { var _local2 = controls[controlIndex]; var _local5 = _local2.handle_mc; if ((_local2.startHandleDrag == undefined) || (!_local2.startHandleDrag())) { var _local3 = _local2._y + _local2.handleY; var _local4 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); _local5.startDrag(false, _local2._x + _local2.handleLeftMargin, _local3, (_local2._x + _local4) - _local2.handleRightMargin, _local3); } _local2.isDragging = true; } function stopHandleDrag(controlIndex) { var _local2 = controls[controlIndex]; var _local3 = _local2.handle_mc; if ((_local2.stopHandleDrag == undefined) || (!_local2.stopHandleDrag())) { _local3.stopDrag(); } _local2.isDragging = false; } function positionHandle(controlIndex) { var _local2 = controls[controlIndex]; var _local3 = _local2.handle_mc; if (_local3 == undefined) { return(undefined); } if ((_local2.positionHandle != undefined) && (_local2.positionHandle())) { return(undefined); } var _local4 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); var _local5 = (_local4 - _local2.handleRightMargin) - _local2.handleLeftMargin; _local3._x = (_local2._x + _local2.handleLeftMargin) + ((_local5 * _local2.percentage) / 100); _local3._y = _local2._y + _local2.handleY; if (_local2.fullness_mc != undefined) { positionBar(_local2, "fullness", _local2.percentage); } } function positionBar(ctrl, type, percent) { if ((ctrl.positionBar != undefined) && (ctrl.positionBar(type, percent))) { return(undefined); } var _local2 = ctrl[type + "_mc"]; if (_local2._parent == ctrl) { if (_local2.fill_mc == undefined) { _local2._xscale = (ctrl[type + "XScale"] * percent) / 100; } else { positionMaskedFill(_local2, _local2.fill_mc, percent); } } else { _local2._x = ctrl._x + ctrl[type + "LeftMargin"]; _local2._y = ctrl._y + ctrl[type + "Y"]; if (_local2.fill_mc == undefined) { _local2._width = (((ctrl._width - ctrl[type + "LeftMargin"]) - ctrl[type + "RightMargin"]) * percent) / 100; } else { positionMaskedFill(_local2, _local2.fill_mc, percent); } } } function calcPercentageFromHandle(controlIndex) { var _local2 = controls[controlIndex]; var _local5 = _local2.handle_mc; if ((_local2.calcPercentageFromHandle == undefined) || (!_local2.calcPercentageFromHandle())) { var _local3 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); var _local6 = (_local3 - _local2.handleRightMargin) - _local2.handleLeftMargin; var _local4 = _local5._x - (_local2._x + _local2.handleLeftMargin); _local2.percentage = (_local4 / _local6) * 100; if (_local2.fullness_mc != undefined) { positionBar(_local2, "fullness", _local2.percentage); } } if (_local2.percentage < 0) { _local2.percentage = 0; } if (_local2.percentage > 100) { _local2.percentage = 100; } } function handleRelease(controlIndex) { var _local3 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (controlIndex == SEEK_BAR) { seekBarListener(true); } else if (controlIndex == VOLUME_BAR) { volumeBarListener(true); } stopHandleDrag(controlIndex); _vc.__set__activeVideoPlayerIndex(_local3); if (controlIndex == SEEK_BAR) { _vc._scrubFinish(); } } function seekBarListener(finish) { var _local3 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local4 = controls[SEEK_BAR]; calcPercentageFromHandle(SEEK_BAR); var _local2 = _local4.percentage; if (finish) { clearInterval(_seekBarIntervalID); _seekBarIntervalID = 0; if (_local2 != _lastScrubPos) { _vc.seekPercent(_local2); } _vc.addEventListener("playheadUpdate", this); if (_playAfterScrub) { _vc.play(); } } else if (_vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()).__get__state() == mx.video.VideoPlayer.SEEKING) { } else if ((((_seekBarScrubTolerance <= 0) || (Math.abs(_local2 - _lastScrubPos) > _seekBarScrubTolerance)) || (_local2 < _seekBarScrubTolerance)) || (_local2 > (100 - _seekBarScrubTolerance))) { if (_local2 != _lastScrubPos) { _lastScrubPos = _local2; _vc.seekPercent(_local2); } } _vc.__set__activeVideoPlayerIndex(_local3); } function volumeBarListener(finish) { var _local3 = controls[VOLUME_BAR]; calcPercentageFromHandle(VOLUME_BAR); var _local2 = _local3.percentage; if (finish) { clearInterval(_volumeBarIntervalID); _volumeBarIntervalID = 0; _vc.addEventListener("volumeUpdate", this); } if ((((finish || (_volumeBarScrubTolerance <= 0)) || (Math.abs(_local2 - _lastVolumePos) > _volumeBarScrubTolerance)) || (_local2 < _volumeBarScrubTolerance)) || (_local2 > (100 - _volumeBarScrubTolerance))) { if (_local2 != _lastVolumePos) { if (_isMuted) { cachedSoundLevel = _local2; } else { _vc.__set__volume(_local2); } } } } function doBufferingDelay() { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = 0; var _local2 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (_vc.__get__state() == mx.video.FLVPlayback.BUFFERING) { _bufferingOn = true; handleEvent({type:"stateChange", state:mx.video.FLVPlayback.BUFFERING, vp:_vc.__get__visibleVideoPlayerIndex()}); } _vc.__set__activeVideoPlayerIndex(_local2); } function dispatchMessage(ctrl) { if (ctrl.id == SEEK_BAR_HANDLE) { _vc._scrubStart(); } var _local2 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); switch (ctrl.id) { case PAUSE_BUTTON : _vc.pause(); break; case PLAY_BUTTON : _vc.play(); break; case STOP_BUTTON : _vc.stop(); break; case SEEK_BAR_HANDLE : calcPercentageFromHandle(SEEK_BAR); _lastScrubPos = controls[SEEK_BAR].percentage; _vc.removeEventListener("playheadUpdate", this); if (_vc.__get__playing() || (_vc.__get__buffering())) { _playAfterScrub = true; } else if (_vc.__get__state() != mx.video.VideoPlayer.SEEKING) { _playAfterScrub = false; } _seekBarIntervalID = setInterval(this, "seekBarListener", _seekBarInterval, false); startHandleDrag(SEEK_BAR, SEEK_BAR_HANDLE); _vc.pause(); break; case VOLUME_BAR_HANDLE : calcPercentageFromHandle(VOLUME_BAR); _lastVolumePos = controls[VOLUME_BAR].percentage; _vc.removeEventListener("volumeUpdate", this); _volumeBarIntervalID = setInterval(this, "volumeBarListener", _volumeBarInterval, false); startHandleDrag(VOLUME_BAR, VOLUME_BAR_HANDLE); break; case BACK_BUTTON : _vc.seekToPrevNavCuePoint(); break; case FORWARD_BUTTON : _vc.seekToNextNavCuePoint(); break; case MUTE_ON_BUTTON : case MUTE_OFF_BUTTON : if (!_isMuted) { _isMuted = true; cachedSoundLevel = _vc.volume; _vc.__set__volume(0); } else { _isMuted = false; _vc.__set__volume(cachedSoundLevel); } setEnabledAndVisibleForState(MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_OFF_BUTTON]); setEnabledAndVisibleForState(MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_ON_BUTTON]); break; default : throw new Error("Unknown ButtonControl"); } _vc.__set__activeVideoPlayerIndex(_local2); } function setEnabledAndVisibleForState(index, state) { var _local5 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local3 = state; if ((_local3 == mx.video.FLVPlayback.BUFFERING) && (!_bufferingOn)) { _local3 = mx.video.FLVPlayback.PLAYING; } switch (index) { case VOLUME_BAR : case VOLUME_BAR_HANDLE : controls[index].myEnabled = true; controls[index].enabled = _controlsEnabled; break; case MUTE_ON_BUTTON : controls[index].myEnabled = !_isMuted; if (controls[MUTE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; case MUTE_OFF_BUTTON : controls[index].myEnabled = _isMuted; if (controls[MUTE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; default : switch (_local3) { case mx.video.FLVPlayback.LOADING : case mx.video.FLVPlayback.CONNECTION_ERROR : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.DISCONNECTED : controls[index].myEnabled = _vc.__get__contentPath() != undefined; break; case mx.video.FLVPlayback.SEEKING : break; default : controls[index].myEnabled = true; } } switch (index) { case SEEK_BAR : switch (_local3) { case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : case mx.video.FLVPlayback.SEEKING : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); break; default : controls[index].myEnabled = false; } if (controls[index].myEnabled) { controls[index].myEnabled = (!isNaN(_vc.__get__totalTime())) && (_vc.__get__totalTime() > 0); } controls[index].handle_mc.myEnabled = controls[index].myEnabled; controls[index].handle_mc.enabled = controls[index].handle_mc.myEnabled; controls[index].handle_mc._visible = controls[index].myEnabled; var _local4 = (((!_bufferingBarHides) || (controls[index].myEnabled)) || (controls[BUFFERING_BAR] == undefined)) || (!controls[BUFFERING_BAR]._visible); controls[index]._visible = _local4; controls[index].progress_mc._visible = _local4; controls[index].progress_mc.fill_mc._visible = _local4; controls[index].fullness_mc._visible = _local4; controls[index].progress_mc.fill_mc._visible = _local4; break; case BUFFERING_BAR : switch (_local3) { case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : case mx.video.FLVPlayback.SEEKING : controls[index].myEnabled = false; break; default : controls[index].myEnabled = true; } controls[index]._visible = controls[index].myEnabled; controls[index].fill_mc._visible = controls[index].myEnabled; break; case PAUSE_BUTTON : switch (_local3) { case mx.video.FLVPlayback.DISCONNECTED : case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PLAYING : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } if (controls[PLAY_PAUSE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; case PLAY_BUTTON : switch (_local3) { case mx.video.FLVPlayback.PLAYING : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PAUSED : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } if (controls[PLAY_PAUSE_BUTTON] != undefined) { controls[index]._visible = !controls[PAUSE_BUTTON]._visible; } break; case STOP_BUTTON : switch (_local3) { case mx.video.FLVPlayback.DISCONNECTED : case mx.video.FLVPlayback.STOPPED : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = true; } break; case BACK_BUTTON : case FORWARD_BUTTON : if (!(_local3 === mx.video.FLVPlayback.BUFFERING)) { } else { controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } } controls[index].enabled = _controlsEnabled && (controls[index].myEnabled); _vc.__set__activeVideoPlayerIndex(_local5); } function setupSkinAutoHide() { var _local2 = _vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()); if (_skinAutoHide && (skin_mc != undefined)) { skinAutoHideHitTest(); if (_skinAutoHideIntervalID == 0) { _skinAutoHideIntervalID = setInterval(this, "skinAutoHideHitTest", SKIN_AUTO_HIDE_INTERVAL); } } else { skin_mc._visible = __visible; clearInterval(_skinAutoHideIntervalID); _skinAutoHideIntervalID = 0; } } function skinAutoHideHitTest() { if (!__visible) { skin_mc._visible = false; } else { var _local4 = _vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()); var _local3 = _local4.hitTest(_root._xmouse, _root._ymouse, true); if ((!_local3) && (border_mc != undefined)) { _local3 = border_mc.hitTest(_root._xmouse, _root._ymouse, true); } skin_mc._visible = _local3; } } static var version = "1.0.0.103"; static var PAUSE_BUTTON = 0; static var PLAY_BUTTON = 1; static var STOP_BUTTON = 2; static var SEEK_BAR_HANDLE = 3; static var BACK_BUTTON = 4; static var FORWARD_BUTTON = 5; static var MUTE_ON_BUTTON = 6; static var MUTE_OFF_BUTTON = 7; static var VOLUME_BAR_HANDLE = 8; static var NUM_BUTTONS = 9; static var PLAY_PAUSE_BUTTON = 9; static var MUTE_BUTTON = 10; static var BUFFERING_BAR = 11; static var SEEK_BAR = 12; static var VOLUME_BAR = 13; static var NUM_CONTROLS = 14; static var UP_STATE = 0; static var OVER_STATE = 1; static var DOWN_STATE = 2; static var SKIN_AUTO_HIDE_INTERVAL = 200; static var VOLUME_BAR_INTERVAL_DEFAULT = 250; static var VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT = 0; static var SEEK_BAR_INTERVAL_DEFAULT = 250; static var SEEK_BAR_SCRUB_TOLERANCE_DEFAULT = 5; static var BUFFERING_DELAY_INTERVAL_DEFAULT = 1000; }Symbol 27 MovieClip [__Packages.mx.utils.Delegate] Frame 0class 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; var _local3 = arguments.callee.func; return(_local3.apply(_local2, arguments)); }; _local2.target = obj; _local2.func = func; return(_local2); } function createDelegate(obj) { return(create(obj, func)); } }Symbol 28 MovieClip [__Packages.mx.video.SMILManager] Frame 0class mx.video.SMILManager { var _owner, _url, xml, baseURLAttr, videoTags, width, height; function SMILManager (owner) { _owner = owner; } function connectXML(url) { _url = url; xml = new XML(); xml.onLoad = mx.utils.Delegate.create(this, xmlOnLoad); xml.load(url); return(false); } function xmlOnLoad(success) { try { if (!success) { _owner.helperDone(this, false); } else { baseURLAttr = new Array(); videoTags = new Array(); var _local4 = xml.firstChild; if (_local4.nodeName == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" No root node found; if file is an flv it must have .flv extension"); } else if (_local4.nodeName.toLowerCase() != "smil") { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, (("URL: \"" + _url) + "\" Root node not smil: ") + _local4.nodeName); } var _local5 = false; var _local3 = 0; while (_local3 < _local4.childNodes.length) { var _local2 = _local4.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else if (_local2.nodeName.toLowerCase() == "head") { parseHead(_local2); } else if (_local2.nodeName.toLowerCase() == "body") { _local5 = true; parseBody(_local2); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((((("URL: \"" + _url) + "\" Tag ") + _local2.nodeName) + " not supported in ") + _local4.nodeName) + " tag."); } _local3++; } if (!_local5) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" Tag body is required."); } _owner.helperDone(this, true); } } catch(err:Error) { _owner.helperDone(this, false); throw err; } } function parseHead(parentNode) { var _local4 = false; var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else if (_local2.nodeName.toLowerCase() == "meta") { for (var _local6 in _local2.attributes) { if (_local6.toLowerCase() == "base") { baseURLAttr.push(_local2.attributes[_local6]); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((((("URL: \"" + _url) + "\" Attribute ") + _local6) + " not supported in ") + _local2.nodeName) + " tag."); } } } else if (_local2.nodeName.toLowerCase() == "layout") { if (!_local4) { parseLayout(_local2); _local4 = true; } } _local3++; } } function parseLayout(parentNode) { var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else if (_local2.nodeName.toLowerCase() == "root-layout") { for (var _local5 in _local2.attributes) { if (_local5.toLowerCase() == "width") { width = Number(_local2.attributes[_local5]); } else if (_local5.toLowerCase() == "height") { height = Number(_local2.attributes[_local5]); } } if (((isNaN(width) || (width < 0)) || (isNaN(height))) || (height < 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Tag ") + _local2.nodeName) + " requires attributes id, width and height. Width and height must be numbers greater than or equal to 0."); } width = Math.round(width); height = Math.round(height); return(undefined); } _local3++; } } function parseBody(parentNode) { var _local6 = 0; var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else { _local6++; if (_local6 > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Tag ") + parentNode.nodeName) + " is required to contain exactly one tag."); } if (_local2.nodeName.toLowerCase() == "switch") { parseSwitch(_local2); } else if ((_local2.nodeName.toLowerCase() == "video") || (_local2.nodeName.toLowerCase() == "ref")) { var _local5 = parseVideo(_local2); videoTags.push(_local5); } } _local3++; } if (videoTags.length < 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" At least one video of ref tag is required."); } } function parseSwitch(parentNode) { var _local4 = 0; while (_local4 < parentNode.childNodes.length) { var _local5 = parentNode.childNodes[_local4]; if (_local5.nodeType != ELEMENT_NODE) { } else if ((_local5.nodeName.toLowerCase() == "video") || (_local5.nodeName.toLowerCase() == "ref")) { var _local3 = parseVideo(_local5); if (_local3.bitrate == undefined) { videoTags.push(_local3); } else { var _local6 = false; var _local2 = 0; while (_local2 < videoTags.length) { if ((videoTags[_local2].bitrate == undefined) || (_local3.bitrate < videoTags[_local4].bitrate)) { _local6 = true; videoTags.splice(_local2, 0, videoTags); break; } _local2++; } if (!_local6) { videoTags.push(_local3); } } } _local4++; } } function parseVideo(node) { var _local3 = new Object(); for (var _local4 in node.attributes) { if (_local4.toLowerCase() == "src") { _local3.src = node.attributes[_local4]; } else if (_local4.toLowerCase() == "system-bitrate") { _local3.bitrate = Number(node.attributes[_local4]); } else if (_local4.toLowerCase() == "dur") { _local3.dur = Number(node.attributes[_local4]); } } if (_local3.src == undefined) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Attribute src is required in ") + node.nodeName) + " tag."); } return(_local3); } static var version = "1.0.0.103"; static var ELEMENT_NODE = 1; }Symbol 29 MovieClip [__Packages.mx.video.NCManager] Frame 0class mx.video.NCManager implements mx.video.INCManager { var _timeoutIntervalId, _tryNCIntervalId, _timeout, _isRTMP, _serverName, _wrappedURL, _portNumber, _appName, _contentPath, _streamName, _streamLength, _streamWidth, _streamHeight, _streams, _autoSenseBW, _payload, _connTypeCounter, _bitrate, _owner, _nc, _protocol, _smilMgr, _ncUri, fallbackServerName, _tryNC; function NCManager () { initNCInfo(); initOtherInfo(); _timeoutIntervalId = 0; _tryNCIntervalId = 0; _timeout = DEFAULT_TIMEOUT; } function initNCInfo() { _isRTMP = undefined; _serverName = undefined; _wrappedURL = undefined; _portNumber = undefined; _appName = undefined; } function initOtherInfo() { _contentPath = undefined; _streamName = undefined; _streamLength = undefined; _streamWidth = undefined; _streamHeight = undefined; _streams = undefined; _autoSenseBW = false; _payload = 0; _connTypeCounter = 0; cleanConns(); } function getTimeout() { return(_timeout); } function setTimeout(t) { _timeout = t; if (_timeoutIntervalId != 0) { clearInterval(_timeoutIntervalId); _timeoutIntervalId = setInterval(this, "_onFCSConnectTimeOut", _timeout); } } function getBitrate() { return(_bitrate); } function setBitrate(b) { if ((_isRTMP == undefined) || (!_isRTMP)) { _bitrate = b; } } function getVideoPlayer() { return(_owner); } function setVideoPlayer(v) { _owner = v; } function getNetConnection() { return(_nc); } function getStreamName() { return(_streamName); } function isRTMP() { return(_isRTMP); } function getStreamLength() { return(_streamLength); } function getStreamWidth() { return(_streamWidth); } function getStreamHeight() { return(_streamHeight); } function connectToURL(url) { initOtherInfo(); _contentPath = url; if (((_contentPath == null) || (_contentPath == undefined)) || (_contentPath == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH); } var _local2 = parseURL(_contentPath); if ((_local2.streamName == undefined) || (_local2.streamName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } if (_local2.isRTMP) { var _local3 = canReuseOldConnection(_local2); _isRTMP = true; _protocol = _local2.protocol; _streamName = _local2.streamName; _serverName = _local2.serverName; _wrappedURL = _local2.wrappedURL; _portNumber = _local2.portNumber; _appName = _local2.appName; if ((((_appName == undefined) || (_appName == "")) || (_streamName == undefined)) || (_streamName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } _autoSenseBW = _streamName.indexOf(",") != -1; return(_local3 || (connectRTMP())); } if (_local2.streamName.slice(-4).toLowerCase() == ".flv") { var _local3 = canReuseOldConnection(_local2); _isRTMP = false; _streamName = _local2.streamName; return(_local3 || (connectHTTP())); } _smilMgr = new mx.video.SMILManager(this); return(_smilMgr.connectXML(_local2.streamName)); } function connectAgain() { var _local2 = _appName.indexOf("/"); if (_local2 < 0) { _local2 = _streamName.indexOf("/"); if (_local2 >= 0) { _appName = _appName + "/"; _appName = _appName + _streamName.slice(0, _local2); _streamName = _streamName.slice(_local2 + 1); } return(false); } var _local3 = _appName.slice(_local2 + 1); _local3 = _local3 + "/"; _local3 = _local3 + _streamName; _streamName = _local3; _appName = _appName.slice(0, _local2); close(); _payload = 0; _connTypeCounter = 0; cleanConns(); connectRTMP(); return(true); } function reconnect() { if (!_isRTMP) { throw new Error("Cannot call reconnect on an http connection"); } _nc.onStatus = function (info) { this.mc.reconnectOnStatus(this, info); }; _nc.onBWDone = function () { this.mc.onReconnected(); }; _nc.connect(_ncUri, false); } function onReconnected() { delete _nc.onStatus; delete _nc.onBWDone; _owner.ncReconnected(); } function close() { if (_nc) { _nc.close(); } } function helperDone(helper, success) { if (helper != _smilMgr) { return(undefined); } if (!success) { _nc = undefined; _owner.ncConnected(); delete _smilMgr; return(undefined); } _streamWidth = _smilMgr.width; _streamHeight = _smilMgr.height; var _local2; var _local4 = _smilMgr.baseURLAttr[0]; if ((_local4 != undefined) && (_local4 != "")) { _local2 = parseURL(_local4); _isRTMP = _local2.isRTMP; _streamName = _local2.streamName; if (_isRTMP) { _protocol = _local2.protocol; _serverName = _local2.serverName; _portNumber = _local2.portNumber; _wrappedURL = _local2.wrappedURL; _appName = _local2.appName; if ((_appName == undefined) || (_appName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Base RTMP URL must include application name: " + _local4); } if (_smilMgr.baseURLAttr.length > 1) { _local2 = parseURL(_smilMgr.baseURLAttr[1]); if (_local2.serverName != undefined) { fallbackServerName = _local2.serverName; } } } } _streams = _smilMgr.videoTags; var _local3 = 0; while (_local3 < _streams.length) { _local4 = _streams[_local3].src; _local2 = parseURL(_local4); if (_isRTMP == undefined) { _isRTMP = _local2.isRTMP; if (_isRTMP) { _protocol = _local2.protocol; if (_streams.length > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Cannot switch between multiple absolute RTMP URLs, must use meta tag base attribute."); } _serverName = _local2.serverName; _portNumber = _local2.portNumber; _wrappedURL = _local2.wrappedURL; _appName = _local2.appName; if ((_appName == undefined) || (_appName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Base RTMP URL must include application name: " + _local4); } } } else if ((((_streamName != undefined) && (_streamName != "")) && (!_local2.isRelative)) && (_streams.length > 1)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "When using meta tag base attribute, cannot use absolute URLs for video or ref tag src attributes."); } _streams[_local3].parseResults = _local2; _local3++; } _autoSenseBW = _streams.length > 1; if (!_autoSenseBW) { if (_streamName != undefined) { _streamName = _streamName + _streams[0].parseResults.streamName; } else { _streamName = _streams[0].parseResults.streamName; } _streamLength = _streams[0].dur; } if (_isRTMP) { connectRTMP(); } else { if (_autoSenseBW) { bitrateMatch(); } connectHTTP(); _owner.ncConnected(); } } function bitrateMatch() { var _local3; if (isNaN(_bitrate)) { _local3 = 0; } else { var _local2 = 0; while (_local2 < _streams.length) { if (isNaN(_streams[_local2].bitrate) || (_bitrate <= _streams[_local2].bitrate)) { _local3 = _local2; break; } _local2++; } } if (isNaN(_local3)) { throw new mx.video.VideoError(mx.video.VideoError.NO_BITRATE_MATCH); } if (_streamName != undefined) { _streamName = _streamName + _streams[_local3].src; } else { _streamName = _streams[_local3].src; } _streamLength = _streams[_local3].dur; } function parseURL(url) { var _local2 = new Object(); var _local3 = 0; var _local4 = url.indexOf(":/", _local3); if (_local4 >= 0) { _local4 = _local4 + 2; _local2.protocol = url.slice(_local3, _local4); _local2.isRelative = false; } else { _local2.isRelative = true; } if ((_local2.protocol != undefined) && (((_local2.protocol == "rtmp:/") || (_local2.protocol == "rtmpt:/")) || (_local2.protocol == "rtmps:/"))) { _local2.isRTMP = true; _local3 = _local4; if (url.charAt(_local3) == "/") { _local3++; var _local7 = url.indexOf(":", _local3); var _local8 = url.indexOf("/", _local3); if (_local8 < 0) { if (_local7 < 0) { _local2.serverName = url.slice(_local3); } else { _local4 = _local7; _local2.portNumber = url.slice(_local3, _local4); _local3 = _local4 + 1; _local2.serverName = url.slice(_local3); } return(_local2); } if ((_local7 >= 0) && (_local7 < _local8)) { _local4 = _local7; _local2.serverName = url.slice(_local3, _local4); _local3 = _local4 + 1; _local4 = _local8; _local2.portNumber = url.slice(_local3, _local4); } else { _local4 = _local8; _local2.serverName = url.slice(_local3, _local4); } _local3 = _local4 + 1; } if (url.charAt(_local3) == "?") { var _local9 = url.slice(_local3 + 1); var _local6 = parseURL(_local9); if ((_local6.protocol == undefined) || (!_local6.isRTMP)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } _local2.wrappedURL = "?"; _local2.wrappedURL = _local2.wrappedURL + _local6.protocol; if (_local6.server != undefined) { _local2.wrappedURL = _local2.wrappedURL + "/"; _local2.wrappedURL = _local2.wrappedURL + _local6.server; } if (_local6.wrappedURL != undefined) { _local2.wrappedURL = _local2.wrappedURL + "/?"; _local2.wrappedURL = _local2.wrappedURL + _local6.wrappedURL; } _local2.appName = _local6.appName; _local2.streamName = _local6.streamName; return(_local2); } _local4 = url.indexOf("/", _local3); if (_local4 < 0) { _local2.appName = url.slice(_local3); return(_local2); } _local2.appName = url.slice(_local3, _local4); _local3 = _local4 + 1; _local4 = url.indexOf("/", _local3); if (_local4 < 0) { _local2.streamName = url.slice(_local3); return(_local2); } _local2.appName = _local2.appName + "/"; _local2.appName = _local2.appName + url.slice(_local3, _local4); _local3 = _local4 + 1; _local2.streamName = url.slice(_local3); } else { _local2.isRTMP = false; _local2.streamName = url; } return(_local2); } function canReuseOldConnection(parseResults) { if ((_nc == undefined) || (_nc == null)) { return(false); } if (!parseResults.isRTMP) { if (!_isRTMP) { return(true); } _owner.close(); _nc = null; initNCInfo(); return(false); } if (_isRTMP) { if (((((parseResults.serverName == _serverName) && (parseResults.appName == _appName)) && (parseResults.protocol == _protocol)) && (parseResults.portNumber == _portNumber)) && (parseResults.wrappedURL == _wrappedURL)) { return(true); } _owner.close(); _nc = null; } initNCInfo(); return(false); } function connectHTTP() { _nc = new NetConnection(); _nc.connect(null); return(true); } function connectRTMP() { clearInterval(_timeoutIntervalId); _timeoutIntervalId = setInterval(this, "_onFCSConnectTimeOut", _timeout); _tryNC = new Array(); var _local2 = 0; while (_local2 < RTMP_CONN.length) { _tryNC[_local2] = new NetConnection(); _tryNC[_local2].mc = this; _tryNC[_local2].pending = false; _tryNC[_local2].connIndex = _local2; _tryNC[_local2].onBWDone = function (p_bw) { this.mc.onConnected(this, p_bw); }; _tryNC[_local2].onBWCheck = function () { return(++this.mc._payload); }; _tryNC[_local2].onStatus = function (info) { this.mc.connectOnStatus(this, info); }; _local2++; } nextConnect(); return(false); } function nextConnect() { clearInterval(_tryNCIntervalId); _tryNCIntervalId = 0; var _local4; var _local3; if (_connTypeCounter == 0) { _local4 = _protocol; if (_portNumber != undefined) { _local3 = _portNumber; } else { var _local2 = 0; while (_local2 < RTMP_CONN.length) { if (_local4 == RTMP_CONN[_local2].protocol) { _local3 = RTMP_CONN[_local2].port; break; } _local2++; } } } else { _local4 = RTMP_CONN[_connTypeCounter].protocol; _local3 = RTMP_CONN[_connTypeCounter].port; } var _local5 = ((_local4 + ((_serverName == undefined) ? "" : (((("/" + _serverName) + ":") + _local3) + "/"))) + ((_wrappedURL == undefined) ? "" : (_wrappedURL + "/"))) + _appName; _tryNC[_connTypeCounter].pending = true; _tryNC[_connTypeCounter].connect(_local5, _autoSenseBW); if (_connTypeCounter < (RTMP_CONN.length - 1)) { _connTypeCounter++; _tryNCIntervalId = setInterval(this, "nextConnect", 1500); } } function cleanConns() { clearInterval(_tryNCIntervalId); _tryNCIntervalId = 0; if (_tryNC != undefined) { var _local2 = 0; while (_local2 < _tryNC.length) { if (_tryNC[_local2] != undefined) { delete _tryNC[_local2].onStatus; if (_tryNC[_local2].pending) { _tryNC[_local2].onStatus = function (info) { this.mc.disconnectOnStatus(this, info); }; } else { delete _tryNC[_local2].onStatus; _tryNC[_local2].close(); } } delete _tryNC[_local2]; _local2++; } delete _tryNC; } } function tryFallBack() { if (((_serverName == fallbackServerName) || (fallbackServerName == undefined)) || (fallbackServerName == null)) { delete _nc; _nc = undefined; _owner.ncConnected(); } else { _connTypeCounter = 0; cleanConns(); _serverName = fallbackServerName; connectRTMP(); } } function onConnected(p_nc, p_bw) { clearInterval(_timeoutIntervalId); _timeoutIntervalId = 0; delete p_nc.onBWDone; delete p_nc.onBWCheck; delete p_nc.onStatus; _nc = p_nc; _ncUri = _nc.uri; if (_autoSenseBW) { _bitrate = p_bw * 1024; if (_streams != undefined) { bitrateMatch(); } else if (_streamName.indexOf(",") != -1) { var _local3 = _streamName.split(","); var _local2 = 0; while (_local2 < _local3.length) { var _local4 = stripFrontAndBackWhiteSpace(_local3[_local2]); if ((_local2 + 1) < _local3.length) { if (p_bw <= Number(_local3[_local2 + 1])) { _streamName = _local4; break; } } else { _streamName = _local4; break; } _local2 = _local2 + 2; } } } if (_streamName.slice(-4).toLowerCase() == ".flv") { _streamName = _streamName.slice(0, -4); } if ((!_owner.__get__isLive()) && (_streamLength == undefined)) { var _local6 = new Object(); _local6.mc = this; _local6.onResult = function (length) { this.mc.getStreamLengthResult(length); }; _nc.call("getStreamLength", _local6, _streamName); } else { _owner.ncConnected(); } } function connectOnStatus(target, info) { target.pending = false; if (info.code == "NetConnection.Connect.Success") { _nc = _tryNC[target.connIndex]; _tryNC[target.connIndex] = undefined; cleanConns(); } else if (((info.code == "NetConnection.Connect.Failed") || (info.code == "NetConnection.Connect.Rejected")) && (target.connIndex == (RTMP_CONN.length - 1))) { if (!connectAgain()) { tryFallBack(); } } } function reconnectOnStatus(target, info) { if ((info.code == "NetConnection.Connect.Failed") || (info.code == "NetConnection.Connect.Rejected")) { delete _nc; _nc = undefined; _owner.ncReconnected(); } } function disconnectOnStatus(target, info) { if (info.code == "NetConnection.Connect.Success") { delete target.onStatus; target.close(); } } function getStreamLengthResult(length) { _streamLength = length; _owner.ncConnected(); } function _onFCSConnectTimeOut() { cleanConns(); _nc = undefined; if (!connectAgain()) { _owner.ncConnected(); } } static function stripFrontAndBackWhiteSpace(p_str) { var _local1; var _local2 = p_str.length; var _local4 = 0; var _local5 = _local2; _local1 = 0; while (_local1 < _local2) { switch (p_str.charCodeAt(_local1)) { case 9 : case 10 : case 13 : case 32 : break; default : _local4 = _local1; break;!//outer level } _local1++; } _local1 = _local2; while (_local1 >= 0) { switch (p_str.charCodeAt(_local1)) { case 9 : case 10 : case 13 : case 32 : break; default : _local5 = _local1 + 1; break;!//outer level } _local1--; } if (_local5 <= _local4) { return(""); } return(p_str.slice(_local4, _local5)); } static var version = "1.0.0.103"; var DEFAULT_TIMEOUT = 60000; static var RTMP_CONN = [{protocol:"rtmp:/", port:"1935"}, {protocol:"rtmp:/", port:"443"}, {protocol:"rtmpt:/", port:"80"}, {protocol:"rtmps:/", port:"443"}]; }Symbol 30 MovieClip [__Packages.mx.video.CuePointManager] Frame 0class mx.video.CuePointManager { var _owner, _id, _asCuePointTolerance, _linearSearchTolerance, _metadataLoaded, allCuePoints, asCuePoints, _disabledCuePoints, flvCuePoints, navCuePoints, eventCuePoints, _asCuePointIndex, __get__playheadUpdateInterval, _disabledCuePointsByNameOnly; function CuePointManager (owner, id) { _owner = owner; _id = id; reset(); _asCuePointTolerance = _owner.getVideoPlayer(_id).__get__playheadUpdateInterval() / 2000; _linearSearchTolerance = DEFAULT_LINEAR_SEARCH_TOLERANCE; } function reset() { _metadataLoaded = false; allCuePoints = null; asCuePoints = null; _disabledCuePoints = null; flvCuePoints = null; navCuePoints = null; eventCuePoints = null; _asCuePointIndex = 0; } function get metadataLoaded() { return(_metadataLoaded); } function set playheadUpdateInterval(aTime) { _asCuePointTolerance = aTime / 2000; //return(__get__playheadUpdateInterval()); } function get id() { return(_id); } function addASCuePoint(timeOrCuePoint, name, parameters) { var _local3; if (typeof(timeOrCuePoint) == "object") { _local3 = deepCopyObject(timeOrCuePoint); } else { _local3 = {time:timeOrCuePoint, name:name, parameters:deepCopyObject(parameters)}; } var _local7 = isNaN(_local3.time) || (_local3.time < 0); if (_local7) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } var _local6 = (_local3.name == undefined) || (_local3.name == null); if (_local6) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be undefined or null"); } var _local2; _local3.type = "actionscript"; if (((asCuePoints == null) || (asCuePoints == undefined)) || (asCuePoints.length < 1)) { _local2 = 0; asCuePoints = new Array(); asCuePoints.push(_local3); } else { _local2 = getCuePointIndex(asCuePoints, true, _local3.time); _local2 = ((asCuePoints[_local2].time > _local3.time) ? 0 : (_local2 + 1)); asCuePoints.splice(_local2, 0, _local3); } if (((allCuePoints == null) || (allCuePoints == undefined)) || (allCuePoints.length < 1)) { _local2 = 0; allCuePoints = new Array(); allCuePoints.push(_local3); } else { _local2 = getCuePointIndex(allCuePoints, true, _local3.time); _local2 = ((allCuePoints[_local2].time > _local3.time) ? 0 : (_local2 + 1)); allCuePoints.splice(_local2, 0, _local3); } var _local5 = _owner.getVideoPlayer(_id).__get__playheadTime(); if (_local5 > 0) { if (_asCuePointIndex == _local2) { if (_local5 > asCuePoints[_local2].time) { _asCuePointIndex++; } } else if (_asCuePointIndex > _local2) { _asCuePointIndex++; } } else { _asCuePointIndex = 0; } var _local4 = deepCopyObject(asCuePoints[_local2]); _local4.array = asCuePoints; _local4.index = _local2; return(_local4); } function removeASCuePoint(timeNameOrCuePoint) { if (((asCuePoints == null) || (asCuePoints == undefined)) || (asCuePoints.length < 1)) { return(null); } var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } var _local2 = getCuePointIndex(asCuePoints, false, _local3.time, _local3.name); if (_local2 < 0) { return(null); } _local3 = asCuePoints[_local2]; asCuePoints.splice(_local2, 1); _local2 = getCuePointIndex(allCuePoints, false, _local3.time, _local3.name); if (_local2 > 0) { allCuePoints.splice(_local2, 1); } if (_owner.getVideoPlayer(_id).__get__playheadTime() > 0) { if (_asCuePointIndex > _local2) { _asCuePointIndex--; } } else { _asCuePointIndex = 0; } return(_local3); } function setFLVCuePointEnabled(enabled, timeNameOrCuePoint) { var _local4; switch (typeof(timeNameOrCuePoint)) { case "string" : _local4 = {name:timeNameOrCuePoint}; break; case "number" : _local4 = {time:timeNameOrCuePoint}; break; case "object" : _local4 = timeNameOrCuePoint; } var _local12 = isNaN(_local4.time) || (_local4.time < 0); var _local11 = (_local4.name == undefined) || (_local4.name == null); if (_local12 && (_local11)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } var _local6 = 0; var _local2; var _local5; if (_local12) { if (!_metadataLoaded) { if (_disabledCuePointsByNameOnly[_local4.name] == undefined) { if (!enabled) { if (((_disabledCuePointsByNameOnly == null) || (_disabledCuePointsByNameOnly == undefined)) || (_disabledCuePointsByNameOnly.length < 0)) { _disabledCuePointsByNameOnly = new Object(); } _disabledCuePointsByNameOnly[_local4.name] = new Array(); } } else { if (enabled) { _disabledCuePointsByNameOnly[_local4.name] = undefined; } return(-1); } removeCuePoints(_disabledCuePoints, _local4); return(-1); } if (enabled) { _local6 = removeCuePoints(_disabledCuePoints, _local4); } else { var _local3; _local2 = getCuePointIndex(flvCuePoints, true, -1, _local4.name); while (_local2 >= 0) { _local3 = flvCuePoints[_local2]; _local5 = getCuePointIndex(_disabledCuePoints, true, _local3.time); if ((_local5 < 0) || (_disabledCuePoints[_local5].time != _local3.time)) { _disabledCuePoints = insertCuePoint(_local5, _disabledCuePoints, {name:_local3.name, time:_local3.time}); _local6 = _local6 + 1; } _local2 = getNextCuePointIndexWithName(_local3.name, flvCuePoints, _local2); } } return(_local6); } _local2 = getCuePointIndex(_disabledCuePoints, false, _local4.time, _local4.name); if (_local2 < 0) { if (enabled) { if (!_metadataLoaded) { _local2 = getCuePointIndex(_disabledCuePoints, false, _local4.time); if (_local2 < 0) { _local5 = getCuePointIndex(_disabledCuePointsByNameOnly[_local4.name], true, _local4.time); if (cuePointCompare(_local4.time, null, _disabledCuePointsByNameOnly[_local4.name]) != 0) { _disabledCuePointsByNameOnly[_local4.name] = insertCuePoint(_local5, _disabledCuePointsByNameOnly[_local4.name], _local4); } } else { _disabledCuePoints.splice(_local2, 1); } } return((_metadataLoaded ? 0 : -1)); } } else { if (enabled) { _disabledCuePoints.splice(_local2, 1); _local6 = 1; } else { _local6 = 0; } return((_metadataLoaded ? (_local6) : -1)); } if (_metadataLoaded) { _local2 = getCuePointIndex(flvCuePoints, false, _local4.time, _local4.name); if (_local2 < 0) { return(0); } if (_local11) { _local4.name = flvCuePoints[_local2].name; } } _local5 = getCuePointIndex(_disabledCuePoints, true, _local4.time); _disabledCuePoints = insertCuePoint(_local5, _disabledCuePoints, _local4); _local6 = 1; return((_metadataLoaded ? 1 : -1)); } function removeCuePoints(cuePointArray, cuePoint) { var _local2; var _local4; var _local5 = 0; _local2 = getCuePointIndex(cuePointArray, true, -1, cuePoint.name); while (_local2 >= 0) { _local4 = cuePointArray[_local2]; cuePointArray.splice(_local2, 1); _local2--; _local5++; _local2 = getNextCuePointIndexWithName(_local4.name, cuePointArray, _local2); } return(_local5); } function insertCuePoint(insertIndex, cuePointArray, cuePoint) { if (insertIndex < 0) { cuePointArray = new Array(); cuePointArray.push(cuePoint); } else { if (cuePointArray[insertIndex].time > cuePoint.time) { insertIndex = 0; } else { insertIndex++; } cuePointArray.splice(insertIndex, 0, cuePoint); } return(cuePointArray); } function isFLVCuePointEnabled(timeNameOrCuePoint) { if (!_metadataLoaded) { return(true); } var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } var _local5 = isNaN(_local3.time) || (_local3.time < 0); var _local6 = (_local3.name == undefined) || (_local3.name == null); if (_local5 && (_local6)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } if (_local5) { var _local2 = getCuePointIndex(flvCuePoints, true, -1, _local3.name); if (_local2 < 0) { return(true); } while (_local2 >= 0) { if (getCuePointIndex(_disabledCuePoints, false, flvCuePoints[_local2].time, flvCuePoints[_local2].name) < 0) { return(true); } _local2 = getNextCuePointIndexWithName(_local3.name, flvCuePoints, _local2); } return(false); } return(getCuePointIndex(_disabledCuePoints, false, _local3.time, _local3.name) < 0); } function dispatchASCuePoints() { var _local5 = _owner.getVideoPlayer(_id).__get__playheadTime(); if ((_owner.getVideoPlayer(_id).__get__stateResponsive() && (asCuePoints != null)) && (asCuePoints != undefined)) { while ((_asCuePointIndex < asCuePoints.length) && (asCuePoints[_asCuePointIndex].time <= (_local5 + _asCuePointTolerance))) { _owner.dispatchEvent({type:"cuePoint", info:deepCopyObject(asCuePoints[_asCuePointIndex++]), vp:_id}); } } } function resetASCuePointIndex(time) { if (((time <= 0) || (asCuePoints == null)) || (asCuePoints == undefined)) { _asCuePointIndex = 0; return(undefined); } var _local2 = getCuePointIndex(asCuePoints, true, time); _asCuePointIndex = ((asCuePoints[_local2].time < time) ? (_local2 + 1) : (_local2)); } function processFLVCuePoints(metadataCuePoints) { _metadataLoaded = true; if (((metadataCuePoints == undefined) || (metadataCuePoints == null)) || (metadataCuePoints.length < 1)) { flvCuePoints = null; navCuePoints = null; eventCuePoints = null; return(undefined); } flvCuePoints = metadataCuePoints; navCuePoints = new Array(); eventCuePoints = new Array(); var _local5; var _local6 = -1; var _local2; var _local4 = _disabledCuePoints; var _local3 = 0; _disabledCuePoints = new Array(); var _local9 = 0; while (_local2 = flvCuePoints[_local9++] , _local2 != undefined) { if ((_local6 > 0) && (_local6 >= _local2.time)) { flvCuePoints = null; navCuePoints = null; eventCuePoints = null; _disabledCuePoints = null; _disabledCuePointsByNameOnly = null; throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "Unsorted cuePoint found after time: " + _local6); } _local6 = _local2.time; while ((_local3 < _local4.length) && (cuePointCompare(_local4[_local3].time, null, _local2) < 0)) { _local3++; } if ((_disabledCuePointsByNameOnly[_local2.name] != undefined) || ((_local3 < _local4.length) && (cuePointCompare(_local4[_local3].time, _local4[_local3].name, _local2) == 0))) { _disabledCuePoints.push({time:_local2.time, name:_local2.name}); } if (_local2.type == "navigation") { navCuePoints.push(_local2); } else if (_local2.type == "event") { eventCuePoints.push(_local2); } if (((allCuePoints == null) || (allCuePoints == undefined)) || (allCuePoints.length < 1)) { allCuePoints = new Array(); allCuePoints.push(_local2); } else { _local5 = getCuePointIndex(allCuePoints, true, _local2.time); _local5 = ((allCuePoints[_local5].time > _local2.time) ? 0 : (_local5 + 1)); allCuePoints.splice(_local5, 0, _local2); } } delete _disabledCuePointsByNameOnly; _disabledCuePointsByNameOnly = null; delete _disabledCuePointsByNameOnly; _disabledCuePointsByNameOnly = null; } function processCuePointsProperty(cuePoints) { if (((cuePoints == undefined) || (cuePoints == null)) || (cuePoints.length == 0)) { return(undefined); } var _local4 = 0; var _local8; var _local6; var _local7; var _local5; var _local9; var _local2 = 0; while (_local2 < (cuePoints.length - 1)) { switch (_local4) { case 6 : addOrDisable(_local9, _local5); _local4 = 0; case 0 : if (cuePoints[_local2++] != "t") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } _local5 = new Object(); _local5.time = cuePoints[_local2] / 1000; _local4++; break; case 1 : if (cuePoints[_local2++] != "n") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if ((cuePoints[_local2] == undefined) || (cuePoints[_local2] == null)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be null or undefined"); } _local5.name = unescape(cuePoints[_local2]); _local4++; break; case 2 : if (cuePoints[_local2++] != "t") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "type must be number"); } switch (cuePoints[_local2]) { case 0 : _local5.type = "event"; break; case 1 : _local5.type = "navigation"; break; case 2 : _local5.type = "actionscript"; break; default : throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "type must be 0, 1 or 2"); } _local4++; break; case 3 : if (cuePoints[_local2++] != "d") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "disabled must be number"); } _local9 = cuePoints[_local2] != 0; _local4++; break; case 4 : if (cuePoints[_local2++] != "p") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "num params must be number"); } _local8 = cuePoints[_local2]; _local4++; if (_local8 == 0) { _local4++; } else { _local5.parameters = new Object(); } break; case 5 : _local6 = cuePoints[_local2++]; _local7 = cuePoints[_local2]; if (typeof(_local6) == "string") { _local6 = unescape(_local6); } if (typeof(_local7) == "string") { _local7 = unescape(_local7); } _local5.parameters[_local6] = _local7; _local8--; if (_local8 != 0) { break; } _local4++; } _local2++; } if (_local4 == 6) { addOrDisable(_local9, _local5); } else { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected end of cuePoint param string"); } } function addOrDisable(disable, cuePoint) { if (disable) { if (cuePoint.type == "actionscript") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "Cannot disable actionscript cue points"); } setFLVCuePointEnabled(false, cuePoint); } else if (cuePoint.type == "actionscript") { addASCuePoint(cuePoint); } } function unescape(origStr) { var _local3 = origStr; var _local1 = 0; while (_local1 < cuePointsReplace.length) { var _local2 = _local3.split(cuePointsReplace[_local1++]); if (_local2.length > 1) { _local3 = _local2.join(cuePointsReplace[_local1]); } _local1++; } return(_local3); } function getCuePointIndex(cuePointArray, closeIsOK, time, name, start, len) { if (((cuePointArray == null) || (cuePointArray == undefined)) || (cuePointArray.length < 1)) { return(-1); } var _local13 = isNaN(time) || (time < 0); var _local16 = (name == undefined) || (name == null); if (_local13 && (_local16)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } if ((start == undefined) || (start == null)) { start = 0; } if ((len == undefined) || (len == null)) { len = cuePointArray.length; } if ((!_local16) && (closeIsOK || (_local13))) { var _local8; var _local2; if (_local13) { _local8 = start; } else { _local8 = getCuePointIndex(cuePointArray, closeIsOK, time); } _local2 = _local8; while (_local2 >= start) { if (cuePointArray[_local2].name == name) { break; } _local2--; } if (_local2 >= start) { return(_local2); } _local2 = _local8 + 1; while (_local2 < len) { if (cuePointArray[_local2].name == name) { break; } _local2++; } if (_local2 < len) { return(_local2); } return(-1); } var _local6; if (len <= _linearSearchTolerance) { var _local11 = start + len; var _local3 = start; while (_local3 < _local11) { _local6 = cuePointCompare(time, name, cuePointArray[_local3]); if (_local6 == 0) { return(_local3); } if (_local6 < 0) { break; } _local3++; } if (closeIsOK) { if (_local3 > 0) { return(_local3 - 1); } return(0); } return(-1); } var _local12 = Math.floor(len / 2); var _local15 = start + _local12; _local6 = cuePointCompare(time, name, cuePointArray[_local15]); if (_local6 < 0) { return(getCuePointIndex(cuePointArray, closeIsOK, time, name, start, _local12)); } if (_local6 > 0) { return(getCuePointIndex(cuePointArray, closeIsOK, time, name, _local15 + 1, (_local12 - 1) + (len % 2))); } return(_local15); } function getNextCuePointIndexWithName(name, array, index) { if ((name == undefined) || (name == null)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be undefined or null"); } if ((array == null) || (array == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint.array undefined"); } if ((isNaN(index) || (index < -1)) || (index >= array.length)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint.index must be number between -1 and cuePoint.array.length"); } var _local1; _local1 = index + 1; while (_local1 < array.length) { if (array[_local1].name == name) { break; } _local1++; } if (_local1 < array.length) { return(_local1); } return(-1); } static function cuePointCompare(time, name, cuePoint) { var _local2 = Math.round(time * 1000); var _local3 = Math.round(cuePoint.time * 1000); if (_local2 < _local3) { return(-1); } if (_local2 > _local3) { return(1); } if ((name != null) || (name != undefined)) { if (name == cuePoint.name) { return(0); } if (name < cuePoint.name) { return(-1); } return(1); } return(0); } function getCuePoint(cuePointArray, closeIsOK, timeNameOrCuePoint) { var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } var _local2 = getCuePointIndex(cuePointArray, closeIsOK, _local3.time, _local3.name); if (_local2 < 0) { return(null); } _local3 = deepCopyObject(cuePointArray[_local2]); _local3.array = cuePointArray; _local3.index = _local2; return(_local3); } function getNextCuePointWithName(cuePoint) { if ((cuePoint == null) || (cuePoint == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint parameter undefined"); } if (isNaN(cuePoint.time) || (cuePoint.time < 0)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } var _local3 = getNextCuePointIndexWithName(cuePoint.name, cuePoint.array, cuePoint.index); if (_local3 < 0) { return(null); } var _local4 = deepCopyObject(cuePoint.array[_local3]); _local4.array = cuePoint.array; _local4.index = _local3; return(_local4); } static function deepCopyObject(obj, recurseLevel) { if (((obj == undefined) || (obj == null)) || (typeof(obj) != "object")) { return(obj); } if (recurseLevel == undefined) { recurseLevel = 0; } var _local2 = new Object(); for (var _local4 in obj) { if ((recurseLevel == 0) && ((_local4 == "array") || (_local4 == "index"))) { } else if (typeof(obj[_local4]) == "object") { _local2[_local4] = deepCopyObject(obj[_local4], recurseLevel + 1); } else { _local2[_local4] = obj[_local4]; } } return(_local2); } static var DEFAULT_LINEAR_SEARCH_TOLERANCE = 50; static var cuePointsReplace = [""", "\"", "'", "'", ",", ",", "&", "&"]; }Symbol 81 MovieClip [MAINNav] Frame 1#initclip 73 Object.registerClass("MAINNav", site.components.MAINNav); #endinitclipSymbol 82 MovieClip [MAINMenu] Frame 1#initclip 59 Object.registerClass("MAINMenu", site.components.MAINMenu); #endinitclipSymbol 83 MovieClip [MAINBG] Frame 1#initclip 60 Object.registerClass("MAINBG", site.components.MAINBG); #endinitclipSymbol 84 MovieClip [MAINPage] Frame 1#initclip 61 Object.registerClass("MAINPage", site.components.MAINPage); #endinitclipSymbol 90 MovieClip [MAINSplash] Frame 1#initclip 62 Object.registerClass("MAINSplash", site.components.MAINSplash); #endinitclipSymbol 91 MovieClip [MAINBeta] Frame 1#initclip 63 Object.registerClass("MAINBeta", site.components.MAINBeta); #endinitclipSymbol 92 MovieClip [MAINRomeo] Frame 1#initclip 64 Object.registerClass("MAINRomeo", site.components.MAINRomeo); #endinitclipSymbol 96 MovieClip [romeo] Frame 1this.stop();Symbol 96 MovieClip [romeo] Frame 16this.stop();Symbol 97 MovieClip [MAINRope] Frame 1#initclip 65 Object.registerClass("MAINRope", site.components.MAINRope); #endinitclipSymbol 113 MovieClip [rope.flung] Frame 27this.stop();Symbol 122 MovieClip [MAINTimer] Frame 1#initclip 66 Object.registerClass("MAINTimer", site.components.MAINTimer); #endinitclipSymbol 125 MovieClip [MAINScreen] Frame 1#initclip 67 Object.registerClass("MAINScreen", site.components.MAINScreen); #endinitclipSymbol 126 MovieClip [MAINScreenEnd] Frame 1#initclip 68 Object.registerClass("MAINScreenEnd", site.components.MAINScreenEnd); #endinitclipSymbol 127 MovieClip [MAINRomeoBonus] Frame 1#initclip 69 Object.registerClass("MAINRomeoBonus", site.components.MAINRomeoBonus); #endinitclipSymbol 134 Buttonon (release) { trace("TRACK LINK - arthur site"); getURL ("http://www.arthurmovie.co.uk", "_new"); loadVariablesNum ("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/arthur_site/123434@x01", 3); }Symbol 140 MovieClip [romeo_bonus] Frame 1this.stop();Symbol 140 MovieClip [romeo_bonus] Frame 16this.stop();Symbol 141 MovieClip [MAINRomeoNeg] Frame 1#initclip 70 Object.registerClass("MAINRomeoNeg", site.components.MAINRomeoNeg); #endinitclipSymbol 156 MovieClip [beta] Frame 1this.stop();Symbol 156 MovieClip [beta] Frame 5this.audio.execute();Symbol 156 MovieClip [beta] Frame 9this.audio.execute();Symbol 156 MovieClip [beta] Frame 11this.stop(); this.checkFlap = function () { if ((--this.flaps) <= 0) { this.gotoAndStop(2); } else { this.gotoAndPlay(3); } }; this.checkFlap();Symbol 157 MovieClip [beta.catch] Frame 27this.callback.execute(); this.stop();Symbol 188 Buttonon (release) { ccc = 2; gotoAndPlay ("out"); }Symbol 189 Buttonon (release) { ccc = 1; gotoAndPlay ("out"); }Symbol 193 MovieClip [GAME_INTRO] Frame 183ccc = 0; stop();Symbol 193 MovieClip [GAME_INTRO] Frame 190_parent._parent.addSoundBed(); trace("try to call soundbed from here:" + this);Symbol 193 MovieClip [GAME_INTRO] Frame 288stop(); trace(_parent); _parent.die(ccc);Symbol 194 MovieClip [MAINScore] Frame 1#initclip 71 Object.registerClass("MAINScore", site.components.MAINScore); #endinitclipSymbol 211 MovieClip Frame 1stop();Symbol 234 MovieClip [MAINScreenInstructions] Frame 1#initclip 72 Object.registerClass("MAINScreenInstructions", site.components.MAINScreenInstructions); #endinitclipSymbol 254 Buttonon (release) { gotoAndPlay ("htp2"); }Symbol 269 Buttonon (release) { gotoAndPlay ("htp3"); }Symbol 276 Buttonon (release) { gotoAndPlay ("htp1"); }Symbol 286 Buttonon (release) { gotoAndPlay ("htp4"); }Symbol 287 Buttonon (release) { gotoAndPlay ("htp2"); }Symbol 288 MovieClip [mc_howToPlay] Frame 11stop();Symbol 288 MovieClip [mc_howToPlay] Frame 26stop();Symbol 288 MovieClip [mc_howToPlay] Frame 40stop();Symbol 288 MovieClip [mc_howToPlay] Frame 55stop(); trace(_parent); _parent._parent.startGame();Symbol 300 Buttonon (release) { gotoAndPlay ("l1_play"); }Symbol 304 Buttonon (release) { gotoAndPlay ("l2_play"); }Symbol 308 Buttonon (release) { gotoAndPlay ("l3_play"); }Symbol 309 MovieClip [mc_levels] Frame 10stop();Symbol 309 MovieClip [mc_levels] Frame 29stop(); trace(this); _parent.playgame();Symbol 309 MovieClip [mc_levels] Frame 41stop();Symbol 309 MovieClip [mc_levels] Frame 61stop(); _parent.playgame();Symbol 309 MovieClip [mc_levels] Frame 73stop();Symbol 309 MovieClip [mc_levels] Frame 93stop(); _parent.playgame();Symbol 321 Buttonon (release) { trace("play level again click: " + this); _parent._parent._parent.sameLevel(); }Symbol 325 Buttonon (release) { trace("watch trailer click: " + this); _parent._parent._parent.showVideo(); }Symbol 330 Buttonon (release) { trace("watch trailer click: " + this); _parent._parent._parent.showVideo(); }Symbol 335 Buttonon (release) { trace("play again: " + this); _parent._parent._parent.resetGame(); }Symbol 339 MovieClip [mc_end] Frame 10stop();Symbol 339 MovieClip [mc_end] Frame 26stop();Symbol 347 Buttonon (release) { gotoAndPlay ("close"); }Symbol 348 MovieClip [mc_video] Frame 15stop();Instance of Symbol 21 MovieClip [FLVPlayback] in Symbol 348 MovieClip [mc_video] Frame 15//component parameters onClipEvent (construct) { autoPlay = true; autoRewind = true; autoSize = false; bufferTime = 0.1; contentPath = "ArthurAnd_Trailer_flash.flv"; isLive = false; maintainAspectRatio = true; skin = "MojaveExternalAll_clear.swf"; skinAutoHide = false; totalTime = 0; volume = 100; }Symbol 348 MovieClip [mc_video] Frame 30_parent.killVideo(); stop();Symbol 366 MovieClip Frame 1this.stop();
Library Items
Symbol 1 Font | Used by:2 195 199 204 209 210 217 239 312 316 328 329 | |
Symbol 2 Text | Uses:1 | Used by:3 |
Symbol 3 MovieClip [MAINLoader] | Uses:2 | |
Symbol 4 Graphic | Used by:5 | |
Symbol 5 MovieClip | Uses:4 | Used by:11 96 140 |
Symbol 6 Bitmap | Used by:7 | |
Symbol 7 Graphic | Uses:6 | Used by:8 |
Symbol 8 MovieClip | Uses:7 | Used by:11 366 |
Symbol 9 Graphic | Used by:10 | |
Symbol 10 MovieClip | Uses:9 | Used by:11 96 |
Symbol 11 MovieClip [romeo_neg] | Uses:5 8 10 | Used by:366 |
Symbol 12 MovieClip [MAINView] | Used by:366 | |
Symbol 14 Graphic | Used by:15 | |
Symbol 15 MovieClip | Uses:14 | Used by:21 |
Symbol 16 Video | Used by:17 | |
Symbol 17 MovieClip [VideoPlayer] | Uses:16 | Used by:21 |
Symbol 18 Bitmap | Used by:19 | |
Symbol 19 Graphic | Uses:18 | Used by:20 |
Symbol 20 MovieClip [Icon] | Uses:19 | Used by:21 |
Symbol 21 MovieClip [FLVPlayback] | Uses:15 17 20 | Used by:348 |
Symbol 31 Graphic | Used by:35 | |
Symbol 32 Graphic | Used by:35 | |
Symbol 33 Graphic | Used by:34 | |
Symbol 34 Button | Uses:33 | Used by:35 |
Symbol 35 MovieClip | Uses:31 32 34 | Used by:80 |
Symbol 36 Graphic | Used by:51 | |
Symbol 37 ShapeTweening | Used by:51 | |
Symbol 38 Graphic | Used by:51 | |
Symbol 39 Sound | Used by:51 | |
Symbol 40 Graphic | Used by:51 | |
Symbol 41 Graphic | Used by:51 | |
Symbol 42 Bitmap | Used by:43 | |
Symbol 43 Graphic | Uses:42 | Used by:51 |
Symbol 44 Graphic | Used by:51 | |
Symbol 45 Graphic | Used by:51 | |
Symbol 46 Graphic | Used by:51 | |
Symbol 47 Sound | Used by:51 | |
Symbol 48 Font | Used by:49 | |
Symbol 49 Text | Uses:48 | Used by:51 |
Symbol 50 Graphic | Used by:51 | |
Symbol 51 MovieClip | Uses:36 37 38 39 40 41 43 44 45 46 47 49 50 | Used by:80 |
Symbol 52 Graphic | Used by:56 | |
Symbol 53 Font | Used by:54 55 69 72 | |
Symbol 54 Text | Uses:53 | Used by:56 |
Symbol 55 Text | Uses:53 | Used by:56 |
Symbol 56 MovieClip | Uses:52 54 55 | Used by:80 |
Symbol 57 ShapeTweening | Used by:79 | |
Symbol 58 Graphic | Used by:77 | |
Symbol 59 Graphic | Used by:62 | |
Symbol 60 Graphic | Used by:62 | |
Symbol 61 Graphic | Used by:62 | |
Symbol 62 Button | Uses:59 60 61 | Used by:77 |
Symbol 63 Graphic | Used by:67 | |
Symbol 64 Graphic | Used by:65 | |
Symbol 65 MovieClip | Uses:64 | Used by:67 |
Symbol 66 Graphic | Used by:67 | |
Symbol 67 MovieClip | Uses:63 65 66 | Used by:77 |
Symbol 68 Graphic | Used by:77 | |
Symbol 69 EditableText | Uses:53 | Used by:77 |
Symbol 70 ShapeTweening | Used by:77 | |
Symbol 71 Graphic | Used by:77 | |
Symbol 72 EditableText | Uses:53 | Used by:77 |
Symbol 73 Graphic | Used by:77 | |
Symbol 74 Graphic | Used by:77 | |
Symbol 75 Graphic | Used by:77 | |
Symbol 76 Graphic | Used by:77 | |
Symbol 77 MovieClip | Uses:58 62 67 68 69 70 71 72 73 74 75 76 | Used by:79 |
Symbol 78 Graphic | Used by:79 | |
Symbol 79 MovieClip | Uses:57 77 78 | Used by:80 |
Symbol 80 MovieClip | Uses:35 51 56 79 | Used by:Timeline |
Symbol 367 MovieClip [__Packages.site.Main] | ||
Symbol 368 MovieClip [__Packages.site.Base] | ||
Symbol 369 MovieClip [__Packages.com.mammoth.xml.Data] | ||
Symbol 370 MovieClip [__Packages.com.mammoth.xml.ObjectXML] | ||
Symbol 371 MovieClip [__Packages.com.mammoth.xml.DynamicXML] | ||
Symbol 372 MovieClip [__Packages.com.mammoth.util.Callback] | ||
Symbol 373 MovieClip [__Packages.com.mammoth.util.ArrayList] | ||
Symbol 374 MovieClip [__Packages.com.mammoth.util.Convert] | ||
Symbol 375 MovieClip [__Packages.com.mammoth.AnimationManager] | ||
Symbol 376 MovieClip [__Packages.site.Preloader] | ||
Symbol 377 MovieClip [__Packages.com.mammoth.FullClip] | ||
Symbol 378 MovieClip [__Packages.com.mammoth.Drawing] | ||
Symbol 379 MovieClip [__Packages.com.mammoth.util.Equation] | ||
Symbol 380 MovieClip [__Packages.com.mammoth.animation.ManagedAnimation] | ||
Symbol 381 MovieClip [__Packages.com.mammoth.animation.Motion] | ||
Symbol 382 MovieClip [__Packages.com.mammoth.animation.Mix] | ||
Symbol 383 MovieClip [__Packages.com.mammoth.animation.Redraw] | ||
Symbol 384 MovieClip [__Packages.com.mammoth.animation.Tint] | ||
Symbol 385 MovieClip [__Packages.com.mammoth.animation.Burn] | ||
Symbol 386 MovieClip [__Packages.com.mammoth.animation.Dodge] | ||
Symbol 387 MovieClip [__Packages.com.mammoth.animation.Blur] | ||
Symbol 388 MovieClip [__Packages.com.mammoth.animation.Glow] | ||
Symbol 389 MovieClip [__Packages.com.mammoth.animation.Drop] | ||
Symbol 390 MovieClip [__Packages.com.mammoth.animation.DisplacementMap] | ||
Symbol 391 MovieClip [__Packages.site.Home] | ||
Symbol 392 MovieClip [__Packages.site.SoundManager] | ||
Symbol 393 MovieClip [__Packages.site.components.MAINView] | ||
Symbol 394 MovieClip [__Packages.site.components.MAINLoader] | ||
Symbol 395 MovieClip [__Packages.site.components.MAINMenu] | ||
Symbol 396 MovieClip [__Packages.site.components.MAINBG] | ||
Symbol 397 MovieClip [__Packages.site.components.MAINPage] | ||
Symbol 398 MovieClip [__Packages.com.mammoth.text.Field] | ||
Symbol 399 MovieClip [__Packages.site.components.MAINSplash] | ||
Symbol 400 MovieClip [__Packages.site.components.MAINBeta] | ||
Symbol 401 MovieClip [__Packages.site.components.MAINRomeo] | ||
Symbol 402 MovieClip [__Packages.site.components.MAINRope] | ||
Symbol 403 MovieClip [__Packages.site.components.MAINTimer] | ||
Symbol 404 MovieClip [__Packages.site.components.MAINScreen] | ||
Symbol 405 MovieClip [__Packages.site.components.MAINScreenEnd] | ||
Symbol 406 MovieClip [__Packages.site.components.MAINRomeoBonus] | ||
Symbol 407 MovieClip [__Packages.site.components.MAINRomeoNeg] | ||
Symbol 408 MovieClip [__Packages.site.components.MAINScore] | ||
Symbol 409 MovieClip [__Packages.site.components.MAINScreenInstructions] | ||
Symbol 410 MovieClip [__Packages.site.components.MAINNav] | ||
Symbol 13 MovieClip [__Packages.mx.video.FLVPlayback] | ||
Symbol 22 MovieClip [__Packages.mx.video.VideoPlayer] | ||
Symbol 23 MovieClip [__Packages.mx.video.INCManager] | ||
Symbol 24 MovieClip [__Packages.mx.events.EventDispatcher] | ||
Symbol 25 MovieClip [__Packages.mx.video.VideoError] | ||
Symbol 26 MovieClip [__Packages.mx.video.UIManager] | ||
Symbol 27 MovieClip [__Packages.mx.utils.Delegate] | ||
Symbol 28 MovieClip [__Packages.mx.video.SMILManager] | ||
Symbol 29 MovieClip [__Packages.mx.video.NCManager] | ||
Symbol 30 MovieClip [__Packages.mx.video.CuePointManager] | ||
Symbol 81 MovieClip [MAINNav] | Used by:366 | |
Symbol 82 MovieClip [MAINMenu] | Used by:366 | |
Symbol 83 MovieClip [MAINBG] | Used by:366 | |
Symbol 84 MovieClip [MAINPage] | Used by:366 | |
Symbol 85 Bitmap | Used by:86 192 | |
Symbol 86 Graphic | Uses:85 | Used by:89 |
Symbol 87 Graphic | Used by:88 | |
Symbol 88 MovieClip | Uses:87 | Used by:89 123 124 |
Symbol 89 MovieClip [bg.mc] | Uses:86 88 | Used by:366 |
Symbol 90 MovieClip [MAINSplash] | Used by:366 | |
Symbol 91 MovieClip [MAINBeta] | Used by:366 | |
Symbol 92 MovieClip [MAINRomeo] | Used by:366 | |
Symbol 93 Bitmap | Used by:94 | |
Symbol 94 Graphic | Uses:93 | Used by:95 |
Symbol 95 MovieClip | Uses:94 | Used by:96 366 |
Symbol 96 MovieClip [romeo] | Uses:5 95 10 | Used by:366 |
Symbol 97 MovieClip [MAINRope] | Used by:366 | |
Symbol 98 Graphic | Used by:113 157 | |
Symbol 99 Graphic | Used by:113 157 | |
Symbol 100 Graphic | Used by:113 157 | |
Symbol 101 Graphic | Used by:113 157 | |
Symbol 102 Graphic | Used by:113 157 | |
Symbol 103 Graphic | Used by:113 157 | |
Symbol 104 Graphic | Used by:113 157 | |
Symbol 105 Graphic | Used by:113 157 | |
Symbol 106 Graphic | Used by:113 157 | |
Symbol 107 Graphic | Used by:113 157 | |
Symbol 108 Graphic | Used by:113 157 | |
Symbol 109 Graphic | Used by:113 157 | |
Symbol 110 Graphic | Used by:113 157 | |
Symbol 111 Graphic | Used by:113 157 | |
Symbol 112 Graphic | Used by:113 157 | |
Symbol 113 MovieClip [rope.flung] | Uses:98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | Used by:366 |
Symbol 114 Bitmap | Used by:115 | |
Symbol 115 Graphic | Uses:114 | Used by:116 |
Symbol 116 MovieClip [logo] | Uses:115 | Used by:366 |
Symbol 117 Graphic | Used by:120 | |
Symbol 118 Graphic | Used by:119 | |
Symbol 119 MovieClip | Uses:118 | Used by:120 |
Symbol 120 MovieClip | Uses:117 119 | Used by:121 |
Symbol 121 MovieClip [foreground] | Uses:120 | Used by:366 |
Symbol 122 MovieClip [MAINTimer] | Used by:366 | |
Symbol 123 MovieClip | Uses:88 | Used by:124 |
Symbol 124 MovieClip [clouds] | Uses:88 123 | Used by:366 |
Symbol 125 MovieClip [MAINScreen] | Used by:366 | |
Symbol 126 MovieClip [MAINScreenEnd] | Used by:366 | |
Symbol 127 MovieClip [MAINRomeoBonus] | Used by:366 | |
Symbol 128 Bitmap | Used by:129 192 | |
Symbol 129 Graphic | Uses:128 | Used by:136 |
Symbol 130 Bitmap | Used by:131 | |
Symbol 131 Graphic | Uses:130 | Used by:132 134 |
Symbol 132 MovieClip | Uses:131 | Used by:134 |
Symbol 133 Graphic | Used by:134 | |
Symbol 134 Button | Uses:132 133 131 | Used by:136 |
Symbol 135 Graphic | Used by:136 | |
Symbol 136 MovieClip [sidepanel] | Uses:129 134 135 | Used by:366 |
Symbol 137 Bitmap | Used by:138 | |
Symbol 138 Graphic | Uses:137 | Used by:139 |
Symbol 139 MovieClip | Uses:138 | Used by:140 366 |
Symbol 140 MovieClip [romeo_bonus] | Uses:5 139 | Used by:366 |
Symbol 141 MovieClip [MAINRomeoNeg] | Used by:366 | |
Symbol 142 Graphic | Used by:145 | |
Symbol 143 Bitmap | Used by:144 | |
Symbol 144 Graphic | Uses:143 | Used by:145 |
Symbol 145 MovieClip | Uses:142 144 | Used by:156 |
Symbol 146 Graphic | Used by:147 | |
Symbol 147 MovieClip | Uses:146 | Used by:156 |
Symbol 148 Bitmap | Used by:149 | |
Symbol 149 Graphic | Uses:148 | Used by:156 |
Symbol 150 Bitmap | Used by:151 | |
Symbol 151 Graphic | Uses:150 | Used by:156 |
Symbol 152 Graphic | Used by:155 | |
Symbol 153 Bitmap | Used by:154 | |
Symbol 154 Graphic | Uses:153 | Used by:155 |
Symbol 155 MovieClip | Uses:152 154 | Used by:156 |
Symbol 156 MovieClip [beta] | Uses:145 147 149 151 155 | Used by:157 366 |
Symbol 157 MovieClip [beta.catch] | Uses:156 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | Used by:366 |
Symbol 158 Graphic | Used by:159 | |
Symbol 159 MovieClip | Uses:158 | Used by:193 |
Symbol 160 ShapeTweening | Used by:193 | |
Symbol 161 Bitmap | Used by:162 | |
Symbol 162 Graphic | Uses:161 | Used by:193 |
Symbol 163 Font | Used by:164 | |
Symbol 164 Text | Uses:163 | Used by:193 |
Symbol 165 Graphic | Used by:193 | |
Symbol 166 Bitmap | Used by:167 | |
Symbol 167 Graphic | Uses:166 | Used by:168 |
Symbol 168 MovieClip | Uses:167 | Used by:193 |
Symbol 169 Bitmap | Used by:170 | |
Symbol 170 Graphic | Uses:169 | Used by:171 |
Symbol 171 MovieClip | Uses:170 | Used by:193 |
Symbol 172 Sound [beta_catch_rope.wav] | Used by:193 366 | |
Symbol 173 Bitmap | Used by:174 | |
Symbol 174 Graphic | Uses:173 | Used by:180 188 |
Symbol 175 Bitmap | Used by:176 | |
Symbol 176 Graphic | Uses:175 | Used by:180 188 |
Symbol 177 Bitmap | Used by:178 | |
Symbol 178 Graphic | Uses:177 | Used by:180 188 |
Symbol 179 Sound | Used by:180 187 188 189 | |
Symbol 180 Button | Uses:174 176 178 179 | Used by:193 |
Symbol 181 Bitmap | Used by:182 | |
Symbol 182 Graphic | Uses:181 | Used by:187 189 |
Symbol 183 Bitmap | Used by:184 | |
Symbol 184 Graphic | Uses:183 | Used by:187 189 |
Symbol 185 Bitmap | Used by:186 | |
Symbol 186 Graphic | Uses:185 | Used by:187 189 |
Symbol 187 Button | Uses:182 184 186 179 | Used by:193 |
Symbol 188 Button | Uses:174 176 178 179 | Used by:193 |
Symbol 189 Button | Uses:182 184 186 179 | Used by:193 |
Symbol 190 ShapeTweening | Used by:193 | |
Symbol 191 ShapeTweening | Used by:193 | |
Symbol 192 Graphic | Uses:128 85 | Used by:193 |
Symbol 193 MovieClip [GAME_INTRO] | Uses:159 160 162 164 165 168 171 172 180 187 188 189 190 191 192 SS1 | Used by:366 |
Symbol 194 MovieClip [MAINScore] | Used by:366 | |
Symbol 195 EditableText | Uses:1 | Used by:198 |
Symbol 196 Graphic | Used by:197 | |
Symbol 197 MovieClip | Uses:196 | Used by:198 |
Symbol 198 MovieClip [score] | Uses:195 197 | Used by:366 |
Symbol 199 EditableText | Uses:1 | Used by:202 |
Symbol 200 Graphic | Used by:201 | |
Symbol 201 MovieClip | Uses:200 | Used by:202 |
Symbol 202 MovieClip [timer] | Uses:199 201 | Used by:366 |
Symbol 203 Graphic | Used by:205 211 | |
Symbol 204 Text | Uses:1 | Used by:205 |
Symbol 205 MovieClip [splash.start] | Uses:203 204 | Used by:366 |
Symbol 206 Font | Used by:207 208 212 213 214 220 | |
Symbol 207 Text | Uses:206 | Used by:215 |
Symbol 208 EditableText | Uses:206 | Used by:215 |
Symbol 209 Text | Uses:1 | Used by:211 |
Symbol 210 Text | Uses:1 | Used by:211 |
Symbol 211 MovieClip | Uses:203 209 210 | Used by:215 |
Symbol 212 EditableText | Uses:206 | Used by:215 |
Symbol 213 Text | Uses:206 | Used by:215 |
Symbol 214 EditableText | Uses:206 | Used by:215 |
Symbol 215 MovieClip [screen.end.content] | Uses:207 208 211 212 213 214 | Used by:366 |
Symbol 216 Graphic | Used by:218 | |
Symbol 217 Text | Uses:1 | Used by:218 |
Symbol 218 MovieClip | Uses:216 217 | Used by:233 |
Symbol 219 Font | Used by:220 | |
Symbol 220 Text | Uses:206 219 | Used by:233 |
Symbol 221 Graphic | Used by:226 229 | |
Symbol 222 Bitmap | Used by:223 | |
Symbol 223 Graphic | Uses:222 | Used by:226 |
Symbol 224 Graphic | Used by:225 | |
Symbol 225 MovieClip | Uses:224 | Used by:226 229 |
Symbol 226 MovieClip | Uses:221 223 225 | Used by:233 |
Symbol 227 Bitmap | Used by:228 | |
Symbol 228 Graphic | Uses:227 | Used by:229 |
Symbol 229 MovieClip | Uses:221 228 225 | Used by:233 |
Symbol 230 Font | Used by:231 232 | |
Symbol 231 Text | Uses:230 | Used by:233 |
Symbol 232 Text | Uses:230 | Used by:233 |
Symbol 233 MovieClip [screen.instructions.content] | Uses:218 220 226 229 231 232 | Used by:366 |
Symbol 234 MovieClip [MAINScreenInstructions] | Used by:366 | |
Symbol 235 Graphic | Used by:238 | |
Symbol 236 Graphic | Used by:237 | |
Symbol 237 MovieClip | Uses:236 | Used by:238 |
Symbol 238 MovieClip [drag_instruction] | Uses:235 237 | Used by:366 |
Symbol 239 EditableText | Uses:1 | Used by:242 |
Symbol 240 Graphic | Used by:241 | |
Symbol 241 MovieClip | Uses:240 | Used by:242 |
Symbol 242 MovieClip [gamelevel] | Uses:239 241 | Used by:366 |
Symbol 243 Bitmap | Used by:244 | |
Symbol 244 Graphic | Uses:243 | Used by:245 |
Symbol 245 MovieClip | Uses:244 | Used by:288 |
Symbol 246 Sound | Used by:288 | |
Symbol 247 Bitmap | Used by:248 | |
Symbol 248 Graphic | Uses:247 | Used by:254 269 286 |
Symbol 249 Bitmap | Used by:250 | |
Symbol 250 Graphic | Uses:249 | Used by:254 269 286 |
Symbol 251 Bitmap | Used by:252 | |
Symbol 252 Graphic | Uses:251 | Used by:254 269 286 |
Symbol 253 Sound | Used by:254 269 276 286 287 | |
Symbol 254 Button | Uses:248 250 252 253 | Used by:288 |
Symbol 255 Bitmap | Used by:256 | |
Symbol 256 Graphic | Uses:255 | Used by:268 285 |
Symbol 257 Font | Used by:258 259 260 261 277 278 279 280 | |
Symbol 258 Text | Uses:257 | Used by:268 |
Symbol 259 Text | Uses:257 | Used by:268 |
Symbol 260 Text | Uses:257 | Used by:268 |
Symbol 261 Text | Uses:257 | Used by:268 |
Symbol 262 Bitmap | Used by:265 | |
Symbol 263 Bitmap | Used by:265 | |
Symbol 264 Bitmap | Used by:265 | |
Symbol 265 Graphic | Uses:262 263 264 | Used by:268 |
Symbol 266 Graphic | Used by:267 | |
Symbol 267 Button | Uses:266 | Used by:268 285 |
Symbol 268 MovieClip | Uses:256 258 259 260 261 265 267 | Used by:288 |
Symbol 269 Button | Uses:248 250 252 253 | Used by:288 |
Symbol 270 Bitmap | Used by:271 | |
Symbol 271 Graphic | Uses:270 | Used by:276 287 |
Symbol 272 Bitmap | Used by:273 | |
Symbol 273 Graphic | Uses:272 | Used by:276 287 |
Symbol 274 Bitmap | Used by:275 | |
Symbol 275 Graphic | Uses:274 | Used by:276 287 |
Symbol 276 Button | Uses:271 273 275 253 | Used by:288 |
Symbol 277 Text | Uses:257 | Used by:285 |
Symbol 278 Text | Uses:257 | Used by:285 |
Symbol 279 Text | Uses:257 | Used by:285 |
Symbol 280 Text | Uses:257 | Used by:285 |
Symbol 281 Bitmap | Used by:284 | |
Symbol 282 Bitmap | Used by:284 | |
Symbol 283 Bitmap | Used by:284 | |
Symbol 284 Graphic | Uses:281 282 283 | Used by:285 |
Symbol 285 MovieClip | Uses:256 277 278 279 280 284 267 | Used by:288 |
Symbol 286 Button | Uses:248 250 252 253 | Used by:288 |
Symbol 287 Button | Uses:271 273 275 253 | Used by:288 |
Symbol 288 MovieClip [mc_howToPlay] | Uses:245 246 254 268 269 276 285 286 287 | Used by:366 |
Symbol 289 Bitmap | Used by:290 | |
Symbol 290 Graphic | Uses:289 | Used by:291 |
Symbol 291 MovieClip | Uses:290 | Used by:309 |
Symbol 292 Sound | Used by:309 | |
Symbol 293 Bitmap | Used by:294 | |
Symbol 294 Graphic | Uses:293 | Used by:300 304 308 |
Symbol 295 Bitmap | Used by:296 | |
Symbol 296 Graphic | Uses:295 | Used by:300 304 308 |
Symbol 297 Bitmap | Used by:298 | |
Symbol 298 Graphic | Uses:297 | Used by:300 304 308 |
Symbol 299 Sound | Used by:300 304 308 | |
Symbol 300 Button | Uses:294 296 298 299 | Used by:309 |
Symbol 301 Bitmap | Used by:302 | |
Symbol 302 Graphic | Uses:301 | Used by:303 |
Symbol 303 MovieClip | Uses:302 | Used by:309 |
Symbol 304 Button | Uses:294 296 298 299 | Used by:309 |
Symbol 305 Bitmap | Used by:306 | |
Symbol 306 Graphic | Uses:305 | Used by:307 |
Symbol 307 MovieClip | Uses:306 | Used by:309 |
Symbol 308 Button | Uses:294 296 298 299 | Used by:309 |
Symbol 309 MovieClip [mc_levels] | Uses:291 292 300 303 304 307 308 | Used by:366 |
Symbol 310 Bitmap | Used by:311 | |
Symbol 311 Graphic | Uses:310 | Used by:326 338 |
Symbol 312 Text | Uses:1 | Used by:326 |
Symbol 313 Font | Used by:314 315 | |
Symbol 314 Text | Uses:313 | Used by:326 |
Symbol 315 Text | Uses:313 | Used by:326 |
Symbol 316 EditableText | Uses:1 | Used by:326 |
Symbol 317 Bitmap | Used by:318 | |
Symbol 318 Graphic | Uses:317 | Used by:319 321 |
Symbol 319 MovieClip | Uses:318 | Used by:321 |
Symbol 320 Graphic | Used by:321 325 330 | |
Symbol 321 Button | Uses:319 320 318 | Used by:326 |
Symbol 322 Bitmap | Used by:323 | |
Symbol 323 Graphic | Uses:322 | Used by:324 325 330 |
Symbol 324 MovieClip | Uses:323 | Used by:325 330 |
Symbol 325 Button | Uses:324 320 323 | Used by:326 |
Symbol 326 MovieClip | Uses:311 312 314 315 316 321 325 | Used by:339 |
Symbol 327 Sound | Used by:339 | |
Symbol 328 Text | Uses:1 | Used by:338 |
Symbol 329 Text | Uses:1 | Used by:338 |
Symbol 330 Button | Uses:324 320 323 | Used by:338 |
Symbol 331 Bitmap | Used by:332 | |
Symbol 332 Graphic | Uses:331 | Used by:333 335 |
Symbol 333 MovieClip | Uses:332 | Used by:335 |
Symbol 334 Graphic | Used by:335 | |
Symbol 335 Button | Uses:333 334 332 | Used by:338 |
Symbol 336 Bitmap | Used by:337 | |
Symbol 337 Graphic | Uses:336 | Used by:338 |
Symbol 338 MovieClip | Uses:311 328 329 330 335 337 | Used by:339 |
Symbol 339 MovieClip [mc_end] | Uses:326 327 338 | Used by:366 |
Symbol 340 Graphic | Used by:341 | |
Symbol 341 MovieClip | Uses:340 | Used by:348 |
Symbol 342 Bitmap | Used by:343 | |
Symbol 343 Graphic | Uses:342 | Used by:344 |
Symbol 344 MovieClip | Uses:343 | Used by:348 |
Symbol 345 Graphic | Used by:346 347 | |
Symbol 346 MovieClip | Uses:345 | Used by:347 |
Symbol 347 Button | Uses:346 345 | Used by:348 |
Symbol 348 MovieClip [mc_video] | Uses:341 344 347 21 | Used by:366 |
Symbol 349 Sound [bang.wav] | Used by:366 | |
Symbol 350 Sound [ending.wav] | Used by:366 | |
Symbol 351 Sound [flap.wav] | Used by:366 | |
Symbol 352 Sound [nature.wav] | Used by:366 | |
Symbol 353 Sound [beta_fall.wav] | Used by:366 | |
Symbol 354 Sound [beta_launch.wav] | Used by:366 | |
Symbol 355 Sound [end_gesture.mp3] | Used by:366 | |
Symbol 356 Sound [flexit_2.mp3] | Used by:366 | |
Symbol 357 Sound [ball_shake.mp3] | Used by:366 | |
Symbol 358 Sound [sound_bed.wav] | Used by:366 | |
Symbol 359 Sound [clang.wav] | Used by:366 | |
Symbol 360 Sound [button.wav] | Used by:366 | |
Symbol 361 Sound [window_shrink.wav] | Used by:366 | |
Symbol 362 Sound [stretch.wav] | Used by:366 | |
Symbol 363 Sound [beta_in.wav] | Used by:366 | |
Symbol 364 Sound [beta_out.wav] | Used by:366 | |
Symbol 365 Sound [title_in.wav] | Used by:366 | |
Symbol 366 MovieClip | Uses:12 81 82 83 84 89 90 91 92 96 97 113 116 121 122 124 125 126 127 136 140 11 141 95 8 139 156 157 193 194 198 202 205 215 233 234 238 242 288 309 339 348 349 350 351 352 172 353 354 355 356 357 358 359 360 361 362 363 364 365 | Used by:Timeline |
Streaming Sound 1 | Used by:Symbol 193 MovieClip [GAME_INTRO] |
Instance Names
"hit_area" | Symbol 11 MovieClip [romeo_neg] Frame 1 | Symbol 5 MovieClip |
"_video" | Symbol 17 MovieClip [VideoPlayer] Frame 1 | Symbol 16 Video |
"boundingBox_mc" | Symbol 21 MovieClip [FLVPlayback] Frame 1 | Symbol 15 MovieClip |
"mcAd" | Symbol 67 MovieClip Frame 1 | Symbol 65 MovieClip |
"mcLoading" | Symbol 79 MovieClip Frame 1 | Symbol 77 MovieClip |
"mcLoading" | Symbol 79 MovieClip Frame 11 | Symbol 77 MovieClip |
"mcBackground" | Symbol 80 MovieClip Frame 1 | Symbol 35 MovieClip |
"mcAnimation" | Symbol 80 MovieClip Frame 1 | Symbol 51 MovieClip |
"mcIntro" | Symbol 80 MovieClip Frame 1 | Symbol 56 MovieClip |
"mcLoadingAnimated" | Symbol 80 MovieClip Frame 2 | Symbol 79 MovieClip |
"hit_area" | Symbol 96 MovieClip [romeo] Frame 1 | Symbol 5 MovieClip |
"hit_area" | Symbol 140 MovieClip [romeo_bonus] Frame 1 | Symbol 5 MovieClip |
"hit_area" | Symbol 156 MovieClip [beta] Frame 1 | Symbol 147 MovieClip |
"score_display" | Symbol 198 MovieClip [score] Frame 1 | Symbol 195 EditableText |
"timer_display" | Symbol 202 MovieClip [timer] Frame 1 | Symbol 199 EditableText |
"score_display" | Symbol 215 MovieClip [screen.end.content] Frame 1 | Symbol 208 EditableText |
"play_again" | Symbol 215 MovieClip [screen.end.content] Frame 1 | Symbol 211 MovieClip |
"high_score_display" | Symbol 215 MovieClip [screen.end.content] Frame 1 | Symbol 212 EditableText |
"msg_display" | Symbol 215 MovieClip [screen.end.content] Frame 1 | Symbol 214 EditableText |
"ok" | Symbol 233 MovieClip [screen.instructions.content] Frame 1 | Symbol 218 MovieClip |
"level_display" | Symbol 242 MovieClip [gamelevel] Frame 1 | Symbol 239 EditableText |
"msg_display" | Symbol 339 MovieClip [mc_end] Frame 1 | Symbol 326 MovieClip |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS1/AS2. |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "MAINLoader" |
ExportAssets (56) | Timeline Frame 1 | Symbol 11 as "romeo_neg" |
ExportAssets (56) | Timeline Frame 1 | Symbol 12 as "MAINView" |
ExportAssets (56) | Timeline Frame 1 | Symbol 17 as "VideoPlayer" |
ExportAssets (56) | Timeline Frame 1 | Symbol 20 as "Icon" |
ExportAssets (56) | Timeline Frame 1 | Symbol 21 as "FLVPlayback" |
ExportAssets (56) | Timeline Frame 1 | Symbol 367 as "__Packages.site.Main" |
ExportAssets (56) | Timeline Frame 1 | Symbol 368 as "__Packages.site.Base" |
ExportAssets (56) | Timeline Frame 1 | Symbol 369 as "__Packages.com.mammoth.xml.Data" |
ExportAssets (56) | Timeline Frame 1 | Symbol 370 as "__Packages.com.mammoth.xml.ObjectXML" |
ExportAssets (56) | Timeline Frame 1 | Symbol 371 as "__Packages.com.mammoth.xml.DynamicXML" |
ExportAssets (56) | Timeline Frame 1 | Symbol 372 as "__Packages.com.mammoth.util.Callback" |
ExportAssets (56) | Timeline Frame 1 | Symbol 373 as "__Packages.com.mammoth.util.ArrayList" |
ExportAssets (56) | Timeline Frame 1 | Symbol 374 as "__Packages.com.mammoth.util.Convert" |
ExportAssets (56) | Timeline Frame 1 | Symbol 375 as "__Packages.com.mammoth.AnimationManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 376 as "__Packages.site.Preloader" |
ExportAssets (56) | Timeline Frame 1 | Symbol 377 as "__Packages.com.mammoth.FullClip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 378 as "__Packages.com.mammoth.Drawing" |
ExportAssets (56) | Timeline Frame 1 | Symbol 379 as "__Packages.com.mammoth.util.Equation" |
ExportAssets (56) | Timeline Frame 1 | Symbol 380 as "__Packages.com.mammoth.animation.ManagedAnimation" |
ExportAssets (56) | Timeline Frame 1 | Symbol 381 as "__Packages.com.mammoth.animation.Motion" |
ExportAssets (56) | Timeline Frame 1 | Symbol 382 as "__Packages.com.mammoth.animation.Mix" |
ExportAssets (56) | Timeline Frame 1 | Symbol 383 as "__Packages.com.mammoth.animation.Redraw" |
ExportAssets (56) | Timeline Frame 1 | Symbol 384 as "__Packages.com.mammoth.animation.Tint" |
ExportAssets (56) | Timeline Frame 1 | Symbol 385 as "__Packages.com.mammoth.animation.Burn" |
ExportAssets (56) | Timeline Frame 1 | Symbol 386 as "__Packages.com.mammoth.animation.Dodge" |
ExportAssets (56) | Timeline Frame 1 | Symbol 387 as "__Packages.com.mammoth.animation.Blur" |
ExportAssets (56) | Timeline Frame 1 | Symbol 388 as "__Packages.com.mammoth.animation.Glow" |
ExportAssets (56) | Timeline Frame 1 | Symbol 389 as "__Packages.com.mammoth.animation.Drop" |
ExportAssets (56) | Timeline Frame 1 | Symbol 390 as "__Packages.com.mammoth.animation.DisplacementMap" |
ExportAssets (56) | Timeline Frame 1 | Symbol 391 as "__Packages.site.Home" |
ExportAssets (56) | Timeline Frame 1 | Symbol 392 as "__Packages.site.SoundManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 393 as "__Packages.site.components.MAINView" |
ExportAssets (56) | Timeline Frame 1 | Symbol 394 as "__Packages.site.components.MAINLoader" |
ExportAssets (56) | Timeline Frame 1 | Symbol 395 as "__Packages.site.components.MAINMenu" |
ExportAssets (56) | Timeline Frame 1 | Symbol 396 as "__Packages.site.components.MAINBG" |
ExportAssets (56) | Timeline Frame 1 | Symbol 397 as "__Packages.site.components.MAINPage" |
ExportAssets (56) | Timeline Frame 1 | Symbol 398 as "__Packages.com.mammoth.text.Field" |
ExportAssets (56) | Timeline Frame 1 | Symbol 399 as "__Packages.site.components.MAINSplash" |
ExportAssets (56) | Timeline Frame 1 | Symbol 400 as "__Packages.site.components.MAINBeta" |
ExportAssets (56) | Timeline Frame 1 | Symbol 401 as "__Packages.site.components.MAINRomeo" |
ExportAssets (56) | Timeline Frame 1 | Symbol 402 as "__Packages.site.components.MAINRope" |
ExportAssets (56) | Timeline Frame 1 | Symbol 403 as "__Packages.site.components.MAINTimer" |
ExportAssets (56) | Timeline Frame 1 | Symbol 404 as "__Packages.site.components.MAINScreen" |
ExportAssets (56) | Timeline Frame 1 | Symbol 405 as "__Packages.site.components.MAINScreenEnd" |
ExportAssets (56) | Timeline Frame 1 | Symbol 406 as "__Packages.site.components.MAINRomeoBonus" |
ExportAssets (56) | Timeline Frame 1 | Symbol 407 as "__Packages.site.components.MAINRomeoNeg" |
ExportAssets (56) | Timeline Frame 1 | Symbol 408 as "__Packages.site.components.MAINScore" |
ExportAssets (56) | Timeline Frame 1 | Symbol 409 as "__Packages.site.components.MAINScreenInstructions" |
ExportAssets (56) | Timeline Frame 1 | Symbol 410 as "__Packages.site.components.MAINNav" |
ExportAssets (56) | Timeline Frame 1 | Symbol 13 as "__Packages.mx.video.FLVPlayback" |
ExportAssets (56) | Timeline Frame 1 | Symbol 22 as "__Packages.mx.video.VideoPlayer" |
ExportAssets (56) | Timeline Frame 1 | Symbol 23 as "__Packages.mx.video.INCManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 24 as "__Packages.mx.events.EventDispatcher" |
ExportAssets (56) | Timeline Frame 1 | Symbol 25 as "__Packages.mx.video.VideoError" |
ExportAssets (56) | Timeline Frame 1 | Symbol 26 as "__Packages.mx.video.UIManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 27 as "__Packages.mx.utils.Delegate" |
ExportAssets (56) | Timeline Frame 1 | Symbol 28 as "__Packages.mx.video.SMILManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 29 as "__Packages.mx.video.NCManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 30 as "__Packages.mx.video.CuePointManager" |
ExportAssets (56) | Timeline Frame 2 | Symbol 81 as "MAINNav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 82 as "MAINMenu" |
ExportAssets (56) | Timeline Frame 2 | Symbol 83 as "MAINBG" |
ExportAssets (56) | Timeline Frame 2 | Symbol 84 as "MAINPage" |
ExportAssets (56) | Timeline Frame 2 | Symbol 89 as "bg.mc" |
ExportAssets (56) | Timeline Frame 2 | Symbol 90 as "MAINSplash" |
ExportAssets (56) | Timeline Frame 2 | Symbol 91 as "MAINBeta" |
ExportAssets (56) | Timeline Frame 2 | Symbol 92 as "MAINRomeo" |
ExportAssets (56) | Timeline Frame 2 | Symbol 96 as "romeo" |
ExportAssets (56) | Timeline Frame 2 | Symbol 97 as "MAINRope" |
ExportAssets (56) | Timeline Frame 2 | Symbol 113 as "rope.flung" |
ExportAssets (56) | Timeline Frame 2 | Symbol 116 as "logo" |
ExportAssets (56) | Timeline Frame 2 | Symbol 121 as "foreground" |
ExportAssets (56) | Timeline Frame 2 | Symbol 122 as "MAINTimer" |
ExportAssets (56) | Timeline Frame 2 | Symbol 124 as "clouds" |
ExportAssets (56) | Timeline Frame 2 | Symbol 125 as "MAINScreen" |
ExportAssets (56) | Timeline Frame 2 | Symbol 126 as "MAINScreenEnd" |
ExportAssets (56) | Timeline Frame 2 | Symbol 127 as "MAINRomeoBonus" |
ExportAssets (56) | Timeline Frame 2 | Symbol 136 as "sidepanel" |
ExportAssets (56) | Timeline Frame 2 | Symbol 140 as "romeo_bonus" |
ExportAssets (56) | Timeline Frame 2 | Symbol 141 as "MAINRomeoNeg" |
ExportAssets (56) | Timeline Frame 2 | Symbol 156 as "beta" |
ExportAssets (56) | Timeline Frame 2 | Symbol 157 as "beta.catch" |
ExportAssets (56) | Timeline Frame 2 | Symbol 172 as "beta_catch_rope.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 193 as "GAME_INTRO" |
ExportAssets (56) | Timeline Frame 2 | Symbol 194 as "MAINScore" |
ExportAssets (56) | Timeline Frame 2 | Symbol 198 as "score" |
ExportAssets (56) | Timeline Frame 2 | Symbol 202 as "timer" |
ExportAssets (56) | Timeline Frame 2 | Symbol 205 as "splash.start" |
ExportAssets (56) | Timeline Frame 2 | Symbol 215 as "screen.end.content" |
ExportAssets (56) | Timeline Frame 2 | Symbol 233 as "screen.instructions.content" |
ExportAssets (56) | Timeline Frame 2 | Symbol 234 as "MAINScreenInstructions" |
ExportAssets (56) | Timeline Frame 2 | Symbol 238 as "drag_instruction" |
ExportAssets (56) | Timeline Frame 2 | Symbol 242 as "gamelevel" |
ExportAssets (56) | Timeline Frame 2 | Symbol 288 as "mc_howToPlay" |
ExportAssets (56) | Timeline Frame 2 | Symbol 309 as "mc_levels" |
ExportAssets (56) | Timeline Frame 2 | Symbol 339 as "mc_end" |
ExportAssets (56) | Timeline Frame 2 | Symbol 348 as "mc_video" |
ExportAssets (56) | Timeline Frame 2 | Symbol 349 as "bang.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 350 as "ending.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 351 as "flap.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 352 as "nature.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 353 as "beta_fall.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 354 as "beta_launch.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 355 as "end_gesture.mp3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 356 as "flexit_2.mp3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 357 as "ball_shake.mp3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 358 as "sound_bed.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 359 as "clang.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 360 as "button.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 361 as "window_shrink.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 362 as "stretch.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 363 as "beta_in.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 364 as "beta_out.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 365 as "title_in.wav" |
EnableDebugger2 (64) | Timeline Frame 1 | 31 bytes "..$1$k9$u4D/E3N2Nx.WC5X1Tl7Um.." |
DebugMX1 (63) | Timeline Frame 1 |
Labels
"loadAd" | Symbol 67 MovieClip Frame 2 |
"showAd" | Symbol 67 MovieClip Frame 12 |
"preload" | Symbol 80 MovieClip Frame 3 |
"out" | Symbol 193 MovieClip [GAME_INTRO] Frame 190 |
"htp1" | Symbol 288 MovieClip [mc_howToPlay] Frame 1 |
"htp2" | Symbol 288 MovieClip [mc_howToPlay] Frame 16 |
"htp3" | Symbol 288 MovieClip [mc_howToPlay] Frame 30 |
"htp4" | Symbol 288 MovieClip [mc_howToPlay] Frame 45 |
"level1" | Symbol 309 MovieClip [mc_levels] Frame 1 |
"l1_play" | Symbol 309 MovieClip [mc_levels] Frame 17 |
"level2" | Symbol 309 MovieClip [mc_levels] Frame 32 |
"l2_play" | Symbol 309 MovieClip [mc_levels] Frame 48 |
"level3" | Symbol 309 MovieClip [mc_levels] Frame 64 |
"l3_play" | Symbol 309 MovieClip [mc_levels] Frame 80 |
"unlucky" | Symbol 339 MovieClip [mc_end] Frame 1 |
"well_done" | Symbol 339 MovieClip [mc_end] Frame 17 |
"close" | Symbol 348 MovieClip [mc_video] Frame 20 |
Dynamic Text Variables
txtPercentLoaded2 | Symbol 69 EditableText | "The Game is loading (0%)" |
txtPercentLoaded2 | Symbol 72 EditableText | "The Game is loading (0%)" |
display_score | Symbol 316 EditableText | "<p align="center"><font face="Futura ExtraBold" size="36" color="#d7e83d" letterSpacing="-2.000000" kerning="0">320</font></p>" |
|