Frame 1
csMovieFPS = 10;
width = 1138;
height = 704;
fps = 10;
styleWrapper = 5;
com.techsmith.jing.Main.main(this);
Symbol 14 MovieClip [ReplayOver] Frame 5
stop();
Symbol 20 MovieClip [DownloadOver] Frame 5
stop();
Symbol 20480 MovieClip [__Packages.com.techsmith.ui.Movable] Frame 0
class com.techsmith.ui.Movable extends MovieClip
{
var _x, _y;
function Movable () {
super();
}
function move(x, y) {
_x = x;
_y = y;
}
}
Symbol 20481 MovieClip [__Packages.com.techsmith.events.IEventDispatcher] Frame 0
class com.techsmith.events.IEventDispatcher
{
function IEventDispatcher () {
}
}
Symbol 20482 MovieClip [__Packages.com.techsmith.ui.ComponentBase] Frame 0
class com.techsmith.ui.ComponentBase extends com.techsmith.ui.Movable implements com.techsmith.events.IEventDispatcher
{
var enabled, removeMovieClip, createTextField, _xscale, _yscale, _visible, _alpha, _width, _height, _x, _y;
function ComponentBase () {
super();
dispatcher = new com.techsmith.events.EventDispatcher();
}
static function create(container, name, depth, init) {
Object.registerClass("ComponentBase", com.techsmith.ui.ComponentBase);
var _local6 = container.attachMovie("ComponentBase", name, depth, init);
return(com.techsmith.ui.ComponentBase(_local6));
}
function setEnabled(val) {
enabled = val;
}
function init() {
}
function setSize(w, h) {
}
function setText(t) {
}
function size() {
}
function destroy() {
removeAllListeners();
delete dispatcher;
removeMovieClip(this);
}
function onUnload() {
destroy();
}
function createLabel(id, init, props) {
createTextField(id, init.depth, init.x, init.y, init.w, init.h);
var _local5 = this[id];
for (var i in props) {
_local5[i] = props[i];
}
return(_local5);
}
function setScale(xscale, yscale) {
_xscale = xscale;
_yscale = yscale;
}
function setVisible(visible) {
_visible = visible;
}
function setOpacity(percent) {
_alpha = percent;
}
function getDimensions() {
return(new com.techsmith.utils.Dimension(_width, _height));
}
function getLocation() {
return(new com.techsmith.utils.Point(_x, _y));
}
function addEventListener(event, scope) {
dispatcher.addEventListener(event, scope);
}
function removeEventListener(event, scope) {
dispatcher.removeEventListener(event, scope);
}
function dispatchEvent(eventObj) {
dispatcher.dispatchEvent(eventObj);
}
function removeEventListeners(event) {
dispatcher.removeEventListeners(event);
}
function removeAllListeners() {
dispatcher.removeAllListeners();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get x() {
return(_x);
}
function get y() {
return(_y);
}
var dispatcher = null;
}
Symbol 20483 MovieClip [__Packages.com.techsmith.ui.Component] Frame 0
class com.techsmith.ui.Component extends com.techsmith.ui.ComponentBase
{
var useHandCursor, _width, _height, filters, dispatchEvent;
function Component () {
super();
com.mosesSupposes.fuse.ZigoEngine.register(com.mosesSupposes.fuse.Fuse, com.mosesSupposes.fuse.FuseFMP, com.mosesSupposes.fuse.PennerEasing);
useHandCursor = false;
}
static function create(container, name, depth, init) {
Object.registerClass("Component", com.techsmith.ui.Component);
var _local6 = container.attachMovie("Component", name, depth, init);
return(com.techsmith.ui.Component(_local6));
}
function createRect(source) {
return(new flash.geom.Rectangle(0, 0, source._width, source._height));
}
function getRect() {
return(new flash.geom.Rectangle(0, 0, _width, _height));
}
function createShadow(filter) {
var _local3 = new Array();
if (filter == null) {
filter = new flash.filters.DropShadowFilter(4, 45, 0, 0.8, 8, 8, 1, 3, false, false, false);
}
_local3.push(filter);
filters = _local3;
}
function animate(fuseSequence, loopSequence) {
if (com.mosesSupposes.fuse.ZigoEngine.isTweening(this)) {
com.mosesSupposes.fuse.Fuse.close();
}
if (loopSequence != null) {
loop = loopSequence;
}
fuse = fuseSequence;
fuse.addTarget(this);
fuse.addEventListener(com.techsmith.events.Events.ON_COMPLETE, com.techsmith.utils.Delegate.create(this, fuseComplete));
fuse.start();
}
function fuseComplete(e) {
if (loop) {
fuse.start();
} else {
destroyAnimation();
}
dispatchEvent({type:com.techsmith.events.Events.ANIMATION_COMPLETE, target:this});
}
function destroyAnimation() {
com.mosesSupposes.fuse.Fuse.close();
fuse.removeAllListeners();
fuse.destroy();
delete fuse;
}
function destroy() {
destroyAnimation();
super.destroy();
}
var fuse = null;
var loop = false;
}
Symbol 20484 MovieClip [__Packages.com.techsmith.ui.ButtonBase] Frame 0
class com.techsmith.ui.ButtonBase extends com.techsmith.ui.Component
{
var dispatchEvent;
function ButtonBase () {
super();
}
function onRollOver() {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_ROLL_OVER});
}
function onPress() {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_PRESS});
}
function onRelease() {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE});
}
function onReleaseOutside() {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE_OUT});
}
function onRollOut() {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_ROLL_OUT});
}
}
Symbol 20485 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] Frame 0
class com.mosesSupposes.fuse.FuseKitCommon
{
static var logOutput;
function FuseKitCommon () {
}
static function _cts() {
return("|_tint|_tintPercent|_brightness|_brightOffset|_contrast|_invertColor|_colorReset|_colorTransform|");
}
static function _underscoreable() {
return(_cts() + "_frame|_x|_y|_xscale|_yscale|_scale|_width|_height|_size|_rotation|_alpha|_visible|");
}
static function _cbprops() {
return("|skipLevel|cycles|easyfunc|func|scope|args|startfunc|startscope|startargs|updfunc|updscope|updargs|extra1|extra2|");
}
static function _fuseprops() {
return("|command|label|delay|event|eventparams|target|addTarget|trigger|startAt|ease|easing|seconds|duration|time|");
}
static function output(s) {
if (typeof(logOutput) == "function") {
logOutput(s);
} else {
trace(s);
}
}
static function error(errorCode) {
var _local3 = arguments[1];
var _local4 = arguments[2];
var _local5 = arguments[3];
if (VERBOSE != true) {
output(("[FuseKitCommon#" + errorCode) + "]");
return(undefined);
}
var _local6 = "";
var _local7 = newline;
switch (errorCode) {
case "001" :
_local6 = _local6 + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **";
_local6 = _local6 + (_local7 + " import com.mosesSupposes.fuse.*;");
_local6 = _local6 + ((_local7 + " ZigoEngine.simpleSetup(Shortcuts);") + _local7);
break;
case "002" :
_local6 = _local6 + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **";
break;
case "003" :
_local6 = _local6 + ((_local7 + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _local7);
break;
case "004" :
_local6 = _local6 + (("** ZigoEngine.doTween - too few arguments [" + _local3) + "]. If you are trying to use Object Syntax without Fuse, pass FuseItem in your register() or simpleSetup() call. **");
break;
case "005" :
_local6 = _local6 + (((("** ZigoEngine.doTween - missing targets[" + _local3) + "] and/or props[") + _local4) + "] **");
break;
case "006" :
_local6 = _local6 + (("** Error: easing shortcut string not recognized (\"" + _local3) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **");
break;
case "007" :
_local6 = _local6 + (((("- ZigoEngine: Target locked [" + _local3) + "], ignoring tween call [") + _local4) + "]");
break;
case "008" :
_local6 = _local6 + "** ZigoEngine: You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "009" :
_local6 = _local6 + (("-ZigoEngine: A callback parameter \"" + _local3) + "\" was not recognized.");
break;
case "010" :
_local6 = _local6 + ((("-Engine unable to parse " + ((_local3 == 1) ? "callback[" : (String(_local3) + " callbacks["))) + _local4) + "]. Try using the syntax {scope:this, func:\"myFunction\"}");
break;
case "011" :
_local6 = _local6 + (((("-ZigoEngine: Callbacks discarded via skipLevel 2 option [" + _local3) + "|") + _local4) + "].");
break;
case "012" :
_local6 = _local6 + (((((("-Engine set props or ignored no-change tween on: " + _local3) + ", props passed:[") + _local4) + "], endvals passed:[") + _local5) + "]");
break;
case "013" :
_local6 = _local6 + (((((("-Engine added tween on:\n\ttargets:[" + _local3) + "]\n\tprops:[") + _local4) + "]\n\tendvals:[") + _local5) + "]");
break;
case "014" :
_local6 = _local6 + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **";
break;
case "101" :
_local6 = _local6 + "** ERROR: Fuse simpleSetup was removed in version 2.0! **";
_local6 = _local6 + (_local7 + " You must now use the following commands:");
_local6 = _local6 + ((_local7 + _local7) + "\timport com.mosesSupposes.fuse.*;");
_local6 = _local6 + (_local7 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);");
_local6 = _local6 + ((_local7 + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _local7);
break;
case "102" :
_local6 = _local6 + (("** Fuse skipTo label not found: \"" + _local3) + "\" **");
break;
case "103" :
_local6 = _local6 + (("** Fuse skipTo failed (" + _local3) + ") **");
break;
case "104" :
_local6 = _local6 + (((("** Fuse command skipTo (" + _local3) + ") ignored - targets the current index (") + _local4) + "). **");
break;
case "105" :
_local6 = _local6 + "** An unsupported Array method was called on Fuse. **";
break;
case "106" :
_local6 = _local6 + "** ERROR: You have not set up Fuse correctly. **";
_local6 = _local6 + (_local7 + "You must now use the following commands (PennerEasing is optional).");
_local6 = _local6 + (_local7 + "\timport com.mosesSupposes.fuse.*;");
_local6 = _local6 + ((_local7 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _local7);
break;
case "107" :
_local6 = _local6 + "** Fuse :: id not found - Aborting open(). **";
break;
case "108" :
_local6 = _local6 + "** Fuse.startRecent: No recent Fuse found to start! **";
break;
case "109" :
_local6 = _local6 + (("** Commands other than \"delay\" are not allowed within groups. Command discarded (\"" + _local3) + "\")");
break;
case "110" :
_local6 = _local6 + (("** A Fuse.addCommand parameter (\"" + _local3) + "\") is not valid and was discarded. If you are trying to add a function-call try the syntax Fuse.addCommand(this,\"myCallback\",param1,param2); **");
break;
case "111" :
_local6 = _local6 + (("** A Fuse command parameter failed. (\"" + _local3) + "\") **");
break;
case "112" :
_local6 = _local6 + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **";
break;
case "113" :
_local6 = _local6 + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **";
break;
case "114" :
_local6 = _local6 + (("** FuseItem: command (\"" + _local3) + "\") discarded. Commands may not appear within action groups (arrays). **");
break;
case "115" :
_local6 = _local6 + ((_local3 + " overlapping prop discarded: ") + _local4);
break;
case "116" :
_local6 = _local6 + ("** FuseItem Error: Delays within groups (arrays) and start/update callbacks are not supported when using Fuse without ZigoEngine. Although you need to restructure your Fuse, it should be possible to achieve the same results. **" + _local7);
break;
case "117" :
_local6 = _local6 + (("** " + _local3) + ": infinite cycles are not allowed within Fuses - discarded. **");
break;
case "118" :
_local6 = _local6 + (("** Fuse Error: No targets in " + _local3) + ((_local4 == true) ? " [Unable to set start props] **" : " [Skipping this action] **"));
break;
case "119" :
_local6 = _local6 + (((("** Fuse warning: " + _local4) + ((_local4 == 1) ? " target missing in " : " targets missing in ")) + _local5) + ((_local3 == true) ? " during setStartProps **" : " **"));
break;
case "120" :
_local6 = _local6 + (((("** " + _local3) + ": conflict with \"") + _local4) + "\". Property might be doubled within a grouped-action array. **");
break;
case "121" :
_local6 = _local6 + "** Timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **";
break;
case "122" :
_local6 = _local6 + "** FuseItem: You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "123" :
_local6 = _local6 + "** FuseItem unable to target callback. Try using the syntax {scope:this, func:\"myFunction\"} **";
break;
case "124" :
_local6 = _local6 + (("** Event \"" + _local3) + "\" reserved by Fuse. **");
break;
case "125" :
_local6 = _local6 + (("** A Fuse event parameter failed in " + _local3) + " **");
break;
case "126" :
_local6 = _local6 + (((("** " + _local3) + ": trigger:") + _local4) + " ignored - only one trigger is allowed per action **");
break;
case "201" :
_local6 = _local6 + (("**** FuseFMP cannot initialize argument " + _local3) + " (BitmapFilters cannot be applied to this object type) ****");
break;
case "301" :
_local6 = _local6 + "** The shortcuts fadeIn or fadeOut only accept 3 arguments: seconds, ease, and delay. **";
}
output(_local6);
}
static var VERSION = "Fuse Kit 2.0 Copyright (c) 2006 Moses Gunesch, MosesSupposes.com under MIT Open Source License";
static var VERBOSE = true;
static var ALL = "ALL";
static var ALLCOLOR = "ALLCOLOR";
}
Symbol 20486 MovieClip [__Packages.com.techsmith.ui.Container] Frame 0
class com.techsmith.ui.Container extends com.techsmith.ui.Component
{
function Container () {
super();
children = new com.techsmith.ui.ComponentCollection();
depthManager = new com.techsmith.ui.managers.DepthManager();
}
static function create(container, name, depth, init) {
Object.registerClass("Container", com.techsmith.ui.Container);
var _local6 = container.attachMovie("Container", name, depth, init);
return(com.techsmith.ui.Container(_local6));
}
function addChild(component, id, init) {
var _local5 = component.create(this, id, depthManager.getNextDepth(), init);
if (_local5 instanceof com.techsmith.ui.Container) {
com.techsmith.ui.Container(_local5);
} else {
com.techsmith.ui.Component(_local5);
}
children.addItem(_local5);
return(_local5);
}
function addChildAt(component, id, depth, init) {
var _local6 = component.create(this, id, depth, init);
children.addItem(_local6);
return(_local6);
}
function addChildComponent(component) {
children.addItem(component);
}
function addChildComponentAt(component, index) {
children.addItemAt(component, index);
}
function getCollectionIndex(item) {
var _local3 = children.getItemIndex(item);
if ((_local3 == null) || (_global.isNaN(_local3))) {
return(-1);
}
return(_local3);
}
function getCollectionIndexById(id) {
var _local3 = children.getItemIndexById(id);
if ((_local3 == null) || (_global.isNaN(_local3))) {
return(-1);
}
return(_local3);
}
function getChildren() {
return(children);
}
function getChildAt(index) {
return(children.getItemAt(index));
}
function getChildById(id) {
return(children.getItemById(id));
}
function createChildren() {
}
function destroy() {
super.destroy();
var _local3 = children.getIterator();
while (_local3.hasNext()) {
var _local4 = com.techsmith.ui.Component(_local3.next());
_local4.destroy();
children.removeItem(_local4);
}
delete children;
}
function onUnload() {
destroy();
}
function getNextDepth() {
return(depthManager.getNextDepth());
}
var children = null;
var depthManager = null;
}
Symbol 20487 MovieClip [__Packages.com.techsmith.ui.managers.DepthManager] Frame 0
class com.techsmith.ui.managers.DepthManager
{
function DepthManager (startingDepth) {
if (startingDepth != null) {
currentDepth = startingDepth;
}
}
function getNextDepth() {
currentDepth++;
return(currentDepth);
}
static var MAX_DEPTH = 1048675;
var currentDepth = 0;
}
Symbol 20488 MovieClip [__Packages.com.techsmith.jing.StartScreen] Frame 0
class com.techsmith.jing.StartScreen extends com.techsmith.ui.Component
{
var background, createEmptyMovieClip, thumbnail, overlay, scanlines, logo, startButton, attachMovie, height, dispatchEvent, __get__styleWrapper;
function StartScreen () {
super();
background = createEmptyMovieClip("background", 1);
thumbnail = com.techsmith.ui.Bitmap.create(this, "thumbnail", 2);
overlay = createEmptyMovieClip("overlay", 3);
scanlines = createEmptyMovieClip("scanlines", 4);
}
static function create(container, name, depth, init) {
Object.registerClass("StartScreen", com.techsmith.jing.StartScreen);
var _local6 = container.attachMovie("StartScreen", name, depth, init);
return(com.techsmith.jing.StartScreen(_local6));
}
function dispose() {
super.destroy();
if (branded) {
logo.unloadMovie();
background.unloadMovie();
delete background.onRollOver;
delete background;
delete logo;
}
thumbnail.destroy();
startButton.destroy();
delete thumbnail;
delete startButton;
delete background;
delete overlay;
delete scanlines;
}
function init(src, dim) {
thumbnail.createBitmap(src);
drawBackground(dim.width, dim.height);
background.onRelease = com.techsmith.utils.Delegate.create(this, startHandler);
background.useHandCursor = false;
drawOverlay(dim.width, dim.height);
drawScanlines(dim.width, dim.height);
startButton = com.techsmith.ui.BasicButton.create(this, "startButton", 5);
startButton.init(new com.techsmith.ui.ButtonStyle("StartIcon"));
startButton.move((dim.width - startButton._width) / 2, (dim.height - startButton._height) / 2);
startButton.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, startHandler));
if (branded) {
logo = attachMovie("StartBrandLogo", "logo", 6);
logo._x = dim.width - (logo._width + 10);
logo._y = dim.height - (logo._height + 10);
}
}
function drawBackground(w, h) {
background.beginFill(0);
drawFill(background, w, h);
}
function drawOverlay(w, h) {
var _local4 = new flash.geom.Matrix();
_local4.createGradientBox(w + GRADIENT_EXPANSION, height + GRADIENT_EXPANSION, 0, 0, 0);
overlay.beginGradientFill("radial", [16777215, 0], [80, 50], [0, 255], _local4, "pad", "rgb");
drawFill(overlay, w, h);
}
function drawScanlines(w, h) {
var _local4 = 0;
for ( ; _local4 < h ; _local4++) {
if ((_local4 % 4) == 0) {
scanlines.beginFill(16777215, 40);
drawFill(scanlines, w, 1, new flash.geom.Point(0, _local4));
}
}
}
function drawFill(scope, width, height, location) {
if (location == null) {
location = {x:0, y:0};
}
scope.moveTo(location.x, location.y);
scope.lineTo(width + location.x, location.y);
scope.lineTo(width + location.x, location.y + height);
scope.lineTo(location.x, location.y + height);
scope.lineTo(location.x, location.y);
scope.endFill();
}
function startHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE});
}
function set styleWrapper(val) {
branded = val;
//return(__get__styleWrapper());
}
var LOGO_PADDING = 10;
var GRADIENT_EXPANSION = 30;
var branded = true;
}
Symbol 20489 MovieClip [__Packages.com.mosesSupposes.fuse.Fuse] Frame 0
class com.mosesSupposes.fuse.Fuse extends Array implements com.techsmith.events.IEventDispatcher
{
var dispatcher, _nID, _aDefaultTargs, length, scope, _nIndex, _oDel1, label;
function Fuse (action) {
super();
dispatcher = new com.techsmith.events.EventDispatcher();
_nID = registerInstance(this);
_sState = "stopped";
_aDefaultTargs = new Array();
if (arguments.length > 0) {
splice.apply(this, new Array(0, 0).concat(arguments));
}
var _local4 = ["concat", "join", "sort", "sortOn"];
for (var i in _local4) {
com.mosesSupposes.fuse.Fuse.prototype[_local4[i]] = function () {
if (com.mosesSupposes.fuse.Fuse.OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("105");
}
};
}
}
function addEventListener(event, handler) {
dispatcher.addEventListener(event, handler);
}
function removeEventListener(event, handler) {
dispatcher.removeEventListener(event, handler);
}
function dispatchEvent(event) {
dispatcher.dispatchEvent(event);
}
function removeEventListeners(event) {
dispatcher.removeEventListeners(event);
}
function removeAllListeners() {
dispatcher.removeAllListeners();
}
function destroy() {
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " destroy.");
}
stop(true);
splice(0, length);
_aDefaultTargs = null;
scope = null;
_global.ASSetPropFlags(this, null, 0, 7);
var _local2 = _nID;
for (var i in this) {
delete this[i];
}
removeInstanceAt(_local2, true);
}
static function simpleSetup() {
com.mosesSupposes.fuse.FuseKitCommon.error("101");
}
static function getInstance(idOrLabel) {
if (typeof(idOrLabel) == "number") {
return(_aInstances[idOrLabel]);
}
if (typeof(idOrLabel) == "string") {
for (var i in _aInstances) {
if (com.mosesSupposes.fuse.Fuse(_aInstances[i]).label == idOrLabel) {
return(_aInstances[i]);
}
}
}
return(null);
}
static function getInstances(stateFilter, targets) {
var _local4 = (stateFilter == null) || (stateFilter.toUpperCase() == "ALL");
if (!(targets instanceof Array)) {
targets = arguments.slice(1);
}
var _local5 = [];
for (var i in _aInstances) {
var _local6 = _aInstances[i];
if (_aInstances[i] == null) {
continue;
}
if ((_local4 == false) && (_local6.state != stateFilter)) {
continue;
}
var _local7 = targets.length == 0;
if (_local7 == false) {
if (_local7 == true) {
continue;
}
var _local8 = _local6.getActiveTargets(true);
for (var j in targets) {
for (var k in _local8) {
if (_local8[k] == targets[j]) {
_local7 = true;
break;
}
}
}
}
if (_local7 == true) {
_local5.unshift(_local6);
}
}
return(_local5);
}
function get id() {
return(_nID);
}
function get state() {
return(_sState);
}
function get currentIndex() {
return(_nIndex);
}
function get currentLabel() {
return(com.mosesSupposes.fuse.FuseItem(this[_nIndex]).getLabel());
}
function get target() {
return(((_aDefaultTargs.length == 1) ? (_aDefaultTargs[0]) : (_aDefaultTargs)));
}
function set target(t) {
delete _aDefaultTargs;
if (t != null) {
addTarget(t);
}
//return(target);
}
function addTarget(t) {
if (_aDefaultTargs == null) {
_aDefaultTargs = [];
}
if (arguments[0] instanceof Array) {
arguments = arguments[0];
}
for (var i in arguments) {
var _local3 = false;
for (var j in _aDefaultTargs) {
if (arguments[i] == _aDefaultTargs[j]) {
_local3 = true;
break;
}
}
if (_local3 == false) {
_aDefaultTargs.push(arguments[i]);
}
}
}
function removeTarget(t) {
if ((_aDefaultTargs == null) || (_aDefaultTargs.length == 0)) {
return(undefined);
}
if (arguments[0] instanceof Array) {
arguments = arguments[0];
}
for (var i in arguments) {
for (var j in _aDefaultTargs) {
if (arguments[i] == _aDefaultTargs[j]) {
_aDefaultTargs.splice(Number(j), 1);
}
}
}
}
function getActiveTargets(includeDefaults) {
if ((_sState != "playing") && (_sState != "paused")) {
return([]);
}
if (includeDefaults == true) {
var _local3 = _aDefaultTargs.slice();
} else {
var _local3 = [];
}
return(com.mosesSupposes.fuse.FuseItem(this[_nIndex]).getActiveTargets(_local3));
}
function clone() {
var _local2 = [];
var _local3 = 0;
for ( ; _local3 < length ; _local3++) {
_local2.push(com.mosesSupposes.fuse.FuseItem(this[_local3]).getInitObj());
}
var _local4 = new com.mosesSupposes.fuse.Fuse();
_local4.push.apply(_local4, _local2);
_local4.scope = scope;
_local4.target = target;
return(_local4);
}
function push() {
splice.apply(this, new Array(length, 0).concat(arguments));
return(length);
}
function pushTween(targets, props, pEnd, seconds, ease, delay, callback) {
push({__buildMode:true, tweenargs:arguments});
return(length);
}
function pop() {
var _local2 = com.mosesSupposes.fuse.FuseItem(this[length - 1]).getInitObj();
splice(length - 1, 1);
return(_local2);
}
function unshift() {
splice.apply(this, new Array(0, 0).concat(arguments));
return(length);
}
function shift() {
var _local2 = com.mosesSupposes.fuse.FuseItem(this[0]).getInitObj();
splice(0, 1);
return(_local2);
}
function splice(startIndex, deleteCount) {
stop(true);
var _local5 = Number(arguments.shift());
if (_local5 < 0) {
_local5 = length + _local5;
}
deleteCount = Number(arguments.shift());
var _local6 = new Array();
var _local7 = 0;
for ( ; _local7 < arguments.length ; _local7++) {
var _local8 = ((arguments[_local7] instanceof com.mosesSupposes.fuse.Fuse) ? (arguments[_local7]) : (new com.mosesSupposes.fuse.FuseItem(_local5 + _local7, arguments[_local7], _nID)));
addEventListener("onStop", _local8);
addEventListener("evtSetStart", _local8);
_local6.push(_local8);
}
var _local9 = super.splice.apply(this, new Array(_local5, deleteCount).concat(_local6));
for (var j in _local9) {
removeEventListener("onStop", _local9[j]);
removeEventListener("evtSetStart", _local9[j]);
if (_local9[j] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(_local9[j]).removeEventListener("onComplete", _oDel1);
} else {
com.mosesSupposes.fuse.FuseItem(_local9[j]).destroy();
delete this[com.mosesSupposes.fuse.FuseItem(_local9[j])._nItemID];
}
}
var _local10 = 0;
for ( ; _local10 < length ; _local10++) {
com.mosesSupposes.fuse.FuseItem(this[_local10])._nItemID = _local10;
}
}
function slice(indexA, indexB) {
var _local5 = super.slice(indexA, indexB);
var _local6 = new Array();
var _local7 = 0;
for ( ; _local7 < arguments.length ; _local7++) {
_local6.push(com.mosesSupposes.fuse.FuseItem(this[_local7]).getInitObj());
}
return(_local6);
}
function reverse() {
stop(true);
super.reverse();
var _local3 = 0;
for ( ; _local3 < length ; _local3++) {
com.mosesSupposes.fuse.FuseItem(this[_local3])._nItemID = _local3;
}
}
function traceItems(indexA, indexB) {
var _local5 = "";
var _local6 = super.slice(indexA, indexB);
_local5 = _local5 + ((("-Fuse#" + String(_nID)) + " traceItems:") + "\n----------\n");
var _local7 = 0;
for ( ; _local7 < _local6.length ; _local7++) {
if (_local6[_local7] instanceof com.mosesSupposes.fuse.Fuse) {
_local5 = _local5 + (((((((("-Fuse#" + String(_nID)) + " #") + _nID) + ">Item#") + _local7) + ": [Nested Fuse] ") + _local6[_local7]) + newline);
} else {
_local5 = _local5 + (_local6[_local7] + newline);
}
}
_local5 = _local5 + "----------";
com.mosesSupposes.fuse.FuseKitCommon.output(_local5);
}
function toString() {
return((((("Fuse#" + String(_nID)) + ((label != undefined) ? ((" \"" + label) + "\"") : "")) + " (contains ") + length) + " items)");
}
function setStartProps(trueOrItemIDs) {
var _local3 = (arguments.length == 0) || ((trueOrItemIDs === true) || (trueOrItemIDs == com.mosesSupposes.fuse.FuseKitCommon.ALL));
dispatchEvent({target:this, type:"evtSetStart", all:_local3, filter:((trueOrItemIDs instanceof Array) ? (trueOrItemIDs) : (arguments)), curIndex:((state == "playing") ? (_nIndex) : -1), targs:_aDefaultTargs, scope:scope});
}
function start(setStart) {
close();
stop(true);
_sState = "playing";
if (length == 0) {
advance(false, true);
}
if ((setStart != null) && (setStart != false)) {
setStartProps.apply(this, arguments);
}
dispatchEvent({target:this, type:"onStart"});
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " start.");
}
playCurrentItem();
}
function stop() {
if (_sState != "stopped") {
var _local2 = 0;
for ( ; _local2 < length ; _local2++) {
if ((_local2 == _nIndex) || (com.mosesSupposes.fuse.FuseItem(this[_local2]).hasTriggerFired() == true)) {
com.mosesSupposes.fuse.FuseItem(this[_local2]).stop();
}
}
} else {
arguments[0] = true;
}
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1);
}
_sState = "stopped";
if (!((arguments[0] === true) && (_sState == "stopped"))) {
dispatchEvent({target:this, type:"onStop"});
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " stop.");
}
}
_nIndex = 0;
_global.clearInterval(_nDelay);
_nTimeCache = (_nDelay = -1);
}
function skipTo(indexOrLabel) {
close();
if (typeof(indexOrLabel) == "string") {
var _local3 = -1;
var _local4 = 0;
for ( ; _local4 < length ; _local4++) {
if (com.mosesSupposes.fuse.FuseItem(this[_local4]).getLabel() == String(indexOrLabel)) {
_local3 = _local4;
break;
}
}
if (_local3 == -1) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("102", String(indexOrLabel));
}
}
} else {
var _local3 = Number(indexOrLabel);
}
if ((_global.isNaN(_local3) == true) || (Math.abs(_local3) >= length)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("103", String(indexOrLabel));
}
}
if (_local3 < 0) {
var _local3 = Math.max(0, length + _local3);
}
if ((_local3 == _nIndex) && (arguments[1] === true)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("104", String(indexOrLabel), _nIndex);
}
}
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1);
}
com.mosesSupposes.fuse.FuseItem(this[_nIndex]).stop();
_nIndex = _local3;
var _local5 = _sState;
_sState = "playing";
if (_local5 == "stopped") {
dispatchEvent({target:this, type:"onStart"});
}
playCurrentItem();
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output("skipTo:" + _local3);
}
}
function pause() {
if (_sState == "playing") {
com.mosesSupposes.fuse.FuseItem(this[_nIndex]).pause();
if (_nTimeCache != -1) {
_nTimeCache = _nTimeCache - getTimer();
_global.clearInterval(_nDelay);
}
_sState = "paused";
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " pause.");
}
dispatchEvent({target:this, type:"onPause"});
}
}
function resume() {
if (_sState != "paused") {
return(undefined);
}
close();
_sState = "playing";
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " resume.");
}
dispatchEvent({target:this, type:"onResume"});
if (_nTimeCache != -1) {
_global.clearInterval(_nDelay);
_nTimeCache = getTimer() + _nTimeCache;
_nDelay = _global.setInterval(com.techsmith.utils.Delegate.create(this, playCurrentItem), _nTimeCache, true);
}
com.mosesSupposes.fuse.FuseItem(this[_nIndex]).pause(true);
}
function advance(wasTriggered, silentStop) {
var _local4 = false;
if (_nIndex == (length - 1)) {
var _local5 = length - 1;
for ( ; _local5 > -1 ; _local5--) {
if (com.mosesSupposes.fuse.FuseItem(this[_local5])._nPlaying > -1) {
return(undefined);
}
}
_local4 = true;
}
if ((wasTriggered == true) && (_local4 == false)) {
return(undefined);
}
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1);
}
if ((++_nIndex) >= length) {
stop(silentStop);
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-Fuse#" + String(_nID)) + " complete.");
}
dispatchEvent({target:this, type:"onComplete"});
if ((autoClear == true) || ((!(autoClear === false)) && (AUTOCLEAR == true))) {
destroy();
}
return(undefined);
}
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output((("-Fuse#" + String(_nID)) + " advance: ") + _nIndex);
}
dispatchEvent({target:this, type:"onAdvance"});
playCurrentItem();
}
function playCurrentItem(postDelay) {
_global.clearInterval(_nDelay);
if (!(postDelay === true)) {
var _local3 = com.mosesSupposes.fuse.FuseItem(this[_nIndex]).evalDelay(scope) || 0;
if (_local3 > 0) {
_nTimeCache = getTimer() + (_local3 * 1000);
_nDelay = _global.setInterval(com.techsmith.utils.Delegate.create(this, playCurrentItem), _local3 * 1000, true);
return(undefined);
}
}
_nTimeCache = (_nDelay = -1);
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
if (_oDel1 == null) {
_oDel1 = com.techsmith.utils.Delegate.create(this, advance);
}
com.mosesSupposes.fuse.Fuse(this[_nIndex]).addEventListener("onComplete", _oDel1);
}
var _local4 = com.mosesSupposes.fuse.FuseItem(this[_nIndex]).startItem(_aDefaultTargs, scope);
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output((("-Fuse#" + String(_nID)) + " props tweened: ") + _local4);
}
}
function evtSetStart(o) {
setStartProps.apply(this, o.filter);
}
function startItem(targs, scope) {
if (target == null) {
target = targs;
}
if (scope == null) {
}
start();
}
static function open(fuseOrID) {
var _local3 = _global.com.mosesSupposes.fuse.ZigoEngine;
if (_local3 == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("106");
return(null);
}
_local3.register(com.mosesSupposes.fuse.Fuse, com.mosesSupposes.fuse.FuseItem);
if (_oBuildMode == null) {
_oBuildMode = {curID:-1, prevID:-1, curGroup:null};
} else if ((_oBuildMode != null) && (_oBuildMode.curID > -1)) {
close();
}
if (fuseOrID != null) {
if (fuseOrID instanceof com.mosesSupposes.fuse.Fuse) {
_oBuildMode.curID = fuseOrID.id;
} else if (getInstance(fuseOrID) != null) {
_oBuildMode.curID = getInstance(fuseOrID).id;
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("107");
return(null);
}
} else {
_oBuildMode.curID = (new com.mosesSupposes.fuse.Fuse()).id;
}
_oBuildMode.prevID = _oBuildMode.curID;
return(getInstance(_oBuildMode.curID));
}
static function openGroup(fuseOrID) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
open(fuseOrID);
} else if (_oBuildMode.curGroup != null) {
closeGroup();
}
_oBuildMode.curGroup = new Array();
return(getInstance(_oBuildMode.curID));
}
static function closeGroup() {
if ((_oBuildMode.curGroup == null) || (!((_oBuildMode != null) && (_oBuildMode.curID > -1)))) {
return(undefined);
}
getInstance(_oBuildMode.curID).push(_oBuildMode.curGroup);
_oBuildMode.curGroup = null;
}
static function close() {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
if (_oBuildMode.curGroup != null) {
closeGroup();
}
_oBuildMode.curID = -1;
}
static function closeAndStart(setStart) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
var _local3 = getInstance(_oBuildMode.curID);
close();
_local3.start.apply(_local3, arguments);
}
static function startRecent(setStart) {
var _local3 = getInstance(_oBuildMode.prevID);
if (_local3 != null) {
_local3.start.apply(_local3, arguments);
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("108");
}
}
static function addCommand(commandOrScope, indexOrFunc, argument) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
var _local5 = ((_oBuildMode.curGroup != null) ? (_oBuildMode.curGroup) : (getInstance(_oBuildMode.curID)));
if (typeof(commandOrScope) == "string") {
if ((_oBuildMode.curGroup != null) && (commandOrScope != "delay")) {
com.mosesSupposes.fuse.FuseKitCommon.error("109", String(commandOrScope));
return(undefined);
}
var _local6 = "|delay|start|stop|pause|resume|skipTo|setStartProps|";
if ((_local6.indexOf(("|" + commandOrScope) + "|") == -1) || (((commandOrScope == "skipTo") || (commandOrScope == "delay")) && (indexOrFunc == undefined))) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("110", String(commandOrScope));
}
} else {
_local5.push({__buildMode:true, command:commandOrScope, commandargs:indexOrFunc});
}
} else {
_local5.push({__buildMode:true, scope:commandOrScope, func:indexOrFunc, args:arguments.slice(2)});
}
}
static function addBuildItem(args) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(false);
}
var _local3 = ((_oBuildMode.curGroup != null) ? (_oBuildMode.curGroup) : (getInstance(_oBuildMode.curID)));
if ((args.length == 1) && (typeof(args[0]) == "object")) {
_local3.push(args[0]);
} else {
_local3.push({__buildMode:true, tweenargs:args});
}
return(true);
}
static function registerInstance(s) {
if (_aInstances == null) {
_aInstances = new Array();
}
return(_aInstances.push(s) - 1);
}
static function removeInstanceAt(id, isDestroyCall) {
if (isDestroyCall != true) {
com.mosesSupposes.fuse.Fuse(_aInstances[id]).destroy();
}
delete _aInstances[id];
}
static var registryKey = "fuse";
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION;
static var OUTPUT_LEVEL = 1;
static var AUTOCLEAR = false;
var autoClear = false;
var _sState = "stopped";
var _nDelay = -1;
var _nTimeCache = -1;
static var _aInstances = null;
static var _oBuildMode = null;
}
Symbol 20490 MovieClip [__Packages.com.techsmith.ui.Bitmap] Frame 0
class com.techsmith.ui.Bitmap extends com.techsmith.ui.Component
{
var source, createEmptyMovieClip, dispatchEvent;
function Bitmap () {
super();
if (source != undefined) {
createBitmap(source);
}
}
static function create(container, name, depth, init) {
Object.registerClass("Bitmap", com.techsmith.ui.Bitmap);
var _local6 = container.attachMovie("Bitmap", name, depth, init);
return(com.techsmith.ui.Bitmap(_local6));
}
function createBitmap(bitmapSource, size, plane) {
source = bitmapSource;
var _local5 = source._width;
var _local6 = source._height;
width = _local5;
height = _local6;
bitmap = new flash.display.BitmapData(_local5, _local6, true, 0);
var _local7 = new flash.geom.Matrix();
bitmap.draw(source, _local7);
bitmapClip = createEmptyMovieClip("bitmapClip", 1);
bitmapClip.attachBitmap(bitmap, 1);
if (outline) {
createOutline(_local5, _local6);
}
dispatchEvent({target:this, type:com.techsmith.events.Events.COMPLETE});
}
function createOutline(w, h) {
outlineClip = createEmptyMovieClip("outlineClip", 2);
var _local4 = {thickness:0.5, rgb:outlineColor, alpha:100, pixelHinting:false, noScale:"none", capsStyle:"square", jointStyle:"miter", miterLimit:4};
com.techsmith.utils.shapes.Rectangle.draw(outlineClip, undefined, w, h, undefined, _local4, {x:0, y:0});
}
function destroy() {
outlineClip.removeMovieClip();
bitmap.dispose();
super.destroy();
}
static var HORIZONTAL_CONSTRAINT = "horizontal";
static var VERTICAL_CONSTRAINT = "vertical";
var alpha = 30;
var gradientFalloff = 0.4;
var gradientFade = 5;
var outline = false;
var outlineColor = 12895428;
var bitmap = null;
var bitmapClip = null;
var outlineClip = null;
var width = null;
var height = null;
}
Symbol 20491 MovieClip [__Packages.com.techsmith.utils.Dimension] Frame 0
class com.techsmith.utils.Dimension
{
function Dimension (w, h) {
if (w != null) {
width = w;
}
if (h != null) {
height = h;
}
}
var width = 0;
var height = 0;
}
Symbol 20492 MovieClip [__Packages.com.techsmith.utils.Delegate] Frame 0
class com.techsmith.utils.Delegate
{
function Delegate () {
}
static function create(d_scope, d_func) {
var addArguments = new Array();
var _local2 = 2;
for ( ; _local2 < arguments.length ; _local2++) {
addArguments.push(arguments[_local2]);
}
var _local3 = function () {
var _local2 = arguments.concat(addArguments);
d_func.apply(d_scope, _local2);
};
return(_local3);
}
}
Symbol 20493 MovieClip [__Packages.com.brooksandrus.utils.Collection] Frame 0
class com.brooksandrus.utils.Collection
{
function Collection () {
}
}
Symbol 20494 MovieClip [__Packages.com.techsmith.utils.shapes.Rectangle] Frame 0
class com.techsmith.utils.shapes.Rectangle
{
function Rectangle () {
}
static function draw(scope, color, width, height, alpha, lStyle, location) {
if (lStyle != null) {
scope.lineStyle(lStyle.thickness, lStyle.rgb, lStyle.alpha, lStyle.pixelHinting, lStyle.noScale, lStyle.capsStyle, lStyle.jointStyle, lStyle.miterLimit);
} else {
scope.lineStyle(undefined);
}
scope.beginFill(color, alpha);
if (location != null) {
scope.moveTo(location.x, location.y);
scope.lineTo(width + location.x, location.y);
scope.lineTo(width + location.x, location.y + height);
scope.lineTo(location.x, location.y + height);
scope.lineTo(location.x, location.y);
} else {
scope.moveTo(0, 0);
scope.lineTo(width, 0);
scope.lineTo(width, height);
scope.lineTo(0, height);
scope.lineTo(0, 0);
}
scope.endFill();
}
}
Symbol 20495 MovieClip [__Packages.com.mosesSupposes.fuse.FuseFMP] Frame 0
class com.mosesSupposes.fuse.FuseFMP
{
static var $fclasses, $shortcuts, $gro, $sro;
function FuseFMP () {
}
static function simpleSetup() {
initialize(MovieClip.prototype, Button.prototype, TextField.prototype);
_global.FuseFMP = com.mosesSupposes.fuse.FuseFMP;
for (var i in $fclasses) {
_global[i] = $fclasses[i];
}
}
static function initialize(target) {
if ($fclasses == undefined) {
$shortcuts = {getFilterName:function (f) {
return(com.mosesSupposes.fuse.FuseFMP.getFilterName(f));
}, getFilterIndex:function (f) {
return(com.mosesSupposes.fuse.FuseFMP.getFilterIndex(this, f));
}, getFilter:function (f, createNew) {
return(com.mosesSupposes.fuse.FuseFMP.getFilter(this, f, createNew));
}, writeFilter:function (f, pObj) {
return(com.mosesSupposes.fuse.FuseFMP.writeFilter(this, f, pObj));
}, removeFilter:function (f) {
return(com.mosesSupposes.fuse.FuseFMP.removeFilter(this, f));
}, getFilterProp:function (prop, createNew) {
return(com.mosesSupposes.fuse.FuseFMP.getFilterProp(this, prop, createNew));
}, setFilterProp:function (prop, v) {
com.mosesSupposes.fuse.FuseFMP.setFilterProp(this, prop, v);
}, setFilterProps:function (fOrPObj, pObj) {
com.mosesSupposes.fuse.FuseFMP.setFilterProps(this, fOrPObj, pObj);
}, traceAllFilters:function () {
com.mosesSupposes.fuse.FuseFMP.traceAllFilters();
}};
$fclasses = {BevelFilter:flash.filters.BevelFilter, BlurFilter:flash.filters.BlurFilter, ColorMatrixFilter:flash.filters.ColorMatrixFilter, ConvolutionFilter:flash.filters.ConvolutionFilter, DisplacementMapFilter:flash.filters.DisplacementMapFilter, DropShadowFilter:flash.filters.DropShadowFilter, GlowFilter:flash.filters.GlowFilter, GradientBevelFilter:flash.filters.GradientBevelFilter, GradientGlowFilter:flash.filters.GradientGlowFilter};
$gro = {__resolve:function (name) {
var _local2 = function () {
var _local2 = this;
if (_local2.filters != undefined) {
var _local3 = name.split("_");
if (_local3[1] == "blur") {
_local3[1] = "blurX";
}
return(com.mosesSupposes.fuse.FuseFMP.getFilter(this, _local3[0] + "Filter", false)[_local3[1]]);
}
};
return(_local2);
}};
$sro = {__resolve:function (name) {
var _local2 = function (val) {
var _local3 = this;
if (_local3.filters != undefined) {
com.mosesSupposes.fuse.FuseFMP.setFilterProp(this, name, val);
}
};
return(_local2);
}};
}
if (arguments[0] == null) {
return(undefined);
}
var _local3 = [MovieClip, Button, TextField];
for (var i in arguments) {
var _local4 = false;
for (var j in _local3) {
if ((arguments[i] instanceof _local3[j]) || (arguments[i] == Function(_local3[j]).prototype)) {
_local4 = true;
break;
}
}
if (!_local4) {
com.mosesSupposes.fuse.FuseKitCommon.error("201", i);
continue;
}
for (var $filtername in $fclasses) {
var _local5 = new $fclasses[$filtername][undefined]();
for (var b in _local5) {
if (typeof(_local5[b]) == "function") {
continue;
}
var _local6 = ($filtername.substr(0, -6) + "_") + b;
arguments[i].addProperty(_local6, $gro[_local6], $sro[_local6]);
_global.ASSetPropFlags(arguments[i], _local6, 3, 1);
if (b == "blurX") {
_local6 = _local6.slice(0, -1);
arguments[i].addProperty(_local6, $gro[_local6], $sro[_local6]);
_global.ASSetPropFlags(arguments[i], _local6, 3, 1);
}
}
}
for (var s in $shortcuts) {
arguments[i][s] = $shortcuts[s];
_global.ASSetPropFlags(arguments[i], s, 7, 1);
}
}
}
static function deinitialize() {
if ($fclasses == undefined) {
return(undefined);
}
if (arguments.length == 0) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
for (var i in arguments) {
for (var $filtername in $fclasses) {
var _local2 = new $fclasses[$filtername][undefined]();
for (var b in _local2) {
if (typeof(_local2[b]) == "function") {
continue;
}
var _local3 = ($filtername.substr(0, -6) + "_") + b;
_global.ASSetPropFlags(arguments[i], _local3, 0, 2);
arguments[i].addProperty(_local3, null, null);
delete arguments[i][_local3];
}
}
for (var s in $shortcuts) {
_global.ASSetPropFlags(arguments[i], s, 0, 2);
delete arguments[i][s];
}
}
}
static function getFilterName($myFilter) {
if ($fclasses == undefined) {
initialize(null);
}
for (var a in $fclasses) {
if ($myFilter.__proto__ == Function($fclasses[a]).prototype) {
return(a);
}
}
return(null);
}
static function getFilterIndex($obj, $myFilter) {
if ($fclasses == undefined) {
initialize(null);
}
$myFilter = $getInstance($myFilter);
if ($myFilter === null) {
return(-1);
}
var _local4 = $obj.filters;
var _local5 = 0;
for ( ; _local5 < _local4.length ; _local5++) {
if (_local4[_local5].__proto__ == $myFilter.__proto__) {
return(_local5);
}
}
return(-1);
}
static function getFilter($obj, $myFilter, $createNew) {
var _local5 = getFilterIndex($obj, $myFilter);
if (_local5 == -1) {
if ($createNew != true) {
return(null);
}
_local5 = writeFilter($obj, $myFilter);
if (_local5 == -1) {
return(null);
}
}
return($obj.filters[_local5]);
}
static function writeFilter($obj, $myFilter, $propsObj) {
if ($fclasses == undefined) {
initialize(null);
}
$myFilter = $getInstance($myFilter);
if ($myFilter === null) {
return(-1);
}
var _local5 = $obj.filters;
var _local6 = getFilterIndex($obj, $myFilter);
if (_local6 == -1) {
_local5.push($myFilter);
} else {
_local5[_local6] = $myFilter;
}
$obj.filters = _local5;
if (typeof($propsObj) == "object") {
setFilterProps($obj, $myFilter, $propsObj);
}
_local6 = getFilterIndex($obj, $myFilter);
return(_local6);
}
static function removeFilter($obj, $myFilter) {
if ($fclasses == undefined) {
initialize(null);
}
$myFilter = $getInstance($myFilter);
var _local4 = $obj.filters;
var _local5 = getFilterIndex($obj, $myFilter);
if (_local5 == -1) {
return(false);
}
_local4.splice(_local5, 1);
$obj.filters = _local4;
return(true);
}
static function getFilterProp($obj, $filtername, $createNew) {
var _local5 = $filtername.split("_");
if (_local5[1] == "blur") {
_local5[1] = "blurX";
}
return(getFilter($obj, _local5[0] + "Filter", $createNew)[_local5[1]]);
}
static function setFilterProp($obj, $propname, $val) {
if ($fclasses == undefined) {
initialize(null);
}
var _local5 = $propname.split("_");
var _local6 = _local5[0] + "Filter";
if ($fclasses[_local6] == undefined) {
return(undefined);
}
var _local7 = new $fclasses[_local6][undefined]();
var _local8 = _local5[1];
var _local9 = $obj.filters.length || 0;
while (_local9-- , _local9 > -1) {
var _local10 = $obj.filters[_local9];
if (_local10.__proto__ == _local7.__proto__) {
_local7 = _local10;
break;
}
}
if (_local8 == "blur") {
_local7.blurX = $val;
_local7.blurY = $val;
} else {
if (_local8.indexOf("lor") > -1) {
if ((typeof($val) == "string") && (_local8.charAt(2) != "l")) {
if ($val.charAt(0) == "#") {
$val = $val.slice(1);
}
$val = (($val.charAt(1).toLowerCase() != "x") ? (Number("0x" + $val)) : (Number($val)));
}
}
_local7[_local8] = $val;
}
if (_local9 == -1) {
$obj.filters = [_local7];
} else {
var _local11 = $obj.filters;
_local11[_local9] = _local7;
$obj.filters = _local11;
}
}
static function setFilterProps($obj, $filterOrPropsObj, $propsObj) {
if ($fclasses == undefined) {
initialize(null);
}
if (!($obj instanceof Array)) {
$obj = [$obj];
}
var _local5 = new Object();
if (arguments.length == 3) {
for (var i in $obj) {
var _local8 = getFilter($obj[i], $filterOrPropsObj, true);
if (_local8 == null) {
continue;
}
var _local9 = getFilterName(_local8).substr(0, -6) + "_";
for (var _local6 in $propsObj) {
_local5[_local6] = $propsObj[_local6];
}
for (var _local6 in _local5) {
var _local7 = _local5[_local6];
if (_local6.indexOf(_local9) == 0) {
var _local6 = _local6.slice(_local9.length);
}
if (_local6 == "blur") {
flash.filters.BlurFilter(_local8).blurX = Number(_local7);
flash.filters.BlurFilter(_local8).blurY = Number(_local7);
} else if ((_local6.indexOf("lor") > -1) && ((_local6.charAt(2) != "l") && (typeof(_local7) == "string"))) {
if (_local7.charAt(0) == "#") {
_local7 = _local7.slice(1);
}
_local7 = ((_local7.charAt(1).toLowerCase() != "x") ? (Number("0x" + _local7)) : (Number(_local7)));
} else {
_local8[_local6] = _local7;
}
}
writeFilter($obj[i], _local8);
}
} else if (typeof($filterOrPropsObj) == "object") {
$propsObj = $filterOrPropsObj;
for (var _local6 in $propsObj) {
var _local10 = _local6.split("_");
var _local11 = _local10[0] + "Filter";
if ($fclasses[_local11] == undefined) {
continue;
}
if (_local5[_local11] == undefined) {
_local5[_local11] = {};
}
if (_local10[1] == "blur") {
flash.filters.BlurFilter(_local5[_local11]).blurX = $propsObj[_local6];
flash.filters.BlurFilter(_local5[_local11]).blurY = $propsObj[_local6];
} else {
_local5[_local11][_local10[1]] = $propsObj[_local6];
}
}
for (var i in $obj) {
for (var $fname in _local5) {
var _local12 = getFilter($obj[i], $fname, true);
if (_local12 == null) {
continue;
}
for (var _local6 in _local5[$fname]) {
var _local7 = _local5[$fname][_local6];
if ((_local6.indexOf("lor") > -1) && ((_local6.charAt(2) != "l") && (typeof(_local7) == "string"))) {
if (_local7.charAt(0) == "#") {
_local7 = _local7.slice(1);
}
_local7 = ((_local7.charAt(1).toLowerCase() != "x") ? (Number("0x" + _local7)) : (Number(_local7)));
}
_local12[_local6] = _local7;
}
writeFilter($obj[i], _local12);
}
}
}
}
static function getAllShortcuts() {
if ($fclasses == undefined) {
initialize(null);
}
var _local2 = [];
for (var $filtername in $fclasses) {
var _local3 = new $fclasses[$filtername][undefined]();
for (var b in _local3) {
if (typeof(_local3[b]) == "function") {
continue;
}
_local2.push(($filtername.substr(0, -6) + "_") + b);
if (b == "blurX") {
_local2.push($filtername.substr(0, -6) + "_blur");
}
}
}
return(_local2);
}
static function traceAllFilters() {
if ($fclasses == undefined) {
initialize(null);
}
var _local2 = "------ FuseFMP filter properties ------\n";
for (var $filtername in $fclasses) {
_local2 = _local2 + $filtername;
var _local3 = new $fclasses[$filtername][undefined]();
for (var b in _local3) {
if (typeof(_local3[b]) == "function") {
continue;
}
_local2 = _local2 + ((("\t- " + $filtername.substr(0, -6)) + "_") + b);
if (b == "blurX") {
_local2 = _local2 + (("\t- " + $filtername.substr(0, -6)) + "_blur");
}
}
_local2 = _local2 + newline;
}
com.mosesSupposes.fuse.FuseKitCommon.output(_local2);
}
static function $getInstance($myFilter) {
if ($myFilter instanceof flash.filters.BitmapFilter) {
return(flash.filters.BitmapFilter($myFilter));
}
if (typeof($myFilter) == "function") {
for (var j in $fclasses) {
if ($myFilter == $fclasses[j]) {
return(new $fclasses[j][undefined]());
}
}
}
if (typeof($myFilter) == "string") {
var _local3 = String($myFilter);
if (_local3.substr(-6) != "Filter") {
_local3 = _local3 + "Filter";
}
for (var j in $fclasses) {
if (j == _local3) {
return(new $fclasses[j][undefined]());
}
}
}
return(null);
}
static var registryKey = "fuseFMP";
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION;
}
Symbol 20496 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] Frame 0
class com.mosesSupposes.fuse.ZManager
{
var tweens, now;
function ZManager () {
tweens = {};
numTweens = 0;
}
function addTween(obj, props, endvals, seconds, ease, delay, callback) {
var _local9 = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel));
var _local10 = ((callback.cycles == undefined) ? 1 : (callback.cycles));
var _local11 = callback.extra1;
var _local12 = callback.extra2;
var _local13 = [];
var _local14 = _global.com.mosesSupposes.fuse.FuseFMP;
var _local15 = String(("|" + _local14.getAllShortcuts().join("|")) + "|");
var _local16 = com.mosesSupposes.fuse.FuseKitCommon._cts();
var _local17 = "";
var _local18 = "";
var _local19 = tweens[String(obj.__zigoID__)];
if ((_local19 != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) {
if (obj._listeners.length > 0) {
for (var j in _local19.props) {
_local13.unshift(j);
}
}
_local19.numProps = 0;
cleanUp(true);
}
for (var i in props) {
var _local20 = props[i];
var _local21 = _local16.indexOf(("|" + _local20) + "|") > -1;
var _local22 = _local19.colorProp;
if (_local19 != undefined) {
if ((_local21 == true) && (_local22 != undefined)) {
_local13.unshift(_local22);
delete _local19.props[_local22];
delete _local19.colorProp;
_local19.numProps--;
} else if (_local19.props[_local20] != undefined) {
_local13.unshift(_local20);
delete _local19[_local20];
_local19.numProps--;
}
}
var _local23 = {c:-1, fmp:-1};
var _local24 = endvals[i];
var _local25 = ((_local9 == 0) && ((seconds + delay) == 0)) || ((_local9 > 0) && (seconds == 0));
var _local26 = false;
var _local27 = (_local14 != undefined) && (_local15.indexOf(("|" + _local20) + "|") > -1);
if (_local27 == true) {
_local23.fmp = _local14;
_local23.ps = _local14.getFilterProp(obj, _local20, true);
_local23.special = true;
}
if ((_local21 == true) || ((_local27 == true) && ((_local20.indexOf("lor") > -1) && ((_local20.charAt(2) != "l") && (_local25 == false))))) {
if (_local21 == true) {
_local23.c = new Color(obj);
_local23.ps = _local23.c.getTransform();
if (_local20 != "_colorTransform") {
var _local28 = (((_local20 == "_tint") || ((_local20 == "_tintPercent") || (_local20 == "_colorReset"))) ? "tint" : (_local20.slice(1)));
var _local29 = null;
var _local30 = null;
if (_local28 == "tint") {
if (typeof(_local24) == "object") {
_local30 = _local24.tint;
_local29 = ((_global.isNaN(_local24.percent) == true) ? 100 : (_local24.percent));
} else if ((_local20 == "_tintPercent") || (_local20 == "_colorReset")) {
var _local31 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent;
_local29 = ((typeof(_local24) == "string") ? ((_local31 || 0) + Number(_local24)) : Number(_local24));
_local29 = Math.max(0, Math.min(_local29, 100));
if (_local20 == "_colorReset") {
_local29 = Math.min(_local31, 100 - _local29);
}
_local30 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0;
} else {
_local30 = _local24;
_local29 = 100;
}
} else {
_local29 = ((typeof(_local24) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[_local28] || 0) + Number(_local24)) : (_local24));
}
_local24 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(_local28, _local29, _local30);
}
} else {
_local23.c = 1;
_local23.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local23.ps);
_local24 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local24);
}
if (_local25 == true) {
_local23.c.setTransform(_local24);
} else {
_local23.ch = {};
for (var j in _local24) {
if ((((_local23.c === 1) && (j.charAt(1) == "b")) || (_local24[j] != _local23.ps[j])) && ((_local24[j] != null) && (_global.isNaN(Number(_local24[j])) == false))) {
_local23.ch[j] = ((typeof(_local24[j]) == "string") ? (Number(_local24[j])) : (_local24[j] - _local23.ps[j]));
if (_global.isNaN(_local23.ch[j]) == true) {
_local23.ch[j] = 0;
} else if (_local23.ch[j] != 0) {
_local26 = true;
}
}
}
}
} else if (_local20 == "_bezier_") {
removeTween(obj, "_x,_y", true);
if (_local25 == true) {
if ((_local24.x != null) && (_global.isNaN(Number(_local24.x)) == false)) {
obj._x = ((typeof(_local24.x) == "string") ? (obj._x + Number(_local24.x)) : (_local24.x));
}
if ((_local24.y != null) && (_global.isNaN(Number(_local24.y)) == false)) {
obj._y = ((typeof(_local24.y) == "string") ? (obj._y + Number(_local24.y)) : (_local24.y));
}
} else {
_local23.special = true;
_local23.ps = 0;
_local23.ch = 1;
_local23.bz = {sx:obj._x, sy:obj._y};
if ((_local24.x == null) || (_global.isNaN(Number(_local24.x)))) {
_local24.x = _local23.bz.sx;
}
if ((_local24.y == null) || (_global.isNaN(Number(_local24.y)))) {
_local24.y = _local23.bz.sy;
}
_local23.bz.chx = ((typeof(_local24.x) == "string") ? (Number(_local24.x)) : (_local24.x - _local23.bz.sx));
if (_global.isNaN(_local23.bz.chx) == true) {
_local23.bx.chx = 0;
}
_local23.bz.chy = ((typeof(_local24.y) == "string") ? (Number(_local24.y)) : (_local24.y - _local23.bz.sy));
if (_global.isNaN(_local23.bz.chy) == true) {
_local23.bx.chy = 0;
}
if ((_local24.controlX == null) || (_global.isNaN(Number(_local24.controlX)))) {
_local23.bz.ctrlx = _local23.bz.sx + (_local23.bz.chx / 2);
} else {
_local23.bz.ctrlx = ((typeof(_local24.controlX) == "string") ? (_local23.bz.sx + Number(_local24.controlX)) : (_local24.controlX));
}
if ((_local24.controlY == null) || (_global.isNaN(Number(_local24.controlY)))) {
_local23.bz.ctrly = _local23.bz.sy + (_local23.bz.chy / 2);
} else {
_local23.bz.ctrly = ((typeof(_local24.controlY) == "string") ? (_local23.bz.sy + Number(_local24.controlY)) : (_local24.controlY));
}
_local23.bz.ctrlx = _local23.bz.ctrlx - _local23.bz.sx;
_local23.bz.ctrly = _local23.bz.ctrly - _local23.bz.sy;
_local26 = (_local23.bz.chx + _local23.bz.chy) != 0;
}
} else {
if ((_local20 == "_x") || (_local20 == "_y")) {
removeTween(obj, "_bezier_", true);
}
if ((_local20 == "_frame") && (typeof(obj) == "movieclip")) {
_local23.ps = obj._currentframe;
_local23.special = true;
} else if (_local27 == false) {
_local23.ps = obj[_local20];
}
if (_local25 == true) {
_local24 = ((typeof(_local24) == "string") ? (_local23.ps + Number(_local24)) : (_local24));
if (_local27 == true) {
_local14.setFilterProp(obj, _local20, _local24);
} else {
obj[_local20] = _local24;
}
} else {
if ((_local24 == null) || (_global.isNaN(Number(_local24)))) {
_local24 = _local23.ps;
}
_local23.ch = ((typeof(_local24) == "string") ? (Number(_local24)) : (Number(_local24) - _local23.ps));
if (_global.isNaN(_local23.ch) == true) {
_local23.ch = 0;
}
_local26 = _local23.ch != 0;
}
}
if (((_local9 == 0) && ((_local26 == true) || (_local25 == false))) || ((_local26 == true) && (_local25 == false))) {
_local23.ts = now + (delay * 1000);
_local23.pt = -1;
_local23.d = seconds * 1000;
_local23.ef = ease;
_local23.sf = false;
_local23.cycles = _local10;
if (_local11 != undefined) {
_local23.e1 = _local11;
}
if (_local12 != undefined) {
_local23.e2 = _local12;
}
if (callback.start != undefined) {
_local23.scb = callback.start;
}
if (callback.upd != undefined) {
_local23.ucb = callback.upd;
}
if (callback.end != undefined) {
_local23.ecb = callback.end;
}
if (tweens[String(obj.__zigoID__)] == undefined) {
_local19 = (tweens[String(obj.__zigoID__)] = {numProps:0, locked:false, targ:obj, targID:String(("\"" + ((obj._name != undefined) ? (obj._name) : (obj.toString()))) + "\""), targZID:obj.__zigoID__, props:{}});
numTweens++;
}
if (_local21 == true) {
_local19.colorProp = _local20;
}
_local19.props[_local20] = _local23;
_local19.numProps++;
_local17 = (_local20 + ",") + _local17;
_local18 = (((typeof(_local24) == "string") ? (("\"" + _local24) + "\"") : (_local24)) + ",") + _local18;
}
}
if ((_local19 == undefined) || (_local19.numProps <= 0)) {
cleanUp();
}
if ((_local13.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) {
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:_local13, __zigoID__:obj.__zigoID__});
}
if (_local17 == "") {
if (_local9 == 2) {
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("011", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString());
}
} else {
var _local32 = obj._listeners.length > 0;
if (_local32 == true) {
obj.broadcastMessage("onTweenStart", {target:obj, props:props});
}
if (callback.start != undefined) {
callback.start.f.apply(callback.start.s, callback.start.a);
}
if (_local32 == true) {
obj.broadcastMessage("onTweenUpdate", {target:obj, props:props});
}
if (callback.upd != undefined) {
callback.upd.f.apply(callback.upd.s, callback.upd.a);
}
if (_local32 == true) {
obj.broadcastMessage("onTweenEnd", {target:obj, props:props});
}
if (callback.end != undefined) {
callback.end.f.apply(callback.end.s, callback.end.a);
}
}
cleanUp();
}
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
if (_local17 == "") {
com.mosesSupposes.fuse.FuseKitCommon.error("012", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString(), endvals.toString());
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("013", ((obj._name != undefined) ? (obj._name) : (obj.toString())), _local17.slice(0, -1), _local18.slice(0, -1));
}
}
return(((_local17 == "") ? null : (_local17.slice(0, -1))));
}
function removeTween(targs, props, noInit) {
var _local5 = {};
var _local6 = paramsObj(targs, props);
if (_local6.none == true) {
return(undefined);
}
var _local7 = _local6.all;
var _local8 = _local6.allprops;
var _local9 = ((_local7 == true) ? (tweens) : (Object(_local6.tg)));
var _local10 = false;
for (var j in _local9) {
var _local11 = ((_local7 == true) ? (j) : (String(_local9[j].__zigoID__)));
var _local12 = tweens[_local11];
var _local13 = ((_local8 == true) ? (_local12.props) : (_local6.props));
for (var i in _local13) {
var _local14 = (i == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (_local12.colorProp != undefined);
if ((_local12.props[i] != undefined) || (_local14 == true)) {
if (_local5[_local11] == null) {
_local5[_local11] = [];
}
_local5[_local11].unshift(i);
if ((i == _local12.colorProp) || (_local14 == true)) {
delete _local12.props[_local12.colorProp];
delete _local12.colorProp;
} else {
delete _local12.props[i];
}
_local12.numProps--;
if (_local12.numProps <= 0) {
_local10 = true;
break;
}
}
}
}
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
for (var k in _local5) {
var _local15 = tweens[k].targ;
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local15.addProperty) == "function") ? (_local15) : (("[MISSING(\"" + tweens[k].targID) + "\")]")), props:_local5[k], __zigoID__:tweens[k].targZID});
}
}
if (_local10 == true) {
cleanUp(noInit);
}
}
function alterTweens(type, targs, props, pauseFlag, suppressStartEvents) {
if (type == "lock") {
tweens[String(targs.__zigoID__)].locked = props == true;
return(undefined);
}
var _local7 = paramsObj(targs, props);
if (_local7.none == true) {
return(undefined);
}
var _local8 = _local7.all;
var _local9 = _local7.allprops;
var _local10 = ((_local8 == true) ? (tweens) : (Object(_local7.tg)));
var _local11 = 0;
for (var j in _local10) {
var _local12 = ((_local8 == true) ? (j) : (String(_local10[j].__zigoID__)));
var _local13 = tweens[_local12];
var _local14 = ((_local9 == true) ? (_local13.props) : (_local7.props));
if (_local14.ALLCOLOR == true) {
_local14[_local13.colorProp] = true;
delete _local14.ALLCOLOR;
}
for (var prop in _local14) {
_local11++;
var _local15 = _local13.props[prop];
if (type == "rewind") {
if (pauseFlag == true) {
_local15.pt = now;
}
_local15.ts = now;
if (suppressStartEvents != true) {
_local15.sf = false;
if (_local15.scb != undefined) {
_local15.scb.fired = false;
}
}
} else if (type == "ff") {
_local15.pt = -1;
_local15.ts = now - _local15.d;
} else if (type == "pause") {
if (_local15.pt == -1) {
_local15.pt = now;
}
} else if (type == "unpause") {
if (_local15.pt != -1) {
_local15.ts = now - (_local15.pt - _local15.ts);
_local15.pt = -1;
}
}
}
}
if ((type == "ff") && (_local11 > 0)) {
update();
} else if ((type == "rewind") && (_local11 > 0)) {
update(true);
}
}
function getStatus(type, targ, param) {
if (targ == null) {
return(null);
}
var _local5 = String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
var _local6 = tweens[String(targ.__zigoID__)];
switch (type) {
case "paused" :
var _local7 = _local6.props;
if (param != null) {
if (_local7[String(param)] == undefined) {
return(false);
}
return(_local7[String(param)].pt != -1);
}
for (var i in _local7) {
if (_local7[i].pt != -1) {
return(true);
}
}
return(false);
case "active" :
if (param == null) {
return(_local6 != undefined);
}
if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
return(_local6.colorProp != undefined);
}
return(_local6.props[String(param)] != undefined);
case "count" :
if (!_local5) {
return(_local6.numProps);
}
var _local8 = 0;
for (var i in tweens) {
_local8 = _local8 + tweens[i].numProps;
}
return(_local8);
case "locked" :
return(_local6.locked);
}
}
function update(force) {
var _local3 = {};
var _local4 = {};
var _local5 = {};
var _local6 = {};
var _local7 = {};
var _local8 = {};
var _local9 = false;
var _local10 = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS;
for (var i in tweens) {
var _local11 = tweens[i];
var _local12 = _local11.targ;
var _local13 = _local11.props;
var _local14 = _local12._listeners.length > 0;
if (_local12.__zigoID__ == undefined) {
_local9 = true;
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
var _local15 = [];
for (var prop in _local13) {
_local15.unshift(prop);
}
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local12.addProperty) == "function") ? (_local12) : (("[MISSING:" + _local11.targID) + "]")), props:_local15, __zigoID__:_local11.targZID});
}
continue;
}
for (var prop in _local13) {
var _local16 = _local13[prop];
if (((_local16.ts > now) || (_local16.pt != -1)) && (force != true)) {
continue;
}
var _local17 = now >= (_local16.ts + _local16.d);
if (_local16.c == -1) {
if (_local17 == true) {
var _local18 = _local16.ps + _local16.ch;
if ((_local16.cycles > 1) || (_local16.cycles == 0)) {
if (_local16.cycles > 1) {
_local16.cycles--;
}
_local16.ps = _local18;
_local16.ch = -_local16.ch;
_local16.ts = now;
_local17 = false;
}
} else {
var _local18 = _local16.ef(now - _local16.ts, _local16.ps, _local16.ch, _local16.d, _local16.e1, _local16.e2);
}
if (_global.isNaN(_local18) == false) {
if (_local10 == true) {
var _local18 = Math.round(Number(_local18));
}
if (_local16.special != true) {
_local12[prop] = _local18;
} else if (_local16.fmp != -1) {
_local16.fmp.setFilterProp(_local12, prop, _local18);
} else if (prop == "_bezier_") {
var _local19 = _local16.bz;
_local12._x = _local19.sx + (_local18 * (((2 * (1 - _local18)) * _local19.ctrlx) + (_local18 * _local19.chx)));
_local12._y = _local19.sy + (_local18 * (((2 * (1 - _local18)) * _local19.ctrly) + (_local18 * _local19.chy)));
} else if (prop == "_frame") {
MovieClip(_local12).gotoAndStop(Math.round(_local18));
}
}
} else {
var _local20 = {};
var _local21 = (_local17 == true) && ((_local16.cycles > 1) || (_local16.cycles == 0));
for (var j in _local16.ch) {
var _local22 = _local16.ch[j];
if (_local17 == true) {
_local20[j] = _local16.ps[j] + _local22;
if (_local21 == true) {
_local16.ch[j] = -_local22;
}
} else {
_local20[j] = _local16.ef(now - _local16.ts, _local16.ps[j], _local22, _local16.d, _local16.e1, _local16.e2);
}
if (_global.isNaN(_local20[j]) == false) {
if (_local10 == true) {
_local20[j] = Math.round(_local20[j]);
}
if (_local16.fmp == -1) {
_local16.c.setTransform(_local20);
} else {
var _local23 = ((_local20.rb << 16) | (_local20.gb << 8)) | _local20.bb;
_local16.fmp.setFilterProp(_local12, prop, _local23);
}
}
}
if (_local21 == true) {
if (_local16.cycles > 1) {
_local16.cycles--;
}
_local17 = false;
_local16.ts = now;
_local16.ps = _local20;
}
}
if (_local16.sf == false) {
if (_local14 == true) {
if (_local6[i] == undefined) {
_local6[i] = [_local12, []];
}
_local6[i][1].unshift(prop);
}
_local16.sf = true;
}
if (_local16.scb.fired == false) {
_local3[String(_local16.scb.id)] = _local16.scb;
_local16.scb.fired = true;
}
if (_local14 == true) {
if (_local7[i] == undefined) {
_local7[i] = [_local12, []];
}
_local7[i][1].unshift(prop);
}
if (_local16.ucb != undefined) {
_local4[String(_local16.ucb.id)] = _local16.ucb;
}
if (_local17 == true) {
if (_local14 == true) {
if (_local8[i] == undefined) {
_local8[i] = [_local12, []];
}
_local8[i][1].unshift(prop);
}
if (_local16.ecb != undefined) {
_local5[String(_local16.ecb.id)] = _local16.ecb;
}
delete _local13[prop];
if (prop == _local11.colorProp) {
delete _local11.colorProp;
}
_local11.numProps--;
if (_local11.numProps <= 0) {
_local9 = true;
}
}
}
}
for (var i in _local6) {
_local6[i][0].broadcastMessage("onTweenStart", {target:_local6[i][0], props:_local6[i][1]});
}
for (var i in _local3) {
_local3[i].f.apply(_local3[i].s, _local3[i].a);
}
for (var i in _local7) {
_local7[i][0].broadcastMessage("onTweenUpdate", {target:_local7[i][0], props:_local7[i][1]});
}
for (var i in _local4) {
_local4[i].f.apply(_local4[i].s, _local4[i].a);
}
for (var i in _local8) {
_local8[i][0].broadcastMessage("onTweenEnd", {target:_local8[i][0], props:_local8[i][1]});
}
for (var i in _local5) {
_local5[i].f.apply(_local5[i].s, _local5[i].a);
}
if (_local9) {
cleanUp();
}
now = getTimer();
}
function cleanUp(noInit) {
for (var i in tweens) {
var _local3 = tweens[i].targ;
if ((tweens[i].numProps <= 0) || (_local3.__zigoID__ == undefined)) {
if ((_local3 != undefined) && ((_local3.tween == undefined) && (noInit != true))) {
com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(_local3);
}
delete tweens[i];
numTweens--;
}
}
if (numTweens <= 0) {
numTweens = 0;
delete tweens;
tweens = {};
if (noInit != true) {
com.mosesSupposes.fuse.ZigoEngine.__mgrRelay(this, "setup", [true]);
}
}
}
function paramsObj(targs, props, endvals) {
var _local5 = {};
_local5.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
_local5.none = targs == null;
if (_local5.all == true) {
_local5.tg = [null];
} else {
_local5.tg = ((targs instanceof Array) ? (targs) : ([targs]));
for (var i in _local5.tg) {
var _local6 = _local5.tg[i];
if ((_local6 == null) || (!((typeof(_local6) == "object") || (typeof(_local6) == "movieclip")))) {
_local5.tg.splice(Number(i), 1);
}
}
}
_local5.allprops = props == null;
var _local9 = {};
if (_local5.allprops == false) {
if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) {
props = String(props.split(" ").join("")).split(",");
}
var _local7 = ((props instanceof Array) ? (props.slice()) : ([props]));
if (endvals != undefined) {
if ((typeof(endvals) == "string") && ((String(endvals).indexOf(" ") > -1) || (String(endvals).indexOf(",") > -1))) {
endvals = String(endvals.split(" ").join("")).split(",");
}
var _local8 = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals]));
while (_local8.length < _local7.length) {
_local8.push(_local8[_local8.length - 1]);
}
_local8.splice(_local7.length, _local8.length - _local7.length);
}
for (var i in _local7) {
var _local10 = Number(i);
if ((_local7[i] != "_scale") && (_local7[i] != "_size")) {
if (_local9[_local7[i]] == undefined) {
if (String(_local7[i]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
_local7[i] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR;
}
_local9[_local7[i]] = true;
} else {
_local7.splice(_local10, 1);
_local8.splice(_local10, 1);
}
} else {
var _local11 = String(_local7.splice(_local10, 1)[0]);
var _local12 = _local8.splice(_local10, 1)[0];
if (_local11 == "_scale") {
if (_local9._xscale == undefined) {
_local7.splice(_local10, 0, "_xscale");
_local8.splice(_local10, 0, _local12);
_local9._xscale = true;
_local10++;
}
if (_local9._yscale == undefined) {
_local7.splice(_local10, 0, "_yscale");
_local8.splice(_local10, 0, _local12);
_local9._yscale = true;
}
}
if (_local11 == "_size") {
if (_local9._width == undefined) {
_local7.splice(_local10, 0, "_width");
_local8.splice(_local10, 0, _local12);
_local9._width = true;
_local10++;
}
if (_local9._yscale == undefined) {
_local7.splice(_local10, 0, "_height");
_local8.splice(_local10, 0, _local12);
_local9._height = true;
}
}
}
}
for (var i in _local7) {
if (((_local7[i] == "_xscale") && (_local9._width == true)) || ((_local7[i] == "_yscale") && (_local9._height == true))) {
_local7.splice(Number(i), 1);
_local8.splice(Number(i), 1);
delete _local9[_local7[i]];
}
}
}
_local5.pa = _local7;
_local5.va = _local8;
_local5.props = _local9;
return(_local5);
}
var numTweens = 0;
}
Symbol 20497 MovieClip [__Packages.com.techsmith.utils.Point] Frame 0
class com.techsmith.utils.Point
{
function Point (x, y) {
if (x != null) {
this.x = x;
}
if (y != null) {
this.y = y;
}
}
var x = 0;
var y = 0;
}
Symbol 20498 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0
class com.mosesSupposes.fuse.ZigoEngine
{
static var extensions, updateTime, tweenHolder, instance, updateIntId;
function ZigoEngine () {
}
static function addListener(handler) {
AsBroadcaster.initialize(com.mosesSupposes.fuse.ZigoEngine);
addListener(handler);
}
static function removeListener(handler) {
}
static function isPlaying() {
return(_playing);
}
static function simpleSetup(shortcutsClass) {
if (arguments.length > 0) {
register.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
}
_global.ZigoEngine = com.mosesSupposes.fuse.ZigoEngine;
if (extensions.fuse != undefined) {
_global.Fuse = extensions.fuse;
}
if (extensions.fuseFMP != undefined) {
extensions.fuseFMP.simpleSetup();
}
initialize(MovieClip.prototype, Button.prototype, TextField.prototype);
if (extensions.shortcuts == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("001");
}
}
static function register(classReference) {
if (extensions == undefined) {
extensions = {};
}
var _local3 = "|fuse|fuseItem|fuseFMP|shortcuts|pennerEasing|";
for (var i in arguments) {
var _local4 = arguments[i].registryKey;
if ((extensions[_local4] == undefined) && (_local3.indexOf(("|" + _local4) + "|") > -1)) {
extensions[_local4] = arguments[i];
if ((_local4 == "fuseFMP") || (_local4 == "shortcuts")) {
Object(extensions[_local4]).initialize();
}
}
}
}
static function initialize(target) {
if (arguments.length > 0) {
initializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.addShortcutsTo.apply(extensions.shortcuts, arguments);
}
}
}
static function deinitialize(target) {
if ((arguments.length == 0) || (target == null)) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
deinitializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.removeShortcutsFrom.apply(extensions.shortcuts, arguments);
}
}
static function getUpdateInterval() {
return(updateTime);
}
static function setUpdateInterval(time) {
if (_playing) {
setup(true);
updateTime = time;
setup();
} else {
updateTime = time;
}
}
static function getControllerDepth() {
return(tweenHolder.getDepth());
}
static function setControllerDepth(depth) {
if ((depth == null) || (_global.isNaN(depth) == true)) {
depth = 6789;
}
if (Object(tweenHolder).proof != null) {
tweenHolder.swapDepths(depth);
} else {
tweenHolder = _root.createEmptyMovieClip("ZigoEnginePulse", depth);
}
}
static function doShortcut(targets, methodName) {
if (extensions.shortcuts == undefined) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("002");
}
return(null);
}
return(extensions.shortcuts.doShortcut.apply(extensions.shortcuts, arguments));
}
static function doTween(targets, props, endvals, seconds, ease, delay, callback) {
if (extensions.fuse.addBuildItem(arguments) == true) {
return(null);
}
if ((instance == undefined) || ((Object(tweenHolder).proof == undefined) && (updateTime == undefined))) {
if ((MovieClip.prototype.tween != null) && (typeof(_global.$tweenManager) == "object")) {
com.mosesSupposes.fuse.FuseKitCommon.error("003");
}
instance = new com.mosesSupposes.fuse.ZManager();
_playing = false;
}
var _local9 = instance.paramsObj(targets, props, endvals);
var _local10 = (((_local9.tg[0] == null) || (_local9.tg.length == 0)) ? undefined : (_local9.tg));
if ((_local9.pa == undefined) || ((_local10 == undefined) || (arguments.length < 3))) {
if ((extensions.fuseItem != null) && (typeof(_local10[0]) == "object")) {
return(extensions.fuseItem.doTween(arguments[0]));
}
if (OUTPUT_LEVEL > 0) {
if (arguments.length < 3) {
com.mosesSupposes.fuse.FuseKitCommon.error("004", String(arguments.length));
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("005", _local10.toString(), _local9.pa.toString());
}
}
return(null);
}
if (_playing != true) {
setup();
}
if ((seconds == null) || (_global.isNaN(seconds) == true)) {
seconds = DURATION || 1;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || ((delay == null) || (_global.isNaN(delay) == true))) {
delay = 0;
}
var _local11 = parseCallback(callback, _local10);
if (typeof(ease) == "function") {
if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") {
var _local12 = Function(ease);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("014", ease);
}
} else if ((ease == null) || (ease == "")) {
if (EASING instanceof Function) {
var _local12 = Function(EASING);
} else if (extensions.pennerEasing != undefined) {
ease = EASING;
}
}
if ((typeof(ease) == "string") && (ease != "")) {
if (extensions.pennerEasing[ease] != undefined) {
var _local12 = extensions.pennerEasing[ease];
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("006", ease);
}
} else if ((typeof(ease) == "object") && ((ease.ease != null) && (ease.pts != null))) {
var _local12 = Function(ease.ease);
_local11.extra1 = ease.pts;
}
if (typeof(_local12) != "function") {
var _local12 = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
}
var _local13 = "";
for (var i in _local10) {
var _local14 = _local10[i];
if (_local14.__zigoID__ == null) {
initializeTargets(_local14);
} else if (instance.getStatus("locked", _local14) == true) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("007", ((_local14._name != undefined) ? (_local14._name) : (_local14.toString())), _local9.pa.toString());
}
continue;
}
var _local15 = instance.addTween(_local14, _local9.pa, _local9.va, seconds, _local12, delay, _local11);
_local13 = ((_local15 == null) ? "|" : (_local15 + "|")) + _local13;
}
_local13 = _local13.slice(0, -1);
return((((_local13 == "") || (_local13 == "|")) ? null : (_local13)));
}
static function removeTween(targs, props) {
instance.removeTween(targs, props);
}
static function isTweening(targ, prop) {
return(instance.getStatus("active", targ, prop));
}
static function getTweens(targ) {
return(Number(instance.getStatus("count", targ)));
}
static function lockTween(targ, setLocked) {
instance.alterTweens("lock", targ, setLocked);
}
static function isTweenLocked(targ) {
return(instance.getStatus("locked", targ));
}
static function ffTween(targs, props) {
instance.alterTweens("ff", targs, props);
}
static function rewTween(targs, props, pauseFlag, suppressStartEvents) {
instance.alterTweens("rewind", targs, props, pauseFlag, suppressStartEvents);
}
static function isTweenPaused(targ, prop) {
return(instance.getStatus("paused", targ, prop));
}
static function pauseTween(targs, props) {
instance.alterTweens("pause", targs, props);
}
static function unpauseTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function resumeTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function setColorByKey(targetObj, type, amt, rgb) {
new Color(targetObj).setTransform(getColorTransObj(type, amt, rgb));
}
static function getColorTransObj(type, amt, rgb) {
switch (type) {
case "brightness" :
var _local5 = 100 - Math.abs(amt);
var _local6 = ((amt > 0) ? (255 * (amt / 100)) : 0);
return({ra:_local5, rb:_local6, ga:_local5, gb:_local6, ba:_local5, bb:_local6});
case "brightOffset" :
return({ra:100, rb:255 * (amt / 100), ga:100, gb:255 * (amt / 100), ba:100, bb:255 * (amt / 100)});
case "contrast" :
return({ra:amt, rb:128 - ((128 / 100) * amt), ga:amt, gb:128 - ((128 / 100) * amt), ba:amt, bb:128 - ((128 / 100) * amt)});
case "invertColor" :
return({ra:100 - (2 * amt), rb:amt * (255 / 100), ga:100 - (2 * amt), gb:amt * (255 / 100), ba:100 - (2 * amt), bb:amt * (255 / 100)});
case "tint" :
if (rgb == null) {
break;
}
if (typeof(rgb) == "string") {
if (rgb.charAt(0) == "#") {
rgb = rgb.slice(1);
}
rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb));
}
var _local7 = Number(rgb);
return({ra:100 - amt, rb:(_local7 >> 16) * (amt / 100), ga:100 - amt, gb:((_local7 >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(_local7 & 255) * (amt / 100)});
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
}
static function getColorKeysObj(targOrTransObj) {
var _local3 = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform()));
var _local4 = {};
var _local5 = (_local3.ra == _local3.ga) && (_local3.ga == _local3.ba);
var _local6 = (_local3.rb == _local3.gb) && (_local3.gb == _local3.bb);
var _local7 = ((_local5 == true) ? (100 - _local3.ra) : 0);
if (_local7 != 0) {
var _local8 = 100 / _local7;
_local4.tint = (((_local3.rb * _local8) << 16) | ((_local3.gb * _local8) << 8)) | (_local3.bb * _local8);
_local4.tintPercent = _local7;
var _local9 = _local4.tint.toString(16);
var _local10 = 6 - _local9.length;
while ((_local10--) > 0) {
_local9 = "0" + _local9;
}
_local4.tintString = "0x" + _local9.toUpperCase();
}
if ((_local5 == true) && (_local6 == true)) {
if (_local3.ra < 0) {
_local4.invertColor = _local3.rb * (100 / 255);
} else if ((_local3.ra == 100) && (_local3.rb != 0)) {
_local4.brightOffset = _local3.rb * (100 / 255);
}
if (_local3.ra != 100) {
if ((_local3.rb == 0) || ((_local3.rb != 0) && (((255 * ((100 - _local3.ra) / 100)) - _local3.rb) <= 1))) {
_local4.brightness = ((_local3.rb != 0) ? (100 - _local3.ra) : (_local3.ra - 100));
}
if (((128 - ((128 / 100) * _local3.ra)) - _local3.rb) <= 1) {
_local4.contrast = _local3.ra;
}
}
}
return(_local4);
}
static function initializeTargets() {
for (var i in arguments) {
var _local2 = arguments[i];
if ((_local2 == MovieClip.prototype) || ((_local2 == Button.prototype) || ((_local2 == TextField.prototype) || (_local2 == Object.prototype)))) {
if (_local2.oldAddListener == undefined) {
if (_local2 == TextField.prototype) {
_local2.oldAddListener = _local2.addListener;
_global.ASSetPropFlags(_local2, "oldAddListener", 7, 1);
}
_local2.addListener = function (o) {
if (this.__zigoID__ == undefined) {
com.mosesSupposes.fuse.ZigoEngine.initializeTargets(this);
}
if (this instanceof TextField) {
Function(this.oldAddListener).call(this, o);
} else {
this.addListener(o);
}
};
if (_local2 == MovieClip.prototype) {
_global.ASSetPropFlags(_local2, "addListener", 7, 1);
}
}
} else if (_local2.__zigoID__ == undefined) {
_local2.__zigoID__ = zigoIDs;
_global.ASSetPropFlags(_local2, "__zigoID__", 7, 1);
zigoIDs++;
if ((_local2._listeners == null) || (_local2.addListener == null)) {
AsBroadcaster.initialize(_local2);
}
}
}
}
static function deinitializeTargets() {
for (var i in arguments) {
var _local2 = arguments[i];
if (_local2.__zigoID__ != undefined) {
_global.ASSetPropFlags(_local2, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2);
delete _local2.__zigoID__;
delete _local2._listeners;
delete _local2.broadcastMessage;
delete _local2.addListener;
delete _local2.removeListener;
}
if (_local2.oldAddListener != undefined) {
_global.ASSetPropFlags(_local2, "oldAddListener", 0, 2);
_local2.addListener = _local2.oldAddListener;
delete _local2.oldAddListener;
}
}
}
static function __mgrRelay(inst, method, args) {
if (inst == instance) {
Function(com.mosesSupposes.fuse.ZigoEngine[method]).apply(com.mosesSupposes.fuse.ZigoEngine, args);
}
}
static function setup(deinitFlag) {
if (deinitFlag == true) {
_playing = false;
_global.clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
return(undefined);
}
instance.cleanUp();
_global.clearInterval(updateIntId);
delete updateIntId;
if ((updateTime != null) && (updateTime > 0)) {
updateIntId = _global.setInterval(instance, "update", updateTime);
} else {
if (Object(tweenHolder).proof == null) {
setControllerDepth(6789);
Object(tweenHolder).proof = 1;
}
var _inst = instance;
tweenHolder.onEnterFrame = function () {
_inst.update.call(_inst);
};
}
_playing = true;
instance.now = getTimer();
}
static function parseCallback(callback, targets) {
var _local4 = {skipLevel:SKIP_LEVEL, cycles:1};
if ((callback.skipLevel != undefined) && ((typeof(callback.skipLevel) == "number") && (callback.skipLevel != SKIP_LEVEL))) {
if ((callback.skipLevel >= 0) && (callback.skipLevel <= 2)) {
_local4.skipLevel = callback.skipLevel;
}
}
if (callback.cycles != undefined) {
if ((typeof(callback.cycles) == "number") && (callback.cycles > -1)) {
_local4.cycles = callback.cycles;
} else if (callback.cycles.toUpperCase() == "LOOP") {
_local4.cycles = 0;
}
}
if (callback.extra1 != undefined) {
_local4.extra1 = callback.extra1;
}
if (callback.extra2 != undefined) {
_local4.extra2 = callback.extra2;
}
if (callback == undefined) {
return(_local4);
}
var _local5 = [];
if (typeof(callback) == "string") {
var _local6 = String(callback);
} else if (typeof(callback.easyfunc) == "string") {
var _local6 = callback.easyfunc;
}
if ((_local6 != undefined) && ((_local6.indexOf("(") > -1) && (_local6.indexOf(")") > -1))) {
if (extensions.shortcuts != undefined) {
callback = extensions.shortcuts.parseStringTypeCallback(_local6);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("008");
}
} else if ((typeof(callback) == "function") || (typeof(callback) == "string")) {
callback = {func:callback};
}
for (var i in callback) {
var _local7 = i.toLowerCase().indexOf("func");
if (_local7 > -1) {
var _local8 = i.slice(0, _local7);
var _local9 = callback[i];
var _local10 = callback[_local8 + "args"];
var _local11 = callback[_local8 + "scope"];
if ((typeof(_local9) == "string") && (_local11[_local9] == undefined)) {
for (var j in targets) {
var _local12 = targets[j];
if (typeof(_local12[_local9]) == "function") {
_local11 = _local12;
break;
}
if (typeof(_local12._parent[_local9]) == "function") {
_local11 = _local12._parent;
break;
}
}
if ((_local11 == undefined) && (_level0[_local9] != undefined)) {
_local11 = _level0;
}
if ((_local11 == undefined) && (_global[_local9] != undefined)) {
_local11 = _global;
}
}
if (typeof(_local9) != "function") {
if (typeof(_local11[String(_local9)]) == "function") {
_local9 = _local11[String(_local9)];
} else {
_local9 = eval (String(_local9));
}
}
if (_local9 == undefined) {
_local5.push(String((((((i + ":") + ((typeof(callback[i]) == "string") ? (("\"" + callback[i]) + "\"") : (callback[i]))) + "/") + _local8) + "scope:") + _local11));
} else {
if ((_local10 != undefined) && (!(_local10 instanceof Array))) {
_local10 = [_local10];
}
if (_local8 == "") {
_local8 = "end";
}
_local4[_local8] = {s:_local11, f:_local9, a:_local10, id:cbTicker++};
if (_local8 == "start") {
_local4.start.fired = false;
}
}
} else if (com.mosesSupposes.fuse.FuseKitCommon._cbprops().indexOf(("|" + i) + "|") == -1) {
com.mosesSupposes.fuse.FuseKitCommon.error("009", i);
}
}
if ((_local5.length > 0) && (OUTPUT_LEVEL > 0)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("010", _local5.length, _local5.toString());
}
}
return(_local4);
}
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION + ", ZigoEngine based on concepts by Ladislav Zigo, laco.wz.cz/tween";
static var EASING = "easeOutQuint";
static var DURATION = 1;
static var ROUND_RESULTS = false;
static var OUTPUT_LEVEL = 1;
static var AUTOSTOP = false;
static var SKIP_LEVEL = 0;
static var _playing = false;
static var zigoIDs = 0;
static var cbTicker = 0;
}
Symbol 20499 MovieClip [__Packages.com.mosesSupposes.fuse.FuseItem] Frame 0
class com.mosesSupposes.fuse.FuseItem
{
static var _ZigoEngine, _aInstances;
var _nItemID, _nFuseID, _initObj, _aProfiles, _oElements, _oTemps, _sImage, _aTweens;
function FuseItem (id, o, fuseID) {
_ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
_nItemID = id;
_nFuseID = fuseID;
_initObj = o;
_aProfiles = [];
_oElements = {aEvents:[]};
_oTemps = {};
if (!(o instanceof Array)) {
o = [o];
}
var _local5 = _global.com.mosesSupposes.fuse.Fuse;
_oTemps.outputLevel = ((_local5 != undefined) ? (_local5.OUTPUT_LEVEL) : (_global.com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL));
if (o.length == 1) {
var _local6 = o[0];
var _local7 = ((_local6.action != undefined) ? (_local6.action) : (_local6));
if ((_local7.__buildMode != true) && (_local7.command != undefined)) {
_oElements.command = _local7.command;
_oElements.scope = _local7.scope;
_oElements.args = _local7.args;
_sImage = " Elements:[" + ("command" + ((typeof(_local7.command) == "string") ? ((":\"" + _local7.command) + "\", ") : ", "));
if ((_local7.label != undefined) && (typeof(_local7.label) == "string")) {
_sImage = _sImage + (("label:\"" + _local7.label) + "\", ");
_oElements.label = _local7.label;
}
if (_local7.delay != undefined) {
_sImage = _sImage + "delay, ";
_oElements.delay = _local7.delay;
}
if ((_local7.func != undefined) && (_oTemps.outputLevel > 0)) {
com.mosesSupposes.fuse.FuseKitCommon.error("113");
}
return;
}
}
_oTemps.sImgS = "";
_oTemps.sImgE = "";
_oTemps.sImgB = "";
_oTemps.afl = 0;
_oTemps.ael = 0;
_oTemps.twDelayFlag = false;
_oTemps.nActions = o.length;
_oTemps.fuseProps = com.mosesSupposes.fuse.FuseKitCommon._fuseprops();
_oTemps.cbProps = com.mosesSupposes.fuse.FuseKitCommon._cbprops();
_oTemps.sUP = com.mosesSupposes.fuse.FuseKitCommon._underscoreable();
_oTemps.sCT = com.mosesSupposes.fuse.FuseKitCommon._cts();
_oTemps.bTriggerFound = false;
for (var i in o) {
var _local8 = o[i];
if ((_local8.label != undefined) && (typeof(_local8.label) == "string")) {
_oElements.label = _local8.label;
}
var _local11 = (typeof(_local8.action) == "object") && (!(_local8.action instanceof Array));
if (_local11 == true) {
var _local9 = _local8.action;
var _local10 = {delay:_local8.delay, target:_local8.target, addTarget:_local8.addTarget, label:_local8.label, trigger:_local8.trigger};
} else {
var _local9 = _local8;
}
var _local12 = parseProfile(_local9, _local10);
if (_local12 != undefined) {
_aProfiles.unshift(_local12);
}
}
_sImage = "";
var _local13 = "";
if (_oElements.label != undefined) {
_local13 = _local13 + (("label:\"" + _oElements.label) + "\", ");
}
if (_oTemps.afl > 0) {
_local13 = _local13 + ((_oTemps.afl > 1) ? (_oTemps.afl + " callbacks, ") : "callback, ");
}
if ((_oElements.delay != undefined) || (_oTemps.twDelayFlag == true)) {
_local13 = _local13 + "delay, ";
}
if (_oTemps.bTriggerFound == true) {
_local13 = _local13 + "trigger, ";
}
if (_oTemps.ael > 0) {
_local13 = _local13 + ((_oTemps.ael > 1) ? (_oTemps.ael + " events, ") : "event, ");
}
if (_local13 != "") {
_sImage = _sImage + ((" Elements:[" + _local13.slice(0, -2)) + "]");
}
if (_oTemps.sImgS != "") {
_sImage = _sImage + ((" StartProps:[" + _oTemps.sImgS.slice(0, -2)) + "]");
}
if (_oTemps.sImgE != "") {
_sImage = _sImage + ((" Props:[" + _oTemps.sImgE.slice(0, -2)) + "]");
}
if (_oTemps.sImgB != "") {
_sImage = _sImage + ((" Simple Syntax Props:[" + _oTemps.sImgB.slice(0, -1)) + "]");
}
delete _oTemps;
}
static function doTween() {
for (var i in arguments) {
if (typeof(arguments[i]) == "object") {
if (_aInstances == undefined) {
_aInstances = new Array();
}
var _local2 = new com.mosesSupposes.fuse.FuseItem(_aInstances.length, arguments[i], -1);
return(_local2.startItem());
}
}
}
function getLabel() {
return(_oElements.label);
}
function hasTriggerFired() {
return(_bTrigger == true);
}
function getInitObj() {
return(_initObj);
}
function getActiveTargets(targetList) {
if (_aTweens.length <= 0) {
return(targetList);
}
var _local3 = false;
for (var i in _aTweens) {
for (var j in targetList) {
if (targetList[j] == _aTweens[i].targ) {
_local3 = true;
break;
}
}
if (_local3 == false) {
targetList.unshift(_aTweens[i].targ);
}
}
return(targetList);
}
function toString() {
return(String((_sID() + ":") + _sImage));
}
function evalDelay(scope) {
var _local3 = _oElements.delay;
if (_local3 instanceof Function) {
_local3 = _local3.apply(((_oElements.delayscope != undefined) ? (_oElements.delayscope) : (scope)));
}
if (typeof(_local3) == "string") {
_local3 = parseClock(String(_local3));
}
if (_global.isNaN(Number(_local3)) == true) {
return(0);
}
return(Number(_local3));
}
function startItem(targs, scope) {
_ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
var _local4 = _global.com.mosesSupposes.fuse.Fuse;
var _local5 = ((_local4 != undefined) ? (_local4.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if (_oElements.command != null) {
var _local6 = "|start|stop|pause|resume|skipTo|setStartProps|";
var _local7 = _oElements.scope || (scope);
var _local8 = ((_oElements.command instanceof Function) ? (String(_oElements.command.apply(_local7))) : (String(_oElements.command)));
var _local9 = ((_oElements.args instanceof Function) ? (_oElements.args.apply(_local7)) : (_oElements.args));
if ((_local6.indexOf(("|" + _local8) + "|") == -1) || ((_local8 == "skipTo") && (_local9 == undefined))) {
if (_local5 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("111", _local8);
}
} else {
_nPlaying = 1;
if (!(_local9 instanceof Array)) {
_local9 = ((_local9 == null) ? ([]) : ([_local9]));
}
dispatchRequest(String(_local8), _local9);
}
return(null);
}
if (_aTweens.length > 0) {
stop();
}
_ZigoEngine.addListener(this);
_nPlaying = 2;
var _local10 = null;
if (_aProfiles.length > 0) {
if (_ZigoEngine == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("112");
} else {
_local10 = doTweens(targs, scope, false);
}
}
_nPlaying = 1;
var _local11 = _oElements.aEvents;
for (var i in _local11) {
if ((_local10 == null) && ((_aTweens.length > 0) && (_local11[i].skipLevel == 2))) {
continue;
}
fireEvents(_local11[i], scope, _local5);
}
if ((_local10 == null) && ((_aTweens.length <= 0) && (_nPlaying == 1))) {
if (_local5 == 3) {
(com.mosesSupposes.fuse.FuseKitCommon.output(((("-" + _sID()) + " no tweens added - item done. [getTimer()=") + getTimer()) + "]"));// not popped
}
complete();
}
return(_local10);
}
function stop() {
var _local2 = _nPlaying > -1;
_nPlaying = -1;
if (_local2 == true) {
onStop();
}
_ZigoEngine.removeListener(this);
}
static function removeInstance(id) {
com.mosesSupposes.fuse.FuseItem(_aInstances[id]).destroy();
delete _aInstances[id];
}
function onStop() {
_bStartSet = false;
for (var i in _aTweens) {
var _local2 = _aTweens[i];
_local2.targ.removeListener(this);
_ZigoEngine.removeTween(_local2.targ, _local2.props);
delete _aTweens[i];
}
delete _aTweens;
_bTrigger = false;
}
function evtSetStart(o) {
if ((_sImage.indexOf("StartProps:") == -1) || (o.curIndex == _nItemID)) {
return(undefined);
}
if (o.all != true) {
var _local3 = false;
for (var i in o.filter) {
if ((Number(o.filter[i]) == _nItemID) || (String(o.filter[i]) == _oElements.label)) {
_local3 = true;
}
}
if (_local3 == false) {
return(undefined);
}
}
doTweens(o.targs, o.scope, true);
_bStartSet = true;
}
function pause(resume) {
if (_nPlaying == -1) {
return(undefined);
}
_nPlaying = ((resume == true) ? 1 : 0);
for (var i in _aTweens) {
var _local3 = _aTweens[i];
var _local4 = _local3.targ;
var _local5 = _local3.props;
if (resume == true) {
var _local6 = [];
var _local7 = _aTweens.length;
for (var j in _local5) {
if (_ZigoEngine.isTweenPaused(_local4, _local5[j]) == false) {
_local6.push(_local5[j]);
}
}
if (_local6.length > 0) {
onTweenEnd({__zigoID__:_local3.targZID, props:_local6, isResume:true});
}
if (_aTweens.length == _local7) {
_local4.addListener(this);
_ZigoEngine.unpauseTween(_local4, _local3.props);
}
} else {
_local4.removeListener(this);
_ZigoEngine.pauseTween(_local4, _local3.props);
}
}
if ((resume == true) && (_aTweens.length <= 0)) {
complete();
} else if (resume == true) {
_ZigoEngine.addListener(this);
} else {
_ZigoEngine.removeListener(this);
}
}
function destroy() {
var _local2 = _nPlaying > -1;
_nPlaying = -1;
for (var i in _aTweens) {
var _local3 = _aTweens[i];
_local3.targ.removeListener(this);
if (_local2 == true) {
_ZigoEngine.removeTween(_local3.targ, _local3.props);
}
delete _aTweens[i];
}
for (var j in this) {
delete this[j];
}
}
function dispatchRequest(type, args) {
var _local4 = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
if ((!(args instanceof Array)) && (args != null)) {
args = new Array(args);
}
Function(_local4[type]).apply(_local4, args);
}
function _sID() {
if (_nFuseID == -1) {
var _local2 = "One-off tween ";
} else {
var _local3 = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
var _local2 = "Fuse#" + String(_nFuseID);
if (_local3.label != undefined) {
_local2 = _local2 + ((":\"" + _local3.label) + "\"");
}
}
var _local2 = _local2 + (">Item#" + String(_nItemID));
if (_oElements.label != undefined) {
_local2 = _local2 + ((":\"" + _oElements.label) + "\"");
}
return(_local2);
}
function parseProfile(obj, aap) {
if (obj.__buildMode == true) {
if (obj.command != undefined) {
if (obj.command == "delay") {
_oElements.delay = obj.commandargs;
} else {
_oElements.command = obj.command;
_oElements.args = obj.commandargs;
}
}
if (obj.func != undefined) {
_oTemps.afl++;
_oElements.aEvents.unshift({f:obj.func, s:obj.scope, a:obj.args});
}
if (obj.tweenargs != undefined) {
_oTemps.sImgB = _oTemps.sImgB + (obj.tweenargs[1].toString() + ",");
return(obj);
}
return(null);
}
var _local7 = {delay:((aap.delay != undefined) ? (aap.delay) : (obj.delay)), ease:obj.ease, seconds:obj.seconds, event:obj.event, eventparams:obj.eventparams, skipLevel:(((typeof(obj.skipLevel) == "number") && ((obj.skipLevel >= 0) && (obj.skipLevel <= 2))) ? (obj.skipLevel) : (_ZigoEngine.SKIP_LEVEL)), oSP:{}, oEP:{}, oAFV:{}};
var _local8 = ((aap.trigger != undefined) ? (aap.trigger) : (obj.trigger));
if (_local8 != undefined) {
if (_oTemps.bTriggerFound == false) {
_local7.trigger = _local8;
_oTemps.bTriggerFound = true;
} else if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("126", _sID(), _local8);
}
}
if (_local7.delay == undefined) {
_local7.delay = obj.startAt;
}
if (_local7.ease == undefined) {
_local7.ease = obj.easing;
}
if (_local7.seconds == undefined) {
_local7.seconds = ((obj.duration != undefined) ? (obj.duration) : (obj.time));
}
if (aap.target != undefined) {
_local7.target = ((aap.target instanceof Array) ? (aap.target) : ([aap.target]));
} else if (obj.target != undefined) {
_local7.target = ((obj.target instanceof Array) ? (obj.target) : ([obj.target]));
}
if (obj.addTarget != undefined) {
_local7.addTarget = ((obj.addTarget instanceof Array) ? (obj.addTarget) : ([obj.addTarget]));
}
if (aap.addTarget != undefined) {
if (_local7.addTarget == undefined) {
_local7.addTarget = ((aap.addTarget instanceof Array) ? (aap.addTarget) : ([aap.addTarget]));
} else {
_local7.addTarget = ((_local7.addTarget instanceof Array) ? (_local7.addTarget.concat(aap.addTarget)) : (new Array(_local7.addTarget).concat(aap.addTarget)));
}
}
var _local9 = false;
for (var _local5 in obj) {
var _local10 = obj[_local5];
if (_oTemps.cbProps.indexOf(("|" + _local5) + "|") > -1) {
if (_local5 != "skipLevel") {
_local7[_local5] = _local10;
}
continue;
}
if (_oTemps.fuseProps.indexOf(("|" + _local5) + "|") > -1) {
if ((_local5 == "command") && ((_oTemps.nActions > 1) && (_oTemps.outputLevel > 0))) {
com.mosesSupposes.fuse.FuseKitCommon.error("114", String(_local10));
}
continue;
}
if (typeof(_local10) == "object") {
var _local11 = ((_local10 instanceof Array) ? ([]) : ({}));
for (var _local6 in _local10) {
_local11[_local6] = _local10[_local6];
}
_local10 = _local11;
}
if (_local5.indexOf("start") == 0) {
var _local5 = _local5.slice(6);
var _local12 = _local7.oSP;
} else {
var _local12 = _local7.oEP;
}
if ((ADD_UNDERSCORES == true) && (_oTemps.sUP.indexOf(("|_" + _local5) + "|") > -1)) {
var _local5 = "_" + _local5;
}
if (_oTemps.sCT.indexOf(("|" + _local5) + "|") > -1) {
var _local14 = (_local5 == "_tintPercent") && (_local12.colorProp.p == "_tint");
var _local15 = (_local5 == "_tint") && (_local12.colorProp.p == "_tintPercent");
if ((_local12.colorProp == undefined) || ((_local14 == true) || (_local15 == true))) {
if (_local14 == true) {
_local12.colorProp = {p:"_tint", v:{tint:_local12.colorProp.v, percent:_local10}};
} else if (_local15 == true) {
_local12.colorProp = {p:"_tint", v:{tint:_local10, percent:_local12.colorProp.v}};
} else {
_local12.colorProp = {p:_local5, v:_local10};
}
_local9 = true;
} else if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local5);
}
} else if (_local10 != null) {
if ((_local12 == _local7.oEP) && (((obj.controlX != undefined) || (obj.controlY != undefined)) && ((_local5.indexOf("control") == 0) || ((_local5 == "_x") || (_local5 == "_y"))))) {
if (_local12._bezier_ == undefined) {
_local12._bezier_ = {};
}
if (_local5.indexOf("control") == 0) {
_local12._bezier_[_local5] = _local10;
} else {
_local12._bezier_[_local5.charAt(1)] = _local10;
}
} else {
_local12[_local5] = _local10;
}
_local9 = true;
}
}
if ((_local9 == false) && ((_local7.trigger != undefined) || (((_local7.delay != undefined) || (_local7.seconds != undefined)) && (((_local7.startfunc != undefined) || (_local7.updfunc != undefined)) || ((_local7.func != undefined) && (_oTemps.nActions > 1)))))) {
if (_ZigoEngine == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("116");
} else {
if (_local7.func != undefined) {
_oTemps.afl++;
}
if (_local7.event != undefined) {
_oTemps.ael++;
}
_local7._doTimer = true;
if (_local7.delay != undefined) {
_oTemps.twDelayFlag = true;
}
return(_local7);
}
}
if (_local9 == true) {
var _local16 = _local7.oEP.colorProp != undefined;
var _local17 = 0;
for ( ; _local17 < 2 ; _local17++) {
var _local18 = ((_local17 == 0) ? (_local7.oSP) : (_local7.oEP));
var _local19 = ((_local17 == 0) ? (_oTemps.sImgS) : (_oTemps.sImgE));
var _local20 = _local18.colorProp.p;
if (_local20 != undefined) {
_local18[_local20] = _local18.colorProp.v;
delete _local18.colorProp;
}
if (((_local18._xscale != undefined) || (_local18._scale != undefined)) && ((_local18._width != undefined) || (_local18._size != undefined))) {
var _local21 = ((_local18._xscale != undefined) ? "_xscale" : "_scale");
delete _local18[_local21];
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local21);
}
}
if (((_local18._yscale != undefined) || (_local18._scale != undefined)) && ((_local18._height != undefined) || (_local18._size != undefined))) {
var _local22 = ((_local18._yscale != undefined) ? "_yscale" : "_scale");
delete _local18[_local22];
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local22);
}
}
for (var _local5 in _local18) {
if (_local19.indexOf(_local5 + ", ") == -1) {
_local19 = _local19 + (_local5 + ", ");
}
if (_local18 == _local7.oSP) {
if ((_local7.oEP[_local5] == undefined) && (!((_local5 == _local20) && (_local16 == true)))) {
_local7.oAFV[_local5] = true;
_local7.oEP[_local5] = [];
}
}
}
((_local17 == 0) ? ((_oTemps.sImgS = _local19)) : ((_oTemps.sImgE = _local19)));
}
return(_local7);
}
if ((_local7.delay != undefined) && (_oTemps.nActions == 1)) {
_oElements.delay = _local7.delay;
_oElements.delayscope = _local7.scope;
}
if (_local7.event != undefined) {
_oTemps.ael++;
_oElements.aEvents.unshift({e:_local7.event, s:_local7.scope, ep:_local7.eventparams, skipLevel:_local7.skipLevel});
}
var _local23 = _oElements.aEvents.length;
if (_local7.easyfunc != undefined) {
_oElements.aEvents.push({cb:_local7.easyfunc, s:_local7.scope, skipLevel:_local7.skipLevel});
}
if (_local7.func != undefined) {
_oElements.aEvents.push({f:_local7.func, s:_local7.scope, a:_local7.args, skipLevel:_local7.skipLevel});
}
_oTemps.afl = _oTemps.afl + (_oElements.aEvents.length - _local23);
return(undefined);
}
function doTweens(targs, defaultScope, setStart) {
if (_aTweens == null) {
_aTweens = [];
}
var _local5 = _global.com.mosesSupposes.fuse.Fuse;
var _local6 = ((_local5 != undefined) ? (_local5.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
var _local7 = "";
var _local8 = 0;
if (_aProfiles[0].__buildMode == true) {
var _local12 = 0;
for ( ; _local12 < _aProfiles.length ; _local12++) {
var _local13 = _aProfiles[_local12].tweenargs;
if ((_local13[6].cycles === 0) || (_local13[6].cycles.toUpperCase() == "LOOP")) {
delete _local13[6].cycles;
if (_local6 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID());
}
}
var _local14 = _ZigoEngine.doTween.apply(_ZigoEngine, _local13);
var _local15 = ((_local14 == null) ? ([]) : (_local14.split(",")));
if (_local15.length > 0) {
_aTweens.push({targ:_local13[0], props:_local15, targZID:_local13[0].__zigoID__});
_local13[0].addListener(this);
for (var _local10 in _local15) {
if (_local7.indexOf(_local15[_local10] + ",") == -1) {
_local7 = _local7 + (_local15[_local10] + ",");
}
}
}
if (_local6 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " TWEEN (simple syntax)\n\ttargets:[") + _local13[0]) + "]\n\tprops sent:[") + _local13[1]) + "]");
}
}
return(((_local7 == "") ? null : (_local7.slice(0, -1))));
}
var _local16 = (_bStartSet != true) && ((setStart == true) || (_sImage.indexOf("StartProps:") > -1));
var _local17 = 0;
for ( ; _local17 < _aProfiles.length ; _local17++) {
var _local18 = _aProfiles[_local17];
var _local19 = defaultScope;
if (_local18.scope != undefined) {
_local19 = ((_local18.scope instanceof Function) ? (_local18.scope.apply(_local19)) : (_local18.scope));
}
if (_local18.event != undefined) {
var _local21 = ((_local18.event instanceof Function) ? (_local18.event.apply(_local19)) : (_local18.event));
var _local22 = ((_local18.eventparams instanceof Function) ? (_local18.eventparams.apply(_local19)) : (_local18.eventparams));
if ((_local21 != undefined) && (_local21.length > 0)) {
var _local20 = {e:_local21, ep:_local22, s:_local19};
}
}
var _local23 = ((_local18.skipLevel instanceof Function) ? (_local18.skipLevel.apply(_local19)) : (_local18.skipLevel));
var _local24 = {skipLevel:_local23};
var _local25 = {skipLevel:_local23};
if (_local18.cycles != undefined) {
var _local26 = ((_local18.cycles instanceof Function) ? (_local18.cycles.apply(_local19)) : (_local18.cycles));
if (((Number(_local26) == 0) || (String(_local26).toUpperCase() == "LOOP")) && (_local5 != undefined)) {
delete _local18.cycles;
if (_local6 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID());
}
} else {
_local24.cycles = (_local25.cycles = _local26);
}
}
var _local27 = "";
if ((_local18.easyfunc != undefined) || ((_local18.func != undefined) || ((_local18.startfunc != undefined) || (_local18.updfunc != undefined)))) {
for (var _local9 in _local18) {
if (_local9.indexOf("func") > -1) {
_local25[_local9] = _local18[_local9];
} else if ((_local9 == "startscope") || ((_local9 == "updscope") || (_local9.indexOf("args") > -1))) {
_local25[_local9] = ((_local18[_local9] instanceof Function) ? (Function(_local18[_local9]).apply(_local19)) : (_local18[_local9]));
}
}
if (_local19 != undefined) {
if ((_local25.func != undefined) && (_local25.scope == undefined)) {
_local25.scope = _local19;
}
if ((_local25.updfunc != undefined) && (_local25.updscope == undefined)) {
_local25.updscope = _local19;
}
if ((_local25.startfunc != undefined) && (_local25.startscope == undefined)) {
_local25.startscope = _local19;
}
}
}
for (var _local10 in _local25) {
_local27 = _local27 + (((_local10 + ":") + _local25[_local10]) + "|");
}
var _local28 = _local18.trigger === true;
var _local29;
if ((_local28 == false) && (_local18.trigger != undefined)) {
_local29 = ((_local18.trigger instanceof Function) ? (_local18.trigger.apply(_local19)) : (_local18.trigger));
if (typeof(_local29) == "string") {
_local29 = ((String(_local29).charAt(0) == "-") ? (-parseClock(String(_local29).slice(1))) : (parseClock(String(_local29))));
}
if (_global.isNaN(_local29) == true) {
_local29 = undefined;
}
}
var _local30 = [];
var _local31 = ((_local18.target == undefined) ? (targs) : (_local18.target));
var _local32 = [];
var _local33 = false;
for (var _local9 in _local31) {
var _local34 = _local31[_local9];
_local32 = _local32.concat(((_local34 instanceof Function) ? (_local34.apply(_local19)) : (_local34)));
}
for (var _local9 in _local18.addTarget) {
var _local35 = _local18.addTarget[_local9];
_local32 = _local32.concat(((_local35 instanceof Function) ? (_local35.apply(_local19)) : (_local35)));
}
for (var _local9 in _local32) {
var _local36 = _local32[_local9];
if (_local36 != null) {
var _local37 = false;
for (var _local10 in _local30) {
if (_local30[_local10] == _local36) {
_local37 = true;
break;
}
}
if (_local37 == false) {
_local30.unshift(_local36);
}
} else {
_local33 = true;
}
}
var _local38 = (_local30.length == 0) && (_local18._doTimer != true);
var _local39 = (_local18._doTimer == true) && (_local30.length == 0);
for ( ; (_local33 == true) || (_local38 == true) ; _local17++) {
_local8++;
if (_local38 != true) {
break;
}
}
if (_local16 == true) {
for (var _local9 in _local30) {
var _local40 = _local30[_local9];
var _local41 = [];
var _local42 = [];
if (setStart == true) {
for (var q in _local18.oEP) {
_global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_local40, q, true);
}
}
for (var p in _local18.oSP) {
var _local43 = _local18.oSP[p];
if (_local43 instanceof Function) {
_local43 = _local43.apply(_local19);
}
if ((_local43 === true) || (_local43 === false)) {
_local40[p] = _local43;
if (_local18.oAFV[p] == true) {
for (var _local11 in _local18.oEP[p]) {
if (_local18.oEP[p][_local11].targ == _local40) {
_local18.oEP[p].splice(Number(_local11), 1);
}
}
_local18.oEP[p].push({targ:_local40, val:"IGNORE"});
}
continue;
}
if ((_local18.oAFV[p] == true) && ((!((p == "_colorReset") && (_local43 == 100))) && (!((p == "_tintPercent") && (_local43 == 0))))) {
if ((p == "_tint") || (p == "_colorTransform")) {
var _local44 = _ZigoEngine.getColorTransObj();
} else if ("|_alpha|_contrast|_invertColor|_tintPercent|_xscale|_yscale|_scale|".indexOf(("|" + p) + "|") > -1) {
var _local44 = 100;
} else if ("|_brightness|_brightOffset|_colorReset|_rotation|".indexOf(("|" + p) + "|") > -1) {
var _local44 = 0;
} else {
var _local45 = _global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_local40, p, true);
if (_local45 != null) {
var _local44 = _local45;
} else {
var _local44 = ((_global.isNaN(_local40[p]) == false) ? _local40[p] : 0);
}
}
for (var _local11 in _local18.oEP[p]) {
if (_local18.oEP[p][_local11].targ == _local40) {
_local18.oEP[p].splice(Number(_local11), 1);
}
}
_local18.oEP[p].push({targ:_local40, val:_local44});
}
if (typeof(_local43) == "object") {
var _local46 = ((_local43 instanceof Array) ? ([]) : ({}));
for (var _local11 in _local43) {
_local46[_local11] = ((_local43[_local11] instanceof Function) ? (Function(_local43[_local11]).apply(_local19)) : (_local43[_local11]));
}
_local43 = _local46;
}
_local41.push(p);
_local42.push(_local43);
}
if (_local42.length > 0) {
if (_local6 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output((((("-" + _sID()) + " ") + _local40) + " SET STARTS: ") + [("[" + _local41) + "]", ("[" + _local42) + "]"]);
}
_ZigoEngine.doTween(_local40, _local41, _local42, 0);
}
}
}
for ( ; setStart == true ; _local17++) {
}
var _local50 = false;
var _local51 = ((_local39 == false) ? (_local30) : ([0]));
for (var _local9 in _local51) {
var _local52 = _local18.ease;
if (_local52 instanceof Function) {
var _local53 = Function(_local52);
if (typeof(_local53(1, 1, 1, 1)) != "number") {
_local52 = _local53.apply(_local19);
}
}
var _local47 = ((_local18.seconds instanceof Function) ? (_local18.seconds.apply(_local19)) : (_local18.seconds));
if (_local47 != undefined) {
if (typeof(_local47) == "string") {
_local47 = parseClock(String(_local47));
}
if (_global.isNaN(_local47) == true) {
_local47 = _ZigoEngine.DURATION || 0;
}
}
var _local48 = ((_local18.delay instanceof Function) ? (_local18.delay.apply(_local19)) : (_local18.delay));
if (typeof(_local48) == "string") {
_local48 = parseClock(String(_local48));
}
if ((_local48 == null) || (_global.isNaN(_local48) == true)) {
_local48 = 0;
}
if (_local39 == true) {
continue;
}
var _local54 = _local51[_local9];
var _local55 = [];
var _local56 = [];
var _local57 = 0;
for (var p in _local18.oEP) {
var _local58 = _local18.oEP[p];
if (_local58 instanceof Function) {
_local58 = _local58.apply(_local19);
}
if ((_local58 === true) || (_local58 === false)) {
if (_local49 == undefined) {
var _local49 = {};
}
_local49[p] = _local58;
_local57++;
continue;
}
if (typeof(_local58) == "object") {
if (_local58[0].targ != undefined) {
for (var _local11 in _local58) {
if (_local58[_local11].targ == _local54) {
_local58 = _local58[_local11].val;
break;
}
}
} else {
var _local59 = ((_local58 instanceof Array) ? ([]) : ({}));
for (var _local11 in _local58) {
_local59[_local11] = ((_local58[_local11] instanceof Function) ? (Function(_local58[_local11]).apply(_local19)) : (_local58[_local11]));
}
_local58 = _local59;
}
}
if (_local58 != "IGNORE") {
_local55.push(p);
_local56.push(_local58);
}
}
var _local60 = [];
if (_local56.length > 0) {
var _local61 = _ZigoEngine.doTween(_local54, _local55, _local56, _local47, _local52, _local48, _local25);
if (_local61 != null) {
_local60 = _local61.split(",");
}
if (_local60.length > 0) {
var _local62 = {targ:_local54, props:_local60, bools:_local49, targZID:_local54.__zigoID__};
if (_local50 == false) {
_local25 = _local24;
_local62.event = _local20;
var _local49;
var _local20 = _local49;
_local62.trigger = _local28;
}
_aTweens.push(_local62);
_local54.addListener(this);
_local50 = true;
}
for (var _local10 in _local60) {
if (_local7.indexOf(_local60[_local10] + ",") == -1) {
_local7 = _local7 + (_local60[_local10] + ",");
}
}
if (_local6 == 3) {
var _local63 = _local55.toString();
if (_local60.length > _local55.length) {
_local63 = _local63 + (("\n\t[NO-CHANGE PROPS DISCARDED. KEPT:" + _local61) + "]");
}
var _local64 = "";
for (var _local10 in _local56) {
_local64 = (((typeof(_local56[_local10]) == "string") ? (("\"" + _local56[_local10]) + "\"") : (_local56[_local10])) + ", ") + _local64;
}
(com.mosesSupposes.fuse.FuseKitCommon.output((("\n-" + _sID()) + " TWEEN:\n") + [("\t[getTimer():" + getTimer()) + "] ", "targ: " + _local54, "props: " + _local63, "endVals: " + _local64, "time: " + ((_local47 == undefined) ? (_ZigoEngine.DURATION) : (_local47)), "easing: " + ((_local52 == undefined) ? (_ZigoEngine.EASING) : (_local52)), "delay: " + ((_local48 == undefined) ? 0 : (_local48)), "callbacks: " + ((_local27 == "") ? "(none)" : (_local27))].join("\n\t")));// not popped
}
}
}
if ((_local47 == undefined) || (_global.isNaN(_local47) == true)) {
var _local47 = 0;
}
var _local65 = _local48 + _local47;
if (_local29 != undefined) {
if (_local29 < 0) {
_local29 = _local29 + _local65;
}
if ((_local29 > 0) && ((_local65 == 0) || (_local29 < _local65))) {
if (_local65 == 0) {
if (_local6 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((((("-" + _sID()) + " graft a timed trigger (") + _local29) + " sec). [has callback:") + (_local25 != _local24)) + ", has event:") + (_local20 != undefined)) + ", has booleans:") + (_local49 != undefined)) + "]");
}
doTimerTween(null, _local29, 0, true, _local49, _local25, _local20);
_local50 = true;
} else {
if (_local6 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((("-" + _sID()) + " graft a timed trigger (") + _local29) + " sec).");
}
doTimerTween(null, _local29, 0, true);
}
} else if (_local6 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("-" + _sID()) + " timed trigger discarded: out of range. [") + _local29) + "/") + _local65) + "]");
}
}
if ((_local50 == false) && ((_local25 != _local24) || ((_local20 != undefined) || (_local49 != undefined)))) {
if ((_local23 == 0) && (_local65 > 0)) {
if (_local6 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((((("-" + _sID()) + " no props tweened - graft a delay (") + _local65) + " sec). [has callback:") + (_local25 != _local24)) + ", has event:") + (_local20 != undefined)) + ", has booleans:") + (_local49 != undefined)) + "]");
}
doTimerTween(_local30, _local47, _local48, _local28, _local49, _local25, _local20);
} else {
if (_local6 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((("-" + _sID()) + " no props tweened, executing nontween items. [has callback:") + (_local25 != _local24)) + ", has event:") + (_local20 != undefined)) + ", has booleans:") + (_local49 != undefined)) + "]");
}
for (var _local9 in _local30) {
for (var _local10 in _local49) {
_local30[_local9][_local10] = _local49[_local10];
}
}
if (_local23 < 2) {
if (_local25 != undefined) {
if (_local25.startfunc != undefined) {
fireEvents({f:_local25.startfunc, s:_local25.startscope, a:_local25.startargs}, _local19, _local6);
}
if (_local25.updfunc != undefined) {
fireEvents({f:_local25.updfunc, s:_local25.updscope, a:_local25.updargs}, _local19, _local6);
}
if ((_local25.startfunc != undefined) || (_local25.easyfunc != undefined)) {
fireEvents({f:_local25.func, s:_local25.scope, a:_local25.args, cb:_local25.easyfunc}, _local19, _local6);
}
}
if (_local20 != undefined) {
fireEvents(_local20);
}
}
}
}
}
if ((_local8 > 0) && (_local6 > 0)) {
if ((_local8 == _aProfiles.length) && (_local7 == "")) {
com.mosesSupposes.fuse.FuseKitCommon.error("118", _sID(), setStart);
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("119", _local16, _local8, _sID());
}
}
return(((_local7 == "") ? null : (_local7.slice(0, -1))));
}
function doTimerTween(actualTargets, duration, delay, trigger, booleans, callback, event) {
var _local9 = {__TweenedDelay:0};
_ZigoEngine.initializeTargets(_local9);
_aTweens.push({targ:_local9, props:["__TweenedDelay"], trigger:trigger, bools:booleans, event:event, actualTargs:actualTargets, targZID:_local9.__zigoID__});
_ZigoEngine.doTween(_local9, "__TweenedDelay", 1, duration, null, delay, callback);
_local9.addListener(this);
}
function onTweenEnd(o) {
if (_nPlaying < 1) {
return(undefined);
}
var _local3 = _global.com.mosesSupposes.fuse.Fuse;
var _local4 = ((_local3 != undefined) ? (_local3.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if (_local4 == 3) {
(com.mosesSupposes.fuse.FuseKitCommon.output(((((((("-" + _sID()) + " onTweenEnd: ") + ((typeof(o.target) == "movieclip") ? (o.target._name) : (typeof(o.target)))) + "[") + o.props) + "] [getTimer()=") + getTimer()) + "]"));// not popped
}
var _local5 = ((!(o.__zigoID__ === undefined)) ? (o.__zigoID__) : (o.target.__zigoID__));
for (var i in _aTweens) {
var _local6 = _aTweens[i];
if (_local6.targZID == _local5) {
for (var j in o.props) {
var _local7 = _local6.props;
for (var k in _local7) {
var _local8 = _local7[k];
if (_local8 == o.props[j]) {
if (_nPlaying == 2) {
if (_local4 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("120", _sID(), _local8);
}
}
_local7.splice(Number(k), 1);
if (_local7.length == 0) {
if (_local6.event != undefined) {
fireEvents(_local6.event, _local6.event.s, _local4);
}
if (_local8 == "__TweenedDelay") {
_ZigoEngine.deinitializeTargets(_local6.targ);
delete _local6.targ;
for (var m in _local6.bools) {
for (var t in _local6.actualTargs) {
_local6.actualTargs[t][m] = _local6.bools[m];
}
}
} else {
var _local9 = false;
for (var m in _local6.bools) {
_local6.targ[m] = _local6.bools[m];
}
for (var l in _aTweens) {
if ((l != i) && (_aTweens[l].targ == _local6.targ)) {
_local9 = true;
}
}
if (_local9 == false) {
_local6.targ.removeListener(this);
}
}
if (_local6.trigger == true) {
if ((_bTrigger == false) && ((o.isResume != true) && (_aTweens.length > 1))) {
_bTrigger = true;
if (_local4 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-" + _sID()) + " trigger fired!");
}
var breakChainInt;
breakChainInt = _global.setInterval(function (fi) {
_global.clearInterval(breakChainInt);
fi.dispatchRequest("advance", [false]);
}, 1, this);
}
}
_aTweens.splice(Number(i), 1);
}
}
}
}
}
}
if ((_aTweens.length == 0) && ((_nPlaying == 1) && (o.isResume != true))) {
complete(_local4);
}
}
function onTweenInterrupt(o) {
if (_nPlaying == -1) {
return(undefined);
}
var _local3 = o.__zigoID__;
var _local4 = _global.com.mosesSupposes.fuse.Fuse;
var _local5 = ((_local4 != undefined) ? (_local4.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if (_local5 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((_sID() + " property interrupt caught! ") + o.target) + ",__zigoID__:") + _local3) + "[") + o.props) + "].");
}
if ((_local3 == undefined) || (typeof(o.target) != "string")) {
onTweenEnd(o);
return(undefined);
}
for (var i in _aTweens) {
if (_aTweens[i].targZID == _local3) {
_aTweens.splice(Number(i), 1);
}
}
if ((_aTweens.length == 0) && (_nPlaying == 1)) {
complete(_local5);
}
}
function complete(outputLevel) {
var trigger = _bTrigger;
stop();
if (trigger != true) {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(("-" + _sID()) + " complete.");
}
}
var breakChainInt;
breakChainInt = _global.setInterval(function (fi) {
_global.clearInterval(breakChainInt);
fi.dispatchRequest("advance", [trigger]);
}, 1, this);
}
function parseClock(str) {
if (str.indexOf(":") != 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("121");
return(_ZigoEngine.DURATION || 0);
}
var _local3 = 0;
var _local4 = str.split(":");
_local4.reverse();
if ((String(_local4[0]).length == 2) && (_global.isNaN(_local5 = Math.abs(Number(_local4[0]))) == false)) {
_local3 = _local3 + (_local5 / 100);
}
if ((String(_local4[1]).length == 2) && ((_global.isNaN(_local5) == false) && ((_local5 = Math.abs(Number(_local4[1]))) < 60))) {
_local3 = _local3 + _local5;
}
if ((String(_local4[2]).length == 2) && ((_global.isNaN(_local5) == false) && ((_local5 = Math.abs(Number(_local4[2]))) < 60))) {
_local3 = _local3 + (_local5 * 60);
}
if ((String(_local4[3]).length == 2) && ((_global.isNaN(_local5) == false) && ((_local5 = Math.abs(Number(_local4[3]))) < 24))) {
_local3 = _local3 + (_local5 * 3600);
}
return(_local3);
}
function fireEvents(o, scope, outputLevel) {
var _local5 = ((o.s != null) ? (o.s) : (scope));
if (o.e == undefined) {
if ((typeof(o.cb) == "string") && (o.cb.length > 0)) {
var _local6 = _global.com.mosesSupposes.fuse.Shortcuts.parseStringTypeCallback(o.cb);
if (_local6.func != undefined) {
fireEvents({s:_local6.scope, f:_local6.func, a:_local6.args});
} else if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("122");
}
}
if (o.f == undefined) {
return(undefined);
}
var _local7 = o.f;
if ((typeof(o.f) == "string") && (_local5[o.f] == undefined)) {
if (_global[o.f] != undefined) {
_local7 = _global[o.f];
}
if (_level0[o.f] != undefined) {
_local7 = _level0[o.f];
}
}
if (typeof(_local7) != "function") {
if (typeof(_local5[o.f]) == "function") {
_local7 = _local5[o.f];
} else {
_local7 = eval (o.f);
}
}
if (_local7 == undefined) {
if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("123");
}
} else {
var _local8 = ((o.a instanceof Function) ? (o.a.apply(_local5)) : (o.a));
if ((_local8 != undefined) && (!(_local8 instanceof Array))) {
_local8 = [_local8];
}
_local7.apply(_local5, _local8);
}
} else {
var _local9 = ((o.e instanceof Function) ? (String(o.e.apply(_local5))) : (String(o.e)));
if ((_local9 != "undefined") && (_local9.length > 0)) {
if ("|onStart|onStop|onPause|onResume|onAdvance|onComplete|".indexOf(("|" + _local9) + "|") > -1) {
if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("124", _local9);
}
} else {
var _local10 = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
var _local11 = ((o.ep instanceof Function) ? (o.ep.apply(_local5)) : (o.ep));
if ((_local11 == null) || (typeof(_local11) != "object")) {
_local11 = {};
}
_local11.target = _local10;
_local11.type = _local9;
_local10.dispatchEvent.call(_local10, _local11);
}
} else if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("125", _sID());
}
}
}
static var registryKey = "fuseItem";
static var ADD_UNDERSCORES = true;
var _nPlaying = -1;
var _bStartSet = false;
var _bTrigger = false;
}
Symbol 20500 MovieClip [__Packages.com.techsmith.events.Events] Frame 0
class com.techsmith.events.Events
{
function Events () {
}
static var LOAD_COMPLETE = "xmlLoadComplete";
static var LOAD_ERROR = "xmlLoadError";
static var ON_COMPLETE = "onComplete";
static var ANIMATION_COMPLETE = "animationComplete";
static var MOUSE_ROLL_OVER = "rollOver";
static var MOUSE_RELEASE = "click";
static var MOUSE_PRESS = "press";
static var MOUSE_ROLL_OUT = "rollOut";
static var MOUSE_RELEASE_OUT = "releaseOutside";
static var FOCUS_IN = "focusIn";
static var FOCUS_OUT = "focusOut";
static var COMPLETE = "complete";
static var CHANGE = "change";
static var LOADING = "loading";
static var INIT = "init";
static var TOOLTIP = "tooltipEvent";
static var KEY_ENTER = "enter";
static var KEY_UP = "keyUp";
static var KEY_DOWN = "keyDown";
static var CLOSE = "close";
static var MEDIA_LOADING = "mediaLoading";
static var NS_BUFFER_EMPTY = "bufferEmpty";
static var NS_BUFFER_FULL = "bufferFull";
static var NS_BUFFER_FLUSH = "bufferFlush";
static var NS_SEEK_EXECUTED = "seekExecuted";
static var NS_METADATA = "metadata";
static var NS_CUEPOINT = "cuepoint";
static var MEDIA_EVENT = "cuepointEvent";
static var MEDIA_NAVIGATION = "cuepointNavigation";
static var PROGRESS = "progress";
static var ERROR = "error";
static var STARTED = "started";
static var STOPPED = "finished";
static var STREAM_ERROR = "streamError";
static var SEEK_ERROR = "seekError";
static var SEEK_COMPLETE = "seekComplete";
static var PLAYHEAD_POSITION = "positionChange";
static var CONTROL_STATE_PLAY = "playButtonStateChange";
static var CONTROL_STATE_STOP = "stopButtonStateChange";
static var DRAG_START = "dragStart";
static var DRAG_STOP = "dragStop";
static var ROW_PRESS = "rowPress";
static var ITEM_ROLL_OVER = "itemRollOver";
static var ITEM_ROLL_OUT = "itemRollOut";
static var ENTER_FRAME = "enterFrame";
}
Symbol 20501 MovieClip [__Packages.com.brooksandrus.utils.Iterator] Frame 0
class com.brooksandrus.utils.Iterator
{
function Iterator () {
}
}
Symbol 20502 MovieClip [__Packages.com.brooksandrus.utils.IteratorImpl] Frame 0
class com.brooksandrus.utils.IteratorImpl implements com.brooksandrus.utils.Iterator
{
function IteratorImpl (collection) {
this.collection = collection;
}
function hasNext() {
return(cursor < collection.getLength());
}
function next() {
return(collection.getItemAt(cursor++));
}
var collection = null;
var cursor = 0;
}
Symbol 20503 MovieClip [__Packages.com.brooksandrus.drawing.Rect] Frame 0
class com.brooksandrus.drawing.Rect
{
function Rect () {
}
function gdraw(scope, width, height, colors, alphas, ratios, lStyle, location) {
var _local10 = new flash.geom.Matrix();
if ((orientation == "top") && (type != "radial")) {
var _local11 = 90;
var _local12 = (_local11 * Math.PI) / 180;
_local10.createGradientBox(width, height, _local12);
}
setLineStyle(scope, lStyle);
scope.beginGradientFill(type, colors, alphas, ratios, _local10);
drawFill(scope, width, height, location);
}
function draw(scope, width, height, color, alpha, lStyle, location) {
setLineStyle(scope, lStyle);
scope.beginFill(color, alpha);
drawFill(scope, width, height, location);
}
function setLineStyle(scope, lStyle) {
if (lStyle != null) {
scope.lineStyle(lStyle.thickness, lStyle.rgb, lStyle.alpha, lStyle.pixelHinting, lStyle.noScale, lStyle.capsStyle, lStyle.jointStyle, lStyle.miterLimit);
}
}
function drawFill(scope, width, height, location) {
if (location == null) {
location = {x:0, y:0};
}
scope.moveTo(location.x, location.y);
scope.lineTo(width + location.x, location.y);
scope.lineTo(width + location.x, location.y + height);
scope.lineTo(location.x, location.y + height);
scope.lineTo(location.x, location.y);
scope.endFill();
}
static var LEFT_RIGHT = "left";
static var TOP_BOTTOM = "top";
var type = "linear";
var orientation = TOP_BOTTOM;
}
Symbol 20504 MovieClip [__Packages.com.brooksandrus.utils.CollectionImpl] Frame 0
class com.brooksandrus.utils.CollectionImpl implements com.brooksandrus.utils.Collection
{
function CollectionImpl () {
items = [];
}
function addItem(item) {
var _local3 = false;
if (item != null) {
items.push(item);
_local3 = true;
}
return(_local3);
}
function itemExists(item) {
var _local3 = items.length;
var _local4 = 0;
for ( ; _local4 < _local3 ; _local4++) {
if (item == items[_local4]) {
return(true);
}
}
return(false);
}
function addItemAt(item, index) {
var _local4 = false;
if (item != null) {
items.splice(index, 0, item);
_local4 = true;
}
return(_local4);
}
function removeItem(item) {
var _local3 = false;
var _local4 = getItemIndex(item);
if (_local4 > -1) {
items.splice(_local4, 1);
_local3 = true;
}
return(_local3);
}
function getItemAt(index) {
return(items[index]);
}
function getItemIndex(item) {
var _local3 = items.length;
var _local4 = 0;
for ( ; _local4 < _local3 ; _local4++) {
if (items[_local4] == item) {
return(_local4);
}
}
return(-1);
}
function replaceItemAt(item, index) {
var _local4 = false;
if ((item != null) && (index < items.length)) {
items[index] = item;
_local4 = true;
}
return(_local4);
}
function getLength() {
return(items.length);
}
function isEmpty() {
return(items.length == 0);
}
function getIterator() {
return(new com.brooksandrus.utils.IteratorImpl(this));
}
function clear() {
items = [];
}
var items = null;
}
Symbol 20505 MovieClip [__Packages.com.techsmith.ui.BasicButton] Frame 0
class com.techsmith.ui.BasicButton extends com.techsmith.ui.ButtonBase
{
var attachMovie, enabled, dispatchEvent;
function BasicButton () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("BasicButton", com.techsmith.ui.BasicButton);
var _local6 = container.attachMovie("BasicButton", name, depth, init);
return(com.techsmith.ui.BasicButton(_local6));
}
function init(style) {
styleObj = style;
toggle = style.toggle;
if (!toggle) {
stateGraphic = attachMovie(styleObj.falseUpSkin, "stateGraphic", 2);
} else if (selected) {
stateGraphic = attachMovie(styleObj.trueUpSkin, "stateGraphic", 2);
} else {
stateGraphic = attachMovie(styleObj.falseUpSkin, "stateGraphic", 2);
}
positionIcon();
}
function positionIcon() {
stateGraphic._x = graphicx;
stateGraphic._y = graphicy;
}
function setSelected(selected, fireEvent) {
if (this.selected == selected) {
return(undefined);
}
this.selected = selected;
if (selected) {
if (enabled) {
stateGraphic = attachMovie(styleObj.trueUpSkin, "stateGraphic", 2);
} else {
stateGraphic = attachMovie(styleObj.trueDisabledSkin, "stateGraphic", 2);
}
} else if (enabled) {
stateGraphic = attachMovie(styleObj.falseUpSkin, "stateGraphic", 2);
} else {
stateGraphic = attachMovie(styleObj.falseDisabledSkin, "stateGraphic", 2);
}
positionIcon();
if (fireEvent) {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE});
}
}
function onRollOver() {
if (!toggle) {
stateGraphic = attachMovie(styleObj.falseOverSkin, "stateGraphic", 2);
} else if (selected) {
stateGraphic = attachMovie(styleObj.trueOverSkin, "stateGraphic", 2);
} else {
stateGraphic = attachMovie(styleObj.falseOverSkin, "stateGraphic", 2);
}
positionIcon();
super.onRollOver();
}
function onPress() {
if (!toggle) {
stateGraphic = attachMovie(styleObj.falseDownSkin, "stateGraphic", 2);
} else if (selected) {
stateGraphic = attachMovie(styleObj.trueDownSkin, "stateGraphic", 2);
} else {
stateGraphic = attachMovie(styleObj.falseDownSkin, "stateGraphic", 2);
}
positionIcon();
super.onPress();
}
function onRelease() {
selected = (selected ? false : true);
if (!toggle) {
stateGraphic = attachMovie(styleObj.falseOverSkin, "stateGraphic", 2);
} else if (selected) {
stateGraphic = attachMovie(styleObj.trueOverSkin, "stateGraphic", 2);
} else {
stateGraphic = attachMovie(styleObj.falseOverSkin, "stateGraphic", 2);
}
positionIcon();
if (toggle) {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE, selected:selected});
} else {
super.onRelease();
}
}
function onReleaseOutside() {
selected = (selected ? false : true);
if (!toggle) {
stateGraphic = attachMovie(styleObj.falseUpSkin, "stateGraphic", 2);
} else if (selected) {
stateGraphic = attachMovie(styleObj.trueUpSkin, "stateGraphic", 2);
} else {
stateGraphic = attachMovie(styleObj.falseUpSkin, "stateGraphic", 2);
}
positionIcon();
super.onReleaseOutside();
}
function onRollOut() {
if (!toggle) {
stateGraphic = attachMovie(styleObj.falseUpSkin, "stateGraphic", 2);
} else if (selected) {
stateGraphic = attachMovie(styleObj.trueUpSkin, "stateGraphic", 2);
} else {
stateGraphic = attachMovie(styleObj.falseUpSkin, "stateGraphic", 2);
}
positionIcon();
super.onRollOut();
}
function setEnabled(enable) {
enabled = enable;
if (!enable) {
if (!toggle) {
stateGraphic = attachMovie(styleObj.falseDisabledSkin, "stateGraphic", 2);
} else if (selected) {
stateGraphic = attachMovie(styleObj.trueDisabledSkin, "stateGraphic", 2);
} else {
stateGraphic = attachMovie(styleObj.falseDisabledSkin, "stateGraphic", 2);
}
} else if (enable) {
if (!toggle) {
stateGraphic = attachMovie(styleObj.trueUpSkin, "stateGraphic", 2);
} else if (selected) {
stateGraphic = attachMovie(styleObj.trueUpSkin, "stateGraphic", 2);
} else {
stateGraphic = attachMovie(styleObj.falseUpSkin, "stateGraphic", 2);
}
}
positionIcon();
}
function getSelected() {
return(selected);
}
var selected = false;
var styleObj = null;
var stateGraphic = null;
var toggle = false;
var graphicy = 0;
var graphicx = 0;
}
Symbol 20506 MovieClip [__Packages.com.techsmith.ui.panels.PanelStyle] Frame 0
class com.techsmith.ui.panels.PanelStyle
{
function PanelStyle (tl, tm, tr, cl, cm, cr, bl, bm, br) {
TOP_LEFT = tl;
TOP_MIDDLE = tm;
TOP_RIGHT = tr;
CENTER_LEFT = cl;
CENTER_MIDDLE = cm;
CENTER_RIGHT = cr;
BOTTOM_LEFT = bl;
BOTTOM_MIDDLE = bm;
BOTTOM_RIGHT = br;
}
var TOP_LEFT = null;
var TOP_MIDDLE = null;
var TOP_RIGHT = null;
var CENTER_LEFT = null;
var CENTER_MIDDLE = null;
var CENTER_RIGHT = null;
var BOTTOM_LEFT = null;
var BOTTOM_MIDDLE = null;
var BOTTOM_RIGHT = null;
}
Symbol 20507 MovieClip [__Packages.com.brooksandrus.ui.ProgressBar] Frame 0
class com.brooksandrus.ui.ProgressBar extends com.techsmith.ui.Component
{
var base, fill, mask, percentField, createLabel, messageField, _width, _height, percentFormat, messageFormat, height;
function ProgressBar () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("ProgressBar", com.brooksandrus.ui.ProgressBar);
var _local6 = container.attachMovie("ProgressBar", name, depth, init);
return(com.brooksandrus.ui.ProgressBar(_local6));
}
function init(baseDim, baseStyle, baseRect, fillDim, fillStyle, fillRect) {
if (baseStyle.CENTER_LEFT != null) {
base = com.techsmith.ui.panels.Slice9Panel.create(this, "base", 2);
} else if (baseRect == null) {
base = com.techsmith.ui.panels.HPanel.create(this, "base", 2);
} else {
base = com.techsmith.ui.panels.Scale9Panel.create(this, "base", 2);
}
base.init(baseDim, baseStyle, baseRect);
if (fillStyle.CENTER_LEFT != null) {
fill = com.techsmith.ui.panels.Slice9Panel.create(this, "fill", 3);
mask = com.techsmith.ui.panels.Slice9Panel.create(this, "mask", 4);
} else if (fillRect == null) {
fill = com.techsmith.ui.panels.HPanel.create(this, "fill", 3);
mask = com.techsmith.ui.panels.HPanel.create(this, "mask", 4);
} else {
fill = com.techsmith.ui.panels.Scale9Panel.create(this, "fill", 3);
mask = com.techsmith.ui.panels.Scale9Panel.create(this, "mask", 4);
}
fill.init(fillDim, fillStyle, fillRect);
mask.init(fillDim, fillStyle, fillRect);
if (hasMessageField) {
percentField = createLabel("percentField", {depth:5, x:0, y:0, w:35, h:20});
messageField = createLabel("messageField", {depth:6, x:0, y:0, w:fillDim.width - 40, h:20});
}
layoutPanels();
createFormat();
}
function layoutPanels() {
var _local2 = com.techsmith.ui.Component(base);
var _local3 = com.techsmith.ui.Component(fill);
var _local4 = com.techsmith.ui.Component(mask);
var _local5 = _width;
var _local6 = _height;
_local2.move((_local5 - _local2._width) / 2, (_local6 - _local2._height) / 2);
var _local7 = _local2._x + ((_local2._width - _local4._width) / 2);
var _local8 = _local2._y + ((_local2._height - _local4._height) / 2);
_local4.move(_local7, _local8);
_local3.move((-_local3._width) + _local7, _local8);
_local3.setMask(_local4);
if (hasMessageField) {
var _local9 = 2;
percentField._x = _local2._x + (_local2._width - percentField._width);
percentField._y = (_local2._y + _local2._height) + _local9;
messageField._x = _local2._x;
messageField._y = (_local2._y + _local2._height) + _local9;
}
}
function createFormat() {
if (percentFormat == null) {
percentFormat = new TextFormat();
percentFormat.font = "Arial";
percentFormat.size = 11;
percentFormat.color = textColor;
percentFormat.align = "left";
}
if (messageFormat == null) {
messageFormat = new TextFormat();
messageFormat.font = "Arial";
messageFormat.size = 11;
messageFormat.color = textColor;
percentFormat.align = "right";
}
}
function setEventSource(source) {
source.addEventListener(com.techsmith.events.Events.PROGRESS, com.techsmith.utils.Delegate.create(this, setProgress));
}
function setProgress(e) {
var _local3 = com.techsmith.ui.Component(fill);
var _local4 = com.techsmith.ui.Component(mask);
var _local5 = (e.percent / 100) * _local3.width;
_local3.move(_local4._x + (_local5 - _local3._width), _local3._y);
if (e.message != null) {
message = e.message;
}
messageField.text = message;
percentField.text = e.percent + " % ";
messageField.setTextFormat(messageFormat);
percentField.setTextFormat(percentFormat);
}
function showFill(fuse) {
if (fuse != null) {
com.techsmith.ui.Component(fill).animate(fuse, false);
com.techsmith.ui.Component(base).animate(fuse, false);
} else {
MovieClip(fill)._alpha = 100;
MovieClip(base)._alpha = 100;
}
}
function getInnerTrackLocation() {
return(new com.techsmith.utils.Point(com.techsmith.ui.Component(mask)._x, com.techsmith.ui.Component(mask)._y));
}
function getInnerTrackDimensions() {
return(fill.getDimensions());
}
function getDimensions() {
return(new com.techsmith.utils.Dimension(width, height));
}
function get width() {
return(com.techsmith.ui.Component(base)._width);
}
function destroy() {
super.destroy();
}
var message = "Loading Media";
var textColor = 16777215;
var hasMessageField = false;
}
Symbol 20508 MovieClip [__Packages.com.techsmith.ui.SliderTrack] Frame 0
class com.techsmith.ui.SliderTrack extends com.techsmith.ui.ButtonBase
{
var track, createEmptyMovieClip, _width, _xmouse, dispatchEvent;
function SliderTrack () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("SliderTrack", com.techsmith.ui.SliderTrack);
var _local6 = container.attachMovie("SliderTrack", name, depth, init);
return(com.techsmith.ui.SliderTrack(_local6));
}
function init(dim) {
track = createEmptyMovieClip("track", 1);
var _local3 = new com.brooksandrus.drawing.Rect();
_local3.draw(track, dim.width, dim.height, 16777215, 0);
}
function onPress() {
var _local2 = _xmouse / _width;
var _local3 = _local2 * 100;
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_PRESS, percent:_local3, fraction:_local2});
}
function onRelease() {
var _local2 = _xmouse / _width;
var _local3 = _local2 * 100;
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE, percent:_local3, fraction:_local2});
}
function onReleaseOutside() {
var _local2 = _xmouse / _width;
var _local3 = _local2 * 100;
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE, percent:_local3, fraction:_local2});
}
}
Symbol 20509 MovieClip [__Packages.com.brooksandrus.ui.ProgressSlider] Frame 0
class com.brooksandrus.ui.ProgressSlider extends com.techsmith.ui.Component
{
var dispatchEvent, stopDrag, height;
function ProgressSlider () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("ProgressSlider", com.brooksandrus.ui.ProgressSlider);
var _local6 = container.attachMovie("ProgressSlider", name, depth, init);
return(com.brooksandrus.ui.ProgressSlider(_local6));
}
function init(baseDim, baseStyle, baseRect, fillDim, fillStyle, fillRect) {
progBar = com.brooksandrus.ui.ProgressBar.create(this, "progBar", 2);
progBar.init(baseDim, baseStyle, baseRect, fillDim, fillStyle, fillRect);
thumb = com.techsmith.ui.BasicButton.create(this, "thumb", 4);
thumb.init(new com.techsmith.ui.ButtonStyle(thumbStyleShortcut, null, false));
thumb.focusManager.enabled = true;
if (thumbTabIndex != null) {
thumb.tabIndex = thumbTabIndex;
}
clickTrack = com.techsmith.ui.SliderTrack.create(this, "clickTrack", 3);
clickTrack.init(new com.techsmith.utils.Dimension(fillDim.width, thumb.height));
initThumbPosition();
registerListeners();
setupMaxConstraints();
constraints = {};
for (var i in maxConstraints) {
constraints[i] = maxConstraints[i];
}
}
function registerListeners() {
clickTrack.addEventListener(com.techsmith.events.Events.MOUSE_PRESS, com.techsmith.utils.Delegate.create(this, trackPressHandler));
clickTrack.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, thumbDragStopHandler));
thumb.addEventListener(com.techsmith.events.Events.MOUSE_PRESS, com.techsmith.utils.Delegate.create(this, thumbDragStartHandler));
thumb.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, thumbDragStopHandler));
thumb.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE_OUT, com.techsmith.utils.Delegate.create(this, thumbDragStopHandler));
if (thumbTabIndex != null) {
thumb._focusrect = thumbFocusRect;
thumb.onKeyDown = com.techsmith.utils.Delegate.create(this, thumbKeyDownHandler);
thumb.onKeyUp = com.techsmith.utils.Delegate.create(this, thumbKeyUpHandler);
thumb.onSetFocus = com.techsmith.utils.Delegate.create(this, thumbSetFocusHandler);
thumb.onKillFocus = com.techsmith.utils.Delegate.create(this, thumbKillFocusHandler);
Key.addListener(thumb);
}
}
function initThumbPosition() {
progBar.move(0, (thumb._height - progBar._height) / 2);
var _local2 = progBar.getDimensions();
var _local3 = progBar.getInnerTrackDimensions();
var _local4 = progBar.getLocation();
var _local5 = progBar.getInnerTrackLocation();
var _local6 = new com.techsmith.utils.Dimension(_local3.width, _local2.height);
var _local7 = new com.techsmith.utils.Point(_local5.x, _local5.y);
var _local8 = thumb.getDimensions();
var _local9 = _local8.width / 2;
var _local10 = _local7.x - _local9;
var _local11 = _local4.y - ((_local8.height - _local6.height) / 2);
thumb.move(_local10, _local11);
clickTrack.move(_local7.x + progBar.getInnerTrackLocation().x, _local11);
}
function setupMaxConstraints() {
var _local2 = progBar.getDimensions();
var _local3 = progBar.getInnerTrackDimensions();
var _local4 = progBar.getLocation();
var _local5 = progBar.getInnerTrackLocation();
var _local6 = new com.techsmith.utils.Dimension(_local3.width, _local2.height);
var _local7 = new com.techsmith.utils.Point(_local5.x, _local5.y);
var _local8 = thumb.getDimensions();
var _local9 = _local8.width / 2;
var _local10 = _local7.x - _local9;
var _local11 = _local4.y - ((_local8.height - _local6.height) / 2);
var _local12 = (_local7.x + _local6.width) - _local9;
maxConstraints = {left:_local10, top:_local11, right:_local12, bottom:_local11, width:Math.abs(_local10) + _local12, height:Math.abs(_local11) * 2};
}
function setConstraints(percent) {
var _local3 = thumb.getDimensions().width / 2;
var _local4 = progBar.getInnerTrackDimensions().width;
var _local5 = progBar.getInnerTrackLocation().x;
var _local6 = (percent / 100) * _local4;
var _local7 = (_local5 + _local6) - _local3;
constraints.right = _local7;
}
function dragDispatcher() {
var _local2 = thumb._x;
if (constraints.left < 0) {
_local2 = _local2 + Math.abs(constraints.left);
}
var _local3 = _local2 / constraints.width;
var _local4 = (_local2 / constraints.width) * 100;
dispatchEvent({type:com.techsmith.events.Events.PROGRESS, target:this, percent:_local4, fractPercent:_local3});
}
function setEventSource(source) {
source.addEventListener(com.techsmith.events.Events.PROGRESS, com.techsmith.utils.Delegate.create(this, setProgress));
}
function setProgress(e) {
progBar.setProgress({percent:e.percent});
setConstraints(e.percent);
}
function setPosition(percent) {
var _local3 = Math.abs(constraints.left) + Math.abs(maxConstraints.right);
var _local4 = (percent / 100) * _local3;
if (constraints.left < 0) {
_local4 = _local4 + constraints.left;
}
thumb.move(_local4, thumb._y);
}
function trackPressHandler(e) {
var _local3 = e.percent;
var _local4 = (constraints.right / maxConstraints.right) * 100;
if (_local3 > _local4) {
return(undefined);
}
var _local5 = Math.abs(constraints.left) + Math.abs(maxConstraints.right);
var _local6 = e.fraction * _local5;
if (constraints.left < 0) {
_local6 = _local6 + constraints.left;
}
if (_local6 <= constraints.right) {
thumb.move(_local6, thumb._y);
}
thumbDragStartHandler({target:progBar, type:com.techsmith.events.Events.MOUSE_PRESS});
}
function thumbDragStartHandler(e) {
if (constraints != null) {
dispatchEvent({target:this, type:com.techsmith.events.Events.DRAG_START});
thumb.startDrag(false, constraints.left, constraints.top, constraints.right, constraints.bottom);
thumb.onEnterFrame = com.techsmith.utils.Delegate.create(this, dragDispatcher);
}
}
function thumbDragStopHandler(e) {
stopDrag();
delete thumb.onEnterFrame;
dispatchEvent({target:this, type:com.techsmith.events.Events.DRAG_STOP});
}
function get width() {
return(progBar.width);
}
function getDimensions() {
return(new com.techsmith.utils.Dimension(width, height));
}
function showFill(fuse) {
if (fuse != null) {
progBar.showFill(fuse);
} else {
progBar.showFill();
}
}
function thumbSetFocusHandler(oldfocus) {
thumb.createEmptyMovieClip("line_mc", 51);
thumb.line_mc.lineStyle(4, 16776960, 100, true, "normal", "none", "miter", 150);
thumb.line_mc.moveTo(2, 2);
thumb.line_mc.lineTo(2, 6);
thumb.line_mc.lineTo(3, 6);
thumb.line_mc.lineTo(3, 2);
thumb.line_mc.lineTo(2, 2);
}
function thumbKillFocusHandler() {
thumb.line_mc.removeMovieClip();
}
function thumbKeyDownHandler() {
dispatchEvent({type:com.techsmith.events.Events.KEY_DOWN, target:thumb});
}
function thumbKeyUpHandler() {
dispatchEvent({type:com.techsmith.events.Events.KEY_UP, target:thumb});
}
function getThumb() {
return(thumb);
}
var progBar = null;
var clickTrack = null;
var thumb = null;
var thumbStyle = null;
var constraints = null;
var dimensions = null;
var maxConstraints = null;
var thumbStyleShortcut = "SliderThumb";
var thumbTabIndex = null;
var thumbFocusRect = null;
}
Symbol 20510 MovieClip [__Packages.com.techsmith.jing.Main] Frame 0
class com.techsmith.jing.Main extends MovieClip
{
var __proto__, snapshot, previous, _xmouse, _ymouse, hitTest;
function Main (scope) {
super();
scope.__proto__ = __proto__;
scope.__constructor__ = com.techsmith.jing.Main;
this=scope;//parameter overwritten
if (app == null) {
app = com.techsmith.jing.JingApplication.create(scope, "app", 2);
app.init(scope);
app.addEventListener(com.techsmith.events.Events.STARTED, com.techsmith.utils.Delegate.create(this, pauseHandler));
app.addEventListener(com.techsmith.events.Events.STOPPED, com.techsmith.utils.Delegate.create(this, pauseHandler));
snapshot = {x:-1, y:-1};
previous = {x:-1, y:-1};
intervalID = _global.setInterval(this, "activityCheck", intervalLength);
}
}
function onMouseMove() {
checkHover();
}
function activityCheck() {
if (app.player.dragging) {
if (!visible) {
setVisible(true);
}
} else if (initialized) {
if ((snapshot.x != previous.x) || (snapshot.y != previous.y)) {
if (!visible) {
setVisible(true);
}
} else if (visible) {
setVisible(false);
}
} else if (visible) {
setVisible(false);
}
previous = {x:snapshot.x, y:snapshot.y};
}
function setVisible(value) {
app.mouseOver(value);
visible = value;
}
function checkHover() {
initialized = true;
var _local2 = _xmouse;
var _local3 = _ymouse;
snapshot.x = _local2;
snapshot.y = _local3;
if ((!visible) && (hitTest(_local2, _local3, true))) {
setVisible(true);
}
}
function pauseHandler(e) {
_global.clearInterval(intervalID);
if (e.type == com.techsmith.events.Events.STARTED) {
intervalID = _global.setInterval(this, "activityCheck", intervalLength);
} else if (!visible) {
setVisible(true);
}
}
static function main() {
timeline = new com.techsmith.jing.Main(arguments[0]);
}
static var timeline = null;
var app = null;
var autostart = null;
var startcolors = null;
var showstartscreen = null;
var showendscreen = null;
var scalemode = null;
var styleWrapper = -1;
var visible = true;
var intervalID = -1;
var intervalLength = 2000;
var initialized = false;
}
Symbol 20511 MovieClip [__Packages.com.techsmith.jing.JingApplication] Frame 0
class com.techsmith.jing.JingApplication extends com.techsmith.ui.Component
{
var main, fps, contentWidth, _width, contentHeight, _height, actualWidth, actualHeight, progWatcher, createEmptyMovieClip, onEnterFrame, dispatchEvent, end, getURL;
function JingApplication () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("JingApplication", com.techsmith.jing.JingApplication);
var _local6 = container.attachMovie("JingApplication", name, depth, init);
return(com.techsmith.jing.JingApplication(_local6));
}
function init(scope) {
main = scope;
fps = scope.fps;
if (scope.width != null) {
contentWidth = scope.width;
} else if (scope.containerwidth != null) {
contentWidth = scope.containerwidth;
} else {
contentWidth = _width;
}
if (scope.height != null) {
contentHeight = scope.height;
} else if (scope.containerheight != null) {
contentHeight = scope.containerheight;
} else {
contentHeight = _height;
}
actualWidth = contentWidth;
actualHeight = contentHeight;
if ((contentWidth > (System.capabilities.screenResolutionX - 150)) || (contentHeight > (System.capabilities.screenResolutionY - 150))) {
scaleMode = "showAll";
}
if (scope.scalemode != null) {
var _local3 = scope.scalemode.toLowerCase();
if (_local3 == "showall") {
scaleMode = "showAll";
} else if (_local3 == "noborder") {
scaleMode = "noBorder";
} else if (_local3 == "exactfit") {
scaleMode = "exactFit";
} else if (_local3 == "noscale") {
scaleMode = "noScale";
}
}
Stage.scaleMode = scaleMode;
if (scope.styleWrapper == 6) {
branded = false;
}
if (scope.autostart != null) {
autostart = ((scope.autostart == "true") ? true : false);
} else {
autostart = false;
}
if (scope.startcolors != null) {
var _local4 = scope.startcolors.split(",");
var _local5 = _local4.length;
var _local6 = 0;
for ( ; _local6 < _local5 ; _local6++) {
_local4[_local6] = _global.parseInt(_local4[_local6], 16);
}
if (_local5 == 1) {
_local4[1] = _local4[0];
}
}
var _local7 = true;
if ((scope.showstartscreen != null) && (!branded)) {
_local7 = ((scope.showstartscreen == "true") ? true : false);
}
if ((scope.showendscreen != null) && (!branded)) {
showend = ((scope.showendscreen == "true") ? true : false);
}
player = com.techsmith.jing.JingPlayer.create(this, "player", 3);
player.init(new com.techsmith.utils.Dimension(contentWidth, controllerHeight), scope, fps);
player.scaleMode = scaleMode;
player.move(0, contentHeight - controllerHeight);
player.addEventListener(com.techsmith.events.Events.STARTED, com.techsmith.utils.Delegate.create(this, pauseHandler));
player.addEventListener(com.techsmith.events.Events.STOPPED, com.techsmith.utils.Delegate.create(this, pauseHandler));
player.addEventListener(com.techsmith.events.Events.COMPLETE, com.techsmith.utils.Delegate.create(this, playbackFinishedHandler));
startSequence(autostart, scope, _local4, _local7);
progWatcher = createEmptyMovieClip("progWatcher", 8);
progWatcher.onEnterFrame = com.techsmith.utils.Delegate.create(this, progWatcherHandler);
onEnterFrame = com.techsmith.utils.Delegate.create(this, enterFrameHandler);
}
function enterFrameHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.ENTER_FRAME});
}
function startSequence(autoStart, scope, startColors, showStart) {
if (autoStart) {
player.start();
} else if (showStart) {
start = com.techsmith.jing.StartScreen.create(main, "start", 4);
start.styleWrapper = branded;
start._alpha = 0;
player._visible = false;
start.init(scope, new com.techsmith.utils.Dimension(contentWidth, contentHeight));
start.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, startHandler));
player.setProgress(0);
var _local6 = new com.mosesSupposes.fuse.Fuse();
_local6.push({_alpha:100, seconds:1.5, ease:com.mosesSupposes.fuse.PennerEasing.linear, delay:0});
start.animate(_local6);
}
}
function createEndScreen(width, height) {
end = com.techsmith.jing.EndScreen.create(this, "end", 4);
end.styleWrapper = branded;
end.init(new com.techsmith.utils.Dimension(width, height));
end.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, endScreenHandler));
}
function mouseOver(over) {
if (over) {
var _local3 = new com.mosesSupposes.fuse.Fuse();
_local3.push({_alpha:100, seconds:0.5, ease:com.mosesSupposes.fuse.PennerEasing.linear, delay:0});
player.animate(_local3, false);
} else {
var _local4 = new com.mosesSupposes.fuse.Fuse();
_local4.push({_alpha:0, seconds:0.5, ease:com.mosesSupposes.fuse.PennerEasing.linear, delay:0});
player.animate(_local4, false);
}
}
function startHandler(e) {
start.destroy();
player._visible = true;
player.start();
}
function endScreenHandler(e) {
switch (e.id) {
case "download" :
getURL("http://www.techsmith.com/redirect.asp?product=jing&target=jingtry", "_blank");
break;
case "replay" :
replayMedia();
break;
case "share" :
}
}
function replayMedia() {
if (showend) {
destroyEndScreen();
}
player.replay();
}
function destroyEndScreen() {
player.removeEventListener(com.techsmith.events.Events.DRAG_START, dragStartHandler);
player.removeEventListener(com.techsmith.events.Events.STARTED, dragStartHandler);
end.removeAllListeners();
end.destroy();
}
function playbackFinishedHandler(e) {
player.addEventListener(com.techsmith.events.Events.DRAG_START, com.techsmith.utils.Delegate.create(this, dragStartHandler));
player.addEventListener(com.techsmith.events.Events.STARTED, com.techsmith.utils.Delegate.create(this, dragStartHandler));
if (showend) {
createEndScreen(actualWidth, actualHeight);
}
}
function pauseHandler(e) {
dispatchEvent(e);
}
function dragStartHandler(e) {
if (showend) {
destroyEndScreen(contentWidth, contentHeight);
}
}
function progWatcherHandler() {
var _local2 = (main._framesloaded / main._totalframes) * 100;
player.setProgress(_local2);
if (_local2 >= 100) {
delete progWatcher.onEnterFrame;
progWatcher.removeMovieClip();
}
}
function onUnload() {
destroy();
}
function destroy() {
player.destroy();
start.destroy();
end.destroy();
_global.com.techsmith.jing.Main = null;
}
var autostart = false;
var showend = true;
var controllerHeight = 45;
var player = null;
var start = null;
var branded = true;
var scaleMode = "noScale";
}
Symbol 20512 MovieClip [__Packages.com.mosesSupposes.fuse.PennerEasing] Frame 0
class com.mosesSupposes.fuse.PennerEasing
{
function PennerEasing () {
}
static function linear(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInQuad(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOutQuad(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOutQuad(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 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);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutInExpo(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
static function easeInElastic(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local8 = p / 4;
} else {
var _local8 = (p / (2 * Math.PI)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / p))) + b);
}
static function easeOutElastic(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local8 = p / 4;
} else {
var _local8 = (p / (2 * Math.PI)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / p)) + c) + b);
}
static function easeInOutElastic(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * (0.3 * 1.5);
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local8 = p / 4;
} else {
var _local8 = (p / (2 * Math.PI)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / p)) * 0.5) + c) + b);
}
static function easeOutInElastic(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * (0.3 * 1.5);
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local8 = p / 4;
} else {
var _local8 = (p / (2 * Math.PI)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / p)))) + b);
}
static function easeInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
static function easeOutBounce(t, b, c, d) {
t = t / d;
if (t < (1 / 2.75)) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < (2 / 2.75)) {
t = t - (1.5 / 2.75);
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < (2.5 / 2.75)) {
t = t - (2.25 / 2.75);
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - (2.625 / 2.75);
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeInBounce(t, b, c, d) {
return((c - easeOutBounce(d - t, 0, c, d)) + 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 easeOutInBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeOutBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeInBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeInCubic(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOutCubic(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOutCubic(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
static function easeOutInCubic(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
static function easeInQuart(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOutQuart(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOutQuart(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
static function easeOutInQuart(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
static function easeInQuint(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOutQuint(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOutQuint(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static function easeOutInQuint(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + 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 easeOutInSine(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
static function easeInCirc(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOutCirc(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOutCirc(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
static function easeOutInCirc(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
static var registryKey = "pennerEasing";
}
Symbol 20513 MovieClip [__Packages.com.techsmith.ui.panels.IPanel] Frame 0
class com.techsmith.ui.panels.IPanel
{
function IPanel () {
}
}
Symbol 20514 MovieClip [__Packages.com.techsmith.ui.panels.Scale9Panel] Frame 0
class com.techsmith.ui.panels.Scale9Panel extends com.techsmith.ui.Container implements com.techsmith.ui.panels.IPanel
{
var graphic, attachMovie, depthManager;
function Scale9Panel () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("Scale9Panel", com.techsmith.ui.panels.Scale9Panel);
var _local6 = container.attachMovie("Scale9Panel", name, depth, init);
return(com.techsmith.ui.panels.Scale9Panel(_local6));
}
function init(dim, styles, rectangle) {
graphic = attachMovie(styles.TOP_LEFT, "graphic", depthManager.getNextDepth(), {_x:0, _y:0});
graphic.scale9Grid = rectangle;
setSize(dim.width, dim.height);
}
function setSize(width, height) {
graphic._width = width;
graphic._height = height;
}
}
Symbol 20515 MovieClip [__Packages.com.techsmith.jing.EndScreen] Frame 0
class com.techsmith.jing.EndScreen extends com.techsmith.ui.Component
{
var curtain, createEmptyMovieClip, download, logo, removeAllListeners, f, replay, attachMovie, dispatchEvent, __get__styleWrapper;
function EndScreen () {
super();
curtain = createEmptyMovieClip("curtain", 1);
curtain.onRollOver = com.techsmith.utils.Delegate.create(this, curtainHandler);
curtain.useHandCursor = false;
}
static function create(container, name, depth, init) {
Object.registerClass("EndScreen", com.techsmith.jing.EndScreen);
var _local6 = container.attachMovie("EndScreen", name, depth, init);
return(com.techsmith.jing.EndScreen(_local6));
}
function destroy() {
super.destroy();
if (branded) {
download.removeAllListeners();
download.destroy();
delete curtain.onRollOver;
curtain.unloadMovie();
logo.unloadMovie();
delete download;
delete logo;
delete curtain;
removeAllListeners();
}
}
function fadeToBlack() {
f = new com.mosesSupposes.fuse.Fuse();
f.push({_alpha:100, seconds:1.25, ease:com.mosesSupposes.fuse.PennerEasing.linear, delay:0});
f.addTarget(curtain);
f.addEventListener(com.techsmith.events.Events.ON_COMPLETE, com.techsmith.utils.Delegate.create(this, curtainCompleteHandler));
f.start();
}
function curtainCompleteHandler(e) {
f.removeAllListeners();
f.destroy();
delete f;
if (branded) {
var _local3 = new com.mosesSupposes.fuse.Fuse();
_local3.push({_alpha:100, seconds:1, ease:com.mosesSupposes.fuse.PennerEasing.linear, delay:0});
_local3.addTarget(logo);
_local3.addEventListener(com.techsmith.events.Events.ON_COMPLETE, com.techsmith.utils.Delegate.create(this, animationCompleteHandler));
var _local4 = new com.mosesSupposes.fuse.Fuse();
_local4.push({_alpha:100, seconds:0.75, ease:com.mosesSupposes.fuse.PennerEasing.linear, delay:0.9});
_local4.addTarget(download);
_local4.addEventListener(com.techsmith.events.Events.ON_COMPLETE, com.techsmith.utils.Delegate.create(this, animationCompleteHandler));
var _local5 = new com.mosesSupposes.fuse.Fuse();
_local5.push({_alpha:100, seconds:0.75, ease:com.mosesSupposes.fuse.PennerEasing.linear, delay:1.5});
_local5.addTarget(replay);
_local5.addEventListener(com.techsmith.events.Events.ON_COMPLETE, com.techsmith.utils.Delegate.create(this, animationCompleteHandler));
_local3.start();
_local4.start();
_local5.start();
} else {
var _local6 = new com.mosesSupposes.fuse.Fuse();
_local6.push({_alpha:100, seconds:0.75, ease:com.mosesSupposes.fuse.PennerEasing.linear, delay:0});
_local6.addTarget(replay);
_local6.addEventListener(com.techsmith.events.Events.ON_COMPLETE, com.techsmith.utils.Delegate.create(this, animationCompleteHandler));
_local6.start();
}
}
function animationCompleteHandler(e) {
var _local3 = com.mosesSupposes.fuse.Fuse(e.target);
_local3.removeAllListeners();
_local3.destroy();
}
function init(dim) {
drawCurtain(dim.width, dim.height);
curtain._x = 0;
curtain._y = 0;
replay = com.techsmith.ui.BasicButton.create(this, "replay", 3);
replay.init(new com.techsmith.ui.ButtonStyle("Replay"));
replay.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, replayHandler));
curtain._alpha = 0;
replay._alpha = 0;
if (branded) {
logo = attachMovie("EndMessage", "logo", 2);
download = com.techsmith.ui.BasicButton.create(this, "download", 4);
download.init(new com.techsmith.ui.ButtonStyle("Download"));
download.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, downloadHandler));
logo._alpha = 0;
download._alpha = 0;
var _local3 = scaleSize(dim.width, dim.height);
var _local4 = _local3 * 100;
var _local5 = HPAD;
var _local6 = VPAD;
var _local7 = LEFT_OFFSET;
if (_local3 != 1) {
replay._xscale = _local4;
replay._yscale = _local4;
download._xscale = _local4;
download._yscale = _local4;
logo._xscale = _local4;
logo._yscale = _local4;
_local5 = _local3 * _local5;
_local6 = _local3 * _local6;
_local7 = _local3 * _local7;
}
var _local8 = logo._width;
var _local9 = (logo._height + _local6) + replay._height;
var _local10 = (dim.width - _local8) / 2;
var _local11 = (dim.height - _local9) / 2;
logo._x = _local10;
logo._y = _local11;
download._x = logo._x + _local7;
download._y = (logo._y + logo._height) + _local6;
replay._x = (download._x + replay._width) + _local5;
replay._y = download._y;
} else {
replay._x = (dim.width - replay._width) / 2;
replay._y = (dim.height - replay._height) / 2;
}
fadeToBlack();
}
function scaleSize(width, height) {
var _local4 = MARGIN * 2;
var _local5 = 1;
var _local6 = 1;
var _local7 = _local4 + logo._width;
var _local8 = ((_local4 + logo._height) + replay._height) + VPAD;
if (_local7 > width) {
_local5 = width / _local7;
}
if (_local8 > height) {
_local6 = height / _local8;
}
return(Math.min(_local5, _local6));
}
function drawCurtain(width, height) {
curtain.beginFill(0);
drawFill(curtain, width, height);
}
function drawFill(scope, width, height, location) {
if (location == null) {
location = {x:0, y:0};
}
scope.moveTo(location.x, location.y);
scope.lineTo(width + location.x, location.y);
scope.lineTo(width + location.x, location.y + height);
scope.lineTo(location.x, location.y + height);
scope.lineTo(location.x, location.y);
scope.endFill();
}
function downloadHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE, id:"download"});
}
function replayHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE, id:"replay"});
}
function curtainHandler() {
}
function set styleWrapper(val) {
branded = val;
//return(__get__styleWrapper());
}
var MARGIN = 10;
var LEFT_OFFSET = 25;
var HPAD = 10;
var VPAD = 30;
var branded = true;
}
Symbol 20516 MovieClip [__Packages.com.techsmith.ui.panels.HPanel] Frame 0
class com.techsmith.ui.panels.HPanel extends com.techsmith.ui.Container implements com.techsmith.ui.panels.IPanel
{
var attachMovie, depthManager;
function HPanel () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("HPanel", com.techsmith.ui.panels.HPanel);
var _local6 = container.attachMovie("HPanel", name, depth, init);
return(com.techsmith.ui.panels.HPanel(_local6));
}
function init(dim, styles, rectangle) {
left = attachMovie(styles.TOP_LEFT, "left", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
mid = attachMovie(styles.TOP_MIDDLE, "mid", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
right = attachMovie(styles.TOP_RIGHT, "right", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
if ((dim.width == null) || ((dim.width == undefined) || (_global.isNaN(dim.width)))) {
setSize(100);
} else {
setSize(dim.width);
}
left._visible = true;
mid._visible = true;
right._visible = true;
}
function setSize(width, height) {
var _local4 = width - (left._width + right._width);
mid._x = left._width;
mid._width = _local4;
right._x = mid._x + _local4;
}
var left = null;
var mid = null;
var right = null;
}
Symbol 20517 MovieClip [__Packages.com.techsmith.ui.ButtonStyle] Frame 0
class com.techsmith.ui.ButtonStyle
{
function ButtonStyle (falseSkin, trueSkin, tog) {
if (falseSkin != null) {
falseUpSkin = falseSkin + "Up";
falseOverSkin = falseSkin + "Over";
falseDownSkin = falseSkin + "Down";
falseDisabledSkin = falseSkin + "Disabled";
}
if (trueSkin != null) {
trueUpSkin = trueSkin + "Up";
trueOverSkin = trueSkin + "Over";
trueDownSkin = trueSkin + "Down";
trueDisabledSkin = trueSkin + "Disabled";
}
if (tog == null) {
toggle = false;
} else {
toggle = tog;
}
}
var falseUpSkin = null;
var falseOverSkin = null;
var falseDownSkin = null;
var falseDisabledSkin = null;
var trueUpSkin = null;
var trueOverSkin = null;
var trueDownSkin = null;
var trueDisabledSkin = null;
var toggle = null;
}
Symbol 20518 MovieClip [__Packages.com.techsmith.events.EventDispatcher] Frame 0
class com.techsmith.events.EventDispatcher implements com.techsmith.events.IEventDispatcher
{
function EventDispatcher () {
eventStore = new Object();
}
function addEventListener(event, scope) {
if (!active) {
if (eventStore[event] == undefined) {
eventStore[event] = [];
}
var _local4 = eventStore[event].length;
var _local5 = _local4 - 1;
for ( ; _local5 > -1 ; _local5--) {
if (eventStore[event][_local5].scope === scope) {
return(undefined);
}
}
eventStore[event].push({event:event, scope:scope});
} else {
if (eventStore.addqueue == undefined) {
eventStore.addqueue = [];
}
eventStore.addqueue.push({event:event, scope:scope});
}
}
function removeEventListener(event, scope) {
if (!active) {
var _local4 = eventStore[event].length;
var _local5 = _local4 - 1;
for ( ; _local5 > -1 ; _local5--) {
if (eventStore[event][_local5].scope === scope) {
eventStore[event].splice(_local5, 1);
}
}
} else {
if (eventStore.remqueue == undefined) {
eventStore.remqueue = [];
}
eventStore.remqueue.push({event:event, scope:scope});
}
}
function removeEventListeners(event) {
eventStore[event].splice(0);
}
function removeAllListeners() {
for (var i in eventStore) {
if (eventStore[i] instanceof Array) {
eventStore[i].splice(0);
}
}
}
function dispatchEvent(eventObj) {
active = true;
var _local3 = eventStore[eventObj.type];
var _local4 = eventStore[eventObj.type].length;
var _local5 = 0;
for ( ; _local5 < _local4 ; _local5++) {
var _local6 = eventStore[eventObj.type][_local5].event;
if (_local3[_local5].scope instanceof Function) {
_local3[_local5].scope(eventObj);
} else {
_local3[_local5].scope[_local6].apply(_local3[_local5].scope, [eventObj]);
}
}
active = false;
delayQueue();
}
function delayQueue() {
var _local2 = eventStore.remqueue.length;
if (_local2 > 0) {
var _local3 = 0;
for ( ; _local3 < _local2 ; _local3++) {
addEventListener(eventStore.remqueue[_local3].event, eventStore.remqueue[_local3].scope);
}
eventStore.remqueue.splice(0);
}
_local2 = eventStore.addqueue.length;
if (eventStore.addqueue.length > 0) {
var _local4 = 0;
for ( ; _local4 < _local2 ; _local4++) {
addEventListener(eventStore.addqueue[_local4].event, eventStore.addqueue[_local4].scope);
}
eventStore.addqueue.splice(0);
}
}
var eventStore = null;
var active = false;
}
Symbol 20519 MovieClip [__Packages.com.techsmith.jing.TimeDisplay] Frame 0
class com.techsmith.jing.TimeDisplay extends com.techsmith.ui.Component
{
var createLabel;
function TimeDisplay () {
super();
formatter = new com.techsmith.utils.TimeFormatter();
label = createLabel("label", {x:0, y:0, w:64, h:20});
label.embedFonts = true;
label.antiAliasType = "advanced";
label.selectable = false;
}
static function create(container, name, depth, init) {
Object.registerClass("TimeDisplay", com.techsmith.jing.TimeDisplay);
var _local6 = container.attachMovie("TimeDisplay", name, depth, init);
return(com.techsmith.jing.TimeDisplay(_local6));
}
function init(duration) {
this.duration = " / " + formatter.format(duration).substr(1);
createFormat();
setTime(0);
}
function createFormat() {
format = new TextFormat();
format.color = 16767795 /* 0xFFDB33 */;
format.size = 12;
format.font = "EmbeddedHelveticaNeue";
format.align = "right";
}
function setTime(time) {
label.text = formatter.format(time).substr(1) + duration;
label.setTextFormat(format);
}
var label = null;
var duration = null;
var formatter = null;
var format = null;
}
Symbol 20520 MovieClip [__Packages.com.techsmith.utils.TimeFormatter] Frame 0
class com.techsmith.utils.TimeFormatter
{
static var instance;
function TimeFormatter () {
}
static function getInstance() {
if (instance == null) {
instance = new com.techsmith.utils.TimeFormatter();
return(instance);
}
}
function format(time, timeFormat) {
if (time == 0) {
var _local5 = "00";
var _local6 = "00";
var _local8 = "00";
var _local7 = "00";
} else {
var _local5 = String(Math.floor(time / (60 * 60)));
var _local6 = String(Math.floor((time / 60) % 60));
var _local7 = String(Math.floor(time / 60));
var _local8 = String(Math.floor(time % 60));
if (_local5 < 10) {
_local5 = "0" + _local5;
}
if (_local6 < 10) {
_local6 = "0" + _local6;
}
if (_local7 < 10) {
_local7 = "0" + _local7;
}
if (_local8 < 10) {
_local8 = "0" + _local8;
}
}
switch (timeFormat) {
case "MM:SS" :
var _local4 = (_local7 + ":") + _local8;
break;
case "MMm SSs" :
_local4 = ((_local7 + "m ") + _local8) + "s ";
break;
case "MM" :
_local4 = _local7;
break;
case "MMm" :
_local4 = _local7 + "m ";
break;
case "SS" :
_local4 = _local8;
break;
case "SSs" :
_local4 = _local8 + "s ";
break;
case "HH:MM" :
_local4 = (_local5 + ":") + _local6;
break;
case "HHh MMm" :
_local4 = ((_local5 + "h ") + _local6) + "m ";
break;
case "HH:MM:SS" :
_local4 = (((_local5 + ":") + _local6) + ":") + _local8;
break;
case "HHh MMm SSs" :
_local4 = ((((_local5 + "h ") + _local6) + "m ") + _local8) + "s";
break;
default :
_local4 = (_local7 + ":") + _local8;
}
return(_local4);
}
}
Symbol 20521 MovieClip [__Packages.com.techsmith.ui.ComponentCollection] Frame 0
class com.techsmith.ui.ComponentCollection extends com.brooksandrus.utils.CollectionImpl
{
var items;
function ComponentCollection () {
super();
}
function addItem(item) {
return(super.addItem(item));
}
function addItemAt(item, index) {
return(super.addItemAt(item, index));
}
function getItemAt(index) {
return(com.techsmith.ui.Component(super.getItemAt(index)));
}
function getItemById(id) {
var _local3 = items.length;
var _local4 = 0;
for ( ; _local4 < _local3 ; _local4++) {
var _local5 = com.techsmith.ui.Component(items[_local4]);
if (_local5._name == id) {
return(_local5);
}
}
return(null);
}
function getItemIndexById(id) {
var _local3 = items.length;
var _local4 = 0;
// unexpected jump
_local4 = ("getItemIndexById"+1);
if (_local4 < _local3) {
if (items[_local4]._name == id) {
return(_local4);
}
return(null);
}
}
function getItemIndex(item) {
return(super.getItemIndex(item));
}
}
Symbol 20522 MovieClip [__Packages.com.techsmith.jing.JingPlayer] Frame 0
class com.techsmith.jing.JingPlayer extends com.techsmith.ui.Component
{
var sound, attachMovie, onKeyDown, dispatchEvent;
function JingPlayer () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("JingPlayer", com.techsmith.jing.JingPlayer);
var _local6 = container.attachMovie("JingPlayer", name, depth, init);
return(com.techsmith.jing.JingPlayer(_local6));
}
function init(dim, content, fps) {
this.content = content;
content.stop();
this.fps = fps;
sound = new Sound(content);
sound.setVolume(100);
layoutApplication(dim);
registerListeners();
}
function start() {
playMedia();
playback.setSelected(false);
content.onEnterFrame = com.techsmith.utils.Delegate.create(this, enterFrameHandler);
}
function replay() {
if (Key.ESCAPE && (Stage.displayState != "fullScreen")) {
fullscreen.setSelected(false);
}
playback.setSelected(false);
playMedia();
}
function setAccessibleProperties(screenreader) {
}
function setProgress(percent) {
slider.setProgress({percent:percent});
if (percent == 0) {
slider.showFill();
}
if (percent == 100) {
var _local3 = new com.mosesSupposes.fuse.Fuse();
_local3.push({_alpha:0, seconds:0.5, ease:com.mosesSupposes.fuse.PennerEasing.linear, delay:0});
slider.showFill(_local3);
}
}
function layoutApplication(dim) {
background = com.techsmith.ui.panels.HPanel.create(this, "background", 1);
background.init(new com.techsmith.utils.Dimension(dim.width, dim.height), new com.techsmith.ui.panels.PanelStyle("BottomLeft", "BottomMiddle", "BottomRight"));
background.move(0, 0);
playback = com.techsmith.ui.BasicButton.create(this, "playback", 6);
playback.init(new com.techsmith.ui.ButtonStyle("Pause", "Play", true));
playback.move(1, 1);
playback.setSelected(true);
separator1 = attachMovie("Separator", "separator1", 2);
slider = com.brooksandrus.ui.ProgressSlider.create(this, "slider", 7);
separator2 = attachMovie("Separator", "separator2", 3);
time = com.techsmith.jing.TimeDisplay.create(this, "time", 8);
time.init(framesToSeconds(content._totalframes));
separator3 = attachMovie("Separator", "separator3", 4);
audio = com.techsmith.ui.BasicButton.create(this, "audio", 9);
audio.init(new com.techsmith.ui.ButtonStyle("Audio", "AudioMute", true));
separator4 = attachMovie("Separator", "separator4", 5);
fullscreen = com.techsmith.ui.BasicButton.create(this, "fullscreen", 10);
fullscreen.init(new com.techsmith.ui.ButtonStyle("MaxScreen", "MinScreen", true));
fullscreen.move(dim.width - fullscreen._width, 1);
separator4._x = fullscreen._x - separator4._width;
separator4._y = 1;
audio.move(separator4._x - audio._width, 1);
separator3._x = audio._x - separator3._width;
separator3._y = 1;
separator2._x = separator3._x - 85;
separator2._y = 1;
var _local3 = (separator2._x + separator2._width) + ((85 - time._width) / 2);
var _local4 = (45 - time._height) / 2;
time.move(_local3, _local4 + 6);
separator1._x = playback._x + playback._width;
separator1._y = 1;
var _local5 = separator2._x - (separator1._x + separator1._y);
var _local6 = 43;
var _local7 = new com.techsmith.utils.Dimension(_local5, _local6);
var _local8 = new com.techsmith.ui.panels.PanelStyle("LoadFill");
var _local9 = new flash.geom.Rectangle(10, 10, 33, 10);
var _local10 = _local7;
var _local11 = new com.techsmith.ui.panels.PanelStyle("ProgressFill");
var _local12 = _local9;
slider.init(_local7, _local8, _local9, _local10, _local11, _local12);
slider.setProgress({percent:100});
slider.move(separator1._x + separator1._width, 1);
}
function registerListeners() {
playback.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, playbackHandler));
playback.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE_OUT, com.techsmith.utils.Delegate.create(this, playbackHandler));
slider.addEventListener(com.techsmith.events.Events.PROGRESS, com.techsmith.utils.Delegate.create(this, progressHandler));
slider.addEventListener(com.techsmith.events.Events.DRAG_START, com.techsmith.utils.Delegate.create(this, dragHandler));
slider.addEventListener(com.techsmith.events.Events.DRAG_STOP, com.techsmith.utils.Delegate.create(this, dragHandler));
audio.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, audioHandler));
fullscreen.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, fullscreenHandler));
onKeyDown = com.techsmith.utils.Delegate.create(this, keyboardHandler);
Key.addListener(this);
}
function stopMedia() {
content.stop();
playing = false;
delete content.onEnterFrame;
}
function playMedia() {
content.play();
playing = true;
content.onEnterFrame = com.techsmith.utils.Delegate.create(this, enterFrameHandler);
}
function framesToSeconds(frame) {
return(frame / fps);
}
function updateTime(seconds) {
time.setTime(seconds);
}
function updateSlider(percent) {
slider.setPosition(percent * 100);
}
function keyboardHandler() {
if ((Key.getCode() == Key.ESCAPE) && (Stage.displayState == "fullScreen")) {
fullscreenHandler();
fullscreen.setSelected(false);
}
}
function playbackHandler(e) {
if (e.selected) {
stopMedia();
dispatchEvent({target:this, type:com.techsmith.events.Events.STOPPED});
} else {
playMedia();
dispatchEvent({target:this, type:com.techsmith.events.Events.STARTED});
}
}
function fullscreenHandler(e) {
if (Stage.displayState == "normal") {
var _local3 = System.capabilities.playerType;
if ((_local3 != "ActiveX") && (_local3 != "PlugIn")) {
Stage.scaleMode = "showAll";
}
Stage.displayState = "fullScreen";
dispatchEvent({type:com.techsmith.events.Events.CHANGE, target:this, display:"max"});
} else {
Stage.scaleMode = scaleMode;
Stage.displayState = "normal";
dispatchEvent({type:com.techsmith.events.Events.CHANGE, target:this, display:"min"});
}
}
function progressHandler(e) {
var _local3 = Math.round(e.fractPercent * content._totalframes) + 1;
updateTime(framesToSeconds(_local3));
updateSlider(e.fractPercent);
content.gotoAndStop(_local3);
}
function dragHandler(e) {
if (e.type == com.techsmith.events.Events.DRAG_START) {
dragging = true;
if (playing) {
delete content.onEnterFrame;
}
dispatchEvent(e);
} else {
dragging = false;
if (playing) {
content.play();
content.onEnterFrame = com.techsmith.utils.Delegate.create(this, enterFrameHandler);
}
}
}
function audioHandler(e) {
if (e.selected) {
sound.setVolume(0);
} else {
sound.setVolume(100);
}
}
function enterFrameHandler() {
var _local2 = content._currentframe;
var _local3 = content._totalframes;
if (_local2 == _local3) {
stopMedia();
playback.setSelected(true);
dispatchEvent({target:this, type:com.techsmith.events.Events.COMPLETE});
}
updateTime(framesToSeconds(_local2));
updateSlider(_local2 / _local3);
}
var background = null;
var playback = null;
var slider = null;
var separator1 = null;
var separator2 = null;
var separator3 = null;
var separator4 = null;
var audio = null;
var time = null;
var fullscreen = null;
var content = null;
var scaleMode = "noScale";
var controlsHeight = 45;
var fps = 10;
var playing = false;
var dragging = false;
}
Symbol 20523 MovieClip [__Packages.com.techsmith.ui.panels.Slice9Panel] Frame 0
class com.techsmith.ui.panels.Slice9Panel extends com.techsmith.ui.Container implements com.techsmith.ui.panels.IPanel
{
var attachMovie, depthManager;
function Slice9Panel () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("Slice9Panel", com.techsmith.ui.panels.Slice9Panel);
var _local6 = container.attachMovie("Slice9Panel", name, depth, init);
return(com.techsmith.ui.panels.Slice9Panel(_local6));
}
function init(dim, styles, rectangle) {
topLeft = attachMovie(styles.TOP_LEFT, "topLeft", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
topMid = attachMovie(styles.TOP_MIDDLE, "topMid", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
topRight = attachMovie(styles.TOP_RIGHT, "topRight", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
centerLeft = attachMovie(styles.CENTER_LEFT, "centerLeft", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
centerMid = attachMovie(styles.CENTER_MIDDLE, "centerMid", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
centerRight = attachMovie(styles.CENTER_RIGHT, "centerRight", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
bottomLeft = attachMovie(styles.BOTTOM_LEFT, "bottomLeft", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
bottomMid = attachMovie(styles.BOTTOM_MIDDLE, "bottomMid", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
bottomRight = attachMovie(styles.BOTTOM_RIGHT, "bottomRight", depthManager.getNextDepth(), {_x:0, _y:0, _visible:false});
setSize(dim.width, dim.height);
topLeft._visible = true;
topMid._visible = true;
topRight._visible = true;
centerLeft._visible = true;
centerMid._visible = true;
centerRight._visible = true;
bottomLeft._visible = true;
bottomMid._visible = true;
bottomRight._visible = true;
}
function setSize(width, height) {
var _local4 = topLeft._width;
var _local5 = topLeft._height;
var _local6 = topRight._width;
var _local7 = bottomLeft._height;
var _local8 = width - (_local4 + _local6);
var _local9 = height - (_local5 + _local7);
topMid._width = _local8;
centerMid._width = _local8;
bottomMid._width = _local8;
centerLeft._height = _local9;
centerMid._height = _local9;
centerRight._height = _local9;
topLeft._x = horizontalPadding;
topLeft._y = verticalPadding;
topMid._x = topLeft._x + topLeft._width;
topMid._y = verticalPadding;
topRight._x = topMid._x + topMid._width;
topRight._y = verticalPadding;
var _local10 = topLeft._y + topLeft._height;
centerLeft._x = horizontalPadding;
centerLeft._y = _local10;
centerMid._x = centerLeft._x + centerLeft._width;
centerMid._y = _local10;
centerRight._x = centerMid._x + centerMid._width;
centerRight._y = _local10;
_local10 = centerLeft._y + centerLeft._height;
bottomLeft._x = horizontalPadding;
bottomLeft._y = _local10;
bottomMid._x = bottomLeft._x + bottomLeft._width;
bottomMid._y = _local10;
bottomRight._x = bottomMid._x + bottomMid._width;
bottomRight._y = _local10;
}
var horizontalPadding = 0;
var verticalPadding = 0;
var topLeft = null;
var topMid = null;
var topRight = null;
var centerLeft = null;
var centerMid = null;
var centerRight = null;
var bottomLeft = null;
var bottomMid = null;
var bottomRight = null;
}