Frame 1
csMovieFPS = 10;
tscwidth = 640;
tscheight = 480;
fps = 10;
config = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><main><config><hasToc type=\"Boolean\">0</hasToc><hasAudio type=\"Boolean\">1</hasAudio><hasAbout type=\"Boolean\">1</hasAbout><hasFullscreen type=\"Boolean\">1</hasFullscreen><hasPipOverlay type=\"Boolean\">0</hasPipOverlay><startText><![CDATA[]]></startText><startLogo></startLogo><endLogo></endLogo><about><title><![CDATA[]]></title><logo></logo><width>336</width><height>270</height><tabSelected>1</tabSelected><aboutMedia></aboutMedia><aboutText><![CDATA[]]></aboutText><infoText><![CDATA[]]></infoText></about><accessibility><startbutton>BeginVideo</startbutton><playbutton>PlayToggle</playbutton><progressbutton>ProgressbarIndicator</progressbutton><audiobutton>AudioToggle</audiobutton><tocbutton>TableofContentsToggle</tocbutton><volumeslider>AudioIndicator</volumeslider><fsbutton>FullscreenToggle</fsbutton><ccbutton>ClosedCaptionToggle</ccbutton><infobutton>Information</infobutton><volumebutton>VolumeControl</volumebutton><exitquizbutton>ExitQuiz</exitquizbutton><exitfeedbackbutton>ExitQuestionFeedback</exitfeedbackbutton><exitsummarybutton>ExitQuestionFeedback</exitsummarybutton><exitpreviewbutton>ExitPreview</exitpreviewbutton><infowindow>infowindow</infowindow><infoaboutbutton>about</infoaboutbutton><infoinfobutton>info</infoinfobutton><infoexitbutton>infowindowExit</infoexitbutton><replaybutton>ReplayVideo</replaybutton><tocexitbutton>TableofContentsExit</tocexitbutton><tocwindow>TableofContentsWindow</tocwindow></accessibility><localSecurityWarning><title>Important</title><message>This action is not allowed by the default Flash Player security settings when the content is played from a hard drive or CD. Once the content is moved to a web server, it should function as expected, and you should not see this message.\n\nFor other distribution methods, or to understand how the Flash Player security settings affect this content, please see the "Flash Player Security" topic in the Camtasia Studio help file.\n\n\n\n </message></localSecurityWarning><includeScoreInEmail type=\"Boolean\">0</includeScoreInEmail><rememberQuizAnswers type=\"Number\">0</rememberQuizAnswers><endAction>Stop</endAction><endActionParam></endActionParam><endActionTarget>_self</endActionTarget><volume type=\"Number\">100</volume><brandedContextMenu type=\"Boolean\">false</brandedContextMenu><hasCaptions type=\"Boolean\">0</hasCaptions><captionsVisible type=\"Boolean\">0</captionsVisible><caption><font><type type=\"String\">Arial</type><size type=\"Number\">21</size><weight type=\"Boolean\">0</weight><color type=\"Number\">0xFFFFFF</color><cpl type=\"Number\">32</cpl></font><panel><background><color type=\"Number\">0x000000</color><alpha type=\"Number\">50</alpha></background></panel></caption><video1><width type=\"Number\">640</width><height type=\"Number\">480</height></video1><toc><type type=\"Number\">2</type><title></title><media></media><x type=\"Number\">0</x><y type=\"Number\">0</y><width type=\"Number\">0</width><height type=\"Number\">498</height><transparent type=\"Boolean\">1</transparent><horizontalScroll type=\"Number\">0</horizontalScroll><backgroundColor type=\"Number\">0x000000</backgroundColor><alternatingRowColors><array><colors type=\"Number\">0x666666</colors><colors type=\"Number\">0x777777</colors></array></alternatingRowColors><rowDepthColors><array><colors type=\"Number\"></colors><colors type=\"Number\"></colors></array></rowDepthColors><rowRollOverColor type=\"Number\">0xA4A4A4</rowRollOverColor><rowSelectedColor type=\"Number\">0xC0C0C0</rowSelectedColor><rowIndentation>10</rowIndentation><borderStyle>inset</borderStyle><textColor type=\"Number\">0xFFFFFF</textColor><fontFamily>Arial</fontFamily><fontSize type=\"Number\">12</fontSize><fontWeight>none</fontWeight><textAlign>left</textAlign><textDecoration>none</textDecoration><textIndent type=\"Number\">0</textIndent><textRollOverColor type=\"Number\">0xFFFFFF</textRollOverColor><textSelectedColor type=\"Number\">0x000000</textSelectedColor><useRollOver type=\"Boolean\">0</useRollOver><collapsible type=\"Boolean\">0</collapsible><expanded type=\"Boolean\">1</expanded></toc><quiz><disableFeedback type=\"Boolean\">0</disableFeedback><txtQuestionOf>Question @ of @</txtQuestionOf><txtPrev>Prev</txtPrev><txtSubmit>Submit</txtSubmit><txtNext>Next</txtNext><txtDone>Done</txtDone><txtPreview>Preview</txtPreview><txtSend>Send</txtSend><txtMainMessage>You have reached the end of the questions and this video. Your answers are ready to be sent.</txtMainMessage><txtEmailContents>E-mail Contents</txtEmailContents><txtEmailTo>E-mail to </txtEmailTo><txtAnswersSent>Your answers have been sent.</txtAnswersSent><txtsummary>You have completed @ of @ questions.</txtsummary><txtScore>Score = @/@</txtScore><txtSummaryTitle>Answers Summary</txtSummaryTitle></quiz></config><playlist><array><fileset><video1><duration type=\"Number\">11.80</duration><uri>Mahahahaha.swf</uri><frameRate type=\"Number\">10</frameRate><keyframeRate type=\"Number\">0</keyframeRate><blendingMode>Normal</blendingMode><isFlv type=\"Boolean\">0</isFlv></video1><pip><duration type=\"Number\">11.80</duration><frameRate type=\"Number\">10</frameRate><keyframeRate type=\"Number\">30</keyframeRate><uri>Mahahahaha_PIP.mp4</uri></pip><hasPipVideo type=\"Boolean\">0</hasPipVideo><hotspotInfo></hotspotInfo><quizInfo></quizInfo><captionInfo></captionInfo></fileset></array></playlist><tocInfo></tocInfo></main>";
var tscwidth;
var tscheight;
var fps;
var config;
com.techsmith.camtasia.Main.main(this);
Symbol 217 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 219 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 230 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 232 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 239 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 259 MovieClip [BtnDownArrow] Frame 1
#initclip 202
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 260 MovieClip [BtnUpArrow] Frame 1
#initclip 201
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 481 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 483 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 486 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 488 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 491 MovieClip [Defaults] Frame 1
#initclip 176
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 492 MovieClip [UIObjectExtensions] Frame 1
#initclip 177
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 493 MovieClip [UIObject] Frame 1
#initclip 178
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 496 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 497 MovieClip Frame 1
#initclip 45
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 498 MovieClip [FocusRect] Frame 1
#initclip 179
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 499 MovieClip [FocusManager] Frame 1
#initclip 180
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 500 MovieClip [UIComponentExtensions] Frame 1
#initclip 181
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 501 MovieClip [UIComponent] Frame 1
#initclip 182
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 502 MovieClip [SimpleButton] Frame 1
#initclip 183
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 503 MovieClip [Border] Frame 1
#initclip 184
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 504 MovieClip [RectBorder] Frame 1
#initclip 46
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 505 MovieClip [ButtonSkin] Frame 1
#initclip 185
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 506 MovieClip [Button] Frame 1
#initclip 186
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 502 MovieClip [SimpleButton] in Symbol 506 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 507 MovieClip [CustomBorder] Frame 1
#initclip 47
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 508 MovieClip [VScrollBar] Frame 1
#initclip 187
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 506 MovieClip [Button] in Symbol 508 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 502 MovieClip [SimpleButton] in Symbol 508 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 509 MovieClip [HScrollBar] Frame 1
#initclip 188
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 506 MovieClip [Button] in Symbol 509 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 502 MovieClip [SimpleButton] in Symbol 509 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 510 MovieClip [UIScrollBar] Frame 1
#initclip 189
Object.registerClass("UIScrollBar", mx.controls.UIScrollBar);
#endinitclip
stop();
Instance of Symbol 508 MovieClip [VScrollBar] in Symbol 510 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 509 MovieClip [HScrollBar] in Symbol 510 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 546 MovieClip [DataProvider] Frame 1
#initclip 190
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 547 MovieClip [DataSelector] Frame 1
#initclip 191
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 548 MovieClip [SelectableRow] Frame 1
#initclip 192
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 549 MovieClip [View] Frame 1
#initclip 193
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 550 MovieClip [ScrollView] Frame 1
#initclip 194
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 509 MovieClip [HScrollBar] in Symbol 550 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 508 MovieClip [VScrollBar] in Symbol 550 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 551 MovieClip [ScrollSelectList] Frame 1
#initclip 195
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 552 MovieClip [List] Frame 1
#initclip 196
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 553 MovieClip [TreeDataProvider] Frame 1
#initclip 197
Object.registerClass("TreeDataProvider", mx.controls.treeclasses.TreeDataProvider);
#endinitclip
Symbol 554 MovieClip [TreeRow] Frame 1
#initclip 198
Object.registerClass("TreeRow", mx.controls.treeclasses.TreeRow);
#endinitclip
stop();
Symbol 555 MovieClip [TSTree] Frame 1
#initclip 199
Object.registerClass("TSTree", com.techsmith.camtasia.components.TSTree);
#endinitclip
stop();
Instance of Symbol 552 MovieClip [List] in Symbol 555 MovieClip [TSTree] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 561 MovieClip [ScrollPane] Frame 1
#initclip 200
Object.registerClass("ScrollPane", mx.containers.ScrollPane);
#endinitclip
stop();
Symbol 523 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 474 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.127";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 511 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 512 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 514 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 513 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 475 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 518 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.127";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 476 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
_scrollPosition = pos;
if (isScrolling != true) {
pos = Math.min(pos, maxPos);
pos = Math.max(pos, minPos);
var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top;
scrollThumb_mc.move(0, _local3);
}
//return(scrollPosition);
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
super.init();
_scrollPosition = 0;
tabEnabled = false;
focusEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (scrollTrack_mc == undefined) {
setSkin(skinIDTrack, scrollTrackName);
}
scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (upArrow_mc == undefined) {
_local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = onUpArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _local2.height;
_minWidth = _local2.width;
if (downArrow_mc == undefined) {
_local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = onDownArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
if (skinID == skinIDUpArrow) {
o.falseUpSkin = upArrowUpName;
o.falseDownSkin = upArrowDownName;
o.falseOverSkin = upArrowOverName;
} else {
o.falseUpSkin = downArrowUpName;
o.falseDownSkin = downArrowDownName;
o.falseOverSkin = downArrowOverName;
}
var _local3 = createObject(linkageName, id, skinID, o);
this[id].visible = false;
this[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = new Object();
_local2.validateNow = true;
_local2.tabEnabled = false;
_local2.leftSkin = thumbTopName;
_local2.middleSkin = thumbMiddleName;
_local2.rightSkin = thumbBottomName;
_local2.gripSkin = thumbGripName;
createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local4;
var _local2 = scrollTrack_mc;
pageSize = pSize;
largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
minPos = Math.max(mnPos, 0);
maxPos = Math.max(mxPos, 0);
_scrollPosition = Math.max(minPos, _scrollPosition);
_scrollPosition = Math.min(maxPos, _scrollPosition);
if (((maxPos - minPos) > 0) && (enabled)) {
var _local5 = _scrollPosition;
if (!initializing) {
upArrow_mc.enabled = true;
downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = startTrackScroller);
_local2.onRelease = releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = stopScrolling);
_local2.onReleaseOutside = releaseScrolling;
_local2.useHandCursor = false;
if (scrollThumb_mc == undefined) {
createThumb();
}
var _local3 = scrollThumb_mc;
if (scrollTrackOverName.length > 0) {
_local2.onRollOver = trackOver;
_local2.onRollOut = trackOut;
}
_local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height;
if (_local4 < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
_local4 = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local4);
}
_local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos);
_local5 = Math.min(_local5, maxPos);
scrollPosition = (Math.max(_local5, minPos));
} else {
scrollThumb_mc.__set__visible(false);
if (!initializing) {
upArrow_mc.enabled = false;
downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (initializing) {
scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function draw(Void) {
if (initializing) {
initializing = false;
scrollTrack_mc.visible = true;
upArrow_mc.__set__visible(true);
downArrow_mc.__set__visible(true);
}
size();
}
function size(Void) {
if (_height == 1) {
return(undefined);
}
if (upArrow_mc == undefined) {
return(undefined);
}
var _local3 = upArrow_mc.__get__height();
var _local2 = downArrow_mc.__get__height();
upArrow_mc.move(0, 0);
var _local4 = scrollTrack_mc;
_local4._y = _local3;
_local4._height = (virtualHeight - _local3) - _local2;
downArrow_mc.move(0, virtualHeight - _local2);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
if (k == 36) {
if (scrollPosition != 0) {
scrollPosition = (0);
dispatchScrollEvent(minMode);
}
return(true);
}
if (k == 35) {
if (scrollPosition < maxPos) {
scrollPosition = (maxPos);
dispatchScrollEvent(maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local3 = smallScroll;
if (inc != "Line") {
_local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll));
}
var _local2 = _scrollPosition + (mode * _local3);
if (_local2 > maxPos) {
_local2 = maxPos;
} else if (_local2 < minPos) {
_local2 = minPos;
}
if (scrollPosition != _local2) {
scrollPosition = (_local2);
var _local4 = ((mode < 0) ? (minusMode) : (plusMode));
dispatchScrollEvent(inc + _local4);
}
}
function startTrackScroller(Void) {
_parent.pressFocus();
if (_parent.scrollTrackDownName.length > 0) {
if (_parent.scrollTrackDown_mc == undefined) {
_parent.setSkin(skinIDTrackDown, scrollTrackDownName);
} else {
_parent.scrollTrackDown_mc.visible = true;
}
}
_parent.trackScroller();
_parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
clearInterval(scrolling);
if (inc == "Page") {
trackScroller();
} else {
scrollIt(inc, mode);
}
scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode);
}
function trackScroller(Void) {
if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) {
scrollIt("Page", 1);
} else if (scrollThumb_mc._y > _ymouse) {
scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
_parent.releaseFocus();
stopScrolling();
_parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
if (_parent.scrollTrackOverName.length > 0) {
if (_parent.scrollTrackOver_mc == undefined) {
_parent.setSkin(skinIDTrackOver, scrollTrackOverName);
} else {
_parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 477 MovieClip [__Packages.mx.controls.UIScrollBar] Frame 0
class mx.controls.UIScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var textField, wasHorizontal, __width, __height, _parent, synchScroll, setScrollProperties, __set__scrollPosition, initializing, _rotation, _xscale, hScroller, vScroller, onChanged, onScroller, scrollPosition, dispatchEvent;
function UIScrollBar () {
super();
}
function init(Void) {
super.init();
textField.owner = this;
horizontal = (wasHorizontal);
if (horizontal) {
((textField != undefined) ? (super.setSize(textField._width, 16)) : (super.setSize(__width, __height)));
} else {
((textField != undefined) ? (super.setSize(16, textField._height)) : (super.setSize(__width, __height)));
}
if (horizontal) {
var _local3 = __width;
__height = __width;
width = _local3;
__width = 16;
}
textField.onScroller = function () {
this.hPosition = this.hscroll;
this.vPosition = this.scroll - 1;
};
if (_targetInstanceName != undefined) {
setScrollTarget(_targetInstanceName);
_targetInstanceName.addListener(this);
}
}
function get _targetInstanceName() {
return(textField);
}
function get height() {
if (wasHorizontal) {
return(__width);
}
return(__height);
}
function get width() {
if (wasHorizontal) {
return(__height);
}
return(__width);
}
function size(Void) {
super.size();
onTextChanged();
}
function draw() {
super.draw();
}
function set _targetInstanceName(t) {
if (t == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
var _local3 = _parent[t];
textField = _parent[t];
onTextChanged();
//return(_targetInstanceName);
}
function setSize(w, h) {
if (horizontal) {
super.setSize(h, w);
} else {
super.setSize(w, h);
}
}
function onTextChanged(Void) {
if (textField == undefined) {
return(undefined);
}
clearInterval(synchScroll);
if (horizontal) {
var _local2 = textField.hscroll;
setScrollProperties(textField._width, 0, textField.maxhscroll);
__set__scrollPosition(Math.min(_local2, textField.maxhscroll));
} else {
var _local2 = textField.scroll;
var _local3 = textField.bottomScroll - textField.scroll;
setScrollProperties(_local3, 1, textField.maxscroll);
__set__scrollPosition(Math.min(_local2, textField.maxscroll));
}
}
function get horizontal() {
return(wasHorizontal);
}
function set horizontal(v) {
wasHorizontal = v;
if (v and initializing) {
if (_rotation == 90) {
return;
}
_xscale = -100;
_rotation = -90;
}
if (!initializing) {
if (v) {
if (_rotation == 0) {
_rotation = -90;
_xscale = -100;
}
} else if (_rotation == -90) {
_rotation = 0;
_xscale = 100;
}
}
//return(horizontal);
}
function callback(prop, oldval, newval) {
clearInterval(hScroller.synchScroll);
clearInterval(vScroller.synchScroll);
hScroller.synchScroll = setInterval(hScroller, "onTextChanged", 50);
vScroller.synchScroll = setInterval(vScroller, "onTextChanged", 50);
return(newval);
}
function setScrollTarget(tF) {
if (tF == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
textField = tF;
if (horizontal) {
textField.hScroller = this;
textField.hScroller.lineScrollSize = 5;
} else {
textField.vScroller = this;
textField.vScroller.lineScrollSize = 1;
}
onTextChanged();
onChanged = function (Void) {
this.onTextChanged();
};
onScroller = function (Void) {
if (!this.isScrolling) {
if (!this.horizontal) {
this.scrollPosition = this.textField.scroll;
} else {
this.scrollPosition = this.textField.hscroll;
}
}
};
textField.addListener(this);
textField.watch("text", callback);
textField.watch("htmlText", callback);
}
function scrollHandler(Void) {
if (horizontal) {
var _local2 = textField.background;
textField.hscroll = scrollPosition;
textField.background = _local2;
} else {
textField.scroll = scrollPosition;
}
}
function setEnabled(enable) {
super.setEnabled(enable);
if (enable) {
textField.addListener(this);
} else {
textField.removeListener();
}
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll"});
}
static var symbolName = "UIScrollBar";
static var symbolOwner = mx.controls.UIScrollBar;
var className = "UIScrollBar";
var clipParameters = {_targetInstanceName:1, horizontal:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.UIScrollBar.prototype.clipParameters);
static var version = "2.0.2.126";
}
Symbol 515 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 516 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.2.127";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 517 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
ymin = _ymin;
ymax = _ymax;
datamin = _datamin;
datamax = _datamax;
}
function dragThumb(Void) {
scrollMove = _ymouse - lastY;
scrollMove = scrollMove + _y;
if (scrollMove < ymin) {
scrollMove = ymin;
} else if (scrollMove > ymax) {
scrollMove = ymax;
}
_parent.isScrolling = true;
_y = scrollMove;
var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin;
_parent.scrollPosition = _local2;
_parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
_parent.isScrolling = false;
_parent.dispatchScrollEvent("ThumbPosition");
_parent.dispatchScrollChangedEvent();
delete onMouseMove;
}
function onPress(Void) {
_parent.pressFocus();
lastY = _ymouse;
onMouseMove = dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
super.draw();
if (grip_mc == undefined) {
setSkin(3, gripSkin);
}
}
function size() {
super.size();
grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 519 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var scrollIt;
function VScrollBar () {
super();
}
function init(Void) {
super.init();
}
function isScrollBarKey(k) {
if (k == 38) {
scrollIt("Line", -1);
return(true);
}
if (k == 40) {
scrollIt("Line", 1);
return(true);
}
if (k == 33) {
scrollIt("Page", -1);
return(true);
}
if (k == 34) {
scrollIt("Page", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "VScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 520 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.127";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 521 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 522 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 524 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 525 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 526 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 527 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 528 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.127";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 529 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 530 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 531 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 532 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 533 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.127";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 534 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.127";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 535 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 536 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt;
function HScrollBar () {
super();
}
function getMinWidth(Void) {
return(_minHeight);
}
function getMinHeight(Void) {
return(_minWidth);
}
function init(Void) {
super.init();
_xscale = -100;
_rotation = -90;
}
function get virtualHeight() {
return(__width);
}
function isScrollBarKey(k) {
if (k == 37) {
scrollIt("Line", -1);
return(true);
}
if (k == 39) {
scrollIt("Line", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "HScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 537 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function set tabIndex(n) {
__tabIndex = n;
//return(tabIndex);
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.127";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 538 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local5 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local5 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = createObject("HScrollBar", "hSB", 1001);
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local5)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local5, 0, colCount - _local5);
viewableColumns = _local5;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local4 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local4 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = createObject("VScrollBar", "vSB", 1002);
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local4 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local4, 0, (rwCount - _local4) + _local8);
viewableRows = _local4;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = createObject("FHScrollBar", "hSB", 1001);
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.127";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 539 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0
class mx.controls.listclasses.DataSelector extends Object
{
var __vPosition, setVPosition, __dataProvider, enabled, lastSelID, lastSelected, selected, invUpdateControl, invalidate, multipleSelection, updateControl, __rowCount, rows;
function DataSelector () {
super();
}
static function Initialize(obj) {
var _local3 = mixinProps;
var _local4 = _local3.length;
obj = obj.prototype;
var _local1 = 0;
while (_local1 < _local4) {
obj[_local3[_local1]] = mixins[_local3[_local1]];
_local1++;
}
mixins.createProp(obj, "dataProvider", true);
mixins.createProp(obj, "length", false);
mixins.createProp(obj, "value", false);
mixins.createProp(obj, "selectedIndex", true);
mixins.createProp(obj, "selectedIndices", true);
mixins.createProp(obj, "selectedItems", false);
mixins.createProp(obj, "selectedItem", true);
return(true);
}
function createProp(obj, propName, setter) {
var p = (propName.charAt(0).toUpperCase() + propName.substr(1));
var _local2 = null;
var _local4 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local2 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(propName, _local4, _local2);
}
function setDataProvider(dP) {
if (__vPosition != 0) {
setVPosition(0);
}
clearSelected();
__dataProvider.removeEventListener(this);
__dataProvider = dP;
dP.addEventListener("modelChanged", this);
dP.addView(this);
modelChanged({eventName:"updateAll"});
}
function getDataProvider(Void) {
return(__dataProvider);
}
function addItemAt(index, label, data) {
if ((index < 0) || (!enabled)) {
return(undefined);
}
var _local2 = __dataProvider;
if (_local2 == undefined) {
_local2 = (__dataProvider = new Array());
_local2.addEventListener("modelChanged", this);
index = 0;
}
if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) {
_local2.addItemAt(index, label);
} else {
_local2.addItemAt(index, {label:label, data:data});
}
}
function addItem(label, data) {
addItemAt(__dataProvider.length, label, data);
}
function removeItemAt(index) {
return(__dataProvider.removeItemAt(index));
}
function removeAll(Void) {
__dataProvider.removeAll();
}
function replaceItemAt(index, newLabel, newData) {
if (typeof(newLabel) == "object") {
__dataProvider.replaceItemAt(index, newLabel);
} else {
__dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
}
}
function sortItemsBy(fieldName, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItemsBy(fieldName, order);
}
function sortItems(compareFunc, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItems(compareFunc, order);
}
function getLength(Void) {
return(__dataProvider.length);
}
function getItemAt(index) {
return(__dataProvider.getItemAt(index));
}
function modelChanged(eventObj) {
var _local3 = eventObj.firstItem;
var _local6 = eventObj.lastItem;
var _local7 = eventObj.eventName;
if (_local7 == undefined) {
_local7 = eventObj.event;
_local3 = eventObj.firstRow;
_local6 = eventObj.lastRow;
if (_local7 == "addRows") {
_local7 = (eventObj.eventName = "addItems");
} else if (_local7 == "deleteRows") {
_local7 = (eventObj.eventName = "removeItems");
} else if (_local7 == "updateRows") {
_local7 = (eventObj.eventName = "updateItems");
}
}
if (_local7 == "addItems") {
for (var _local2 in selected) {
var _local5 = selected[_local2];
if ((_local5 != undefined) && (_local5 >= _local3)) {
selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1);
}
}
} else if (_local7 == "removeItems") {
if (__dataProvider.length == 0) {
delete selected;
} else {
var _local9 = eventObj.removedIDs;
var _local10 = _local9.length;
var _local2 = 0;
while (_local2 < _local10) {
var _local4 = _local9[_local2];
if (selected[_local4] != undefined) {
delete selected[_local4];
}
_local2++;
}
for (_local2 in selected) {
if (selected[_local2] >= _local3) {
selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1);
}
}
}
} else if (_local7 == "sort") {
if (typeof(__dataProvider.getItemAt(0)) != "object") {
delete selected;
} else {
var _local10 = __dataProvider.length;
var _local2 = 0;
while (_local2 < _local10) {
if (isSelected(_local2)) {
var _local4 = __dataProvider.getItemID(_local2);
if (_local4 == lastSelID) {
lastSelected = _local2;
}
selected[_local4] = _local2;
}
_local2++;
}
}
} else if (_local7 == "filterModel") {
setVPosition(0);
}
invUpdateControl = true;
invalidate();
}
function getValue(Void) {
var _local2 = getSelectedItem();
if (typeof(_local2) != "object") {
return(_local2);
}
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
}
function getSelectedIndex(Void) {
for (var _local3 in selected) {
var _local2 = selected[_local3];
if (_local2 != undefined) {
return(_local2);
}
}
}
function setSelectedIndex(index) {
if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) {
delete selected;
selectItem(index, true);
lastSelected = index;
invUpdateControl = true;
invalidate();
} else if (index == undefined) {
clearSelected();
}
}
function getSelectedIndices(Void) {
var _local2 = new Array();
for (var _local3 in selected) {
_local2.push(selected[_local3]);
}
_local2.reverse();
return(((_local2.length > 0) ? (_local2) : undefined));
}
function setSelectedIndices(indexArray) {
if (multipleSelection != true) {
return(undefined);
}
delete selected;
var _local3 = 0;
while (_local3 < indexArray.length) {
var _local2 = indexArray[_local3];
if ((_local2 >= 0) && (_local2 < __dataProvider.length)) {
selectItem(_local2, true);
}
_local3++;
}
invUpdateControl = true;
updateControl();
}
function getSelectedItems(Void) {
var _local3 = getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
}
function getSelectedItem(Void) {
return(__dataProvider.getItemAt(getSelectedIndex()));
}
function selectItem(index, selectedFlag) {
if (selected == undefined) {
selected = new Object();
}
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (selectedFlag && (!isSelected(index))) {
selected[_local2] = index;
} else if (!selectedFlag) {
delete selected[_local2];
}
}
function isSelected(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(false);
}
return(selected[_local2] != undefined);
}
function clearSelected(transition) {
var _local3 = 0;
for (var _local4 in selected) {
var _local2 = selected[_local4];
if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0));
}
_local3++;
}
delete selected;
}
static var mixins = new mx.controls.listclasses.DataSelector();
static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"];
}
Symbol 540 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0
class mx.controls.listclasses.DataProvider extends Object
{
var length, splice, dispatchEvent, sortOn, reverse, sort;
function DataProvider (obj) {
super();
}
static function Initialize(obj) {
var _local4 = mixinProps;
var _local6 = _local4.length;
obj = obj.prototype;
var _local3 = 0;
while (_local3 < _local6) {
obj[_local4[_local3]] = mixins[_local4[_local3]];
_global.ASSetPropFlags(obj, _local4[_local3], 1);
_local3++;
}
mx.events.EventDispatcher.initialize(obj);
_global.ASSetPropFlags(obj, "addEventListener", 1);
_global.ASSetPropFlags(obj, "removeEventListener", 1);
_global.ASSetPropFlags(obj, "dispatchEvent", 1);
_global.ASSetPropFlags(obj, "dispatchQueue", 1);
Object.prototype.LargestID = 0;
Object.prototype.getID = function () {
if (this.__ID__ == undefined) {
this.__ID__ = Object.prototype.LargestID++;
_global.ASSetPropFlags(this, "__ID__", 1);
}
return(this.__ID__);
};
_global.ASSetPropFlags(Object.prototype, "LargestID", 1);
_global.ASSetPropFlags(Object.prototype, "getID", 1);
return(true);
}
function addItemAt(index, value) {
if (index < length) {
splice(index, 0, value);
} else if (index > length) {
trace("Cannot add an item past the end of the DataProvider");
return(undefined);
}
this[index] = value;
updateViews("addItems", index, index);
}
function addItem(value) {
addItemAt(length, value);
}
function addItemsAt(index, newItems) {
index = Math.min(length, index);
newItems.unshift(index, 0);
splice.apply(this, newItems);
newItems.splice(0, 2);
updateViews("addItems", index, (index + newItems.length) - 1);
}
function removeItemsAt(index, len) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < len) {
_local3.push(getItemID(index + _local2));
_local2++;
}
var _local6 = splice(index, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3});
}
function removeItemAt(index) {
var _local2 = this[index];
removeItemsAt(index, 1);
return(_local2);
}
function removeAll(Void) {
splice(0);
updateViews("removeItems", 0, length - 1);
}
function replaceItemAt(index, itemObj) {
if ((index < 0) || (index >= length)) {
return(undefined);
}
var _local3 = getItemID(index);
this[index] = itemObj;
this[index].__ID__ = _local3;
updateViews("updateItems", index, index);
}
function getItemAt(index) {
return(this[index]);
}
function getItemID(index) {
var _local2 = this[index];
if ((typeof(_local2) != "object") && (_local2 != undefined)) {
return(index);
}
return(_local2.getID());
}
function sortItemsBy(fieldName, order) {
if (typeof(order) == "string") {
sortOn(fieldName);
if (order.toUpperCase() == "DESC") {
reverse();
}
} else {
sortOn(fieldName, order);
}
updateViews("sort");
}
function sortItems(compareFunc, optionFlags) {
sort(compareFunc, optionFlags);
updateViews("sort");
}
function editField(index, fieldName, newData) {
this[index][fieldName] = newData;
dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:index, lastItem:index, fieldName:fieldName});
}
function getEditingData(index, fieldName) {
return(this[index][fieldName]);
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"];
static var evtDipatcher = mx.events.EventDispatcher;
static var mixins = new mx.controls.listclasses.DataProvider();
}
Symbol 541 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0
class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView
{
var invLayoutContent, rows, topRowZ, listContent, __dataProvider, __vPosition, tW, layoutX, layoutY, tH, invRowHeight, invalidate, __height, invUpdateControl, __cellRenderer, __labelFunction, __iconField, __iconFunction, getLength, baseRowZ, lastPosition, propertyTable, isSelected, wasKeySelected, changeFlag, clearSelected, selectItem, lastSelected, dispatchEvent, dragScrolling, _ymouse, scrollInterval, isPressed, onMouseUp, getSelectedIndex, enabled, tabEnabled, tabChildren, createEmptyMovieClip, border_mc;
function ScrollSelectList () {
super();
}
function layoutContent(x, y, w, h) {
delete invLayoutContent;
var _local4 = Math.ceil(h / __rowHeight);
roundUp = (h % __rowHeight) != 0;
var _local12 = _local4 - __rowCount;
if (_local12 < 0) {
var _local3 = _local4;
while (_local3 < __rowCount) {
rows[_local3].removeMovieClip();
delete rows[_local3];
_local3++;
}
topRowZ = topRowZ + _local12;
} else if (_local12 > 0) {
if (rows == undefined) {
rows = new Array();
}
var _local3 = __rowCount;
while (_local3 < _local4) {
var _local2 = (rows[_local3] = listContent.createObject(__rowRenderer, "listRow" + (topRowZ++), topRowZ, {owner:this, styleName:this, rowIndex:_local3}));
_local2._x = x;
_local2._y = Math.round((_local3 * __rowHeight) + y);
_local2.setSize(w, __rowHeight);
_local2.drawRow(__dataProvider.getItemAt(__vPosition + _local3), getStateAt(__vPosition + _local3));
_local2.lastY = _local2._y;
_local3++;
}
}
if (w != tW) {
var _local11 = ((_local12 > 0) ? (__rowCount) : (_local4));
var _local3 = 0;
while (_local3 < _local11) {
rows[_local3].setSize(w, __rowHeight);
_local3++;
}
}
if ((layoutX != x) || (layoutY != y)) {
var _local3 = 0;
while (_local3 < _local4) {
rows[_local3]._x = x;
rows[_local3]._y = Math.round((_local3 * __rowHeight) + y);
_local3++;
}
}
__rowCount = _local4;
layoutX = x;
layoutY = y;
tW = w;
tH = h;
}
function getRowHeight(Void) {
return(__rowHeight);
}
function setRowHeight(v) {
__rowHeight = v;
invRowHeight = true;
invalidate();
}
function get rowHeight() {
return(getRowHeight());
}
function set rowHeight(w) {
setRowHeight(w);
//return(rowHeight);
}
function setRowCount(v) {
__rowCount = v;
}
function getRowCount(Void) {
var _local2 = ((__rowCount == 0) ? (Math.ceil(__height / __rowHeight)) : (__rowCount));
return(_local2);
}
function get rowCount() {
return(getRowCount());
}
function set rowCount(w) {
setRowCount(w);
//return(rowCount);
}
function setEnabled(v) {
super.setEnabled(v);
invUpdateControl = true;
invalidate();
}
function setCellRenderer(cR) {
__cellRenderer = cR;
var _local2 = 0;
while (_local2 < rows.length) {
rows[_local2].setCellRenderer(true);
_local2++;
}
invUpdateControl = true;
invalidate();
}
function set cellRenderer(cR) {
setCellRenderer(cR);
//return(cellRenderer);
}
function get cellRenderer() {
return(__cellRenderer);
}
function set labelField(field) {
setLabelField(field);
//return(labelField);
}
function setLabelField(field) {
__labelField = field;
invUpdateControl = true;
invalidate();
}
function get labelField() {
return(__labelField);
}
function set labelFunction(func) {
setLabelFunction(func);
//return(labelFunction);
}
function setLabelFunction(func) {
__labelFunction = func;
invUpdateControl = true;
invalidate();
}
function get labelFunction() {
return(__labelFunction);
}
function set iconField(field) {
setIconField(field);
//return(iconField);
}
function setIconField(field) {
__iconField = field;
invUpdateControl = true;
invalidate();
}
function get iconField() {
return(__iconField);
}
function set iconFunction(func) {
setIconFunction(func);
//return(iconFunction);
}
function setIconFunction(func) {
__iconFunction = func;
invUpdateControl = true;
invalidate();
}
function get iconFunction() {
return(__iconFunction);
}
function setVPosition(pos) {
if (pos < 0) {
return(undefined);
}
if ((pos > 0) && (pos > ((getLength() - __rowCount) + roundUp))) {
return(undefined);
}
var _local8 = pos - __vPosition;
if (_local8 == 0) {
return(undefined);
}
__vPosition = pos;
var _local10 = _local8 > 0;
_local8 = Math.abs(_local8);
if (_local8 >= __rowCount) {
updateControl();
} else {
var _local4 = new Array();
var _local9 = __rowCount - _local8;
var _local12 = _local8 * __rowHeight;
var _local11 = _local9 * __rowHeight;
var _local6 = (_local10 ? 1 : -1);
var _local3 = 0;
while (_local3 < __rowCount) {
if (((_local3 < _local8) && (_local10)) || ((_local3 >= _local9) && (!_local10))) {
rows[_local3]._y = rows[_local3]._y + Math.round(_local6 * _local11);
var _local5 = _local3 + (_local6 * _local9);
var _local7 = __vPosition + _local5;
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
_local4[_local5].drawRow(__dataProvider.getItemAt(_local7), getStateAt(_local7), false);
} else {
rows[_local3]._y = rows[_local3]._y - Math.round(_local6 * _local12);
var _local5 = _local3 - (_local6 * _local8);
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
}
_local3++;
}
rows = _local4;
_local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].swapDepths(baseRowZ + _local3);
_local3++;
}
}
lastPosition = pos;
super.setVPosition(pos);
}
function setPropertiesAt(index, obj) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (propertyTable == undefined) {
propertyTable = new Object();
}
propertyTable[_local2] = obj;
rows[index - __vPosition].drawRow(__dataProvider.getItemAt(index), getStateAt(index));
}
function getPropertiesAt(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getPropertiesOf(obj) {
var _local2 = obj.getID();
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getStyle(styleProp) {
var _local2 = super.getStyle(styleProp);
var _local3 = mx.styles.StyleManager.colorNames[_local2];
if (_local3 != undefined) {
_local2 = _local3;
}
return(_local2);
}
function updateControl(Void) {
var _local2 = 0;
while (_local2 < __rowCount) {
rows[_local2].drawRow(__dataProvider.getItemAt(_local2 + __vPosition), getStateAt(_local2 + __vPosition));
_local2++;
}
delete invUpdateControl;
}
function getStateAt(index) {
return((isSelected(index) ? "selected" : "normal"));
}
function selectRow(rowIndex, transition, allowChangeEvent) {
if (!selectable) {
return(undefined);
}
var _local3 = __vPosition + rowIndex;
var _local8 = __dataProvider.getItemAt(_local3);
var _local5 = rows[rowIndex];
if (_local8 == undefined) {
return(undefined);
}
if (transition == undefined) {
transition = true;
}
if (allowChangeEvent == undefined) {
allowChangeEvent = wasKeySelected;
}
changeFlag = true;
if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
clearSelected(transition);
selectItem(_local3, true);
lastSelected = _local3;
_local5.drawRow(_local5.item, getStateAt(_local3), transition);
} else if (Key.isDown(16) && (multipleSelection)) {
if (lastSelected == undefined) {
lastSelected = _local3;
}
var _local4 = ((lastSelected < _local3) ? 1 : -1);
clearSelected(false);
var _local2 = lastSelected;
while (_local2 != _local3) {
selectItem(_local2, true);
if ((_local2 >= __vPosition) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "selected", false);
}
_local2 = _local2 + _local4;
}
selectItem(_local3, true);
_local5.drawRow(_local5.item, "selected", transition);
} else if (Key.isDown(17)) {
var _local7 = isSelected(_local3);
if ((!multipleSelection) || (wasKeySelected)) {
clearSelected(transition);
}
if (!((!multipleSelection) && (_local7))) {
selectItem(_local3, !_local7);
var _local9 = ((!_local7) ? "selected" : "normal");
_local5.drawRow(_local5.item, _local9, transition);
}
lastSelected = _local3;
}
if (allowChangeEvent) {
dispatchEvent({type:"change"});
}
delete wasKeySelected;
}
function dragScroll(Void) {
clearInterval(dragScrolling);
if (_ymouse < 0) {
setVPosition(__vPosition - 1);
selectRow(0, false);
var _local2 = Math.min((-_ymouse) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else if (_ymouse > __height) {
var _local3 = __vPosition;
setVPosition(__vPosition + 1);
if (_local3 != __vPosition) {
selectRow((__rowCount - 1) - roundUp, false);
}
var _local2 = Math.min((_ymouse - __height) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else {
dragScrolling = setInterval(this, "dragScroll", 15);
}
updateAfterEvent();
}
function __onMouseUp(Void) {
clearInterval(dragScrolling);
delete dragScrolling;
delete dragScrolling;
delete isPressed;
delete onMouseUp;
if (!selectable) {
return(undefined);
}
if (changeFlag) {
dispatchEvent({type:"change"});
}
delete changeFlag;
}
function moveSelBy(incr) {
if (!selectable) {
setVPosition(__vPosition + incr);
return(undefined);
}
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = -1;
}
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < __vPosition) || (_local3 >= (__vPosition + __rowCount))) {
setVPosition(_local3);
}
if ((_local2 >= ((__vPosition + __rowCount) - roundUp)) || (_local2 < __vPosition)) {
setVPosition(__vPosition + incr);
}
wasKeySelected = true;
selectRow(_local2 - __vPosition, false);
}
function keyDown(e) {
if (selectable) {
if (findInputText()) {
return(undefined);
}
}
if (e.code == 40) {
moveSelBy(1);
} else if (e.code == 38) {
moveSelBy(-1);
} else if (e.code == 34) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((__rowCount - 1) - roundUp);
} else if (e.code == 33) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((1 - __rowCount) + roundUp);
} else if (e.code == 36) {
moveSelBy(-__dataProvider.length);
} else if (e.code == 35) {
moveSelBy(__dataProvider.length);
}
}
function findInputText(Void) {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
findString(String.fromCharCode(_local2));
return(true);
}
}
function findString(str) {
if (__dataProvider.length == 0) {
return(undefined);
}
var _local4 = getSelectedIndex();
if (_local4 == undefined) {
_local4 = 0;
}
var _local6 = 0;
var _local3 = _local4 + 1;
while (_local3 != _local4) {
var _local2 = __dataProvider.getItemAt(_local3);
if (_local2 instanceof XMLNode) {
_local2 = _local2.attributes[__labelField];
} else if (typeof(_local2) != "string") {
_local2 = String(_local2[__labelField]);
}
_local2 = _local2.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
_local6 = _local3 - _local4;
break;
}
if (_local3 >= (getLength() - 1)) {
_local3 = -1;
}
_local3++;
}
if (_local6 != 0) {
moveSelBy(_local6);
}
}
function onRowPress(rowIndex) {
if (!enabled) {
return(undefined);
}
isPressed = true;
dragScrolling = setInterval(this, "dragScroll", 15);
onMouseUp = __onMouseUp;
if (!selectable) {
return(undefined);
}
selectRow(rowIndex);
}
function onRowRelease(rowIndex) {
}
function onRowRollOver(rowIndex) {
if (!enabled) {
return(undefined);
}
var _local2 = rows[rowIndex].item;
if (getStyle("useRollOver") && (_local2 != undefined)) {
rows[rowIndex].drawRow(_local2, "highlighted", false);
}
dispatchEvent({type:"itemRollOver", index:rowIndex + __vPosition});
}
function onRowRollOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (getStyle("useRollOver")) {
rows[rowIndex].drawRow(rows[rowIndex].item, getStateAt(rowIndex + __vPosition), false);
}
dispatchEvent({type:"itemRollOut", index:rowIndex + __vPosition});
}
function onRowDragOver(rowIndex) {
if (((!enabled) || (isPressed != true)) || (!selectable)) {
return(undefined);
}
if (dropEnabled) {
} else if (dragScrolling) {
selectRow(rowIndex, false);
} else {
onMouseUp = __onMouseUp;
onRowPress(rowIndex);
}
}
function onRowDragOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (dragEnabled) {
} else {
onRowRollOut(rowIndex);
}
}
function init(Void) {
super.init();
tabEnabled = true;
tabChildren = false;
if (__dataProvider == undefined) {
__dataProvider = new Array();
__dataProvider.addEventListener("modelChanged", this);
}
baseRowZ = (topRowZ = 10);
}
function createChildren(Void) {
super.createChildren();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
invLayoutContent = true;
invalidate();
}
function draw(Void) {
if (invRowHeight) {
delete invRowHeight;
__rowCount = 0;
listContent.removeMovieClip();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
}
if (invUpdateControl) {
updateControl();
}
border_mc.draw();
}
function invalidateStyle(propName) {
if (isRowStyle[propName]) {
invUpdateControl = true;
invalidate();
} else {
var _local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].invalidateStyle(propName);
_local3++;
}
}
super.invalidateStyle(propName);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList);
static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array);
var CONTENTDEPTH = 100;
var __hPosition = 0;
var __rowRenderer = "SelectableRow";
var __rowHeight = 22;
var __rowCount = 0;
var __labelField = "label";
var minScrollInterval = 30;
var dropEnabled = false;
var dragEnabled = false;
var className = "ScrollSelectList";
var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true};
var roundUp = 0;
var selectable = true;
var multipleSelection = false;
}
Symbol 542 MovieClip [__Packages.mx.controls.List] Frame 0
class mx.controls.List extends mx.controls.listclasses.ScrollSelectList
{
var border_mc, __labels, setDataProvider, roundUp, __get__rowCount, __dataProvider, __maxHPosition, invScrollProps, invalidate, __vPosition, getViewMetrics, setSize, __width, __rowHeight, totalWidth, totalHeight, displayWidth, __hScrollPolicy, vScroller, __hPosition, listContent, data, mask_mc, __height, __rowCount, invRowHeight, invLayoutContent, setScrollProperties, oldVWidth;
function List () {
super();
}
function setEnabled(v) {
super.setEnabled(v);
border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor");
border_mc.invalidate();
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function setVPosition(pos) {
pos = Math.min((__dataProvider.length - __get__rowCount()) + roundUp, pos);
pos = Math.max(0, pos);
super.setVPosition(pos);
}
function setHPosition(pos) {
pos = Math.max(Math.min(__maxHPosition, pos), 0);
super.setHPosition(pos);
hScroll(pos);
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
invScrollProps = true;
invalidate();
}
function setHScrollPolicy(policy) {
if ((policy.toLowerCase() == "auto") && (!autoHScrollAble)) {
return(undefined);
}
super.setHScrollPolicy(policy);
if (policy == "off") {
setHPosition(0);
setVPosition(Math.min((__dataProvider.length - __get__rowCount()) + roundUp, __vPosition));
}
}
function setRowCount(rC) {
if (isNaN(rC)) {
return(undefined);
}
var _local2 = getViewMetrics();
setSize(__width, ((__rowHeight * rC) + _local2.top) + _local2.bottom);
}
function layoutContent(x, y, tW, tH, dW, dH) {
totalWidth = tW;
totalHeight = tH;
displayWidth = dW;
var _local4 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (Math.max(tW, dW)) : (dW));
super.layoutContent(x, y, _local4, dH);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
var _local3 = eventObj.eventName;
if ((((_local3 == "addItems") || (_local3 == "removeItems")) || (_local3 == "updateAll")) || (_local3 == "filterModel")) {
invScrollProps = true;
invalidate("invScrollProps");
}
}
function onScroll(eventObj) {
var _local3 = eventObj.target;
if (_local3 == vScroller) {
setVPosition(_local3.scrollPosition);
} else {
hScroll(_local3.scrollPosition);
}
super.onScroll(eventObj);
}
function hScroll(pos) {
__hPosition = pos;
listContent._x = -pos;
}
function init(Void) {
super.init();
if (labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
__maxHPosition = 0;
}
function createChildren(Void) {
super.createChildren();
listContent.setMask(mask_mc);
border_mc.move(0, 0);
border_mc.setSize(__width, __height);
}
function getRowCount(Void) {
var _local2 = getViewMetrics();
return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount)));
}
function size(Void) {
super.size();
configureScrolling();
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
function draw(Void) {
if (invRowHeight) {
invScrollProps = true;
super.draw();
listContent.setMask(mask_mc);
invLayoutContent = true;
}
if (invScrollProps) {
configureScrolling();
delete invScrollProps;
}
if (invLayoutContent) {
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
super.draw();
}
function configureScrolling(Void) {
var _local2 = __dataProvider.length;
if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) {
setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition)));
}
var _local3 = getViewMetrics();
var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right));
if (_local2 == undefined) {
_local2 = 0;
}
setScrollProperties(_local4, 1, _local2, __rowHeight);
if (oldVWidth != _local4) {
invLayoutContent = true;
}
oldVWidth = _local4;
}
static var symbolOwner = mx.controls.List;
static var symbolName = "List";
var className = "List";
static var version = "2.0.2.126";
var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1};
var scrollDepth = 1;
var __vScrollPolicy = "on";
var autoHScrollAble = false;
}
Symbol 543 MovieClip [__Packages.mx.controls.treeclasses.TreeDataProvider] Frame 0
class mx.controls.treeclasses.TreeDataProvider extends Object
{
var childNodes, appendChild, insertBefore, parentNode, removeNode;
function TreeDataProvider () {
super();
}
static function Initialize(obj) {
obj = obj.prototype;
if (obj.addTreeNode != undefined) {
return(false);
}
var _local4 = mixinProps;
var _local5 = _local4.length;
var _local2 = 0;
while (_local2 < _local5) {
obj[_local4[_local2]] = mixins[_local4[_local2]];
_global.ASSetPropFlags(obj, _local4[_local2], 1);
_local2++;
}
mx.events.EventDispatcher.initialize(obj);
_global.ASSetPropFlags(obj, "addEventListener", 1);
_global.ASSetPropFlags(obj, "removeEventListener", 1);
_global.ASSetPropFlags(obj, "dispatchEvent", 1);
_global.ASSetPropFlags(obj, "dispatchQueue", 1);
_global.ASSetPropFlags(obj, "createEvent", 1);
return(true);
}
function createProp(obj, propName, setter) {
var p = (propName.charAt(0).toUpperCase() + propName.substr(1));
var _local2 = null;
var _local4 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local2 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(propName, _local4, _local2);
}
static function convertToNode(tag, arg, data) {
if (typeof(arg) == "string") {
var _local2 = blankXML.createElement(tag);
_local2.attributes.label = arg;
if (data != undefined) {
_local2.attributes.data = data;
}
return(_local2);
}
if (arg instanceof XML) {
return(arg.firstChild.cloneNode(true));
}
if (arg instanceof XMLNode) {
return(arg);
}
if (typeof(arg) == "object") {
var _local2 = blankXML.createElement(tag);
for (var _local3 in arg) {
_local2.attributes[_local3] = arg[_local3];
}
if (data != undefined) {
_local2.attributes.data = data;
}
return(_local2);
}
}
function addTreeNode(arg, data) {
return(addTreeNodeAt(childNodes.length, arg, data));
}
function addTreeNodeAt(index, arg, data) {
if (index > childNodes.length) {
return(undefined);
}
var _local2;
if (arg instanceof XMLNode) {
_local2 = arg.removeTreeNode();
} else {
_local2 = convertToNode("node", arg, data);
}
if (index >= childNodes.length) {
appendChild(_local2);
} else {
insertBefore(_local2, childNodes[index]);
}
updateViews({eventName:"addNode", node:_local2, parentNode:this, index:index});
return(_local2);
}
function getTreeNodeAt(index) {
return(childNodes[index]);
}
function removeTreeNodeAt(index) {
var _local2 = childNodes[index];
_local2.removeNode();
updateViews({eventName:"removeNode", node:_local2, parentNode:this, index:index});
return(_local2);
}
function removeTreeNode() {
var _local4 = parentNode;
var _local6;
var _local3 = 0;
var _local2 = parentNode.firstChild;
while (_local2 != undefined) {
if (_local2 == this) {
_local6 = _local3;
break;
}
_local3++;
_local2 = _local2.nextSibling;
}
if (_local6 != undefined) {
var _local8 = getRootNode();
removeNode();
_local4.updateViews({eventName:"removeNode", node:this, parentNode:_local4, index:_local6});
}
return(this);
}
function removeAll() {
while (childNodes.length > 0) {
removeTreeNodeAt(childNodes.length - 1);
}
var _local3 = getRootNode();
updateViews({eventName:"updateTree"});
}
function getRootNode() {
var _local2 = this;
while ((_local2.parentNode != undefined) && (_local2.isTreeRoot == undefined)) {
_local2 = _local2.parentNode;
}
return(_local2);
}
function updateViews(eventObj) {
var _local2 = this;
eventObj.target = this;
eventObj.type = "modelChanged";
while (_local2 != undefined) {
if (_local2.isTreeRoot || (_local2.parentNode == undefined)) {
_local2.dispatchEvent(eventObj);
}
_local2 = _local2.parentNode;
}
}
static var mixinProps = ["addTreeNode", "addTreeNodeAt", "getTreeNodeAt", "removeTreeNodeAt", "getRootNode", "getDepth", "removeAll", "removeTreeNode", "updateViews"];
static var evtDipatcher = mx.events.EventDispatcher;
static var mixins = new mx.controls.treeclasses.TreeDataProvider();
static var blankXML = new XML();
static var largestID = 0;
}
Symbol 544 MovieClip [__Packages.mx.controls.Tree] Frame 0
class mx.controls.Tree extends mx.controls.List
{
var nodeIcons, invUpdateControl, invalidate, branchNodes, treeDataProvider, openNodes, nodeList, rowIndex, __vPosition, __rowCount, getStyle, tween, opening, __rowHeight, rows, maskList, rowList, __viewMetrics, __hScrollPolicy, __width, __maxHPosition, attachMovie, listContent, topRowZ, __dataProvider, getStateAt, eventAfterTween, invScrollProps, eventPending, vScroller, updateControl, setSelectedIndex, getSelectedItem, setSelectedIndices, getSelectedItems, nodeIndices, dispatchEvent;
function Tree () {
super();
}
function setIcon(node, iconID, iconID2) {
if (nodeIcons == undefined) {
nodeIcons = new Object();
}
if (iconID2 == undefined) {
iconID2 = iconID;
}
var _local3 = (nodeIcons[node.getID()] = {iconID:iconID, iconID2:iconID2});
invUpdateControl = true;
invalidate();
}
function getIsBranch(node) {
return(node.hasChildNodes() || (branchNodes[node.getID()] != undefined));
}
function setIsBranch(node, branch) {
if (branchNodes == undefined) {
branchNodes = new Object();
}
if (!branch) {
delete branchNodes[node.getID()];
} else {
branchNodes[node.getID()] = true;
}
if (isNodeVisible(node)) {
invUpdateControl = true;
invalidate();
}
}
function getNodeDepth(node) {
var _local3 = 0;
var _local2 = node;
while ((_local2.parentNode != undefined) && (_local2 != treeDataProvider)) {
_local3++;
_local2 = _local2.parentNode;
}
return(_local3);
}
function getIsOpen(node) {
return(openNodes[node.getID()] == true);
}
function setIsOpen(node, open, animate, fireEvent) {
if (((!getIsBranch(node)) || (getIsOpen(node) == open)) || (isOpening)) {
return(undefined);
}
if (open) {
openNodes[node.getID()] = open;
}
if (isNodeVisible(node)) {
nodeList = getDisplayList(node, !open);
rowIndex = (getDisplayIndex(node) + 1) - __vPosition;
var _local6 = Math.min(nodeList.length, __rowCount - rowIndex);
var _local13 = getStyle("openDuration");
if ((((animate && (rowIndex < __rowCount)) && (_local6 > 0)) && (_local6 < 20)) && (_local13 != 0)) {
tween.endTween();
opening = open;
isOpening = true;
var _local7 = _local6 * __rowHeight;
var _local15 = rowIndex;
while (_local15 < __rowCount) {
rows[_local15].__lastY = rows[_local15]._y;
_local15++;
}
maskList = new Array();
rowList = new Array();
var _local4 = __viewMetrics;
var _local12 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (__width + __maxHPosition) : ((__width - _local4.left) - _local4.right));
_local15 = 0;
while (_local15 < _local6) {
var _local3 = (maskList[_local15] = attachMovie("BoundingBox", "openMask" + _local15, 2001 + _local15));
_local3._width = (__width - _local4.left) - _local4.right;
_local3._x = _local4.left;
_local3._height = _local7;
_local3._y = rows[rowIndex]._y;
var _local2 = (rowList[_local15] = listContent.createObject(__rowRenderer, "treeRow" + (topRowZ++), topRowZ, {owner:this, styleName:this}));
_local2._x = _local4.left;
_local2.setSize(_local12, __rowHeight);
if (open) {
_local2.drawRow(nodeList[_local15], "normal");
_local2._y = (rows[rowIndex]._y - _local7) + (__rowHeight * _local15);
_local2.setMask(_local3);
} else {
var _local5 = Math.max((((__vPosition + __rowCount) + _local15) + nodeList.length) - _local6, rowIndex + nodeList.length);
_local2.drawRow(__dataProvider.getItemAt(_local5), getStateAt(_local5));
_local2._y = rows[__rowCount - 1]._y + ((_local15 + 1) * __rowHeight);
rows[rowIndex + _local15].setMask(_local3);
}
_local2.__lastY = _local2._y;
_local15++;
}
_local13 = _local13 * Math.max(_local6 / 5, 1);
if (fireEvent) {
eventAfterTween = node;
}
tween = new mx.effects.Tween(this, 0, (open ? (_local7) : (-1 * _local7)), _local13, 5);
var _local16 = getStyle("openEasing");
if (_local16 != undefined) {
tween.easingEquation = _local16;
}
} else {
isOpening = false;
if (open) {
addItemsAt(getDisplayIndex(node) + 1, nodeList);
} else {
__dataProvider.removeItemsAt(getDisplayIndex(node) + 1, nodeList.length);
}
invScrollProps = true;
if (fireEvent) {
eventPending = node;
}
invalidate();
}
}
if (!open) {
openNodes[node.getID()] = open;
}
var _local15 = getDisplayIndex(node);
var _local14 = rows[_local15 - __vPosition];
_local14.drawRow(_local14.item, getStateAt(_local15));
}
function onTweenUpdate(val) {
var _local2 = rowIndex;
while (_local2 < __rowCount) {
rows[_local2]._y = rows[_local2].__lastY + val;
_local2++;
}
_local2 = 0;
while (_local2 < rowList.length) {
rowList[_local2]._y = rowList[_local2].__lastY + val;
_local2++;
}
}
function onTweenEnd(val) {
var _local2 = rowIndex;
while (_local2 < __rowCount) {
rows[_local2]._y = rows[_local2].__lastY + val;
delete rows[_local2].__lastY;
if ((_local2 >= (__rowCount - rowList.length)) && (opening)) {
rows[_local2].removeMovieClip();
}
_local2++;
}
_local2 = 0;
while (_local2 < rowList.length) {
rowList[_local2]._y = rowList[_local2].__lastY + val;
if (opening) {
rowList[_local2].setMask(undefined);
} else {
rows[rowIndex + _local2].removeMovieClip();
}
maskList[_local2].removeMovieClip();
_local2++;
}
isOpening = false;
vScroller.__set__scrollPosition(__vPosition);
if (opening) {
var _local4 = rowIndex + rowList.length;
_local2 = __rowCount - 1;
while (_local2 >= _local4) {
rows[_local2] = rows[_local2 - rowList.length];
rows[_local2].rowIndex = _local2;
_local2--;
}
_local2 = rowIndex;
while (_local2 < _local4) {
rows[_local2] = rowList[_local2 - rowIndex];
rows[_local2].rowIndex = _local2;
_local2++;
}
addItemsAt(rowIndex + __vPosition, nodeList);
} else {
var _local3 = __rowCount - rowList.length;
_local2 = rowIndex;
while (_local2 < _local3) {
rows[_local2] = rows[_local2 + rowList.length];
rows[_local2].rowIndex = _local2;
_local2++;
}
_local2 = _local3;
while (_local2 < __rowCount) {
rows[_local2] = rowList[_local2 - _local3];
rows[_local2].rowIndex = _local2;
_local2++;
}
__dataProvider.removeItemsAt(rowIndex + __vPosition, nodeList.length);
}
if (eventAfterTween != undefined) {
eventPending = eventAfterTween;
invalidate();
delete eventAfterTween;
}
delete tween;
delete invUpdateControl;
}
function size(Void) {
tween.endTween();
super.size();
}
function setVPosition(pos) {
if (isOpening) {
return(undefined);
}
super.setVPosition(pos);
}
function onScroll(evt) {
if (isOpening) {
return(undefined);
}
super.onScroll(evt);
}
function addItemsAt(index, arr) {
var _local4 = __dataProvider.slice(0, index);
var _local3 = __dataProvider.slice(index);
__dataProvider = _local4.concat(arr, _local3);
__dataProvider.addEventListener("modelChanged", this);
modelChanged({eventName:"addItems", firstItem:index, lastItem:(index + arr.length) - 1});
}
function setDataProvider(dP) {
if (treeDataProvider != undefined) {
treeDataProvider.removeEventListener(this);
}
if (typeof(dP) == "string") {
dP = new XML(dP);
}
treeDataProvider = dP;
treeDataProvider.isTreeRoot = true;
setIsBranch(treeDataProvider, true);
setIsOpen(treeDataProvider, true);
setDisplayIndex(treeDataProvider, -1);
treeDataProvider.addEventListener("modelChanged", this);
modelChanged({eventName:"updateTree"});
}
function getDataProvider() {
return(treeDataProvider);
}
function refresh() {
updateControl();
}
function addTreeNode(label, data) {
if (treeDataProvider == undefined) {
setDataProvider(new XML());
}
return(treeDataProvider.addTreeNode(label, data));
}
function addTreeNodeAt(index, label, data) {
if (treeDataProvider == undefined) {
setDataProvider(new XML());
}
return(treeDataProvider.addTreeNodeAt(index, label, data));
}
function getTreeNodeAt(index) {
return(treeDataProvider.getTreeNodeAt(index));
}
function removeTreeNodeAt(index) {
return(treeDataProvider.removeTreeNodeAt(index));
}
function removeAll() {
return(treeDataProvider.removeAll());
}
function getNodeDisplayedAt(index) {
return(__dataProvider.getItemAt(index));
}
function modelChanged(eventObj) {
var _local6 = eventObj.eventName;
if (_local6 == "updateTree") {
__dataProvider = getDisplayList(treeDataProvider);
__dataProvider.addEventListener("modelChanged", this);
super.modelChanged({eventName:"updateAll"});
} else if (_local6 == "addNode") {
var _local8 = eventObj.node;
if (isNodeVisible(_local8)) {
if (_local8.nextSibling != undefined) {
setDisplayIndex(_local8, getDisplayIndex(_local8.nextSibling));
} else if (_local8.previousSibling != undefined) {
var _local7 = getDisplayList(_local8.previousSibling);
if (_local7.length > 0) {
setDisplayIndex(_local8, getDisplayIndex(_local7.pop()) + 1);
} else {
setDisplayIndex(_local8, getDisplayIndex(_local8.previousSibling) + 1);
}
} else {
setDisplayIndex(_local8, getDisplayIndex(_local8.parentNode) + 1);
}
var _local10 = getDisplayList(_local8);
_local10.unshift(_local8);
addItemsAt(getDisplayIndex(_local8), _local10);
} else {
invUpdateControl = true;
invalidate();
}
} else if (_local6 == "removeNode") {
var _local8 = eventObj.node;
var _local9 = getDisplayIndex(_local8);
if (_local9 != undefined) {
var _local11 = getDisplayList(_local8);
__dataProvider.removeItemsAt(_local9, _local11.length + 1);
}
} else if (_local6 == "addItems") {
super.modelChanged(eventObj);
var _local5 = __dataProvider;
var _local3 = eventObj.firstItem;
while (_local3 < _local5.length) {
setDisplayIndex(_local5[_local3], _local3);
_local3++;
}
} else if (_local6 == "removeItems") {
var _local5 = __dataProvider;
var _local3 = eventObj.firstItem;
while (_local3 < _local5.length) {
setDisplayIndex(_local5[_local3], _local3);
_local3++;
}
super.modelChanged(eventObj);
} else {
super.modelChanged(eventObj);
}
}
function isNodeVisible(node) {
return((getDisplayIndex(node) != undefined) || ((getDisplayIndex(node.parentNode) != undefined) && (getIsOpen(node.parentNode))));
}
function getFirstVisibleNode() {
return(__dataProvider.getItemAt(__vPosition));
}
function setFirstVisibleNode(node) {
var _local2 = getDisplayIndex(node);
if (_local2 == undefined) {
return(undefined);
}
setVPosition(_local2);
}
function set firstVisibleNode(node) {
setFirstVisibleNode(node);
//return(firstVisibleNode);
}
function get firstVisibleNode() {
return(getFirstVisibleNode());
}
function set selectedNode(node) {
var _local2 = getDisplayIndex(node);
if (_local2 >= 0) {
setSelectedIndex(_local2);
}
//return(selectedNode);
}
function get selectedNode() {
return(getSelectedItem());
}
function set selectedNodes(nodeArray) {
var _local5 = new Array();
var _local3;
var _local2 = 0;
while (_local2 < nodeArray.length) {
_local3 = getDisplayIndex(nodeArray[_local2]);
if (_local3 != undefined) {
_local5.push(_local3);
}
_local2++;
}
setSelectedIndices(_local5);
//return(selectedNodes);
}
function get selectedNodes() {
return(getSelectedItems());
}
function getDisplayList(node, removed) {
var _local5 = new Array();
if ((!isNodeVisible(node)) || (!getIsOpen(node))) {
return(_local5);
}
var _local6 = getDisplayIndex(node);
var _local3 = new Array();
var _local2 = node.firstChild;
var _local4 = _local2 == undefined;
while (!_local4) {
if (removed) {
setDisplayIndex(_local2, undefined);
} else {
_local6++;
setDisplayIndex(_local2, _local6);
}
_local5.push(_local2);
if ((_local2.childNodes.length > 0) && (getIsOpen(_local2))) {
if (_local2.nextSibling != undefined) {
_local3.push(_local2.nextSibling);
}
_local2 = _local2.firstChild;
} else if (_local2.nextSibling != undefined) {
_local2 = _local2.nextSibling;
} else if (_local3.length == 0) {
_local4 = true;
} else {
_local2 = _local3.pop();
}
}
return(_local5);
}
function getDisplayIndex(node) {
return(nodeIndices[node.getID()]);
}
function setDisplayIndex(node, UID) {
nodeIndices[node.getID()] = UID;
}
function keyDown(e) {
if (isOpening) {
return(undefined);
}
var _local3 = selectedNode;
if (e.ctrlKey) {
super.keyDown(e);
} else if (e.code == 32) {
if (getIsBranch(_local3)) {
var _local6 = !getIsOpen(_local3);
setIsOpen(_local3, _local6, true, true);
}
} else if (e.code == 37) {
if (getIsOpen(_local3)) {
setIsOpen(_local3, false, true, true);
} else {
selectedNode = (_local3.parentNode);
dispatchEvent({type:"change"});
var _local5 = getDisplayIndex(selectedNode);
if (_local5 < __vPosition) {
setVPosition(_local5);
}
}
} else if (e.code == 39) {
if (getIsBranch(_local3)) {
if (getIsOpen(_local3)) {
selectedNode = (_local3.firstChild);
dispatchEvent({type:"change"});
} else {
setIsOpen(_local3, true, true, true);
}
}
} else {
super.keyDown(e);
}
}
function init() {
super.init();
openNodes = new Object();
nodeIndices = new Object();
}
function invalidateStyle(propName) {
if (isNewRowStyle[propName]) {
invUpdateControl = true;
invalidate();
}
super.invalidateStyle(propName);
}
function layoutContent(x, y, tW, tH, dW, dH) {
var _local5 = 0;
var _local6 = 0;
var _local3 = 0;
while (_local3 < rows.length) {
var _local4 = rows[_local3].getDepth();
if (_local4 > _local5) {
_local5 = _local4;
_local6 = _local3;
}
_local3++;
}
var _local7 = (_local5 + rows.length) - _local6;
if (topRowZ < _local7) {
topRowZ = _local7;
}
super.layoutContent(x, y, tW, tH, dW, dH);
}
function draw(Void) {
super.draw();
if (eventPending != undefined) {
dispatchEvent({type:(getIsOpen(eventPending) ? "nodeOpen" : "nodeClose"), node:eventPending});
delete eventPending;
}
}
static var symbolName = "Tree";
static var symbolOwner = mx.controls.Tree;
var className = "Tree";
static var version = "2.0.2.126";
static var mixIt2 = mx.controls.treeclasses.TreeDataProvider.Initialize(XMLNode);
var isNewRowStyle = {depthColors:true, indentation:true, disclosureOpenIcon:true, disclosureClosedIcon:true, folderOpenIcon:true, folderClosedIcon:true, defaultLeafIcon:true};
var __rowRenderer = "TreeRow";
var isOpening = false;
var minScrollInterval = 50;
}
Symbol 545 MovieClip [__Packages.com.techsmith.camtasia.components.TSTree] Frame 0
class com.techsmith.camtasia.components.TSTree extends mx.controls.Tree
{
var enabled, isPressed, dragScrolling, onMouseUp, __onMouseUp, selectable, dispatchEvent, getSelectedItem, getSelectedIndex, __vPosition, __dataProvider, rows, wasKeySelected, changeFlag, multipleSelection, clearSelected, selectItem, lastSelected, getStateAt, __rowCount, isSelected;
function TSTree () {
super();
}
function onRowPress(rowIndex) {
if (!enabled) {
return(undefined);
}
isPressed = true;
dragScrolling = _global.setInterval(this, "dragScroll", 15);
onMouseUp = __onMouseUp;
if (!selectable) {
return(undefined);
}
selectRow(rowIndex);
dispatchEvent({target:this, type:"rowPress", index:getSelectedIndex(), time:getSelectedItem().attributes.time});
}
function selectRow(rowIndex, transition, allowChangeEvent) {
if (!selectable) {
return(undefined);
}
var _local5 = __vPosition + rowIndex;
var _local6 = __dataProvider.getItemAt(_local5);
var _local7 = rows[rowIndex];
if (_local6 == undefined) {
return(undefined);
}
if (transition == undefined) {
transition = true;
}
if (allowChangeEvent == undefined) {
allowChangeEvent = wasKeySelected;
changeFlag = true;
}
if (((!multipleSelection) && (!Key.isDown(Key.CONTROL))) || ((!Key.isDown(Key.SHIFT)) && (!Key.isDown(Key.CONTROL)))) {
clearSelected(transition);
selectItem(_local5, true);
lastSelected = _local5;
_local7.drawRow(_local7.item, getStateAt(_local5), transition);
} else if (Key.isDown(Key.SHIFT) && (multipleSelection)) {
if (lastSelected == undefined) {
lastSelected = _local5;
}
var _local8 = ((lastSelected < _local5) ? 1 : -1);
clearSelected(false);
var _local9 = lastSelected;
for ( ; _local9 != _local5 ; _local9 = _local9 + _local8) {
selectItem(_local9, true);
if ((_local9 >= __vPosition) && (_local9 < (__vPosition + __rowCount))) {
rows[_local9 - __vPosition].drawRow(rows[_local9 - __vPosition].item, "selected", false);
}
}
selectItem(_local5, true);
_local7.drawRow(_local7.item, "selected", transition);
} else if (Key.isDown(Key.CONTROL)) {
var _local10 = isSelected(_local5);
if ((!multipleSelection) || (wasKeySelected)) {
clearSelected(transition);
}
if (!((!multipleSelection) && (_local10))) {
selectItem(_local5, !_local10);
var _local11 = ((!_local10) ? "selected" : "normal");
_local7.drawRow(_local7.item, _local11, transition);
}
lastSelected = _local5;
}
if (allowChangeEvent) {
dispatchEvent({target:this, type:"rowPress", index:getSelectedIndex(), time:getSelectedItem().attributes.time});
}
delete wasKeySelected;
}
static var symbolName = "TSTree";
static var symbolOwner = com.techsmith.camtasia.components.TSTree;
var className = "TSTree";
}
Symbol 556 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local8 = false;
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
_local8 = true;
}
if (_local8) {
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 557 MovieClip [__Packages.mx.effects.Tween] Frame 0
class mx.effects.Tween extends Object
{
static var IntervalToken;
var arrayMode, listener, initVal, endVal, startTime, updateFunc, endFunc, ID;
function Tween (listenerObj, init, end, dur) {
super();
if (listenerObj == undefined) {
return;
}
if (typeof(init) != "number") {
arrayMode = true;
}
listener = listenerObj;
initVal = init;
endVal = end;
if (dur != undefined) {
duration = dur;
}
startTime = getTimer();
if (duration == 0) {
endTween();
} else {
AddTween(this);
}
}
static function AddTween(tween) {
tween.ID = ActiveTweens.length;
ActiveTweens.push(tween);
if (IntervalToken == undefined) {
Dispatcher.DispatchTweens = DispatchTweens;
IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval);
}
}
static function RemoveTweenAt(index) {
var _local2 = ActiveTweens;
if (((index >= _local2.length) || (index < 0)) || (index == undefined)) {
return(undefined);
}
_local2.splice(index, 1);
var _local4 = _local2.length;
var _local1 = index;
while (_local1 < _local4) {
_local2[_local1].ID--;
_local1++;
}
if (_local4 == 0) {
clearInterval(IntervalToken);
delete IntervalToken;
}
}
static function DispatchTweens(Void) {
var _local2 = ActiveTweens;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
updateAfterEvent();
}
function doInterval() {
var _local2 = getTimer() - startTime;
var _local3 = getCurVal(_local2);
if (_local2 >= duration) {
endTween();
} else if (updateFunc != undefined) {
listener[updateFunc](_local3);
} else {
listener.onTweenUpdate(_local3);
}
}
function getCurVal(curTime) {
if (arrayMode) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < initVal.length) {
_local3[_local2] = easingEquation(curTime, initVal[_local2], endVal[_local2] - initVal[_local2], duration);
_local2++;
}
return(_local3);
}
return(easingEquation(curTime, initVal, endVal - initVal, duration));
}
function endTween() {
if (endFunc != undefined) {
listener[endFunc](endVal);
} else {
listener.onTweenEnd(endVal);
}
RemoveTweenAt(ID);
}
function setTweenHandlers(update, end) {
updateFunc = update;
endFunc = end;
}
function easingEquation(t, b, c, d) {
return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b);
}
static var ActiveTweens = new Array();
static var Interval = 10;
static var Dispatcher = new Object();
var duration = 3000;
}
Symbol 558 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0
class mx.controls.listclasses.SelectableRow extends mx.core.UIComponent
{
var __height, cell, owner, rowIndex, icon_mc, createObject, __width, backGround, highlight, highlightColor, createLabel, createClassObject, listOwner, tabEnabled, item, createEmptyMovieClip, drawRect, isChangedToSelected, bGTween, grandOwner;
function SelectableRow () {
super();
}
function setValue(itmObj, state) {
var _local7 = __height;
var _local2 = cell;
var _local5 = owner;
var _local8 = itemToString(itmObj);
if (_local2.getValue() != _local8) {
_local2.setValue(_local8, itmObj, state);
}
var _local4 = _local5.getPropertiesAt(rowIndex + _local5.__vPosition).icon;
if (_local4 == undefined) {
_local4 = _local5.__iconFunction(itmObj);
if (_local4 == undefined) {
_local4 = itmObj[_local5.__iconField];
if (_local4 == undefined) {
_local4 = _local5.getStyle("defaultIcon");
}
}
}
var _local3 = icon_mc;
if ((_local4 != undefined) && (itmObj != undefined)) {
_local3 = createObject(_local4, "icon_mc", 20);
_local3._x = 2;
_local3._y = (_local7 - _local3._height) / 2;
_local2._x = 4 + _local3._width;
} else {
_local3.removeMovieClip();
_local2._x = 2;
}
var _local9 = ((_local3 == undefined) ? 0 : (_local3._width));
_local2.setSize(__width - _local9, Math.min(_local7, _local2.getPreferredHeight()));
_local2._y = (_local7 - _local2._height) / 2;
}
function size(Void) {
var _local3 = backGround;
var _local2 = cell;
var _local4 = __height;
var _local5 = __width;
var _local6 = ((icon_mc == undefined) ? 0 : (icon_mc._width));
_local2.setSize(_local5 - _local6, Math.min(_local4, _local2.getPreferredHeight()));
_local2._y = (_local4 - _local2._height) / 2;
icon_mc._y = (_local4 - icon_mc._height) / 2;
_local3._x = 0;
_local3._width = _local5;
_local3._height = _local4;
drawRowFill(_local3, normalColor);
drawRowFill(highlight, highlightColor);
}
function setCellRenderer(forceSizing) {
var _local3 = owner.__cellRenderer;
var _local4;
if (cell != undefined) {
_local4 = cell._x;
cell.removeMovieClip();
cell.removeTextField();
}
var _local2;
if (_local3 == undefined) {
_local2 = (cell = createLabel("cll", 0, {styleName:this}));
_local2.styleName = owner;
_local2.selectable = false;
_local2.tabEnabled = false;
_local2.background = false;
_local2.border = false;
} else if (typeof(_local3) == "string") {
_local2 = (cell = createObject(_local3, "cll", 0, {styleName:this}));
} else {
_local2 = (cell = createClassObject(_local3, "cll", 0, {styleName:this}));
}
_local2.owner = this;
_local2.listOwner = owner;
_local2.getCellIndex = getCellIndex;
_local2.getDataLabel = getDataLabel;
if (_local4 != undefined) {
_local2._x = _local4;
}
if (forceSizing) {
size();
}
}
function getCellIndex(Void) {
return({columnIndex:0, itemIndex:owner.rowIndex + listOwner.__vPosition});
}
function getDataLabel() {
return(listOwner.labelField);
}
function init(Void) {
super.init();
tabEnabled = false;
}
function createChildren(Void) {
setCellRenderer(false);
setupBG();
setState(state, false);
}
function drawRow(itmObj, state, transition) {
item = itmObj;
setState(state, transition);
setValue(itmObj, state, transition);
}
function itemToString(itmObj) {
if (itmObj == undefined) {
return(" ");
}
var _local2 = owner.__labelFunction(itmObj);
if (_local2 == undefined) {
_local2 = ((itmObj instanceof XMLNode) ? (itmObj.attributes[owner.__labelField]) : (itmObj[owner.__labelField]));
if (_local2 == undefined) {
_local2 = " ";
if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
}
}
return(_local2);
}
function setupBG(Void) {
var _local2 = (backGround = createEmptyMovieClip("bG_mc", LOWEST_DEPTH));
drawRowFill(_local2, normalColor);
highlight = createEmptyMovieClip("tran_mc", LOWEST_DEPTH + 10);
_local2.owner = this;
_local2.grandOwner = owner;
_local2.onPress = bGOnPress;
_local2.onRelease = bGOnRelease;
_local2.onRollOver = bGOnRollOver;
_local2.onRollOut = bGOnRollOut;
_local2.onDragOver = bGOnDragOver;
_local2.onDragOut = bGOnDragOut;
_local2.useHandCursor = false;
_local2.trackAsMenu = true;
_local2.drawRect = drawRect;
highlight.drawRect = drawRect;
}
function drawRowFill(mc, newClr) {
mc.clear();
mc.beginFill(newClr);
mc.drawRect(1, 0, __width, __height);
mc.endFill();
mc._width = __width;
mc._height = __height;
}
function setState(newState, transition) {
var _local2 = highlight;
var _local8 = backGround;
var _local4 = __height;
var _local3 = owner;
if (!_local3.enabled) {
if ((newState == "selected") || (state == "selected")) {
highlightColor = _local3.getStyle("selectionDisabledColor");
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local2._y = 0;
_local2._height = _local4;
} else {
_local2._visible = false;
normalColor = _local3.getStyle("backgroundDisabledColor");
drawRowFill(_local8, normalColor);
}
cell.__enabled = false;
cell.setColor(_local3.getStyle("disabledColor"));
} else {
cell.__enabled = true;
if (transition && ((newState == state) || ((newState == "highlighted") && (state == "selected")))) {
isChangedToSelected = true;
return(undefined);
}
var _local6 = _local3.getStyle("selectionDuration");
var _local7 = 0;
if (isChangedToSelected && (newState == "selected")) {
transition = false;
}
var _local10 = transition && (_local6 != 0);
if (newState == "normal") {
_local7 = _local3.getStyle("color");
normalColor = getNormalColor();
drawRowFill(_local8, normalColor);
if (_local10) {
_local6 = _local6 / 2;
_local2._height = _local4;
_local2._width = __width;
_local2._y = 0;
bGTween = new mx.effects.Tween(this, _local4 + 2, _local4 * 0.2, _local6, 5);
} else {
_local2._visible = false;
}
delete isChangedToSelected;
} else {
highlightColor = _local3.getStyle(((newState == "highlighted") ? "rollOverColor" : "selectionColor"));
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local7 = _local3.getStyle(((newState == "highlighted") ? "textRollOverColor" : "textSelectedColor"));
if (_local10) {
_local2._height = _local4 * 0.5;
_local2._y = (_local4 - _local2._height) / 2;
bGTween = new mx.effects.Tween(this, _local2._height, _local4 + 2, _local6, 5);
var _local9 = _local3.getStyle("selectionEasing");
if (_local9 != undefined) {
bGTween.easingEquation = _local9;
}
} else {
_local2._y = 0;
_local2._height = _local4;
}
}
cell.setColor(_local7);
}
state = newState;
}
function onTweenUpdate(val) {
highlight._height = val;
highlight._y = (__height - val) / 2;
}
function onTweenEnd(val) {
onTweenUpdate(val);
highlight._visible = state != "normal";
}
function getNormalColor(Void) {
var _local3;
var _local2 = owner;
if (!owner.enabled) {
_local3 = _local2.getStyle("backgroundDisabledColor");
} else {
var _local5 = rowIndex + _local2.__vPosition;
if (rowIndex == undefined) {
_local3 = _local2.getPropertiesOf(item).backgroundColor;
} else {
_local3 = _local2.getPropertiesAt(_local5).backgroundColor;
}
if (_local3 == undefined) {
var _local4 = _local2.getStyle("alternatingRowColors");
if (_local4 == undefined) {
_local3 = _local2.getStyle("backgroundColor");
} else {
_local3 = _local4[_local5 % _local4.length];
}
}
}
return(_local3);
}
function invalidateStyle(propName) {
cell.invalidateStyle(propName);
super.invalidateStyle(propName);
}
function bGOnPress(Void) {
grandOwner.pressFocus();
grandOwner.onRowPress(owner.rowIndex);
}
function bGOnRelease(Void) {
grandOwner.releaseFocus();
grandOwner.onRowRelease(owner.rowIndex);
}
function bGOnRollOver(Void) {
grandOwner.onRowRollOver(owner.rowIndex);
}
function bGOnRollOut(Void) {
grandOwner.onRowRollOut(owner.rowIndex);
}
function bGOnDragOver(Void) {
grandOwner.onRowDragOver(owner.rowIndex);
}
function bGOnDragOut(Void) {
grandOwner.onRowDragOut(owner.rowIndex);
}
static var LOWEST_DEPTH = -16384;
var state = "normal";
var disabledColor = 15263976;
var normalColor = 16777215;
}
Symbol 559 MovieClip [__Packages.mx.controls.treeclasses.TreeRow] Frame 0
class mx.controls.treeclasses.TreeRow extends mx.controls.listclasses.SelectableRow
{
var node, owner, nodeIcon, disclosure, open, getStyle, createObject, cell, item, rowIndex, __height, __get__height, __width, _parent;
function TreeRow () {
super();
}
function setValue(item, state) {
node = item;
var _local4 = owner.getIsBranch(node);
super.setValue(node, state);
if (node == undefined) {
disclosure._visible = (nodeIcon._visible = false);
return(undefined);
}
nodeIcon._visible = true;
open = owner.getIsOpen(node);
var _local6 = (owner.getNodeDepth(node) - 1) * getStyle("indentation");
var _local5 = owner.getStyle((open ? "disclosureOpenIcon" : "disclosureClosedIcon"));
disclosure = createObject(_local5, "disclosure", 3);
disclosure.onPress = disclosurePress;
disclosure.useHandCursor = false;
disclosure._visible = _local4;
disclosure._x = _local6 + 4;
var _local3 = owner.nodeIcons[node.getID()][(open ? "iconID2" : "iconID")];
if (_local3 == undefined) {
_local3 = owner.__iconFunction(node);
}
if (_local4) {
if (_local3 == undefined) {
_local3 = owner.getStyle((open ? "folderOpenIcon" : "folderClosedIcon"));
}
} else {
if (_local3 == undefined) {
_local3 = node.attributes[owner.iconField];
}
if (_local3 == undefined) {
_local3 = owner.getStyle("defaultLeafIcon");
}
}
nodeIcon.removeMovieClip();
nodeIcon = createObject(_local3, "nodeIcon", 20);
nodeIcon._x = (disclosure._x + disclosure._width) + 2;
cell._x = (nodeIcon._x + nodeIcon._width) + 2;
size();
}
function getNormalColor() {
node = item;
var _local6 = super.getNormalColor();
var _local7 = rowIndex + owner.__vPosition;
var _local5 = owner.getColorAt(_local7);
if (_local5 == undefined) {
var _local4 = owner.getStyle("depthColors");
if (_local4 == undefined) {
return(_local6);
}
var _local3 = owner.getNodeDepth(node);
if (_local3 == undefined) {
_local3 = 1;
}
_local5 = _local4[(_local3 - 1) % _local4.length];
}
return(_local5);
}
function createChildren() {
super.createChildren();
if (disclosure == undefined) {
createObject("Disclosure", "disclosure", 3, {_visible:false});
disclosure.onPress = disclosurePress;
disclosure.useHandCursor = false;
}
}
function size() {
super.size();
disclosure._y = (__height - disclosure._height) / 2;
nodeIcon._y = (__get__height() - nodeIcon._height) / 2;
cell.setSize(__width - cell._x, __height);
}
function disclosurePress() {
var _local3 = _parent;
var _local2 = _local3.owner;
if (_local2.isOpening || (!_local2.enabled)) {
return(undefined);
}
var _local4 = (_local3.open ? 90 : 0);
_local3.open = !_parent.open;
_local2.pressFocus();
_local2.releaseFocus();
_local2.setIsOpen(_local3.node, _local3.open, true, true);
}
var indentAdjust = 3;
}
Symbol 560 MovieClip [__Packages.mx.containers.ScrollPane] Frame 0
class mx.containers.ScrollPane extends mx.core.ScrollView
{
var _total, _loaded, destroyChildAt, createChild, __scrollContent, spContentHolder, hScroller, vScroller, __get__hScrollPolicy, __vScrollPolicy, __get__vScrollPolicy, tabEnabled, keyDown, mask_mc, hPosition, __get__maxHPosition, vPosition, __get__maxVPosition, __hPosition, __vPosition, invalidate;
function ScrollPane () {
super();
}
function getBytesTotal() {
return(_total);
}
function getBytesLoaded() {
return(_loaded);
}
function set contentPath(scrollableContent) {
if (!initializing) {
if (scrollableContent == undefined) {
destroyChildAt(0);
} else {
if (this[mx.core.View.childNameBase + 0] != undefined) {
destroyChildAt(0);
}
createChild(scrollableContent, "spContentHolder");
}
}
__scrollContent = scrollableContent;
//return(contentPath);
}
function get contentPath() {
return(__scrollContent);
}
function get content() {
return(spContentHolder);
}
function setHPosition(position) {
if ((position <= hScroller.maxPos) && (position >= hScroller.minPos)) {
super.setHPosition(position);
spContentHolder._x = -position;
}
}
function setVPosition(position) {
if ((position <= vScroller.maxPos) && (position >= vScroller.minPos)) {
super.setVPosition(position);
spContentHolder._y = -position;
}
}
function get vLineScrollSize() {
return(__vLineScrollSize);
}
function set vLineScrollSize(vLineSize) {
__vLineScrollSize = vLineSize;
vScroller.__set__lineScrollSize(vLineSize);
//return(vLineScrollSize);
}
function get hLineScrollSize() {
return(__hLineScrollSize);
}
function set hLineScrollSize(hLineSize) {
__hLineScrollSize = hLineSize;
hScroller.__set__lineScrollSize(hLineSize);
//return(hLineScrollSize);
}
function get vPageScrollSize() {
return(__vPageScrollSize);
}
function set vPageScrollSize(vPageSize) {
__vPageScrollSize = vPageSize;
vScroller.__set__pageScrollSize(vPageSize);
//return(vPageScrollSize);
}
function get hPageScrollSize() {
return(__hPageScrollSize);
}
function set hPageScrollSize(hPageSize) {
__hPageScrollSize = hPageSize;
hScroller.__set__pageScrollSize(hPageSize);
//return(hPageScrollSize);
}
function set hScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
//return(__get__hScrollPolicy());
}
function set vScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
//return(__get__vScrollPolicy());
}
function get scrollDrag() {
return(__scrollDrag);
}
function set scrollDrag(s) {
__scrollDrag = s;
if (__scrollDrag) {
spContentHolder.useHandCursor = true;
spContentHolder.onPress = function () {
this._parent.startDragLoop();
};
spContentHolder.tabEnabled = false;
spContentHolder.onRelease = (spContentHolder.onReleaseOutside = function () {
delete this.onMouseMove;
});
__scrollDrag = true;
} else {
delete spContentHolder.onPress;
spContentHolder.tabEnabled = false;
spContentHolder.tabChildren = true;
spContentHolder.useHandCursor = false;
__scrollDrag = false;
}
//return(scrollDrag);
}
function init(Void) {
super.init();
tabEnabled = true;
keyDown = _onKeyDown;
}
function createChildren(Void) {
super.createChildren();
mask_mc._visible = false;
initializing = false;
if ((__scrollContent != undefined) && (__scrollContent != "")) {
contentPath = (__scrollContent);
}
}
function size(Void) {
super.size();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
hPosition = Math.min(hPosition, __get__maxHPosition());
vPosition = Math.min(vPosition, __get__maxVPosition());
}
function setScrollProperties(columnCount, columnWidth, rowCount, rowHeight) {
super.setScrollProperties(columnCount, columnWidth, rowCount, rowHeight);
hScroller.__set__lineScrollSize(__hLineScrollSize);
hScroller.__set__pageScrollSize(__hPageScrollSize);
vScroller.__set__lineScrollSize(__vLineScrollSize);
vScroller.__set__pageScrollSize(__vPageScrollSize);
}
function onScroll(scrollEvent) {
spContentHolder._x = -__hPosition;
spContentHolder._y = -__vPosition;
super.onScroll(scrollEvent);
}
function childLoaded(obj) {
super.childLoaded(obj);
onComplete();
}
function onComplete(Void) {
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
hPosition = 0;
vPosition = 0;
scrollDrag = (__scrollDrag);
invalidate();
}
function startDragLoop(Void) {
spContentHolder.lastX = spContentHolder._xmouse;
spContentHolder.lastY = spContentHolder._ymouse;
spContentHolder.onMouseMove = function () {
var _local5 = this.lastX - this._xmouse;
var _local4 = this.lastY - this._ymouse;
_local5 = _local5 + this._parent.hPosition;
_local4 = _local4 + this._parent.vPosition;
var _local3 = this._parent.getViewMetrics();
var _local7 = (this._parent.__height - _local3.top) - _local3.bottom;
var _local6 = (this._parent.__width - _local3.left) - _local3.right;
this._parent.__hPosition = Math.max(0, Math.min(_local5, this._width - _local6));
this._parent.__vPosition = Math.max(0, Math.min(_local4, this._height - _local7));
this._parent.hScroller.scrollPosition = this._parent.__hPosition;
this._x = -this._parent.hPosition;
this._parent.vScroller.scrollPosition = this._parent.__vPosition;
this._y = -this._parent.vPosition;
super.dispatchEvent({type:"scroll"});
};
}
function dispatchEvent(o) {
o.target = this;
_total = o.total;
_loaded = o.current;
super.dispatchEvent(o);
}
function refreshPane(Void) {
contentPath = (__scrollContent);
}
function _onKeyDown(e) {
if (((hScroller != undefined) && (__hPosition <= hScroller.maxPos)) && (__hPosition >= hScroller.minPos)) {
if (e.code == 37) {
hPosition = hPosition - hLineScrollSize;
} else if (e.code == 39) {
hPosition = hPosition + hLineScrollSize;
}
}
if (((vScroller != undefined) && (__vPosition <= vScroller.maxPos)) && (__vPosition >= vScroller.minPos)) {
if (e.code == 33) {
vPosition = vPosition - vPageScrollSize;
} else if (e.code == 34) {
vPosition = vPosition + vPageScrollSize;
}
if (e.code == 40) {
vPosition = vPosition + vLineScrollSize;
} else if (e.code == 38) {
vPosition = vPosition - vLineScrollSize;
}
}
if (e.code == 36) {
vPosition = vScroller.minPos;
} else if (e.code == 35) {
vPosition = vScroller.maxPos;
}
}
static var symbolName = "ScrollPane";
static var symbolOwner = mx.containers.ScrollPane;
var className = "ScrollPane";
static var version = "2.0.2.127";
var __hScrollPolicy = "auto";
var __scrollDrag = false;
var __vLineScrollSize = 5;
var __hLineScrollSize = 5;
var __vPageScrollSize = 20;
var __hPageScrollSize = 20;
var clipParameters = {contentPath:1, scrollDrag:1, hScrollPolicy:1, vScrollPolicy:1, vLineScrollSize:1, hLineScrollSize:1, vPageScrollSize:1, hPageScrollSize:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.containers.ScrollPane.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var initializing = true;
}
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.camtasia.CamtasiaPlayer] Frame 0
class com.techsmith.camtasia.CamtasiaPlayer extends com.techsmith.ui.Component
{
var attachMovie, dispatchEvent, _y, tabChildren;
function CamtasiaPlayer () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("CamtasiaPlayer", com.techsmith.camtasia.CamtasiaPlayer);
var _local6 = container.attachMovie("CamtasiaPlayer", name, depth, init);
return(com.techsmith.camtasia.CamtasiaPlayer(_local6));
}
function init(dim, content, fps, options) {
this.content = content;
content.gotoAndStop(1);
this.fps = fps;
duration = framesToSeconds(content._totalframes);
layoutApplication(dim, options, duration);
registerListeners();
}
function start() {
rollMedia();
playback.setSelected(false);
content.onEnterFrame = com.techsmith.utils.Delegate.create(this, enterFrameHandler);
}
function layoutApplication(dim, options, timeDuration) {
background = com.techsmith.ui.panels.HPanel.create(this, "background", 1);
background.init(new com.techsmith.utils.Dimension(dim.width, controlsHeight), new com.techsmith.ui.panels.PanelStyle("BottomLeft", "BottomMiddle", "BottomRight"));
background.move(0, 0);
playback = com.techsmith.ui.BasicButton.create(this, "playback", 2);
playback.init(new com.techsmith.ui.ButtonStyle("Pause", "Play", true));
playback.move(background._x + margin, background._y + ((background._height - playback._height) / 2));
playback.setSelected(true);
playback.tabIndex = 15;
slider = com.brooksandrus.ui.ProgressSlider.create(this, "slider", 3, {tabEnabled:false, tabChildren:true, thumbTabIndex:20, thumbFocusRect:false});
separator = attachMovie("Separator", "separator", 4);
time = com.techsmith.camtasia.TimeDisplay.create(this, "time", 20);
time.init(timeDuration);
time.move(dim.width - (margin + time._width), background._y + ((background._height - time._height) / 2));
var _local5 = new Array();
if (options.about) {
about = com.techsmith.ui.BasicButton.create(this, "about", 9);
about.init(new com.techsmith.ui.ButtonStyle("AboutIcon", null, false));
about.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, aboutHandler));
about.tabIndex = 50;
_local5.push(about);
}
if (options.captions) {
captions = com.techsmith.ui.BasicButton.create(this, "captions", 8);
captions.init(new com.techsmith.ui.ButtonStyle("CC", "CCClosed", true));
captions.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, captionsHandler));
captions.tabIndex = 45;
_local5.push(captions);
}
if (options.fullscreen) {
fullscreen = com.techsmith.ui.BasicButton.create(this, "fullscreen", 7);
fullscreen.init(new com.techsmith.ui.ButtonStyle("ScreenMax", "ScreenMin", true));
fullscreen.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, fullscreenHandler));
fullscreen.tabIndex = 40;
_local5.push(fullscreen);
}
if (options.toc) {
toc = com.techsmith.ui.BasicButton.create(this, "toc", 6);
toc.init(new com.techsmith.ui.ButtonStyle("TocIcon", "TocIconClosed", true));
toc.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, tocHandler));
toc.tabIndex = 35;
_local5.push(toc);
}
if (options.audio) {
audio = com.techsmith.ui.BasicButton.create(this, "audio", 5);
audio.init(new com.techsmith.ui.ButtonStyle("AudioIcon", "AudioIconSelected", true));
audio.tabIndex = 25;
_local5.push(audio);
}
_local5.push(separator);
var _local6 = time._x;
var _local7 = 0;
for ( ; _local7 < _local5.length ; _local7++) {
_local5[_local7]._x = _local6 - (_local5[_local7]._width + padding);
_local5[_local7]._y = Math.round(background._y + ((background._height - _local5[_local7]._height) / 2));
_local6 = _local5[_local7]._x;
}
var _local8 = Math.round(separator._x - ((playback._x + playback._width) + (padding * 4)));
var _local9 = 2;
var _local10 = new com.techsmith.utils.Dimension(_local8, _local9);
var _local11 = new com.techsmith.ui.panels.PanelStyle("SliderBase");
var _local12 = new flash.geom.Rectangle(0.5, 0.5, 8, 2);
var _local13 = _local10;
var _local14 = new com.techsmith.ui.panels.PanelStyle("SliderFill");
var _local15 = _local12;
slider.init(_local10, _local11, _local12, _local13, _local14, _local15);
slider.setProgress({percent:100});
var _local16 = Math.round((playback._x + playback._width) + (padding * 2));
var _local17 = background._y + ((background._height - slider.height) / 2);
slider.move(_local16, _local17);
var _local18 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().startbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().playbutton) : "Play Toggle");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:playback, name:_local18, description:"", shortcut:"Control + P"});
var _local19 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().progressbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().progressbutton) : "Progress Bar Indicator");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:slider.getThumb(), name:_local19, description:"", shortcut:"Control + S"});
var _local20 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().audiobutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().audiobutton) : "Audio toggle");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:audio, name:_local20, description:"", shortcut:"Control + A"});
var _local21 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().tocbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().tocbutton) : "Table of Contents");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:toc, name:_local21, description:"", shortcut:"Control + T"});
var _local22 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().ccbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().fsbutton) : "Fullscreen Toggle");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:fullscreen, name:_local22, description:"", shortcut:"Control + F"});
var _local23 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().ccbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().ccbutton) : "Closed Captioning Toggle");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:captions, name:_local23, description:"", shortcut:"Control + K"});
var _local24 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().infobutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().infobutton) : "Information");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:about, name:_local24, description:"", shortcut:"Control + I"});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
}
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));
slider.addEventListener(com.techsmith.events.Events.KEY_DOWN, com.techsmith.utils.Delegate.create(this, progressSliderKeyDownHandler));
slider.addEventListener(com.techsmith.events.Events.KEY_UP, com.techsmith.utils.Delegate.create(this, progressSliderKeyUpHandler));
audio.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, audioClickHandler));
audio.addEventListener(com.techsmith.events.Events.MOUSE_ROLL_OVER, com.techsmith.utils.Delegate.create(this, audioOverHandler));
audio.addEventListener(com.techsmith.events.Events.MOUSE_ROLL_OUT, com.techsmith.utils.Delegate.create(this, tipOutHandler));
toc.addEventListener(com.techsmith.events.Events.MOUSE_ROLL_OVER, com.techsmith.utils.Delegate.create(this, tipOverHandler));
toc.addEventListener(com.techsmith.events.Events.MOUSE_ROLL_OUT, com.techsmith.utils.Delegate.create(this, tipOutHandler));
captions.addEventListener(com.techsmith.events.Events.MOUSE_ROLL_OVER, com.techsmith.utils.Delegate.create(this, tipOverHandler));
captions.addEventListener(com.techsmith.events.Events.MOUSE_ROLL_OUT, com.techsmith.utils.Delegate.create(this, tipOutHandler));
fullscreen.addEventListener(com.techsmith.events.Events.MOUSE_ROLL_OVER, com.techsmith.utils.Delegate.create(this, tipOverHandler));
fullscreen.addEventListener(com.techsmith.events.Events.MOUSE_ROLL_OUT, com.techsmith.utils.Delegate.create(this, tipOutHandler));
about.addEventListener(com.techsmith.events.Events.MOUSE_ROLL_OVER, com.techsmith.utils.Delegate.create(this, tipOverHandler));
about.addEventListener(com.techsmith.events.Events.MOUSE_ROLL_OUT, com.techsmith.utils.Delegate.create(this, tipOutHandler));
}
function playbackHandler(e) {
if (e.selected) {
freezeMedia();
} else {
rollMedia();
dispatchEvent({target:this, type:com.techsmith.events.Events.STARTED});
}
}
function freezeMedia() {
content.stop();
dispatchEvent({target:this, type:com.techsmith.events.Events.CONTROL_STATE_PLAY, selected:true});
isPlaying = false;
delete content.onEnterFrame;
}
function rollMedia() {
content.play();
dispatchEvent({target:this, type:com.techsmith.events.Events.CONTROL_STATE_PLAY, selected:false});
isPlaying = true;
content.onEnterFrame = com.techsmith.utils.Delegate.create(this, enterFrameHandler);
}
function seek(time) {
var _local3 = content._framesloaded;
var _local4 = content._totalframes;
var _local5 = content._currentframe;
var _local6 = Math.round(time * fps) + 1;
if ((_local6 > _local3) && (_local3 != _local4)) {
dispatchEvent({target:this, type:com.techsmith.events.Events.SEEK_ERROR});
return(undefined);
}
if (_local6 > _local4) {
_local6 = _local4;
}
if (isPlaying && (_local6 < _local4)) {
content.gotoAndPlay(_local6);
} else {
content.gotoAndStop(_local6);
}
var _local7 = (_local6 - 1) / (_local4 - 1);
updateTime(framesToSeconds(_local6));
updateSlider(_local7);
dispatchEvent({target:this, type:com.techsmith.events.Events.SEEK_COMPLETE, time:time, currentframe:content._currentframe, previousframe:_local6 - 1, totalframe:content._totalframes, playing:isPlaying});
}
function replay() {
dispatchEvent({type:"replayMedia", target:this});
playMedia();
}
function playMedia() {
if (!isPlaying) {
playback.setSelected(false);
rollMedia();
}
}
function stopMedia() {
if (isPlaying) {
playback.setSelected(true);
freezeMedia();
}
}
function aboutEnabled(enable) {
about.setEnabled(enable);
about.tabEnabled = enable;
}
function setProgress(percent) {
slider.setProgress({percent:percent});
}
function getAudioPosition() {
return(new com.techsmith.utils.Point(audio._x, _y));
}
function getAudioDimensions() {
return(new com.techsmith.utils.Dimension(audio._width, audio._height));
}
function setAudioState(value) {
audio.setSelected(value);
}
function setTocState(value) {
toc.setSelected(value);
}
function getAudioState() {
return(audio.getSelected());
}
function progressHandler(e) {
var _local3 = Math.round(e.fractPercent * content._totalframes);
if (_local3 == 0) {
_local3 = 1;
}
updateTime(framesToSeconds(_local3));
updateSlider(e.fractPercent);
content.gotoAndStop(_local3);
dispatchEvent({type:com.techsmith.events.Events.ENTER_FRAME, target:this, time:framesToSeconds(_local3), currentframe:content._currentframe, previousframe:_local3 - 1, totalframe:content._totalframes, playing:isPlaying});
}
function dragHandler(e) {
if (e.type == com.techsmith.events.Events.DRAG_START) {
if (isPlaying) {
delete content.onEnterFrame;
}
dispatchEvent(e);
} else if (isPlaying) {
content.play();
content.onEnterFrame = com.techsmith.utils.Delegate.create(this, enterFrameHandler);
}
if (e.type == com.techsmith.events.Events.DRAG_STOP) {
dispatchEvent(e);
}
}
function audioClickHandler(e) {
dispatchEvent({type:AUDIO_CLICK, target:this});
tipOutHandler();
}
function audioOverHandler(e) {
dispatchEvent({type:AUDIO_OVER, target:this, tabIndex:30});
tipOverHandler(e);
}
function tipOverHandler(e) {
switch (com.techsmith.ui.BasicButton(e.target)) {
case audio :
dispatchEvent({target:this, type:com.techsmith.events.Events.TOOLTIP, message:"Volume"});
break;
case toc :
dispatchEvent({target:this, type:com.techsmith.events.Events.TOOLTIP, message:"Table of Contents"});
break;
case captions :
dispatchEvent({target:this, type:com.techsmith.events.Events.TOOLTIP, message:"Closed Captioning"});
break;
case fullscreen :
dispatchEvent({target:this, type:com.techsmith.events.Events.TOOLTIP, message:"Fullscreen"});
break;
case about :
dispatchEvent({target:this, type:com.techsmith.events.Events.TOOLTIP, message:"About / Info"});
}
}
function tipOutHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.TOOLTIP, message:"destroy"});
}
function aboutHandler(e) {
e.target = this;
e.id = "about";
dispatchEvent(e);
tipOutHandler();
}
function captionsHandler(e) {
e.target = this;
e.id = "captions";
dispatchEvent(e);
tipOutHandler();
}
function fullscreenHandler(e) {
if (Stage.displayState == "normal") {
Stage.displayState = "fullscreen";
dispatchEvent({type:com.techsmith.events.Events.CHANGE, target:this, display:"max"});
} else {
Stage.displayState = "normal";
dispatchEvent({type:com.techsmith.events.Events.CHANGE, target:this, display:"min"});
}
tipOutHandler();
}
function tocHandler(e) {
e.target = this;
e.id = "toc";
dispatchEvent(e);
tipOutHandler();
}
function enterFrameHandler() {
var _local2 = content._currentframe;
var _local3 = content._totalframes;
if ((_local2 == _local3) && (_local3 > 2)) {
freezeMedia();
playback.setSelected(true);
dispatchEvent({target:this, type:com.techsmith.events.Events.COMPLETE});
}
updateTime(framesToSeconds(content._currentframe));
updateSlider(content._currentframe / _local3);
dispatchEvent({type:com.techsmith.events.Events.ENTER_FRAME, target:this, currentframe:_local2, previousframe:_local2, totalframe:_local3, playing:isPlaying, percent:(_local2 - 1) / (_local3 - 1), time:framesToSeconds(_local2), duration:framesToSeconds(_local3)});
if ((Stage.displayState == "normal") && (fullscreen.getSelected())) {
fullscreen.setSelected(false);
}
}
function framesToSeconds(frame) {
return(frame / fps);
}
function updateTime(seconds) {
time.setTime(seconds);
}
function setDuration(seconds) {
time.setDuration(seconds);
}
function updateSlider(percent) {
slider.setPosition(percent * 100);
}
function ExtUpdateSlider(e) {
slider.setPosition(e.rawPercent * 100);
}
function ExtUpdateTime(e) {
if (e.seconds != undefined) {
updateTime(e.seconds);
}
}
function progressSliderKeyUpHandler(e) {
if (isPlaying) {
seekFast = 0;
content.play();
} else if (Key.getCode() == Key.ESCAPE) {
fullscreen.setSelected(false);
}
shortcutKeyAccess();
}
function shortcutKeyAccess() {
trace("upKey.getCode:= " + Key.getCode());
trace("upfullscreen:= " + fullscreen.getSelected());
if ((Key.getCode() == 27) && (fullscreen.getSelected())) {
fullscreen.setSelected(false);
}
tipOutHandler();
if (Key.isDown(Key.CONTROL) && (tabChildren == true)) {
switch (Key.getCode()) {
case 80 :
Selection.setFocus(playback);
if (isPlaying) {
stopMedia();
} else {
playMedia();
}
break;
case 83 :
Selection.setFocus(slider.getThumb());
break;
case 65 :
Selection.setFocus(audio);
break;
case 84 :
Selection.setFocus(toc);
dispatchEvent({type:com.techsmith.events.Events.MOUSE_RELEASE, id:"toc", target:this});
tipOutHandler();
break;
case 70 :
Selection.setFocus(fullscreen);
fullscreenHandler({});
break;
case 75 :
Selection.setFocus(captions);
dispatchEvent({type:com.techsmith.events.Events.MOUSE_RELEASE, id:"captions", target:this});
tipOutHandler();
break;
case 73 :
Selection.setFocus(about);
dispatchEvent({type:com.techsmith.events.Events.MOUSE_RELEASE, id:"about", target:this});
tipOutHandler();
}
}
}
function progressSliderKeyDownHandler(e) {
trace("down.Key.getCode:= " + Key.getCode());
trace("down.fullscreen:= " + fullscreen.getSelected());
if ((Key.getCode() == 27) && (fullscreen.getSelected())) {
fullscreen.setSelected(false);
}
if (Selection.getFocus() == String(e.target)) {
switch (Key.getCode()) {
case Key.LEFT :
seekBack();
break;
case Key.RIGHT :
seekForward();
break;
case 188 :
seekBack();
break;
case 190 :
seekForward();
}
}
}
function seekForward() {
seekFast++;
var _local2 = content._currentframe;
if ((seekFast > (2 * fps)) && ((_local2 + 5) <= content._totalframes)) {
content.gotoAndStop(_local2 + 5);
} else {
content.gotoAndStop(_local2 + 1);
}
var _local3 = content._currentframe / content._totalframes;
updateTime(framesToSeconds(content._currentframe));
updateSlider(_local3);
}
function seekBack() {
seekFast++;
var _local2 = content._currentframe;
if ((seekFast > (2 * fps)) && ((_local2 - 5) > 1)) {
content.gotoAndStop(_local2 - 5);
} else {
content.gotoAndStop(_local2 - 1);
}
var _local3 = content._currentframe / content._totalframes;
updateTime(framesToSeconds(content._currentframe));
updateSlider(_local3);
}
function apiDragHandler(value) {
if (value == "start") {
trace("player:startdrag");
dragHandler({type:com.techsmith.events.Events.DRAG_START});
} else {
trace("player:stopdrag");
dragHandler({type:com.techsmith.events.Events.DRAG_STOP});
}
}
function apiProgressHandler(time) {
progressHandler({fractPercent:time});
}
function apiAudioClickHandler(value) {
audio.setSelected(value);
audioClickHandler({});
}
function apiPlaybackHandler() {
playMedia();
}
static var AUDIO_CLICK = "audioClick";
static var AUDIO_OVER = "audioOver";
var background = null;
var playback = null;
var slider = null;
var separator = null;
var audio = null;
var toc = null;
var captions = null;
var fullscreen = null;
var about = null;
var time = null;
var content = null;
var fullClip = null;
var duration = null;
var margin = 5;
var padding = 5;
var controlsHeight = 18;
var fps = 0;
var isPlaying = false;
var keyPlaying = null;
var seekFast = 0;
var framepass = 5;
}
Symbol 20485 MovieClip [__Packages.com.techsmith.ui.TextObject] Frame 0
class com.techsmith.ui.TextObject extends com.techsmith.ui.Component
{
var createLabel, createEmptyMovieClip, dispatchEvent, removeAllListeners;
function TextObject () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("TextObject", com.techsmith.ui.TextObject);
var _local6 = container.attachMovie("TextObject", name, depth, init);
return(com.techsmith.ui.TextObject(_local6));
}
function init(w, h, format, textprops) {
__width = w;
__height = h;
textFormat = format;
textProps = textprops;
draw();
addEventCallbacks();
}
function draw() {
drawBackground();
createField();
createFormat();
}
function createField() {
var _local2 = textPadding;
var _local3 = __width - (textPadding * 2);
var _local4 = __height - (textPadding * 2);
if (border) {
_local2 = borderPadding + textPadding;
_local3 = __width - (borderPadding + (textPadding * 2));
_local4 = __height - (borderPadding + (textPadding * 2));
}
textField = createLabel("textField", {depth:3, x:_local2, y:_local2, w:_local3, h:_local4});
tfMaxWidth = _local3;
tfMaxHeight = _local4;
if (type == null) {
type = "input";
}
if (selectable == null) {
selectable = true;
}
if (html == null) {
html = true;
}
if (wordWrap == null) {
wordWrap = true;
}
if (multiline == null) {
multiline = true;
}
textField.type = type;
textField.selectable = selectable;
textField.html = html;
textField.wordWrap = wordWrap;
textField.multiline = multiline;
if (txtTabIndex != null) {
textField.tabIndex = txtTabIndex;
}
if (stylesheet != null) {
textField.styleSheet = stylesheet;
}
for (var i in textProps) {
textField[i] = textProps[i];
}
type = textField.type;
}
function createFormat() {
if (textFormat == null) {
textFormat = new TextFormat();
textFormat.align = align;
textFormat.font = font;
textFormat.bold = bold;
textFormat.size = size;
if (!html) {
textFormat.color = _global.parseInt(textColor, 16);
}
textFormat.leftMargin = 0;
}
textField.setNewTextFormat(textFormat);
}
function drawBackground() {
background = createEmptyMovieClip("background", 1);
var _local2 = __width;
var _local3 = __height;
var _local4 = 0;
var _local5 = 0;
if (border) {
com.techsmith.utils.shapes.Rectangle.draw(background, undefined, __width, __height, undefined, {thickness:strokeWeight, rgb:borderColor, alpha:100}, {x:0, y:0});
_local2 = __width - (borderPadding * 2);
_local3 = __height - (borderPadding * 2);
_local4 = borderPadding;
_local5 = borderPadding;
}
com.techsmith.utils.shapes.Rectangle.draw(background, fillColor, _local2, _local3, fillOpacity, {thickness:strokeWeight, rgb:strokeColor, alpha:strokeOpacity}, {x:_local4, y:_local5});
fillWidth = _local2;
fillHeight = _local3;
fillx = _local4;
filly = _local5;
}
function drawFocusHighlight() {
highlight = createEmptyMovieClip("highlight", 2);
com.techsmith.utils.shapes.Rectangle.draw(highlight, undefined, __width, __height, undefined, {thickness:strokeWeight, rgb:highlightColor, alpha:100}, {x:0, y:0});
}
function drawDisabled() {
disabledClip = createEmptyMovieClip("disabledClip", 4);
com.techsmith.utils.shapes.Rectangle.draw(disabledClip, disabledColor, __width, __height, 60, undefined, {x:0, y:0});
}
function addEventCallbacks() {
textField.onSetFocus = com.techsmith.utils.Delegate.create(this, onSetFocus);
textField.onKillFocus = com.techsmith.utils.Delegate.create(this, onKillFocus);
textField.addListener(this);
}
function removeEventCallbacks() {
delete textField.onSetFocus;
delete textField.onKillFous;
textField.removeListener(this);
}
function getHtmlColor(s) {
return(((("<font color='#" + textColor) + "'>") + s) + "</font>");
}
function setText(s) {
text = s;
if (textField.html) {
textField.htmlText = getHtmlColor(s);
} else {
textField.text = s;
}
textField.setTextFormat(textFormat);
}
function getText() {
return(textField.text);
}
function getFormattedText() {
return(textField.htmlText);
}
function setEnabled(bEnabled) {
if (bEnabled) {
focusEnabled = true;
textField.type = type;
textField.selectable = true;
disabledClip.removeMovieClip();
} else {
onKillFocus();
focusEnabled = false;
textField.selectable = false;
textField.type = "dynamic";
drawDisabled();
}
}
function giveFocus() {
Selection.setFocus(textField);
}
function onSetFocus(oldFocus) {
drawFocusHighlight();
Key.addListener(this);
dispatchEvent({target:this, type:com.techsmith.events.Events.FOCUS_IN});
}
function onKillFocus(newFocus) {
Key.removeListener(this);
highlight.removeMovieClip();
dispatchEvent({target:this, type:com.techsmith.events.Events.FOCUS_OUT});
}
function onChanged() {
text = textField.text;
dispatchEvent({target:this, type:com.techsmith.events.Events.CHANGE});
}
function onKeyDown() {
if (Key.getCode() == Key.ENTER) {
dispatchEvent({target:this, type:com.techsmith.events.Events.KEY_ENTER});
}
}
function setFormat(txtFormat) {
textFormat = txtFormat;
textField.setNewTextFormat(textFormat);
}
function destroy() {
onKillFocus();
removeEventCallbacks();
textField.removeTextField();
removeAllListeners();
super.destroy();
}
function onUnload() {
destroy();
}
var __width = null;
var __height = null;
var text = "";
var textField = null;
var textProps = null;
var textFormat = null;
var textColor = "666666";
var background = null;
var highlight = null;
var disabledClip = null;
var borderColor = 13158600;
var strokeColor = 13158600;
var strokeOpacity = 100;
var fillColor = 16777215;
var highlightColor = 11066869;
var disabledColor = 16777215;
var fillOpacity = 100;
var type = null;
var selectable = null;
var html = null;
var wordWrap = null;
var multiline = null;
var stylesheet = null;
var textPadding = 3;
var borderPadding = 3;
var strokeWeight = 1;
var border = true;
var fillWidth = null;
var fillHeight = null;
var fillx = null;
var filly = null;
var tfMaxWidth = null;
var tfMaxHeight = null;
var focusEnabled = true;
var align = "left";
var font = "Arial";
var size = 14;
var bold = false;
var txtTabIndex = null;
}
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.Window] Frame 0
class com.techsmith.ui.Window extends com.techsmith.ui.Container
{
var depthManager, dispatchEvent;
function Window () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("Window", com.techsmith.ui.Window);
var _local6 = container.attachMovie("Window", name, depth, init);
return(com.techsmith.ui.Window(_local6));
}
function init(bDim, style) {
}
function setupContent() {
}
function getContentDepth() {
if (content != null) {
var _local2 = content.getDepth();
} else {
var _local2 = depthManager.getNextDepth();
}
return(_local2);
}
function alignCanvas(bDim, fDim) {
background.move(0, 0);
if (centerCanvas) {
foreground.move(hPadding, vPadding);
} else {
foreground.move(fillx, filly);
}
}
function setTitle(title) {
}
function setContent() {
}
function getContentLoc() {
var _local2 = vContentPadding;
if (exit != null) {
_local2 = _local2 + (exit.getLocation().y + exit.getDimensions().height);
}
return(new com.techsmith.utils.Point(hContentPadding, _local2));
}
function positionContent() {
var _local2 = getContentLoc();
content.move(_local2.x, _local2.y);
}
function exitButtonHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.CLOSE});
destroy();
}
function destroy() {
exit.destroy();
content.destroy();
super.destroy();
}
var hPadding = 1;
var vPadding = 1;
var fillx = 1;
var filly = 1;
var hContentPadding = 8;
var vContentPadding = 6;
var composite = true;
var centerCanvas = true;
var background = null;
var foreground = null;
var dragArea = null;
var exit = null;
var content = null;
var label = null;
var exitStyle = null;
var bgStyle = null;
var fgStyle = null;
var bgDim = null;
var fgDim = null;
var draggable = true;
}
Symbol 20488 MovieClip [__Packages.com.techsmith.xskin.ui.XSWindow] Frame 0
class com.techsmith.xskin.ui.XSWindow extends com.techsmith.ui.Window
{
var bgStyle, fgStyle, exitStyle, background, addChild, composite, foreground, dragArea, hPadding, vPadding, alignCanvas, bgDim, fgDim, exit, exitButtonHandler, hContentPadding, getCollectionIndexById, addChildComponent, addChildComponentAt, label;
function XSWindow () {
super();
bgStyle = com.techsmith.xskin.ui.panels.styles.StyleFactory.GLASS;
fgStyle = com.techsmith.xskin.ui.panels.styles.StyleFactory.BLACK;
exitStyle = ((exitStyle == null) ? (new com.techsmith.ui.ButtonStyle("XSClose", null, false)) : (exitStyle));
}
static function create(container, name, depth, init) {
Object.registerClass("XSWindow", com.techsmith.xskin.ui.XSWindow);
var _local6 = container.attachMovie("XSWindow", name, depth, init);
return(com.techsmith.xskin.ui.XSWindow(_local6));
}
function init(bDim) {
setupWindowChrome(bDim);
setupContent();
}
function setupWindowChrome(bDim) {
background = addChild(com.techsmith.xskin.ui.panels.XSPanel, "background");
if (composite) {
foreground = addChild(com.techsmith.xskin.ui.panels.XSPanel, "foreground");
}
dragArea = addChild(com.techsmith.xskin.ui.panels.XSPanel, "dragArea", {dragScope:this, constraints:constraints});
background.init(bDim, com.techsmith.ui.canvas.AbstractCanvas.BASIC, bgStyle);
var _local3 = new com.techsmith.utils.Dimension(bDim.width - (hPadding * 2), bDim.height - (vPadding * 2));
foreground.init(_local3, com.techsmith.ui.canvas.AbstractCanvas.BASIC, fgStyle);
dragArea.init(bDim, com.techsmith.ui.canvas.AbstractCanvas.DRAG, bgStyle);
dragArea.setOpacity(0);
alignCanvas(bDim, _local3);
bgDim = bDim;
fgDim = _local3;
exit = addChild(com.techsmith.ui.BasicButton, "exit");
exit.init(exitStyle);
exit.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, exitButtonHandler));
var _local4 = bDim.width - (exit.getDimensions().width + hContentPadding);
exit.move(_local4, 0);
}
function setupContent(tab) {
}
function addToCollection(id, comp) {
var _local4 = getCollectionIndexById(id);
if (_local4 == -1) {
addChildComponent(comp);
} else {
addChildComponentAt(_local4);
}
}
function setTitle(title) {
label.setText(title);
}
var constraints = null;
}
Symbol 20489 MovieClip [__Packages.com.techsmith.camtasia.quiz.ISummary] Frame 0
class com.techsmith.camtasia.quiz.ISummary
{
function ISummary () {
}
}
Symbol 20490 MovieClip [__Packages.com.techsmith.camtasia.quiz.SCORMSummary] Frame 0
class com.techsmith.camtasia.quiz.SCORMSummary extends com.techsmith.xskin.ui.XSWindow implements com.techsmith.camtasia.quiz.ISummary
{
var label, addChild, getContentLoc, exit, _width, _height, content, bgDim, dispatchEvent, foreground, background;
function SCORMSummary () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("SCORMSummary", com.techsmith.camtasia.quiz.SCORMSummary);
var _local6 = container.attachMovie("SCORMSummary", name, depth, init);
return(com.techsmith.camtasia.quiz.SCORMSummary(_local6));
}
function init(dim, style, summaryData) {
this.summaryData = summaryData;
super.init(dim, style);
}
function setupWindowChrome(bDim) {
super.setupWindowChrome(bDim);
label = addChild(com.techsmith.ui.Label, "label", {multiline:false, color:"FFFFFF", size:14});
var _local4 = getContentLoc();
label.move(_local4.x, (_local4.y - label._height) / 2);
sendBtn = addChild(com.techsmith.ui.LabelButton, "sendBtn", {defaultFontColor:16777215});
var _local5 = new com.techsmith.ui.panels.PanelStyle("RedGlassLUp", "RedGlassMUp", "RedGlassRUp");
var _local6 = new com.techsmith.ui.panels.PanelStyle("RedGlassLOver", "RedGlassMOver", "RedGlassROver");
var _local7 = new com.techsmith.ui.panels.PanelStyle("RedGlassLDown", "RedGlassMDown", "RedGlassRDown");
var _local8 = new com.techsmith.ui.panels.PanelStyle("RedGlassLDisabled", "RedGlassMDisabled", "RedGlassRDisabled");
sendBtn.init("", 75, null, {up:_local5, over:_local6, down:_local7, disabled:_local8});
sendBtn.tabIndex = 211;
exit.tabIndex = 212;
var _local9 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitsummarybutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitsummarybutton) : "Quiz Summary Exit");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:exit, name:_local9, description:"", shortcut:""});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
var _local10 = _width - (sendBtn._width + hmargin);
var _local11 = _height - (vmargin - ((vmargin - sendBtn._height) / 2));
var _local12 = 5;
sendBtn.move(_local10, _local11);
status = addChild(com.techsmith.ui.TextObject, "status", {border:false, fillOpacity:0, strokeOpacity:0, size:10, textColor:"FFFFFF", type:"dynamic", selectable:false});
status.init(sendBtn._x - (hmargin + 5), 22);
status.move(hmargin, _local11 - ((status._height - sendBtn._height) / 2));
sendBtn.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, sendBtnHandler));
}
function setupContent() {
content = addChild(com.techsmith.ui.TextObject, "content", {border:false, fillOpacity:20, textColor:"FFFFFF", type:"dynamic", selectable:false});
content.init(bgDim.width - 20, bgDim.height - 62);
content.move((bgDim.width - content.width) / 2, (bgDim.height - content.height) / 2);
}
function updateUI() {
sendBtn.setEnabled(false);
content.setEnabled(false);
}
function setMessage(message) {
content.setText(message);
}
function setStatus(message) {
status.setText(message);
}
function setButtonLabels(previewLabel, sendLabel) {
sendBtn.setLabel(sendLabel);
}
function sendBtnHandler(e) {
dispatchEvent({target:this, type:SEND_EVENT});
}
function destroy() {
sendBtn.removeAllListeners();
super.destroy();
}
function setQStyle(style) {
foreground.setOpacity(style.bgtransparency);
background.setOpacity(style.bgtransparency);
var _local3 = new TextFormat();
_local3.font = (((style.titleformat.font != undefined) && (style.titleformat.font != "")) ? (style.titleformat.font) : "Arial");
_local3.size = (((style.titleformat.size != undefined) && (style.titleformat.size != "")) ? (style.titleformat.size) : 14);
_local3.bold = (((style.titleformat.bold != undefined) && (style.titleformat.bold != "")) ? (style.titleformat.bold) : true);
_local3.italic = (((style.titleformat.italic != undefined) && (style.titleformat.italic != "")) ? (style.titleformat.italic) : false);
_local3.underline = (((style.titleformat.underline != undefined) && (style.titleformat.underline != "")) ? (style.titleformat.underline) : false);
_local3.color = (((style.titleformat.color != undefined) && (style.titleformat.color != "")) ? (_global.parseInt(style.titleformat.color, 16)) : (_global.parseInt("FFFFFF", 16)));
_local3.multiline = false;
_local3.align = "left";
label.setFormat(_local3);
var _local4 = new TextFormat();
_local4.font = (((style.statusformat.font != undefined) && (style.statusformat.font != "")) ? (style.statusformat.font) : "Arial");
_local4.size = (((style.statusformat.size != undefined) && (style.statusformat.size != "")) ? (style.statusformat.size) : 10);
_local4.bold = (((style.statusformat.bold != undefined) && (style.statusformat.bold != "")) ? (style.statusformat.bold) : false);
_local4.italic = (((style.statusformat.italic != undefined) && (style.statusformat.italic != "")) ? (style.statusformat.italic) : false);
_local4.underline = (((style.statusformat.underline != undefined) && (style.statusformat.underline != "")) ? (style.statusformat.underline) : false);
_local4.color = (((style.statusformat.color != undefined) && (style.statusformat.color != "")) ? (_global.parseInt(style.statusformat.color, 16)) : (_global.parseInt("FFFFFF", 16)));
_local4.align = "left";
_local4.leftMargin = 0;
status.setFormat(_local4);
var _local5 = new TextFormat();
_local5.font = (((style.summaryformat.font != undefined) && (style.summaryformat.font != "")) ? (style.summaryformat.font) : "Arial");
_local5.size = (((style.summaryformat.size != undefined) && (style.summaryformat.size != "")) ? (style.summaryformat.size) : 14);
_local5.bold = (((style.summaryformat.bold != undefined) && (style.summaryformat.bold != "")) ? (style.summaryformat.bold) : false);
_local5.italic = (((style.summaryformat.italic != undefined) && (style.summaryformat.italic != "")) ? (style.summaryformat.italic) : false);
_local5.underline = (((style.summaryformat.underline != undefined) && (style.summaryformat.underline != "")) ? (style.summaryformat.underline) : false);
_local5.color = (((style.summaryformat.color != undefined) && (style.summaryformat.color != "")) ? (_global.parseInt(style.summaryformat.color, 16)) : (_global.parseInt("FFFFFF", 16)));
_local5.multiline = false;
_local5.align = "left";
com.techsmith.ui.TextObject(content).setFormat(_local5);
}
static var SEND_EVENT = "scormSendEvent";
var sendBtn = null;
var status = null;
var hmargin = 10;
var vmargin = 31;
var summaryData = null;
}
Symbol 20491 MovieClip [__Packages.com.techsmith.ui.VolumeControl] Frame 0
class com.techsmith.ui.VolumeControl extends com.techsmith.ui.Component
{
var backdrop, slider, timerID, _ymouse, _xmouse, localToGlobal, hitTest, dispatchEvent, removeAllListeners;
function VolumeControl () {
super();
backdrop = com.techsmith.ui.OneStateButton.create(this, "backdrop", 3);
backdrop.init("VolumePanel");
var _local3 = new com.techsmith.ui.panels.PanelStyle("SliderInsetLeft", "SliderInsetMiddle", "SliderInsetRight");
slider = com.techsmith.ui.Slider.create(this, "slider", 4, {tabChildren:true});
slider.init(new com.techsmith.utils.Dimension(75, 9), _local3, _local3);
slider._rotation = -90;
if (thumbTabIndex != null) {
slider._focusrect = false;
slider.thumb.tabIndex = thumbTabIndex;
slider.thumb._focusrect = thumbFocusRect;
slider.thumb.onSetFocus = com.techsmith.utils.Delegate.create(this, thumbSetFocusHandler);
slider.thumb.onKillFocus = com.techsmith.utils.Delegate.create(this, thumbKillFocusHandler);
slider.thumb.onKeyDown = com.techsmith.utils.Delegate.create(this, thumbKeyDownHandler);
Key.addListener(slider.thumb);
}
slider.setPosition(50);
var _local4 = (backdrop._height - slider._height) / 2;
slider.move((backdrop._width - slider._width) / 2, backdrop._height - _local4);
backdrop.addEventListener(com.techsmith.events.Events.MOUSE_ROLL_OUT, com.techsmith.utils.Delegate.create(this, mouseoutHandler));
backdrop.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE_OUT, com.techsmith.utils.Delegate.create(this, mouseoutHandler));
slider.addEventListener(com.techsmith.events.Events.PROGRESS, com.techsmith.utils.Delegate.create(this, positionHandler));
timerID = _global.setTimeout(this, "checkActive", 3000);
}
static function create(container, name, depth, init) {
Object.registerClass("VolumeControl", com.techsmith.ui.VolumeControl);
var _local6 = container.attachMovie("VolumeControl", name, depth, init);
return(com.techsmith.ui.VolumeControl(_local6));
}
function setPosition(volume) {
slider.setPosition(volume);
}
function checkActive() {
var _local2 = {x:_xmouse, y:_ymouse};
localToGlobal(_local2);
var _local3 = hitTest(_local2.x, _local2.y, true);
var _local4 = false;
if (Selection.getFocus() == (this + ".slider.thumb")) {
_local4 = true;
}
if ((!_local3) && (!_local4)) {
destroy();
}
}
function positionHandler(e) {
dispatchEvent({type:VOLUME_EVENT, target:this, volume:e.percent});
}
function mouseoutHandler(e) {
checkActive();
}
function thumbSetFocusHandler(oldfocus) {
slider.thumb.createEmptyMovieClip("line_mc", 51);
slider.thumb.line_mc.lineStyle(4, 16776960, 100, true, "normal", "none", "miter", 150);
slider.thumb.line_mc.moveTo(2, 2);
slider.thumb.line_mc.lineTo(2, 6);
slider.thumb.line_mc.lineTo(3, 6);
slider.thumb.line_mc.lineTo(3, 2);
slider.thumb.line_mc.lineTo(2, 2);
}
function thumbKillFocusHandler(newfocus) {
slider.thumb.line_mc.removeMovieClip();
}
function thumbKeyDownHandler() {
dispatchEvent({type:com.techsmith.events.Events.KEY_DOWN, target:slider.thumb});
}
function getVolumeThumb() {
return(slider.thumb);
}
function destroy() {
_global.clearTimeout(timerID);
backdrop.removeAllListeners();
slider.removeAllListeners();
backdrop.destroy();
slider.destroy();
removeAllListeners();
super.destroy();
}
static var VOLUME_EVENT = "volumeEvent";
var thumbTabIndex = null;
var thumbFocusRect = null;
var line_mc = null;
}
Symbol 20492 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 20493 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 20494 MovieClip [__Packages.com.techsmith.ui.RadioButton] Frame 0
class com.techsmith.ui.RadioButton extends com.techsmith.ui.BasicButton
{
var tabEnabled, createEmptyMovieClip, _parent, stateGraphic, graphicx, createTextField, _height, graphicy, selected, positionIcon, enabled, attachMovie, styleObj, dispatchEvent, _width;
function RadioButton () {
super();
tabEnabled = true;
if (useHighlight) {
highlight = createEmptyMovieClip("highlight", 1);
margin = highlightMargin;
}
indent = 10;
labelIndent = 2;
labelTopIndent = 2;
if (style == null) {
style = new com.techsmith.ui.ButtonStyle("RadioUnselected", "RadioSelected", true);
}
}
static function create(container, name, depth, init) {
Object.registerClass("RadioButton", com.techsmith.ui.RadioButton);
var _local6 = container.attachMovie("RadioButton", name, depth, init);
return(com.techsmith.ui.RadioButton(_local6));
}
function init(label, w, group, font, size, weight, highlightColor, fieldProps) {
super.init(style);
groupName = group;
if (_parent[group] == null) {
_parent[group] = new com.techsmith.ui.RadioButtonGroup();
}
radioGroup = _parent[group];
if (font == null) {
font = "Arial";
}
if (size == null) {
size = 12;
}
if (weight == null) {
weight = false;
}
if (highlightColor == null) {
this.highlightColor = 13421772 /* 0xCCCCCC */;
} else {
this.highlightColor = highlightColor;
}
radioGroup.addRadioButton(this);
createLabelFormat(font, size, weight);
this.label = label;
__width = w;
var _local11 = __width - ((margin * 2) + indent);
metrics = measure(label, _local11);
__height = Math.max(stateGraphic._height, metrics.textFieldHeight - labelTopIndent);
graphicx = margin;
stateGraphic._x = graphicx;
createLabel();
for (var i in fieldProps) {
labelField[i] = fieldProps[i];
}
setLabel(label);
createHighlight();
}
function createLabelFormat(font, size, weight) {
labelFormat = new TextFormat();
labelFormat.font = font;
labelFormat.size = size;
labelFormat.bold = weight;
labelFormat.align = "left";
labelFormat.color = fontColor;
}
function createLabel() {
var _local2 = (stateGraphic._x + stateGraphic._width) + labelIndent;
createTextField("labelField", 6, _local2, labelTopIndent, __width - ((margin * 2) + _local2), __height);
labelField._x = (margin + stateGraphic._width) + indent;
labelField._y = labelTopIndent;
labelField.html = true;
labelField.multiline = true;
labelField.wordWrap = true;
labelField.autoSize = true;
}
function createHighlight() {
highlight.clear();
com.techsmith.utils.shapes.Rectangle.draw(highlight, highlightColor, __width, _height, 25, null, null);
highlight._visible = isHighlighted;
}
function centerIcon() {
if (__height > stateGraphic.__height) {
graphicy = ((__height - labelTopIndent) - stateGraphic._height) / 2;
stateGraphic._y = graphicy;
}
}
function measure(label, w) {
if (w == null) {
var _local4 = labelFormat.getTextExtent(label);
} else {
var _local4 = labelFormat.getTextExtent(label, w);
}
return(_local4);
}
function onRollOver() {
super.onRollOver();
isHighlighted = true;
highlight._visible = true;
}
function onRollOut() {
super.onRollOut();
isHighlighted = false;
highlight._visible = false;
}
function onRelease() {
if (!selected) {
super.onRelease();
positionIcon();
radioGroup.enforceSelectionRules(this);
}
}
function onReleaseOutside() {
isHighlighted = false;
highlight._visible = false;
}
function destroy() {
if (radioGroup.getSelected() == this) {
radioGroup.setSelected(null);
radioGroup.removeRadioButton(this);
}
super.destroy();
}
function setEnabled(enable) {
super.setEnabled(enable);
if (!enable) {
highlight._visible = false;
}
}
function setSelected(select, groupInited, fireEvent) {
if ((selected == select) && (select)) {
return(undefined);
}
selected = select;
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 (select && ((!groupInited) || (groupInited == null))) {
radioGroup.enforceSelectionRules(this);
}
if (fireEvent) {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE, data:data});
}
}
function setLabel(label) {
if (labelField.html) {
labelField.htmlText = label;
} else {
labelField.text = label;
}
labelField.setTextFormat(labelFormat);
}
function set width(w) {
__height = w;
//return(width);
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function isSelected() {
return(selected);
}
function getGroupName() {
return(groupName);
}
function getGroup() {
return(radioGroup);
}
function getValue() {
if (data == null) {
return(label);
}
return(data.toString());
}
function getData() {
return(data);
}
function setData(data) {
this.data = data;
}
function getLabel() {
return(label);
}
var label = null;
var labelField = null;
var labelFormat = null;
var __width = null;
var __height = null;
var metrics = null;
var highlight = null;
var indent = null;
var margin = 0;
var labelIndent = null;
var labelTopIndent = null;
var isHighlighted = false;
var highlightColor = null;
var groupName = null;
var radioGroup = null;
var data = null;
var style = null;
var useHighlight = true;
var highlightMargin = 25;
var fontColor = 6710886;
}
Symbol 20495 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 20496 MovieClip [__Packages.com.brooksandrus.utils.Collection] Frame 0
class com.brooksandrus.utils.Collection
{
function Collection () {
}
}
Symbol 20497 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 20498 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 20499 MovieClip [__Packages.com.techsmith.ui.UniqueComponentCollection] Frame 0
class com.techsmith.ui.UniqueComponentCollection extends com.techsmith.ui.ComponentCollection
{
var itemExists;
function UniqueComponentCollection () {
super();
}
function addItem(item) {
if (!itemExists(item)) {
return(super.addItem(item));
}
return(false);
}
function addItemAt(item, index) {
if (!itemExists(item)) {
return(super.addItemAt(item, index));
}
return(false);
}
}
Symbol 20500 MovieClip [__Packages.com.techsmith.ui.Slider] Frame 0
class com.techsmith.ui.Slider extends com.techsmith.ui.Component
{
var dispatchEvent, stopDrag;
function Slider () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("Slider", com.techsmith.ui.Slider);
var _local6 = container.attachMovie("Slider", name, depth, init);
return(com.techsmith.ui.Slider(_local6));
}
function init(dim, trackStyle, clickTrackStyle) {
setupThumb();
setupTrack(dim, trackStyle, clickTrackStyle);
initThumbPosition();
setupConstraints();
}
function setupTrack(dim, trackStyle, clickTrackStyle) {
track = com.techsmith.ui.panels.HPanel.create(this, "track", 2);
track.init(dim, trackStyle);
clickTrack = com.techsmith.ui.SliderTrack.create(this, "clickTrack", 3);
clickTrack.init(new com.techsmith.utils.Dimension(dim.width, thumb._height));
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));
}
function setupThumb() {
thumb = com.techsmith.ui.BasicButton.create(this, "thumb", 4);
thumb.init(new com.techsmith.ui.ButtonStyle(thumbStyleShortcut, null, false));
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));
}
function initThumbPosition() {
track.move(0, (thumb._height - track._height) / 2);
var _local2 = track.getDimensions();
var _local3 = thumb.getDimensions();
var _local4 = track.getLocation();
var _local5 = _local3.width / 2;
var _local6 = _local4.x - _local5;
var _local7 = _local4.y - ((_local3.height - _local2.height) / 2);
thumb.move(_local6, _local7);
clickTrack.move(_local4.x, _local7);
}
function setupConstraints() {
var _local2 = track.getDimensions();
var _local3 = thumb.getDimensions();
var _local4 = track.getLocation();
var _local5 = _local3.width / 2;
var _local6 = _local4.x - _local5;
var _local7 = _local4.y - ((_local3.height - _local2.height) / 2);
var _local8 = (_local4.x + _local2.width) - _local5;
constraints = {left:_local6, top:_local7, right:_local8, bottom:_local7, width:Math.abs(_local6) + _local8, height:Math.abs(_local7) * 2};
}
function setSize(dim) {
dimensions = dim;
track.setSize(dim.width, dim.height);
clickTrack.setSize(dim.width, thumb.height);
}
function trackPressHandler(e) {
var _local3 = Math.abs(constraints.left) + Math.abs(constraints.right);
var _local4 = (e.percent / 100) * _local3;
if (constraints.left < 0) {
_local4 = _local4 + constraints.left;
}
if (_local4 <= constraints.right) {
thumb.move(_local4, thumb._y);
}
thumbDragStartHandler({target:track, 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 setConstraints(percent) {
var _local3 = track.getDimensions();
var _local4 = thumb.getDimensions();
var _local5 = track.getLocation();
var _local6 = _local4.width / 2;
var _local7 = _local5.x - _local6;
var _local8 = _local5.y - ((_local4.height - _local3.height) / 2);
var _local9 = (_local5.x + _local3.width) - _local6;
constraints.right = _local3.width * (percent / 100);
}
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 setPosition(percent) {
if (percent < 0) {
percent = 0;
}
if (percent > 100) {
percent = 100;
}
var _local3 = Math.abs(constraints.left) + Math.abs(constraints.right);
var _local4 = (percent / 100) * _local3;
if (constraints.left < 0) {
_local4 = _local4 + constraints.left;
}
thumb.move(_local4, thumb._y);
}
function getThumb(index) {
return(thumb);
}
var trackBase = null;
var track = null;
var clickTrack = null;
var trackStyle = null;
var trackBaseStyle = null;
var thumb = null;
var thumbStyle = null;
var constraints = null;
var dimensions = null;
var thumbStyleShortcut = "SliderThumb";
}
Symbol 20501 MovieClip [__Packages.com.techsmith.camtasia.quiz.questions.QuestionBase] Frame 0
class com.techsmith.camtasia.quiz.questions.QuestionBase extends com.techsmith.ui.Component
{
var createEmptyMovieClip, createTextField, dispatchEvent;
function QuestionBase () {
super();
}
function init(w, h, questionData) {
qWidth = w;
qHeight = h;
this.questionData = questionData;
question = questionData.question;
createQuestionField();
}
function drawBackground() {
background.removeMovieClip();
background = createEmptyMovieClip("background", 1);
var _local2 = new com.brooksandrus.drawing.Rect();
_local2.draw(background, qWidth, qHeight + 5, 16711680, 0);
}
function createQuestionField() {
questionFormat = new TextFormat();
questionFormat.align = "left";
questionFormat.font = (((cStyle.question.font != undefined) && (cStyle.question.font != "")) ? (cStyle.question.font) : "Arial");
questionFormat.bold = (((cStyle.question.bold != undefined) && (cStyle.question.bold != "")) ? (cStyle.question.bold) : false);
questionFormat.italic = (((cStyle.question.italic != undefined) && (cStyle.question.italic != "")) ? (cStyle.question.italic) : false);
questionFormat.underline = (((cStyle.question.underline != undefined) && (cStyle.question.underline != "")) ? (cStyle.question.underline) : false);
questionFormat.size = (((cStyle.question.size != undefined) && (cStyle.question.size != "")) ? (cStyle.question.size) : 14);
questionFormat.color = (((cStyle.question.color != undefined) && (cStyle.question.color != "")) ? (_global.parseInt(cStyle.question.color, 16)) : 16777215);
var _local2 = questionFormat.getTextExtent(question, QUESTION_TEXT_WIDTH);
questionHeight = _local2.textFieldHeight;
createTextField("questionField", 7, 13, 10, QUESTION_TEXT_WIDTH, questionHeight);
questionField.multiline = true;
questionField.wordWrap = true;
questionField.html = false;
}
function changedAnswer() {
dispatchEvent({target:this, type:com.techsmith.events.Events.CHANGE});
}
function notImpl() {
}
function setQuestion(q) {
question = q;
if (questionField.html) {
questionField.htmlText = q;
} else {
questionField.text = q;
}
questionField.setTextFormat(questionFormat);
}
function getAnswer() {
notImpl();
return(null);
}
function isCorrect() {
notImpl();
return(false);
}
function isReadyToSubmit() {
return(getAnswer() != "");
}
function isSurvey() {
return(questionData.survey);
}
function hasFeedback() {
return(questionData.feedback);
}
function getUserData() {
return({strAnswer:getAnswer(), bCorrect:isCorrect()});
}
function getFeedback() {
if (!hasFeedback()) {
return({strFeedback:"", strDetailedFeedback:""});
}
return({strFeedback:(isCorrect() ? (questionData.correct) : (questionData.incorrect)), strDetailedFeedback:""});
}
function getSubmitButtonText() {
return(questionData.submit);
}
function adjustForScrollBar(hasScroll) {
var _local3 = (hasScroll ? (QUESTION_TEXT_WIDTH - 16) : (QUESTION_TEXT_WIDTH));
if (questionField._width == _local3) {
return(undefined);
}
questionField._width = _local3;
var _local4 = questionFormat.getTextExtent(question, questionField._width);
questionField._height = (questionHeight = _local4.textFieldHeight);
}
static var QUESTION_PADDING = 10;
static var QUESTION_TEXT_WIDTH = 417;
var qWidth = null;
var qHeight = null;
var questionData = null;
var question = null;
var questionField = null;
var questionFormat = null;
var questionHeight = null;
var fontColor = 16777215;
var cStyle = null;
var background = null;
}
Symbol 20502 MovieClip [__Packages.com.techsmith.camtasia.quiz.IQuestion] Frame 0
class com.techsmith.camtasia.quiz.IQuestion
{
function IQuestion () {
}
}
Symbol 20503 MovieClip [__Packages.com.techsmith.camtasia.quiz.questions.ShortAnswer] Frame 0
class com.techsmith.camtasia.quiz.questions.ShortAnswer extends com.techsmith.camtasia.quiz.questions.QuestionBase implements com.techsmith.camtasia.quiz.IQuestion
{
var setQuestion, questionData, cStyle, qHeight, questionHeight, questionField, adjustForScrollBar, changedAnswer, isSurvey;
function ShortAnswer () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("ShortAnswer", com.techsmith.camtasia.quiz.questions.ShortAnswer);
var _local6 = container.attachMovie("ShortAnswer", name, depth, init);
return(com.techsmith.camtasia.quiz.questions.ShortAnswer(_local6));
}
function init(w, h, objQuestionData) {
super.init(w, h, objQuestionData);
createQuestion();
}
function createQuestion() {
setQuestion(questionData.question);
var _local2 = (((cStyle.answer.color != undefined) && (cStyle.answer.color != "")) ? (cStyle.answer.color) : "FFFFFF");
answer = com.techsmith.ui.TextArea.create(this, "answer", 10, {border:false, fillOpacity:20, type:"input", textColor:_local2, html:false});
var _local3 = 75;
var _local4 = com.techsmith.camtasia.quiz.questions.QuestionBase.QUESTION_PADDING + vPadding;
if ((((questionField._y + questionHeight) + _local4) + _local3) > qHeight) {
adjustForScrollBar(true);
}
var _local5 = Math.max(qHeight - (questionHeight + (_local4 * 2)), _local3);
var _local6 = contentWidth - (vPadding * 4);
answer.init(_local6, _local5, null, {tabIndex:com.techsmith.utils.AccessibilityUtil.getNextTabIndex()});
answer.move(questionField._x, questionHeight + _local4);
answer.addEventListener("enter", {handleEvent:function () {
trace("answer <enter>");
}});
answer.addEventListener("change", com.techsmith.utils.Delegate.create(this, changedAnswer));
if (questionData.userData.strAnswer != undefined) {
answer.setText(questionData.userData.strAnswer);
}
changedAnswer();
answer.giveFocus();
}
function dispose() {
answer.removeAllListeners();
answer.destroy();
super.destroy();
}
function onUnload() {
answer.removeEventListener("enter", this);
answer.removeEventListener("change", this);
}
function getAnswer() {
return(answer.getText());
}
function isCorrect() {
if (isSurvey()) {
return(true);
}
for (var idx in questionData.arrFITBAnswers) {
if (questionData.arrFITBAnswers[idx].toLowerCase() == getAnswer().toLowerCase()) {
return(true);
}
}
return(false);
}
function enable(bEnable) {
answer.setEnabled(bEnable);
answer.tabEnabled = bEnable;
}
var answer = null;
var contentWidth = 460;
var vPadding = 10;
}
Symbol 20504 MovieClip [__Packages.com.techsmith.ui.OneStateButton] Frame 0
class com.techsmith.ui.OneStateButton extends com.techsmith.ui.ButtonBase
{
var graphic, attachMovie;
function OneStateButton () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("OneStateButton", com.techsmith.ui.OneStateButton);
var _local6 = container.attachMovie("OneStateButton", name, depth, init);
return(com.techsmith.ui.OneStateButton(_local6));
}
function init(id) {
graphic = attachMovie(id, "graphic", 3);
}
}
Symbol 20505 MovieClip [__Packages.com.techsmith.ui.LabelButton] Frame 0
class com.techsmith.ui.LabelButton extends com.techsmith.ui.ButtonBase
{
var _height, createLabel, tabEnabled;
function LabelButton () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("LabelButton", com.techsmith.ui.LabelButton);
var _local6 = container.attachMovie("LabelButton", name, depth, init);
return(com.techsmith.ui.LabelButton(_local6));
}
function init(label, width, tf, styles) {
if (label == null) {
label = "";
}
if (width == null) {
width = 100;
}
if (styles.up == null) {
up = new com.techsmith.ui.panels.PanelStyle("ButtonLUp", "ButtonMUp", "ButtonRUp");
} else {
up = styles.up;
}
if (styles.over == null) {
over = new com.techsmith.ui.panels.PanelStyle("ButtonLOver", "ButtonMOver", "ButtonROver");
} else {
over = styles.over;
}
if (styles.down == null) {
down = new com.techsmith.ui.panels.PanelStyle("ButtonLDown", "ButtonMDown", "ButtonRDown");
} else {
down = styles.down;
}
if (styles.disabled == null) {
disabled = new com.techsmith.ui.panels.PanelStyle("ButtonLDisabled", "ButtonMDisabled", "ButtonRDisabled");
} else {
disabled = styles.disabled;
}
graphic = com.techsmith.ui.panels.HPanel.create(this, "graphic", 1);
graphic.init(new com.techsmith.utils.Dimension(width, height), up);
text = label;
this.width = width;
createTextFormat(tf);
createLabelField();
setLabel(text);
}
function createLabelField() {
var _local2 = format.getTextExtent("Test");
var _local3 = _height;
label = createLabel("label", {depth:2, x:0, y:0, w:width, h:_local2.textFieldHeight});
if (label._height > _local3) {
label._y = -(((label._height + 1) - _local3) / 2);
} else {
label._y = (_height - label._height) / 2;
}
label._x = 0;
label.html = true;
label.embedFonts = embedFont;
}
function createTextFormat(obj) {
if (obj == null) {
format = new TextFormat();
format.align = "center";
format.font = "Arial";
format.size = defaultFontSize;
format.leftMargin = 2;
format.rightMargin = 2;
format.color = defaultFontColor;
} else {
format = obj;
}
defaultFontColor = format.color;
}
function setSize(width, height) {
this.width = width;
this.height = height;
label._width = width;
graphic.setSize(width, graphic._height);
}
function setLabel(text) {
this.text = text;
label.htmlText = text;
label.setTextFormat(format);
}
function setEnabled(enable) {
if (graphic.enabled != enable) {
graphic.enabled = enable;
tabEnabled = enable;
if (!enable) {
format.color = disabledFontColor;
graphic.init(new com.techsmith.utils.Dimension(width, height), disabled);
} else {
format.color = defaultFontColor;
if (overState) {
graphic.init(new com.techsmith.utils.Dimension(width, height), over);
} else {
graphic.init(new com.techsmith.utils.Dimension(width, height), up);
}
}
label.setTextFormat(format);
}
}
function onRollOver() {
overState = true;
if (graphic.enabled) {
graphic.init(new com.techsmith.utils.Dimension(width, height), over);
super.onRollOver();
}
}
function onRollOut() {
overState = false;
if (graphic.enabled) {
graphic.init(new com.techsmith.utils.Dimension(width, height), up);
super.onRollOut();
}
}
function onPress() {
if (graphic.enabled) {
graphic.init(new com.techsmith.utils.Dimension(width, height), down);
super.onPress();
}
}
function onRelease() {
if (graphic.enabled) {
graphic.init(new com.techsmith.utils.Dimension(width, height), up);
super.onRelease();
}
}
function onReleaseOutside() {
overState = false;
if (graphic.enabled) {
graphic.init(new com.techsmith.utils.Dimension(width, height), up);
super.onReleaseOutside();
}
}
var text = null;
var label = null;
var format = null;
var width = null;
var height = 27;
var disabledFontColor = 13555676;
var defaultFontColor = 0;
var defaultFontSize = 12;
var graphic = null;
var embedFont = false;
var up = null;
var over = null;
var down = null;
var disabled = null;
var mask = null;
var overState = false;
}
Symbol 20506 MovieClip [__Packages.com.techsmith.media.Media] Frame 0
class com.techsmith.media.Media extends com.techsmith.ui.Component
{
function Media () {
super();
}
function load(url, autostart, fps, length) {
}
function pauseMedia() {
}
function playMedia() {
}
function seek(time) {
}
function getTime() {
return(null);
}
function getContent() {
return(null);
}
function isPlaying() {
return(null);
}
function addMask(mask) {
}
function setSize(dim) {
}
function getDuration() {
return(duration);
}
function setDuration(seconds) {
duration = seconds;
}
function getMediaType() {
return(fileUrl.substr(fileUrl.lastIndexOf(".") + 1));
}
function setSmoothing(bl) {
}
var fileUrl = null;
var streamingUrl = null;
var dimensions = null;
var duration = null;
var loading = true;
var autostart = null;
var playing = false;
var loop = false;
}
Symbol 20507 MovieClip [__Packages.com.techsmith.ui.canvas.ICanvasFactory] Frame 0
class com.techsmith.ui.canvas.ICanvasFactory
{
function ICanvasFactory () {
}
}
Symbol 20508 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 20509 MovieClip [__Packages.com.techsmith.camtasia.quiz.QuizContent] Frame 0
class com.techsmith.camtasia.quiz.QuizContent extends com.techsmith.ui.Component implements com.techsmith.camtasia.quiz.IQuestion
{
var qwidth, qheight, background, scrollpane, attachMovie, question, dispatchEvent;
function QuizContent () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("QuizContent", com.techsmith.camtasia.quiz.QuizContent);
var _local6 = container.attachMovie("QuizContent", name, depth, init);
return(com.techsmith.camtasia.quiz.QuizContent(_local6));
}
function init(w, h, questionData) {
qwidth = w;
qheight = h;
background = com.techsmith.ui.ComponentRect.create(this, "background", 1);
background.init(new com.techsmith.utils.Dimension(w, h), [16777215], [10], [255], {thickness:1, rgb:16777215, alpha:100});
scrollpane = mx.containers.ScrollPane(attachMovie("ScrollPane", "scrollpane", 2));
scrollpane.setStyle("borderStyle", "none");
scrollpane.hScrollPolicy = "none";
scrollpane.vPageScrollSize = 60;
scrollpane.vLineScrollSize = 30;
scrollpane.setSize(w, h);
scrollpane.contentPath = "ScrollContent";
}
function createQuestion(type, qdata, init) {
com.techsmith.ui.Component(question).removeAllListeners();
question.dispose();
switch (type.substr(0, 4)) {
case "fitb" :
question = com.techsmith.camtasia.quiz.IQuestion(com.techsmith.camtasia.quiz.questions.FIB.create(scrollpane.content, "question", 1, init));
break;
case "mult" :
question = com.techsmith.camtasia.quiz.IQuestion(com.techsmith.camtasia.quiz.questions.MultipleChoice.create(scrollpane.content, "question", 1, init));
break;
case "shor" :
question = com.techsmith.camtasia.quiz.IQuestion(com.techsmith.camtasia.quiz.questions.ShortAnswer.create(scrollpane.content, "question", 1, init));
break;
case "tf" :
question = com.techsmith.camtasia.quiz.IQuestion(com.techsmith.camtasia.quiz.questions.TrueFalse.create(scrollpane.content, "question", 1, init));
break;
case "likert" :
question = com.techsmith.camtasia.quiz.IQuestion(com.techsmith.camtasia.quiz.questions.Likert.create(scrollpane.content, "question", 1, init));
break;
default :
question = com.techsmith.camtasia.quiz.IQuestion(com.techsmith.camtasia.quiz.questions.MultipleChoice.create(scrollpane.content, "question", 1, init));
}
question.init(qwidth, qheight, qdata);
com.techsmith.ui.Component(question).addEventListener(com.techsmith.events.Events.CHANGE, com.techsmith.utils.Delegate.create(this, answerChangedHandler));
scrollpane.vPosition = 0;
scrollpane.size();
_global.setTimeout(scrollBug, 100);
}
function scrollBug() {
scrollpane.size();
}
function isReadyToSubmit() {
return(question.isReadyToSubmit());
}
function getUserData() {
return(question.getUserData());
}
function hasFeedback() {
return(question.hasFeedback());
}
function getFeedback() {
return(question.getFeedback());
}
function enable(enable) {
question.enable(enable);
}
function getSubmitButtonText() {
return(question.getSubmitButtonText());
}
function dispose() {
com.techsmith.ui.Component(question).destroy();
question.dispose();
scrollpane.removeMovieClip();
super.destroy();
}
function isCorrect() {
return(question.isCorrect());
}
function destroy() {
dispose();
}
function answerChangedHandler(e) {
e.questionType = e.target;
e.target = this;
e.type = com.techsmith.events.Events.CHANGE;
dispatchEvent(e);
}
}
Symbol 20510 MovieClip [__Packages.com.techsmith.camtasia.CaptionWindow] Frame 0
class com.techsmith.camtasia.CaptionWindow extends com.techsmith.ui.Component
{
var createEmptyMovieClip, createLabel, _visible, dispatchEvent, focusEnabled;
function CaptionWindow () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("CaptionWindow", com.techsmith.camtasia.CaptionWindow);
var _local6 = container.attachMovie("CaptionWindow", name, depth, init);
return(com.techsmith.camtasia.CaptionWindow(_local6));
}
function init(width, fontColor, fontFace, fontSize, bold, panelColor, panelOpacity, cpl) {
dolaterClip = createEmptyMovieClip("dolaterClip", 909);
if (fontColor != null) {
color = fontColor;
}
if (fontFace != null) {
face = fontFace;
}
if (fontSize != null) {
size = fontSize;
}
if (panelColor != null) {
bgColor = panelColor;
}
if (panelOpacity != null) {
bgOpacity = panelOpacity;
}
if (cpl != null) {
charsPerLine = cpl;
}
format = new TextFormat();
format.font = face;
format.align = "center";
format.size = size;
format.color = color;
var _local10 = "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW\nWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW\nWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW";
var _local11 = face == "dinot";
var _local12 = width * 0.8;
var _local13 = (width - (width * 0.8)) / 2;
field = createLabel("field", {depth:2, x:_local13, y:0, w:_local12, h:0}, {wordWrap:true, multiline:true, autoSize:"center", html:true, embedFonts:_local11});
field.width = _local12;
field.x = _local13;
setText(_local10);
var _local14 = field._height + 10;
field._height = _local14;
field.autoSize = "none";
setText("");
background = createEmptyMovieClip("background", 1);
var _local15 = new com.brooksandrus.drawing.Rect();
_local15.draw(background, width, _local14, panelColor, panelOpacity);
}
function setText(caption) {
field.htmlText = RTFtoHTML(caption);
field.setTextFormat(format);
}
function RTFtoHTML(val) {
var _local3 = val;
if (_local3 == null) {
return("");
}
var _local4 = false;
if (_local3.indexOf("{\\rtf1") != -1) {
_local3 = _local3.split("{\\rtf1 ").join("");
_local4 = true;
}
_local3 = _local3.split("\\i ").join("<i>");
_local3 = _local3.split("\\i0 ").join("</i>");
_local3 = _local3.split("\\b ").join("<b>");
_local3 = _local3.split("\\b0 ").join("</b>");
_local3 = _local3.split("\\ul ").join("<u>");
_local3 = _local3.split("\\ul0 ").join("</u>");
_local3 = _local3.split("\\par ").join("<BR>");
_local3 = _local3.split("\\\\").join("\\");
_local3 = _local3.split("\\{").join("{");
_local3 = _local3.split("\\}").join("}");
if (_local4 && (_local3.charAt(_local3.length - 1) == "}")) {
_local3 = _local3.substr(0, _local3.length - 1);
}
return(_local3);
}
function setAlignment(val) {
if ((val == "left") || (val == "right")) {
format.align = val;
} else {
format.align = "center";
}
}
function hide(hideCaptions) {
if (hideCaptions) {
_visible = false;
} else {
_visible = true;
}
}
function find(captions, time) {
var _local4 = false;
var _local5 = captions.length;
var _local6 = 0;
for ( ; _local6 < _local5 ; _local6++) {
var _local7 = captions[_local6];
if (_local7.Time > time) {
if (_local6 > 0) {
_local4 = true;
setAlignment(captions[_local6 - 1].align);
setText(captions[_local6 - 1].Caption);
if (captions[_local6 - 1].Caption != accText) {
accText = captions[_local6 - 1].Caption;
dispatchEvent({type:"captionChange", target:this, caption:captions[_local6 - 1].Caption});
accChangeHandler(captions[_local6 - 1].Caption);
}
}
break;
}
if (_local6 == (_local5 - 1)) {
_local4 = true;
setAlignment(captions[_local6].align);
setText(captions[_local6].Caption);
if (captions[_local6].Caption != accText) {
accText = captions[_local6].Caption;
dispatchEvent({type:"captionChange", target:this, caption:captions[_local6].Caption});
accChangeHandler(captions[_local6].Caption);
}
}
}
if (!_local4) {
setAlignment("");
setText("");
dispatchEvent({type:"captionChange", target:this, caption:""});
}
}
function doLater(func, args) {
dolaterClip.onEnterFrame = com.techsmith.utils.Delegate.create(this, executeDoLater, func, args);
}
function executeDoLater(func, args) {
framepass--;
if (framepass == 0) {
delete dolaterClip.onEnterFrame;
func.apply(this, args);
}
}
function accChangeHandler(aText) {
if (Accessibility.isActive()) {
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:this, name:null, description:field.text, shortcut:null});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
if (Selection.getFocus() == String(this)) {
doLater(SetDistpatchFocusHandler);
}
}
}
function SetDistpatchFocusHandler() {
focusEnabled = false;
Selection.setFocus(null);
focusEnabled = true;
Selection.setFocus(this);
}
var color = 16777215;
var face = "Arial";
var size = 23;
var weight = false;
var bgColor = 0;
var bgOpacity = 0;
var charsPerLine = 32;
var format = null;
var field = null;
var background = null;
var dolaterClip = null;
var accText = null;
var framepass = 5;
}
Symbol 20511 MovieClip [__Packages.com.techsmith.camtasia.StartScreen] Frame 0
class com.techsmith.camtasia.StartScreen extends com.techsmith.ui.Component
{
var background, createEmptyMovieClip, thumbnail, begin, label, dispatchEvent, removeAllListeners;
function StartScreen () {
super();
background = createEmptyMovieClip("background", 1);
thumbnail = com.techsmith.ui.BitmapReflectingThumb.create(this, "thumbnail", 2);
begin = com.techsmith.ui.StartWidget.create(this, "begin", 3, {pixels:blurHeight});
thumbnail._visible = false;
thumbnail.outline = true;
thumbnail.gradientFade = 1;
}
static function create(container, name, depth, init) {
Object.registerClass("StartScreen", com.techsmith.camtasia.StartScreen);
var _local6 = container.attachMovie("StartScreen", name, depth, init);
return(com.techsmith.camtasia.StartScreen(_local6));
}
function init(src, dim, icon, text) {
labelIcon = ((icon != null) ? (icon) : "");
labelText = ((text != null) ? (text) : "");
src._visible = true;
thumbnail.createBitmap(src, scale * dim.width, com.techsmith.ui.Bitmap.HORIZONTAL_CONSTRAINT);
src._visible = false;
thumbnail._visible = true;
var _local6 = 1;
var _local7 = ((thumbnail._height / 2) - blurHeight) / 2;
var _local8 = new flash.geom.Rectangle(_local6, _local7, thumbnail._width - (_local6 * 2), blurHeight);
begin.init(thumbnail, com.techsmith.ui.panels.Slice9Panel, new com.techsmith.ui.panels.PanelStyle("BeginBGTL", "BeginBGTM", "BeginBGTR", "BeginBGCL", "BeginBGCM", "BeginBGCR", "BeginBGBL", "BeginBGBM", "BeginBGBR"), _local8, false);
var _local9 = [100, 100];
var _local10 = [0, 255];
var _local11 = new com.brooksandrus.drawing.Rect();
_local11.gdraw(background, dim.width, dim.height, colors, _local9, _local10);
if (scale > 0.6) {
var _local12 = (scale - 0.6) / 0.4;
if (_local12 < 0.97) {
_local12 = _local12 + 0.05;
}
YFactor = 3 - (1 * _local12);
}
var _local13 = thumbnail._height / 4;
var _local14 = (dim.width - thumbnail._width) / 2;
var _local15 = ((dim.height - (_local13 * YFactor)) / 2) + 0.5;
thumbnail.move(_local14, -thumbnail._height);
begin.move(_local14 + _local6, thumbnail._y + _local7);
var _local16 = new TextFormat();
_local16.font = "Arial";
_local16.align = "left";
_local16.size = 12;
_local16.color = 16777215 /* 0xFFFFFF */;
_local16.bold = false;
label = com.techsmith.ui.Label.create(this, "label", 4, {multiline:false, url:labelIcon, labelPosition:com.techsmith.ui.Label.TEXT_LEFT});
label.setFormat(_local16);
label.setText(labelText);
label.move(_local14 + (thumbnail._width - label._width), thumbnail._y + (_local13 * YFactor));
begin.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, beginHandler));
begin.getButton().tabIndex = 10;
var _local17 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().startbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().startbutton) : "Begin Video");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:begin.getButton(), name:_local17, description:null, shortcut:null});
var _local18 = new com.mosesSupposes.fuse.Fuse();
_local18.push({Blur_blur:50, seconds:0, delay:0});
_local18.push({Blur_blur:0, y:_local15, ease:com.mosesSupposes.fuse.PennerEasing.easeInQuart, seconds:0.5, delay:0});
var _local19 = new com.mosesSupposes.fuse.Fuse();
_local19.push({Blur_blur:50, seconds:0, delay:0});
_local19.push({Blur_blur:0, y:_local15 + _local7, ease:com.mosesSupposes.fuse.PennerEasing.easeInQuart, seconds:0.5, delay:0});
var _local20 = new com.mosesSupposes.fuse.Fuse();
_local20.push({Blur_blur:50, seconds:0, delay:0});
_local20.push({Blur_blur:0, y:_local15 + (_local13 * YFactor), ease:com.mosesSupposes.fuse.PennerEasing.easeInQuart, seconds:0.5, delay:0});
src._visible = true;
thumbnail.animate(_local18, false);
begin.animate(_local19, false);
label.animate(_local20, false);
}
function beginHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE});
}
function destroy() {
begin.removeAllListeners();
removeAllListeners();
super.destroy();
}
function setPercent(percent) {
begin.setProgress(percent);
}
var colors = [1710618, 1710618];
var labelIcon = "CamtasiaLogo";
var labelText = "Created with";
var blurHeight = 60;
var scale = 1;
var YFactor = 3;
}
Symbol 20512 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 20513 MovieClip [__Packages.com.techsmith.ui.canvas.ICanvasStyleFactory] Frame 0
class com.techsmith.ui.canvas.ICanvasStyleFactory
{
function ICanvasStyleFactory () {
}
}
Symbol 20514 MovieClip [__Packages.com.techsmith.camtasia.quiz.FeedbackContent] Frame 0
class com.techsmith.camtasia.quiz.FeedbackContent extends com.techsmith.ui.Component
{
var qlevel, alevel;
function FeedbackContent () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("FeedbackContent", com.techsmith.camtasia.quiz.FeedbackContent);
var _local6 = container.attachMovie("FeedbackContent", name, depth, init);
return(com.techsmith.camtasia.quiz.FeedbackContent(_local6));
}
function init(dim) {
var _local3 = new TextFormat();
_local3.font = (((fStyle.question.font != undefined) && (fStyle.question.font != "")) ? (fStyle.question.font) : "Arial");
_local3.size = (((fStyle.question.size != undefined) && (fStyle.question.size != "")) ? (fStyle.question.size) : 30);
_local3.bold = (((fStyle.question.bold != undefined) && (fStyle.question.bold != "")) ? (fStyle.question.bold) : true);
_local3.italic = (((fStyle.question.italic != undefined) && (fStyle.question.italic != "")) ? (fStyle.question.italic) : false);
_local3.underline = (((fStyle.question.underline != undefined) && (fStyle.statusformat.underline != "")) ? (fStyle.question.underline) : false);
_local3.align = (((fStyle.question.align != undefined) && (fStyle.question.align != "")) ? (fStyle.question.align) : "center");
_local3.color = (((fStyle.question.color != undefined) && (fStyle.question.color != "")) ? (_global.parseInt(fStyle.question.color, 16)) : 3355443);
qhtmltext = (((fStyle.question.htmltext != undefined) && (fStyle.question.htmltext != "")) ? (fStyle.question.htmltext) : false);
var _local4 = new TextFormat();
_local4.font = (((fStyle.answer.font != undefined) && (fStyle.answer.font != "")) ? (fStyle.answer.font) : "Arial");
_local4.size = (((fStyle.answer.size != undefined) && (fStyle.answer.size != "")) ? (fStyle.answer.size) : 14);
_local4.bold = (((fStyle.answer.bold != undefined) && (fStyle.answer.bold != "")) ? (fStyle.answer.bold) : false);
_local4.italic = (((fStyle.answer.italic != undefined) && (fStyle.answer.italic != "")) ? (fStyle.answer.italic) : false);
_local4.underline = (((fStyle.answer.underline != undefined) && (fStyle.answer.underline != "")) ? (fStyle.answer.underline) : false);
_local4.align = (((fStyle.answer.align != undefined) && (fStyle.answer.align != "")) ? (fStyle.answer.align) : "center");
_local4.leftMargin = 10;
_local4.rightMargin = 10;
_local4.color = (((fStyle.answer.color != undefined) && (fStyle.answer.color != "")) ? (_global.parseInt(fStyle.answer.color, 16)) : 3355443);
ahtmltext = (((fStyle.answer.htmltext != undefined) && (fStyle.answer.htmltext != "")) ? (fStyle.answer.htmltext) : false);
if (qhtmltext) {
var _local5 = new TextField.StyleSheet();
var _local6 = (((fStyle.question.color != undefined) && (fStyle.question.color != "")) ? ("#" + fStyle.question.color) : "#333333");
_local5.setStyle("p", {fontFamily:_local3.font, color:_local6, fontSize:_local3.size + "px"});
_local5.setStyle("a:link", {color:_local6, textDecoration:"none"});
_local5.setStyle("a:hover", {color:_local6, textDecoration:"underline"});
qlevel = com.techsmith.ui.TextObject.create(this, "qlevel", 1, {border:false, fillOpacity:0, strokeColor:3355443, strokeOpacity:0, align:"center", selectable:false, html:qhtmltext, textColor:"333333", stylesheet:_local5});
} else {
qlevel = com.techsmith.ui.TextObject.create(this, "qlevel", 1, {border:false, fillOpacity:0, strokeColor:3355443, strokeOpacity:0, align:"center", selectable:false, textColor:"333333"});
}
if (ahtmltext) {
var _local7 = new TextField.StyleSheet();
var _local8 = (((fStyle.answer.color != undefined) && (fStyle.answer.color != "")) ? ("#" + fStyle.answer.color) : "#333333");
_local7.setStyle("p", {fontFamily:_local4.font, color:_local8, fontSize:_local4.size + "px"});
_local7.setStyle("a:link", {color:_local8, textDecoration:"none", textAlign:"right"});
_local7.setStyle("a:hover", {color:_local8, textDecoration:"underline"});
alevel = com.techsmith.ui.TextArea.create(this, "alvel", 2, {border:false, fillOpacity:0, strokeColor:3355443, strokeOpacity:0, align:"center", selectable:false, html:ahtmltext, textColor:"333333", stylesheet:_local7});
} else {
alevel = com.techsmith.ui.TextArea.create(this, "alvel", 2, {border:false, fillOpacity:0, strokeColor:3355443, strokeOpacity:0, align:"center", selectable:false, textColor:"333333"});
}
qlevel.init(dim.width, qHeight, _local3);
alevel.init(dim.width, dim.height - (qHeight + hPadding), _local4);
alevel.move(qlevel.x, (qlevel.y + qlevel.height) + hPadding);
}
function setFeedback(q, a) {
if (q != null) {
if (qhtmltext) {
qlevel.setText(("<p>" + q) + "</p>");
} else {
qlevel.setText(q);
}
}
if (a != null) {
if (qhtmltext) {
alevel.setText(("<p>" + a) + "</p>");
} else {
alevel.setText(a);
}
}
}
var qHeight = 44;
var hPadding = 8;
var fStyle = null;
var qhtmltext = false;
var ahtmltext = false;
}
Symbol 20515 MovieClip [__Packages.com.techsmith.ui.RadioButtonGroup] Frame 0
class com.techsmith.ui.RadioButtonGroup implements com.techsmith.events.IEventDispatcher
{
var dispatcher, collection, selected;
function RadioButtonGroup () {
dispatcher = new com.techsmith.events.EventDispatcher();
collection = new com.techsmith.ui.UniqueComponentCollection();
}
function addRadioButton(button) {
collection.addItem(button);
button.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, clickHandler));
}
function removeRadioButton(button) {
collection.removeItem(button);
}
function clickHandler(e) {
selected = e.target;
e.button = e.target;
e.target = this;
dispatchEvent(e);
}
function destroy() {
var _local4 = collection.getIterator();
while (_local4.hasNext()) {
var _local3 = com.techsmith.ui.RadioButton(_local4.next());
_local3.destroy();
}
super.destroy();
}
function enforceSelectionRules(button) {
var _local3 = collection.getIterator();
while (_local3.hasNext()) {
var _local4 = com.techsmith.ui.RadioButton(_local3.next());
if (_local4 != button) {
_local4.setSelected(false, true);
} else {
selected = _local4;
}
}
}
function setSelected(button) {
selected = button;
button.setSelected(true);
enforceSelectionRules(button);
}
function setEnabled(enable) {
var _local4 = collection.getIterator();
while (_local4.hasNext()) {
var _local3 = com.techsmith.ui.RadioButton(_local4.next());
_local3.setEnabled(enable);
}
}
function getSelected() {
return(selected);
}
function getSelectedName() {
return(selected._name);
}
function getValue() {
return(selected.getValue());
}
function getLabel() {
return(selected.getLabel());
}
function getData() {
return(selected.getData());
}
function setData(data) {
if (selected != null) {
selected.setData(data);
return(true);
}
return(false);
}
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();
}
}
Symbol 20516 MovieClip [__Packages.com.techsmith.camtasia.hotspot.HotspotContainer] Frame 0
class com.techsmith.camtasia.hotspot.HotspotContainer extends com.techsmith.ui.Component
{
var _warning, dispatchEvent, getURL;
function HotspotContainer () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("HotspotContainer", com.techsmith.camtasia.hotspot.HotspotContainer);
var _local6 = container.attachMovie("HotspotContainer", name, depth, init);
return(com.techsmith.camtasia.hotspot.HotspotContainer(_local6));
}
function set warning(message) {
_warning = message;
//return(warning);
}
function get warning() {
return(_warning);
}
function insecureDomain(currentDomain) {
var _local3 = false;
if ((warning == null) || (warning == "")) {
return(_local3);
}
var _local4 = System.security.sandboxType;
if ((_local4 == "localWithFile") || ((_local4 == "localTrusted") || ((_local4 == undefined) && (currentDomain.substr(0, 5).toLowerCase() == "file:")))) {
_local3 = true;
}
return(_local3);
}
function find(hotspots, time, fps) {
var _local5 = false;
var _local6 = hotspots.length;
var _local7 = 0;
for ( ; _local7 < _local6 ; _local7++) {
var _local8 = this["hs" + _local7];
var _local9 = _local8 == null;
if ((time >= hotspots[_local7].start) && (time <= hotspots[_local7].end)) {
if (_local9) {
_local8 = com.techsmith.camtasia.hotspot.Hotspot.create(this, "hs" + _local7, _local7, {id:_local7, debugging:false});
_local8.tabIndex = 3000 + _local7;
var _local10 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().hotspotbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().hotspotbutton) : "Hotspot");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:_local8, name:(_local10 + " ") + (_local7 + 1), description:"", shortcut:null});
_local8.init(hotspots[_local7].start, hotspots[_local7].end, hotspots[_local7].x0, hotspots[_local7].y0, hotspots[_local7].x1, hotspots[_local7].y1, hotspots[_local7].pause, hotspots[_local7].time, hotspots[_local7].url, hotspots[_local7].jumpandplay, hotspots[_local7].newWindow);
_local8.move(hotspots[_local7].x0 + (_local8._width / 2), hotspots[_local7].y0 + (_local8._height / 2));
_local8._rotation = ((hotspots[_local7].rotation != undefined) ? (hotspots[_local7].rotation) : 0);
_local8.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, clickHandler));
}
var _local11 = _local8.end;
var _local12 = 1 / fps;
var _local13 = Number(String(time));
var _local14 = Number(String(_local11 - _local12));
var _local15 = Number(String(_local11 + _local12));
if (_local8.pause && (!_local5)) {
if ((_local13 > _local14) && (_local13 < _local15)) {
if (!_local5) {
_local5 = true;
dispatchEvent({type:com.techsmith.events.Events.CHANGE, target:this, id:_local8.id});
}
}
}
} else if (!_local9) {
_local8.destroy();
}
}
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
}
function clickHandler(e) {
var _local3 = e.action;
var _local4 = e.directive;
switch (_local4) {
case com.techsmith.camtasia.hotspot.HotspotConstants.GET_URL :
if (!checkxss(_local3.url)) {
getURL(_local3.url, _local3.target);
dispatchEvent({type:com.techsmith.events.Events.MOUSE_RELEASE, target:this, id:e.id, action:_local4, url:_local3.url, urltarget:_local3.target});
}
break;
case com.techsmith.camtasia.hotspot.HotspotConstants.SEEK_TIME :
dispatchEvent({type:com.techsmith.events.Events.MOUSE_RELEASE, target:this, id:e.id, action:_local4, time:_local3.time, jumpandplay:true});
break;
case com.techsmith.camtasia.hotspot.HotspotConstants.NONE :
dispatchEvent({type:com.techsmith.events.Events.MOUSE_RELEASE, target:this, id:e.id, action:_local4});
}
}
function checkxss(a) {
if (a.toLowerCase().split(" ").join("").indexOf("javascript:") != -1) {
return(true);
}
return(false);
}
function resetPauseFlags() {
}
}
Symbol 20517 MovieClip [__Packages.com.techsmith.ui.canvas.CanvasFactory] Frame 0
class com.techsmith.ui.canvas.CanvasFactory implements com.techsmith.ui.canvas.ICanvasFactory
{
function CanvasFactory () {
}
function createCanvas(container, instance, depth, type, init) {
switch (type) {
case com.techsmith.ui.canvas.AbstractCanvas.BASIC :
return(com.techsmith.ui.panels.Slice9Panel(com.techsmith.ui.canvas.BasicCanvas.create(container, instance, depth, init)));
case com.techsmith.ui.canvas.AbstractCanvas.CLICK :
return(com.techsmith.ui.panels.Slice9Panel(com.techsmith.ui.canvas.ClickCanvas.create(container, instance, depth, init)));
case com.techsmith.ui.canvas.AbstractCanvas.DRAG :
return(com.techsmith.ui.panels.Slice9Panel(com.techsmith.ui.canvas.DragCanvas.create(container, instance, depth, init)));
}
return(com.techsmith.ui.panels.Slice9Panel(com.techsmith.ui.canvas.BasicCanvas.create(container, instance, depth, init)));
}
}
Symbol 20518 MovieClip [__Packages.com.techsmith.media.FlvMedia] Frame 0
class com.techsmith.media.FlvMedia extends com.techsmith.media.Media
{
var dolaterClip, createEmptyMovieClip, streamingUrl, fileUrl, loading, duration, autostart, playing, onEnterFrame, seektime, dispatchEvent, dimensions, loop;
function FlvMedia () {
super();
dolaterClip = createEmptyMovieClip("dolaterClip", 999);
setupVideo();
}
static function create(container, name, depth, init) {
Object.registerClass("FlvMedia", com.techsmith.media.FlvMedia);
var _local6 = container.attachMovie("FlvMedia", name, depth, init);
return(com.techsmith.media.FlvMedia(_local6));
}
function setupVideo() {
if (connection == null) {
connection = new NetConnection();
}
connection.connect(streamingUrl);
if (stream == null) {
stream = new NetStream(connection);
}
video.attachVideo(stream);
stream.onStatus = com.techsmith.utils.Delegate.create(this, nsStatus);
stream.onMetaData = com.techsmith.utils.Delegate.create(this, nsMetadata);
stream.onCuePoint = com.techsmith.utils.Delegate.create(this, nsCuepoint);
stream.onTextData = com.techsmith.utils.Delegate.create(this, nsTextData);
}
function load(url, autostart, fps, length) {
if (url != fileUrl) {
seekFlag = false;
fileUrl = url;
loading = true;
duration = ((length != null) ? (length) : null);
lastValidTime = 0;
if (autostart == null) {
autostart = true;
}
this.autostart = autostart;
stream.play(url);
playing = true;
onEnterFrame = mediaOnEnterFrame;
if (!autostart) {
pauseMedia();
stream.seek(0);
}
}
}
function pauseMedia() {
if (!loading) {
delete onEnterFrame;
}
stream.pause(true);
playing = false;
}
function playMedia() {
if (((stream.time < duration) || (duration)) && (!seekFlag)) {
if (onEnterFrame == undefined) {
onEnterFrame = mediaOnEnterFrame;
}
stream.pause(false);
playing = true;
}
if (seekFlag && (isAVC1)) {
timeId = _global.setInterval(this, "delayStart", 50);
}
}
function delayStart() {
if (!seekFlag) {
_global.clearInterval(timeId);
playMedia();
}
}
function seek(time, supressEvent) {
if (isAVC1) {
if (isAVC1 != null) {
seekAVC1(time, supressEvent);
}
} else {
var _local4 = (((Number(time) - Number(tolerance)) <= 0) ? 0 : (Number(time) - Number(tolerance)));
if ((flvLastTimeStamp != null) && (time >= flvLastTimeStamp)) {
_local4 = Number(flvLastTimeStamp) - Number(tolerance);
}
seekFLV(_local4, supressEvent);
}
}
function seekFLV(time, supressEvent) {
if (stream.time != time) {
if (supressEvent == null) {
supressEvent = false;
}
if (timeId != -1) {
_global.clearInterval(timeId);
}
if ((time > duration) && (duration != null)) {
time = duration;
pauseMedia();
}
lastValidTime = stream.time;
timeId = _global.setInterval(this, "updateTime", 1, stream.time, supressEvent);
stream.seek(time);
}
}
function seekAVC1(time, upperBounds) {
var _local4 = false;
if (seekPoints.length == 0) {
return(undefined);
}
var _local5 = Number(time) + Number(tolerance);
seektime = binary_search(seekPoints, _local5, upperBounds) + Number(tolerance);
if (loading) {
var _local6 = stream.bytesLoaded;
var _local7 = stream.bytesTotal;
var _local8 = _local6 / _local7;
var _local9 = _local8 * 100;
if (seektime >= (_local8 * duration)) {
_local4 = true;
}
}
if ((seektime == lastSeeked) || ((seekFlag == true) || (_local4 == true))) {
return(undefined);
}
seekFlag = true;
lastSeeked = seektime;
lastValidTime = seektime;
stream.seek(seektime);
}
function doLater(func, args) {
dolaterClip.onEnterFrame = com.techsmith.utils.Delegate.create(this, executeDoLater, func, args);
}
function executeDoLater(func, args) {
delete dolaterClip.onEnterFrame;
func.apply(this, args);
}
function seekdelay(time) {
lastSeeked = seektime;
lastValidTime = seektime;
stream.seek(seektime);
}
function clearSeek() {
lastSeeked = null;
}
function getSeekFlag() {
return(seekFlag);
}
function updateTime(snapshot, supressEvent) {
if (stream.time != snapshot) {
_global.clearInterval(timeId);
timeId = -1;
if (!supressEvent) {
dispatchEvent({target:this, type:com.techsmith.events.Events.SEEK_COMPLETE, time:stream.time});
}
if (onEnterFrame == undefined) {
var _local4 = getPosition(stream.time, duration);
dispatchEvent({target:this, type:com.techsmith.events.Events.PLAYHEAD_POSITION, percent:_local4.percent, rawPercent:_local4.raw, time:stream.time, duration:duration});
}
}
}
function setSmoothing(bl) {
video.smoothing = bl;
}
function getTime() {
return(stream.time);
}
function getContent() {
return({connection:connection, stream:stream, video:video});
}
function setSize(dim) {
video._width = dim.width;
video._height = dim.height;
dimensions = dim;
}
function nsTextData(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.MEDIA_EVENT, text:e.text, id:e.trackId});
}
function nsCuepoint(e) {
if (e.type == "event") {
dispatchEvent({target:this, type:com.techsmith.events.Events.MEDIA_EVENT, cuepoint:e, time:stream.time});
}
if (e.type == "navigation") {
dispatchEvent({target:this, type:com.techsmith.events.Events.MEDIA_NAVIGATION, cuepoint:e, time:stream.time});
}
dispatchEvent({target:this, type:com.techsmith.events.Events.NS_CUEPOINT, cuepoint:e, time:stream.time});
}
function nsMetadata(info) {
if (info.videocodecid == "avc1") {
isAVC1 = true;
}
metadata = info;
seekPoints = [];
for (var i in info.seekpoints) {
seekPoints.push(info.seekpoints[i].time);
}
seekPoints.reverse();
var _local3 = info.lastkeyframetimestamp;
if ((_local3 != null) && ((_local3 != undefined) && (_local3 != 0))) {
if ((Number(_local3) + 0.18) < Number(info.duration)) {
duration = info.duration;
flvLastTimeStamp = info.lastkeyframetimestamp;
} else {
duration = info.lastkeyframetimestamp;
}
} else if ((info.duration != null) && (duration == null)) {
duration = info.duration;
}
dispatchEvent({target:this, type:com.techsmith.events.Events.NS_METADATA, metadata:info, seekpoints:seekPoints});
}
function nsStatus(info) {
switch (info.code) {
case "NetStream.Seek.InvalidTime" :
seekRecovery();
dispatchEvent({target:this, type:com.techsmith.events.Events.SEEK_ERROR});
break;
case "NetStream.Play.Start" :
dispatchEvent({target:this, type:com.techsmith.events.Events.STARTED});
break;
case "NetStream.Play.Stop" :
dispatchEvent({target:this, type:com.techsmith.events.Events.STOPPED, time:stream.time});
pauseMedia();
break;
case "NetStream.Seek.Notify" :
seekFlag = false;
dispatchEvent({target:this, type:com.techsmith.events.Events.NS_SEEK_EXECUTED, time:stream.time});
if (isAVC1) {
dispatchEvent({target:this, type:com.techsmith.events.Events.SEEK_COMPLETE, time:stream.time});
}
break;
case "NetStream.Buffer.Empty" :
dispatchEvent({target:this, type:com.techsmith.events.Events.NS_BUFFER_EMPTY});
break;
case "NetStream.Buffer.Full" :
dispatchEvent({target:this, type:com.techsmith.events.Events.NS_BUFFER_FULL});
break;
case "NetStream.Buffer.Flush" :
dispatchEvent({target:this, type:com.techsmith.events.Events.NS_BUFFER_FLUSH});
break;
case "NetStream.Play.StreamNotFound" :
playing = false;
delete onEnterFrame;
dispatchEvent({target:this, type:com.techsmith.events.Events.STREAM_ERROR, lastValidTime:lastValidTime});
}
}
function seekRecovery() {
if (autoRecoverSeeking) {
seek(lastValidTime, true);
if (playing) {
playMedia();
}
}
}
function mediaOnEnterFrame() {
if (loading) {
loadProgress();
}
if (isPlaying()) {
playheadPosition();
}
}
function loadProgress() {
var _local2 = stream.bytesLoaded;
var _local3 = stream.bytesTotal;
var _local4 = _local2 / _local3;
var _local5 = _local4 * 100;
if (_local2 <= _local3) {
dispatchEvent({target:this, type:com.techsmith.events.Events.LOADING, percent:_local5, rawPercent:_local4, bytesLoaded:_local2, bytesTotal:_local3});
}
if (_local2 == _local3) {
loading = false;
if (!isPlaying()) {
delete onEnterFrame;
}
dispatchEvent({target:this, type:com.techsmith.events.Events.COMPLETE});
}
}
function getPosition(current, total) {
var _local4 = current / total;
var _local5 = _local4 * 100;
return({percent:_local5, raw:_local4, time:stream.time});
}
function playheadPosition() {
if (duration == null) {
return(undefined);
}
var _local2 = stream.time;
if ((_local2 == null) || (_global.isNaN(_local2))) {
_local2 = 0;
}
var _local3 = _local2 / duration;
var _local4 = _local3 * 100;
dispatchEvent({target:this, type:com.techsmith.events.Events.PLAYHEAD_POSITION, percent:_local4, rawPercent:_local3, seconds:_local2, duration:duration});
if ((_local4 >= 100) && (!loop)) {
dispatchEvent({target:this, type:com.techsmith.events.Events.STOPPED, time:_local2});
pauseMedia();
}
}
function isPlaying() {
return(playing);
}
function binary_search(target, time, upperBounds) {
var _local5 = 0;
var _local6 = target.length - 1;
while (_local5 <= _local6) {
var _local7 = Math.floor((_local5 + _local6) / 2);
if ((target[_local7] <= time) && (time <= target[_local7 + 1])) {
if (upperBounds || ((time == target[_local7 + 1]) && (lastSeeked != time))) {
return(target[_local7 + 1]);
}
return(target[_local7]);
}
if (target[_local7] > time) {
_local6 = _local7 - 1;
} else {
_local5 = _local7 + 1;
}
}
if (time > target[target.length - 1]) {
return(target[target.length - 1]);
}
if (time < target[0]) {
return(target[0]);
}
return(-1);
}
function destroy() {
video.clear();
stream.close();
_global.clearInterval(timeId);
super.destroy();
}
var connection = null;
var stream = null;
var video = null;
var timeId = -1;
var metadata = null;
var lastValidTime = 0;
var autoRecoverSeeking = true;
var seekPoints = [];
var seekFlag = false;
var lastSeeked = null;
var lastSeekableKey = null;
var isAVC1 = null;
var tolerance = 0.0234;
var flvLastTimeStamp = null;
}
Symbol 20519 MovieClip [__Packages.com.techsmith.camtasia.toc.ITOCWindow] Frame 0
class com.techsmith.camtasia.toc.ITOCWindow
{
function ITOCWindow () {
}
}
Symbol 20520 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 20521 MovieClip [__Packages.com.techsmith.camtasia.TimeDisplay] Frame 0
class com.techsmith.camtasia.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:60, h:16});
label.embedFonts = true;
label.antiAliasType = "advanced";
label.selectable = false;
}
static function create(container, name, depth, init) {
Object.registerClass("TimeDisplay", com.techsmith.camtasia.TimeDisplay);
var _local6 = container.attachMovie("TimeDisplay", name, depth, init);
return(com.techsmith.camtasia.TimeDisplay(_local6));
}
function init(duration) {
this.duration = " / " + formatter.format(duration);
createFormat();
setTime(0);
}
function createFormat() {
format = new TextFormat();
format.color = 16777215 /* 0xFFFFFF */;
format.size = 10;
format.font = "dinot";
format.align = "right";
}
function setDuration(time) {
duration = " / " + formatter.format(time);
}
function setTime(time) {
label.text = formatter.format(time) + duration;
label.setTextFormat(format);
}
var label = null;
var duration = null;
var formatter = null;
var format = null;
}
Symbol 20522 MovieClip [__Packages.com.techsmith.camtasia.hotspot.Hotspot] Frame 0
class com.techsmith.camtasia.hotspot.Hotspot extends com.techsmith.ui.ButtonBase
{
var useHandCursor, directive, _start, _end, _pause, _jumpandplay, _action, _width, _height, _id, dispatchEvent;
function Hotspot () {
super();
useHandCursor = true;
directive = com.techsmith.camtasia.hotspot.HotspotConstants.NONE;
}
static function create(container, name, depth, init) {
Object.registerClass("Hotspot", com.techsmith.camtasia.hotspot.Hotspot);
var _local6 = container.attachMovie("Hotspot", name, depth, init);
return(com.techsmith.camtasia.hotspot.Hotspot(_local6));
}
function init(start, end, x0, y0, x1, y1, pause, time, url, jumpandplay, target) {
_start = start;
_end = end;
draw(x1 - x0, y1 - y0);
_pause = pause;
_jumpandplay = jumpandplay;
if ((time != null) && (time != "")) {
directive = com.techsmith.camtasia.hotspot.HotspotConstants.SEEK_TIME;
}
if ((url != null) && (url != "")) {
directive = com.techsmith.camtasia.hotspot.HotspotConstants.GET_URL;
}
_action = new com.techsmith.camtasia.hotspot.Action(time, url, target);
}
function setSize(w, h) {
_width = w;
_height = h;
}
function get id() {
return(_id);
}
function set id(value) {
_id = value;
//return(id);
}
function get start() {
return(_start);
}
function get end() {
return(_end);
}
function get action() {
return(_action);
}
function get pause() {
return(_pause);
}
function get paused() {
return(_paused);
}
function set paused(value) {
_paused = value;
//return(paused);
}
function onRelease() {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE, id:_id, pause:_pause, directive:directive, action:action, jumpandplay:_jumpandplay});
}
function draw(width, height) {
var _local4 = new com.brooksandrus.drawing.Rect();
var _local5 = (debugging ? 50 : 0);
_local4.draw(this, width, height, color, _local5, null, {x:-(width / 2), y:-(height / 2)});
}
function set debug(val) {
debugging = val;
//return(debug);
}
function get debug() {
return(debugging);
}
var debugging = false;
var color = 16763904;
var _paused = false;
}
Symbol 20523 MovieClip [__Packages.com.techsmith.camtasia.quiz.EmailSummary] Frame 0
class com.techsmith.camtasia.quiz.EmailSummary extends com.techsmith.xskin.ui.XSWindow implements com.techsmith.camtasia.quiz.ISummary
{
var bgStyle, fgStyle, label, addChild, getContentLoc, exit, _width, _height, content, bgDim, width, height, dispatchEvent, foreground, background;
function EmailSummary () {
super();
bgStyle = com.techsmith.xskin.ui.panels.styles.StyleFactory.GLASS;
fgStyle = com.techsmith.xskin.ui.panels.styles.StyleFactory.BLACK;
}
static function create(container, name, depth, init) {
Object.registerClass("EmailSummary", com.techsmith.camtasia.quiz.EmailSummary);
var _local6 = container.attachMovie("EmailSummary", name, depth, init);
return(com.techsmith.camtasia.quiz.EmailSummary(_local6));
}
function init(dim, style, summaryData) {
this.summaryData = summaryData;
super.init(dim, style);
}
function setupWindowChrome(bDim) {
super.setupWindowChrome(bDim);
label = addChild(com.techsmith.ui.Label, "label", {multiline:false, color:"FFFFFF", size:14});
var _local4 = getContentLoc();
label.move(_local4.x, (_local4.y - label._height) / 2);
var _local5 = new com.techsmith.ui.panels.PanelStyle("RedGlassLUp", "RedGlassMUp", "RedGlassRUp");
var _local6 = new com.techsmith.ui.panels.PanelStyle("RedGlassLOver", "RedGlassMOver", "RedGlassROver");
var _local7 = new com.techsmith.ui.panels.PanelStyle("RedGlassLDown", "RedGlassMDown", "RedGlassRDown");
var _local8 = new com.techsmith.ui.panels.PanelStyle("RedGlassLDisabled", "RedGlassMDisabled", "RedGlassRDisabled");
previewBtn = addChild(com.techsmith.ui.LabelButton, "previewBtn", {defaultFontColor:16777215});
previewBtn.init("", 75, null, {up:_local5, over:_local6, down:_local7, disabled:_local8});
sendBtn = addChild(com.techsmith.ui.LabelButton, "sendBtn", {defaultFontColor:16777215});
sendBtn.init("", 75, null, {up:_local5, over:_local6, down:_local7, disabled:_local8});
previewBtn.tabIndex = 210;
sendBtn.tabIndex = 211;
exit.tabIndex = 212;
var _local9 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitsummarybutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitsummarybutton) : "Quiz Summary Exit");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:exit, name:_local9, description:"", shortcut:""});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
var _local10 = _width - (previewBtn._width + hmargin);
var _local11 = _height - (vmargin - ((vmargin - previewBtn._height) / 2));
var _local12 = 5;
sendBtn.move(_local10, _local11);
previewBtn.move(sendBtn._x - (previewBtn._width + _local12), _local11);
status = addChild(com.techsmith.ui.TextObject, "status", {border:false, fillOpacity:0, strokeOpacity:0, size:10, textColor:"FFFFFF", type:"dynamic", selectable:false});
status.init(previewBtn._x - (hmargin + 5), 22);
status.move(hmargin, _local11 - ((status._height - previewBtn._height) / 2));
previewBtn.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, previewBtnHandler));
sendBtn.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, sendBtnHandler));
}
function setupContent() {
content = addChild(com.techsmith.ui.TextArea, "content", {border:false, fillOpacity:20, strokeColor:16777215, textColor:"FFFFFF", type:"dynamic", selectable:false});
content.init(bgDim.width - 20, bgDim.height - 62);
content.move((bgDim.width - content.width) / 2, (bgDim.height - content.height) / 2);
}
function updateUI() {
sendBtn.setEnabled(false);
previewBtn.setEnabled(false);
content.setEnabled(false);
}
function setMessage(message) {
content.setText(message);
}
function setStatus(message) {
status.setText(message);
}
function setButtonLabels(previewText, sendText) {
previewBtn.setLabel(previewText);
sendBtn.setLabel(sendText);
}
function setPreview(title, message) {
preview.setTitle(title);
preview.setMessage(message);
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:preview, name:(title + " ") + message, description:"", shortcut:""});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
preview.tabIndex = 230;
if (Accessibility.isActive()) {
preview.focusEnabled = true;
Selection.setFocus(preview);
}
}
function setWarning(title, message) {
warning.setTitle(title);
warning.setMessage(message);
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:warning, name:(title + " ") + message, description:"", shortcut:""});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
warning.tabIndex = 233;
if (Accessibility.isActive()) {
warning.focusEnabled = true;
Selection.setFocus(warning);
}
}
function previewBtnHandler(e) {
previewBtn.setEnabled(false);
preview = com.techsmith.camtasia.quiz.EmailPreview.create(this, "preview", previewDepth);
preview.init(new com.techsmith.utils.Dimension(320, 240));
preview.setQStyle(previewStyle);
preview.move((width - preview.width) / 2, (height - preview.height) / 2);
preview.addEventListener(com.techsmith.events.Events.CLOSE, com.techsmith.utils.Delegate.create(this, previewCloseHandler));
dispatchEvent({target:this, type:PREVIEW_EVENT});
}
function warningHandler() {
sendBtn.setEnabled(false);
warning = com.techsmith.camtasia.quiz.EmailWarning.create(this, "preview", warningDepth);
warning.init(new com.techsmith.utils.Dimension(320, 240));
warning.setQStyle(previewStyle);
warning.move((width - preview.width) / 2, (height - preview.height) / 2);
warning.addEventListener(com.techsmith.events.Events.CLOSE, com.techsmith.utils.Delegate.create(this, warningCloseHandler));
dispatchEvent({target:this, type:WARNING_EVENT});
}
function shouldDisplaySecurityWarning() {
if (_root._url.substr(_root._url.length - 4).toLowerCase() == ".exe") {
return(false);
}
if (System.security.sandboxType == "localWithFile") {
return(true);
}
if (System.security.sandboxType == "localTrusted") {
return(false);
}
if ((System.security.sandboxType == undefined) && (_root._url.substr(0, 5).toLowerCase() == "file:")) {
return(true);
}
return(false);
}
function sendBtnHandler(e) {
if (shouldDisplaySecurityWarning()) {
warningHandler();
} else {
dispatchEvent({target:this, type:SEND_EVENT});
}
}
function previewCloseHandler(e) {
previewBtn.setEnabled(true);
preview.removeAllListeners();
}
function warningCloseHandler(e) {
sendBtn.setEnabled(true);
warning.removeAllListeners();
}
function setQStyle(style) {
previewStyle = style;
foreground.setOpacity(style.bgtransparency);
background.setOpacity(style.bgtransparency);
var _local3 = new TextFormat();
_local3.font = (((style.titleformat.font != undefined) && (style.titleformat.font != "")) ? (style.titleformat.font) : "Arial");
_local3.size = (((style.titleformat.size != undefined) && (style.titleformat.size != "")) ? (style.titleformat.size) : 14);
_local3.bold = (((style.titleformat.bold != undefined) && (style.titleformat.bold != "")) ? (style.titleformat.bold) : true);
_local3.italic = (((style.titleformat.italic != undefined) && (style.titleformat.italic != "")) ? (style.titleformat.italic) : false);
_local3.underline = (((style.titleformat.underline != undefined) && (style.titleformat.underline != "")) ? (style.titleformat.underline) : false);
_local3.color = (((style.titleformat.color != undefined) && (style.titleformat.color != "")) ? (_global.parseInt(style.titleformat.color, 16)) : (_global.parseInt("FFFFFF", 16)));
_local3.multiline = false;
_local3.align = "left";
label.setFormat(_local3);
var _local4 = new TextFormat();
_local4.font = (((style.statusformat.font != undefined) && (style.statusformat.font != "")) ? (style.statusformat.font) : "Arial");
_local4.size = (((style.statusformat.size != undefined) && (style.statusformat.size != "")) ? (style.statusformat.size) : 10);
_local4.bold = (((style.statusformat.bold != undefined) && (style.statusformat.bold != "")) ? (style.statusformat.bold) : false);
_local4.italic = (((style.statusformat.italic != undefined) && (style.statusformat.italic != "")) ? (style.statusformat.italic) : false);
_local4.underline = (((style.statusformat.underline != undefined) && (style.statusformat.underline != "")) ? (style.statusformat.underline) : false);
_local4.color = (((style.statusformat.color != undefined) && (style.statusformat.color != "")) ? (_global.parseInt(style.statusformat.color, 16)) : (_global.parseInt("FFFFFF", 16)));
_local4.align = "left";
_local4.leftMargin = 0;
status.setFormat(_local4);
var _local5 = new TextFormat();
_local5.font = (((style.summaryformat.font != undefined) && (style.summaryformat.font != "")) ? (style.summaryformat.font) : "Arial");
_local5.size = (((style.summaryformat.size != undefined) && (style.summaryformat.size != "")) ? (style.summaryformat.size) : 14);
_local5.bold = (((style.summaryformat.bold != undefined) && (style.summaryformat.bold != "")) ? (style.summaryformat.bold) : false);
_local5.italic = (((style.summaryformat.italic != undefined) && (style.summaryformat.italic != "")) ? (style.summaryformat.italic) : false);
_local5.underline = (((style.summaryformat.underline != undefined) && (style.summaryformat.underline != "")) ? (style.summaryformat.underline) : false);
_local5.color = (((style.summaryformat.color != undefined) && (style.summaryformat.color != "")) ? (_global.parseInt(style.summaryformat.color, 16)) : (_global.parseInt("FFFFFF", 16)));
_local5.multiline = false;
_local5.align = "left";
com.techsmith.ui.TextArea(content).setFormat(_local5);
}
static var SEND_EVENT = "emailSendEvent";
static var PREVIEW_EVENT = "previewEvent";
static var WARNING_EVENT = "warningEvent";
var previewBtn = null;
var sendBtn = null;
var status = null;
var message = null;
var preview = null;
var warning = null;
var previewStyle = null;
var hmargin = 10;
var vmargin = 31;
var previewDepth = 100;
var warningDepth = 103;
var summaryData = null;
}
Symbol 20524 MovieClip [__Packages.com.techsmith.ui.BlurredPanel] Frame 0
class com.techsmith.ui.BlurredPanel extends com.techsmith.ui.Component
{
var background, panel;
function BlurredPanel () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("BlurredPanel", com.techsmith.ui.BlurredPanel);
var _local6 = container.attachMovie("BlurredPanel", name, depth, init);
return(com.techsmith.ui.BlurredPanel(_local6));
}
function init(src, panelType, style, rect) {
background = com.techsmith.ui.ImageSlice.create(this, "background", 1, {pixels:pixels});
background.createBitmap(src, rect);
var _local6 = new com.techsmith.utils.ImageBlur(background);
panel = panelType.create(this, "panel", 2);
panel.init(new com.techsmith.utils.Dimension(background.width, background.height), style);
}
var pixels = 50;
}
Symbol 20525 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 20526 MovieClip [__Packages.com.techsmith.camtasia.toc.TOCContent] Frame 0
class com.techsmith.camtasia.toc.TOCContent extends com.techsmith.ui.Component
{
var dim, header, body, dispatchEvent, __get__dataProvider;
function TOCContent () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("TOCContent", com.techsmith.camtasia.toc.TOCContent);
var _local6 = container.attachMovie("TOCContent", name, depth, init);
return(com.techsmith.camtasia.toc.TOCContent(_local6));
}
function init(dim, url, autostart, fps) {
this.dim = dim;
setupTree(dim);
if ((url != null) && (url != "")) {
header = com.techsmith.camtasia.toc.TOCHeader.create(this, "header", 1);
var _local6 = url.lastIndexOf(".");
if (_local6 != -1) {
header.addEventListener(com.techsmith.events.Events.INIT, com.techsmith.utils.Delegate.create(this, headerInitHandler));
}
header.load(url, {autoStart:autostart, fps:fps});
if ((_local6 == -1) && (header._width != 0)) {
headerInitHandler();
}
}
}
function headerInitHandler(e) {
var _local3 = 100;
var _local4 = (dim.width / header._width) * 100;
var _local5 = (dim.height / header._height) * 100;
_local3 = Math.min(_local4, _local5);
header._xscale = _local3;
header._yscale = _local3;
header.drawOutline();
body.setSize(Math.max(header.width, dim.width), dim.height - (header.height + padding));
var _local6 = (dim.width - header._width) / 2;
header.move(_local6, 0);
body.move(_local6, (header.y + header.height) + padding);
}
function setupTree(dim) {
body = com.techsmith.camtasia.toc.TreeWrapper.create(this, "wrapper", 3);
body.setSize(dim.width, dim.height);
body.addEventListener(com.techsmith.events.Events.CHANGE, com.techsmith.utils.Delegate.create(this, changeHandler));
body.addEventListener("shiftTab", com.techsmith.utils.Delegate.create(this, shiftTabHandler));
body.tabChildren = true;
body.tabIndex = 9914;
}
function changeHandler(e) {
e.target = this;
dispatchEvent(e);
}
function shiftTabHandler(e) {
e.target = this;
dispatchEvent(e);
}
function set dataProvider(dataprovider) {
body.dataProvider = dataprovider;
//return(__get__dataProvider());
}
function setStyle(styles) {
body.setStyle(styles);
}
function setSelected(currentTime) {
body.setSelected(currentTime);
}
function expandTree(node) {
body.expandTree(node);
}
function setRowsTransparent() {
body.setRowsTransparent();
}
function getTree() {
return(body.getTree());
}
var padding = 5;
}
Symbol 20527 MovieClip [__Packages.com.brooksandrus.utils.Iterator] Frame 0
class com.brooksandrus.utils.Iterator
{
function Iterator () {
}
}
Symbol 20528 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 20529 MovieClip [__Packages.com.techsmith.xskin.ui.panels.styles.BlackExploded] Frame 0
class com.techsmith.xskin.ui.panels.styles.BlackExploded extends com.techsmith.ui.panels.PanelStyle
{
function BlackExploded () {
super("XSBlackExplodedPanelTL", "XSBlackExplodedPanelTM", "XSBlackExplodedPanelTR", "XSBlackExplodedPanelCL", "XSBlackExplodedPanelCM", "XSBlackExplodedPanelCR", "XSBlackExplodedPanelBL", "XSBlackExplodedPanelBM", "XSBlackExplodedPanelBR");
}
}
Symbol 20530 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 20531 MovieClip [__Packages.com.techsmith.camtasia.quiz.QuizModel] Frame 0
class com.techsmith.camtasia.quiz.QuizModel
{
var alreadyReportedScores, fps, globalData, quizzes, allPopups, data;
function QuizModel () {
alreadyReportedScores = false;
fps = 1;
idInit = [];
}
function init(quizzes, globalData, useCookie) {
this.useCookie = useCookie;
this.globalData = globalData;
this.quizzes = quizzes;
allPopups = new Array();
var _local5 = 0;
for ( ; _local5 < quizzes.length ; _local5++) {
var _local6 = 0;
for ( ; _local6 < quizzes[_local5].popup.length ; _local6++) {
allPopups.push(quizzes[_local5].popup[_local6]);
}
}
}
function initIndex(id, fps, duration) {
this.fps = fps;
data = quizzes[id];
if (idInit[id] != id) {
idInit[id] = id;
onDoneLoadingXML(duration);
}
}
function onDoneLoadingXML(duration) {
for (var i in data.popup) {
var _local3 = data.popup[i];
_local3.time = Math.min(_local3.time, duration);
_local3.frame = Math.max(1, Math.round(Number(_local3.time) * fps));
_local3.nextID = data["frm" + _local3.frame];
_local3.data.feedback = _local3.data.feedback && (!globalData.disableFeedback);
data["pop" + data["frm" + _local3.frame]].prevID = _local3.id;
data["frm" + _local3.frame] = _local3.id;
data["pop" + _local3.id] = _local3;
trace("frm = " + _local3.frame);
}
if (useCookie) {
loadAllUserInput();
}
}
function popup(popupID) {
return(data["pop" + popupID]);
}
function popupIDOnFrame(frame) {
return(data["frm" + frame]);
}
function popupIDOnFrameRange(frame0, frame1) {
var _local4 = frame0;
for ( ; _local4 <= frame1 ; _local4++) {
if (popupIDOnFrame(_local4) != undefined) {
return(popupIDOnFrame(_local4));
}
}
return(undefined);
}
function popupNextID(popupID) {
return(popup(popupID).nextID);
}
function popupPrevID(popupID) {
return(popup(popupID).prevID);
}
function popupNextIDInGroup(popupID) {
var _local3 = popup(popupID).nextID;
return((((_local3 != undefined) && (popup(popupID).data.title == popup(_local3).data.title)) ? (_local3) : undefined));
}
function popupPrevIDInGroup(popupID) {
var _local3 = popup(popupID).prevID;
return((((_local3 != undefined) && (popup(popupID).data.title == popup(_local3).data.title)) ? (_local3) : undefined));
}
function groupStats(popupID) {
var _local3 = 0;
var _local4 = 0;
var _local5 = popupID;
for ( ; _local5 != undefined ; _local5 = popupPrevIDInGroup(_local5)) {
_local3++;
}
var _local6 = popupID;
for ( ; _local6 != undefined ; _local6 = popupNextIDInGroup(_local6)) {
_local4++;
}
return({pos:_local3, tot:(_local4 + _local3) - 1});
}
function popupNextIDRange(popupID, frame1) {
var _local4 = popup(popupID);
return(((_local4.nextID != undefined) ? (_local4.nextID) : (popupIDOnFrameRange(_local4.frame + 1, frame1))));
}
function getPopupData(popupID) {
if (popup(popupID).type == "summary") {
var _local3 = new Object();
_local3.nNumQ = countQuestions();
_local3.nNumQScored = countQuestions(isScored);
_local3.nNumQCorrect = countQuestions(isScored, isCorrect);
_local3.nNumQAnswered = countQuestions(isAnswered);
_local3.nNumQScoredUnanswered = countQuestions(isScored, isUnanswered);
_local3.nNumQUnscoredUnanswered = countQuestions(isUnscored, isUnanswered);
_local3.alreadyReportedScores = alreadyReportedScores;
_local3.strEmailContent = getEmailContent();
popup(popupID).data.dyn = _local3;
}
return(popup(popupID).data);
}
function getPopupX(popupID) {
return(popup(popupID).x);
}
function getPopupY(popupID) {
return(popup(popupID).y);
}
function getPopupFilename(popupID) {
return(popup(popupID).filename);
}
function reportResults(popupID, userData) {
popup(popupID).data.userData = userData;
if (useCookie) {
saveUserInput(popupID);
}
return((((!userData.bCorrect) && (int(popup(popupID).data.feedback))) ? (popup(popupID).data) : ({})));
}
function isSummaryID(popupID) {
return(isSummary(popup(popupID)));
}
function isSummary(objPopup) {
return(objPopup.type == "summary");
}
function isQuestionID(popupID) {
return(isQuestion(popup(popupID)));
}
function isQuestion(objPopup) {
return(objPopup.type == "question");
}
function isCorrect(objPopup) {
return(objPopup.data.userData.bCorrect);
}
function isAnswered(objPopup) {
return((objPopup.data.userData.strAnswer != undefined) && (objPopup.data.userData.strAnswer != ""));
}
function isUnanswered(objPopup) {
return(!isAnswered(objPopup));
}
function isScored(objPopup) {
return(objPopup.data.scored);
}
function isUnscored(objPopup) {
return(!objPopup.data.scored);
}
function isTrue() {
return(true);
}
function countQuestions(func1, func2) {
func1 = ((func1 != undefined) ? (func1) : (isTrue));
func2 = ((func2 != undefined) ? (func2) : (isTrue));
var _local4 = 0;
var _local5 = 0;
for ( ; _local5 < allPopups.length ; _local5++) {
var _local6 = allPopups[_local5];
_local4 = _local4 + ((isQuestion(_local6) && (func1(_local6) && (func2(_local6)))) ? 1 : 0);
}
return(_local4);
}
function numQScored() {
return(countQuestions(isScored));
}
function numQCorrect() {
return(countQuestions(isScored, isCorrect));
}
function numQ() {
return(countQuestions());
}
function numQAnswered() {
return(countQuestions(isAnswered));
}
function getQStyle() {
return(data.style);
}
function getEmailContent() {
var _local2 = "";
var _local3 = 1;
var _local4 = "";
if (globalData.includeScoreInEmail) {
_local2 = _local2 + (com.techsmith.utils.Util.sprintf(globalData.txtScore, numQCorrect(), numQScored()) + "\n\n");
}
var _local5 = 0;
for ( ; _local5 < allPopups.length ; _local5++) {
var _local6 = allPopups[_local5];
for ( ; !isQuestion(_local6) ; _local5++) {
}
if (_local6.data.title != _local4) {
if (_local4 != "") {
_local2 = _local2 + newline;
}
_local2 = _local2 + (_local6.data.title + newline);
_local3 = 1;
}
var _local7 = ((_local6.data.userData.strAnswer != undefined) ? (_local6.data.userData.strAnswer) : "---");
_local2 = _local2 + ((((_local3++) + ". ") + _local7) + newline);
_local4 = _local6.data.title;
}
return(_local2);
}
function getCookie() {
return(SharedObject.getLocal("quizdata"));
}
function saveUserInput(popupID) {
var _local3 = getCookie();
_local3.data["popup" + popupID] = popup(popupID).data.userData;
_local3.flush();
}
function loadAllUserInput() {
var _local2 = getCookie();
var _local3 = 0;
for ( ; _local3 < data.popup.length ; _local3++) {
var _local4 = data.popup[_local3];
_local4.data.userData = _local2.data["popup" + _local4.id];
}
}
function clearCookie() {
var _local2 = getCookie();
for (var a in _local2.data) {
delete _local2.data[a];
}
_local2.flush();
}
var idInit = [];
var useCookie = true;
}
Symbol 20532 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 20533 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 20534 MovieClip [__Packages.com.brooksandrus.utils.Dispatcher] Frame 0
class com.brooksandrus.utils.Dispatcher implements com.techsmith.events.IEventDispatcher
{
var dispatcher;
function Dispatcher () {
dispatcher = new com.techsmith.events.EventDispatcher();
}
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();
}
}
Symbol 20535 MovieClip [__Packages.com.techsmith.ui.StartWidget] Frame 0
class com.techsmith.ui.StartWidget extends com.techsmith.ui.BlurredPanel
{
var panel, orb, dispatchEvent;
function StartWidget () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("StartWidget", com.techsmith.ui.StartWidget);
var _local6 = container.attachMovie("StartWidget", name, depth, init);
return(com.techsmith.ui.StartWidget(_local6));
}
function init(src, panelType, style, rect, showLoader) {
super.init(src, panelType, style, rect);
if (showLoader) {
var _local8 = new TextFormat();
_local8.font = "Arial";
_local8.align = "left";
_local8.size = 10;
_local8.color = 0;
_local8.bold = false;
lblMessage = com.techsmith.ui.Label.create(this, "label", 75, {multiline:false, labelPosition:com.techsmith.ui.Label.TEXT_LEFT});
lblMessage.setFormat(_local8);
lblMessage.setText("Loading Screencast");
lblMessage.setSize(140, 18);
lblPercent = com.techsmith.ui.Label.create(this, "label", 76, {multiline:false, labelPosition:com.techsmith.ui.Label.TEXT_LEFT});
lblPercent.setFormat(_local8);
lblPercent.setSize(40, 18);
lblPercent.setText("0 %");
var _local9 = new com.techsmith.utils.Dimension(com.techsmith.ui.Component(panel)._width, 14);
var _local10 = new com.techsmith.ui.panels.PanelStyle("SliderBase");
var _local11 = new flash.geom.Rectangle(0.5, 0.5, 8, 2);
var _local12 = _local9;
var _local13 = new com.techsmith.ui.panels.PanelStyle("SliderFill");
var _local14 = _local11;
loadBar = com.brooksandrus.ui.ProgressBar.create(this, "loadBar", 70);
loadBar.init(_local9, _local10, _local11, _local12, _local13, _local14);
loadBar.setProgress({percent:0});
loadBar._alpha = 95;
loadBar.move(0, com.techsmith.ui.Component(panel)._height - 1);
lblMessage.move(0, loadBar._y - 2);
lblPercent.move(com.techsmith.ui.Component(panel)._width - 40, loadBar._y - 2);
}
orb = com.techsmith.ui.BasicButton.create(this, "orb", 4);
orb.init(new com.techsmith.ui.ButtonStyle("BeginOrb", null, false));
var _local15 = (com.techsmith.ui.Component(panel)._width - orb._width) / 2;
var _local16 = (com.techsmith.ui.Component(panel)._height - orb._height) / 2;
orb.move(_local15, _local16);
orb.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, orbHandler));
}
function orbHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE});
}
function setProgress(percentage) {
lblPercent.setText(Math.round(percentage) + " %");
loadBar.setProgress({percent:percentage});
}
function getButton() {
return(orb);
}
function destroy() {
orb.removeAllListeners();
super.destroy();
}
var padding = 5;
var loadBar = null;
var lblMessage = null;
var lblPercent = null;
}
Symbol 20536 MovieClip [__Packages.com.techsmith.utils.ImageBlur] Frame 0
class com.techsmith.utils.ImageBlur
{
function ImageBlur (src) {
blur(src);
}
function blur(src) {
if (src instanceof MovieClip) {
var _local3 = MovieClip(src).filters;
_local3.push(new flash.filters.BlurFilter(4, 4, 3));
MovieClip(src).filters = _local3;
} else if (src instanceof flash.display.BitmapData) {
}
}
}
Symbol 20537 MovieClip [__Packages.com.techsmith.ui.panels.IPanel] Frame 0
class com.techsmith.ui.panels.IPanel
{
function IPanel () {
}
}
Symbol 20538 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 20539 MovieClip [__Packages.com.techsmith.ui.BitmapThumbnail] Frame 0
class com.techsmith.ui.BitmapThumbnail extends com.techsmith.ui.Bitmap
{
var source, constraintSize, constraintPlane, width, height, outline, createOutline, bitmap, bitmapClip, createEmptyMovieClip, dispatchEvent;
function BitmapThumbnail () {
super();
if ((source != null) && ((constraintSize != null) && (constraintPlane != null))) {
createBitmap(source, constraintSize, constraintPlane);
}
}
static function create(container, name, depth, init) {
Object.registerClass("BitmapThumbnail", com.techsmith.ui.BitmapThumbnail);
var _local6 = container.attachMovie("BitmapThumbnail", name, depth, init);
return(com.techsmith.ui.BitmapThumbnail(_local6));
}
function createBitmap(bitmapSource, size, plane) {
source = bitmapSource;
constraintSize = size;
constraintPlane = plane;
var _local5 = source._width;
var _local6 = source._height;
if (constraintPlane == com.techsmith.ui.Bitmap.HORIZONTAL_CONSTRAINT) {
var _local7 = size / _local5;
} else {
var _local7 = size / _local6;
}
var _local8 = _local5 * _local7;
var _local9 = _local6 * _local7;
width = _local8;
height = _local9;
if (outline) {
createOutline(_local8, _local9);
}
var _local10 = new flash.geom.Matrix();
_local10.scale(_local7, _local7);
bitmap = new flash.display.BitmapData(_local8, _local9, true, 0);
bitmap.draw(source, _local10);
bitmapClip = createEmptyMovieClip("bitmapClip", 1);
bitmapClip.attachBitmap(bitmap, 1);
dispatchEvent({target:this, type:com.techsmith.events.Events.COMPLETE});
}
}
Symbol 20540 MovieClip [__Packages.com.techsmith.camtasia.toc.TOCFixedWindow] Frame 0
class com.techsmith.camtasia.toc.TOCFixedWindow extends com.techsmith.ui.Component implements com.techsmith.camtasia.toc.ITOCWindow
{
var dimensions, backgroundType, background, attachMovie, label, content, tabChildren, dispatchEvent, __get__dataProvider;
function TOCFixedWindow () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("TOCFixedWindow", com.techsmith.camtasia.toc.TOCFixedWindow);
var _local6 = container.attachMovie("TOCFixedWindow", name, depth, init);
return(com.techsmith.camtasia.toc.TOCFixedWindow(_local6));
}
function init(dim, title, url, autostart, fps) {
dimensions = dim;
setupWindow(dim, title, url, autostart, fps);
}
function setupWindow(dim, title, url, autostart, fps) {
setBackground(backgroundType);
setupLabel(title);
setupContent(dim, url, autostart, fps);
positionContent();
setAccessibility(title);
}
function setBackground(direction) {
if (direction == com.techsmith.camtasia.toc.TOCConstants.FIXED_LEFT) {
var _local3 = "FixedLeftIndexBG";
} else if (direction == com.techsmith.camtasia.toc.TOCConstants.FIXED_RIGHT) {
var _local3 = "FixedRightIndexBG";
}
background = attachMovie(_local3, "background", 2);
backgroundType = direction;
var _local4 = new flash.geom.Rectangle(20, 20, 210, 46);
background.scale9Grid = _local4;
background._width = dimensions.width;
background._height = dimensions.height;
}
function setupLabel(title) {
label = com.techsmith.ui.Label.create(this, "label", 3, {multiline:false, color:labelTextColor});
label.move(hContentPadding, ((titlePad + vContentPadding) - label._height) / 2);
label.setAutoSize(false);
label.setTextFieldSize(background._width - (hContentPadding * 2), label.height);
label.setText(title);
}
function setupContent(dim, url, autostart, fps) {
content = com.techsmith.camtasia.toc.TOCContent.create(this, "content", 4);
content.init(new com.techsmith.utils.Dimension(dim.width - (hContentPadding * 2), dim.height - ((vContentPadding * 2) + titlePad)), url, autostart, fps);
content.addEventListener(com.techsmith.events.Events.CHANGE, com.techsmith.utils.Delegate.create(this, changeHandler));
content.addEventListener("shiftTab", com.techsmith.utils.Delegate.create(this, shiftTabHandler));
}
function positionContent() {
content.move(hContentPadding, titlePad + vContentPadding);
}
function setAccessibility(title) {
tabChildren = true;
label.tabEnabled = true;
label.tabIndex = 9910;
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:label, name:" ", description:title, shortcut:null});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
}
function changeHandler(e) {
e.target = this;
dispatchEvent(e);
}
function shiftTabHandler(e) {
label.focusEnabled = true;
Selection.setFocus(label);
}
function set dataProvider(dataprovider) {
content.dataProvider = dataprovider;
//return(__get__dataProvider());
}
function setStyle(styles) {
content.setStyle(styles);
}
function setSelected(currentTime) {
content.setSelected(currentTime);
}
function expandTree(node) {
content.expandTree(node);
}
function setRowsTransparent() {
content.setRowsTransparent();
}
function getTree() {
return(content.getTree());
}
var hContentPadding = 8;
var vContentPadding = 6;
var titlePad = 18;
var labelTextColor = "0xFFFFFF";
}
Symbol 20541 MovieClip [__Packages.com.techsmith.ui.BitmapReflectingThumb] Frame 0
class com.techsmith.ui.BitmapReflectingThumb extends com.techsmith.ui.Bitmap
{
var source, constraintSize, constraintPlane, outline, gradientFade, width, height, dispatchEvent;
function BitmapReflectingThumb () {
super();
if ((source != undefined) && ((constraintSize != undefined) && (constraintPlane != undefined))) {
createBitmap(source, constraintSize, constraintPlane);
}
}
static function create(container, name, depth, init) {
Object.registerClass("BitmapReflectingThumb", com.techsmith.ui.BitmapReflectingThumb);
var _local6 = container.attachMovie("BitmapReflectingThumb", name, depth, init);
return(com.techsmith.ui.BitmapReflectingThumb(_local6));
}
function createBitmap(bitmapSource, size, plane) {
source = bitmapSource;
constraintSize = size;
constraintPlane = plane;
thumbnail = com.techsmith.ui.BitmapThumbnail.create(this, "thumbnail", 2);
mirror = com.techsmith.ui.BitmapReflection.create(this, "mirror", 1);
if (outline) {
thumbnail.outline = true;
}
mirror.gradientFade = gradientFade;
thumbnail.addEventListener(com.techsmith.events.Events.COMPLETE, com.techsmith.utils.Delegate.create(this, thumbnailCompleteHandler));
mirror.addEventListener(com.techsmith.events.Events.COMPLETE, com.techsmith.utils.Delegate.create(this, mirrorCompleteHandler));
thumbnail.createBitmap(source, constraintSize, constraintPlane);
}
function thumbnailCompleteHandler(e) {
mirror.createBitmap(thumbnail, constraintSize, constraintPlane);
}
function mirrorCompleteHandler(e) {
var _local3 = thumbnail.getDimensions();
var _local4 = thumbnail.getLocation();
mirror.move(_local4.x, _local4.y + _local3.height);
thumbnail.removeAllListeners();
mirror.removeAllListeners();
width = thumbnail._width;
height = thumbnail._height + mirror._height;
dispatchEvent({target:this, type:com.techsmith.events.Events.COMPLETE});
}
function destroy() {
thumbnail.destroy();
mirror.destroy();
super.destroy();
}
var thumbnail = null;
var mirror = null;
}
Symbol 20542 MovieClip [__Packages.com.techsmith.camtasia.quiz.questions.MultipleChoice] Frame 0
class com.techsmith.camtasia.quiz.questions.MultipleChoice extends com.techsmith.camtasia.quiz.questions.QuestionBase implements com.techsmith.camtasia.quiz.IQuestion
{
var questionField, qWidth, setQuestion, questionData, cStyle, qHeight, drawBackground, changedAnswer, isSurvey, hasFeedback;
function MultipleChoice () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("MultipleChoice", com.techsmith.camtasia.quiz.questions.MultipleChoice);
var _local6 = container.attachMovie("MultipleChoice", name, depth, init);
return(com.techsmith.camtasia.quiz.questions.MultipleChoice(_local6));
}
function init(w, h, questionData) {
super.init(w, h, questionData);
createQuestion();
}
function createQuestion() {
var _local2 = 5;
var _local3 = questionField._y + questionField._height;
var _local4 = qWidth - 40;
var _local5 = 10;
var _local6 = 0;
setQuestion(questionData.question);
var _local7 = questionData.arrAnswers.length;
var _local8 = 0;
for ( ; _local8 < _local7 ; _local8++) {
var _local9 = (((cStyle.answer.color != undefined) && (cStyle.answer.color != "")) ? (_global.parseInt(cStyle.answer.color, 16)) : 16777215);
com.techsmith.ui.RadioButton.create(this, "ansBtn" + _local8, _local5 + _local8, {highlightMargin:10, fontColor:_local9});
this["ansBtn" + _local8].init(numberStr(questionData.arrAnswers[_local8].answer, _local8), _local4, "radioGroup", null, null, null, null, {html:false});
this["ansBtn" + _local8].setData({index:_local8});
this["ansBtn" + _local8].setSelected(questionData.userData.index == _local8, false);
com.techsmith.utils.AccessibilityUtil.setNextTabIndex(this["ansBtn" + _local8]);
if (_local8 == 0) {
var _local10 = _local3 + _local2;
} else {
var _local10 = (this["ansBtn" + (_local8 - 1)]._y + this["ansBtn" + (_local8 - 1)].height) + _local2;
}
this["ansBtn" + _local8].move(20, _local10);
if (_local8 == (_local7 - 1)) {
_local6 = this["ansBtn" + _local8].y + this["ansBtn" + _local8].height;
}
}
if (_local6 > qHeight) {
drawBackground();
}
radioGroup.addEventListener("click", com.techsmith.utils.Delegate.create(this, changedAnswer));
changedAnswer();
}
function layoutRadioButtons(scrollbar) {
}
function letterIndex(id) {
return(((id < 0) ? "" : (chr(97 + (id % 26)) + letterIndex(id - 26))));
}
function numberStr(strAnswer, id) {
switch (questionData.numbering) {
case 0 :
return((letterIndex(id) + ") ") + strAnswer);
case 1 :
return(((id + 1) + ") ") + strAnswer);
case 2 :
}
return(strAnswer);
}
function dispose() {
var _local2 = questionData.arrAnswers.length;
var _local3 = 0;
for ( ; _local3 < _local2 ; _local3++) {
this["ansBtn" + _local3].destroy();
}
radioGroup.removeAllListeners();
}
function getAnswer() {
if (radioGroup.getSelected() != null) {
var _local2 = radioGroup.getData().index;
return(((chr(97 + _local2) + " (") + questionData.arrAnswers[_local2].answer) + ")");
}
return("");
}
function getUserData() {
var _local3 = super.getUserData();
_local3.index = radioGroup.getData().index;
return(_local3);
}
function isCorrect() {
if (isSurvey()) {
return(true);
}
return((1 << radioGroup.getData().index) == questionData.answer);
}
function enable(bEnable) {
var _local3 = questionData.arrAnswers.length;
var _local4 = 0;
for ( ; _local4 < _local3 ; _local4++) {
this["ansBtn" + _local4].setEnabled(bEnable);
this["ansBtn" + _local4].tabEnabled = bEnable;
}
}
function getFeedback() {
if (!hasFeedback()) {
return({strFeedback:"", strDetailedFeedback:""});
}
var _local2 = radioGroup.getData().index;
return({strFeedback:questionData.arrAnswers[_local2].response, strDetailedFeedback:questionData.arrAnswers[_local2].hint});
}
var radioGroup = null;
}
Symbol 20543 MovieClip [__Packages.com.techsmith.camtasia.quiz.questions.TrueFalse] Frame 0
class com.techsmith.camtasia.quiz.questions.TrueFalse extends com.techsmith.camtasia.quiz.questions.MultipleChoice
{
var questionHeight, questionField, setQuestion, questionData, radioGroup, changedAnswer, drawBackground;
function TrueFalse () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("TrueFalse", com.techsmith.camtasia.quiz.questions.TrueFalse);
var _local6 = container.attachMovie("TrueFalse", name, depth, init);
return(com.techsmith.camtasia.quiz.questions.TrueFalse(_local6));
}
function createQuestion() {
var _local2 = 10;
var _local3 = 2;
var _local4 = 450;
var _local5 = (questionField._y + questionHeight) + com.techsmith.camtasia.quiz.questions.QuestionBase.QUESTION_PADDING;
var _local6 = 5;
setQuestion(questionData.question);
var _local7 = 0;
for ( ; _local7 < _local3 ; _local7++) {
com.techsmith.ui.RadioButton.create(this, "ansBtn" + _local7, _local2 + _local7);
var _local8 = "True";
if (_local7 == 1) {
_local8 = "False";
}
this["ansBtn" + _local7].init(_local8, _local4, "radioGroup");
this["ansBtn" + _local7].move(0, _local5);
this["ansBtn" + _local7].setData({index:_local7});
this["ansBtn" + _local7].setSelected(questionData.userData.index == _local7, false);
com.techsmith.utils.AccessibilityUtil.setNextTabIndex(this["ansBtn" + _local7]);
_local5 = _local5 + (this["ansBtn" + _local7].getHeight() + _local6);
}
radioGroup.addEventListener("click", com.techsmith.utils.Delegate.create(this, changedAnswer));
drawBackground();
changedAnswer();
}
}
Symbol 20544 MovieClip [__Packages.com.techsmith.ui.ImageSlice] Frame 0
class com.techsmith.ui.ImageSlice extends com.techsmith.ui.Component
{
var createEmptyMovieClip, attachMovie;
function ImageSlice () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("ImageSlice", com.techsmith.ui.ImageSlice);
var _local6 = container.attachMovie("ImageSlice", name, depth, init);
return(com.techsmith.ui.ImageSlice(_local6));
}
function createBitmap(src, rect) {
if (src instanceof MovieClip) {
var _local5 = MovieClip(src)._width;
var _local6 = MovieClip(src)._height;
var _local4 = 1;
} else if (src instanceof flash.display.BitmapData) {
var _local5 = flash.display.BitmapData(src).width;
var _local6 = flash.display.BitmapData(src).height;
var _local4 = 2;
} else if (src instanceof com.techsmith.ui.Bitmap) {
var _local5 = com.techsmith.ui.Bitmap(src).width;
var _local6 = com.techsmith.ui.Bitmap(src).height;
var _local4 = 3;
}
if (rect == null) {
rect = new flash.geom.Rectangle(0, (_local6 - pixels) / 2, _local5, pixels);
}
bitmap = new flash.display.BitmapData(rect.width, rect.height, true, 0);
width = rect.width;
height = rect.height;
if (_local4 == 2) {
bitmap.copyPixels(flash.display.BitmapData(src), rect, new flash.geom.Point(0, 0));
} else {
tempBmp = new flash.display.BitmapData(_local5, _local6, true, 0);
tempBmp.draw(src);
bitmap.copyPixels(tempBmp, rect, new flash.geom.Point(0, 0));
tempBmp.dispose();
}
bitmapClip = createEmptyMovieClip("bitmapClip", 1);
bitmapClip.attachBitmap(bitmap, 1);
}
function mask(maskID) {
maskClip = attachMovie(maskID, "maskClip", 2);
bitmapClip.setMask(maskClip);
}
function setPixels(p) {
pixels = p;
}
function destroy() {
bitmapClip.removeMovieClip();
bitmap.dispose();
super.destroy();
}
var bitmap = null;
var tempBmp = null;
var bitmapClip = null;
var maskClip = null;
var pixels = 50;
var width = null;
var height = null;
}
Symbol 20545 MovieClip [__Packages.com.techsmith.camtasia.AboutWindow] Frame 0
class com.techsmith.camtasia.AboutWindow extends com.techsmith.xskin.ui.XSWindow
{
var bgStyle, fgStyle, addChild, tabIndex, exit, hContentPadding, label, getContentLoc, titleMask, createEmptyMovieClip, getNextDepth, contentDepth, content, bgDim, vContentPadding, vPadding, addToCollection, positionContent, addChildAt;
function AboutWindow () {
super();
bgStyle = com.techsmith.xskin.ui.panels.styles.StyleFactory.GLASS;
fgStyle = com.techsmith.xskin.ui.panels.styles.StyleFactory.BLACK;
}
static function create(container, name, depth, init) {
Object.registerClass("AboutWindow", com.techsmith.camtasia.AboutWindow);
var _local6 = container.attachMovie("AboutWindow", name, depth, init);
return(com.techsmith.camtasia.AboutWindow(_local6));
}
function setupWindowChrome(bDim) {
super.setupWindowChrome(bDim);
about = addChild(com.techsmith.ui.BasicButton, "about");
info = addChild(com.techsmith.ui.BasicButton, "info");
about.init(new com.techsmith.ui.ButtonStyle("AboutTabUnselected", "AboutTabSelected", true));
info.init(new com.techsmith.ui.ButtonStyle("InfoTabUnselected", "InfoTabSelected", true));
about.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, aboutButtonHandler));
info.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, infoButtonHandler));
tabIndex = 70;
about.tabIndex = 75;
info.tabIndex = 80;
exit.tabIndex = 85;
var _local4 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().infoaboutbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().infoaboutbutton) : "About");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:about, name:_local4, description:"", shortcut:""});
var _local5 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().infoinfobutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().infoinfobutton) : "Info");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:info, name:_local5, description:"", shortcut:""});
var _local6 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().infoexitbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().infoexitbutton) : "Info Window Exit");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:exit, name:_local6, description:"", shortcut:""});
var _local7 = bDim.width - (exit.getDimensions().width + hContentPadding);
info.move(_local7 - (info._width + 1), 0);
_local7 = info.getLocation().x;
about.move(_local7 - (about._width + 1), 0);
_local7 = _local7 - (about._width + 1);
label = addChild(com.techsmith.ui.Label, "label", {url:logo, multiline:false, color:labelColor, size:14});
label.setText(title);
var _local8 = getContentLoc();
label._x = _local8.x;
label._y = (_local8.y - label._height) / 2;
titleMask = createEmptyMovieClip("titleMask", getNextDepth());
com.techsmith.utils.shapes.Rectangle.draw(titleMask, 16777215, _local7 - 1, label._height, 90);
titleMask._y = label._y;
label.setMask(titleMask);
contentDepth = getNextDepth();
}
function setupContent() {
if (tabFocus == ABOUT_SELECTED) {
if ((aboutUrl != null) && (aboutUrl != "")) {
setupMediaContent();
} else {
setupTextContent();
content.setText(aboutContent);
var _local2 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().infowindow != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().infowindow) : "Info Window");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:this, name:_local2, description:aboutContent, shortcut:""});
}
about.setSelected(true);
info.setSelected(false);
} else {
setupTextContent();
content.setText(infoContent);
info.setSelected(true);
about.setSelected(false);
var _local3 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().infowindow != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().infowindow) : "Info Window");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:this, name:_local3, description:infoContent, shortcut:""});
}
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
}
function setupMediaContent() {
if (!(content instanceof com.techsmith.media.Media)) {
content.destroy();
var _local2 = bgDim.width - (hContentPadding * 2);
var _local3 = bgDim.height - ((vPadding + exit.getDimensions().height) + (vContentPadding * 2));
var _local4 = new com.techsmith.media.MediaFactory();
content = _local4.createMedia(this, "media", contentDepth, aboutUrl);
trace("(fillcolor):" + fillcolor);
addToCollection("content", content);
if (aboutUrl.indexOf(".") != -1) {
com.techsmith.media.Media(content).setSize(new com.techsmith.utils.Dimension(_local2, _local3));
}
var _local5 = content.createEmptyMovieClip("stroke", 5);
com.techsmith.utils.shapes.Rectangle.draw(_local5, undefined, _local2, _local3, null, {thickness:1, rgb:16777215, alpha:100}, {x:0, y:0});
com.techsmith.media.Media(content).load(aboutUrl);
var _local6 = com.techsmith.media.Media(content).getContent();
if (aboutUrl.indexOf(".") == -1) {
var _local7 = 100;
var _local8 = (_local2 / _local6._width) * 100;
var _local9 = (_local3 / _local6._height) * 100;
_local7 = Math.min(_local8, _local9);
_local6._xscale = _local7;
_local6._yscale = _local7;
_local6._x = (_local2 - _local6._width) / 2;
_local6._y = (_local3 - _local6._height) / 2;
}
positionContent();
}
}
function setupTextContent() {
if (!(content instanceof com.techsmith.ui.TextArea)) {
content.destroy();
trace("(fillcolor):" + fillcolor);
trace("(fillcolor):" + fillopacity);
content = addChildAt(com.techsmith.ui.TextArea, "content", contentDepth, {border:false, fillOpacity:fillopacity, fillColor:fillcolor, textColor:"FFFFFF", type:"dynamic", selectable:false});
addToCollection("content", content);
var _local2 = bgDim.width - (hContentPadding * 2);
var _local3 = bgDim.height - ((vPadding + exit.getDimensions().height) + (vContentPadding * 2));
content.init(_local2, _local3);
positionContent();
}
}
function mediaInitHandler(e) {
var _local3 = bgDim.width - (hContentPadding * 2);
var _local4 = bgDim.height - ((vPadding + exit.getDimensions().height) + (vContentPadding * 2));
var _local5 = com.techsmith.media.Media(content).getContent();
_local5._x = (_local3 - _local5._width) / 2;
_local5._y = (_local4 - _local5._height) / 2;
}
function aboutButtonHandler(e) {
tabFocus = ABOUT_SELECTED;
setupContent();
}
function infoButtonHandler(e) {
tabFocus = INFO_SELECTED;
setupContent();
}
static var ABOUT_SELECTED = 1;
static var INFO_SELECTED = 2;
var about = null;
var info = null;
var infoContent = null;
var aboutUrl = null;
var aboutContent = null;
var tabFocus = ABOUT_SELECTED;
var logo = "AboutLogo";
var title = "";
var fillcolor = 16777215;
var fillopacity = 20;
var labelColor = "0xFFFFFF";
}
Symbol 20546 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 20547 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 20548 MovieClip [__Packages.com.techsmith.xskin.ui.panels.styles.White] Frame 0
class com.techsmith.xskin.ui.panels.styles.White extends com.techsmith.ui.panels.PanelStyle
{
function White () {
super("XSWhitePanelTL", "XSWhitePanelTM", "XSWhitePanelTR", "XSWhitePanelCL", "XSWhitePanelCM", "XSWhitePanelCR", "XSWhitePanelBL", "XSWhitePanelBM", "XSWhitePanelBR");
}
}
Symbol 20549 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;
}
Symbol 20550 MovieClip [__Packages.com.techsmith.ui.canvas.BasicCanvas] Frame 0
class com.techsmith.ui.canvas.BasicCanvas extends com.techsmith.ui.panels.Slice9Panel
{
function BasicCanvas () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("BasicCanvas", com.techsmith.ui.canvas.BasicCanvas);
var _local6 = container.attachMovie("BasicCanvas", name, depth, init);
return(com.techsmith.ui.canvas.BasicCanvas(_local6));
}
}
Symbol 20551 MovieClip [__Packages.com.techsmith.ui.canvas.ClickCanvas] Frame 0
class com.techsmith.ui.canvas.ClickCanvas extends com.techsmith.ui.canvas.BasicCanvas
{
var dispatchEvent;
function ClickCanvas () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("ClickCanvas", com.techsmith.ui.canvas.ClickCanvas);
var _local6 = container.attachMovie("ClickCanvas", name, depth, init);
return(com.techsmith.ui.canvas.ClickCanvas(_local6));
}
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 20552 MovieClip [__Packages.com.techsmith.ui.TextArea] Frame 0
class com.techsmith.ui.TextArea extends com.techsmith.ui.TextObject
{
var textField, tfMaxWidth, tfMaxHeight, border, borderPadding, createClassObject, fillHeight, filly, destroyObject;
function TextArea () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("TextArea", com.techsmith.ui.TextArea);
var _local6 = container.attachMovie("TextArea", name, depth, init);
return(com.techsmith.ui.TextArea(_local6));
}
function createField() {
super.createField();
textField.multiline = true;
textField.wordWrap = true;
tfMinWidth = tfMaxWidth - scrollbarWidth;
tfMinHeight = tfMaxHeight;
}
function setText(s) {
super.setText(s);
scrollDecorate();
}
function scrollDecorate() {
var _local2 = textField.maxscroll;
if ((_local2 > 1) && (textField._width != tfMinWidth)) {
var _local3 = tfMinWidth;
if (border) {
_local3 = tfMinWidth - borderPadding;
}
textField._width = _local3;
scrollbar = createClassObject(mx.controls.UIScrollBar, "scrollbar", 10);
scrollbar.setSize(scrollbarWidth, fillHeight);
scrollbar.move(textField._x + textField._width, filly);
scrollbar.setScrollTarget(textField);
} else if ((_local2 != lastScrollValue) && (_local2 <= 1)) {
destroyObject("scrollbar");
textField._width = tfMaxWidth;
}
lastScrollValue = _local2;
}
function onChanged() {
super.onChanged();
scrollDecorate();
}
var lastScrollValue = 0;
var scrollbar = null;
var scrollbarWidth = 13;
var tfMinWidth = null;
var tfMinHeight = null;
}
Symbol 20553 MovieClip [__Packages.com.techsmith.camtasia.toc.TreeWrapper] Frame 0
class com.techsmith.camtasia.toc.TreeWrapper extends com.techsmith.ui.Component
{
var tree, attachMovie, createEmptyMovieClip, onSetFocus, __get__dataProvider, tocData, rows, outline, fileSetIndex, eventTime, dispatchEvent, tooltip, keyListener, Hline;
function TreeWrapper () {
super();
tree = com.techsmith.camtasia.components.TSTree(attachMovie("TSTree", "tree", 1));
registerListeners();
}
static function create(container, name, depth, init) {
Object.registerClass("TreeWrapper", com.techsmith.camtasia.toc.TreeWrapper);
var _local6 = container.attachMovie("TreeWrapper", name, depth, init);
return(com.techsmith.camtasia.toc.TreeWrapper(_local6));
}
function registerListeners() {
doitlaterClip = createEmptyMovieClip("doitlaterClip", 900);
tree.addEventListener("nodeOpen", com.techsmith.utils.Delegate.create(this, nodeOpenHandler));
tree.addEventListener("nodeClose", com.techsmith.utils.Delegate.create(this, nodeClosedHandler));
tree.addEventListener("rowPress", com.techsmith.utils.Delegate.create(this, rowPressHandler));
tree.addEventListener("change", com.techsmith.utils.Delegate.create(this, changeHandler));
tree.addEventListener("itemRollOver", com.techsmith.utils.Delegate.create(this, overHandler));
tree.addEventListener("itemRollOut", com.techsmith.utils.Delegate.create(this, outHandler));
tree.addEventListener("scroll", com.techsmith.utils.Delegate.create(this, tocOnScrollHandler));
tree.addEventListener("focusOut", com.techsmith.utils.Delegate.create(this, tocKillFocusHandler));
tree.tabEnabled = true;
tree.tabIndex = 9915;
onSetFocus = com.techsmith.utils.Delegate.create(this, tocSetFocusHandler);
}
function set dataProvider(dataprovider) {
tree.dataProvider = dataprovider;
//return(__get__dataProvider());
}
function setSize(w, h) {
tree.setSize(w, h);
if (hasBorder) {
drawOutline(new com.techsmith.utils.Dimension(w, h));
}
}
function setStyle(styles) {
tocData = styles;
transparent = ((styles.transparent == null) ? (transparent) : (styles.transparent));
expandToc = ((styles.expanded == null) ? (expandToc) : (styles.expanded));
var _local3 = styles.rowDepthColors.colors;
var _local4 = styles.alternatingRowColors.colors;
if (validateColorArr(_local3) && (styles.rowDepthColors != undefined)) {
tree.setStyle("depthColors", _local3);
} else if (validateColorArr(_local4) && (styles.alternatingRowColors != undefined)) {
tree.setStyle("alternatingRowColors", _local4);
} else {
var _local5 = styles.backgroundColor;
if (_local5 == _global.NaN) {
_local5 = 16777215 /* 0xFFFFFF */;
}
tree.setStyle("backgroundColor", _local5);
}
tree.setStyle("rollOverColor", styles.rowRollOverColor);
tree.setStyle("selectionColor", styles.rowSelectedColor);
tree.setStyle("indentation", styles.rowIndentation);
tree.setStyle("borderStyle", "none");
tree.setStyle("color", styles.textColor);
tree.setStyle("fontFamily", styles.fontFamily);
tree.setStyle("fontSize", styles.fontSize);
tree.setStyle("fontWeight", styles.fontWeight);
tree.setStyle("textAlign", styles.textAlign);
tree.setStyle("textDecoration", styles.textDecoration);
tree.setStyle("textIndent", styles.textIndent);
tree.setStyle("textRollOverColor", styles.textRollOverColor);
tree.setStyle("textSelectedColor", styles.textSelectedColor);
tree.setStyle("useRollOver", styles.useRollOver);
tree.setStyle("folderOpenIcon", "nullicon");
tree.setStyle("folderClosedIcon", "nullicon");
tree.setStyle("defaultLeafIcon", "nullicon");
if (!styles.collapsible) {
tree.setStyle("disclosureOpenIcon", "nullicon");
tree.setStyle("disclosureClosedIcon", "nullicon");
}
tree.vScrollPolicy = "auto";
if ((styles.horizontalScroll != undefined) && (styles.horizontalScroll > 0)) {
tree.hScrollPolicy = "on";
tree.maxHPosition = styles.horizontalScroll;
}
rows = tree.rows;
}
function validateColorArr(colors) {
var _local3 = 0;
for ( ; _local3 < colors.length ; _local3++) {
if (_global.isNaN(colors[_local3])) {
return(false);
}
}
return(true);
}
function setSelected(currentTime) {
if (rowPress) {
return(undefined);
}
var _local3 = (_global.isNaN(tree.selectedIndex) ? 0 : (tree.selectedIndex));
var _local4 = tree.length;
var _local5 = _local3;
for ( ; _local5 < _local4 ; _local5++) {
if ((_local5 == (_local4 - 1)) && (currentTime >= tree.getItemAt(_local4 - 1).attributes.time)) {
tree.selectedIndex = _local5;
break;
}
if ((_local5 == (_local4 - 1)) && (currentTime <= tree.getItemAt(_local4 - 1).attributes.time)) {
tree.selectedIndex = 0;
break;
}
if ((currentTime >= tree.getItemAt(_local5).attributes.time) && (currentTime <= tree.getItemAt(_local5 + 1).attributes.time)) {
tree.selectedIndex = _local5;
break;
}
}
if (accIndex != tree.selectedIndex) {
accIndex = tree.selectedIndex;
accChangeHandler();
}
}
function setSelectedIndex(index) {
tree.selectedIndex = index;
}
function expandTree(node) {
if (expandToc) {
if (!tree.getIsBranch(node)) {
return(undefined);
}
if (!tree.getIsOpen(node)) {
tree.setIsOpen(node, true, false);
}
for (var i in node.childNodes) {
expandTree(node.childNodes[i]);
}
}
}
function setRowsTransparent() {
var _local2 = tree.rows;
trace(" rows = " + _local2);
var _local3 = _local2.length;
var _local4 = 0;
for ( ; _local4 <= _local3 ; _local4++) {
_local2[_local4].backGround._alpha = opacity;
_local2[_local4].highlight._alpha = selectedOpacity;
}
tree.border_mc.backgroundColorName = "";
tree.border_mc.drawBorder();
}
function drawOutline(dim) {
if (outline == null) {
outline = createEmptyMovieClip("outline", 6);
}
outline.clear();
var _local3 = new com.brooksandrus.drawing.Rect();
_local3.draw(outline, tree.width, tree.height, 0, 0, {rgb:9542041, thickness:1, alpha:100, jointStyle:"miter", capsStyle:"square", pixelHinting:false, noScale:"none"});
_local3.draw(outline, tree.width - 2, tree.height - 2, 0, 0, {rgb:15658734, thickness:1, alpha:100, jointStyle:"miter", capsStyle:"square", pixelHinting:false, noScale:"none"}, {x:1, y:1});
}
function destroy() {
tree.removeEventListener("nodeOpen", nodeOpenHandler);
tree.removeEventListener("nodeClose", nodeClosedHandler);
tree.destroyObject("tree");
super.destroy();
}
function getTree() {
return(tree);
}
function nodeOpenHandler(e) {
if (transparent) {
setRowsTransparent();
}
}
function nodeClosedHandler(e) {
if (transparent) {
setRowsTransparent();
}
}
function rowPressHandler(e) {
fileSetIndex = tree.getItemAt(e.index).attributes.fileset;
eventTime = e.time;
rowPress = true;
}
function changeHandler(e) {
rowPress = false;
dispatchEvent({type:com.techsmith.events.Events.CHANGE, time:eventTime, fileSetIndex:fileSetIndex});
tooltip.destroy();
}
function overHandler(e) {
var _local3 = tree.getItemAt(e.index);
var _local4 = _local3.attributes.label;
var _local5 = e.index;
var _local6 = 2;
if ((tree.vSB._scrollPosition != 0) && (tree.vSB._scrollPosition != undefined)) {
_local5 = e.index - tree.vSB._scrollPosition;
_local6 = 17;
}
if (_local4 != null) {
var _local7 = tree.rows[_local5];
createToolTip(_local4, _local7, _local6);
}
}
function tocOnScrollHandler() {
if (transparent) {
if (tree.vSB._scrollPosition != curScrollPos) {
curScrollPos = tree.vSB._scrollPosition;
trace(tree.vSB._scrollPosition);
setRowsTransparent();
}
}
}
function tocKeyDownHandler() {
if (Selection.getFocus() == String(tree)) {
switch (Key.getCode()) {
case Key.SPACE :
keyboardClick();
break;
case Key.ENTER :
keyboardClick();
break;
case 40 :
accChangeHandler();
break;
case 38 :
accChangeHandler();
}
}
}
function keyboardClick() {
changeHandler({type:com.techsmith.events.Events.CHANGE, time:tree.selectedNode.attributes.time, fileSetIndex:tree.selectedNode.attributes.fileset});
setRowsTransparent();
}
function tocOnFocusHandler() {
}
function tocSetFocusHandler(oldFocus) {
if (oldFocus._name == "tree") {
dispatchEvent({type:"shiftTab"});
} else {
shiftTabFocus = oldFocus;
tree.setFocus();
if (Accessibility.isActive()) {
accChangeHandler(com.techsmith.utils.AccessibilityUtil.getlocalAcc().tocwindow);
accChangeHandler(com.techsmith.utils.AccessibilityUtil.getlocalAcc().tocwindow);
}
drawHighlite();
keyListener = new Object();
keyListener.onKeyDown = com.techsmith.utils.Delegate.create(this, tocKeyDownHandler);
Key.addListener(keyListener);
}
}
function tocKillFocusHandler(newFocus) {
Hline.removeMovieClip();
Hline = null;
Key.removeListener(keyListener);
}
function drawHighlite() {
if (Hline == null) {
Hline = createEmptyMovieClip("Hline", 27);
}
Hline.clear();
var _local2 = new com.brooksandrus.drawing.Rect();
_local2.draw(Hline, tree.width, tree.height, 0, 0, {rgb:16776960, thickness:3, alpha:100, jointStyle:"miter", capsStyle:"square", pixelHinting:false, noScale:"none"});
_local2.draw(Hline, tree.width - 2, tree.height - 2, 0, 0, {rgb:16776960, thickness:1, alpha:100, jointStyle:"miter", capsStyle:"square", pixelHinting:false, noScale:"none"}, {x:1, y:1});
}
function createToolTip(label, row, tipOffset) {
tooltip = com.techsmith.ui.ToolTip.create(this, "tooltip", 10, {fillColor:tocData.rowRollOverColor, size:tocData.fontSize, bold:tocData.fontWeight, fontColor:tocData.textRollOverColor, font:tocData.fontFamily, leading:0, alignment:"left", opacity:100, margin:8, hPad:6});
tooltip.setTip(label, tree.width - tipOffset);
tooltip.move(row._x + 1, row._y - 2);
}
function outHandler(e) {
tooltip.destroy();
}
function doLater(func, args) {
doitlaterClip.onEnterFrame = com.techsmith.utils.Delegate.create(this, executeDoLater, func, args);
}
function executeDoLater(func, args) {
framepass--;
if (framepass == 0) {
framepass = 5;
delete doitlaterClip.onEnterFrame;
func.apply(this, args);
}
}
function accChangeHandler(name) {
var _local3 = " ";
if (Accessibility.isActive()) {
if (name != undefined) {
_local3 = name;
}
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:this, name:null, description:(_local3 + ", ") + tree.selectedItem.attributes.label, shortcut:null});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
if (Selection.getFocus() == String(tree)) {
doLater(SetDistpatchFocusHandler);
}
}
}
function SetDistpatchFocusHandler() {
tree.setFocus(null);
tree.setFocus();
}
var rowPress = false;
var opacity = 0;
var selectedOpacity = 50;
var type = com.techsmith.camtasia.toc.TOCConstants.FLOATING;
var hasBorder = true;
var transparent = true;
var expandToc = true;
var tipId = -1;
var curScrollPos = 0;
var doitlaterClip = null;
var accText = null;
var accIndex = 0;
var framepass = 10;
var shiftTabFocus = null;
}
Symbol 20554 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 20555 MovieClip [__Packages.com.techsmith.media.MediaFactory] Frame 0
class com.techsmith.media.MediaFactory
{
function MediaFactory () {
}
function createMedia(container, name, depth, url, init) {
var _local7 = url.lastIndexOf(".");
url = url.substr(_local7 + 1);
if (_local7 == -1) {
return(com.techsmith.media.SwfMedia.create(container, name, depth, init));
}
switch (url.toLowerCase()) {
case FLV :
return(com.techsmith.media.FlvMedia.create(container, name, depth, init));
case SWF :
return(com.techsmith.media.SwfMedia.create(container, name, depth, init));
case MP3 :
return(null);
case JPG :
return(com.techsmith.media.SwfMedia.create(container, name, depth, init));
case GIF :
return(com.techsmith.media.SwfMedia.create(container, name, depth, init));
case PNG :
return(com.techsmith.media.SwfMedia.create(container, name, depth, init));
case JPEG :
return(com.techsmith.media.SwfMedia.create(container, name, depth, init));
}
return(com.techsmith.media.FlvMedia.create(container, name, depth, init));
}
static var FLV = "flv";
static var SWF = "swf";
static var MP3 = "mp3";
static var JPG = "jpg";
static var JPEG = "jpeg";
static var GIF = "gif";
static var PNG = "png";
}
Symbol 20556 MovieClip [__Packages.com.brooksandrus.drawing.CalloutRect] Frame 0
class com.brooksandrus.drawing.CalloutRect
{
function CalloutRect () {
}
function draw(scope, width, height, color, opacity, lineStyle, direction, point) {
if (direction == null) {
direction = NONE;
}
if (lineStyle != null) {
scope.lineStyle(lineStyle.thickness, lineStyle.rgb, lineStyle.alpha, lineStyle.pixelHinting, lineStyle.noScale, lineStyle.capsStyle, lineStyle.jointStyle, lineStyle.miterLimit);
}
switch (direction) {
case RIGHT :
var _local10 = right(width, height, point);
break;
case LEFT :
_local10 = left(width, height, point);
break;
case TOP :
_local10 = top(width, height, point);
break;
case BOTTOM :
_local10 = bottom(width, height, point);
break;
case NONE :
_local10 = none(width, height);
break;
default :
_local10 = none(width, height);
}
drawShape(scope, color, opacity, _local10);
}
function drawShape(scope, color, opacity, points) {
scope.beginFill(color, opacity);
scope.moveTo(points[0].x, points[0].y);
var _local6 = points.length;
var _local7 = 1;
for ( ; _local7 < _local6 ; _local7++) {
scope.lineTo(points[_local7].x, points[_local7].y);
}
scope.endFill();
}
function top(width, height, point) {
if (point == null) {
point = {x:width / 2, y:0};
} else {
if (point.x < 0) {
var _local5 = 0;
point.x = Math.abs(point.x);
} else {
var _local5 = Math.abs(point.x);
point.x = 0;
}
point.y = Math.abs(point.y);
}
var _local6 = (width + point.x) / 2;
var _local7 = armWidth / 2;
var _local8 = [new com.techsmith.utils.Point(point.x, point.y), new com.techsmith.utils.Point(_local6 - _local7, point.y), new com.techsmith.utils.Point(_local5, 0), new com.techsmith.utils.Point(_local6 + _local7, point.y), new com.techsmith.utils.Point(width + point.x, point.y), new com.techsmith.utils.Point(width + point.x, height + point.y), new com.techsmith.utils.Point(point.x, height + point.y), new com.techsmith.utils.Point(point.x, point.y)];
return(_local8);
}
function bottom(width, height, point) {
if (point == null) {
point = {x:width / 2, y:0};
} else {
if (point.x < 0) {
var _local5 = 0;
point.x = Math.abs(point.x);
} else {
var _local5 = Math.abs(point.x);
point.x = 0;
}
point.y = Math.abs(point.y);
}
var _local6 = (width + point.x) / 2;
var _local7 = armWidth / 2;
var _local8 = [new com.techsmith.utils.Point(point.x, 0), new com.techsmith.utils.Point(width + point.x, 0), new com.techsmith.utils.Point(width + point.x, height), new com.techsmith.utils.Point(_local6 + _local7, height), new com.techsmith.utils.Point(_local5, point.y), new com.techsmith.utils.Point(_local6 - _local7, height), new com.techsmith.utils.Point(point.x, height), new com.techsmith.utils.Point(point.x, 0)];
return(_local8);
}
function left(width, height, point) {
if (point == null) {
point = {x:0, y:height / 2};
} else {
if (point.y < 0) {
var _local5 = 0;
point.y = Math.abs(point.y);
} else {
var _local5 = Math.abs(point.y);
point.y = 0;
}
point.x = Math.abs(point.x);
}
var _local6 = (height + point.y) / 2;
var _local7 = armWidth / 2;
var _local8 = [new com.techsmith.utils.Point(point.x, point.y), new com.techsmith.utils.Point(width + point.x, point.y), new com.techsmith.utils.Point(width + point.x, point.y + height), new com.techsmith.utils.Point(point.x, point.y + height), new com.techsmith.utils.Point(point.x, _local6 + _local7), new com.techsmith.utils.Point(0, _local5), new com.techsmith.utils.Point(point.x, _local6 - _local7), new com.techsmith.utils.Point(point.x, point.y)];
return(_local8);
}
function right(width, height, point) {
if (point == null) {
point = {x:0, y:height / 2};
} else {
if (point.y < 0) {
var _local5 = 0;
point.y = Math.abs(point.y);
} else {
var _local5 = Math.abs(point.y);
point.y = 0;
}
point.x = Math.abs(point.x);
}
var _local6 = (height + point.y) / 2;
var _local7 = armWidth / 2;
var _local8 = [new com.techsmith.utils.Point(0, point.y), new com.techsmith.utils.Point(width, point.y), new com.techsmith.utils.Point(width, _local6 - _local7), new com.techsmith.utils.Point(point.x, _local5), new com.techsmith.utils.Point(width, _local6 + _local7), new com.techsmith.utils.Point(width, height + point.y), new com.techsmith.utils.Point(0, height + point.y), new com.techsmith.utils.Point(0, point.y)];
return(_local8);
}
function none(width, height) {
var _local4 = [new com.techsmith.utils.Point(0, 0), new com.techsmith.utils.Point(width, 0), new com.techsmith.utils.Point(width, height), new com.techsmith.utils.Point(0, height), new com.techsmith.utils.Point(0, 0)];
return(_local4);
}
static var LEFT = "left";
static var RIGHT = "right";
static var TOP = "top";
static var BOTTOM = "bottom";
static var NONE = "none";
var armWidth = 20;
}
Symbol 20557 MovieClip [__Packages.com.techsmith.camtasia.hotspot.Action] Frame 0
class com.techsmith.camtasia.hotspot.Action
{
var time, url, target;
function Action (time, url, newWindow) {
this.time = time;
this.url = url;
target = (newWindow ? "_blank" : "_self");
if ((url != null) && (target == null)) {
target = "_blank";
}
}
}
Symbol 20558 MovieClip [__Packages.com.techsmith.ui.ComponentRect] Frame 0
class com.techsmith.ui.ComponentRect extends com.techsmith.ui.Component
{
function ComponentRect () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("ComponentRect", com.techsmith.ui.ComponentRect);
var _local6 = container.attachMovie("ComponentRect", name, depth, init);
return(com.techsmith.ui.ComponentRect(_local6));
}
function init(dim, colors, alphas, ratios, lStyle, location) {
var _local8 = new com.brooksandrus.drawing.Rect();
if (colors.length > 1) {
_local8.gdraw(this, dim.width, dim.height, colors, alphas, ratios, lStyle, location);
} else {
_local8.draw(this, dim.width, dim.height, colors[0], alphas[0], lStyle, location);
}
}
}
Symbol 20559 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 20560 MovieClip [__Packages.com.techsmith.camtasia.quiz.Feedback] Frame 0
class com.techsmith.camtasia.quiz.Feedback extends com.techsmith.ui.Component
{
var background, exit, title, content, dispatchEvent;
function Feedback () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("Feedback", com.techsmith.camtasia.quiz.Feedback);
var _local6 = container.attachMovie("Feedback", name, depth, init);
return(com.techsmith.camtasia.quiz.Feedback(_local6));
}
function init(dim) {
setupWindowChrome(dim);
setupContent(dim);
}
function setupWindowChrome(dim) {
var _local3 = (((fStyle.bgcolor != undefined) && (fStyle.bgcolor != "")) ? (_global.parseInt(fStyle.bgcolor, 16)) : 16777215);
var _local4 = (((fStyle.bgtransparency != undefined) && (fStyle.bgtransparency != "")) ? (fStyle.bgtransparency) : 80);
background = com.techsmith.ui.ComponentRect.create(this, "background", 1);
background.init(dim, [_local3], [_local4], [255], {thickness:1, rgb:16777215, alpha:100});
background.onPress = null;
exit = com.techsmith.ui.BasicButton.create(this, "exit", 3);
exit.init(new com.techsmith.ui.ButtonStyle("FeedbackClose", null, false));
exit.move(dim.width - (exit._width + hPadding), vPadding);
com.techsmith.utils.AccessibilityUtil.setNextTabIndex(exit);
var _local5 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitfeedbackbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitfeedbackbutton) : "Question Feedback Exit");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:exit, name:_local5, description:"", shortcut:""});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
title = com.techsmith.ui.Label.create(this, "title", 2, {multiline:false, color:"333333", size:14, bold:true});
title.move(hPadding, vPadding - 3);
exit.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, exitHandler));
}
function setupContent(dim) {
content = com.techsmith.camtasia.quiz.FeedbackContent.create(this, "content", 4, {fStyle:fStyle});
var _local3 = dim.width - (hPadding * 2);
var _local4 = dim.height - (exit.height + (vPadding * 3));
content.init(new com.techsmith.utils.Dimension(_local3, _local4));
content.move(hPadding, (exit.y + exit.height) + vPadding);
}
function setFeedback(q, a) {
content.setFeedback(q, a);
}
function exitHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.CLOSE});
destroy();
}
function destroy() {
content.destroy();
exit.removeAllListeners();
super.destroy();
}
var hPadding = 5;
var vPadding = 5;
var fStyle = null;
}
Symbol 20561 MovieClip [__Packages.com.techsmith.utils.Util] Frame 0
class com.techsmith.utils.Util
{
function Util () {
}
static function prnObj(obj, sp) {
var _local4 = "";
if (sp == null) {
sp = "";
}
for (var i in obj) {
if (typeof(obj[i]) == "object") {
_local4 = _local4 + ((((((sp + i) + " = ") + "{\n") + prnObj(obj[i], sp + " ")) + sp) + "}\n");
} else {
_local4 = _local4 + ((((sp + i) + " = ") + obj[i]) + newline);
}
}
return(_local4);
}
static function doObjectsMatch(a, b) {
return(prnObj(a) == prnObj(b));
}
static function sprintf(str) {
var _local3 = 1;
var _local4 = 0;
var _local5 = str.indexOf("@", _local5);
for ( ; (_local5 != -1) && (_local3 < arguments.length) ; _local5 = str.indexOf("@", _local5) , _local3++) {
str = (str.slice(_local4, _local5) + arguments[_local3]) + str.substring(_local5 + 1);
_local5 = _local5 + ("" + arguments[_local3]).length;
}
return(str);
}
static function printClasses(obj) {
for (var i in obj) {
if (obj[i] instanceof Function) {
var _local3 = i.substr(0, 1);
if (_local3.toUpperCase() == _local3) {
trace("Class Name: " + i);
}
printClasses(obj[i]);
}
}
}
}
Symbol 20562 MovieClip [__Packages.com.techsmith.camtasia.SoundManager] Frame 0
class com.techsmith.camtasia.SoundManager extends com.brooksandrus.utils.Dispatcher
{
var sound, dispatchEvent;
function SoundManager (initialVolume) {
super();
sound = new Sound();
setVolume(initialVolume);
}
function setVolume(percent) {
if (percent > 100) {
percent = 100;
}
if (percent < 0) {
percent = 0;
}
level = percent;
if ((percent == 0) && (level != 0)) {
mute();
} else {
sound.setVolume(percent);
}
if (muted && (percent > 0)) {
muted = false;
}
}
function mute(internalMute) {
muted = (muted ? false : true);
var _local3 = (muted ? 0 : (level));
sound.setVolume(_local3);
if (_local3 == 0) {
dispatchEvent({type:MUTE_EVENT, target:this});
}
}
function getVolume() {
return(sound.getVolume());
}
static var MUTE_EVENT = "muteEvent";
var level = 100;
var muted = false;
}
Symbol 20563 MovieClip [__Packages.com.techsmith.camtasia.CamtasiaApplication] Frame 0
class com.techsmith.camtasia.CamtasiaApplication extends MovieClip implements com.techsmith.events.IEventDispatcher
{
var dolaterClip, createEmptyMovieClip, _visible, dispatcher, player, start, end, toc, aboutWin, hsPane, quizApp, captionWin, model, main, videoWidth, videoHeight, fps, options, soundManager, contentWidth, captions, contentHeight, progWatcher, mask, setMask, media, endbackdrop, getURL, dolaterX, volume, tooltip, _xmouse, _ymouse;
function CamtasiaApplication () {
super();
dolaterClip = createEmptyMovieClip("dolaterClip", 999);
_visible = false;
dispatcher = new com.techsmith.events.EventDispatcher();
}
static function create(container, name, depth, init) {
Object.registerClass("CamtasiaApplication", com.techsmith.camtasia.CamtasiaApplication);
var _local6 = container.attachMovie("CamtasiaApplication", name, depth, init);
return(com.techsmith.camtasia.CamtasiaApplication(_local6));
}
function destroy() {
removeAllListeners();
_global.com.techsmith.camtasia.Main = null;
player.destroy();
start.destroy();
end.destroy();
com.techsmith.ui.Component(toc).destroy();
aboutWin.destroy();
hsPane.destroy();
quizApp.destroy();
captionWin.destroy();
}
function onUnload() {
destroy();
}
function init(scope) {
model = new com.techsmith.camtasia.CamtasiaModel(scope.config);
doLater(initialized, [scope]);
}
function initialized(scope) {
main = scope;
videoWidth = scope.tscwidth;
videoHeight = scope.tscheight;
fps = scope.fps;
var _local3 = ((scope.thumbscale != null) ? (_global.parseInt(scope.thumbscale) / 100) : 0.45);
if (_local3 > 1) {
_local3 = 1;
}
main.focusManager.enabled = false;
com.techsmith.utils.AccessibilityUtil.setlocalAcc(model.getlocalAcc());
if (model.options.tscwidth != undefined) {
videoWidth = Number(model.options.tscwidth);
}
if (model.options.tscheight != undefined) {
videoHeight = Number(model.options.tscheight);
}
if (scope.autostart != undefined) {
scope.autostart = _global.escape(scope.autostart);
model.options.autoStart = ((scope.autostart == "true") ? true : false);
}
if (scope.controller != undefined) {
scope.controller = ((scope.controller == "false") ? false : true);
}
if (scope.showstartscreen != undefined) {
scope.showstartscreen = _global.escape(scope.showstartscreen);
model.options.showstartscreen = ((scope.showstartscreen == "false") ? false : true);
}
if (scope.seekandplay != undefined) {
model.options.seekandplay = ((scope.seekandplay == "true") ? true : false);
}
if (scope.showendscreen != undefined) {
scope.showendscreen = _global.escape(scope.showendscreen);
model.options.showendscreen = ((scope.showendscreen == "false") ? false : true);
}
if (scope.showtoc != undefined) {
scope.showtoc = _global.escape(scope.showtoc);
model.options.showtoc = ((scope.showtoc == "true") ? true : false);
}
if (scope.loop != undefined) {
scope.loop = _global.escape(scope.loop);
model.options.loop = ((scope.loop == "true") ? true : false);
}
var _local4 = ((model.options.hasToc && (model.options.toc.type == com.techsmith.camtasia.toc.TOCConstants.FLOATING)) ? true : false);
options = new com.techsmith.camtasia.UIOptions(model.options.hasAudio, _local4, model.options.hasCaptions, model.options.hasFullscreen, model.options.hasAbout);
createPlayer(scope, options);
soundManager = new com.techsmith.camtasia.SoundManager(model.options.volume);
soundManager.addEventListener(com.techsmith.camtasia.SoundManager.MUTE_EVENT, com.techsmith.utils.Delegate.create(this, novolumeMuteHandler));
contentWidth = videoWidth;
if (model.hotspots.length != null) {
hsPane = com.techsmith.camtasia.hotspot.HotspotContainer.create(this, "hsPane", 5);
hsPane.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, hotspotClickHandler));
hsPane.addEventListener(com.techsmith.events.Events.CHANGE, com.techsmith.utils.Delegate.create(this, hotspotPauseHandler));
}
if (model.quizzes.length != null) {
quizApp = com.techsmith.camtasia.quiz.QuizApplication.create(this, "quizApp", 9, {constraints:setQuizDragConstraints(470, 340)});
quizApp.init(new com.techsmith.utils.Dimension(470, 340), model.config, model.options.rememberQuizAnswers);
quizApp.initializeFileset(0, fps, scope._totalframes - 1);
quizApp.addEventListener(com.techsmith.camtasia.quiz.QuizApplication.JUMP_TO_TIME, com.techsmith.utils.Delegate.create(this, quizJumpToTimeHandler));
quizApp.addEventListener(com.techsmith.camtasia.quiz.QuizApplication.COMPLETE, com.techsmith.utils.Delegate.create(this, quizCompleteHandler));
quizApp.addEventListener(com.techsmith.camtasia.quiz.QuizApplication.SUMMARY_COMPLETE, com.techsmith.utils.Delegate.create(this, summaryCompleteHandler));
}
if (model.options.hasToc) {
setupToc();
}
if (options.captions) {
model.cleanupNestedRTF();
createCaption();
captionWin.find(captions, 0);
}
if ((model.options.toc.type == com.techsmith.camtasia.toc.TOCConstants.FLOATING) && (scope.controller != false)) {
startSequence(model.options.autoStart, scope, model.options.showstartscreen, _local3);
} else {
doLater(startSequence, [model.options.autoStart, scope, model.options.showstartscreen, _local3]);
}
createProgressWatcher();
scope.menu = new com.techsmith.camtasia.CSContextMenu(model.options.brandedContextMenu);
if (model.options.volume <= 0) {
player.setAudioState(true);
}
dispatchEvent({type:com.techsmith.events.Events.INIT, target:scope, options:options});
}
function createPlayer(scope, options) {
player = com.techsmith.camtasia.CamtasiaPlayer.create(this, "player", 10);
player.init(new com.techsmith.utils.Dimension(videoWidth, videoHeight), scope, fps, options);
player.move(0, videoHeight);
player.setVisible(main.controller);
player.addEventListener(com.techsmith.events.Events.COMPLETE, com.techsmith.utils.Delegate.create(this, playbackFinishedHandler));
player.addEventListener(com.techsmith.events.Events.ENTER_FRAME, com.techsmith.utils.Delegate.create(this, frameBeaconHandler));
player.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, trayHandler));
player.addEventListener(com.techsmith.events.Events.SEEK_COMPLETE, com.techsmith.utils.Delegate.create(this, frameBeaconHandler));
player.addEventListener(com.techsmith.events.Events.DRAG_START, com.techsmith.utils.Delegate.create(this, dragStartHandler));
player.addEventListener(com.techsmith.events.Events.DRAG_STOP, com.techsmith.utils.Delegate.create(this, dragStopHandler));
player.addEventListener(com.techsmith.events.Events.STARTED, com.techsmith.utils.Delegate.create(this, playHandler));
player.addEventListener(com.techsmith.camtasia.CamtasiaPlayer.AUDIO_CLICK, com.techsmith.utils.Delegate.create(this, audioMuteHandler));
player.addEventListener(com.techsmith.camtasia.CamtasiaPlayer.AUDIO_OVER, com.techsmith.utils.Delegate.create(this, audioControlHandler));
player.addEventListener(com.techsmith.events.Events.TOOLTIP, com.techsmith.utils.Delegate.create(this, tooltipHandler));
player.addEventListener(com.techsmith.events.Events.CONTROL_STATE_PLAY, com.techsmith.utils.Delegate.create(this, apiDispatcher));
player.addEventListener("replayMedia", com.techsmith.utils.Delegate.create(this, apiDispatcher));
}
function createCaption() {
captionWin = com.techsmith.camtasia.CaptionWindow.create(this, "captionWin", 8);
var _local2 = model.options.caption.font;
var _local3 = model.options.caption.panel.background;
captionWin.addEventListener("captionChange", com.techsmith.utils.Delegate.create(this, apiDispatcher));
captionWin.init(videoWidth, _local2.color, _local2.type, _local2.size, _local2.weight, _local3.color, _local3.alpha, _local2.cpl);
if (model.options.toc.type == com.techsmith.camtasia.toc.TOCConstants.FIXED_LEFT) {
captionWin.move(toc.width, videoHeight - captionWin._height);
} else {
captionWin.move(0, videoHeight - captionWin._height);
}
if (Accessibility.isActive()) {
captionWin.tabEnabled = true;
captionWin.tabIndex = 60;
}
captions = model.captions;
captionWin.setVisible(model.options.captionsVisible);
}
function setupToc() {
createToc();
toc.dataProvider = model.toc;
if (main.expandtoc == "false") {
model.options.toc.expanded = false;
model.options.toc.collapsible = true;
toc.setStyle(model.options.toc);
} else {
toc.setStyle(model.options.toc);
toc.expandTree(model.toc);
}
if (model.options.toc.transparent) {
toc.setRowsTransparent();
}
toc.addEventListener(com.techsmith.events.Events.CHANGE, com.techsmith.utils.Delegate.create(this, treeChangeHandler));
}
function createToc() {
var _local2 = model.options.toc.type;
var _local3 = ((model.options.toc.titlecolor != null) ? (model.options.toc.titlecolor) : "0xFFFFFF");
if (_local2 == com.techsmith.camtasia.toc.TOCConstants.FLOATING) {
var _local4 = ((model.options.toc.height >= (videoHeight - 40)) ? (videoHeight - 40) : (model.options.toc.height));
toc = com.techsmith.camtasia.toc.TOCWindow.create(this, "toc", 6, {constraints:setDragConstraints(model.options.toc.width, _local4), labelTextColor:_local3});
toc.init(new com.techsmith.utils.Dimension(model.options.toc.width, _local4), model.options.toc.title, model.options.toc.media);
toc.move((videoWidth - toc.width) / 2, (videoHeight - toc.height) / 2);
toc.setVisible(false);
} else if (_local2 == com.techsmith.camtasia.toc.TOCConstants.FIXED_LEFT) {
contentWidth = videoWidth + model.options.toc.width;
contentHeight = videoHeight;
toc = com.techsmith.camtasia.toc.TOCFixedWindow.create(this, "toc", 6, {backgroundType:_local2, labelTextColor:_local3});
toc.init(new com.techsmith.utils.Dimension(model.options.toc.width, model.options.toc.height), model.options.toc.title, model.options.toc.media);
toc.move(0, 0);
player.move(toc.width, videoHeight);
hsPane.move(toc.width, 0);
quizApp.setQuizPosition(((videoWidth - quizApp.width) / 2) + toc.width, (videoHeight - quizApp.height) / 2);
} else if (_local2 == com.techsmith.camtasia.toc.TOCConstants.FIXED_RIGHT) {
contentWidth = videoWidth + model.options.toc.width;
contentHeight = videoHeight;
toc = com.techsmith.camtasia.toc.TOCFixedWindow.create(this, "toc", 6, {backgroundType:_local2, labelTextColor:_local3});
toc.init(new com.techsmith.utils.Dimension(model.options.toc.width, model.options.toc.height), model.options.toc.title, model.options.toc.media);
toc.move(videoWidth, 0);
}
}
function startSequence(autoStart, scope, showstartscreen, thumbScale) {
createMask();
if ((autoStart == true) || (showstartscreen == false)) {
scope._visible = true;
_visible = true;
if (autoStart == true) {
doLater(dispatchEvent, [{target:this, type:com.techsmith.events.Events.CONTROL_STATE_PLAY, selected:false}]);
startPlayback();
}
} else {
player.tabChildren = false;
if (main.color != undefined) {
var _local6 = main.color.split(",");
if (_local6.length == 1) {
_local6.push(_local6[0]);
}
var _local7 = 0;
for ( ; _local7 < _local6.length ; _local7++) {
_local6[_local7] = _global.parseInt(_local6[_local7], 16);
}
start = com.techsmith.camtasia.StartScreen.create(this, "start", 15, {colors:_local6, scale:thumbScale});
} else {
start = com.techsmith.camtasia.StartScreen.create(this, "start", 15, {scale:thumbScale});
}
player.setProgress(100);
_visible = true;
start.init(scope, new com.techsmith.utils.Dimension(contentWidth, videoHeight + controlsHeight), model.options.startLogo, model.options.startText);
start.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, startHandler));
player.setProgress((main._framesloaded / main._totalframes) * 100);
}
}
function createProgressWatcher() {
trace("creating progressive watcher");
progWatcher = createEmptyMovieClip("progWatcher", 50);
progWatcher.onEnterFrame = com.techsmith.utils.Delegate.create(this, progWatcherHandler);
}
function createMask() {
mask = createEmptyMovieClip("mask", 15000);
var _local2 = 0;
if (model.options.hasToc) {
if (model.options.toc.type != com.techsmith.camtasia.toc.TOCConstants.FLOATING) {
_local2 = model.options.toc.width;
}
}
var _local3 = new com.brooksandrus.drawing.Rect();
_local3.draw(mask, videoWidth + _local2, videoHeight + controlsHeight, 16777215, 100);
setMask(mask);
mask._x = 0;
mask._y = 0;
}
function createAboutWindow(e) {
var _local3 = model.options.toc.type;
var _local4 = model.options.about.infoText;
var _local5 = (((_local4 == null) || (_local4 == "")) ? (getDefaultInfo()) : (_local4));
var _local6 = (((model.options.about.backgroundalpha != null) && (model.options.about.backgroundalpha != "")) ? (model.options.about.backgroundalpha) : 20);
var _local7 = (((model.options.about.backgroundcolor != null) && (model.options.about.backgroundcolor != "")) ? (model.options.about.backgroundcolor) : 16777215);
var _local8 = (((model.options.about.titlecolor != null) && (model.options.about.titlecolor != "")) ? (model.options.about.titlecolor) : "0xFFFFFF");
aboutWin = com.techsmith.camtasia.AboutWindow.create(this, "aboutWin", 7, {title:model.options.about.title, logo:model.options.about.logo, tabFocus:model.options.about.tabSelected, aboutContent:model.options.about.aboutText, infoContent:_local5, aboutUrl:model.options.about.aboutMedia, fillcolor:_local7, fillopacity:_local6, labelColor:_local8, constraints:setDragConstraints(model.options.about.width, model.options.about.height)});
aboutWin.init(new com.techsmith.utils.Dimension(model.options.about.width, model.options.about.height));
var _local9 = (((model.options.toc.type == 1) || (model.options.toc.type == 3)) ? 0 : (model.options.toc.width));
var _local10 = ((aboutWin.width > model.options.about.width) ? (model.options.about.width) : (aboutWin.width));
aboutWin.move(((videoWidth - _local10) / 2) + _local9, (videoHeight - aboutWin.height) / 2);
aboutWin.addEventListener(com.techsmith.events.Events.CLOSE, com.techsmith.utils.Delegate.create(this, aboutWindowHandler));
}
function createEndScreen() {
if (model.options.showendscreen != false) {
if ((media != null) && (main._totalframes == 1)) {
if (replay) {
}
player.stopMedia();
} else if (main._currentframe != main._totalframes) {
main.gotoAndStop(main._totalframes);
}
var _local2 = model.options.toc.type;
if (_local2 == com.techsmith.camtasia.toc.TOCConstants.FLOATING) {
MovieClip(toc).tabEnabled = false;
MovieClip(toc).tabChildren = false;
}
player.tabChildren = false;
quizApp.tabEnabled = false;
quizApp.tabChildren = false;
captionWin.tabEnabled = false;
aboutWin.tabEnabled = false;
endbackdrop = createEmptyMovieClip("endbackdrop", 15);
endbackdrop.useHandCursor = false;
endbackdrop.onPress = null;
var _local3 = [0, 3355443];
var _local4 = [80, 80];
var _local5 = [255, 255];
var _local6 = new com.brooksandrus.drawing.Rect();
_local6.gdraw(endbackdrop, videoWidth, videoHeight, _local3, _local4, _local5);
end = com.techsmith.camtasia.EndScreen.create(this, "end", 16, {logoIcon:model.options.endLogo});
var _local7 = ((videoWidth < 400) ? (videoWidth) : 400);
var _local8 = (_local7 / end._width) * 100;
end._xscale = _local8;
end._yscale = _local8;
if (model.options.toc.type == com.techsmith.camtasia.toc.TOCConstants.FIXED_LEFT) {
end.move(((videoWidth - end._width) / 2) + model.options.toc.width, (videoHeight - end._height) / 2);
endbackdrop._x = model.options.toc.width;
} else {
end.move((videoWidth - end._width) / 2, (videoHeight - end._height) / 2);
}
end.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, endScreenHandler));
}
dispatchEvent({target:this, type:"showEndScreen"});
}
function getDefaultInfo() {
var _local2 = "";
var _local3 = model.fileset.video1.uri;
var _local4 = Math.round(model.fileset.video1.duration * model.fileset.video1.frameRate);
var _local5 = String(Math.round(main.getBytesTotal() / 1024) / 1024);
var _local6 = _local5.indexOf(".");
if (_local6 != -1) {
_local5 = _local5.substr(0, _local6 + 3);
}
if (_local3 == "") {
_local2 = "No Data Available";
} else {
_local6 = _local3.indexOf("http://www.screencast.com");
if (_local6 == 0) {
var _local7 = _local3.indexOf("x-shockwave-flash_");
if (_local7 != -1) {
_local3 = _local3.slice(_local7 + 18);
}
}
_local2 = ("Name: " + _global.unescape(_local3)) + "\r";
_local2 = _local2 + (("Duration: " + _local4) + " frames");
}
return(_local2);
}
function findQuiz(current, last, activeEvent) {
var _local5 = false;
if (quizApp != null) {
_local5 = quizApp.find(current, last);
if (_local5) {
var _local6 = ((main.showquiz == false) ? false : true);
if (_local6) {
quizApp.tabEnabled = true;
quizApp.tabChildren = true;
player.stopMedia();
var _local7 = model.options.toc.type;
if (_local7 == com.techsmith.camtasia.toc.TOCConstants.FLOATING) {
MovieClip(toc).tabEnabled = false;
MovieClip(toc).tabChildren = false;
}
player.tabChildren = false;
captionWin.tabEnabled = false;
aboutWin.tabEnabled = false;
quizApp.setQuizPosition(((videoWidth - quizApp.width) / 2) + player.x, (videoHeight - quizApp.height) / 2);
quizApp.setVisible(true);
} else {
quizApp.setVisible(false);
}
if (activeEvent == true) {
dispatchEvent({target:this, type:"showQuiz", data:quizApp.getQuestion()});
}
} else {
if (quizApp.tabEnabled == true) {
var _local8 = model.options.toc.type;
if (_local8 == com.techsmith.camtasia.toc.TOCConstants.FLOATING) {
MovieClip(toc).tabEnabled = true;
MovieClip(toc).tabChildren = true;
}
player.tabChildren = true;
captionWin.tabEnabled = true;
aboutWin.tabEnabled = true;
quizApp.tabEnabled = false;
}
quizApp.setVisible(false);
}
}
return(_local5);
}
function replayMedia() {
destroyEndScreen();
player.replay();
}
function replayPlaylist() {
}
function destroyEndScreen() {
var _local2 = model.options.toc.type;
MovieClip(toc).tabEnabled = true;
MovieClip(toc).tabChildren = true;
player.tabChildren = true;
captionWin.tabEnabled = true;
aboutWin.tabEnabled = true;
end.removeAllListeners();
endbackdrop.removeMovieClip();
end.destroy();
}
function executeEndActions() {
if (model.options.loop) {
if ((media != null) && (main._totalframes == 1)) {
replayPlaylist();
} else {
replayMedia();
}
} else {
dispatchEvent({target:this, type:com.techsmith.events.Events.COMPLETE});
var _local2 = ((main.endactions == false) ? false : true);
if (_local2) {
switch (model.options.endAction) {
case "Stop" :
createEndScreen();
break;
case "JumpToTime" :
var _local3 = _global.parseInt(model.options.endActionParam);
player.seek(_global.parseInt(model.options.endActionParam, 10));
player.stopMedia();
player.ExtUpdateTime({seconds:_local3});
player.ExtUpdateSlider({rawPercent:_local3 / media.getDuration()});
break;
case "JumpToURL" :
var _local4 = (((model.options.endActionTarget == null) || (model.options.endActionTarget == "")) ? "_self" : (model.options.endActionTarget));
createEndScreen();
getURL(model.options.endActionParam, _local4);
break;
case "JumpToTimeAndPlay" :
endActionSeek = true;
player.seek(_global.parseInt(model.options.endActionParam, 10));
player.stopMedia();
player.playMedia();
break;
default :
createEndScreen();
}
}
}
}
function doLater(func, args) {
dolaterClip.onEnterFrame = com.techsmith.utils.Delegate.create(this, executeDoLater, func, args);
}
function doLaterINIT(func, args) {
dolaterX.onEnterFrame = com.techsmith.utils.Delegate.create(this, executeDoLaterINIT, func, args);
}
function executeDoLater(func, args) {
delete dolaterClip.onEnterFrame;
func.apply(this, args);
}
function executeDoLaterINIT(func, args) {
delete dolaterX.onEnterFrame;
func.apply(this, args);
}
function startPlayback() {
if (model.options.showtoc) {
showFloatingToc();
}
if ((!findQuiz(main._currentframe, main._currentframe)) || (!main.showquiz)) {
player.tabChildren = true;
player.start();
}
if (!main.showquiz) {
findQuiz(main._currentframe, main._currentframe, true);
}
}
function showFloatingToc(e) {
if (e.selected == true) {
toc.setVisible(false);
player.setTocState(false);
} else {
toc.setVisible(true);
player.setTocState(true);
}
}
function aboutWindowHandler(e) {
aboutWin.removeAllListeners();
aboutWin.destroy();
player.aboutEnabled(true);
}
function startHandler(e) {
start.destroy();
startPlayback();
}
function endScreenHandler(e) {
switch (e.id) {
case "replay" :
replayMedia();
break;
case "share" :
}
}
function playbackFinishedHandler(e) {
dispatchEvent(e);
if (!findQuiz(main._currentframe, main._currentframe)) {
executeEndActions();
}
}
function dragStartHandler(e) {
isDragging = true;
quizApp.setVisible(false);
if (end != null) {
destroyEndScreen();
}
}
function dragStopHandler(e) {
isDragging = false;
findQuiz(main._currentframe, main._currentframe, true);
}
function progWatcherHandler() {
var _local2 = (main._framesloaded / main._totalframes) * 100;
player.setProgress(_local2);
if (_local2 >= 100) {
delete progWatcher.onEnterFrame;
progWatcher.removeMovieClip();
}
}
function frameBeaconHandler(e) {
dispatchEvent(e);
var _local3 = fps;
var _local4 = e.totalframes / _local3;
var _local5 = e.currentframe / _local3;
if (model.options.hasCaptions) {
captionWin.find(captions, _local5);
}
if (model.options.hasToc) {
toc.setSelected(_local5);
}
if (hsPane != null) {
hsPane.find(model.hotspots, _local5, _local3);
}
if (!isDragging) {
findQuiz(e.previousframe, e.currentframe, true);
}
}
function trayHandler(e) {
dispatchEvent(e);
switch (e.id) {
case "captions" :
captionWin._visible = (captionWin._visible ? false : true);
break;
case "toc" :
toc.setVisible(!MovieClip(toc)._visible);
break;
case "about" :
if ((aboutWin == undefined) || (aboutWin == null)) {
createAboutWindow();
} else {
player.aboutEnabled(true);
aboutWin.destroy();
aboutWin = null;
}
}
}
function treeChangeHandler(e) {
player.seek(e.time);
if (end != null) {
destroyEndScreen();
}
}
function hotspotPauseHandler(e) {
dispatchEvent({type:"hotspotPause", target:this});
var _local3 = ((main.hotspotactions == false) ? false : true);
if (_local3) {
player.stopMedia();
}
}
function hotspotClickHandler(e) {
dispatchEvent({type:"hotspotClick", target:this, hotspot:e});
var _local3 = ((main.hotspotactions == false) ? false : true);
trace("active=" + main.active);
trace("e.action = " + e.action);
if (_local3) {
switch (e.action) {
case com.techsmith.camtasia.hotspot.HotspotConstants.SEEK_TIME :
hotspotSeektoTime(e.time, e.jumpandplay);
break;
case com.techsmith.camtasia.hotspot.HotspotConstants.NONE :
trace("continue playing from hotspot");
player.playMedia();
}
}
}
function hotspotSeektoTime(time, jumpandplay) {
player.seek(time);
if (jumpandplay || (model.options.seekandplay == true)) {
player.playMedia();
}
}
function quizChangeHandler(e) {
player.tabChildren = true;
if (e.action == "pause") {
player.stopMedia();
}
if (e.action == "resume") {
player.playMedia();
}
}
function summaryCompleteHandler(e) {
dispatchEvent(e);
player.tabChildren = true;
quizApp.setVisible(false);
if (main._currentframe == main._totalframes) {
executeEndActions();
} else {
player.playMedia();
}
}
function quizJumpToTimeHandler(e) {
player.tabChildren = true;
player.seek(e.response.GotoTime);
player.playMedia();
}
function quizCompleteHandler(e) {
player.tabChildren = true;
quizApp.tabChildren = false;
player.tabChildren = true;
if (!e.summary) {
quizApp.setVisible(false);
player.playMedia();
}
}
function playHandler(e) {
dispatchEvent(e);
if (end != null) {
destroyEndScreen();
}
quizApp.setVisible(false);
}
function audioMuteHandler(e) {
dispatchEvent(e);
volume.destroy();
soundManager.mute();
}
function audioControlHandler(e) {
volume = com.techsmith.ui.VolumeControl.create(this, "volume", 14, {tabChildren:true, focusrect:false, thumbTabIndex:e.tabIndex, thumbFocusRect:false});
volume.setPosition(soundManager.getVolume());
volume.addEventListener(com.techsmith.ui.VolumeControl.VOLUME_EVENT, com.techsmith.utils.Delegate.create(this, volumeHandler));
volume.addEventListener(com.techsmith.events.Events.KEY_DOWN, com.techsmith.utils.Delegate.create(this, volumeSliderKeyDownHandler));
var _local3 = player.getAudioPosition();
var _local4 = (_local3.x + player._x) - ((volume._width - player.getAudioDimensions().width) / 2);
volume.move(_local4, _local3.y - (volume._height + 10));
var _local5 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().volumeslider != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().volumeslider) : "Audio Indicator");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:volume.getVolumeThumb(), name:_local5, description:"", shortcut:""});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
}
function volumeHandler(e) {
soundManager.setVolume(e.volume);
if (player.getAudioState() && (e.volume > 0)) {
var _local3 = false;
player.setAudioState(false);
}
if ((!player.getAudioState()) && (e.volume == 0)) {
var _local3 = true;
player.setAudioState(true);
}
dispatchEvent({target:e.target, type:e.type, volume:e.volume, mute:_local3});
}
function volumeSliderKeyDownHandler(e) {
if (Selection.getFocus() == String(e.target)) {
switch (Key.getCode()) {
case Key.UP :
if (soundManager.getVolume() != 100) {
volume.setPosition(soundManager.getVolume() + 1);
volumeHandler({volume:soundManager.getVolume() + 1});
}
break;
case Key.DOWN :
if (soundManager.getVolume() != 0) {
volume.setPosition(soundManager.getVolume() - 1);
volumeHandler({volume:soundManager.getVolume() - 1});
}
break;
case 187 :
if (soundManager.getVolume() != 100) {
volume.setPosition(soundManager.getVolume() + 1);
volumeHandler({volume:soundManager.getVolume() + 1});
}
break;
case 189 :
if (soundManager.getVolume() == 0) {
break;
}
volume.setPosition(soundManager.getVolume() - 1);
volumeHandler({volume:soundManager.getVolume() - 1});
}
}
}
function novolumeMuteHandler(e) {
player.setAudioState(true);
dispatchEvent({target:this, type:e.type, mute:true});
}
function tooltipHandler(e) {
_global.clearTimeout(tipId);
tooltip.destroy();
if (e.message != "destroy") {
tipId = _global.setTimeout(this, "createToolTip", 2000, e.message);
}
}
function setDragConstraints(w, h) {
var _local4 = model.options.toc.type;
var _local5 = 0;
if (_local4 != com.techsmith.camtasia.toc.TOCConstants.FLOATING) {
_local5 = model.options.toc.width;
}
constraints = {left:0, top:0, right:(videoWidth + _local5) - w, bottom:videoHeight - h};
return(constraints);
}
function setQuizDragConstraints(w, h) {
var _local4 = model.options.toc.type;
var _local5 = 0;
if (_local4 != com.techsmith.camtasia.toc.TOCConstants.FLOATING) {
_local5 = model.options.toc.width;
}
if (_local4 == com.techsmith.camtasia.toc.TOCConstants.FIXED_LEFT) {
constraints = {left:-_local5, top:0, right:(videoWidth + _local5) - w, bottom:videoHeight - h};
} else {
constraints = {left:0, top:0, right:(videoWidth + _local5) - w, bottom:videoHeight - h};
}
return(constraints);
}
function createToolTip(message) {
tooltip = com.techsmith.ui.ToolTip.create(this, "tip", 100, {fillColor:6710886, fontColor:13421772, font:"DinotBold", alignment:"center", embedFont:true});
tooltip.setTip(message, 100);
tooltip.move(_xmouse - tooltip.width, _ymouse - (tooltip.height + 15));
}
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 apiPlay() {
}
function apiStop() {
player.stopMedia();
}
function apiSeek(time) {
player.seek(time);
if (end != null) {
destroyEndScreen();
}
if (start != null) {
start.destroy();
}
}
function apiWindow(e) {
switch (e) {
case "captions" :
captionWin._visible = (captionWin._visible ? false : true);
break;
case "toc" :
toc.setVisible(!MovieClip(toc)._visible);
break;
case "about" :
if ((aboutWin == undefined) || (aboutWin == null)) {
createAboutWindow();
} else {
player.aboutEnabled(true);
aboutWin.destroy();
aboutWin = null;
}
}
}
function apiFullscreen() {
player.fullscreenHandler({});
}
function apiVolume(value) {
volumeHandler({volume:value});
}
function apiMute(value) {
player.apiAudioClickHandler(value);
}
function apiGetVolume() {
return(soundManager.getVolume());
}
function apiDuration() {
var _local2 = model.videoDuration;
return(_local2);
}
function apiTocList() {
var _local2 = model.toc;
return(_local2);
}
function apiOptions() {
return(options);
}
function apiDrag(value) {
player.apiDragHandler(value);
}
function apiAbout() {
var _local2 = model.options.about.infoText;
var _local3 = (((_local2 == null) || (_local2 == "")) ? (getDefaultInfo()) : (_local2));
return({title:model.options.about.title, aboutText:model.options.about.aboutText, infoText:_local3});
}
function apiDispatcher(e) {
dispatchEvent(e);
}
var controlsHeight = 18;
var isDragging = false;
var tipId = -1;
var replay = false;
var constraints = null;
var endActionSeek = false;
var preloadpercent = null;
}
Symbol 20564 MovieClip [__Packages.com.techsmith.camtasia.quiz.QuizWindow] Frame 0
class com.techsmith.camtasia.quiz.QuizWindow extends com.techsmith.xskin.ui.XSWindow
{
var bgStyle, fgStyle, label, depthManager, getContentLoc, addChild, _width, _height, exit, content, bgDim, feedbackDepth, getNextDepth, originalUserData, dispatchEvent, setVisible, foreground, background;
function QuizWindow () {
super();
bgStyle = com.techsmith.xskin.ui.panels.styles.StyleFactory.GLASS;
fgStyle = com.techsmith.xskin.ui.panels.styles.StyleFactory.BLACK;
}
static function create(container, name, depth, init) {
Object.registerClass("QuizWindow", com.techsmith.camtasia.quiz.QuizWindow);
var _local6 = container.attachMovie("QuizWindow", name, depth, init);
return(com.techsmith.camtasia.quiz.QuizWindow(_local6));
}
function setupWindowChrome(bDim) {
super.setupWindowChrome(bDim);
label = com.techsmith.ui.Label.create(this, "label", depthManager.getNextDepth(), {color:"FFFFFF", bold:true, multiline:false});
var _local4 = getContentLoc();
label._x = _local4.x;
label._y = (_local4.y - label._height) / 2;
prev = addChild(com.techsmith.ui.LabelButton, "prev", {embedFont:true});
submit = addChild(com.techsmith.ui.LabelButton, "submit", {embedFont:true});
next = addChild(com.techsmith.ui.LabelButton, "next", {embedFont:true});
var _local5 = new com.techsmith.ui.panels.PanelStyle("NextLUp", "NextMUp", "NextRUp");
var _local6 = new com.techsmith.ui.panels.PanelStyle("NextLOver", "NextMOver", "NextROver");
var _local7 = new com.techsmith.ui.panels.PanelStyle("NextLDown", "NextMDown", "NextRDown");
var _local8 = new com.techsmith.ui.panels.PanelStyle("NextLDisabled", "NextMDisabled", "NextRDisabled");
var _local9 = new com.techsmith.ui.panels.PanelStyle("SubmitLUp", "SubmitMUp", "SubmitRUp");
var _local10 = new com.techsmith.ui.panels.PanelStyle("SubmitLOver", "SubmitMOver", "SubmitROver");
var _local11 = new com.techsmith.ui.panels.PanelStyle("SubmitLDown", "SubmitMDown", "SubmitRDown");
var _local12 = new com.techsmith.ui.panels.PanelStyle("SubmitLDisabled", "SubmitMDisabled", "SubmitRDisabled");
var _local13 = new com.techsmith.ui.panels.PanelStyle("PrevLUp", "PrevMUp", "PrevRUp");
var _local14 = new com.techsmith.ui.panels.PanelStyle("PrevLOver", "PrevMOver", "PrevROver");
var _local15 = new com.techsmith.ui.panels.PanelStyle("PrevLDown", "PrevMDown", "PrevRDown");
var _local16 = new com.techsmith.ui.panels.PanelStyle("PrevLDisabled", "PrevMDisabled", "PrevRDisabled");
var _local17 = new TextFormat();
_local17.font = "DinotBold";
_local17.size = 13;
_local17.color = 16777215 /* 0xFFFFFF */;
_local17.align = "center";
_local17.leftMargin = 2;
_local17.rightMargin = 2;
prev.init("", 50, _local17, {up:_local13, over:_local14, down:_local15, disabled:_local16});
submit.init("", 50, _local17, {up:_local9, over:_local10, down:_local11, disabled:_local12});
next.init("", 50, _local17, {up:_local5, over:_local6, down:_local7, disabled:_local8});
var _local18 = _width - (next._width + hmargin);
var _local19 = _height - (vmargin - ((vmargin - next._height) / 2));
var _local20 = 5;
next.move(_local18, _local19);
submit.move(next._x - (submit._width + _local20), _local19);
prev.move(submit._x - (next._width + _local20), _local19);
var _local21 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitquizbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitquizbutton) : "Exit Quiz");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:exit, name:_local21, description:"", shortcut:""});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
status = addChild(com.techsmith.ui.TextObject, "status", {border:false, fillOpacity:0, strokeOpacity:0, size:10, textColor:"FFFFFF", type:"dynamic", selectable:false});
status.init(next._x - (hmargin + 5), 22);
status.move(hmargin, _local19 - ((status._height - next._height) / 2));
prev.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, prevHandler));
submit.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, submitHandler));
next.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, nextHandler));
}
function setupContent() {
content = addChild(com.techsmith.camtasia.quiz.QuizContent, "content");
content.init(bgDim.width - 20, bgDim.height - 62);
content.move((bgDim.width - content.width) / 2, (bgDim.height - content.height) / 2);
content.addEventListener(com.techsmith.events.Events.CHANGE, com.techsmith.utils.Delegate.create(this, changedAnswer));
feedbackDepth = getNextDepth();
}
function initQuestion(type, data) {
var _local4 = com.techsmith.camtasia.quiz.QuizContent(content);
_local4.createQuestion(type, data, {fontColor:"FFFFFF", cStyle:contentFormat});
originalUserData = _local4.getUserData();
content.tabChildren = true;
feedback.destroy();
updateButtonTabOrder();
}
function setTitle(title) {
label.setText(title);
}
function setStatus(message) {
status.setText(message);
}
function setButtonLabels(prevLabel, submitLabel, nextLabel) {
prev.setLabel(prevLabel);
submit.setLabel(submitLabel);
next.setLabel(nextLabel);
}
function userHasChangedAnswer() {
return(!com.techsmith.utils.Util.doObjectsMatch(originalUserData, com.techsmith.camtasia.quiz.IQuestion(content).getUserData()));
}
function updateButtonStates(isPrevious) {
var _local3 = userHasChangedAnswer();
var _local4 = com.techsmith.camtasia.quiz.IQuestion(content);
submit.setEnabled(_local4.isReadyToSubmit() && (_local3 && (_local4.hasFeedback())));
next.setEnabled(_local4.isReadyToSubmit() && (!(_local3 && (_local4.hasFeedback()))));
prev.setEnabled((!_local3) && (isPrevious));
}
function updateButtonTabOrder() {
com.techsmith.utils.AccessibilityUtil.setNextTabIndex(prev);
com.techsmith.utils.AccessibilityUtil.setNextTabIndex(submit);
com.techsmith.utils.AccessibilityUtil.setNextTabIndex(next);
com.techsmith.utils.AccessibilityUtil.setNextTabIndex(exit);
}
function changedAnswer(e) {
feedback.destroy();
dispatchEvent({target:this, type:com.techsmith.events.Events.CHANGE});
}
function onEnter() {
if (submit.enabled) {
submitHandler();
} else if (next.enabled) {
nextHandler();
}
}
function prevHandler(e) {
feedback.destroy();
dispatchEvent({target:this, type:PREV_EVENT});
}
function submitHandler(e) {
originalUserData = com.techsmith.camtasia.quiz.IQuestion(content).getUserData();
displayFeedback();
dispatchEvent({target:this, type:SUBMIT_EVENT, userdata:com.techsmith.camtasia.quiz.IQuestion(content).getUserData(), hardsubmit:true});
}
function nextHandler(e) {
if (!com.techsmith.camtasia.quiz.IQuestion(content).hasFeedback()) {
submitHandler();
}
feedback.destroy();
dispatchEvent({target:this, type:NEXT_EVENT});
}
function displayFeedback() {
if (com.techsmith.camtasia.quiz.IQuestion(content).hasFeedback()) {
if (com.techsmith.camtasia.quiz.IQuestion(content).isCorrect()) {
com.techsmith.camtasia.quiz.IQuestion(content).enable(false);
}
var _local2 = com.techsmith.camtasia.quiz.IQuestion(content).getFeedback();
feedback = com.techsmith.camtasia.quiz.Feedback.create(this, "feedback", feedbackDepth, {fStyle:feedbackFormat});
com.techsmith.utils.AccessibilityUtil.setNextTabIndex(feedback);
feedback.init(new com.techsmith.utils.Dimension(bgDim.width - 20, bgDim.height - 62));
feedback.move(content.x, content.y);
feedback.setFeedback(_local2.strFeedback, _local2.strDetailedFeedback);
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:feedback, name:(_local2.strFeedback + " ") + _local2.strDetailedFeedback, description:"", shortcut:""});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
if (Accessibility.isActive()) {
feedback.focusEnabled = true;
Selection.setFocus(feedback);
}
}
}
function exitButtonHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.CLOSE});
setVisible(false);
}
function setQStyle(style) {
foreground.setOpacity(style.bgtransparency);
background.setOpacity(style.bgtransparency);
var _local3 = new TextFormat();
_local3.font = (((style.titleformat.font != undefined) && (style.titleformat.font != "")) ? (style.titleformat.font) : "Arial");
_local3.size = (((style.titleformat.size != undefined) && (style.titleformat.size != "")) ? (style.titleformat.size) : 14);
_local3.bold = (((style.titleformat.bold != undefined) && (style.titleformat.bold != "")) ? (style.titleformat.bold) : true);
_local3.italic = (((style.titleformat.italic != undefined) && (style.titleformat.italic != "")) ? (style.titleformat.italic) : false);
_local3.underline = (((style.titleformat.underline != undefined) && (style.titleformat.underline != "")) ? (style.titleformat.underline) : false);
_local3.color = (((style.titleformat.color != undefined) && (style.titleformat.color != "")) ? (_global.parseInt(style.titleformat.color, 16)) : (_global.parseInt("FFFFFF", 16)));
_local3.multiline = false;
_local3.align = "left";
label.setFormat(_local3);
var _local4 = new TextFormat();
_local4.font = (((style.statusformat.font != undefined) && (style.statusformat.font != "")) ? (style.statusformat.font) : "Arial");
_local4.size = (((style.statusformat.size != undefined) && (style.statusformat.size != "")) ? (style.statusformat.size) : 10);
_local4.bold = (((style.statusformat.bold != undefined) && (style.statusformat.bold != "")) ? (style.statusformat.bold) : false);
_local4.italic = (((style.statusformat.italic != undefined) && (style.statusformat.italic != "")) ? (style.statusformat.italic) : false);
_local4.underline = (((style.statusformat.underline != undefined) && (style.statusformat.underline != "")) ? (style.statusformat.underline) : false);
_local4.color = (((style.statusformat.color != undefined) && (style.statusformat.color != "")) ? (_global.parseInt(style.statusformat.color, 16)) : (_global.parseInt("FFFFFF", 16)));
_local4.align = "left";
_local4.leftMargin = 0;
status.setFormat(_local4);
contentFormat = style.contentformat;
feedbackFormat = style.feedbackformat;
}
static var PREV_SELECTED = 1;
static var SUBMIT_SELECTED = 2;
static var NEXT_SELECTED = 3;
static var PREV_EVENT = "prev";
static var SUBMIT_EVENT = "submit";
static var NEXT_EVENT = "next";
var prev = null;
var submit = null;
var next = null;
var status = null;
var feedback = null;
var hmargin = 10;
var vmargin = 31;
var tabFocus = NEXT_SELECTED;
var contentFormat = null;
var feedbackFormat = null;
}
Symbol 20565 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 20566 MovieClip [__Packages.com.techsmith.camtasia.SecureContent] Frame 0
class com.techsmith.camtasia.SecureContent
{
static var allowedContentDomains;
function SecureContent () {
}
static function safeDomainCheck(pathToCheck) {
var _local5 = false;
if (_root._url.indexOf("://") != -1) {
var _local3 = _root._url.split("://")[1].split("/")[0];
} else {
var _local3 = _root._url.split("/")[0];
}
if (pathToCheck.indexOf("://") != -1) {
var _local4 = pathToCheck.split("://")[1].split("/")[0];
} else {
var _local4 = pathToCheck.split("/")[0];
var _local6 = (_local4.lastIndexOf(".") == (_local4.length - 4)) && (pathToCheck.split(".").length <= 2);
var _local7 = (_local4.indexOf(".") == -1) || ((pathToCheck.indexOf("../") == 0) || (pathToCheck.indexOf("/") == 0));
if (_local6 || (_local7)) {
return(true);
}
}
_local5 = _local3 == _local4;
trace(" swfDomain = " + _local3);
trace(" pathDomain = " + _local4);
if ((!_local5) && (allowedContentDomains.length > 0)) {
var _local8 = _local4.toLowerCase();
var _local9 = 0;
for ( ; (_local9 < allowedContentDomains.length) && (!_local5) ; _local9++) {
var _local10 = allowedContentDomains[_local9].toLowerCase();
var _local11 = allowedContentDomains[_local9].indexOf("*");
if (_local11 != -1) {
if (allowedContentDomains[_local9] == "*") {
_local5 = true;
} else if (_local11 == 0) {
_local10 = _local10.substr(1, _local10.length - 1);
_local5 = _local8.indexOf(_local10) != -1;
} else if (_local11 == (_local10.length - 1)) {
_local10 = _local10.substr(0, _local10.length - 1);
var _local12 = _local8.indexOf(_local10);
_local5 = (_local12 != -1) && (_local12 < (_local8.length - 1));
} else {
var _local13 = _local10.split("*");
var _local14 = _local8.indexOf(_local13[0]);
var _local15 = _local8.indexOf(_local13[1]);
_local5 = (_local14 != -1) && ((_local15 != -1) && (_local14 < _local15));
}
} else {
_local5 = _local8.indexOf(_local10) != -1;
}
for ( ; _local5 ; _local9++) {
}
}
}
trace((pathToCheck + " : ") + _local5);
return(_local5);
}
static function contentPolicy(hasPolicy) {
if (hasPolicy && (allowedContentDomains.length <= 0)) {
var xmlpolicy = new XML();
xmlpolicy.ignoreWhite = true;
xmlpolicy.load("contentpolicy.xml");
xmlpolicy.onLoad = function (success) {
if (success) {
trace(success);
var _local3 = xmlpolicy.childNodes[0].childNodes.length;
var _local4 = xmlpolicy.childNodes[0].childNodes;
var _local6 = new Array();
var _local7 = 0;
for ( ; _local7 < _local3 ; _local7++) {
if (_local4[_local7].childNodes[0].nodeValue.indexOf("://") != -1) {
var _local5 = String(_local4[_local7].childNodes[0].nodeValue).split("://")[1].split("/")[0];
} else {
var _local5 = String(_local4[_local7].childNodes[0].nodeValue).split("/")[0];
}
_local6.push(_local5);
}
this.allowedContentDomains = _local6;
trace(_local6);
}
};
}
}
}
Symbol 20567 MovieClip [__Packages.com.techsmith.media.SwfMedia] Frame 0
class com.techsmith.media.SwfMedia extends com.techsmith.media.Media
{
var createEmptyMovieClip, attachMovie, fileUrl, loading, duration, autostart, onEnterFrame, playing, dispatchEvent, dimensions, loop;
function SwfMedia () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("SwfMedia", com.techsmith.media.SwfMedia);
var _local6 = container.attachMovie("SwfMedia", name, depth, init);
return(com.techsmith.media.SwfMedia(_local6));
}
function setupSwf(url) {
var _local3 = null;
var _local4 = url.indexOf(".");
if (content == null) {
content = createEmptyMovieClip("content", 2);
}
if (_local4 == -1) {
attachMovie(url, "content", 2);
_local3 = false;
} else {
if (loader == null) {
loader = new MovieClipLoader();
loader.addListener(this);
}
_local3 = true;
}
return(_local3);
}
function load(url, autoStart, fps, length) {
if (url != fileUrl) {
fileUrl = url;
loading = true;
inited = false;
duration = ((length != null) ? (length) : null);
if (autostart == null) {
autostart = true;
}
if ((fps != undefined) || ((framerate != null) || (!_global.isNaN(framerate)))) {
framerate = fps;
}
autostart = autoStart;
if (setupSwf(url)) {
loader.loadClip(url, content);
}
onEnterFrame = mediaOnEnterFrame;
}
}
function assignMedia(media, autoStart, fps) {
fileUrl = null;
loading = false;
inited = false;
duration = null;
content = media;
if (autostart == null) {
autostart = true;
}
if ((fps != undefined) || ((framerate != null) || (!_global.isNaN(framerate)))) {
framerate = fps;
}
autostart = autoStart;
onEnterFrame = mediaOnEnterFrame;
}
function pauseMedia() {
if (!loading) {
delete onEnterFrame;
}
content.stop();
playing = false;
}
function playMedia() {
if (content._currentframe != content._totalframes) {
if (onEnterFrame == undefined) {
onEnterFrame = mediaOnEnterFrame;
}
content.play();
playing = true;
}
}
function seek(time) {
if (framerate == null) {
dispatchEvent({target:this, type:com.techsmith.events.Events.SEEK_ERROR, message:"unknown fps"});
return(undefined);
}
var _local3 = content._framesloaded;
var _local4 = content._totalframes;
var _local5 = content._currentframe;
var _local6 = Math.round(time * framerate);
if ((_local6 > _local3) && (_local3 != _local4)) {
dispatchEvent({target:this, type:com.techsmith.events.Events.SEEK_ERROR});
return(undefined);
}
if (_local6 > _local4) {
_local6 = _local4;
}
if (playing && (_local6 < _local4)) {
content.gotoAndPlay(_local6);
} else {
content.gotoAndStop(_local6);
pauseMedia();
}
dispatchEvent({target:this, type:com.techsmith.events.Events.SEEK_COMPLETE, time:getTime()});
if (onEnterFrame == undefined) {
var _local7 = getPosition(content._currentframe, _local4);
dispatchEvent({target:this, type:com.techsmith.events.Events.PLAYHEAD_POSITION, percent:_local7.percent, rawPercent:_local7.raw, time:_local7.time, duration:duration, frame:_local5});
}
}
function setSize(dim) {
dimensions = dim;
if (inited) {
content._width = dim.width;
content._height = dim.height;
}
}
function getTime() {
return(content._currentframe / framerate);
}
function getContent() {
return(content);
}
function isPlaying() {
return(playing);
}
function mediaOnEnterFrame() {
if (!inited) {
loadInit();
}
playheadPosition();
}
function loadInit() {
if (content._currentframe == 1) {
inited = true;
if (dimensions != null) {
setSize(dimensions);
}
duration = content._totalframes / framerate;
dispatchEvent({target:this, type:com.techsmith.events.Events.STARTED});
if (!autostart) {
pauseMedia();
content.gotoAndStop(1);
} else {
playMedia();
}
}
}
function getPosition(current, total) {
var _local4 = current / total;
var _local5 = _local4 * 100;
var _local6 = current / framerate;
return({percent:_local5, raw:_local4, time:_local6});
}
function playheadPosition() {
var _local2 = content._currentframe;
var _local3 = content._totalframes;
if ((_local2 == null) || (_global.isNaN(_local2))) {
_local2 = 0;
}
var _local4 = getPosition(_local2, _local3);
dispatchEvent({target:this, type:com.techsmith.events.Events.PLAYHEAD_POSITION, percent:_local4.percent, rawPercent:_local4.raw, time:_local4.time, duration:duration, frame:_local2});
if ((_local2 == _local3) && (!loop)) {
pauseMedia();
dispatchEvent({target:this, type:com.techsmith.events.Events.STOPPED, time:getTime()});
}
}
function onLoadError(target, errorCode, httpStatus) {
playing = false;
delete onEnterFrame;
dispatchEvent({target:this, type:com.techsmith.events.Events.STREAM_ERROR, errorcode:errorCode, httpstatus:httpStatus, url:fileUrl});
}
function onLoadProgress(target, loadedBytes, totalBytes) {
var _local5 = loadedBytes / totalBytes;
var _local6 = _local5 * 100;
if (loadedBytes == totalBytes) {
loading = false;
dispatchEvent({target:this, type:com.techsmith.events.Events.COMPLETE});
loader.removeListener(this);
} else {
dispatchEvent({target:this, type:com.techsmith.events.Events.LOADING, percent:_local6, rawPercent:_local5, bytesLoaded:loadedBytes, bytesTotal:totalBytes});
}
}
function onLoadInit(target) {
}
function onLoadComplete(target) {
}
function destroy() {
loader.removeListener(this);
delete onEnterFrame;
super.destroy();
}
var content = null;
var loader = null;
var framerate = null;
var inited = false;
}
Symbol 20568 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 20569 MovieClip [__Packages.com.techsmith.camtasia.quiz.EmailWarning] Frame 0
class com.techsmith.camtasia.quiz.EmailWarning extends com.techsmith.xskin.ui.XSWindow
{
var label, addChild, getContentLoc, _width, _height, exitButtonHandler, exit, content, bgDim, foreground, background;
function EmailWarning () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("EmailPreview", com.techsmith.camtasia.quiz.EmailWarning);
var _local6 = container.attachMovie("EmailPreview", name, depth, init);
return(com.techsmith.camtasia.quiz.EmailWarning(_local6));
}
function init(bDim, style) {
super.init(bDim, style);
}
function setupWindowChrome(bDim) {
super.setupWindowChrome(bDim);
label = addChild(com.techsmith.ui.Label, "label", {multiline:false, color:"FF0000", size:14});
var _local4 = getContentLoc();
label.move(_local4.x, (_local4.y - label._height) / 2);
var _local5 = new com.techsmith.ui.panels.PanelStyle("RedGlassLUp", "RedGlassMUp", "RedGlassRUp");
var _local6 = new com.techsmith.ui.panels.PanelStyle("RedGlassLOver", "RedGlassMOver", "RedGlassROver");
var _local7 = new com.techsmith.ui.panels.PanelStyle("RedGlassLDown", "RedGlassMDown", "RedGlassRDown");
var _local8 = new com.techsmith.ui.panels.PanelStyle("RedGlassLDisabled", "RedGlassMDisabled", "RedGlassRDisabled");
okBtn = addChild(com.techsmith.ui.LabelButton, "okBtn", {defaultFontColor:16777215});
okBtn.init("OK", 30, null, {up:_local5, over:_local6, down:_local7, disabled:_local8});
var _local9 = _width - (okBtn._width + hmargin);
var _local10 = _height - (vmargin - ((vmargin - okBtn._height) / 2));
okBtn.move(_local9, _local10);
okBtn.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, exitButtonHandler));
okBtn.tabIndex = 235;
exit.tabIndex = 240;
var _local11 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitpreviewbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitpreviewbutton) : "Email Preview Exit");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:exit, name:_local11, description:"", shortcut:""});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
}
function setupContent() {
content = addChild(com.techsmith.ui.TextArea, "content", {border:false, fillOpacity:20, textColor:"FFFFFF", type:"dynamic", selectable:false});
content.init(bgDim.width - 20, bgDim.height - 62);
content.move((bgDim.width - content.width) / 2, (bgDim.height - content.height) / 2);
}
function setMessage(message) {
content.setText(message);
}
function setQStyle(style) {
foreground.setOpacity(style.bgtransparency);
background.setOpacity(style.bgtransparency);
var _local3 = new TextFormat();
_local3.font = (((style.titleformat.font != undefined) && (style.titleformat.font != "")) ? (style.titleformat.font) : "Arial");
_local3.size = (((style.titleformat.size != undefined) && (style.titleformat.size != "")) ? (style.titleformat.size) : 14);
_local3.bold = (((style.titleformat.bold != undefined) && (style.titleformat.bold != "")) ? (style.titleformat.bold) : true);
_local3.italic = (((style.titleformat.italic != undefined) && (style.titleformat.italic != "")) ? (style.titleformat.italic) : false);
_local3.underline = (((style.titleformat.underline != undefined) && (style.titleformat.underline != "")) ? (style.titleformat.underline) : false);
_local3.color = (((style.titleformat.color != undefined) && (style.titleformat.color != "")) ? (_global.parseInt(style.titleformat.color, 16)) : (_global.parseInt("FF0000", 16)));
_local3.multiline = false;
_local3.align = "left";
label.setFormat(_local3);
var _local4 = new TextFormat();
_local4.font = (((style.summaryformat.font != undefined) && (style.summaryformat.font != "")) ? (style.summaryformat.font) : "Arial");
_local4.size = (((style.summaryformat.size != undefined) && (style.summaryformat.size != "")) ? (style.summaryformat.size) : 14);
_local4.bold = (((style.summaryformat.bold != undefined) && (style.summaryformat.bold != "")) ? (style.summaryformat.bold) : false);
_local4.italic = (((style.summaryformat.italic != undefined) && (style.summaryformat.italic != "")) ? (style.summaryformatitalic) : false);
_local4.underline = (((style.summaryformat.underline != undefined) && (style.summaryformat.underline != "")) ? (style.summaryformat.underline) : false);
_local4.color = (((style.summaryformat.color != undefined) && (style.summaryformat.color != "")) ? (_global.parseInt(style.summaryformat.color, 16)) : (_global.parseInt("FFFFFF", 16)));
_local4.multiline = false;
_local4.align = "left";
com.techsmith.ui.TextArea(content).setFormat(_local4);
}
var okBtn = null;
var hmargin = 10;
var vmargin = 31;
}
Symbol 20570 MovieClip [__Packages.com.techsmith.camtasia.toc.TOCWindow] Frame 0
class com.techsmith.camtasia.toc.TOCWindow extends com.techsmith.xskin.ui.XSWindow implements com.techsmith.camtasia.toc.ITOCWindow
{
var tabEnabled, tabIndex, setupWindowChrome, positionContent, label, depthManager, getContentLoc, exit, hContentPadding, content, getContentDepth, vContentPadding, dispatchEvent, setVisible, focusEnabled, __get__dataProvider;
function TOCWindow () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("TOCWindow", com.techsmith.camtasia.toc.TOCWindow);
var _local6 = container.attachMovie("TOCWindow", name, depth, init);
return(com.techsmith.camtasia.toc.TOCWindow(_local6));
}
function init(dim, title, url, autostart, fps) {
tabEnabled = true;
tabIndex = 9900;
setupWindowChrome(dim);
setupContent(dim, url, autostart, fps);
positionContent();
label = com.techsmith.ui.Label.create(this, "label", depthManager.getNextDepth(), {multiline:false, wordWrap:false, color:labelTextColor});
var _local7 = getContentLoc();
label.move(_local7.x, (_local7.y - label.height) / 2);
label.setAutoSize(false);
label.setTextFieldSize(dim.width - ((hContentPadding * 3) + exit.width), label.height);
label.setText(title);
exit.tabIndex = 9915;
var _local8 = ((title.split(" ").join("") != "") ? (title) : "Table of Contents");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:this, name:_local8, description:"", shortcut:null});
var _local9 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().tocexitbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().tocexitbutton) : "Table of Contents Exit");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:exit, name:_local9, description:"", shortcut:null});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
}
function setupContent(dim, url, autostart, fps) {
content = com.techsmith.camtasia.toc.TOCContent.create(this, "content", getContentDepth());
content.init(new com.techsmith.utils.Dimension(dim.width - (hContentPadding * 2), dim.height - (((vContentPadding * 2) + exit.y) + exit.height)), url, autostart, fps);
content.addEventListener(com.techsmith.events.Events.CHANGE, com.techsmith.utils.Delegate.create(this, changeHandler));
content.addEventListener("shiftTab", com.techsmith.utils.Delegate.create(this, shiftTabHandler));
}
function setBackground(direction) {
}
function exitButtonHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.CLOSE});
setVisible(false);
}
function changeHandler(e) {
e.target = this;
dispatchEvent(e);
}
function shiftTabHandler(e) {
focusEnabled = true;
Selection.setFocus(this);
}
function set dataProvider(dataprovider) {
com.techsmith.camtasia.toc.TOCContent(content).dataProvider = dataprovider;
//return(__get__dataProvider());
}
function setStyle(styles) {
com.techsmith.camtasia.toc.TOCContent(content).setStyle(styles);
}
function setSelected(currentTime) {
com.techsmith.camtasia.toc.TOCContent(content).setSelected(currentTime);
}
function expandTree(node) {
com.techsmith.camtasia.toc.TOCContent(content).expandTree(node);
}
function setRowsTransparent() {
com.techsmith.camtasia.toc.TOCContent(content).setRowsTransparent();
}
function getTree() {
return(com.techsmith.camtasia.toc.TOCContent(content).getTree());
}
var labelTextColor = "0xFFFFFF";
}
Symbol 20571 MovieClip [__Packages.com.techsmith.camtasia.quiz.QuizApplication] Frame 0
class com.techsmith.camtasia.quiz.QuizApplication extends com.techsmith.ui.Component
{
var model, questionView, dimensions, schema, currentView, nextPotentialFrame, summaryView, quizID, getURL, dispatchEvent;
function QuizApplication () {
super();
model = new com.techsmith.camtasia.quiz.QuizModel();
questionView = com.techsmith.camtasia.quiz.QuizWindow.create(this, "window", 1, {constraints:constraints});
questionView.addEventListener(com.techsmith.camtasia.quiz.QuizWindow.PREV_EVENT, com.techsmith.utils.Delegate.create(this, previousHandler));
questionView.addEventListener(com.techsmith.camtasia.quiz.QuizWindow.SUBMIT_EVENT, com.techsmith.utils.Delegate.create(this, submitHandler));
questionView.addEventListener(com.techsmith.camtasia.quiz.QuizWindow.NEXT_EVENT, com.techsmith.utils.Delegate.create(this, nextHandler));
questionView.addEventListener(com.techsmith.events.Events.CHANGE, com.techsmith.utils.Delegate.create(this, changeHandler));
questionView.addEventListener(com.techsmith.events.Events.CLOSE, com.techsmith.utils.Delegate.create(this, closeHandler));
}
static function create(container, name, depth, init) {
Object.registerClass("QuizApplication", com.techsmith.camtasia.quiz.QuizApplication);
var _local6 = container.attachMovie("QuizApplication", name, depth, init);
return(com.techsmith.camtasia.quiz.QuizApplication(_local6));
}
function init(dim, config, useCookie) {
if (useCookie == null) {
useCookie = false;
}
dimensions = dim;
schema = config;
var _local5 = new Array();
var _local6 = 0;
for ( ; _local6 < config.playlist.fileset.length ; _local6++) {
_local5.push(config.playlist.fileset[_local6].quizInfo);
}
var _local7 = config.config.includeScoreInEmail;
var _local8 = config.config.quiz.disableFeedback;
var _local9 = config.config.quiz.txtScore;
var _local10 = {includeScoreInEmail:_local7, disableFeedback:_local8, txtScore:_local9};
model.init(_local5, _local10, useCookie);
questionView.init(dim);
questionView.move(0, 0);
currentView = questionView;
currentView.setVisible(false);
}
function initializeFileset(index, fps, duration) {
model.initIndex(index, fps, duration);
}
function find(startrange, endrange) {
if ((startrange == null) || (endrange == null)) {
return(false);
}
nextPotentialFrame = endrange;
var _local4 = model.popupIDOnFrameRange(startrange, endrange);
if (_local4 != undefined) {
lastID = _local4;
}
return(showQuestion(_local4));
}
function setVisible(visible) {
currentView.setVisible(visible);
}
function showQuestion(id) {
var _local3 = false;
if (id != null) {
com.techsmith.utils.AccessibilityUtil.setNextTabIndex(this, 200);
questionView.setVisible(false);
summaryView.setVisible(false);
quizID = id;
var _local4 = model.getPopupData(id);
var _local5 = model.getPopupFilename(id);
if (model.isQuestionID(id)) {
questionView.setQStyle(model.getQStyle());
questionView.initQuestion(_local5, _local4);
questionView.setTitle(_local4.title);
questionView.setStatus(com.techsmith.utils.Util.sprintf(getTextObj().txtQuestionOf, groupStats().pos, groupStats().tot));
questionView.setButtonLabels(getTextObj().txtPrev, getTextObj().txtSubmit, (isNextQuestion() ? (getTextObj().txtNext) : (getTextObj().txtDone)));
questionView.updateButtonStates(isPrevQuestion());
currentView = com.techsmith.ui.Component(questionView);
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:this, name:_local4.title, description:(com.techsmith.utils.Util.sprintf(getTextObj().txtQuestionOf, groupStats().pos, groupStats().tot) + " ") + _local4.question, shortcut:""});
} else {
if (_local4.reportingstyle == "SCORM") {
summaryView = com.techsmith.camtasia.quiz.SCORMSummary.create(this, "summaryView", 2);
com.techsmith.ui.Component(summaryView).addEventListener(com.techsmith.camtasia.quiz.SCORMSummary.SEND_EVENT, com.techsmith.utils.Delegate.create(this, sendScormHandler));
} else {
summaryView = com.techsmith.camtasia.quiz.EmailSummary.create(this, "summaryView", 2);
com.techsmith.ui.Component(summaryView).addEventListener(com.techsmith.camtasia.quiz.EmailSummary.SEND_EVENT, com.techsmith.utils.Delegate.create(this, sendEmailHandler));
com.techsmith.ui.Component(summaryView).addEventListener(com.techsmith.camtasia.quiz.EmailSummary.PREVIEW_EVENT, com.techsmith.utils.Delegate.create(this, emailPreviewHandler));
com.techsmith.ui.Component(summaryView).addEventListener(com.techsmith.camtasia.quiz.EmailSummary.WARNING_EVENT, com.techsmith.utils.Delegate.create(this, emailWarningHandler));
}
summaryView.init(dimensions, null, _local4);
summaryView.setQStyle(model.getQStyle());
summaryView.setButtonLabels(getTextObj().txtPreview, getTextObj().txtSend);
summaryView.setTitle(getTextObj().txtSummaryTitle);
summaryView.setMessage(getTextObj().txtMainMessage);
summaryView.setStatus(com.techsmith.utils.Util.sprintf(getTextObj().txtsummary, numQAnswered(), numQ()));
currentView = com.techsmith.ui.Component(summaryView);
currentView.addEventListener(com.techsmith.events.Events.CLOSE, com.techsmith.utils.Delegate.create(this, closeHandler));
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:this, name:(((getTextObj().txtSummaryTitle + " ") + com.techsmith.utils.Util.sprintf(getTextObj().txtsummary, numQAnswered(), numQ())) + " ") + getTextObj().txtMainMessage, description:"", shortcut:""});
}
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
setQuizPosition();
currentView.setVisible(true);
_local3 = true;
}
return(_local3);
}
function getQuestion() {
if (model.isQuestionID(quizID)) {
return(model.getPopupData(quizID));
}
return(model.getPopupData(quizID));
}
function isNextQuestion() {
return(model.popupNextIDInGroup(quizID) != undefined);
}
function isPrevQuestion() {
return(model.popupPrevIDInGroup(quizID) != undefined);
}
function groupStats() {
return(model.groupStats(quizID));
}
function isPopupOnRange(startrange, endrange) {
return(model.popupIDOnFrameRange(startrange, endrange) != undefined);
}
function numQAnswered() {
return(model.numQAnswered());
}
function numQ() {
return(model.numQ());
}
function getEmailContent() {
return(model.getEmailContent());
}
function isScormAlreadySubmitted() {
return(scormSubmitted);
}
function setScormAlreadySubmitted() {
scormSubmitted = true;
}
function getTextObj() {
return(schema.config.quiz);
}
function getSecurityObj() {
return(schema.config.localSecurityWarning);
}
function submitLMSScore() {
var _local2 = Math.round((100 * model.numQCorrect()) / model.numQScored());
getURL(("javascript:userSubmitToLMS(" + _local2) + ");");
}
function decodeEmailAddr(strEmailAddr) {
return(strEmailAddr.split("@re.move.me.").join("@"));
}
function sendEmail() {
var _local2 = model.getPopupData(quizID);
getURL((((("mailto:" + _global.escape(decodeEmailAddr(_local2.emladdr))) + "?subject=") + _global.escape(_local2.emlsubj)) + "&body=") + _global.escape(getEmailContent()));
}
function nextHandler(e) {
if (isNextQuestion()) {
showQuestion(model.popupNextID(quizID));
} else if (showQuestion(model.popupNextIDRange(quizID, nextPotentialFrame))) {
if (model.isSummaryID(quizID)) {
dispatchEvent({target:this, type:COMPLETE, summary:model.isSummaryID(quizID)});
currentView.setVisible(true);
} else {
dispatchEvent({target:this, type:COMPLETE, summary:model.isSummaryID(quizID)});
currentView.setVisible(false);
}
} else {
dispatchEvent({target:this, type:COMPLETE, summary:false});
}
}
function previousHandler(e) {
if (isPrevQuestion()) {
showQuestion(model.popupPrevID(quizID));
}
}
function submitHandler(e) {
var _local3 = e.userdata;
var _local4 = e.hardsubmit;
var _local5 = model.reportResults(quizID, _local3);
questionView.updateButtonStates(isPrevQuestion());
if (_local4 && (_local5.GotoTime != null)) {
dispatchEvent({target:this, type:JUMP_TO_TIME, response:_local5});
currentView.setVisible(false);
}
}
function changeHandler(e) {
questionView.updateButtonStates(isPrevQuestion());
}
function emailPreviewHandler(e) {
var _local3 = model.getPopupData(quizID);
com.techsmith.camtasia.quiz.EmailSummary(summaryView).setPreview(getTextObj().txtEmailContents, ((getTextObj().txtEmailTo + decodeEmailAddr(_local3.emladdr)) + "\n\n") + getEmailContent());
}
function emailWarningHandler(e) {
trace(getSecurityObj());
com.techsmith.camtasia.quiz.EmailSummary(summaryView).setWarning(getSecurityObj().title, getSecurityObj().message);
}
function sendEmailHandler(e) {
sendEmail();
com.techsmith.camtasia.quiz.ISummary(currentView).updateUI();
dispatchEvent({target:this, type:SUMMARY_COMPLETE, summary:model.isSummaryID(quizID)});
}
function sendScormHandler(e) {
if (!scormSubmitted) {
submitLMSScore();
scormSubmitted = true;
com.techsmith.camtasia.quiz.ISummary(currentView).updateUI();
}
dispatchEvent({target:this, type:SUMMARY_COMPLETE, summary:model.isSummaryID(quizID)});
}
function closeHandler(e) {
dispatchEvent({target:this, type:SUMMARY_COMPLETE, summary:model.isSummaryID(quizID)});
}
function getLastQuizID() {
return(lastID);
}
function setQuizPosition(x, y) {
var _local4 = (((model.getPopupX(quizID) != undefined) && (model.getPopupX(quizID) != "")) ? (model.getPopupX(quizID)) : (x));
var _local5 = (((model.getPopupY(quizID) != undefined) && (model.getPopupY(quizID) != "")) ? (model.getPopupY(quizID)) : (y));
currentView.move(_local4, _local5);
}
static var JUMP_TO_TIME = "jumpToTime";
static var COMPLETE = "completeNoJump";
static var SUMMARY_COMPLETE = "summaryComplete";
var scormSubmitted = false;
var ct = 0;
var constraints = null;
var lastID = null;
}
Symbol 20572 MovieClip [__Packages.com.techsmith.xskin.ui.panels.styles.WhiteOutline] Frame 0
class com.techsmith.xskin.ui.panels.styles.WhiteOutline extends com.techsmith.ui.panels.PanelStyle
{
function WhiteOutline () {
super("XSWhiteOutlinePanelTL", "XSWhiteOutlinePanelTM", "XSWhiteOutlinePanelTR", "XSWhiteOutlinePanelCL", "XSWhiteOutlinePanelCM", "XSWhiteOutlinePanelCR", "XSWhiteOutlinePanelBL", "XSWhiteOutlinePanelBM", "XSWhiteOutlinePanelBR");
}
}
Symbol 20573 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 20574 MovieClip [__Packages.com.techsmith.camtasia.RTFParser] Frame 0
class com.techsmith.camtasia.RTFParser
{
function RTFParser () {
}
function NestAndCleanUpTags(strToFix) {
var _local3 = strToFix;
if (_local3) {
_local3 = NestTags(_local3);
_local3 = RemoveEmptyTags(_local3);
}
return(_local3);
}
function NestTags(strToFix) {
var _local3 = strToFix;
if (_local3) {
var _local4 = new Array();
var _local5 = FindNextTagNotBlacklisted(_local3);
while (_local5 != -1) {
var _local6 = GetTagAt(_local3, _local5);
if (_local6 && (IsClosingTag(_local6))) {
var _local7 = GetTextToCloseTag(_local6, _local4);
var _local8 = _local3.indexOf(TAG_END_NOTATION, _local5);
if (_local8 != -1) {
_local3 = (_local3.substr(0, _local5) + _local7) + _local3.substr(_local8 + 1);
} else {
_local3 = _local3.substr(0, _local5) + _local7;
}
_local5 = _local5 + _local7.length;
} else {
if (_local6 && (!Blacklisted(_local6))) {
_local4.push(MatchingTag(_local6));
}
_local5 = _local5 + 1;
}
_local5 = FindNextTag(_local3, _local5);
}
}
return(_local3);
}
function RemoveEmptyTags(strToFix) {
var _local3 = strToFix;
if (_local3) {
var _local4 = 0;
do {
_local4 = 0;
var _local5 = FindNextTagNotBlacklisted(_local3);
while (_local5 != -1) {
var _local6 = FindNextTagNotBlacklisted(_local3, _local5 + 1);
var _local7 = GetTagAt(_local3, _local5);
if (_local7) {
if (_local6 != -1) {
var _local8 = MatchingTag(_local7);
var _local9 = GetTagAt(_local3, _local6);
if (_local9 && (_local9 == _local8)) {
var _local10 = (_local5 + 1) + _local7.length;
var _local11 = _local3.substr(_local10, _local6 - _local10);
if (!TrimString(_local11).length) {
_local3 = RemoveTag(_local3, _local6);
_local3 = RemoveTag(_local3, _local5);
_local6 = _local6 - (_local7.length + 1);
_local4++;
}
}
}
}
_local5 = _local6;
}
} while (_local4 > 0);
}
return(_local3);
}
function Blacklisted(strTag) {
return(strTag.toLowerCase() == "par ");
}
function FindNextTag(strTextToSearch, nStartPoint) {
var _local4 = "a";
var _local5 = "z";
var _local6 = _local4.charCodeAt();
var _local7 = _local5.charCodeAt();
var _local8 = -1;
if (strTextToSearch) {
_local8 = strTextToSearch.indexOf(TAG_BEGIN_NOTATION, nStartPoint);
while (_local8 != -1) {
if ((_local8 + 1) < strTextToSearch.length) {
var _local9 = strTextToSearch.toLowerCase().charCodeAt(_local8 + 1);
if ((_local6 <= _local9) && (_local9 <= _local7)) {
break;
}
}
_local8 = strTextToSearch.indexOf(TAG_BEGIN_NOTATION, _local8 + 1);
}
}
return(_local8);
}
function FindNextTagNotBlacklisted(strTextToSearch, nStartPoint) {
var _local4 = FindNextTag(strTextToSearch, nStartPoint);
while (_local4 != -1) {
var _local5 = GetTagAt(strTextToSearch, _local4);
if (_local5 && (!Blacklisted(_local5))) {
break;
}
_local4 = FindNextTag(strTextToSearch, _local4 + 1);
}
return(_local4);
}
function GetTagAt(strText, nTagPosition) {
if (nTagPosition != -1) {
var _local5 = strText.indexOf(TAG_END_NOTATION, nTagPosition + 1);
if (_local5 != -1) {
var _local6 = (_local5 + 1) - (nTagPosition + 1);
var _local4 = strText.substr(nTagPosition + 1, _local6);
} else {
var _local4 = strText.substr(nTagPosition + 1);
}
}
return(_local4);
}
function GetTextToCloseTag(strTag, arrStack) {
var _local4 = "";
var _local5 = new Array();
var _local6 = String(arrStack.pop());
while (_local6 && ((_local6 != strTag) && (arrStack.length))) {
_local4 = _local4 + (TAG_BEGIN_NOTATION + _local6);
_local5.push(MatchingTag(_local6));
if (arrStack.length) {
_local6 = String(arrStack.pop());
}
}
_local4 = _local4 + (TAG_BEGIN_NOTATION + strTag);
while (_local5.length) {
var _local7 = String(_local5.pop());
if (_local7) {
_local4 = _local4 + (TAG_BEGIN_NOTATION + _local7);
arrStack.push(MatchingTag(_local7));
}
}
return(_local4);
}
function IsClosingTag(strTag) {
return(strTag.indexOf(TAG_CLOSE_NOTATION) != -1);
}
function MatchingTag(strToMatch) {
if (strToMatch != "") {
if (IsClosingTag(strToMatch)) {
var _local3 = strToMatch.substr(0, strToMatch.indexOf(TAG_CLOSE_NOTATION));
} else {
if (strToMatch.indexOf(TAG_SPACE) != -1) {
var _local3 = strToMatch.substr(0, strToMatch.indexOf(TAG_SPACE));
}
var _local3 = _local3 + TAG_CLOSE_NOTATION;
}
var _local3 = _local3 + TAG_SPACE;
}
return(_local3);
}
function RemoveTag(strToFix, nTagPosition) {
var _local4 = strToFix;
if ((nTagPosition != -1) && (_local4 && (nTagPosition < _local4.length))) {
var _local5 = _local4.indexOf(TAG_END_NOTATION, nTagPosition);
if (_local5 != -1) {
_local4 = _local4.substr(0, nTagPosition) + _local4.substr(_local5 + 1);
} else {
_local4 = _local4.substr(0, nTagPosition);
}
}
return(_local4);
}
function TrimString(strToFix) {
var _local3 = " ";
var _local4 = strToFix;
while ((_local4.length > 1) && (_local4.charAt(0) == _local3)) {
_local4 = _local4.substr(1);
}
while ((_local4.length > 1) && (_local4.charAt(_local4.length - 1) == _local3)) {
_local4 = _local4.substr(0, _local4.length - 1);
}
if (_local4 == _local3) {
_local4 = "";
}
return(_local4);
}
var TAG_BEGIN_NOTATION = "\\";
var TAG_CLOSE_NOTATION = "0";
var TAG_END_NOTATION = " ";
var TAG_SPACE = " ";
}
Symbol 20575 MovieClip [__Packages.com.techsmith.camtasia.toc.TOCHeader] Frame 0
class com.techsmith.camtasia.toc.TOCHeader extends com.techsmith.ui.Component
{
var media, dispatchEvent, outline, createEmptyMovieClip;
function TOCHeader () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("TOCHeader", com.techsmith.camtasia.toc.TOCHeader);
var _local6 = container.attachMovie("TOCHeader", name, depth, init);
return(com.techsmith.camtasia.toc.TOCHeader(_local6));
}
function load(url, init) {
var _local4 = new com.techsmith.media.MediaFactory();
media = _local4.createMedia(this, "media", 5, url);
media.addEventListener(com.techsmith.events.Events.STARTED, com.techsmith.utils.Delegate.create(this, mediaStartedHandler));
media.load(url, init.autoStart, init.fps);
}
function mediaStartedHandler(e) {
e.target = this;
e.type = com.techsmith.events.Events.INIT;
dispatchEvent(e);
}
function setSize(dim) {
media.setSize(dim);
}
function drawOutline(dim) {
outline = createEmptyMovieClip("outline", 6);
var _local3 = new com.brooksandrus.drawing.Rect();
_local3.draw(outline, media.width, media.height, 0, 0, {rgb:9542041, thickness:1, alpha:100, jointStyle:"miter", capsStyle:"square", pixelHinting:false, noScale:"none"});
_local3.draw(outline, media.width - 2, media.height - 2, 0, 0, {rgb:15658734, thickness:1, alpha:100, jointStyle:"miter", capsStyle:"square", pixelHinting:false, noScale:"none"}, {x:1, y:1});
}
}
Symbol 20576 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 20577 MovieClip [__Packages.com.techsmith.utils.ConfigXML2Object] Frame 0
class com.techsmith.utils.ConfigXML2Object
{
function ConfigXML2Object () {
}
function transform(node) {
var _local3 = {};
parseNode(node, _local3);
return(_local3);
}
function parseNode(node, obj, nDepth) {
if (nDepth == undefined) {
nDepth = 0;
}
if ((node.childNodes[0].nodeName == null) || (node.childNodes[0].nodeName == undefined)) {
obj[node.nodeName] = "";
if (node.childNodes.length == 1) {
obj[node.nodeName] = node.childNodes[0].nodeValue;
obj[node.nodeName] = obj[node.nodeName].split("\r").join("");
}
if (node.attributes.type == "Number") {
obj[node.nodeName] = Number(obj[node.nodeName]);
}
if (node.attributes.type == "Boolean") {
obj[node.nodeName] = (obj[node.nodeName].toLowerCase() == "true") || (Number(obj[node.nodeName]));
}
return(undefined);
}
var _local5 = obj;
var _local6 = node.nodeName == "array";
if ((nDepth >= 2) && (!_local6)) {
_local5 = (obj[node.nodeName] = new Object());
}
for (var a in node.attributes) {
_local5[a] = node.attributes[a];
}
if (_local6) {
if (node.hasChildNodes()) {
_local5 = (obj[node.childNodes[0].nodeName] = new Array(node.childNodes.length));
var _local7 = 0;
for ( ; _local7 < node.childNodes.length ; _local7++) {
var _local8 = new Object();
parseNode(node.childNodes[_local7], _local8, nDepth + 1);
_local5[_local7] = _local8[node.childNodes[_local7].nodeName];
}
}
} else {
for (var i in node.childNodes) {
parseNode(node.childNodes[i], _local5, nDepth + 1);
}
}
}
}
Symbol 20578 MovieClip [__Packages.com.techsmith.ui.Label] Frame 0
class com.techsmith.ui.Label extends com.techsmith.ui.Component
{
var createLabel, attachMovie;
function Label () {
super();
addIcon();
var _local3 = 100;
if (icon != undefined) {
_local3 = 100 - icon._width;
}
var _local4 = {wordWrap:wordWrap, multiline:multiline, html:html, selectable:selectable};
for (var i in textProps) {
_local4[i] = textProps[i];
}
label = createLabel("label", {depth:1, x:0, y:0, w:_local3, h:20}, _local4);
format = setDefaultFormat();
layoutLabel();
}
static function create(container, name, depth, init) {
Object.registerClass("Label", com.techsmith.ui.Label);
var _local6 = container.attachMovie("Label", name, depth, init);
return(com.techsmith.ui.Label(_local6));
}
function addIcon() {
icon = attachMovie(url, "icon", 2);
}
function layoutLabel() {
if (icon == undefined) {
var _local2 = new com.techsmith.utils.Point(0, 0);
} else {
if (labelPosition == TEXT_RIGHT) {
var _local2 = new com.techsmith.utils.Point(icon._width + padding, 0);
var _local3 = new com.techsmith.utils.Point(0, 0);
} else {
var _local2 = new com.techsmith.utils.Point(0, 0);
var _local3 = new com.techsmith.utils.Point(label._width + padding, 0);
}
var _local4 = icon._height;
var _local5 = label._height;
var _local6 = Math.abs((_local4 - _local5) / 2);
if (_local4 > _local5) {
_local2.y = _local6;
} else {
_local3.y = _local6;
}
}
icon._x = _local3.x;
icon._y = _local3.y;
label._x = _local2.x;
label._y = _local2.y;
}
function setFormat(f) {
if (!html) {
format = f;
if (f.color != undefined) {
color = String(f.color);
}
} else {
var _local3 = new TextFormat();
var _local4 = color;
var _local5 = storedFormat.font;
var _local6 = storedFormat.size;
for (var i in f) {
if (i == "color") {
_local4 = f.color.toString();
color = _local4;
} else if (i == "font") {
_local5 = f.font;
} else if (i == "size") {
_local6 = f.size;
} else {
_local3[i] = f[i];
}
}
storedFormat = f;
htmlFontProps = ((((("<font color='#" + _local4) + "' face='") + _local5) + "' size='") + _local6) + "'>";
format = _local3;
}
}
function setDefaultFormat() {
storedFormat = new TextFormat();
storedFormat.font = font;
storedFormat.align = align;
storedFormat.size = size;
storedFormat.color = _global.parseInt(color, 16);
storedFormat.bold = bold;
var _local2 = new TextFormat();
if (!html) {
_local2.align = storedFormat.align;
_local2.size = storedFormat.size;
_local2.font = storedFormat.font;
_local2.bold = storedFormat.bold;
_local2.color = storedFormat.color;
} else {
htmlFontProps = ("<font color='#" + color) + "' face='Arial' size='14'>";
}
return(_local2);
}
function getFormattedHtml(s) {
return((htmlFontProps + s) + "</font>");
}
function measureText(s) {
if (autoSize) {
if (multiline) {
var _local3 = format.getTextExtent(s, label._width);
label._height = _local3.textFieldHeight;
} else {
var _local3 = format.getTextExtent(s);
label._width = _local3.textFieldWidth + 1;
label._height = _local3.textFieldHeight;
}
}
}
function setText(s) {
text = s;
measureText(s);
if (label.html) {
label.htmlText = getFormattedHtml(s);
} else {
label.text = s;
}
label.setTextFormat(format);
layoutLabel();
}
function setSize(w, h) {
var _local4 = w;
if (icon != undefined) {
_local4 = w - (icon._width + padding);
}
label._width = _local4;
label._height = h;
measureText(text);
}
function setTextFieldSize(w, h) {
label._width = w;
label._height = h;
}
function setAutoSize(f) {
autoSize = f;
}
function setMultiline(f) {
multiline = f;
label.multline = f;
}
static var TEXT_LEFT = 1;
static var TEXT_RIGHT = 2;
var labelPosition = TEXT_RIGHT;
var icon = null;
var url = null;
var label = null;
var format = null;
var textProps = null;
var text = "";
var html = false;
var wordWrap = true;
var selectable = false;
var multiline = true;
var color = "000000";
var size = 14;
var font = "Arial";
var align = "left";
var bold = false;
var storedFormat = null;
var htmlFontProps = null;
var autoSize = true;
var padding = 5;
}
Symbol 20579 MovieClip [__Packages.com.techsmith.xskin.ui.panels.styles.Glass] Frame 0
class com.techsmith.xskin.ui.panels.styles.Glass extends com.techsmith.ui.panels.PanelStyle
{
function Glass () {
super("XSGlassPanelTL", "XSGlassPanelTM", "XSGlassPanelTR", "XSGlassPanelCL", "XSGlassPanelCM", "XSGlassPanelCR", "XSGlassPanelBL", "XSGlassPanelBM", "XSGlassPanelBR");
}
}
Symbol 20580 MovieClip [__Packages.com.techsmith.camtasia.CSContextMenu] Frame 0
class com.techsmith.camtasia.CSContextMenu extends ContextMenu
{
var hideBuiltInItems, customItems;
function CSContextMenu (branded) {
super();
hideBuiltInItems(true);
var _local4 = new ContextMenuItem("Powered by Screencast.com", com.techsmith.utils.Delegate.create(this, screencastHandler));
var _local5 = new ContextMenuItem("Created with Camtasia Studio", com.techsmith.utils.Delegate.create(this, camtasiaHandler));
if (branded) {
customItems.push(_local4);
customItems.push(_local5);
}
}
function screencastHandler() {
getURL ("http://www.screencast.com/", "_blank");
}
function camtasiaHandler() {
getURL ("http://www.techsmith.com/camtasia.asp", "_blank");
}
}
Symbol 20581 MovieClip [__Packages.com.techsmith.camtasia.EndScreen] Frame 0
class com.techsmith.camtasia.EndScreen extends com.techsmith.ui.Component
{
var background, createEmptyMovieClip, logo, _width, replay, _height, dispatchEvent;
function EndScreen () {
super();
createLayout();
registerListeners();
}
static function create(container, name, depth, init) {
Object.registerClass("EndScreen", com.techsmith.camtasia.EndScreen);
var _local6 = container.attachMovie("EndScreen", name, depth, init);
return(com.techsmith.camtasia.EndScreen(_local6));
}
function createLayout() {
background = createEmptyMovieClip("background", 1);
var _local2 = 400;
var _local3 = 300;
var _local4 = new com.brooksandrus.drawing.Rect();
_local4.draw(background, _local2, _local3, 16777215, 0);
logo = com.techsmith.ui.SimpleComponent.create(this, "logo", 2, {id:logoIcon});
logo._x = (_width - logo._width) / 2;
replay = com.techsmith.ui.BasicButton.create(this, "replay", 4);
replay.init(new com.techsmith.ui.ButtonStyle("Replay", null, false));
replay._x = (_width - replay._width) / 2;
var _local5 = (_height - ((logo._height + replay._height) + pad)) / 2;
logo._y = _local5;
replay._y = ((logo._height > 0) ? ((_local5 + logo._height) + pad) : ((_height - replay._height) / 2));
replay.tabIndex = 10;
var _local6 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().replaybutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().replaybutton) : "Replay Video");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:replay, name:_local6, description:null, shortcut:null});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
}
function registerListeners() {
replay.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, replayHandler));
}
function replayHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.MOUSE_RELEASE, id:"replay"});
}
function destroy() {
replay.removeAllListeners();
super.destroy();
}
var logoIcon = "EndScreenLogo";
var pad = 25;
}
Symbol 20582 MovieClip [__Packages.com.techsmith.ui.canvas.AbstractCanvas] Frame 0
class com.techsmith.ui.canvas.AbstractCanvas extends com.techsmith.ui.Container
{
var depthManager, addChildComponent;
function AbstractCanvas () {
super();
typeFactory = new com.techsmith.ui.canvas.CanvasFactory();
}
function init(dim, type, style) {
if ((dragScope != null) && (constraints == null)) {
var _local5 = {dragScope:dragScope};
} else if ((dragScope == null) && (constraints != null)) {
var _local5 = {constraints:constraints};
} else {
var _local5 = {dragScope:dragScope, constraints:constraints};
}
canvas = typeFactory.createCanvas(this, "canvas", depthManager.getNextDepth(), type, _local5);
addChildComponent(canvas);
canvas.init(dim, styleFactory.getStyle(style));
}
function setSize(width, height) {
canvas.setSize(width, height);
}
function destroy() {
canvas.destroy();
super.destroy();
}
function addEventListener(event, scope) {
canvas.addEventListener(event, scope);
}
function removeEventListener(event, scope) {
canvas.removeEventListener(event, scope);
}
function removeEventListeners(event) {
canvas.removeEventListeners(event);
}
function removeAllListeners() {
canvas.removeAllListeners();
}
static var BASIC = "basic";
static var CLICK = "click";
static var DRAG = "drag";
var canvas = null;
var dragScope = null;
var constraints = null;
var typeFactory = null;
var styleFactory = null;
}
Symbol 20583 MovieClip [__Packages.com.techsmith.xskin.ui.panels.XSPanel] Frame 0
class com.techsmith.xskin.ui.panels.XSPanel extends com.techsmith.ui.canvas.AbstractCanvas
{
var styleFactory;
function XSPanel () {
super();
styleFactory = new com.techsmith.xskin.ui.panels.styles.StyleFactory();
}
static function create(container, name, depth, init) {
Object.registerClass("XSPanel", com.techsmith.xskin.ui.panels.XSPanel);
var _local6 = container.attachMovie("XSPanel", name, depth, init);
return(com.techsmith.xskin.ui.panels.XSPanel(_local6));
}
}
Symbol 20584 MovieClip [__Packages.com.techsmith.camtasia.UIOptions] Frame 0
class com.techsmith.camtasia.UIOptions
{
var hasAudio, hasToc, hasCaptions, hasFullscreen, hasAbout;
function UIOptions (hasAudio, hasToc, hasCaptions, hasFullscreen, hasAbout) {
this.hasAudio = hasAudio;
this.hasToc = hasToc;
this.hasCaptions = hasCaptions;
this.hasFullscreen = hasFullscreen;
this.hasAbout = hasAbout;
}
function get audio() {
return(hasAudio);
}
function get toc() {
return(hasToc);
}
function get captions() {
return(hasCaptions);
}
function get fullscreen() {
return(hasFullscreen);
}
function get about() {
return(hasAbout);
}
}
Symbol 20585 MovieClip [__Packages.com.techsmith.camtasia.Main] Frame 0
class com.techsmith.camtasia.Main extends MovieClip
{
var __proto__, _url, stop, _visible, dispatchEvent;
function Main (scope) {
super();
scope.__proto__ = __proto__;
scope.__constructor__ = com.techsmith.camtasia.Main;
this=scope;//parameter overwritten
mx.events.EventDispatcher.initialize(this);
var _local4 = checkQueryString(String(_url));
if ((app == null) && (!_local4)) {
scope._visible = false;
app = com.techsmith.camtasia.CamtasiaApplication.create(scope, "app", 2);
app.init(scope);
registerAPIEvents();
}
}
static function main() {
timeline = new com.techsmith.camtasia.Main(arguments[0]);
}
function checkQueryString(swf) {
if (swf.indexOf("?") != -1) {
if (swf.indexOf("config=") != -1) {
stop();
_visible = false;
return(true);
}
}
return(false);
}
function registerAPIEvents() {
for (var i in com.techsmith.events.Events) {
app.addEventListener(com.techsmith.events.Events[i], com.techsmith.utils.Delegate.create(this, apiEventDispatcher));
}
app.addEventListener("volumeEvent", com.techsmith.utils.Delegate.create(this, apiEventDispatcher));
app.addEventListener("muteEvent", com.techsmith.utils.Delegate.create(this, apiEventDispatcher));
app.addEventListener("audioClick", com.techsmith.utils.Delegate.create(this, apiEventDispatcher));
app.addEventListener("audioOver", com.techsmith.utils.Delegate.create(this, apiEventDispatcher));
app.addEventListener("showEndScreen", com.techsmith.utils.Delegate.create(this, apiEventDispatcher));
app.addEventListener("showQuiz", com.techsmith.utils.Delegate.create(this, apiEventDispatcher));
app.addEventListener("hotspotClick", com.techsmith.utils.Delegate.create(this, apiEventDispatcher));
app.addEventListener("hotspotPause", com.techsmith.utils.Delegate.create(this, apiEventDispatcher));
app.addEventListener("captionChange", com.techsmith.utils.Delegate.create(this, apiEventDispatcher));
app.addEventListener("replayMedia", com.techsmith.utils.Delegate.create(this, apiEventDispatcher));
}
function apiEventDispatcher(e) {
dispatchEvent(e);
}
function playMedia() {
app.player.playMedia();
app.start.destroy();
app.destroyEndScreen();
}
function pauseMedia() {
app.player.stopMedia();
}
function seekMedia(time) {
app.apiSeek(time);
}
function seekPercent(percent) {
app.player.apiProgressHandler(percent);
}
function window(win) {
app.apiWindow(win);
}
function setVolume(value) {
app.apiVolume(value);
}
function getVolume() {
return(app.apiGetVolume());
}
function mute(value) {
app.apiMute(value);
}
function fullscreen() {
app.apiFullscreen();
}
function drag(value) {
app.apiDrag(value);
}
function getDuration() {
return(app.apiDuration());
}
function getTocList() {
return(app.apiTocList());
}
function getAbout() {
return(app.apiAbout());
}
function getOptions() {
return(app.apiOptions());
}
static var timeline = null;
var app = null;
}
Symbol 20586 MovieClip [__Packages.com.techsmith.camtasia.hotspot.HotspotConstants] Frame 0
class com.techsmith.camtasia.hotspot.HotspotConstants
{
function HotspotConstants () {
}
static var GET_URL = 1;
static var SEEK_TIME = 2;
static var NONE = 3;
}
Symbol 20587 MovieClip [__Packages.com.techsmith.xskin.ui.panels.styles.Black] Frame 0
class com.techsmith.xskin.ui.panels.styles.Black extends com.techsmith.ui.panels.PanelStyle
{
function Black () {
super("XSBlackPanelTL", "XSBlackPanelTM", "XSBlackPanelTR", "XSBlackPanelCL", "XSBlackPanelCM", "XSBlackPanelCR", "XSBlackPanelBL", "XSBlackPanelBM", "XSBlackPanelBR");
}
}
Symbol 20588 MovieClip [__Packages.com.techsmith.camtasia.quiz.EmailPreview] Frame 0
class com.techsmith.camtasia.quiz.EmailPreview extends com.techsmith.xskin.ui.XSWindow
{
var label, addChild, getContentLoc, _width, _height, exitButtonHandler, exit, content, bgDim, foreground, background;
function EmailPreview () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("EmailPreview", com.techsmith.camtasia.quiz.EmailPreview);
var _local6 = container.attachMovie("EmailPreview", name, depth, init);
return(com.techsmith.camtasia.quiz.EmailPreview(_local6));
}
function init(bDim, style) {
super.init(bDim, style);
}
function setupWindowChrome(bDim) {
super.setupWindowChrome(bDim);
label = addChild(com.techsmith.ui.Label, "label", {multiline:false, color:"FFFFFF", size:14});
var _local4 = getContentLoc();
label.move(_local4.x, (_local4.y - label._height) / 2);
var _local5 = new com.techsmith.ui.panels.PanelStyle("RedGlassLUp", "RedGlassMUp", "RedGlassRUp");
var _local6 = new com.techsmith.ui.panels.PanelStyle("RedGlassLOver", "RedGlassMOver", "RedGlassROver");
var _local7 = new com.techsmith.ui.panels.PanelStyle("RedGlassLDown", "RedGlassMDown", "RedGlassRDown");
var _local8 = new com.techsmith.ui.panels.PanelStyle("RedGlassLDisabled", "RedGlassMDisabled", "RedGlassRDisabled");
okBtn = addChild(com.techsmith.ui.LabelButton, "okBtn", {defaultFontColor:16777215});
okBtn.init("OK", 30, null, {up:_local5, over:_local6, down:_local7, disabled:_local8});
var _local9 = _width - (okBtn._width + hmargin);
var _local10 = _height - (vmargin - ((vmargin - okBtn._height) / 2));
okBtn.move(_local9, _local10);
okBtn.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE, com.techsmith.utils.Delegate.create(this, exitButtonHandler));
okBtn.tabIndex = 235;
exit.tabIndex = 240;
var _local11 = ((com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitpreviewbutton != undefined) ? (com.techsmith.utils.AccessibilityUtil.getlocalAcc().exitpreviewbutton) : "Email Preview Exit");
com.techsmith.utils.AccessibilityUtil.setAccessibility({target:exit, name:_local11, description:"", shortcut:""});
com.techsmith.utils.AccessibilityUtil.updateAccessibility();
}
function setupContent() {
content = addChild(com.techsmith.ui.TextArea, "content", {border:false, fillOpacity:20, textColor:"FFFFFF", type:"dynamic", selectable:true});
content.init(bgDim.width - 20, bgDim.height - 62);
content.move((bgDim.width - content.width) / 2, (bgDim.height - content.height) / 2);
}
function setMessage(message) {
content.setText(message);
}
function setQStyle(style) {
foreground.setOpacity(style.bgtransparency);
background.setOpacity(style.bgtransparency);
var _local3 = new TextFormat();
_local3.font = (((style.titleformat.font != undefined) && (style.titleformat.font != "")) ? (style.titleformat.font) : "Arial");
_local3.size = (((style.titleformat.size != undefined) && (style.titleformat.size != "")) ? (style.titleformat.size) : 14);
_local3.bold = (((style.titleformat.bold != undefined) && (style.titleformat.bold != "")) ? (style.titleformat.bold) : true);
_local3.italic = (((style.titleformat.italic != undefined) && (style.titleformat.italic != "")) ? (style.titleformat.italic) : false);
_local3.underline = (((style.titleformat.underline != undefined) && (style.titleformat.underline != "")) ? (style.titleformat.underline) : false);
_local3.color = (((style.titleformat.color != undefined) && (style.titleformat.color != "")) ? (_global.parseInt(style.titleformat.color, 16)) : (_global.parseInt("FFFFFF", 16)));
_local3.multiline = false;
_local3.align = "left";
label.setFormat(_local3);
var _local4 = new TextFormat();
_local4.font = (((style.summaryformat.font != undefined) && (style.summaryformat.font != "")) ? (style.summaryformat.font) : "Arial");
_local4.size = (((style.summaryformat.size != undefined) && (style.summaryformat.size != "")) ? (style.summaryformat.size) : 14);
_local4.bold = (((style.summaryformat.bold != undefined) && (style.summaryformat.bold != "")) ? (style.summaryformat.bold) : false);
_local4.italic = (((style.summaryformat.italic != undefined) && (style.summaryformat.italic != "")) ? (style.summaryformatitalic) : false);
_local4.underline = (((style.summaryformat.underline != undefined) && (style.summaryformat.underline != "")) ? (style.summaryformat.underline) : false);
_local4.color = (((style.summaryformat.color != undefined) && (style.summaryformat.color != "")) ? (_global.parseInt(style.summaryformat.color, 16)) : (_global.parseInt("FFFFFF", 16)));
_local4.multiline = false;
_local4.align = "left";
com.techsmith.ui.TextArea(content).setFormat(_local4);
}
var okBtn = null;
var hmargin = 10;
var vmargin = 31;
}
Symbol 20589 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 20590 MovieClip [__Packages.com.techsmith.xskin.ui.panels.styles.StyleFactory] Frame 0
class com.techsmith.xskin.ui.panels.styles.StyleFactory implements com.techsmith.ui.canvas.ICanvasStyleFactory
{
function StyleFactory () {
}
function getStyle(style) {
switch (style) {
case BLACK :
return(new com.techsmith.xskin.ui.panels.styles.Black());
case GLASS :
return(new com.techsmith.xskin.ui.panels.styles.Glass());
case WHITE :
return(new com.techsmith.xskin.ui.panels.styles.White());
case BLACK_OUTLINE :
return(new com.techsmith.xskin.ui.panels.styles.BlackOutline());
case WHITE_OUTLINE :
return(new com.techsmith.xskin.ui.panels.styles.WhiteOutline());
case BLACK_EXPLODED :
return(new com.techsmith.xskin.ui.panels.styles.BlackExploded());
case WHITE_EXPLODED :
return(new com.techsmith.xskin.ui.panels.styles.WhiteExploded());
}
return(new com.techsmith.xskin.ui.panels.styles.Black());
}
static var BLACK = "black";
static var WHITE = "white";
static var WHITE_OUTLINE = "whiteoutline";
static var BLACK_OUTLINE = "blackoutline";
static var BLACK_EXPLODED = "blackexploded";
static var WHITE_EXPLODED = "whiteexploded";
static var GLASS = "glass";
}
Symbol 20591 MovieClip [__Packages.com.techsmith.ui.BitmapReflection] Frame 0
class com.techsmith.ui.BitmapReflection extends com.techsmith.ui.Bitmap
{
var source, constraintSize, constraintPlane, width, height, createEmptyMovieClip, alphaBitmap, tempBitmap, bitmap, reflection, alpha, dispatchEvent, gradientFalloff, gradientFade;
function BitmapReflection () {
super();
if ((source != undefined) && ((constraintSize != undefined) && (constraintPlane != undefined))) {
createBitmap(source, constraintSize, constraintPlane);
}
}
static function create(container, name, depth, init) {
Object.registerClass("BitmapReflection", com.techsmith.ui.BitmapReflection);
var _local6 = container.attachMovie("BitmapReflection", name, depth, init);
return(com.techsmith.ui.BitmapReflection(_local6));
}
function createBitmap(bitmapSource, size, plane) {
source = bitmapSource;
constraintSize = size;
constraintPlane = plane;
var _local5 = source._width;
var _local6 = source._height;
if (constraintPlane == com.techsmith.ui.Bitmap.HORIZONTAL_CONSTRAINT) {
var _local7 = size / _local5;
} else {
var _local7 = size / _local6;
}
var _local8 = _local5 * _local7;
var _local9 = _local6 * _local7;
width = _local8;
height = _local9;
var _local10 = new flash.geom.Rectangle(0, 0, _local8, _local9);
var _local11 = new flash.geom.Matrix();
_local11.scale(_local7, _local7);
var _local12 = createEmptyMovieClip("alphaMovie", 100);
createShape(_local10, _local12);
alphaBitmap = new flash.display.BitmapData(_local8, _local9, true, 0);
alphaBitmap.fillRect(_local10, 0);
alphaBitmap.draw(_local12, new flash.geom.Matrix());
tempBitmap = new flash.display.BitmapData(_local8, _local9, true, 0);
tempBitmap.fillRect(_local10, 0);
tempBitmap.draw(source, _local11);
bitmap = new flash.display.BitmapData(_local8, _local9, true, 0);
bitmap.fillRect(_local10, 0);
bitmap.copyPixels(tempBitmap, _local10, new flash.geom.Point(), alphaBitmap, new flash.geom.Point(), true);
_local12.removeMovieClip();
alphaBitmap.dispose();
tempBitmap.dispose();
reflection = createEmptyMovieClip("reflection", 1);
reflection.attachBitmap(bitmap, 1);
_local11 = new flash.geom.Matrix();
_local11.d = -1;
reflection.transform.matrix = _local11;
reflection._y = _local9;
reflection._alpha = alpha;
dispatchEvent({target:this, type:com.techsmith.events.Events.COMPLETE});
}
function createShape(rect, target) {
var _local4 = new flash.geom.Matrix();
_local4.createGradientBox(rect.width, rect.height * gradientFalloff, Math.PI / 2, 0, rect.height * (1 - gradientFalloff));
fillShape(target, rect, _local4);
}
function fillShape(target, rect, matrix) {
target.beginGradientFill("linear", [16777215, 16777215], [gradientFade, 100], [0, 255], matrix);
target.moveTo(rect.x, rect.y);
target.lineTo(rect.width, rect.y);
target.lineTo(rect.width, rect.height);
target.lineTo(rect.x, rect.height);
target.endFill();
}
function createRect(source) {
return(new flash.geom.Rectangle(0, 0, source._width, source._height));
}
function destroy() {
alphaBitmap.dispose();
tempBitmap.dispose();
reflection.removeMovieClip();
super.destroy();
}
}
Symbol 20592 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()) + "]");
}
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"));
}
}
}
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()) + "]");
}
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 20593 MovieClip [__Packages.com.techsmith.camtasia.CamtasiaModel] Frame 0
class com.techsmith.camtasia.CamtasiaModel
{
var data, tocXML;
function CamtasiaModel (config) {
var _local3 = new XML(config);
var _local4 = new com.techsmith.utils.ConfigXML2Object();
data = _local4.transform(_local3);
replaceToken(data);
tocXML = getTocXML(_local3);
}
function getTocXML(xml) {
var _local3 = new XML();
var _local4 = xml.firstChild.firstChild;
var _local5 = _local4.nextSibling;
while (true) {
_local5 = _local5.nextSibling;
if ((_local5 == null) || ((_local5.localName == "tocInfo") || ((_local5 == "") || (_local5.localName == null)))) {
if (_local5.localName == "tocInfo") {
_local3 = _local5;
}
break;
}
}
return(_local3);
}
function replaceToken(data) {
var _local3 = data.playlist.fileset.length;
var _local4 = "*swffilename*";
var _local5 = _root._url.lastIndexOf(".swf");
var _local6 = _root._url.lastIndexOf("/");
var _local7 = _root._url.substring(_local6 + 1, _local5);
var _local8 = 0;
for ( ; _local8 < _local3 ; _local8++) {
var _local9 = data.playlist.fileset[_local8].video1.uri.lastIndexOf(_local4);
if (_local9 != -1) {
var _local10 = data.playlist.fileset[_local8].video1.uri.substring(0, _local9);
var _local11 = data.playlist.fileset[_local8].video1.uri.substring(_local9 + _local4.length, data.playlist.fileset[_local8].video1.uri.length);
data.playlist.fileset[_local8].video1.uri = (_local10 + _local7) + _local11;
}
}
}
function get options() {
return(data.config);
}
function get toc() {
return(tocXML);
}
function get playlist() {
return(data.playlist.fileset);
}
function get fileset() {
return(data.playlist.fileset[playIndex]);
}
function get captions() {
return(data.playlist.fileset[playIndex].captionInfo.captionObject);
}
function cleanupNestedRTF() {
var _local2 = new com.techsmith.camtasia.RTFParser();
var _local3 = data.playlist.fileset.length;
var _local4 = 0;
for ( ; _local4 < _local3 ; _local4++) {
var _local5 = data.playlist.fileset[_local4].captionInfo.captionObject;
var _local6 = _local5.length;
var _local7 = 0;
for ( ; _local7 < _local6 ; _local7++) {
_local5[_local7].Caption = _local2.NestAndCleanUpTags(_local5[_local7].Caption);
}
}
}
function get hotspots() {
return(data.playlist.fileset[playIndex].hotspotInfo.hotspot);
}
function get quizzes() {
return(data.playlist.fileset[playIndex].quizInfo.popup);
}
function get config() {
return(data);
}
function get hasQuiz() {
var _local2 = false;
var _local3 = 0;
for ( ; _local3 < data.playlist.fileset.length ; _local3++) {
if (data.playlist.fileset[_local3].quizInfo.popup) {
_local2 = true;
break;
}
}
return(_local2);
}
function getlocalAcc() {
return(data.config.accessibility);
}
function setContentPath(videoPath, controllerPath) {
var _local4 = ((videoPath.lastIndexOf(".") == (videoPath.length - 4)) ? (videoPath.lastIndexOf(".")) : -1);
if ((_local4 == -1) || (controllerPath == true)) {
var _local5 = String(videoPath.substr(0, videoPath.length));
var _local6 = _local5.lastIndexOf("/");
if ((_local6 == -1) || ((_local6 + 1) != _local5.length)) {
_local5 = _local5 + "/";
}
var _local7 = data.playlist.fileset.length;
var _local8 = 0;
for ( ; _local8 < _local7 ; _local8++) {
var _local9 = _global.escape(_local5 + data.playlist.fileset[_local8].video1.uri);
var _local10 = _local9.split("%25").join("%");
var _local11 = _local10.split("%3A").join(":");
var _local12 = _local11.split("%2F").join("/");
var _local13 = _local12.split("%2E").join(".");
pathArray[_local8] = _local13;
}
} else {
pathArray = videoPath.split(",");
}
redirect = true;
}
function get videoURI() {
if ((pathArray[playIndex] != undefined) && ((pathArray[playIndex] != "") && ((redirect == true) && (com.techsmith.camtasia.SecureContent.safeDomainCheck(pathArray[playIndex]))))) {
return(pathArray[playIndex]);
}
if (com.techsmith.camtasia.SecureContent.safeDomainCheck(data.playlist.fileset[playIndex].video1.uri)) {
return(data.playlist.fileset[playIndex].video1.uri);
}
return("");
}
function get videoDuration() {
return(data.playlist.fileset[playIndex].video1.duration);
}
function get videoFPS() {
return(data.playlist.fileset[playIndex].video1.frameRate);
}
function get isFlv() {
if ((pathArray[playIndex] != undefined) && ((pathArray[playIndex] != "") && (redirect == true))) {
var _local2 = pathArray[playIndex].indexOf(".swf");
if (_local2 != -1) {
return(false);
}
return(true);
}
return(data.playlist.fileset[playIndex].video1.isFlv);
}
var pathArray = [];
var redirect = false;
var playIndex = 0;
}
Symbol 20594 MovieClip [__Packages.com.techsmith.ui.SimpleComponent] Frame 0
class com.techsmith.ui.SimpleComponent extends com.techsmith.ui.Component
{
var id, display, attachMovie;
function SimpleComponent () {
super();
if (id != null) {
init(id);
}
}
static function create(container, name, depth, init) {
Object.registerClass("SimpleComponent", com.techsmith.ui.SimpleComponent);
var _local6 = container.attachMovie("SimpleComponent", name, depth, init);
return(com.techsmith.ui.SimpleComponent(_local6));
}
function init(linkageId) {
display = attachMovie(linkageId, "display", 1);
}
}
Symbol 20595 MovieClip [__Packages.com.techsmith.camtasia.quiz.questions.FIB] Frame 0
class com.techsmith.camtasia.quiz.questions.FIB extends com.techsmith.camtasia.quiz.questions.QuestionBase implements com.techsmith.camtasia.quiz.IQuestion
{
var setQuestion, questionData, height, questionHeight, questionField, adjustForScrollBar, cStyle, answer, changedAnswer, dispatchEvent, isSurvey;
function FIB () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("FIB", com.techsmith.camtasia.quiz.questions.FIB);
var _local6 = container.attachMovie("FIB", name, depth, init);
return(com.techsmith.camtasia.quiz.questions.FIB(_local6));
}
function init(w, h, questionData) {
super.init(w, h, questionData);
createQuestion();
}
function createQuestion() {
setQuestion(questionData.question);
var _local2 = 27;
if ((((questionField._y + questionHeight) + com.techsmith.camtasia.quiz.questions.QuestionBase.QUESTION_PADDING) + _local2) > height) {
adjustForScrollBar(true);
}
var _local3 = contentWidth - (vPadding * 4);
var _local4 = _local2;
var _local5 = (((cStyle.answer.color != undefined) && (cStyle.answer.color != "")) ? (cStyle.answer.color) : "FFFFFF");
answer = com.techsmith.ui.TextObject.create(this, "answer", 10, {border:false, fillOpacity:20, type:"input", textColor:_local5, html:false});
answer.init(_local3, _local4, null, {tabIndex:com.techsmith.utils.AccessibilityUtil.getNextTabIndex()});
answer.move(questionField._x, (questionHeight + com.techsmith.camtasia.quiz.questions.QuestionBase.QUESTION_PADDING) + vPadding);
answer.addEventListener(com.techsmith.events.Events.KEY_ENTER, com.techsmith.utils.Delegate.create(this, enterHandler));
answer.addEventListener(com.techsmith.events.Events.CHANGE, com.techsmith.utils.Delegate.create(this, changedAnswer));
if (questionData.userData.strAnswer != null) {
answer.setText(questionData.userData.strAnswer);
}
changedAnswer();
answer.giveFocus();
}
function enterHandler(e) {
dispatchEvent({target:this, type:com.techsmith.events.Events.KEY_ENTER});
}
function dispose() {
answer.removeAllListeners();
answer.destroy();
super.destroy();
}
function getAnswer() {
return(answer.getText());
}
function isCorrect() {
if (isSurvey()) {
return(true);
}
for (var idx in questionData.arrFITBAnswers) {
if (questionData.arrFITBAnswers[idx].toLowerCase() == getAnswer().toLowerCase()) {
return(true);
}
}
return(false);
}
function enable(bEnable) {
answer.setEnabled(bEnable);
answer.tabEnabled = bEnable;
}
var contentWidth = 460;
var vPadding = 10;
}
Symbol 20596 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 20597 MovieClip [__Packages.com.techsmith.ui.ToolTip] Frame 0
class com.techsmith.ui.ToolTip extends com.techsmith.ui.Component
{
var createEmptyMovieClip, createLabel, createShadow, __get__fontcolor, __get__fillcolor, __get__strokecolor, __get__strokethickness;
function ToolTip () {
super();
format = new TextFormat();
format.font = font;
format.color = fontColor;
format.size = size;
format.bold = bold;
format.align = alignment;
format.leading = leading;
format.leftMargin = margin;
format.rightMargin = margin;
}
static function create(container, name, depth, init) {
Object.registerClass("ToolTip", com.techsmith.ui.ToolTip);
var _local6 = container.attachMovie("ToolTip", name, depth, init);
return(com.techsmith.ui.ToolTip(_local6));
}
function measureText(text, width) {
return(format.getTextExtent(text, width));
}
function setupBackground(w, h, point) {
background = createEmptyMovieClip("background", 2);
var _local5 = new com.brooksandrus.drawing.CalloutRect();
_local5.draw(background, w, h, fillColor, opacity, {thickness:strokeThickness, rgb:strokeColor, alpha:100, pixelHinting:true, noScale:"none", capsStyle:"square", jointStyle:"miter", miterLimit:2}, com.brooksandrus.drawing.CalloutRect.NONE, point);
}
function setupLabel(text, width, height) {
label = createLabel("label", {depth:3, x:0, y:0, w:width, h:height}, {wordWrap:true, multiline:true, autoSize:"center", embedFonts:embedFont, selectable:false, antiAliasType:"advanced"});
label.text = text;
label.setTextFormat(format);
}
function setTip(text, width) {
var _local4 = format.leftMargin * 2;
var _local5 = measureText(text, width);
var _local6 = _local5.textFieldWidth;
var _local7 = _local5.textFieldHeight;
setupLabel(text, _local6, _local7);
_local7 = label._height;
if (useHPad) {
_local7 = _local7 + hPad;
label._y = (hPad / 2) + 2;
}
setupBackground(width, _local7);
createShadow();
}
function set fontcolor(color) {
fontColor = color;
format.color = color;
//return(__get__fontcolor());
}
function set fillcolor(color) {
fillColor = color;
//return(__get__fillcolor());
}
function set strokecolor(color) {
strokeColor = color;
//return(__get__strokecolor());
}
function set strokethickness(weight) {
strokeThickness = weight;
//return(__get__strokethickness());
}
function destroy() {
label.destroy();
background.removeMovieClip();
super.destroy();
}
var label = null;
var format = null;
var background = null;
var stageHeight = 0;
var fillColor = 11654513;
var fontColor = 0;
var strokeColor = 0;
var strokeThickness = 1;
var opacity = 100;
var font = "Arial";
var embedFont = false;
var alignment = "justify";
var size = 14;
var margin = 10;
var leading = 2;
var bold = false;
var hPad = 10;
var useHPad = true;
}
Symbol 20598 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 20599 MovieClip [__Packages.com.techsmith.utils.AccessibilityUtil] Frame 0
class com.techsmith.utils.AccessibilityUtil
{
function AccessibilityUtil () {
}
static function setTabIndex(target, index) {
target.tabIndex = index;
}
static function setNextTabIndex(target, startIndex) {
if (startIndex != null) {
lastTabIndex = startIndex;
} else {
lastTabIndex++;
}
target.tabIndex = lastTabIndex;
}
static function getNextTabIndex() {
return(lastTabIndex++);
}
static function setlocalAcc(accObject) {
localizedAcc = accObject;
}
static function getlocalAcc() {
return(localizedAcc);
}
static function setAccessibility(acc) {
if (acc.target._accProps == undefined) {
acc.target._accProps = new Object();
}
if (acc.name != null) {
acc.target._accProps.name = acc.name;
}
if (acc.description != null) {
acc.target._accProps.description = acc.description;
}
if ((acc.shortcut != null) && (acc.shortcut != "")) {
acc.target._accProps.shortcut = acc.shortcut;
}
}
static function updateAccessibility() {
Accessibility.updateProperties();
}
static var localizedAcc = {};
static var lastTabIndex = 1;
}
Symbol 20600 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)) + thumbOffsetY;
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)) + thumbOffsetY;
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 thumbOffsetY = 0;
var thumbTabIndex = null;
var thumbFocusRect = null;
}
Symbol 20601 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 20602 MovieClip [__Packages.com.techsmith.xskin.ui.panels.styles.BlackOutline] Frame 0
class com.techsmith.xskin.ui.panels.styles.BlackOutline extends com.techsmith.ui.panels.PanelStyle
{
function BlackOutline () {
super("XSBlackOutlinePanelTL", "XSBlackOutlinePanelTM", "XSBlackOutlinePanelTR", "XSBlackOutlinePanelCL", "XSBlackOutlinePanelCM", "XSBlackOutlinePanelCR", "XSBlackOutlinePanelBL", "XSBlackOutlinePanelBM", "XSBlackOutlinePanelBR");
}
}
Symbol 20603 MovieClip [__Packages.com.techsmith.xskin.ui.panels.styles.WhiteExploded] Frame 0
class com.techsmith.xskin.ui.panels.styles.WhiteExploded extends com.techsmith.ui.panels.PanelStyle
{
function WhiteExploded () {
super("XSWhiteExplodedPanelTL", "XSWhiteExplodedPanelTM", "XSWhiteExplodedPanelTR", "XSWhiteExplodedPanelCL", "XSWhiteExplodedPanelCM", "XSWhiteExplodedPanelCR", "XSWhiteExplodedPanelBL", "XSWhiteExplodedPanelBM", "XSWhiteExplodedPanelBR");
}
}
Symbol 20604 MovieClip [__Packages.com.techsmith.camtasia.toc.TOCConstants] Frame 0
class com.techsmith.camtasia.toc.TOCConstants
{
function TOCConstants () {
}
static var FLOATING = 1;
static var FIXED_LEFT = 2;
static var FIXED_RIGHT = 3;
}
Symbol 20605 MovieClip [__Packages.com.techsmith.ui.canvas.DragCanvas] Frame 0
class com.techsmith.ui.canvas.DragCanvas extends com.techsmith.ui.canvas.ClickCanvas
{
var _parent, dispatchEvent, stopDrag;
function DragCanvas () {
super();
if (dragScope == null) {
dragScope = this;
if (dragParent) {
dragScope = _parent;
}
}
}
static function create(container, name, depth, init) {
Object.registerClass("DragCanvas", com.techsmith.ui.canvas.DragCanvas);
var _local6 = container.attachMovie("DragCanvas", name, depth, init);
return(com.techsmith.ui.canvas.DragCanvas(_local6));
}
function onPress() {
if (constraints != null) {
dragScope.startDrag(false, constraints.left, constraints.top, constraints.right, constraints.bottom);
} else {
dragScope.startDrag();
}
dispatchEvent({target:this, type:com.techsmith.events.Events.DRAG_START});
}
function onRelease() {
stopDrag();
dispatchEvent({target:this, type:com.techsmith.events.Events.DRAG_STOP});
}
function onReleaseOutside() {
stopDrag();
dispatchEvent({target:this, type:com.techsmith.events.Events.DRAG_STOP});
}
var constraints = null;
var dragParent = true;
var dragScope = null;
}
Symbol 20606 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 20607 MovieClip [__Packages.com.techsmith.camtasia.quiz.questions.Likert] Frame 0
class com.techsmith.camtasia.quiz.questions.Likert extends com.techsmith.camtasia.quiz.questions.MultipleChoice
{
var questionHeight, questionField, setQuestion, questionData, radioGroup, changedAnswer, drawBackground;
function Likert () {
super();
}
static function create(container, name, depth, init) {
Object.registerClass("Likert", com.techsmith.camtasia.quiz.questions.Likert);
var _local6 = container.attachMovie("Likert", name, depth, init);
return(com.techsmith.camtasia.quiz.questions.Likert(_local6));
}
function createQuestion() {
var _local2 = 10;
var _local3 = 5;
var _local4 = 450;
var _local5 = (questionField._y + questionHeight) + com.techsmith.camtasia.quiz.questions.QuestionBase.QUESTION_PADDING;
var _local6 = 5;
setQuestion(questionData.question);
var _local7 = 0;
for ( ; _local7 < _local3 ; _local7++) {
com.techsmith.ui.RadioButton.create(this, "ansBtn" + _local7, _local2 + _local7);
var _local8 = "Strongly disagree";
if (_local7 == 1) {
_local8 = "Disagree";
}
if (_local7 == 2) {
_local8 = "Neither agree or disagree";
}
if (_local7 == 3) {
_local8 = "Agree";
}
if (_local7 == 4) {
_local8 = "Strongly Agree";
}
this["ansBtn" + _local7].init(_local8, _local4, "radioGroup", null, null, null, null, {html:false});
this["ansBtn" + _local7].move(0, _local5);
this["ansBtn" + _local7].setData({index:_local7});
this["ansBtn" + _local7].setSelected(questionData.userData.index == _local7, false);
com.techsmith.utils.AccessibilityUtil.setNextTabIndex(this["ansBtn" + _local7]);
_local5 = _local5 + (this["ansBtn" + _local7].getHeight() + _local6);
}
radioGroup.addEventListener("click", com.techsmith.utils.Delegate.create(this, changedAnswer));
drawBackground();
changedAnswer();
}
}