Frame 1
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
function getFlashPlayerInfo() {
var ver = System.capabilities.version.split(" ", 2);
var pl = ver[0];
var version = ver[1].split(",", 4);
var info = new Object();
info.platform = ver[0];
info.majorVersion = parseInt(version[0]);
info.minorVersion = parseInt(version[1]);
info.revision = parseInt(version[2]);
info.build = parseInt(version[3]);
return(info);
}
function showFlashVersionWarning(mc, w, h, logo, url) {
mc.beginFill(16777215);
mc.moveTo(0, 0);
mc.lineTo(w, 0);
mc.lineTo(w, h);
mc.lineTo(0, h);
mc.endFill();
var logo = mc.attachMovie(logo, "logo", 9999);
logo._x = (w - logo._width) * 0.5;
logo._y = (h - logo._height) * 0.5;
logo.onRelease = function () {
getURL(url, "_blank");
};
mc.createTextField("tf", 10000, (w - 174) * 0.5, (logo._y + logo._height) + 10, 174, 80);
var tf = mc.tf;
var fmt = new TextFormat();
fmt.font = "Verdana";
fmt.size = 12;
fmt.align = "center";
tf.multiline = true;
tf.selectable = false;
tf.html = true;
tf.wordWrap = true;
tf.htmlText = ("This presentation requires <b>Flash Player 8 or higher</b> to be installed. <br><br><font color=\"#0000ff\"><u><a href=\"" + url) + "\" target=\"_blank\">Click here to install</a></u>";
tf.setTextFormat(fmt);
}
this._highquality = 2;
if (this.allowedDomain != undefined) {
System.security.allowDomain("*", allowedDomain);
} else {
System.security.allowDomain("*");
}
var g_passFieldInitialized;
var g_initialization;
var g_preloaderMovie;
var g_playerCore;
var g_pluginsInitialized;
if (g_initialization == undefined) {
g_pluginsInitialized = new Object();
}
if (getFlashPlayerInfo().majorVersion < 8) {
showFlashVersionWarning(this, 1278, 958, "versionWarningAsset", "http://www.adobe.com/go/getflashplayer");
stop();
} else if (g_passFieldInitialized == undefined) {
g_passFieldInitialized = true;
stop();
var thisPtr = this;
this.passValid = function () {
if (g_initialization == undefined) {
g_initialization = true;
g_preloaderMovie = this.sprPreloader;
var preloaderParams = new Object();
preloaderParams.textLoading = "loading";
g_preloaderMovie.init(preloaderParams);
g_preloaderMovie.startPreloader(this);
thisPtr.gotoAndPlay(2);
}
};
var passMovie = undefined;
if (passMovie) {
var tm = new Date().valueOf();
var startTime = 0;
var endTime = 0;
if (((startTime > 0) and (tm < startTime)) or ((endTime > 0) and (tm > endTime))) {
this.passwordProtectedPresentation = true;
passMovie.showRestrictedTimeMsg(1278, 958, "Sorry, the presentation's creator disabled viewing the presentation at the moment");
} else if (0) {
this.passwordProtectedPresentation = true;
passMovie.showPassField(this.passValid, "", 1278, 958, "Enter a password to watch the presentation:", "The password is incorrect. Please try again");
} else {
this.passValid();
}
} else {
this.passValid();
}
}
Frame 2
if (g_initialization) {
g_playerCore = this.attachMovie("coreAsset", "playerCoreMC", this.getNextHighestDepth());
this.getPlayerResourceLoader = function () {
return(g_playerCore);
};
this.getPlayer = function () {
return(g_playerCore.getPlayer());
};
this.cleanup = function () {
return(g_playerCore.cleanup());
};
gotoAndPlay(3);
}
Frame 3
function getDomainName(url) {
var startPos = (url.indexOf("//") + 2);
if (startPos != 1) {
var endPos = url.indexOf("/", startPos);
if (endPos == (-1)) {
endPos = url.length;
}
return(url.substr(startPos, endPos - startPos));
}
return(undefined);
}
function domainsAreSimilar(domain1, domain2) {
if (domain1 and domain2) {
domain1 = domain1.toLowerCase();
domain2 = domain2.toLowerCase();
if (domain1 == domain2) {
return(true);
}
var l1 = domain1.length;
var l2 = domain2.length;
if (l1 < l2) {
return(("." + domain1) == domain2.substr((l2 - l1) - 1, l1 + 1));
}
if (l2 < l1) {
return(("." + domain2) == domain1.substr((l1 - l2) - 1, l2 + 1));
}
return(false);
}
return(false);
}
function checkDomains(domainList) {
var arr = domainList.split(";");
var thisDomain = getDomainName(this._url);
for (var i in arr) {
var domain = arr[i];
if ((domain != "") and domainsAreSimilar(thisDomain, domain)) {
return(true);
}
}
return(false);
}
var s1 = "<?xml version=\"1.0\"?>\r\n<presentation title=\"Character Reference\" width=\"1278.0000000\" height=\"958.0000000\" thmbWidth=\"0.0000000\" thmbHeight=\"0.0000000\" frameRate=\"30.0000000\" looping=\"0\" startingSlideShow=\"\" pptVersion=\"2003\" type=\"solid\" hasExternalAudio=\"0\" uid=\"{0F23436E-945D-466F-8917-B85CEFB1ACC3}\">\n<presenters/>\n<references/>\n<soundAssets>\n<soundAsset id=\"sndAsset0\" src=\"spr6_48450687\" embedded=\"1\" size=\"0\" duration=\"915\"/>\n<soundAsset id=\"sndAsset1\" src=\"spr7_48450687\" embedded=\"1\" size=\"0\" duration=\"471\"/>\n<soundAsset id=\"sndAsset2\" src=\"spr35_48450687\" embedded=\"1\" size=\"0\" duration=\"574\"/>\n<soundAsset id=\"sndAsset3\" src=\"spr36_48450687\" embedded=\"1\" size=\"0\" duration=\"391\"/>\n<soundAsset id=\"sndAsset4\" src=\"spr37_48450687\" embedded=\"1\" size=\"0\" duration=\"1177\"/>\n</soundAssets>\n<backgroundSound soundAssetId=\"\" looping=\"0\"/>\n<narration/>\n<settings>\n<navigation>\n<keyboard enabled=\"0\"/>\n<mouse enabled=\"0\" target=\"step\"/>\n</navigation>\n<skin>\n<messages>\n<resumeText>Would you like to resume the presentation from the last slide viewed?</resumeText>\n<resumeTitle>Resume Presentation</resumeTitle>\n<precedingQuizNotCompletedWindowText>You must attempt the quiz at slide %SLIDE_INDEX% to advance.</precedingQuizNotCompletedWindowText>\n<precedingQuizNotCompletedWindowTitle>Warning</precedingQuizNotCompletedWindowTitle>\n<precedingQuizNotPassedWindowText>You must pass the quiz at slide %SLIDE_INDEX% to advance.</precedingQuizNotPassedWindowText>\n<precedingQuizNotPassedWindowTitle>Warning</precedingQuizNotPassedWindowTitle>\n<ok>OK</ok>\n<no>No</no>\n<yes>Yes</yes>\n</messages>\n</skin>\n<colorScheme>\n<primaryColor>0.5686482;0.5208360;-0.0894842;0.0000000;0.0000000;0.1655884;0.6967325;0.1376791;0.0000000;0.0000000;0.3927516;0.2936727;0.3135757;0.0000000;0.0000000;0.0000000;0.0000000;0.0000000;1.0000000;0.0000000;</primaryColor>\n</colorScheme>\n<appearance fullScreen=\"0\"/>\n<playback autoStart=\"1\" resumePresentationPlayback=\"1\" syncWithVideoNarration=\"1\" enableVideoControl=\"1\"/>\n</settings>\n<slides embedded=\"1\">\n<slide index=\"0\" title=\"\" titleNormalized=\"\" src=\"spr0_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"106\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound0\" soundAssetId=\"sndAsset0\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound1\" soundAssetId=\"sndAsset1\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.5000000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"105\" playTime=\"3.5000000\" pauseTime=\"0.0000000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n</slide>\n<slide index=\"1\" title=\"\" titleNormalized=\"\" src=\"spr8_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"61\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound2\" soundAssetId=\"sndAsset0\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound3\" soundAssetId=\"sndAsset1\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound4\" soundAssetId=\"sndAsset0\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound5\" soundAssetId=\"sndAsset1\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound6\" soundAssetId=\"sndAsset0\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound7\" soundAssetId=\"sndAsset1\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"60\" playTime=\"2.0000000\" pauseTime=\"0.0000000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>please select an option to continue</text>\n</slide>\n<slide index=\"2\" title=\"\" titleNormalized=\"\" src=\"spr21_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"61\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound8\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound9\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound10\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound11\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound12\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound13\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"60\" playTime=\"2.0000000\" pauseTime=\"0.0000000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>taz amuro biological data\r\nmenu</text>\n</slide>\n<slide index=\"3\" title=\"\" titleNormalized=\"\" src=\"spr38_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"2\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound14\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound15\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound16\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound17\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound18\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound19\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound20\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound21\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"0\" playTime=\"0.0010000\" pauseTime=\"0.0100000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>taz amuro biological data\r\nmenu</text>\n</slide>\n<slide index=\"4\" title=\"\" titleNormalized=\"\" src=\"spr52_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"2\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound22\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound23\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound24\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound25\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound26\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound27\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound28\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound29\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"0\" playTime=\"0.0010000\" pauseTime=\"0.0100000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>taz amuro biological data\r\nmenu</text>\n</slide>\n<slide index=\"5\" title=\"\" titleNormalized=\"\" src=\"spr64_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"2\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound30\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound31\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound32\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound33\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound34\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound35\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound36\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound37\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"0\" playTime=\"0.0010000\" pauseTime=\"0.0100000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>taz amuro biological data\r\nmenu</text>\n</slide>\n<slide index=\"6\" title=\"\" titleNormalized=\"\" src=\"spr76_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"2\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound38\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound39\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound40\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound41\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound42\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound43\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound44\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound45\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"0\" playTime=\"0.0010000\" pauseTime=\"0.0100000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>taz amuro biological data\r\nmenu</text>\n</slide>\n<slide index=\"7\" title=\"\" titleNormalized=\"\" src=\"spr88_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"2\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound46\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound47\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound48\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound49\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound50\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound51\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound52\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound53\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"0\" playTime=\"0.0010000\" pauseTime=\"0.0100000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>taz amuro biological data\r\nmenu</text>\n</slide>\n<slide index=\"8\" title=\"\" titleNormalized=\"\" src=\"spr100_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"2\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound54\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound55\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound56\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound57\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound58\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound59\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound60\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound61\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"0\" playTime=\"0.0010000\" pauseTime=\"0.0100000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>taz amuro biological data\r\nmenu</text>\n</slide>\n<slide index=\"9\" title=\"\" titleNormalized=\"\" src=\"spr112_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"2\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound62\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound63\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound64\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound65\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound66\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound67\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound68\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound69\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"0\" playTime=\"0.0010000\" pauseTime=\"0.0100000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>taz amuro biological data\r\nmenu</text>\n</slide>\n<slide index=\"10\" title=\"\" titleNormalized=\"\" src=\"spr124_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"121\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound70\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound71\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound72\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound73\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound74\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound75\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"120\" playTime=\"4.0000000\" pauseTime=\"0.0000000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>taz amuro biological data\r\nmenu\r\n8.20\u2032</text>\n</slide>\n<slide index=\"11\" title=\"\" titleNormalized=\"\" src=\"spr145_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"106\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound76\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound77\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound78\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound79\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"105\" playTime=\"3.5000000\" pauseTime=\"0.0000000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>taz amuro psychological data\r\nmenu</text>\n</slide>\n<slide index=\"12\" title=\"\" titleNormalized=\"\" src=\"spr161_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"91\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound80\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound81\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound82\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound83\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound84\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound85\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"90\" playTime=\"3.0000000\" pauseTime=\"0.0000000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>r41 g41 b22\r\nr66 g60 b56\r\nr22 g16 b12\r\nr26 g26 b26\r\nr13 g13 b13\r\nr255 g255 b255\r\nr239 g215 b198\r\ntaz amuro color data (rgb)\r\nr165 g42 b42\r\nr5 g5 b5\r\nr125 g12 b7\r\nr22 g16 b12\r\nmenu</text>\n</slide>\n<slide index=\"13\" title=\"\" titleNormalized=\"\" src=\"spr212_48450687\" size=\"0\" advanceOnTime=\"0\" framesCount=\"31\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" advanceOnClick=\"0\" thumbnailSrc=\"\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound86\" soundAssetId=\"sndAsset2\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound87\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound88\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound89\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound90\" soundAssetId=\"sndAsset4\" hasTriggerEffects=\"1\"/>\n<sound id=\"sound91\" soundAssetId=\"sndAsset3\" hasTriggerEffects=\"1\"/>\n</sounds>\n<videos/>\n<transitionEffect name=\"FadeSmoothly\" duration=\"";
var s2 = "0.7500000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<videoCommands/>\n<animationSteps>\n<step start=\"0\" end=\"30\" playTime=\"1.0000000\" pauseTime=\"0.0000000\"/>\n</animationSteps>\n<notes/>\n<notesNormalized/>\n<notesHtml/>\n<text>taz amuro color data (rgb)\r\nr22 g16 b12\r\nr13 g13 b13\r\nr239 g215 b198\r\nr5 g5 b5\r\nmenu</text>\n</slide>\n</slides>\n<actions>\n<action name=\"playPause\">\n<shortcut code=\"32\" control=\"0\" shift=\"0\"/>\n</action>\n<action name=\"nextSlide\">\n<shortcut code=\"34\" control=\"0\" shift=\"0\"/>\n</action>\n<action name=\"previousSlide\">\n<shortcut code=\"33\" control=\"0\" shift=\"0\"/>\n</action>\n<action name=\"nextStep\">\n<shortcut code=\"13\" control=\"0\" shift=\"0\"/>\n</action>\n<action name=\"previousStep\">\n<shortcut code=\"13\" control=\"0\" shift=\"1\"/>\n</action>\n<action name=\"seekForward\">\n<shortcut code=\"39\" control=\"0\" shift=\"0\"/>\n</action>\n<action name=\"seekBackward\">\n<shortcut code=\"37\" control=\"0\" shift=\"0\"/>\n</action>\n<action name=\"firstSlide\">\n<shortcut code=\"36\" control=\"1\" shift=\"0\"/>\n</action>\n<action name=\"lastSlide\">\n<shortcut code=\"35\" control=\"1\" shift=\"0\"/>\n</action>\n<action name=\"lastViewedSlide\">\n<shortcut code=\"8\" control=\"0\" shift=\"0\"/>\n</action>\n<action name=\"slideStart\">\n<shortcut code=\"36\" control=\"0\" shift=\"0\"/>\n</action>\n<action name=\"slideEnd\">\n<shortcut code=\"35\" control=\"0\" shift=\"0\"/>\n</action>\n<action name=\"volumeUp\">\n<shortcut code=\"38\" control=\"0\" shift=\"0\"/>\n</action>\n<action name=\"volumeDown\">\n<shortcut code=\"40\" control=\"0\" shift=\"0\"/>\n</action>\n<action name=\"toggleFullscreen\">\n<shortcut code=\"70\" control=\"1\" shift=\"0\"/>\n</action>\n</actions>\n</presentation>\r\n";
if (g_initialization) {
g_playerCore.setUserData(this.username, this.email, this.userid);
var restrictedDomain = "";
if ((restrictedDomain == "") or checkDomains(restrictedDomain)) {
var s = "";
s = s + s1;
s = s + s2;
g_playerCore.createEmbeddedPlayer("skinAsset", s, this, {startSlide:this.startSlide});
}
g_preloaderMovie.setPlayerCore(g_playerCore.getPlayer(), g_playerCore);
g_initialization = false;
}
if (g_pluginsInitialized.show382_48450687 == undefined) {
this.show382_48450687.initialize(this.getPlayer());
g_pluginsInitialized.show382_48450687 = true;
}
if (g_pluginsInitialized.show383_48450687 == undefined) {
this.show383_48450687.initialize(this.getPlayer());
g_pluginsInitialized.show383_48450687 = true;
}
Frame 4
getPlayerResourceLoader().slideIsAvailable(0);
Frame 5
getPlayerResourceLoader().slideIsAvailable(1);
Frame 6
getPlayerResourceLoader().slideIsAvailable(2);
Frame 7
getPlayerResourceLoader().slideIsAvailable(3);
Frame 8
getPlayerResourceLoader().slideIsAvailable(4);
Frame 9
getPlayerResourceLoader().slideIsAvailable(5);
Frame 10
getPlayerResourceLoader().slideIsAvailable(6);
Frame 11
getPlayerResourceLoader().slideIsAvailable(7);
Frame 12
getPlayerResourceLoader().slideIsAvailable(8);
Frame 13
getPlayerResourceLoader().slideIsAvailable(9);
Frame 14
getPlayerResourceLoader().slideIsAvailable(10);
Frame 15
getPlayerResourceLoader().slideIsAvailable(11);
Frame 16
getPlayerResourceLoader().slideIsAvailable(12);
Frame 17
getPlayerResourceLoader().slideIsAvailable(13);
stop();
Symbol 10 MovieClip [__Packages.cpslabs.ui.CComponent] Frame 0
class cpslabs.ui.CComponent
{
var m_parent, m_mc, m_componentBroadcaster, m_tooltip, m_tooltipParams;
function CComponent (parent, name, depth) {
if (parent) {
m_parent = parent;
if (depth == undefined) {
depth = parent.getNextHighestDepth();
}
m_mc = parent.createEmptyMovieClip(((name != undefined) ? (name) : ("m" + depth)), depth);
m_mc.tabEnabled = false;
}
m_componentBroadcaster = new cpslabs.utils.CMessageBroadcaster();
}
function setMovieClip(mc) {
m_mc = mc;
m_parent = mc._parent;
}
function get parent() {
return(m_parent);
}
function set id(componentId) {
m_id = componentId;
//return(id);
}
function get id() {
return(m_id);
}
function addListener(eventName, l, fn) {
m_componentBroadcaster.addListener(eventName, l, fn);
}
function removeListener(eventName, l, fn) {
return(m_componentBroadcaster.removeListener(eventName, l, fn));
}
function get movieClip() {
return(m_mc);
}
function set visible(v) {
if (movieClip._visible != v) {
movieClip._visible = v;
if (v) {
onShow();
} else {
onHide();
}
}
//return(visible);
}
function get visible() {
return(movieClip._visible);
}
function set enabled(e) {
if (m_enabled != e) {
m_enabled = e;
if (e) {
onEnable();
} else {
onDisable();
}
}
//return(enabled);
}
function get enabled() {
return(m_enabled);
}
function get width() {
return(getWidth());
}
function get height() {
return(getHeight());
}
function set width(w) {
var _local2 = new Object();
_local2.width = w;
_local2.height = height;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
w = _local2.width;
var _local3 = _local2.height;
if ((w != width) || (_local3 != height)) {
resize(w, _local3);
onResize(w, _local3);
broadcastMessage("resize", this, w, _local3);
}
//return(width);
}
function set height(h) {
var _local2 = new Object();
var _local5 = width;
var _local6 = height;
_local2.width = _local5;
_local2.height = h;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
var _local4 = _local2.width;
h = _local2.height;
if ((_local4 != _local5) || (h != _local6)) {
resize(_local4, h);
onResize(_local4, h);
broadcastMessage("resize", this, _local4, h);
}
//return(height);
}
function set x(value) {
movieClip._x = value;
onMove(value, y);
//return(x);
}
function get x() {
return(movieClip._x);
}
function set y(value) {
movieClip._y = value;
onMove(x, value);
//return(y);
}
function get y() {
return(movieClip._y);
}
function set scaleX(value) {
movieClip._xscale = value * 100;
onScale(value, scaleY);
//return(scaleX);
}
function get scaleX() {
return(movieClip._xscale / 100);
}
function set scaleY(value) {
movieClip._yscale = value * 100;
onScale(scaleX, value);
//return(scaleY);
}
function get scaleY() {
return(movieClip._yscale / 100);
}
function get totalScaleX() {
var _local3 = scaleX;
var _local2 = movieClip._parent;
while (_local2) {
_local3 = _local3 * (_local2._xscale / 100);
_local2 = _local2._parent;
}
return(_local3);
}
function get alpha() {
return(movieClip._alpha);
}
function set alpha(a) {
movieClip._alpha = a;
//return(alpha);
}
function get autoUpdate() {
return(m_autoUpdate);
}
function set autoUpdate(enableAutoUpdate) {
m_autoUpdate = enableAutoUpdate;
if (enableAutoUpdate && (m_needUpdate)) {
update();
m_needUpdate = false;
}
//return(autoUpdate);
}
function remove() {
if (m_tooltip) {
m_tooltip.hide();
}
m_mc.removeMovieClip();
delete m_mc;
}
function getWidth() {
return(movieClip._width);
}
function getHeight() {
return(movieClip._height);
}
function onEnable() {
}
function onDisable() {
}
function onShow() {
}
function onHide() {
}
function onMove(newX, newY) {
}
function onScale(scaleX, scaleY) {
}
function broadcastMessage(eventName) {
m_componentBroadcaster.broadcastMessage.apply(m_componentBroadcaster, arguments);
}
function invalidate() {
m_needUpdate = true;
if (m_autoUpdate) {
update();
m_needUpdate = false;
}
}
function update() {
}
function onResizing(newSize) {
}
function resize(w, h) {
var _local2 = movieClip;
_local2._width = w;
_local2._height = h;
}
function onResize(w, h) {
}
function initMouseEvents(mc, listener, handleMouseMove) {
if (!mc) {
mc = movieClip;
}
if (listener == undefined) {
listener = this;
}
var thisPtr = this;
mc.onRollOver = function () {
listener.onRollOver(thisPtr);
};
mc.onRollOut = function () {
listener.onRollOut(thisPtr);
};
mc.onPress = function () {
listener.onPress(thisPtr);
};
mc.onRelease = function () {
listener.onRelease(thisPtr);
};
mc.onReleaseOutside = function () {
listener.onReleaseOutside(thisPtr);
};
mc.onDragOver = function () {
listener.onDragOver(thisPtr);
};
mc.onDragOut = function () {
listener.onDragOut(thisPtr);
};
if (handleMouseMove) {
mc.onMouseMove = function () {
listener.onMouseMove(thisPtr);
};
}
}
function removeMouseEvents(mc) {
if (!mc) {
mc = movieClip;
}
delete mc.onRelease;
delete mc.onReleaseOutside;
delete mc.onPress;
delete mc.onRollOver;
delete mc.onRollOut;
delete mc.onDragOver;
delete mc.onDragOut;
delete mc.onMouseMove;
}
function init() {
}
function addTooltip(tooltip, tooltipParams) {
tooltipParams = (tooltipParams ? (tooltipParams) : (new Object()));
m_tooltip = tooltip;
m_tooltipParams = tooltipParams;
var rollOverHandler = movieClip.onRollOver;
var rollOutHandler = movieClip.onRollOut;
var pressHandler = movieClip.onPress;
var thisPtr = this;
movieClip.onRollOver = function () {
tooltip.useCustomContent = false;
for (var _local1 in tooltipParams) {
tooltip[_local1] = tooltipParams[_local1];
}
thisPtr.prepareTooltip();
tooltip.show();
if (rollOverHandler) {
rollOverHandler();
}
};
movieClip.onRollOut = function () {
tooltip.hide();
thisPtr.clearTooltip();
if (rollOutHandler) {
rollOutHandler();
}
};
movieClip.onPress = function () {
tooltip.hide();
thisPtr.clearTooltip();
if (pressHandler) {
pressHandler();
}
};
}
function prepareTooltip() {
}
function clearTooltip() {
}
function get tooltip() {
return(m_tooltip);
}
function get tooltipParams() {
return(m_tooltipParams);
}
var m_enabled = true;
var m_id = "";
var m_needUpdate = false;
var m_autoUpdate = true;
}
Symbol 11 MovieClip [__Packages.cpslabs.utils.IMessageBroadcaster] Frame 0
interface cpslabs.utils.IMessageBroadcaster
{
}
Symbol 12 MovieClip [__Packages.cpslabs.utils.CMessageBroadcaster] Frame 0
class cpslabs.utils.CMessageBroadcaster implements cpslabs.utils.IMessageBroadcaster
{
var m_events, m_id;
function CMessageBroadcaster () {
m_events = new Object();
}
function get id() {
return(m_id);
}
function set id(objectId) {
m_id = objectId;
//return(id);
}
function addListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
_local2 = new Array();
m_events[eventName] = _local2;
}
var _local3 = new Object();
_local3.handler = handler;
_local3.listener = listener;
_local2.push(_local3);
}
function removeListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
return(false);
}
if (listener == undefined) {
delete m_events[eventName];
return(true);
}
if (handler == undefined) {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if (_local4.listener == listener) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
} else {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if ((_local4.listener == listener) && (_local4.handler == handler)) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
}
return(false);
}
function broadcastMessage(eventName) {
var _local5 = m_events[eventName];
if (_local5 && (_local5.length > 0)) {
var _local6 = _local5.length;
arguments.shift();
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = _local5[_local3];
_local4.handler.apply(_local4.listener, arguments);
_local3++;
}
}
}
}
Symbol 13 MovieClip [__Packages.cpslabs.ITooltip] Frame 0
interface cpslabs.ITooltip
{
}
Symbol 14 MovieClip [__Packages.fsplayer.api.IPlayerListener] Frame 0
interface fsplayer.api.IPlayerListener
{
}
Symbol 15 MovieClip [__Packages.fsplayer.api.IPlayer] Frame 0
interface fsplayer.api.IPlayer
{
}
Symbol 16 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackController] Frame 0
interface fsplayer.api.IPresentationPlaybackController
{
}
Symbol 17 MovieClip [__Packages.fsplayer.api.IPlaybackListener] Frame 0
interface fsplayer.api.IPlaybackListener
{
}
Symbol 18 MovieClip [__Packages.fsplayer.api.IRestrictedPresentationPlaybackController] Frame 0
interface fsplayer.api.IRestrictedPresentationPlaybackController extends fsplayer.api.IPresentationPlaybackController
{
}
Symbol 19 MovieClip [__Packages.fsplayer.api.IRestrictedPlaybackListener] Frame 0
interface fsplayer.api.IRestrictedPlaybackListener
{
}
Symbol 20 MovieClip [__Packages.fsplayer.api.restriction.ISlideChangeRestriction] Frame 0
interface fsplayer.api.restriction.ISlideChangeRestriction
{
}
Symbol 21 MovieClip [__Packages.fsplayer.api.ISoundController] Frame 0
interface fsplayer.api.ISoundController
{
}
Symbol 22 MovieClip [__Packages.fsplayer.api.ISoundListener] Frame 0
interface fsplayer.api.ISoundListener
{
}
Symbol 23 MovieClip [__Packages.fsplayer.api.IPresentationInfo] Frame 0
interface fsplayer.api.IPresentationInfo
{
}
Symbol 24 MovieClip [__Packages.fsplayer.api.ISlidesCollection] Frame 0
interface fsplayer.api.ISlidesCollection
{
}
Symbol 25 MovieClip [__Packages.fsplayer.api.ISlideInfo] Frame 0
interface fsplayer.api.ISlideInfo
{
}
Symbol 26 MovieClip [__Packages.fsplayer.api.IAnimationSteps] Frame 0
interface fsplayer.api.IAnimationSteps
{
}
Symbol 27 MovieClip [__Packages.fsplayer.api.IAnimationStep] Frame 0
interface fsplayer.api.IAnimationStep
{
}
Symbol 28 MovieClip [__Packages.fsplayer.api.ISlideResources] Frame 0
interface fsplayer.api.ISlideResources
{
}
Symbol 29 MovieClip [__Packages.fsplayer.api.IPresenterVideo] Frame 0
interface fsplayer.api.IPresenterVideo
{
}
Symbol 30 MovieClip [__Packages.fsplayer.api.ISlideListener] Frame 0
interface fsplayer.api.ISlideListener
{
}
Symbol 31 MovieClip [__Packages.fsplayer.api.IWebObjectsCollection] Frame 0
interface fsplayer.api.IWebObjectsCollection
{
}
Symbol 32 MovieClip [__Packages.fsplayer.api.IWebObject] Frame 0
interface fsplayer.api.IWebObject
{
}
Symbol 33 MovieClip [__Packages.fsplayer.api.IThumbnailsCollection] Frame 0
interface fsplayer.api.IThumbnailsCollection
{
}
Symbol 34 MovieClip [__Packages.fsplayer.api.ISlideThumbnail] Frame 0
interface fsplayer.api.ISlideThumbnail
{
}
Symbol 35 MovieClip [__Packages.fsplayer.api.ISlideThumbnailLoadingListener] Frame 0
interface fsplayer.api.ISlideThumbnailLoadingListener
{
}
Symbol 36 MovieClip [__Packages.fsplayer.api.IPresenterInfo] Frame 0
interface fsplayer.api.IPresenterInfo
{
}
Symbol 37 MovieClip [__Packages.fsplayer.api.IPresenterPhoto] Frame 0
interface fsplayer.api.IPresenterPhoto
{
}
Symbol 38 MovieClip [__Packages.fsplayer.api.IPresenterPhotoLoadingListener] Frame 0
interface fsplayer.api.IPresenterPhotoLoadingListener
{
}
Symbol 39 MovieClip [__Packages.fsplayer.api.ICompanyInfo] Frame 0
interface fsplayer.api.ICompanyInfo
{
}
Symbol 40 MovieClip [__Packages.fsplayer.api.ICompanyLogo] Frame 0
interface fsplayer.api.ICompanyLogo
{
}
Symbol 41 MovieClip [__Packages.fsplayer.api.ICompanyLogoLoadingListener] Frame 0
interface fsplayer.api.ICompanyLogoLoadingListener
{
}
Symbol 42 MovieClip [__Packages.fsplayer.api.INarrationInfo] Frame 0
interface fsplayer.api.INarrationInfo
{
}
Symbol 43 MovieClip [__Packages.fsplayer.api.IReferencesCollection] Frame 0
interface fsplayer.api.IReferencesCollection
{
}
Symbol 44 MovieClip [__Packages.fsplayer.api.IReferenceInfo] Frame 0
interface fsplayer.api.IReferenceInfo
{
}
Symbol 45 MovieClip [__Packages.fsplayer.api.IPresentersCollection] Frame 0
interface fsplayer.api.IPresentersCollection
{
}
Symbol 46 MovieClip [__Packages.fsplayer.api.IPresentationListener] Frame 0
interface fsplayer.api.IPresentationListener
{
}
Symbol 47 MovieClip [__Packages.fsplayer.ui.skins.ISkin] Frame 0
interface fsplayer.ui.skins.ISkin
{
}
Symbol 48 MovieClip [__Packages.fsplayer.ui.skins.ISlideShowWindow] Frame 0
interface fsplayer.ui.skins.ISlideShowWindow
{
}
Symbol 49 MovieClip [__Packages.fsplayer.ui.skins.ISkinListener] Frame 0
interface fsplayer.ui.skins.ISkinListener
{
}
Symbol 50 MovieClip [__Packages.fsplayer.api.IKeyboardSettings] Frame 0
interface fsplayer.api.IKeyboardSettings
{
}
Symbol 51 MovieClip [__Packages.fsplayer.api.IPlaybackAction] Frame 0
interface fsplayer.api.IPlaybackAction
{
}
Symbol 52 MovieClip [__Packages.com.flashspring.preloaders.business.CBusinessPreloader] Frame 0
class com.flashspring.preloaders.business.CBusinessPreloader extends cpslabs.ui.CComponent implements fsplayer.api.IPlayerListener, fsplayer.api.IPlaybackListener
{
var m_ui, __get__movieClip, m_startTimeout, __set__visible, m_updateInterval, __set__x, __get__width, __set__y, __get__height, m_loadingMc, m_skinBase, m_presentationInfo, m_playbackController, broadcastMessage;
function CBusinessPreloader (parent, name, depth) {
super(parent, name, depth);
m_ui = new com.flashspring.preloaders.business.CBusinessPreloaderUI(__get__movieClip());
m_ui.addListener(com.flashspring.preloaders.business.CBusinessPreloaderUI.EVENT_HIDE_COMPLETE, this, onUIHideComplete);
m_startTimeout = new cpslabs.utils.CTimeout(START_TIMEOUT);
m_startTimeout.addListener(cpslabs.utils.CTimeout.EVENT_COMPLETE, this, onStartTimeoutComplete);
var thisPtr = this;
__get__movieClip().onEnterFrame = function () {
thisPtr.onEnterFrame();
};
__set__visible(false);
}
function init(preloaderParams) {
m_ui.init(preloaderParams.textLoading);
}
function onEnterFrame() {
m_startTimeout.update();
if (m_updateInterval) {
m_updateInterval.update();
}
__set__x((Stage.width - __get__width()) / 2);
__set__y((Stage.height - __get__height()) / 2);
}
function start(mc) {
m_loadingMc = mc;
m_startTimeout.start();
}
function stop() {
var _local2 = m_startTimeout.__get__progress() != -1;
if (_local2) {
complete();
return(undefined);
}
m_ui.hide();
}
function setPlayerCore(player, skinBase) {
player.addListener(this);
m_skinBase = skinBase;
m_skinBase._visible = false;
if (player.isInitialized()) {
onPlayerInit(player);
}
}
function onPlayerInit(player) {
player.removeListener(this);
m_presentationInfo = player.getPresentationInfo();
m_updateInterval = new cpslabs.utils.CInterval(UPDATE_INTERVAL);
m_updateInterval.addListener(cpslabs.utils.CInterval.EVENT_TIMER, this, onUpdateTimer);
m_updateInterval.start();
m_playbackController = player.getPlaybackController();
m_playbackController.addListener(this);
m_ui.__set__cyclicMode(false);
onUpdateTimer();
}
function onSlideLoadingComplete(slideIndex) {
var _local2 = m_presentationInfo.getSlides();
var _local3 = ((_local2.getVisibleSlidesCount > 0) ? (_local2.getVisibleSlide(0).getIndex()) : 0);
if (slideIndex == _local3) {
m_playbackController.removeListener(this);
stop();
}
}
function onStartTimeoutComplete() {
__set__visible(true);
m_ui.__set__cyclicMode(true);
m_ui.show();
}
function onUIHideComplete() {
complete();
}
function complete() {
__set__visible(false);
m_skinBase._visible = true;
delete __get__movieClip().onEnterFrame;
broadcastMessage(EVENT_STOP, this);
remove();
}
function onUpdateTimer() {
var _local2 = m_presentationInfo.getBytesLoaded();
var _local3 = m_presentationInfo.getBytesTotal();
if (_local2 === undefined) {
_local2 = 0;
}
var _local4 = m_presentationInfo.getPresentationType() == fsplayer.api.PresentationType.SOLID;
if (_local4) {
_local2 = _local2 + m_loadingMc.getBytesLoaded();
_local3 = _local3 + m_loadingMc.getBytesTotal();
}
m_ui.__set__progress(((_local3 > 0) ? (_local2 / _local3) : 0));
}
function remove() {
m_ui.remove();
super.remove();
}
function onPausePlayback() {
}
function onStartPlayback() {
}
function onAnimationStepChanged(stepIndex) {
}
function onSlidePositionChanged(position) {
}
function onCurrentSlideIndexChanged(slideIndex) {
}
function onPresentationPlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function onPlaybackSuspended() {
}
function onPlaybackResumed() {
}
function onHandleCloseRequest() {
}
function onSlideTransitionPhaseChanged(phase) {
}
static var EVENT_STOP = "stop";
static var UPDATE_INTERVAL = 40;
static var START_TIMEOUT = 500;
}
Symbol 53 MovieClip [__Packages.cpslabs.utils.CTimeout] Frame 0
class cpslabs.utils.CTimeout extends cpslabs.utils.CMessageBroadcaster
{
var m_progressListeners, m_currentProgressListeners, broadcastMessage;
function CTimeout (duration) {
super();
m_duration = duration;
m_progressListeners = new Object();
}
function set duration(value) {
m_duration = value;
//return(duration);
}
function get duration() {
return(m_duration);
}
function get progress() {
return(m_progress);
}
function get remainingTime() {
return(((m_progress != -1) ? (m_duration * (1 - m_progress)) : 0));
}
function addProgressListener(progress, obj, method) {
if (hasProgressListener[progress]) {
return(undefined);
}
m_progressListeners[progress] = new cpslabs.utils.CListener(obj, method);
}
function hasProgressListener(progress) {
return(!(m_progressListeners[progress] === undefined));
}
function removeProgressListener(progress) {
m_progressListeners[progress] = undefined;
}
function update() {
if (m_startTime == -1) {
return(undefined);
}
m_progress = ((m_duration > 0) ? ((getTimer() - m_startTime) / m_duration) : 1);
if (m_progress > 1) {
m_progress = 1;
}
for (var _local4 in m_currentProgressListeners) {
var _local2 = m_currentProgressListeners[_local4];
if (_local2 === undefined) {
continue;
}
var _local3 = parseFloat(_local4);
if (progress >= _local3) {
m_currentProgressListeners[_local4] = undefined;
_local2.call();
}
}
if (m_progress == 1) {
onComplete();
stop();
broadcastMessage(EVENT_COMPLETE);
}
}
function start() {
m_startTime = getTimer();
m_progress = 0;
m_currentProgressListeners = cpslabs.utils.CObjectUtils.copy(m_progressListeners);
onStart();
}
function stop() {
if (progress == -1) {
return(undefined);
}
m_startTime = -1;
m_progress = -1;
m_currentProgressListeners = null;
onStop();
}
function onStart() {
}
function onStop() {
}
function onComplete() {
}
static var EVENT_COMPLETE = "complete";
var m_duration = 0;
var m_startTime = -1;
var m_progress = -1;
}
Symbol 54 MovieClip [__Packages.cpslabs.utils.CListener] Frame 0
class cpslabs.utils.CListener
{
var m_object, m_method;
function CListener (object, method) {
m_object = object;
m_method = method;
}
function set object(value) {
m_object = value;
//return(object);
}
function get object() {
return(m_object);
}
function set method(value) {
m_method = value;
//return(method);
}
function get method() {
return(m_method);
}
function call() {
m_method.apply(m_object, arguments);
}
}
Symbol 55 MovieClip [__Packages.cpslabs.utils.CObjectUtils] Frame 0
class cpslabs.utils.CObjectUtils
{
function CObjectUtils () {
}
static function cloneObject(obj) {
if (!(typeof(obj) === "object")) {
} else {
var _local2 = new Object();
for (var _local3 in obj) {
_local2[_local3] = cloneObject(obj[_local3]);
}
return(_local2);
}
return(obj);
}
static function copyObjectProperties(srcObject, dstObject) {
switch (typeof(srcObject)) {
case "object" :
if (typeof(dstObject) != "object") {
dstObject = new Object();
}
for (var _local3 in srcObject) {
if (dstObject[_local3] == undefined) {
dstObject[_local3] = cloneObject(srcObject[_local3]);
} else if (typeof(srcObject[_local3]) == "object") {
copyObjectProperties(srcObject[_local3], dstObject[_local3]);
}
}
break;
default :
dstObject = cloneObject(srcObject);
}
return(dstObject);
}
static function copy(object, recursive) {
if (recursive === undefined) {
recursive = false;
}
var _local2 = new Object();
for (var _local5 in object) {
var _local1 = object[_local5];
if (recursive && (typeof(_local1) == "object")) {
_local2[_local5] = copy(_local1, true);
} else {
_local2[_local5] = _local1;
}
}
return(_local2);
}
static function print(object, recursive, spaces) {
if (recursive === undefined) {
recursive = false;
}
if (spaces === undefined) {
spaces = "";
}
for (var _local5 in object) {
var _local1 = object[_local5];
if (recursive && (typeof(_local1) == "object")) {
print(_local1, true, spaces + " ");
} else {
trace(((spaces + _local5) + ": ") + _local1);
}
}
}
}
Symbol 56 MovieClip [__Packages.cpslabs.utils.CInterval] Frame 0
class cpslabs.utils.CInterval extends cpslabs.utils.CMessageBroadcaster
{
var broadcastMessage;
function CInterval (duration) {
super();
m_timeout = new cpslabs.utils.CTimeout(duration);
m_timeout.addListener(cpslabs.utils.CTimeout.EVENT_COMPLETE, this, onTimeoutComplete);
}
function set duration(value) {
m_timeout.__set__duration(value);
//return(duration);
}
function get duration() {
return(m_timeout.__get__duration());
}
function get tickCount() {
return(m_tickCount);
}
function update() {
m_timeout.update();
}
function start() {
m_tickCount = 0;
m_timeout.start();
}
function stop() {
m_timeout.stop();
}
function get running() {
return(m_timeout.__get__progress() != -1);
}
function onTimeoutComplete() {
m_tickCount++;
m_timeout.start();
broadcastMessage(EVENT_TIMER);
}
static var EVENT_TIMER = "timer";
var m_timeout = null;
var m_tickCount = 0;
}
Symbol 57 MovieClip [__Packages.com.flashspring.preloaders.business.CBusinessPreloaderUI] Frame 0
class com.flashspring.preloaders.business.CBusinessPreloaderUI extends cpslabs.ui.CComponent
{
var m_bg, __get__movieClip, m_progressBar, m_cyclicBar, m_loadingLabel, m_progressLabel, m_fadeInTween, m_fadeOutTween, m_updateCyclicBarInterval, broadcastMessage;
function CBusinessPreloaderUI (parent, name, depth) {
super(parent, name, depth);
m_bg = new cpslabs.ui.CMovieClip(__get__movieClip());
m_bg.__set__source("preloader_bg");
m_progressBar = new cpslabs.ui.CMovieClip(__get__movieClip());
m_progressBar.__set__source("preloader_progress");
m_progressBar.__set__x(PROGRESS_BAR_POS_X);
m_progressBar.__set__y((m_bg.__get__height() - m_progressBar.__get__height()) / 2);
m_cyclicBar = new cpslabs.ui.CMovieClip(__get__movieClip());
m_cyclicBar.__set__source("cyclic");
m_cyclicBar.__set__x(m_progressBar.x);
m_cyclicBar.__set__y(m_progressBar.y);
m_cyclicBar.__set__width(0);
m_loadingLabel = new com.flashspring.preloaders.business.CLoadingLabel(__get__movieClip());
m_loadingLabel.__set__fontSize(9);
m_loadingLabel.__set__fontBold(true);
m_loadingLabel.__set__fontFamily("Arial");
m_loadingLabel.__set__color(5066061);
m_loadingLabel.__set__visible(false);
m_loadingLabel.__set__text("loading");
m_loadingLabel.__set__x((PROGRESS_BAR_POS_X + PROGRESS_BAR_FULL_SIZE) + 11);
m_loadingLabel.__set__y((m_bg.__get__height() - m_loadingLabel.__get__height()) / 2);
m_progressLabel = new cpslabs.ui.CLabel(__get__movieClip());
m_progressLabel.__set__color(m_loadingLabel.color);
m_progressLabel.__set__fontFamily(m_loadingLabel.fontFamily);
m_progressLabel.__set__fontBold(true);
m_progressLabel.__set__fontSize(14);
m_fadeInTween = new cpslabs.ui.effect.CFadeInEffect(__get__movieClip(), FADE_IN_TIMEOUT);
m_fadeInTween.addListener(cpslabs.ui.effect.CSimpleEffectBase.EVENT_COMPLETE, this, onFadeInComplete);
m_fadeOutTween = new cpslabs.ui.effect.CFadeEffect(__get__movieClip(), 0, __get__movieClip()._alpha, 0);
m_fadeOutTween.addListener(cpslabs.ui.effect.CSimpleEffectBase.EVENT_COMPLETE, this, onFadeOutComplete);
m_updateCyclicBarInterval = new cpslabs.utils.CInterval(CYCLIC_INTERVAL, m_bg.__get__movieClip());
m_updateCyclicBarInterval.addListener(cpslabs.utils.CInterval.EVENT_TIMER, this, onUpdateCyclickBarTimer);
var thisPtr = this;
__get__movieClip().onEnterFrame = function () {
thisPtr.onEnterFrame();
};
}
function init(loadingLabel) {
m_loadingLabel.__set__text(loadingLabel);
}
function set cyclicMode(value) {
if (m_cyclicMode == value) {
return;
}
m_cyclicMode = value;
m_progressBar.__set__visible(!m_cyclicMode);
m_cyclicBar.__set__visible(m_cyclicMode);
invalidateLabelsVisibility();
if (m_cyclicMode) {
m_cyclicBar.__set__width(0);
m_updateCyclicBarInterval.start();
} else {
m_updateCyclicBarInterval.stop();
}
//return(cyclicMode);
}
function get cyclicMode() {
return(m_cyclicMode);
}
function set progress(value) {
if (m_cyclicMode) {
return;
}
m_progressBar.__set__width(PROGRESS_BAR_FULL_SIZE * value);
var _local2 = Math.floor(value * 100);
m_progressLabel.__set__text(("" + _local2) + "%");
m_progressLabel.__set__x((m_bg.__get__width() - (PROGRESS_LABEL_OFFSET_X * 2)) - m_progressLabel.__get__width());
m_progressLabel.__set__y((m_bg.__get__height() - m_progressLabel.__get__height()) / 2);
return;
}
function show() {
m_fadeInTween.start();
invalidateLabelsVisibility();
}
function hide() {
var _local2 = 1;
if (m_fadeInTween.isRunning()) {
_local2 = m_fadeInTween.progress;
m_fadeInTween.stop();
}
m_fadeOutTween.__set__duration(FADE_OUT_TIMEOUT * _local2);
m_fadeOutTween.start();
invalidateLabelsVisibility();
}
function invalidateLabelsVisibility() {
var _local2 = m_fadeInTween.isRunning() || (m_fadeOutTween.isRunning());
m_loadingLabel.__set__visible((!_local2) && (m_cyclicMode));
m_progressLabel.__set__visible((!_local2) && (!m_cyclicMode));
}
function onEnterFrame() {
m_fadeInTween.update();
m_fadeOutTween.update();
m_updateCyclicBarInterval.update();
m_loadingLabel.update();
}
function onUpdateCyclickBarTimer() {
if (m_cyclicBar.__get__width() >= PROGRESS_BAR_FULL_SIZE) {
m_cyclicBar.__set__width(0);
}
m_cyclicBar.width = m_cyclicBar.width + CYCLIC_DX;
if (m_cyclicBar.__get__width() > PROGRESS_BAR_FULL_SIZE) {
m_cyclicBar.__set__width(PROGRESS_BAR_FULL_SIZE);
}
m_cyclicBar.__set__alpha((((PROGRESS_BAR_FULL_SIZE - m_cyclicBar.__get__width()) * 100) / PROGRESS_BAR_FULL_SIZE) + 20);
}
function onFadeInComplete() {
invalidateLabelsVisibility();
m_loadingLabel.__set__animationEnabled(true);
broadcastMessage(EVENT_SHOW_COMPLETE);
}
function onFadeOutComplete() {
broadcastMessage(EVENT_HIDE_COMPLETE);
}
function remove() {
delete __get__movieClip().onEnterFrame;
__get__movieClip().onEnterFrame = undefined;
m_bg.remove();
m_progressBar.remove();
m_loadingLabel.remove();
super.remove();
}
static var EVENT_SHOW_COMPLETE = "showComplete";
static var EVENT_HIDE_COMPLETE = "hideComplete";
static var PROGRESS_BAR_POS_X = 16;
static var PROGRESS_LABEL_OFFSET_X = 7;
static var PROGRESS_BAR_FULL_SIZE = 158;
static var PROGRESS_BAR_SLIDER_W = 20;
static var FADE_IN_TIMEOUT = 1000;
static var FADE_OUT_TIMEOUT = 300;
static var CYCLIC_INTERVAL = 50;
static var CYCLIC_DX = 12;
var m_cyclicMode = false;
}
Symbol 58 MovieClip [__Packages.cpslabs.ui.effect.IEffect] Frame 0
interface cpslabs.ui.effect.IEffect extends cpslabs.utils.IMessageBroadcaster
{
}
Symbol 59 MovieClip [__Packages.cpslabs.ui.effect.CEffectEvent] Frame 0
class cpslabs.ui.effect.CEffectEvent
{
function CEffectEvent () {
}
static var COMPLETE = "complete";
}
Symbol 60 MovieClip [__Packages.cpslabs.ui.effect.CSimpleEffectBase] Frame 0
class cpslabs.ui.effect.CSimpleEffectBase extends cpslabs.utils.CTimeout implements cpslabs.ui.effect.IEffect
{
var m_target, m_beginValue, m_endValue, m_autoUpdate, m_updateFunction, m_progress, __get__progress, broadcastMessage;
function CSimpleEffectBase (target, duration, beginValue, endValue, autoUpdate) {
super(duration);
m_target = target;
m_beginValue = beginValue;
m_endValue = endValue;
m_autoUpdate = ((!(autoUpdate === undefined)) ? (autoUpdate) : false);
m_updateFunction = cpslabs.ui.effect.CEffectUpdateFunctions.linear;
}
function set target(value) {
m_target = value;
update();
//return(target);
}
function get target() {
return(m_target);
}
function getTargetMc() {
if (m_target instanceof MovieClip) {
return(MovieClip(m_target));
}
if (m_target instanceof cpslabs.ui.CComponent) {
var _local2 = cpslabs.ui.CComponent(m_target);
return(_local2.__get__movieClip());
}
return(null);
}
function addEnterFrameListener() {
var _local2 = getTargetMc();
var thisPtr = this;
_local2.onEnterFrame = function () {
thisPtr.onEnterFrame();
};
}
function removeEnterFrameListener() {
var _local2 = getTargetMc();
delete _local2.onEnterFrame;
_local2.onEnterFrame = null;
}
function set autoUpdate(value) {
m_autoUpdate = value;
//return(autoUpdate);
}
function get autoUpdate() {
return(m_autoUpdate);
}
function set beginValue(value) {
m_beginValue = value;
//return(beginValue);
}
function get beginValue() {
return(m_beginValue);
}
function set endValue(value) {
m_endValue = value;
//return(endValue);
}
function get endValue() {
return(m_endValue);
}
function set updateFunction(value) {
m_updateFunction = value;
//return(updateFunction);
}
function get updateFunction() {
return(m_updateFunction);
}
function isRunning() {
return(m_progress != -1);
}
function update() {
super.update();
if (__get__progress() != -1) {
onUpdate(__get__progress());
broadcastMessage(EVENT_UPDATE);
}
}
function onUpdate(progress) {
}
function onStart() {
if (m_autoUpdate) {
addEnterFrameListener();
}
onUpdate(0);
broadcastMessage(EVENT_UPDATE);
}
function onStop() {
if (m_autoUpdate) {
removeEnterFrameListener();
}
onUpdate(1);
broadcastMessage(EVENT_UPDATE);
}
function onEnterFrame() {
update();
}
static var EVENT_COMPLETE = cpslabs.ui.effect.CEffectEvent.COMPLETE;
static var EVENT_UPDATE = "update";
}
Symbol 61 MovieClip [__Packages.cpslabs.ui.effect.CEffectUpdateFunctions] Frame 0
class cpslabs.ui.effect.CEffectUpdateFunctions
{
function CEffectUpdateFunctions () {
}
static function linear(beginValue, endValue, progress) {
return(beginValue + ((endValue - beginValue) * progress));
}
static function square(beginValue, endValue, progress) {
return(beginValue + ((endValue - beginValue) * Math.pow(progress, 2)));
}
static function reverseSquare(beginValue, endValue, progress) {
return(square(endValue, beginValue, 1 - progress));
}
static function cubic(beginValue, endValue, progress) {
return(beginValue + ((endValue - beginValue) * Math.pow(progress, 3)));
}
}
Symbol 62 MovieClip [__Packages.cpslabs.ui.effect.CSinglePropertyEffect] Frame 0
class cpslabs.ui.effect.CSinglePropertyEffect extends cpslabs.ui.effect.CSimpleEffectBase
{
var m_property, m_updateFunction, m_beginValue, m_endValue, m_target;
function CSinglePropertyEffect (target, property, duration, beginValue, endValue, autoUpdate) {
super(target, duration, beginValue, endValue, autoUpdate);
m_property = property;
}
function set property(value) {
m_property = property;
//return(property);
}
function get property() {
return(m_property);
}
function onUpdate(progress) {
m_target[m_property] = m_updateFunction(m_beginValue, m_endValue, progress, this);
}
}
Symbol 63 MovieClip [__Packages.cpslabs.ui.effect.CFadeEffect] Frame 0
class cpslabs.ui.effect.CFadeEffect extends cpslabs.ui.effect.CSinglePropertyEffect
{
function CFadeEffect (mc, duration, beginAlpha, endAlpha, autoUpdate) {
super(mc, "_alpha", duration, beginAlpha, endAlpha, autoUpdate);
}
}
Symbol 64 MovieClip [__Packages.cpslabs.ui.effect.CFadeInEffect] Frame 0
class cpslabs.ui.effect.CFadeInEffect extends cpslabs.ui.effect.CFadeEffect
{
var getTargetMc;
function CFadeInEffect (mc, duration, autoUpdate) {
super(mc, duration, 0, 100, autoUpdate);
}
function onStart() {
var _local3 = getTargetMc();
_local3._visible = true;
super.onStart();
}
}
Symbol 65 MovieClip [__Packages.cpslabs.ui.CMovieClip] Frame 0
class cpslabs.ui.CMovieClip extends cpslabs.ui.CComponent
{
var m_source, m_content, invalidate, __get__movieClip;
function CMovieClip (parent, name, depth) {
super(parent, name, depth);
}
function set source(src) {
if (m_source != src) {
if (m_content) {
m_content.removeMovieClip();
delete m_content;
}
m_source = src;
attachMovie(src);
invalidate();
}
//return(source);
}
function get source() {
return(m_source);
}
function get content() {
return(m_content);
}
function createEmptyMovieClip(name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().createEmptyMovieClip(((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function attachMovie(assetName, name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().attachMovie(assetName, ((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
if (_local2 == undefined) {
}
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function resize(w, h) {
var _local2 = __get__movieClip();
if (m_content) {
_local2 = m_content;
}
_local2._width = w;
_local2._height = h;
}
function getWidth() {
return((m_content ? (m_content._width) : (__get__movieClip()._width)));
}
function getHeight() {
return((m_content ? (m_content._height) : (__get__movieClip()._height)));
}
}
Symbol 66 MovieClip [__Packages.com.flashspring.preloaders.business.CLoadingLabel] Frame 0
class com.flashspring.preloaders.business.CLoadingLabel extends cpslabs.ui.CComponent
{
var m_label, __get__movieClip, m_updateInterval, m_text;
function CLoadingLabel (parent) {
super(parent);
m_label = new cpslabs.ui.CLabel(__get__movieClip());
m_updateInterval = new cpslabs.utils.CInterval(UPDATE_INTERVAL);
m_updateInterval.addListener(cpslabs.utils.CInterval.EVENT_TIMER, this, onUpdateTimer);
}
function update() {
m_updateInterval.update();
}
function set animationEnabled(value) {
if (animationEnabled == value) {
return;
}
(value ? (m_updateInterval.start()) : (m_updateInterval.stop()));
//return(animationEnabled);
}
function get animationEnabled() {
return(m_updateInterval.__get__running());
}
function set text(value) {
m_text = value;
m_label.__set__text(value);
invalidateText();
//return(text);
}
function get text() {
return(m_text);
}
function set fontSize(value) {
m_label.__set__fontSize(value);
//return(fontSize);
}
function get fontSize() {
return(m_label.__get__fontSize());
}
function set fontFamily(value) {
m_label.__set__fontFamily(value);
//return(fontFamily);
}
function get fontFamily() {
return(m_label.__get__fontFamily());
}
function set color(value) {
m_label.__set__color(value);
//return(color);
}
function get color() {
return(m_label.__get__color());
}
function set fontBold(value) {
m_label.__set__fontBold(value);
//return(fontBold);
}
function get fontBold() {
return(m_label.__get__fontBold());
}
function invalidateText() {
var _local3 = (m_updateInterval.__get__tickCount() % 3) + 1;
m_label.__set__text(m_text);
var _local2 = 0;
while (_local2 < _local3) {
m_label.text = m_label.text + ".";
_local2++;
}
}
function onUpdateTimer() {
invalidateText();
}
function remove() {
m_updateInterval.stop();
m_label.remove();
super.remove();
}
static var UPDATE_INTERVAL = 500;
}
Symbol 67 MovieClip [__Packages.cpslabs.ui.CLabel] Frame 0
class cpslabs.ui.CLabel extends cpslabs.ui.CComponent
{
var m_color, m_disabledColor, __get__movieClip, m_field, m_format, __get__enabled, invalidate;
function CLabel (mcParent, name, depth) {
super(mcParent, name, depth);
m_color = 0;
m_disabledColor = 8421504 /* 0x808080 */;
__get__movieClip().createTextField("T", 1, 0, 0, 0, 0);
m_field = __get__movieClip().T;
m_field.embedFonts = false;
m_field.autoSize = "left";
m_field.html = false;
m_field.selectable = false;
m_format = new TextFormat();
m_format.font = "Arial";
m_format.size = 12;
m_format.align = "left";
m_format.target = "_self";
m_format.url = "";
}
function get html() {
return(m_field.html);
}
function set html(useHtml) {
m_field.html = useHtml;
//return(html);
}
function set antiAliasType(aat) {
m_field.antiAliasType = aat;
//return(antiAliasType);
}
function get antiAliasType() {
return(m_field.antiAliasType);
}
function update() {
m_format.color = (__get__enabled() ? (m_color) : (m_disabledColor));
m_field.setTextFormat(m_format);
}
function onEnable() {
invalidate();
}
function onDisable() {
invalidate();
}
function resize(w, h) {
m_field._width = w;
m_field._height = h;
}
function get text() {
return((m_field.html ? (m_field.htmlText) : (m_field.text)));
}
function set text(t) {
if (m_field.html) {
m_field.htmlText = t;
} else {
m_field.text = t;
}
invalidate();
//return(text);
}
function get color() {
return(m_color);
}
function get wordWrap() {
return(m_field.wordWrap);
}
function set wordWrap(wrdWrap) {
m_field.wordWrap = wrdWrap;
//return(wordWrap);
}
function set color(c) {
m_color = c;
invalidate();
//return(color);
}
function get disabledColor() {
return(m_disabledColor);
}
function set disabledColor(c) {
m_disabledColor = c;
invalidate();
//return(disabledColor);
}
function get embedFonts() {
return(m_field.embedFonts);
}
function set embedFonts(e) {
m_field.embedFonts = e;
invalidate();
//return(embedFonts);
}
function get fontFamily() {
return(m_format.font);
}
function set fontFamily(f) {
m_format.font = f;
invalidate();
//return(fontFamily);
}
function get fontSize() {
return(m_format.size);
}
function set fontSize(s) {
m_format.size = s;
invalidate();
//return(fontSize);
}
function get fontBold() {
return(m_format.bold);
}
function set fontBold(b) {
m_format.bold = b;
invalidate();
//return(fontBold);
}
function get fontItalic() {
return(m_format.italic);
}
function set fontItalic(i) {
m_format.italic = i;
invalidate();
//return(fontItalic);
}
function get fontUnderline() {
return(m_format.underline);
}
function set fontUnderline(u) {
m_format.underline = u;
invalidate();
//return(fontUnderline);
}
function get textAlign() {
return(m_format.align);
}
function set textAlign(a) {
m_format.align = a;
invalidate();
//return(textAlign);
}
function get autoSize() {
return(m_field.autoSize);
}
function set autoSize(a) {
m_field.autoSize = a;
invalidate();
//return(autoSize);
}
function get url() {
return(m_format.url);
}
function set url(u) {
m_format.url = u;
invalidate();
//return(url);
}
function get target() {
return(m_format.target);
}
function set target(t) {
m_format.target = t;
invalidate();
//return(target);
}
function get selectable() {
return(m_field.selectable);
}
function set selectable(s) {
m_field.selectable = s;
//return(selectable);
}
function get multiline() {
return(m_field.multiline);
}
function set multiline(m) {
m_field.multiline = m;
//return(multiline);
}
function get textWidth() {
return(m_field.textWidth);
}
function get textHeight() {
return(m_field.textHeight);
}
}
Symbol 68 MovieClip [__Packages.fsplayer.api.PresentationType] Frame 0
class fsplayer.api.PresentationType
{
function PresentationType () {
}
static var SOLID = "solid";
static var COMPOUND = "compound";
}
Symbol 1 MovieClip [sprPreloader] Frame 1
this._lockroot = true;
function startPreloader(mc) {
preloader.start(mc);
}
function init(preloaderParams) {
preloader.init(preloaderParams);
}
function setPlayerCore(pc, skinBase) {
preloader.setPlayerCore(pc, skinBase);
}
function stopPreloader() {
preloader.stop();
}
var preloader = (new com.flashspring.preloaders.business.CBusinessPreloader(this));
Symbol 1 MovieClip [sprPreloader] Frame 2
this._lockroot = false;
Symbol 76 MovieClip [__Packages.fsplayer.api.IPlayer] Frame 0
interface fsplayer.api.IPlayer
{
}
Symbol 77 MovieClip [__Packages.fsplayer.api.IPlayerListener] Frame 0
interface fsplayer.api.IPlayerListener
{
}
Symbol 78 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackController] Frame 0
interface fsplayer.api.IPresentationPlaybackController
{
}
Symbol 79 MovieClip [__Packages.fsplayer.api.IPlaybackListener] Frame 0
interface fsplayer.api.IPlaybackListener
{
}
Symbol 80 MovieClip [__Packages.fsplayer.api.IRestrictedPresentationPlaybackController] Frame 0
interface fsplayer.api.IRestrictedPresentationPlaybackController extends fsplayer.api.IPresentationPlaybackController
{
}
Symbol 81 MovieClip [__Packages.fsplayer.api.IRestrictedPlaybackListener] Frame 0
interface fsplayer.api.IRestrictedPlaybackListener
{
}
Symbol 82 MovieClip [__Packages.fsplayer.api.restriction.ISlideChangeRestriction] Frame 0
interface fsplayer.api.restriction.ISlideChangeRestriction
{
}
Symbol 83 MovieClip [__Packages.fsplayer.api.ISoundController] Frame 0
interface fsplayer.api.ISoundController
{
}
Symbol 84 MovieClip [__Packages.fsplayer.api.ISoundListener] Frame 0
interface fsplayer.api.ISoundListener
{
}
Symbol 85 MovieClip [__Packages.fsplayer.api.IPresentationInfo] Frame 0
interface fsplayer.api.IPresentationInfo
{
}
Symbol 86 MovieClip [__Packages.fsplayer.api.ISlidesCollection] Frame 0
interface fsplayer.api.ISlidesCollection
{
}
Symbol 87 MovieClip [__Packages.fsplayer.api.ISlideInfo] Frame 0
interface fsplayer.api.ISlideInfo
{
}
Symbol 88 MovieClip [__Packages.fsplayer.api.IAnimationSteps] Frame 0
interface fsplayer.api.IAnimationSteps
{
}
Symbol 89 MovieClip [__Packages.fsplayer.api.IAnimationStep] Frame 0
interface fsplayer.api.IAnimationStep
{
}
Symbol 90 MovieClip [__Packages.fsplayer.api.ISlideResources] Frame 0
interface fsplayer.api.ISlideResources
{
}
Symbol 91 MovieClip [__Packages.fsplayer.api.IPresenterVideo] Frame 0
interface fsplayer.api.IPresenterVideo
{
}
Symbol 92 MovieClip [__Packages.fsplayer.api.ISlideListener] Frame 0
interface fsplayer.api.ISlideListener
{
}
Symbol 93 MovieClip [__Packages.fsplayer.api.IWebObjectsCollection] Frame 0
interface fsplayer.api.IWebObjectsCollection
{
}
Symbol 94 MovieClip [__Packages.fsplayer.api.IWebObject] Frame 0
interface fsplayer.api.IWebObject
{
}
Symbol 95 MovieClip [__Packages.fsplayer.api.IThumbnailsCollection] Frame 0
interface fsplayer.api.IThumbnailsCollection
{
}
Symbol 96 MovieClip [__Packages.fsplayer.api.ISlideThumbnail] Frame 0
interface fsplayer.api.ISlideThumbnail
{
}
Symbol 97 MovieClip [__Packages.fsplayer.api.ISlideThumbnailLoadingListener] Frame 0
interface fsplayer.api.ISlideThumbnailLoadingListener
{
}
Symbol 98 MovieClip [__Packages.fsplayer.api.IPresenterInfo] Frame 0
interface fsplayer.api.IPresenterInfo
{
}
Symbol 99 MovieClip [__Packages.fsplayer.api.IPresenterPhoto] Frame 0
interface fsplayer.api.IPresenterPhoto
{
}
Symbol 100 MovieClip [__Packages.fsplayer.api.IPresenterPhotoLoadingListener] Frame 0
interface fsplayer.api.IPresenterPhotoLoadingListener
{
}
Symbol 101 MovieClip [__Packages.fsplayer.api.ICompanyInfo] Frame 0
interface fsplayer.api.ICompanyInfo
{
}
Symbol 102 MovieClip [__Packages.fsplayer.api.ICompanyLogo] Frame 0
interface fsplayer.api.ICompanyLogo
{
}
Symbol 103 MovieClip [__Packages.fsplayer.api.ICompanyLogoLoadingListener] Frame 0
interface fsplayer.api.ICompanyLogoLoadingListener
{
}
Symbol 104 MovieClip [__Packages.fsplayer.api.INarrationInfo] Frame 0
interface fsplayer.api.INarrationInfo
{
}
Symbol 105 MovieClip [__Packages.fsplayer.api.IReferencesCollection] Frame 0
interface fsplayer.api.IReferencesCollection
{
}
Symbol 106 MovieClip [__Packages.fsplayer.api.IReferenceInfo] Frame 0
interface fsplayer.api.IReferenceInfo
{
}
Symbol 107 MovieClip [__Packages.fsplayer.api.IPresentersCollection] Frame 0
interface fsplayer.api.IPresentersCollection
{
}
Symbol 108 MovieClip [__Packages.fsplayer.api.IPresentationListener] Frame 0
interface fsplayer.api.IPresentationListener
{
}
Symbol 109 MovieClip [__Packages.fsplayer.ui.skins.ISkin] Frame 0
interface fsplayer.ui.skins.ISkin
{
}
Symbol 110 MovieClip [__Packages.fsplayer.ui.skins.ISlideShowWindow] Frame 0
interface fsplayer.ui.skins.ISlideShowWindow
{
}
Symbol 111 MovieClip [__Packages.fsplayer.ui.skins.ISkinListener] Frame 0
interface fsplayer.ui.skins.ISkinListener
{
}
Symbol 112 MovieClip [__Packages.fsplayer.api.IKeyboardSettings] Frame 0
interface fsplayer.api.IKeyboardSettings
{
}
Symbol 113 MovieClip [__Packages.fsplayer.api.IPlaybackAction] Frame 0
interface fsplayer.api.IPlaybackAction
{
}
Symbol 114 MovieClip [__Packages.fsplayer.api.IPlayerEx] Frame 0
interface fsplayer.api.IPlayerEx extends fsplayer.api.IPlayer
{
}
Symbol 115 MovieClip [__Packages.fsplayer.api.IPlayerCore] Frame 0
interface fsplayer.api.IPlayerCore
{
}
Symbol 116 MovieClip [__Packages.fsplayer.api.video.IVideoPlayer] Frame 0
interface fsplayer.api.video.IVideoPlayer
{
}
Symbol 117 MovieClip [__Packages.fsplayer.api.video.IVideoPlayerListener] Frame 0
interface fsplayer.api.video.IVideoPlayerListener
{
}
Symbol 118 MovieClip [__Packages.fsplayer.api.core.IHyperlinkManager] Frame 0
interface fsplayer.api.core.IHyperlinkManager
{
}
Symbol 119 MovieClip [__Packages.fsplayer.api.core.ITooltipEventListener] Frame 0
interface fsplayer.api.core.ITooltipEventListener
{
}
Symbol 120 MovieClip [__Packages.fsplayer.ui.skins.asset.ISkinAssetLoadingListener] Frame 0
interface fsplayer.ui.skins.asset.ISkinAssetLoadingListener
{
}
Symbol 121 MovieClip [__Packages.fsplayer.ui.skins.asset.ISkinAsset] Frame 0
interface fsplayer.ui.skins.asset.ISkinAsset
{
}
Symbol 122 MovieClip [__Packages.fsplayer.core.IPlayerEnvironment] Frame 0
interface fsplayer.core.IPlayerEnvironment
{
}
Symbol 123 MovieClip [__Packages.fsplayer.core.IPlayerCore] Frame 0
interface fsplayer.core.IPlayerCore extends fsplayer.api.IPlayerCore
{
}
Symbol 124 MovieClip [__Packages.fsplayer.api.core.video.IVideoClip] Frame 0
interface fsplayer.api.core.video.IVideoClip
{
}
Symbol 125 MovieClip [__Packages.fsplayer.api.core.video.IVideoClipListener] Frame 0
interface fsplayer.api.core.video.IVideoClipListener
{
}
Symbol 126 MovieClip [__Packages.fsplayer.res.video.IVideoClipEx] Frame 0
interface fsplayer.res.video.IVideoClipEx extends fsplayer.api.core.video.IVideoClip
{
}
Symbol 127 MovieClip [__Packages.fsplayer.res.video.skin.IVideoSkin] Frame 0
interface fsplayer.res.video.skin.IVideoSkin
{
}
Symbol 128 MovieClip [__Packages.quizmaker.api.IQuizApi] Frame 0
interface quizmaker.api.IQuizApi
{
}
Symbol 129 MovieClip [__Packages.quizmaker.api.ISlidesCollection] Frame 0
interface quizmaker.api.ISlidesCollection
{
}
Symbol 130 MovieClip [__Packages.quizmaker.api.ISlide] Frame 0
interface quizmaker.api.ISlide
{
}
Symbol 131 MovieClip [__Packages.quizmaker.core.api.text.ITextRange] Frame 0
interface quizmaker.core.api.text.ITextRange
{
}
Symbol 132 MovieClip [__Packages.quizmaker.core.api.ISlideResources] Frame 0
interface quizmaker.core.api.ISlideResources
{
}
Symbol 133 MovieClip [__Packages.quizmaker.api.ISettings] Frame 0
interface quizmaker.api.ISettings
{
}
Symbol 134 MovieClip [__Packages.quizmaker.api.IUserInfo] Frame 0
interface quizmaker.api.IUserInfo
{
}
Symbol 135 MovieClip [__Packages.quizmaker.api.IFontManager] Frame 0
interface quizmaker.api.IFontManager
{
}
Symbol 136 MovieClip [__Packages.quizmaker.api.IMessagesManager] Frame 0
interface quizmaker.api.IMessagesManager
{
}
Symbol 137 MovieClip [__Packages.quizmaker.api.IResultsInfo] Frame 0
interface quizmaker.api.IResultsInfo
{
}
Symbol 138 MovieClip [__Packages.quizmaker.api.IResultScore] Frame 0
interface quizmaker.api.IResultScore
{
}
Symbol 139 MovieClip [__Packages.quizmaker.api.ISkin] Frame 0
interface quizmaker.api.ISkin
{
}
Symbol 140 MovieClip [__Packages.quizmaker.api.IQuestion] Frame 0
interface quizmaker.api.IQuestion extends quizmaker.api.ISlide
{
}
Symbol 141 MovieClip [__Packages.quizmaker.api.IQuizApiListener] Frame 0
interface quizmaker.api.IQuizApiListener
{
}
Symbol 142 MovieClip [__Packages.quizmaker.api.IImageAssetLoadListener] Frame 0
interface quizmaker.api.IImageAssetLoadListener
{
}
Symbol 143 MovieClip [__Packages.quizmaker.api.IVideoAssetLoadListener] Frame 0
interface quizmaker.api.IVideoAssetLoadListener
{
}
Symbol 144 MovieClip [__Packages.quizmaker.api.ISoundAssetLoadListener] Frame 0
interface quizmaker.api.ISoundAssetLoadListener
{
}
Symbol 145 MovieClip [__Packages.quizmaker.api.IFlashAssetLoadListener] Frame 0
interface quizmaker.api.IFlashAssetLoadListener
{
}
Symbol 146 MovieClip [__Packages.fsplayer.res.video.IStreamingVideo] Frame 0
interface fsplayer.res.video.IStreamingVideo
{
}
Symbol 147 MovieClip [__Packages.fsplayer.core.playback.IPlaybackSettings] Frame 0
interface fsplayer.core.playback.IPlaybackSettings
{
}
Symbol 148 MovieClip [__Packages.fsplayer.core.playback.video.IPresenterVideoPlayerInfo] Frame 0
interface fsplayer.core.playback.video.IPresenterVideoPlayerInfo
{
}
Symbol 149 MovieClip [__Packages.fsplayer.res.video.IPresenterVideoEx] Frame 0
interface fsplayer.res.video.IPresenterVideoEx extends fsplayer.api.IPresenterVideo
{
}
Symbol 150 MovieClip [__Packages.fsplayer.ui.skins.IPresenterVideoWindow] Frame 0
interface fsplayer.ui.skins.IPresenterVideoWindow
{
}
Symbol 151 MovieClip [__Packages.fsplayer.api.IPresenterVideoController] Frame 0
interface fsplayer.api.IPresenterVideoController
{
}
Symbol 152 MovieClip [__Packages.fsplayer.api.IPresenterVideoListener] Frame 0
interface fsplayer.api.IPresenterVideoListener
{
}
Symbol 153 MovieClip [__Packages.fsplayer.core.CPlayerImpl] Frame 0
class fsplayer.core.CPlayerImpl implements fsplayer.api.IPlayerEx, fsplayer.ui.skins.asset.ISkinAssetLoadingListener, fsplayer.core.IPlayerEnvironment, fsplayer.ui.skins.ISkinListener, fsplayer.core.IPlayerCore, fsplayer.core.playback.IPlaybackSettings, fsplayer.core.playback.video.IPresenterVideoPlayerInfo, fsplayer.api.IPlaybackListener
{
var m_listeners, m_loadingControllersFactory, m_playerTarget, m_soundAssetsTarget, m_skinAssetTarget, m_userData, m_tooltipManager, m_keyboardSettings, m_presentationInfo, m_playbackController, m_restrictedPlaybackController, m_skin, m_presenterVideoWindow, m_hyperlinkManager, m_presentationNode, m_stepAdvancePause, m_settings, m_presentation, m_webObjectsController, m_externalPresenterVideoPlayer, m_videoNarrationController, m_audioNarrationController;
function CPlayerImpl (loadingControllersFactory, playerTarget, userData) {
m_listeners = new Array();
m_loadingControllersFactory = loadingControllersFactory;
m_playerTarget = playerTarget;
m_soundAssetsTarget = playerTarget.createEmptyMovieClip("soundAssets", playerTarget.getNextHighestDepth());
m_skinAssetTarget = playerTarget.createEmptyMovieClip("skinAsset", playerTarget.getNextHighestDepth());
m_userData = userData;
m_tooltipManager = new main.CTooltipManager();
}
function getKeyboardSettings() {
return(m_keyboardSettings);
}
function getPresentationInfo() {
return(m_presentationInfo);
}
function getPlaybackController() {
return(m_playbackController);
}
function getRestrictedPlaybackController() {
return(m_restrictedPlaybackController);
}
function getSoundController() {
return(m_playbackController.getMediaPlaybackController());
}
function getPlayerCore() {
return(this);
}
function getPlayerCoreInternal() {
return(this);
}
function onSkinAssetLoadInit(skinAsset) {
var _local2 = skinAsset.createInstance("skin");
_local2.setListener(this);
}
function onSkinInit(skin) {
m_skin = skin;
var _local2 = fsplayer.ui.skins.ISkinEx(skin);
if (_local2 && (_local2.hasPresenterVideoWindow())) {
m_presenterVideoWindow = _local2.getPresenterVideoWindow();
}
tryToStartPlayer();
}
function getSoundAssetsTarget() {
return(m_soundAssetsTarget);
}
function getSlideAssetsTarget() {
var _local2 = m_skin.getSlideShowWindow();
return(_local2.getTarget());
}
function loadSkinAsset(source) {
var _local2 = m_loadingControllersFactory.createSkinAssetLoader();
var _local3 = new fsplayer.ui.skins.asset.CSkinAssetImpl(_local2, m_skinAssetTarget, source, this);
}
function gotoSlide(slideIndex) {
m_hyperlinkManager.gotoSlide(slideIndex);
}
function gotoLastViewedSlide() {
m_hyperlinkManager.gotoLastViewedSlide();
}
function gotoFirstSlide() {
m_hyperlinkManager.gotoFirstSlide();
}
function gotoLastSlide() {
m_hyperlinkManager.gotoLastSlide();
}
function gotoNextSlide() {
m_hyperlinkManager.gotoNextSlide();
}
function gotoPreviousSlide() {
m_hyperlinkManager.gotoPreviousSlide();
}
function getURL(url, target) {
m_hyperlinkManager.getURL(url, target);
}
function endShow() {
m_hyperlinkManager.endShow();
}
function registerVideoClip(slideIndex, videoClip, videoId, looping) {
m_playbackController.registerVideoClip(slideIndex, videoClip, videoId, looping);
}
function registerStreamingVideo(slideIndex, video) {
m_playbackController.registerStreamingVideo(slideIndex, video);
}
function setPesentationNode(presentationNode) {
m_presentationNode = presentationNode;
var _local2 = getSettings().playback.stepAdvance.pause;
m_stepAdvancePause = parseFloat(_local2);
if (((_local2 == "") || (_local2 == null)) || (_local2 == undefined)) {
m_stepAdvancePause = undefined;
}
tryToStartPlayer();
}
function isReadyForInitialization() {
return((m_presentationNode != undefined) && (m_skin != undefined));
}
function isInitialized() {
return(m_initialized);
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function tryToStartPlayer() {
if (isReadyForInitialization()) {
notifyPreInit();
createPresentation();
createPlaybackController();
initializeSkin();
start((m_settings.playback.autoStart == undefined) || (m_settings.playback.autoStart == "1"));
m_initialized = true;
notifyInit();
}
}
function notifyPreInit() {
var _local4 = m_listeners.slice();
var _local2 = _local4.length - 1;
while (_local2 >= 0) {
var _local3 = fsplayer.api.IPlayerListenerEx(_local4[_local2]);
if (_local3) {
_local3.onPlayerPreInit(this);
}
_local2--;
}
}
function notifyInit() {
var _local4 = m_listeners.slice();
var _local2 = _local4.length - 1;
while (_local2 >= 0) {
var _local3 = _local4[_local2];
_local3.onPlayerInit(this);
_local2--;
}
}
function createPresentation() {
var _local2 = new fsplayer.res.CPresentation(m_presentationNode, this, this, m_userData);
m_presentation = _local2;
m_presentationInfo = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createPresentationInfo(_local2, m_presentationNode, m_loadingControllersFactory);
m_keyboardSettings = new fsplayer.core.settings.CKeyboardSettings(fsplayer.util.CXMLUtils.findFirstChildNode(m_presentationNode, "actions"), getSettings().navigation.keyboard.enabled);
}
function createPlaybackController() {
var _local2 = m_loadingControllersFactory.createSlideLoadingController(m_presentation);
var _local4 = m_presentation.getSoundAssets();
var _local3 = m_loadingControllersFactory.createPresentationBgSoundAssetLoadingController(_local4);
m_webObjectsController = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createWebObjectController(this, m_presentationInfo.getWebObjects());
m_playbackController = new fsplayer.core.playback.presentation.CPlaybackController(m_presentation, _local2, _local3, this);
m_playbackController.addListener(this);
if (m_webObjectsController) {
m_playbackController.addListener(m_webObjectsController);
}
var _local5 = m_presentation.getSlides();
m_restrictedPlaybackController = new fsplayer.core.playback.presentation.CRestrictedPlaybackController(m_playbackController, _local5);
m_hyperlinkManager = new fsplayer.core.CHyperlinkManager(m_playbackController);
createNarrationPlaybackController();
}
function createNarrationPlaybackController() {
var _local5 = m_presentation.getSlides();
var _local3 = m_presentation.getNarration();
var _local2 = _local3.getVideoTracks();
if ((_local2.getCount() > 0) && ((m_presenterVideoWindow != null) || (m_externalPresenterVideoPlayer != null))) {
var _local12 = m_settings.playback.syncWithVideoNarration == "1";
var _local6 = ((m_presenterVideoWindow != null) ? (new fsplayer.core.playback.video.CPresenterVideoPlayer(this)) : null);
var _local10 = new fsplayer.core.playback.narration.CNarrationControllerCore(_local2, m_playbackController, _local5);
m_videoNarrationController = new fsplayer.core.playback.narration.CVideoNarrationController(_local10, _local6, m_externalPresenterVideoPlayer, _local12);
}
var _local4 = _local3.getAudioTracks();
if (_local4.getCount() > 0) {
var _local11 = true;
var _local8 = new fsplayer.core.playback.narration.CNarrationControllerCore(_local4, m_playbackController, _local5);
var _local9 = m_presentation.getSoundAssets();
m_audioNarrationController = new fsplayer.core.playback.narration.CAudioNarrationController(_local8, _local9, _local11);
}
var _local7 = new fsplayer.core.playback.narration.CNarrationSynchronizer(fsplayer.core.playback.narration.CVideoNarrationController(m_videoNarrationController), fsplayer.core.playback.narration.CAudioNarrationController(m_audioNarrationController));
m_playbackController.setNarrationSynchronizer(_local7);
if ((m_presenterVideoWindow != null) && (m_videoNarrationController != null)) {
m_presenterVideoWindow.initialize(m_videoNarrationController);
}
}
function initializeSkin() {
m_skin.initialize(this);
}
function start(autoStart) {
m_playbackController.gotoFirstSlide(autoStart, false);
}
function getSettings() {
if (m_settings == undefined) {
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(m_presentationNode, "settings");
m_settings = fsplayer.util.CXMLUtils.xmlToObject(_local2);
}
return(m_settings);
}
function getAutoStepAdvance() {
return(getSettings().playback.stepAdvance.auto == "1");
}
function getStepAdvancePause() {
return(m_stepAdvancePause);
}
function setStepAdvancePause(pause) {
m_stepAdvancePause = pause;
}
function getSkin() {
return(m_skin);
}
function registerQuiz(slideIndex, quiz) {
m_playbackController.registerQuiz(slideIndex, quiz);
}
function startNamedSlideShow(slideShowName, showAndReturn) {
m_hyperlinkManager.startNamedSlideShow(slideShowName, showAndReturn);
}
function setExternalPresenterVideoPlayer(player) {
m_externalPresenterVideoPlayer = player;
if (m_videoNarrationController != null) {
m_videoNarrationController.setExternalPresenterVideoPlayer(player);
}
}
function getHyperlinkManager() {
return(m_hyperlinkManager);
}
function setHyperlinkManager(hyperlinkManager) {
m_hyperlinkManager = hyperlinkManager;
}
function findPresenterVideo(src, trimLeft, trimRight, volume) {
return(m_playbackController.findPresenterVideo(src, trimLeft, trimRight, volume));
}
function getPresenterVideoWindow() {
return(m_presenterVideoWindow);
}
function processTriggerCommand(mediaItemId, cmdType, params) {
m_playbackController.getMediaPlaybackController().processTriggerCommand(mediaItemId, cmdType, params);
}
function registerMediaBookmark(slideIndex, mediaItemId, bmkIndex, handlerFunc) {
m_playbackController.getMediaPlaybackController().registerMediaBookmark(slideIndex, mediaItemId, bmkIndex, handlerFunc);
}
function showTooltip(id, text) {
m_tooltipManager.showTooltip(id, text);
}
function hideTooltip(id) {
m_tooltipManager.hideTooltip(id);
}
function setTooltipEventListener(listener) {
m_tooltipManager.setTooltipEventListener(listener);
}
function onPausePlayback() {
}
function onStartPlayback() {
}
function onAnimationStepChanged(stepIndex) {
}
function onSlidePositionChanged(position) {
}
function onSlideTransitionPhaseChanged(phase) {
}
function onCurrentSlideIndexChanged(slideIndex) {
m_tooltipManager.hideTooltip();
}
function onSlideLoadingComplete(slideIndex) {
}
function onPresentationPlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function onPlaybackSuspended() {
}
function onPlaybackResumed() {
}
function onHandleCloseRequest() {
}
var m_initialized = false;
}
Symbol 154 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionEffectEnvironment] Frame 0
interface fsplayer.core.playback.transitions.ITransitionEffectEnvironment
{
}
Symbol 155 MovieClip [__Packages.fsplayer.res.IPresentation] Frame 0
interface fsplayer.res.IPresentation extends fsplayer.core.playback.transitions.ITransitionEffectEnvironment
{
}
Symbol 156 MovieClip [__Packages.fsplayer.res.slides.ISlides] Frame 0
interface fsplayer.res.slides.ISlides
{
}
Symbol 157 MovieClip [__Packages.fsplayer.res.slides.ISlide] Frame 0
interface fsplayer.res.slides.ISlide
{
}
Symbol 158 MovieClip [__Packages.fsplayer.core.loading.ISlideLoadingListener] Frame 0
interface fsplayer.core.loading.ISlideLoadingListener
{
}
Symbol 159 MovieClip [__Packages.fsplayer.res.slides.ISlideTransition] Frame 0
interface fsplayer.res.slides.ISlideTransition
{
}
Symbol 160 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundEx
{
}
Symbol 161 MovieClip [__Packages.fsplayer.res.sounds.ISoundInstance] Frame 0
interface fsplayer.res.sounds.ISoundInstance
{
}
Symbol 162 MovieClip [__Packages.fsplayer.res.sounds.ISoundInstanceListener] Frame 0
interface fsplayer.res.sounds.ISoundInstanceListener
{
}
Symbol 163 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundLoadingListenerEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundLoadingListenerEx
{
}
Symbol 164 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundListenerEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundListenerEx
{
}
Symbol 165 MovieClip [__Packages.fsplayer.api.core.IMediaBookmarks] Frame 0
interface fsplayer.api.core.IMediaBookmarks
{
}
Symbol 166 MovieClip [__Packages.fsplayer.res.CMediaBookmarks] Frame 0
class fsplayer.res.CMediaBookmarks implements fsplayer.api.core.IMediaBookmarks
{
var m_bookmarks;
function CMediaBookmarks (bookmarksNode) {
m_bookmarks = new Array();
var _local5 = bookmarksNode.childNodes.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local4 = bookmarksNode.childNodes[_local3];
var _local2 = new Object();
_local2.name = _local4.attributes.name;
_local2.time = parseFloat(_local4.attributes.time);
m_bookmarks.push(_local2);
_local3++;
}
}
function getCount() {
return(m_bookmarks.length);
}
function getBookmarkTime(index) {
if (index >= getCount()) {
return(undefined);
}
return(m_bookmarks[index].time);
}
function getBookmarkName(index) {
if (index >= getCount()) {
return(undefined);
}
return(m_bookmarks[index].name);
}
}
Symbol 167 MovieClip [__Packages.fsplayer.core.playback.transitions.ISlideTransitionController] Frame 0
interface fsplayer.core.playback.transitions.ISlideTransitionController
{
}
Symbol 168 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionEffect] Frame 0
interface fsplayer.core.playback.transitions.ITransitionEffect
{
}
Symbol 169 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackControllerEx] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackControllerEx
{
}
Symbol 170 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackListenerEx] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackListenerEx
{
}
Symbol 171 MovieClip [__Packages.fsplayer.api.core.video.ISlideVideoPlaybackController] Frame 0
interface fsplayer.api.core.video.ISlideVideoPlaybackController
{
}
Symbol 172 MovieClip [__Packages.fsplayer.api.core.video.IVideoObject] Frame 0
interface fsplayer.api.core.video.IVideoObject
{
}
Symbol 173 MovieClip [__Packages.fsplayer.api.core.video.IVideoAction] Frame 0
interface fsplayer.api.core.video.IVideoAction
{
}
Symbol 174 MovieClip [__Packages.fsplayer.core.playback.video.ISlideVideoPlaybackControllerEx] Frame 0
interface fsplayer.core.playback.video.ISlideVideoPlaybackControllerEx extends fsplayer.api.core.video.ISlideVideoPlaybackController
{
}
Symbol 175 MovieClip [__Packages.fsplayer.api.core.video.ISlideVideoPlaybackCore] Frame 0
interface fsplayer.api.core.video.ISlideVideoPlaybackCore
{
}
Symbol 176 MovieClip [__Packages.fsplayer.api.core.video.IVideoCommands] Frame 0
interface fsplayer.api.core.video.IVideoCommands
{
}
Symbol 177 MovieClip [__Packages.fsplayer.api.core.video.IVideoCommand] Frame 0
interface fsplayer.api.core.video.IVideoCommand
{
}
Symbol 178 MovieClip [__Packages.fsplayer.api.core.video.IVideoObjects] Frame 0
interface fsplayer.api.core.video.IVideoObjects
{
}
Symbol 179 MovieClip [__Packages.fsplayer.res.sounds.ISoundCommandsEx] Frame 0
interface fsplayer.res.sounds.ISoundCommandsEx
{
}
Symbol 180 MovieClip [__Packages.fsplayer.core.playback.sounds.ISoundPlaybackCore] Frame 0
interface fsplayer.core.playback.sounds.ISoundPlaybackCore
{
}
Symbol 181 MovieClip [__Packages.fsplayer.res.sounds.ISoundEx] Frame 0
interface fsplayer.res.sounds.ISoundEx
{
}
Symbol 182 MovieClip [__Packages.fsplayer.core.playback.sounds.IEventSoundPlaybackCore] Frame 0
interface fsplayer.core.playback.sounds.IEventSoundPlaybackCore extends fsplayer.core.playback.sounds.ISoundPlaybackCore
{
}
Symbol 183 MovieClip [__Packages.fsplayer.res.sounds.ISlideEventSoundEx] Frame 0
interface fsplayer.res.sounds.ISlideEventSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 184 MovieClip [__Packages.fsplayer.res.sounds.ISlideEventSoundsEx] Frame 0
interface fsplayer.res.sounds.ISlideEventSoundsEx
{
}
Symbol 185 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundsEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundsEx
{
}
Symbol 186 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundsLoadingListenerEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundsLoadingListenerEx
{
}
Symbol 187 MovieClip [__Packages.fsplayer.res.slides.IAnimationStepsEx] Frame 0
interface fsplayer.res.slides.IAnimationStepsEx extends fsplayer.api.IAnimationSteps
{
}
Symbol 188 MovieClip [__Packages.fsplayer.res.slides.IAnimationStepEx] Frame 0
interface fsplayer.res.slides.IAnimationStepEx extends fsplayer.api.IAnimationStep
{
}
Symbol 189 MovieClip [__Packages.fsplayer.res.slides.branching.IQuizBranching] Frame 0
interface fsplayer.res.slides.branching.IQuizBranching
{
}
Symbol 190 MovieClip [__Packages.fsplayer.res.slides.branching.actions.IBranchingAction] Frame 0
interface fsplayer.res.slides.branching.actions.IBranchingAction
{
}
Symbol 191 MovieClip [__Packages.fsplayer.res.sounds.ISoundAssets] Frame 0
interface fsplayer.res.sounds.ISoundAssets
{
}
Symbol 192 MovieClip [__Packages.fsplayer.res.sounds.ISoundAsset] Frame 0
interface fsplayer.res.sounds.ISoundAsset
{
}
Symbol 193 MovieClip [__Packages.fsplayer.res.sounds.ISoundAssetLoadingListener] Frame 0
interface fsplayer.res.sounds.ISoundAssetLoadingListener
{
}
Symbol 194 MovieClip [__Packages.fsplayer.res.INamedSlideShows] Frame 0
interface fsplayer.res.INamedSlideShows
{
}
Symbol 195 MovieClip [__Packages.fsplayer.res.INamedSlideShow] Frame 0
interface fsplayer.res.INamedSlideShow
{
}
Symbol 196 MovieClip [__Packages.fsplayer.res.narration.INarration] Frame 0
interface fsplayer.res.narration.INarration
{
}
Symbol 197 MovieClip [__Packages.fsplayer.res.narration.INarrationTracks] Frame 0
interface fsplayer.res.narration.INarrationTracks
{
}
Symbol 198 MovieClip [__Packages.fsplayer.res.narration.INarrationTrack] Frame 0
interface fsplayer.res.narration.INarrationTrack
{
}
Symbol 199 MovieClip [__Packages.fsplayer.res.narration.ITimestamp] Frame 0
interface fsplayer.res.narration.ITimestamp
{
}
Symbol 200 MovieClip [__Packages.fsplayer.res.narration.IAudioTracks] Frame 0
interface fsplayer.res.narration.IAudioTracks extends fsplayer.res.narration.INarrationTracks
{
}
Symbol 201 MovieClip [__Packages.fsplayer.res.narration.IAudioTrack] Frame 0
interface fsplayer.res.narration.IAudioTrack extends fsplayer.res.narration.INarrationTrack
{
}
Symbol 202 MovieClip [__Packages.fsplayer.res.narration.IVideoTracks] Frame 0
interface fsplayer.res.narration.IVideoTracks extends fsplayer.res.narration.INarrationTracks
{
}
Symbol 203 MovieClip [__Packages.fsplayer.res.narration.IVideoTrack] Frame 0
interface fsplayer.res.narration.IVideoTrack extends fsplayer.res.narration.INarrationTrack
{
}
Symbol 204 MovieClip [__Packages.fsplayer.res.CPresentation] Frame 0
class fsplayer.res.CPresentation implements fsplayer.res.IPresentation
{
var m_presentationNode, m_environment, m_playbackSettings, m_slideWidth, m_slideHeight, m_frameRate, m_looped, m_startingSlideShowName, m_pptVersion, m_userData, m_duration, m_durationWithTransitions, m_slides, m_soundAssets, m_visibleDuration, m_visibleDurationWithTransitions, m_namedSlideShows, m_narration;
function CPresentation (presentationNode, environment, playbackSettings, userData) {
m_presentationNode = presentationNode;
m_environment = environment;
m_playbackSettings = playbackSettings;
m_slideWidth = parseInt(presentationNode.attributes.width);
m_slideHeight = parseInt(presentationNode.attributes.height);
m_frameRate = parseInt(presentationNode.attributes.frameRate);
m_looped = presentationNode.attributes.looping == "1";
m_startingSlideShowName = presentationNode.attributes.startingSlideShow;
m_pptVersion = presentationNode.attributes.pptVersion;
m_userData = userData;
}
function getDuration(withTransitions) {
if ((m_duration == undefined) || (m_durationWithTransitions == undefined)) {
var _local2 = getSlides();
var _local3 = _local2.getCount();
m_duration = _local2.getSlide(_local3 - 1).getEndTime();
m_durationWithTransitions = _local2.getSlide(_local3 - 1).getEndTime(true);
}
return((withTransitions ? (m_durationWithTransitions) : (m_duration)));
}
function getSlideWidth() {
return(m_slideWidth);
}
function getSlideHeight() {
return(m_slideHeight);
}
function getSlidesCount() {
return(m_slides.getCount());
}
function isLooped() {
return(m_looped);
}
function getSoundAssets() {
if (m_soundAssets == undefined) {
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(m_presentationNode, "soundAssets");
m_soundAssets = new fsplayer.res.sounds.CSoundAssets(_local2, m_environment.getSoundAssetsTarget(), m_environment.getSlideAssetsTarget());
}
return(m_soundAssets);
}
function getSlides() {
if (m_slides == undefined) {
var _local3 = fsplayer.util.CXMLUtils.findFirstChildNode(m_presentationNode, "slides");
var _local4 = m_environment.getSlideAssetsTarget();
var _local2 = m_environment.getPlayerCoreInternal();
m_slides = new fsplayer.res.slides.CSlides(_local3, _local4, getSoundAssets(), this, m_frameRate, _local2, m_playbackSettings, m_userData);
}
return(m_slides);
}
function getBackgroundSoundNode() {
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(m_presentationNode, "backgroundSound");
return(_local2);
}
function getVisibleDuration(withTransitions) {
if ((m_visibleDuration == undefined) || (m_visibleDurationWithTransitions == undefined)) {
var _local3 = getSlides();
var _local2 = _local3.getVisibleCount();
m_visibleDuration = ((_local2 > 0) ? (_local3.getVisibleSlide(_local2 - 1).getVisibleEndTime()) : 0);
m_visibleDurationWithTransitions = ((_local2 > 0) ? (_local3.getVisibleSlide(_local2 - 1).getVisibleEndTime(true)) : 0);
}
return((withTransitions ? (m_visibleDurationWithTransitions) : (m_visibleDuration)));
}
function getNamedSlideShows() {
if (m_namedSlideShows == undefined) {
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(m_presentationNode, "slideShows");
m_namedSlideShows = new fsplayer.res.CNamedSlideShows(_local2);
}
return(m_namedSlideShows);
}
function getStartingSlideShowName() {
if (m_startingSlideShowName === "") {
return(undefined);
}
return(m_startingSlideShowName);
}
function getPptVersion() {
return(m_pptVersion);
}
function getNarration() {
if (m_narration == null) {
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(m_presentationNode, "narration");
if (_local2 != null) {
var _local5 = new fsplayer.res.narration.CNarrationParser();
m_narration = _local5.parseNarration(_local2);
} else {
var _local4 = new fsplayer.res.narration.CVideoTracks();
var _local3 = new fsplayer.res.narration.CAudioTracks();
m_narration = new fsplayer.res.narration.CNarration(_local4, _local3);
}
}
return(m_narration);
}
}
Symbol 205 MovieClip [__Packages.fsplayer.core.CUserData] Frame 0
class fsplayer.core.CUserData
{
var m_name, m_email, m_id;
function CUserData (name, email, id) {
m_name = name;
m_email = email;
m_id = id;
}
function get name() {
return(m_name);
}
function get email() {
return(m_email);
}
function get id() {
return(m_id);
}
}
Symbol 206 MovieClip [__Packages.fsplayer.util.CXMLUtils] Frame 0
class fsplayer.util.CXMLUtils
{
function CXMLUtils () {
}
static function findFirstChildNode(parentNode, nodeName) {
var _local3 = parentNode.childNodes.length;
var _local1 = 0;
while (_local1 < _local3) {
if (parentNode.childNodes[_local1].nodeName == nodeName) {
return(parentNode.childNodes[_local1]);
}
_local1++;
}
return(undefined);
}
static function getInnerText(node) {
var _local3 = node.childNodes.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = node.childNodes[_local1];
if (_local2.nodeType == 3) {
return(_local2.nodeValue);
}
_local1++;
}
return("");
}
static function xmlToObject(node) {
var _local3 = new Object();
var _local4 = false;
for (var _local6 in node.attributes) {
_local3[_local6] = node.attributes[_local6];
_local4 = true;
}
if ((!_local4) && (node.childNodes.length == 0)) {
return("");
}
var _local1;
for (var _local5 in node.childNodes) {
_local1 = node.childNodes[_local5];
if (_local1.nodeType == 1) {
_local3[_local1.nodeName] = xmlToObject(_local1);
} else if (_local1.nodeType == 3) {
_local3 = _local1.nodeValue;
}
}
return(_local3);
}
static function objectToXML(obj, nodeName) {
var _local1 = new XML();
var _local2 = _local1.createElement(nodeName);
_local1.appendChild(_local2);
objectToXMLImpl(obj, _local2, _local1);
return(_local1);
}
static function objectToXMLImpl(obj, parent, doc) {
switch (typeof(obj)) {
case "object" :
for (var _local5 in obj) {
var _local1 = doc.createElement(_local5);
parent.appendChild(_local1);
objectToXMLImpl(obj[_local5], _local1, doc);
}
return(undefined);
case "boolean" :
var _local6 = doc.createTextNode(String(Number(obj)));
parent.appendChild(_local6);
return(undefined);
}
var _local7 = doc.createTextNode(String(obj));
parent.appendChild(_local7);
return(undefined);
}
}
Symbol 207 MovieClip [__Packages.fsplayer.res.sounds.CSoundAssets] Frame 0
class fsplayer.res.sounds.CSoundAssets implements fsplayer.res.sounds.ISoundAssets, fsplayer.res.sounds.ISoundAssetLoadingListener
{
var m_target, m_assets, m_loadingAssets, m_slidesTarget;
function CSoundAssets (soundAssetsNode, target, slidesTarget) {
m_target = target;
m_assets = new Object();
m_loadingAssets = new Object();
var _local6 = soundAssetsNode.childNodes.length;
var _local5 = new fsplayer.res.sounds.CSoundAssetLoader(new fsplayer.res.assets.CInternalAssetLoader());
var _local7 = new fsplayer.res.sounds.CSoundAssetLoader(new fsplayer.res.assets.CExternalAssetLoader());
var _local4 = 0;
while (_local4 < _local6) {
var _local3 = soundAssetsNode.childNodes[_local4];
var _local2 = new Object();
_local2.src = _local3.attributes.src;
_local2.embedded = _local3.attributes.embedded == "1";
_local2.size = Number(_local3.attributes.size);
_local2.duration = Number(_local3.attributes.duration);
_local2.loader = (_local2.embedded ? (_local5) : (_local7));
_local2.listeners = new Array();
m_assets[_local3.attributes.id] = _local2;
_local4++;
}
}
function setVolume(volume) {
var _local3 = new Sound(m_target);
_local3.setVolume(volume * 100);
var _local2 = new Sound(m_slidesTarget);
_local2.setVolume(volume * 100);
}
function loadAsset(id, listener) {
var _local4 = getAsset(id);
if (_local4 == undefined) {
addListener(id, listener);
if (!assetIsLoading(id)) {
m_loadingAssets[id] = true;
var _local3 = m_assets[id];
var _local6 = _local3.loader;
var _local5 = m_target.createEmptyMovieClip(id, m_target.getNextHighestDepth());
_local6.loadSoundAsset(_local5, _local3.src, id, _local3.duration, this);
}
} else {
listener.onSoundAssetLoadInit(_local4);
}
}
function assetIsLoaded(id) {
return(getAsset(id) != undefined);
}
function addListener(id, listener) {
m_assets[id].listeners.push(listener);
}
function assetIsLoading(id) {
return(m_loadingAssets[id]);
}
function getAsset(id) {
return(m_assets[id].asset);
}
function setAsset(id, asset) {
m_assets[id].asset = asset;
}
function onSoundAssetLoadInit(soundAsset) {
var _local6 = soundAsset.getId();
m_loadingAssets[_local6] = false;
setAsset(_local6, soundAsset);
var _local4 = m_assets[soundAsset.getId()].listeners;
var _local5 = _local4.length;
var _local2 = 0;
while (_local2 < _local5) {
_local4[_local2].onSoundAssetLoadInit(soundAsset);
_local2++;
}
}
function onSoundAssetLoadProgress(soundAsset, bytesLoaded, bytesTotal) {
var _local3 = m_assets[soundAsset.getId()].listeners;
var _local4 = _local3.length;
var _local2 = 0;
while (_local2 < _local4) {
_local3[_local2].onSoundAssetLoadProgress(soundAsset, bytesLoaded, bytesTotal);
_local2++;
}
}
function assetIsEmbedded(id) {
return(m_assets[id].embedded);
}
function getAssetSize(id) {
return(m_assets[id].size);
}
}
Symbol 208 MovieClip [__Packages.fsplayer.res.sounds.ISoundAssetLoader] Frame 0
interface fsplayer.res.sounds.ISoundAssetLoader
{
}
Symbol 209 MovieClip [__Packages.fsplayer.res.sounds.CSoundAssetLoader] Frame 0
class fsplayer.res.sounds.CSoundAssetLoader implements fsplayer.res.sounds.ISoundAssetLoader
{
var m_assetLoader;
function CSoundAssetLoader (assetLoader) {
m_assetLoader = assetLoader;
}
function loadSoundAsset(target, source, id, duration, listener) {
var _local2 = new fsplayer.res.sounds.CSoundAsset(id, duration);
_local2.load(m_assetLoader, target, source, listener);
return(_local2);
}
}
Symbol 210 MovieClip [__Packages.fsplayer.res.assets.IAssetLoader] Frame 0
interface fsplayer.res.assets.IAssetLoader
{
}
Symbol 211 MovieClip [__Packages.fsplayer.res.assets.IAssetLoadingListener] Frame 0
interface fsplayer.res.assets.IAssetLoadingListener
{
}
Symbol 212 MovieClip [__Packages.fsplayer.res.assets.IAsset] Frame 0
interface fsplayer.res.assets.IAsset
{
}
Symbol 213 MovieClip [__Packages.fsplayer.res.sounds.CSoundAsset] Frame 0
class fsplayer.res.sounds.CSoundAsset implements fsplayer.res.sounds.ISoundAsset
{
var m_id, m_duration, m_asset;
function CSoundAsset (id, duration) {
m_id = id;
m_duration = duration;
}
function createInstance(name, depth) {
return(new fsplayer.res.sounds.CSoundInstance(m_asset, m_duration, name, depth));
}
function load(assetLoader, target, source, listener) {
var _local2 = new fsplayer.res.sounds.CSoundAssetLoadingListenerImpl(this, listener);
assetLoader.loadAsset(target, source, _local2);
}
function setAsset(asset) {
m_asset = asset;
}
function getId() {
return(m_id);
}
}
Symbol 214 MovieClip [__Packages.fsplayer.res.sounds.CSoundInstance] Frame 0
class fsplayer.res.sounds.CSoundInstance implements fsplayer.res.sounds.ISoundInstance
{
var m_target, m_playing, m_defaultDuration, m_currentLoopIndex, m_listener, m_resetPos, m_auxMc;
function CSoundInstance (asset, defaultDuration, name, depth) {
m_target = asset.createInstance(name, depth);
m_playing = false;
m_defaultDuration = defaultDuration;
var thisPtr = this;
m_target.onEnterFrame = function () {
thisPtr.m_initialized = true;
if ((!thisPtr.m_trimRightCorrected) && (!(thisPtr.m_trimRight === undefined))) {
thisPtr.correctTrimRight();
}
if (!(thisPtr.m_volume === undefined)) {
thisPtr.m_target.SoundSetVolume(thisPtr.m_volume);
}
if (thisPtr.m_listener != undefined) {
thisPtr.m_listener.onSoundInstanceInit(thisPtr);
}
this.SoundSetListener(thisPtr);
delete this.onEnterFrame;
};
}
function correctTrimRight() {
m_trimRight = Math.max(0, m_trimRight - ((m_defaultDuration - m_target.SoundGetDuration()) / 1000));
m_trimRightCorrected = true;
}
function onSoundComplete() {
m_loops--;
m_currentLoopIndex++;
if (m_loops > 0) {
m_target.SoundStart(0);
} else {
m_listener.onSoundInstanceComplete(this);
}
}
function start(position, loops) {
if (m_playing) {
stop();
}
m_playing = true;
if (loops == 0) {
loops = 9999;
}
m_loops = loops;
m_currentLoopIndex = 0;
m_target.SoundStart(position + m_trimLeft);
m_ignoreTrimCheckCount = 3;
}
function stop(reset) {
if (m_playing) {
m_playing = false;
m_target.SoundStop();
}
if (reset) {
m_resetPos = m_target.SoundGetPosition();
}
}
function getPosition() {
var _local2 = m_target.SoundGetPosition();
if (m_resetPos) {
if (m_resetPos == _local2) {
return(0);
}
m_resetPos = undefined;
}
return((_local2 * 0.001) - m_trimLeft);
}
function getCurrentLoopIndex() {
return(m_currentLoopIndex);
}
function getDuration() {
return(((m_target.SoundGetDuration() * 0.001) - m_trimLeft) - m_trimRight);
}
function isPlaying() {
return(m_playing);
}
function setListener(listener) {
m_listener = listener;
}
function setVolume(volume) {
m_volume = volume;
m_target.SoundSetVolume(volume);
}
function setTrim(trimLeft, trimRight) {
m_trimLeft = trimLeft;
m_trimRight = trimRight;
m_trimRightCorrected = false;
if (m_initialized) {
correctTrimRight();
}
if (m_trimRight != 0) {
if (m_auxMc == null) {
m_auxMc = m_target.createEmptyMovieClip("auxMc", m_target.getNextHighestDepth());
var thisPtr = this;
m_auxMc.onEnterFrame = function () {
thisPtr.onEnterFrameTrim();
};
}
} else if (m_auxMc != null) {
delete m_auxMc.onEnterFrame;
m_auxMc.onEnterFrame = undefined;
m_auxMc.removeMovieClip();
m_auxMc = null;
}
}
function getTargetMC() {
return(m_target);
}
function onEnterFrameTrim() {
if (m_ignoreTrimCheckCount > 0) {
m_ignoreTrimCheckCount = m_ignoreTrimCheckCount - 1;
return(undefined);
}
if (m_playing && (m_target.SoundGetPosition() >= (m_target.SoundGetDuration() - (m_trimRight * 1000)))) {
stop();
onSoundComplete();
}
}
var m_loops = 0;
var m_trimLeft = 0;
var m_trimRight = 0;
var m_ignoreTrimCheckCount = 0;
var m_volume = undefined;
var m_trimRightCorrected = false;
var m_initialized = false;
}
Symbol 215 MovieClip [__Packages.fsplayer.res.sounds.CSoundAssetLoadingListenerImpl] Frame 0
class fsplayer.res.sounds.CSoundAssetLoadingListenerImpl implements fsplayer.res.assets.IAssetLoadingListener
{
var m_soundAsset, m_listener;
function CSoundAssetLoadingListenerImpl (soundAsset, listener) {
m_soundAsset = soundAsset;
m_listener = listener;
}
function onAssetLoadStart(asset) {
m_soundAsset.setAsset(asset);
}
function onAssetLoadComplete(asset) {
}
function onAssetLoadInit(asset) {
m_listener.onSoundAssetLoadInit(m_soundAsset);
}
function onAssetLoadProgress(asset, bytesLoaded, bytesTotal) {
m_listener.onSoundAssetLoadProgress(m_soundAsset, bytesLoaded, bytesTotal);
}
}
Symbol 216 MovieClip [__Packages.fsplayer.res.assets.CInternalAssetLoader] Frame 0
class fsplayer.res.assets.CInternalAssetLoader implements fsplayer.res.assets.IAssetLoader
{
function CInternalAssetLoader () {
}
function loadAsset(target, src, listener) {
var _local1 = new fsplayer.res.assets.CInternalAsset(target, src);
if (listener) {
listener.onAssetLoadStart(_local1);
listener.onAssetLoadComplete(_local1);
listener.onAssetLoadInit(_local1);
}
return(_local1);
}
}
Symbol 217 MovieClip [__Packages.fsplayer.res.assets.CInternalAsset] Frame 0
class fsplayer.res.assets.CInternalAsset implements fsplayer.res.assets.IAsset
{
var m_target, m_source;
function CInternalAsset (target, source) {
m_target = target;
m_source = source;
}
function createInstance(name, depth) {
if (depth == undefined) {
depth = m_target.getNextHighestDepth();
}
var _local2 = m_target.attachMovie(m_source, name, depth);
return(_local2);
}
function getTarget() {
return(m_target);
}
}
Symbol 218 MovieClip [__Packages.fsplayer.res.assets.CExternalAssetLoader] Frame 0
class fsplayer.res.assets.CExternalAssetLoader implements fsplayer.res.assets.IAssetLoader
{
function CExternalAssetLoader () {
}
function loadAsset(target, src, listener) {
var _local3 = new MovieClipLoader();
var _local4 = fsplayer.util.CFileUtils.PathToAbsolutePath(src, target);
var asset = (new fsplayer.res.assets.CExternalAsset(target));
var _local2 = new Object();
_local2.onLoadStart = function (mc) {
if (listener != undefined) {
listener.onAssetLoadStart(asset);
}
};
_local2.onLoadComplete = function (mc) {
if (listener != undefined) {
listener.onAssetLoadComplete(asset);
}
};
_local2.onLoadInit = function (mc) {
mc.onEnterFrame = function () {
if (listener != undefined) {
listener.onAssetLoadInit(asset);
}
delete this.onEnterFrame;
};
};
_local2.onLoadProgress = function (mc, loadedBytes, totalBytes) {
listener.onAssetLoadProgress(asset, loadedBytes, totalBytes);
};
_local3.addListener(_local2);
_local3.loadClip(_local4, target);
return(asset);
}
}
Symbol 219 MovieClip [__Packages.fsplayer.util.CFileUtils] Frame 0
class fsplayer.util.CFileUtils
{
function CFileUtils () {
}
static function PathToAbsolutePath(path, mc) {
if (((path.substr(0, 7) == "file://") || (path.substr(0, 7) == "http://")) || (path.substr(0, 8) == "https://")) {
return(path);
}
var _local3 = ((mc == undefined) ? _root : (mc))._url;
var _local6 = _local3.indexOf("?");
var _local4 = ((_local6 >= 0) ? (_local3.substr(0, _local6)) : (_local3));
var _local5 = "/";
var _local9 = Math.max(_local4.lastIndexOf("/"), _local4.lastIndexOf("\\"));
var _local7 = _local4.substr(0, _local9);
var _local8 = ((path.charAt(0) != "/") ? ((_local7 + _local5) + path) : (_local5 + path.substr(1)));
return(_local8);
}
}
Symbol 220 MovieClip [__Packages.fsplayer.res.assets.CExternalAsset] Frame 0
class fsplayer.res.assets.CExternalAsset implements fsplayer.res.assets.IAsset
{
var m_target;
function CExternalAsset (target) {
m_target = target;
}
function createInstance(name, depth) {
if (depth == undefined) {
depth = m_target.getNextHighestDepth();
}
var _local2 = m_target.createInstance(name, depth);
return(_local2);
}
function getTarget() {
return(m_target);
}
}
Symbol 221 MovieClip [__Packages.fsplayer.res.slides.CSlides] Frame 0
class fsplayer.res.slides.CSlides implements fsplayer.res.slides.ISlides
{
var m_slidesNode, m_soundAssets, m_transitionEffectEnvironment, m_frameRate, m_playerCore, m_playbackSettings, m_userData, m_slideAssets, m_slides, m_numberOfSlides, m_visibleIndexToIndex, m_navigationSlides, m_lastVisitedSlide;
function CSlides (slidesNode, slideAssetsTarget, soundAssets, environment, frameRate, playerCore, playbackSettings, userData) {
m_slidesNode = slidesNode;
m_soundAssets = soundAssets;
m_transitionEffectEnvironment = environment;
m_frameRate = frameRate;
m_playerCore = playerCore;
m_playbackSettings = playbackSettings;
m_userData = userData;
var _local3 = slidesNode.attributes.embedded == "1";
var _local4 = new fsplayer.res.slides.CSlideAssetLoader((_local3 ? (new fsplayer.res.assets.CInternalAssetLoader()) : (new fsplayer.res.assets.CExternalAssetLoader())), m_playerCore);
m_slideAssets = new fsplayer.res.slides.CSlideAssets(_local4, slideAssetsTarget);
m_slides = new Array();
m_numberOfSlides = slidesNode.childNodes.length;
m_visibleIndexToIndex = new Array();
m_navigationSlides = new Array();
initializeAllSlides();
}
function getSlide(indexRequire) {
if ((indexRequire < 0) || (indexRequire >= m_numberOfSlides)) {
return(undefined);
}
return(m_slides[indexRequire]);
}
function getSlideAssets() {
return(m_slideAssets);
}
function getSlideDepthSorter() {
return(m_slideAssets);
}
function getCount() {
return(m_numberOfSlides);
}
function initializeAllSlides() {
var _local7 = 0;
var _local17 = false;
var _local16 = true;
while (_local7 < m_numberOfSlides) {
var _local3 = ((_local7 > 0) ? (m_slides[_local7 - 1]) : undefined);
var _local8 = (_local3 ? (_local3.getEndTime(_local17)) : 0);
var _local11 = (_local3 ? (_local3.getEndTime(_local16)) : 0);
var _local9 = (_local3 ? (_local3.getEndStepIndex() + 1) : 0);
var _local5 = ((m_visibleIndexToIndex.length > 0) ? (m_visibleIndexToIndex[m_visibleIndexToIndex.length - 1]) : undefined);
var _local2 = ((_local5 != undefined) ? (m_slides[_local5]) : undefined);
var _local14 = (_local2 ? (_local2.getVisibleEndTime(_local17)) : 0);
var _local15 = (_local2 ? (_local2.getVisibleEndTime(_local16)) : 0);
var _local12 = (_local2 ? (_local2.getVisibleEndStepIndex() + 1) : 0);
var _local13 = (_local2 ? (_local2.getVisibleIndex() + 1) : 0);
var _local4 = new fsplayer.res.slides.CSlide(m_slidesNode.childNodes[_local7], getSlideAssets(), m_soundAssets, getSlideDepthSorter(), m_transitionEffectEnvironment, m_frameRate, m_playbackSettings, _local8, _local9, _local14, _local12, _local11, _local15, _local13, m_userData);
m_slides[_local7++] = _local4;
var _local6 = _local4.getIndex();
if (!_local4.isHidden()) {
m_visibleIndexToIndex[_local4.getVisibleIndex()] = _local6;
}
var _local10 = new Object();
m_navigationSlides[_local6] = _local10;
if (_local3 && (_local3.isHidden())) {
m_navigationSlides[_local6 - 1].vNext = _local6;
}
if (_local5 != undefined) {
_local10.vPrev = _local5;
}
if ((!_local4.isHidden()) && (_local2)) {
m_navigationSlides[_local5].vNext = _local6;
}
_local8 = _local4.getEndTime();
_local9 = _local4.getEndStepIndex() + 1;
}
fixLevels();
}
function fixLevels() {
var _local14 = -1;
var _local13 = getCount();
var _local7 = 0;
while (_local7 < _local13) {
var _local6 = getSlide(_local7).getLevel();
if (_local6 < 0) {
_local6 = 0;
}
if ((_local14 + 1) < _local6) {
_local6 = _local14 + 1;
}
getSlide(_local7).fixLevel(_local6);
_local14 = _local6;
_local7++;
}
var _local12 = new Array();
_local7 = 0;
while (_local7 < _local13) {
var _local10 = getSlide(_local7);
var _local11 = _local10.isHidden();
var _local2 = _local10.getLevel();
if (((!_local11) && (_local2 > 0)) && (_local12[_local7 - 1])) {
var _local8 = false;
var _local4 = _local7;
while (_local4 < _local13) {
var _local5 = getSlide(_local4);
var _local3 = _local5.getLevel();
var _local9 = _local5.isHidden();
if (_local3 == _local2) {
_local8 = !_local9;
}
if ((_local3 >= _local2) && (_local8)) {
_local5.fixLevel(_local3 - 1);
}
if (_local3 < _local2) {
break;
}
_local4++;
}
}
_local2 = _local10.getLevel();
if (_local2 > 0) {
_local12[_local2] = _local12[_local2 - 1] || (_local11);
} else {
_local12[_local2] = _local11;
}
_local7++;
}
}
function getVisibleCount() {
return(m_visibleIndexToIndex.length);
}
function getVisibleSlide(visibleSlideIndex) {
return(getSlide(visibleIndexToIndex(visibleSlideIndex)));
}
function visibleIndexToIndex(visibleIndex) {
return(m_visibleIndexToIndex[visibleIndex]);
}
function getVisibleSlideNavigationIndex(index, next) {
var _local2 = m_navigationSlides[index];
if (_local2) {
return(_local2[(next ? "vNext" : "vPrev")]);
}
return(undefined);
}
function slideChanged(index) {
if (getSlide(index).isHidden() && (m_navigationSlides[index].visit == undefined)) {
var _local2 = index + 1;
while (_local2 < getCount()) {
var _local5 = getSlide(_local2);
var _local4 = m_navigationSlides[_local2].vPrev;
if (_local4 == undefined) {
m_navigationSlides[_local2].vPrev = index;
} else if (_local4 < index) {
m_navigationSlides[_local2].vPrev = index;
m_navigationSlides[index].vPrev = _local4;
}
if (!_local5.isHidden()) {
break;
}
_local2++;
}
m_navigationSlides[index].visit = true;
}
m_lastVisitedSlide = index;
}
}
Symbol 222 MovieClip [__Packages.fsplayer.res.slides.ISlideAssets] Frame 0
interface fsplayer.res.slides.ISlideAssets
{
}
Symbol 223 MovieClip [__Packages.fsplayer.res.slides.ISlideAssetLoadingListener] Frame 0
interface fsplayer.res.slides.ISlideAssetLoadingListener
{
}
Symbol 224 MovieClip [__Packages.fsplayer.res.slides.ISlideAsset] Frame 0
interface fsplayer.res.slides.ISlideAsset
{
}
Symbol 225 MovieClip [__Packages.fsplayer.res.slides.ISlideInstance] Frame 0
interface fsplayer.res.slides.ISlideInstance
{
}
Symbol 226 MovieClip [__Packages.fsplayer.res.slides.ISlideInstanceListener] Frame 0
interface fsplayer.res.slides.ISlideInstanceListener
{
}
Symbol 227 MovieClip [__Packages.fsplayer.res.slides.ISlideDepthSorter] Frame 0
interface fsplayer.res.slides.ISlideDepthSorter
{
}
Symbol 228 MovieClip [__Packages.fsplayer.res.slides.CSlideAssets] Frame 0
class fsplayer.res.slides.CSlideAssets implements fsplayer.res.slides.ISlideAssets, fsplayer.res.slides.ISlideDepthSorter
{
var m_loader, m_target, m_assetTargets, m_frontTarget;
function CSlideAssets (loader, target) {
m_loader = loader;
m_target = target;
m_assetTargets = new Array();
}
function loadSlideAsset(slideIndex, source, listener) {
var _local2 = m_target.createEmptyMovieClip("slide" + slideIndex, m_target.getNextHighestDepth());
m_assetTargets[slideIndex] = _local2;
m_frontTarget = _local2;
return(m_loader.loadSlideAsset(_local2, source, listener));
}
function bringToFront(slideIndex) {
var _local2 = m_assetTargets[slideIndex];
if (_local2 != m_frontTarget) {
_local2.swapDepths(m_frontTarget);
m_frontTarget = _local2;
}
}
}
Symbol 229 MovieClip [__Packages.fsplayer.res.slides.ISlideAssetLoader] Frame 0
interface fsplayer.res.slides.ISlideAssetLoader
{
}
Symbol 230 MovieClip [__Packages.fsplayer.res.slides.CSlideAssetLoader] Frame 0
class fsplayer.res.slides.CSlideAssetLoader implements fsplayer.res.slides.ISlideAssetLoader
{
var m_assetLoader, m_playerCore;
function CSlideAssetLoader (assetLoader, playerCore) {
m_assetLoader = assetLoader;
m_playerCore = playerCore;
}
function loadSlideAsset(target, source, listener) {
var _local2 = new fsplayer.res.slides.CSlideAsset(m_playerCore);
_local2.load(m_assetLoader, target, source, listener);
return(_local2);
}
}
Symbol 231 MovieClip [__Packages.fsplayer.res.slides.CSlideAsset] Frame 0
class fsplayer.res.slides.CSlideAsset implements fsplayer.res.slides.ISlideAsset
{
var m_playerCore, m_asset;
function CSlideAsset (playerCore) {
m_playerCore = playerCore;
}
function createInstance(name, depth) {
var _local2 = m_asset.createInstance(name, depth);
return(new fsplayer.res.slides.CSlideInstance(_local2));
}
function load(assetLoader, target, source, listener) {
var _local2 = new fsplayer.res.slides.CSlideAssetLoadingListenerImpl(this, listener);
assetLoader.loadAsset(target, source, _local2);
}
function onSlideAssetLoadInit(asset) {
var _local2 = asset.getTarget();
_local2._lockroot = true;
var playerCore = m_playerCore;
_local2.getPlayerCore = function () {
return(playerCore);
};
}
function setAsset(asset) {
m_asset = asset;
}
}
Symbol 232 MovieClip [__Packages.fsplayer.res.slides.CSlideInstance] Frame 0
class fsplayer.res.slides.CSlideInstance implements fsplayer.res.slides.ISlideInstance
{
var m_slideInstanceController, m_listener, m_mask;
function CSlideInstance (instanceClip) {
m_slideInstanceController = new fsplayer.res.slides.CSlideInstanceController(instanceClip, this);
}
function playFrom(frameIndex) {
var _local2 = getCurrentFrame();
playAndNotify();
m_forcePlayback = true;
if (_local2 != frameIndex) {
m_slideInstanceController.gotoAndPlay(frameIndex);
onEnterFrame();
} else {
m_oldFrame = undefined;
onEnterFrame();
}
}
function stopAt(frameIndex) {
m_forcePlayback = false;
m_slideInstanceController.gotoAndStop(frameIndex);
stopAndNotify();
}
function play() {
if (!m_playing) {
m_forcePlayback = true;
m_slideInstanceController.play();
playAndNotify();
}
}
function stop() {
if (m_playing) {
m_forcePlayback = false;
m_slideInstanceController.stop();
stopAndNotify();
}
}
function isPlaying() {
return(m_playing);
}
function getCurrentFrame() {
return(m_slideInstanceController.getCurrentFrame());
}
function getFramesCount() {
return(m_slideInstanceController.getFramesCount());
}
function setListener(listener) {
m_listener = listener;
}
function stepForward() {
if (getCurrentFrame() != lastFrame) {
m_slideInstanceController.nextFrame();
stopAndNotify();
}
}
function stepBackward() {
if (getCurrentFrame() != 0) {
m_slideInstanceController.prevFrame();
stopAndNotify();
}
}
function getMask() {
if (m_mask == undefined) {
var _local2 = getMovie()._parent;
var _local3 = getMovie()._name + "_mask";
var _local4 = _local2.getNextHighestDepth();
m_mask = _local2.createEmptyMovieClip(_local3, _local4);
getMovie().setMask(m_mask);
}
return(m_mask);
}
function getMovie() {
return(m_slideInstanceController.getMovie());
}
function deleteMask() {
if (m_mask != undefined) {
m_mask.removeMovieClip();
delete m_mask;
}
}
function playAndNotify() {
var _local2 = m_playing;
if ((!_local2) && (m_listener != undefined)) {
m_listener.onSlideInstancePlay(this);
}
m_playing = true;
}
function stopAndNotify() {
var _local2 = m_playing;
if (_local2 && (m_listener != undefined)) {
m_listener.onSlideInstanceStop(this);
}
m_playing = false;
}
function deleteInstance() {
if (getMovie() != undefined) {
deleteMask();
var _local2 = getMovie();
_local2.removeMovieClip();
}
}
function onEnterFrame() {
var _local2 = getCurrentFrame();
if (m_forcePlayback) {
m_forcePlayback = false;
m_slideInstanceController.play();
}
if (m_listener != undefined) {
m_listener.onSlideInstanceEnterFrame(this);
if (m_oldFrame != _local2) {
m_listener.onSlideInstanceFrameChanged(this);
m_oldFrame = _local2;
}
if (m_playing && (_local2 == lastFrame)) {
stop();
m_listener.onSlideInstanceComplete(this);
}
} else {
m_oldFrame = -1;
}
}
function get lastFrame() {
return(getFramesCount() - 1);
}
var m_oldFrame = -1;
var m_playing = false;
var m_forcePlayback = false;
}
Symbol 233 MovieClip [__Packages.fsplayer.res.slides.CSlideInstanceController] Frame 0
class fsplayer.res.slides.CSlideInstanceController
{
var m_frameIndex, m_slideInstance, m_mc;
function CSlideInstanceController (mc, slideInstance) {
m_frameIndex = undefined;
m_slideInstance = slideInstance;
m_mc = mc;
var thisPtr = this;
m_mc.onEnterFrame = function () {
thisPtr.onEnterFrame();
};
}
function onEnterFrame() {
if (m_command != undefined) {
switch (m_command) {
case COMMAND_STOP :
m_mc.gotoAndStop(m_frameIndex + 1);
break;
case COMMAND_PLAY :
m_mc.gotoAndPlay(m_frameIndex + 1);
}
if ((m_previousFrameIndex != undefined) && (m_previousFrameIndex > m_frameIndex)) {
blink();
}
m_previousFrameIndex = m_frameIndex;
m_command = undefined;
m_frameIndex = undefined;
}
m_slideInstance.onEnterFrame();
}
function play() {
gotoAndPlay(getCurrentFrame());
}
function stop() {
gotoAndStop(getCurrentFrame());
}
function gotoAndPlay(frameIndex) {
m_command = COMMAND_PLAY;
m_frameIndex = frameIndex;
}
function gotoAndStop(frameIndex) {
m_command = COMMAND_STOP;
m_frameIndex = frameIndex;
}
function getCurrentFrame() {
if (m_frameIndex != undefined) {
return(m_frameIndex);
}
return(m_mc._currentframe - 1);
}
function getFramesCount() {
return(m_mc._totalframes);
}
function nextFrame() {
gotoAndStop(getCurrentFrame() + 1);
}
function prevFrame() {
gotoAndStop(getCurrentFrame() - 1);
}
function getMovie() {
return(m_mc);
}
function isLastFrame() {
return(getCurrentFrame() == (getFramesCount() - 1));
}
function blink() {
var _local2 = m_mc._visible;
m_mc._visible = false;
m_mc._visible = _local2;
}
var COMMAND_STOP = 6;
var COMMAND_PLAY = 7;
var m_command = undefined;
var m_previousFrameIndex = undefined;
}
Symbol 234 MovieClip [__Packages.fsplayer.res.slides.CSlideAssetLoadingListenerImpl] Frame 0
class fsplayer.res.slides.CSlideAssetLoadingListenerImpl implements fsplayer.res.assets.IAssetLoadingListener
{
var m_slideAsset, m_listener;
function CSlideAssetLoadingListenerImpl (slideAsset, listener) {
m_slideAsset = slideAsset;
m_listener = listener;
}
function onAssetLoadStart(asset) {
m_slideAsset.setAsset(asset);
m_listener.onSlideAssetLoadStart(m_slideAsset);
}
function onAssetLoadComplete(asset) {
m_listener.onSlideAssetLoadComplete(m_slideAsset);
}
function onAssetLoadInit(asset) {
m_slideAsset.onSlideAssetLoadInit(asset);
m_listener.onSlideAssetLoadInit(m_slideAsset);
}
function onAssetLoadProgress(asset, bytesLoaded, bytesTotal) {
m_listener.onSlideAssetLoadProgress(m_slideAsset, bytesLoaded, bytesTotal);
}
}
Symbol 235 MovieClip [__Packages.fsplayer.res.slides.CSlide] Frame 0
class fsplayer.res.slides.CSlide implements fsplayer.res.slides.ISlide, fsplayer.res.slides.ISlideAssetLoadingListener, fsplayer.res.sounds.ISlideSoundsLoadingListenerEx
{
var m_listeners, m_slideNode, m_slideAssets, m_slideDepthSorter, m_playbackSettings, m_startTime, m_startTimeWithTransition, m_startStepIndex, m_userData, m_index, m_title, m_assetSource, m_hasEmbeddedFlashClips, m_slideSounds, m_slideTransition, m_animationSteps, m_soundCommandsNode, m_bgSoundId, m_videosNode, m_videoCommandsNode, m_slideAssetLoaded, m_hidden, m_visibleStartTime, m_visibleStartTimeWithTransition, m_visibleStartStepIndex, m_visibleIndex, m_level, m_quizBranching, m_presenterVideo, m_bgSound, m_soundCommands, m_slideAsset, m_slideInstancePlayer, m_controller;
function CSlide (slideNode, slideAssets, soundAssets, slideDepthSorter, environment, frameRate, playbackSettings, startTime, startStepIndex, visibleStartTime, visibleStartStepIndex, startTimeWithTransition, visibleStartTimeWithTransition, visibleIndex, userData) {
m_listeners = new Array();
m_slideNode = slideNode;
m_slideAssets = slideAssets;
m_slideDepthSorter = slideDepthSorter;
m_playbackSettings = playbackSettings;
m_startTime = startTime;
m_startTimeWithTransition = startTimeWithTransition;
m_startStepIndex = startStepIndex;
m_userData = userData;
var _local3 = slideNode.attributes;
m_index = parseInt(_local3.index);
m_title = _local3.title;
m_assetSource = _local3.src;
m_hasEmbeddedFlashClips = (_local3.hasEmbeddedFlashClip == "1") || (_local3.hasEmbeddedFlashClip == "true");
m_bytesTotalSlide = Number(_local3.size);
var _local10 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "sounds");
var _local8 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "transitionEffect");
m_slideSounds = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createSlideSounds(_local10, soundAssets);
var _local9 = slideNode.attributes.advanceOnTime == "1";
m_slideTransition = new fsplayer.res.slides.CSlideTransition(_local8, m_slideSounds, environment, _local9);
var _local7 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "animationSteps");
m_animationSteps = new fsplayer.res.slides.CAnimationSteps(_local7, frameRate);
m_soundCommandsNode = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "soundCommands");
var _local6 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "backgroundSound");
if (_local6) {
m_bgSoundId = _local6.attributes.soundId;
}
m_videosNode = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "videos");
m_videoCommandsNode = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "videoCommands");
m_slideAssetLoaded = false;
m_hidden = _local3.hidden == "1";
m_visibleStartTime = visibleStartTime;
m_visibleStartTimeWithTransition = visibleStartTimeWithTransition;
m_visibleStartStepIndex = visibleStartStepIndex;
m_visibleIndex = (m_hidden ? undefined : (visibleIndex));
m_level = (_local3.level ? (parseInt(_local3.level)) : 0);
var _local4 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "presenterVideo");
if (_local4) {
initPresenterVideo(_local4);
}
var _local5 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "quizBranching");
if (_local5) {
m_quizBranching = parseQuizBranching(_local5);
}
}
function initPresenterVideo(presenterVideoNode) {
var _local2 = presenterVideoNode.attributes;
var _local3 = _local2.src;
if (_local3) {
m_presenterVideo = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createPresenterVideo(_local3, _local2.embedded == "1", parseInt(_local2.width), parseInt(_local2.height), parseFloat(_local2.frameRate));
}
}
function hasEmbeddedFlashClips() {
return(m_hasEmbeddedFlashClips);
}
function hasBackgroundSound() {
return(m_bgSoundId != "");
}
function getBackgroundSound() {
if (!m_bgSound) {
m_bgSound = m_slideSounds.getSound(m_bgSoundId);
}
return(m_bgSound);
}
function getSoundCommands() {
if (!m_soundCommands) {
m_soundCommands = new fsplayer.res.sounds.CSoundCommandsEx(m_index, m_soundCommandsNode, m_slideSounds, m_animationSteps);
}
return(m_soundCommands);
}
function getSlideSounds() {
return(m_slideSounds);
}
function getIndex() {
return(m_index);
}
function isLoaded() {
return(m_slideAssetLoaded && (m_slideSounds.allSoundsWereLoaded()));
}
function load(listener) {
m_listeners.push(listener);
if (m_slideAsset == undefined) {
m_slideAsset = m_slideAssets.loadSlideAsset(m_index, m_assetSource, this);
}
if ((!m_slideSounds.allSoundsWereLoaded()) && (!m_slideSoundsAreLoading)) {
m_slideSoundsAreLoading = true;
m_slideSounds.load(this);
}
}
function getTransition() {
return(m_slideTransition);
}
function onSlideAssetLoadStart(asset) {
}
function onSlideAssetLoadComplete(asset) {
}
function onSlideAssetLoadInit(asset) {
m_slideAsset = asset;
m_slideAssetLoaded = true;
if (isLoaded()) {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
_local3.onSlideLoadInit(this);
_local2++;
}
}
}
function onSlideAssetLoadProgress(asset, bytesLoaded, bytesTotal) {
updateLoadingProgress(bytesLoaded, bytesTotal, undefined, undefined);
}
function onSlideSoundsLoadInit() {
if (isLoaded()) {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
_local3.onSlideLoadInit(this);
_local2++;
}
}
}
function onSlideSoundsLoadProgress(bytesLoaded, bytesTotal) {
updateLoadingProgress(undefined, undefined, bytesLoaded, bytesTotal);
}
function getBytesLoadedSounds() {
return(m_slideSounds.getBytesLoaded());
}
function getBytesTotalSounds() {
return(m_slideSounds.getBytesTotal());
}
function updateLoadingProgress(bytesLoadedSlide, bytesTotalSlide, bytesLoadedSounds, bytesTotalSounds) {
if (bytesLoadedSlide != undefined) {
m_bytesLoadedSlide = bytesLoadedSlide;
}
if (bytesTotalSlide != undefined) {
m_bytesTotalSlide = bytesTotalSlide;
}
if (bytesLoadedSounds != undefined) {
bytesLoadedSounds = getBytesLoadedSounds();
}
if (bytesTotalSounds != undefined) {
bytesTotalSounds = getBytesTotalSounds();
}
var _local5 = m_bytesLoadedSlide + bytesLoadedSounds;
var _local4 = m_bytesTotalSlide + bytesTotalSounds;
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
_local3.onSlideLoadProgress(this, _local5, _local4);
_local2++;
}
}
function getPlaybackController() {
return(getController());
}
function getTransitionController() {
return(getSlideInstancePlayer());
}
function getSlideInstancePlayer() {
if (!m_slideInstancePlayer) {
m_slideInstancePlayer = new fsplayer.core.playback.slides.CSlideInstancePlayer(getIndex(), m_slideAsset, m_slideDepthSorter);
}
return(m_slideInstancePlayer);
}
function getController() {
if (m_controller == undefined) {
var _local2 = getAnimationSteps();
var _local3 = new fsplayer.core.playback.slides.CSlidePlaybackSynchronizer(_local2, getSlideInstancePlayer());
m_controller = new fsplayer.core.playback.slides.CSlideControllerEx(_local2, _local3, m_videosNode, m_videoCommandsNode, m_userData);
}
return(m_controller);
}
function getDuration(withTransition) {
return((withTransition ? (m_animationSteps.getDuration() + getTransitionDuration()) : (m_animationSteps.getDuration())));
}
function getTransitionDuration() {
return(getTransition().getDuration());
}
function getStartTime(withTransition) {
return((withTransition ? (m_startTimeWithTransition) : (m_startTime)));
}
function getEndTime(withTransition) {
var _local2 = getDuration(withTransition);
return((withTransition ? (m_startTimeWithTransition + _local2) : (m_startTime + _local2)));
}
function getAnimationSteps() {
return(m_animationSteps);
}
function getStartStepIndex() {
return(m_startStepIndex);
}
function getEndStepIndex() {
return(m_startStepIndex + (m_animationSteps.getStepsCount() - 1));
}
function getVisibleStartTime(withTransition) {
if (isHidden()) {
return(undefined);
}
return((withTransition ? (m_visibleStartTimeWithTransition) : (m_visibleStartTime)));
}
function getVisibleEndTime(withTransition) {
if (isHidden()) {
return(undefined);
}
var _local2 = getDuration(withTransition);
return((withTransition ? (m_visibleStartTimeWithTransition + _local2) : (m_visibleStartTime + _local2)));
}
function getVisibleStartStepIndex() {
return((isHidden() ? undefined : (m_visibleStartStepIndex)));
}
function getVisibleEndStepIndex() {
return((isHidden() ? undefined : (m_visibleStartStepIndex + (m_animationSteps.getStepsCount() - 1))));
}
function isHidden() {
return(m_hidden);
}
function getVisibleIndex() {
return((isHidden() ? undefined : (m_visibleIndex)));
}
function getLevel() {
return(m_level);
}
function fixLevel(level) {
m_level = level;
}
function hasPresenterVideo() {
return(m_presenterVideo != undefined);
}
function getPresenterVideo() {
return(m_presenterVideo);
}
function disableAutoChange() {
m_slideTransition.disableAutoChange();
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local2 = 0;
while (_local2 < m_listeners.length) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function getBytesLoaded() {
return(m_bytesLoadedSlide + getBytesLoadedSounds());
}
function getBytesTotal() {
return(m_bytesTotalSlide + getBytesTotalSounds());
}
function parseQuizBranching(node) {
var _local7 = node.attributes.allowViewNextSlides;
var _local8 = node.attributes.allowQuizInterruption;
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(node, "finishAction");
var _local9 = fsplayer.util.CXMLUtils.findFirstChildNode(_local2, "passed");
var _local4 = parseBranchingAction(_local9.firstChild);
var _local3 = fsplayer.util.CXMLUtils.findFirstChildNode(_local2, "failed");
var _local6 = parseBranchingAction(_local3.firstChild);
return(new fsplayer.res.slides.branching.CQuizBranching(_local7, _local8, _local4, _local6));
}
function parseBranchingAction(node) {
switch (node.nodeName) {
case "gotoUrl" :
var _local4 = node.attributes.url;
var _local3 = node.attributes.target;
return(new fsplayer.res.slides.branching.actions.CNavigateToUrlAction(fsplayer.res.slides.branching.actions.CBranchingActionType.NAVIGATE_TO_URL, _local4, _local3));
case "gotoSlide" :
var _local2 = parseInt(node.attributes.slideIndex);
return(new fsplayer.res.slides.branching.actions.CGotoSlideAction(fsplayer.res.slides.branching.actions.CBranchingActionType.GOTO_SLIDE, _local2));
case "gotoNextSlide" :
return(new fsplayer.res.slides.branching.actions.CBranchingAction(fsplayer.res.slides.branching.actions.CBranchingActionType.GOTO_NEXT_SLIDE));
case "gotoPreviousSlide" :
return(new fsplayer.res.slides.branching.actions.CBranchingAction(fsplayer.res.slides.branching.actions.CBranchingActionType.GOTO_PREVIOUS_SLIDE));
case "closeWindow" :
return(new fsplayer.res.slides.branching.actions.CBranchingAction(fsplayer.res.slides.branching.actions.CBranchingActionType.CLOSE_PLAYER_WINDOW));
}
return(null);
}
function getQuizBranching() {
return(m_quizBranching);
}
var m_slideSoundsAreLoading = false;
var m_bytesLoadedSlide = 0;
var m_bytesTotalSlide = 0;
var m_bytesLoadedSounds = 0;
var m_bytesTotalSounds = 0;
}
Symbol 236 MovieClip [__Packages.fsplayer.core.playback.slides.ISlideInstancePlayer] Frame 0
interface fsplayer.core.playback.slides.ISlideInstancePlayer
{
}
Symbol 237 MovieClip [__Packages.fsplayer.core.playback.slides.ISlideInstancePlayerListener] Frame 0
interface fsplayer.core.playback.slides.ISlideInstancePlayerListener
{
}
Symbol 238 MovieClip [__Packages.fsplayer.core.playback.slides.CSlideInstancePlayer] Frame 0
class fsplayer.core.playback.slides.CSlideInstancePlayer implements fsplayer.core.playback.slides.ISlideInstancePlayer, fsplayer.core.playback.transitions.ISlideTransitionController, fsplayer.res.slides.ISlideInstanceListener
{
var m_slideIndex, m_slideAsset, m_depthSorter, m_listener, m_frameIndex, m_primary, m_secondary;
function CSlideInstancePlayer (slideIndex, slideAsset, depthSorter) {
m_slideIndex = slideIndex;
m_slideAsset = slideAsset;
m_depthSorter = depthSorter;
}
function setListener(listener) {
m_listener = listener;
}
function show() {
getPrimaryInstance();
}
function setFrameIndex(frameIndex) {
if (m_frameIndex != frameIndex) {
if (m_frameIndex === (frameIndex - 1)) {
m_primary.stepForward();
m_secondary.stepForward();
} else if (m_frameIndex === (frameIndex + 1)) {
m_primary.stepBackward();
m_secondary.stepBackward();
} else {
m_primary.stopAt(frameIndex);
m_secondary.stopAt(frameIndex);
}
m_frameIndex = frameIndex;
}
}
function getPrimaryInstance() {
if (!m_primary) {
m_primary = m_slideAsset.createInstance("p");
m_primary.setListener(this);
m_primary.stopAt(0);
}
return(m_primary);
}
function getSecondaryInstance() {
if (!m_secondary) {
var _local2 = getPrimaryInstance().getCurrentFrame();
m_secondary = m_slideAsset.createInstance("s");
}
return(m_secondary);
}
function hide() {
if (m_primary) {
m_primary.deleteInstance();
delete m_primary;
}
hideSecondaryMovie();
m_frameIndex = undefined;
}
function bringToFront() {
m_depthSorter.bringToFront(m_slideIndex);
}
function getPrimaryMovie() {
return(getPrimaryInstance().getMovie());
}
function getPrimaryMask() {
return(getPrimaryInstance().getMask());
}
function getSecondaryMovie() {
return(getSecondaryInstance().getMovie());
}
function getSecondaryMask() {
return(getSecondaryInstance().getMask());
}
function hidePrimaryMask() {
if (m_primary) {
m_primary.deleteMask();
}
}
function hideSecondaryMovie() {
if (m_secondary) {
m_secondary.deleteInstance();
delete m_secondary;
}
}
function onSlideInstanceEnterFrame(instance) {
m_listener.onEnterFrame();
}
function onSlideInstanceFrameChanged(instance) {
}
function onSlideInstanceComplete(instance) {
}
function onSlideInstancePlay(instance) {
}
function onSlideInstanceStop(instance) {
}
}
Symbol 239 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackSynchronizerListener] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackSynchronizerListener
{
}
Symbol 240 MovieClip [__Packages.fsplayer.core.playback.slides.CSlideControllerEx] Frame 0
class fsplayer.core.playback.slides.CSlideControllerEx implements fsplayer.core.playback.slides.ISlidePlaybackControllerEx, fsplayer.core.playback.slides.ISlidePlaybackSynchronizerListener
{
var m_steps, m_synchronizer, m_streamingVideos, m_videoPlaybackController, m_quizPlaybackController, m_listener;
function CSlideControllerEx (steps, synchronizer, videosNode, videoCommandsNode, userData) {
m_steps = steps;
m_synchronizer = synchronizer;
m_synchronizer.setListener(this);
m_streamingVideos = new Array();
m_videoPlaybackController = new fsplayer.core.playback.video.CSlideVideoPlaybackCore(steps, videosNode, videoCommandsNode);
m_quizPlaybackController = new fsplayer.core.playback.quiz.CQuizPlaybackController(this, userData);
}
function gotoStepEnd(stepIndex) {
if (m_buffering) {
m_synchronizer.pauseAtStepEnd(stepIndex);
return(undefined);
}
m_synchronizer.playFromStepEnd(stepIndex);
}
function playFromStep(stepIndex) {
if (m_buffering) {
m_synchronizer.pauseAtStepStart(stepIndex);
m_playingStored = true;
return(undefined);
}
m_synchronizer.playFromStep(stepIndex);
}
function pauseAtStepStart(stepIndex) {
if (m_buffering) {
m_playingStored = false;
}
m_synchronizer.pauseAtStepStart(stepIndex);
}
function pauseAtStepEnd(stepIndex) {
if (m_buffering) {
m_playingStored = false;
}
m_synchronizer.pauseAtStepEnd(stepIndex);
}
function isPlaying() {
return(m_synchronizer.isPlaying());
}
function positionToTime(position) {
return(m_steps.getDuration() * position);
}
function playFrom(position) {
if (m_buffering) {
m_synchronizer.pauseAt(positionToTime(position));
m_playingStored = true;
return(undefined);
}
m_synchronizer.playFrom(positionToTime(position));
}
function play() {
if (m_buffering) {
m_playingStored = true;
return(undefined);
}
m_synchronizer.play();
}
function pause() {
if (m_buffering) {
m_playingStored = false;
}
m_synchronizer.pause();
}
function pauseAt(position) {
if (m_buffering) {
m_playingStored = false;
}
m_synchronizer.pauseAt(positionToTime(position));
}
function getPosition() {
return(m_synchronizer.getPosition());
}
function getCurrentStepIndex() {
return(m_synchronizer.getCurrentStepIndex());
}
function onStepIndexChanged(stepIndex) {
}
function onSlideTransitionComplete() {
m_videoPlaybackController.onStartSlidePlayback();
m_quizPlaybackController.start();
}
function onPositionChanged(position) {
m_listener.onSlidePositionChanged(position);
}
function onSlideFinished() {
m_listener.onSlidePlaybackComplete();
}
function onSlideEnterFrame() {
m_listener.onSlideEnterFrame();
}
function onPlaybackSuspended() {
m_listener.onPlaybackSuspended();
}
function onPlaybackResumed() {
m_listener.onPlaybackResumed();
}
function activate() {
m_synchronizer.activate();
}
function deactivate() {
m_synchronizer.deactivate();
m_videoPlaybackController.onDeactivateSlide();
m_quizPlaybackController.onDeactivateSlide();
deactivateStreamingVideos();
}
function setListener(listener) {
m_listener = listener;
}
function registerVideoClip(videoClip, videoShowId, looping) {
m_videoPlaybackController.registerVideoClip(videoClip, videoShowId, looping);
}
function registerQuiz(quiz) {
m_quizPlaybackController.registerQuiz(quiz);
}
function registerStreamingVideo(video) {
m_streamingVideos.push(video);
}
function deactivateStreamingVideos() {
var _local4 = m_streamingVideos.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_streamingVideos[_local2];
_local3.stop();
_local2++;
}
m_streamingVideos = new Array();
}
function onKeyboardFocusStateChanged(acquireFocus) {
m_listener.onKeyboardFocusStateChanged(acquireFocus);
}
function getSlideQuiz() {
return(m_quizPlaybackController.getQuiz());
}
function slideQuizPassed() {
return(m_quizPlaybackController.getQuizPassed());
}
function slideQuizCompleted() {
return(m_quizPlaybackController.getQuizCompleted());
}
function leaveSlide() {
m_listener.onLeaveCurrentSlide();
}
function getVideoPlaybackController() {
return(m_videoPlaybackController);
}
function onStartBuffering() {
if (!m_buffering) {
var _local2 = isPlaying();
pause();
m_buffering = true;
m_playingStored = _local2;
}
}
function onEndBuffering() {
if (m_buffering) {
m_buffering = false;
if (m_playingStored) {
play();
} else if (m_synchronizer.getPosition() == 1) {
var _local2 = m_steps.getStepsCount() - 1;
pauseAtStepEnd(_local2);
}
}
}
var m_buffering = false;
var m_playingStored = false;
}
Symbol 241 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackSynchronizer] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackSynchronizer
{
}
Symbol 242 MovieClip [__Packages.fsplayer.core.playback.quiz.IQuizPlaybackController] Frame 0
interface fsplayer.core.playback.quiz.IQuizPlaybackController
{
}
Symbol 243 MovieClip [__Packages.fsplayer.core.playback.video.CSlideVideoPlaybackCore] Frame 0
class fsplayer.core.playback.video.CSlideVideoPlaybackCore implements fsplayer.api.core.video.ISlideVideoPlaybackCore, fsplayer.core.playback.video.ISlideVideoPlaybackControllerEx
{
var m_movieClipIdToVideoId, m_movieClipIdToVideoBookmarks, m_videoCommands, m_defaultController, m_videoObjects, m_customController;
function CSlideVideoPlaybackCore (steps, videosNode, videoCommandsNode) {
m_movieClipIdToVideoId = new Object();
m_movieClipIdToVideoBookmarks = new Object();
var _local3 = videosNode.firstChild;
while (_local3 != null) {
if (_local3.nodeName == "video") {
m_movieClipIdToVideoId[_local3.attributes.videoClipId] = _local3.attributes.id;
var _local2 = _local3.firstChild;
while (_local2 != null) {
if (_local2.nodeName == "bookmarks") {
var _local4 = new fsplayer.res.CMediaBookmarks(_local2);
m_movieClipIdToVideoBookmarks[_local3.attributes.videoClipId] = _local4;
break;
}
_local2 = _local2.nextSibling;
}
}
_local3 = _local3.nextSibling;
}
m_videoCommands = new fsplayer.core.playback.video.CVideoCommands(steps, videoCommandsNode);
m_defaultController = new fsplayer.core.playback.video.CSlideVideoPlaybackController(m_videoCommands);
m_videoObjects = new fsplayer.core.playback.video.CVideoObjects();
}
function getVideoController() {
return((m_customController ? (m_customController) : (m_defaultController)));
}
function registerVideoClip(videoClip, videoShowId, looping) {
var _local4 = m_movieClipIdToVideoId[videoShowId];
var _local3 = m_movieClipIdToVideoBookmarks[videoShowId];
var _local2 = new fsplayer.core.playback.video.CVideoObject(videoClip, _local4, looping, _local3);
m_videoObjects.addItem(_local2);
registerVideoObject(_local2);
}
function processTriggerCommand(videoItemId, cmdType, params) {
var _local2;
if (cmdType == "play") {
var _local3 = parseFloat(params.startPos);
_local2 = new fsplayer.core.playback.video.CPlayVideoAction(videoItemId, _local3);
} else if (cmdType == "pause") {
_local2 = new fsplayer.core.playback.video.CPauseVideoAction(videoItemId);
} else {
_local2 = new fsplayer.core.playback.video.CStopVideoAction(videoItemId);
}
getVideoController().processTriggerAction(_local2);
}
function getCore() {
return(this);
}
function getVideoCommands() {
return(m_videoCommands);
}
function getVideoObjects() {
return(m_videoObjects);
}
function setSlideVideoPlaybackController(controller) {
m_customController = controller;
m_defaultController.ignoreVideoEvents(Boolean(m_customController));
}
function registerVideoObject(videoObject) {
if (!m_videoObjects.hasItem(videoObject)) {
m_videoObjects.addItem(videoObject);
}
getVideoController().registerVideoObject(videoObject);
}
function onStartSlidePlayback() {
getVideoController().onStartSlidePlayback();
}
function onDeactivateSlide() {
m_videoObjects.clear();
getVideoController().onDeactivateSlide();
}
function onPositionChanged(stepIndex, time) {
getVideoController().onPositionChanged(stepIndex, time);
}
function resync(stepIndex, time) {
getVideoController().resync(stepIndex, time);
}
function pause() {
getVideoController().pause();
}
function play() {
getVideoController().play();
}
function processTriggerAction(action) {
getVideoController().processTriggerAction(action);
}
function registerBookmarkHandler(videoId, bmkIndex, handlerFunc) {
getVideoController().registerBookmarkHandler(videoId, bmkIndex, handlerFunc);
}
}
Symbol 244 MovieClip [__Packages.fsplayer.core.playback.video.CSlideVideoPlaybackController] Frame 0
class fsplayer.core.playback.video.CSlideVideoPlaybackController implements fsplayer.api.core.video.ISlideVideoPlaybackController
{
var m_activeVideos, m_activeVideoIds, m_eventVideoMap, m_videoCommandsById, m_bookmarkHandlersMap;
function CSlideVideoPlaybackController (videoCommands) {
m_activeVideos = new Array();
m_activeVideoIds = new Array();
m_eventVideoMap = new Object();
m_videoCommandsById = new Object();
m_bookmarkHandlersMap = new Object();
splitVideoCommandsById(videoCommands);
}
function ignoreVideoEvents(ignore) {
m_ignoreVideoEvents = ignore;
var _local3 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local3) {
m_activeVideos[_local2].ignoreEvents(ignore);
_local2++;
}
}
function registerVideoObject(videoObject) {
var _local10 = videoObject.getVideoClip();
var _local3 = videoObject.getId();
var _local8 = videoObject.getLooping();
var _local9 = videoObject.getBookmarks();
var _local4 = m_activeVideoIds.length;
var _local2 = 0;
while (_local2 < _local4) {
if (m_activeVideoIds[_local2] == _local3) {
return(undefined);
}
_local2++;
}
var _local6 = m_videoCommandsById[_local3];
if (!_local6) {
_local6 = new Array();
}
var _local5 = new fsplayer.res.video.CEventVideo(_local10, _local6, _local8, _local9);
_local5.ignoreEvents(m_ignoreVideoEvents);
m_eventVideoMap[_local3] = _local5;
m_activeVideos.push(_local5);
m_activeVideoIds.push(_local3);
if (m_slideActivated) {
_local5.enablePlayback();
} else {
_local5.disablePlayback();
}
processVideoBookmarkHandlers(_local3);
}
function onStartSlidePlayback() {
m_slideActivated = true;
var _local3 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local3) {
m_activeVideos[_local2].enablePlayback();
_local2++;
}
}
function onDeactivateSlide() {
m_slideActivated = false;
var _local3 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local3) {
m_activeVideos[_local2].disablePlayback();
m_activeVideos[_local2].clearBookmarkHandlers();
_local2++;
}
delete m_activeVideos;
delete m_activeVideoIds;
delete m_eventVideoMap;
delete m_bookmarkHandlersMap;
m_activeVideos = new Array();
m_activeVideoIds = new Array();
m_eventVideoMap = new Object();
m_bookmarkHandlersMap = new Object();
}
function onPositionChanged(stepIndex, time) {
var _local3 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local3) {
m_activeVideos[_local2].onPositionChanged(stepIndex, time);
_local2++;
}
}
function resync(stepIndex, time) {
var _local3 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local3) {
m_activeVideos[_local2].resync(stepIndex, time);
_local2++;
}
}
function pause() {
var _local3 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local3) {
m_activeVideos[_local2].pause();
_local2++;
}
}
function play() {
var _local3 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local3) {
m_activeVideos[_local2].play();
_local2++;
}
}
function processTriggerAction(action) {
var _local2 = m_eventVideoMap[action.getVideoId()];
if (_local2) {
_local2.processTriggerAction(action);
}
}
function registerBookmarkHandler(videoId, bmkIndex, handlerFunc) {
var _local2 = m_bookmarkHandlersMap[videoId];
if (!_local2) {
_local2 = new Array();
m_bookmarkHandlersMap[videoId] = _local2;
}
_local2.push({bmkIndex:bmkIndex, handlerFunc:handlerFunc});
processVideoBookmarkHandlers(videoId);
}
function splitVideoCommandsById(videoCommands) {
var _local6 = videoCommands.getCount();
var _local3 = 0;
while (_local3 < _local6) {
var _local5 = videoCommands.getVideoCommand(_local3);
var _local4 = _local5.getAction().getVideoId();
var _local2 = m_videoCommandsById[_local4];
if (!_local2) {
_local2 = new Array();
m_videoCommandsById[_local4] = _local2;
}
_local2.push(_local5);
_local3++;
}
}
function processVideoBookmarkHandlers(videoId) {
var _local5 = m_eventVideoMap[videoId];
var _local4 = m_bookmarkHandlersMap[videoId];
if (_local5 && (_local4)) {
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.registerBookmarkHandler(_local3.bmkIndex, _local3.handlerFunc);
_local2++;
}
m_bookmarkHandlersMap[videoId] = undefined;
}
}
var m_slideActivated = false;
var m_ignoreVideoEvents = false;
}
Symbol 245 MovieClip [__Packages.fsplayer.res.video.IEventVideo] Frame 0
interface fsplayer.res.video.IEventVideo
{
}
Symbol 246 MovieClip [__Packages.fsplayer.res.video.CEventVideo] Frame 0
class fsplayer.res.video.CEventVideo implements fsplayer.res.video.IEventVideo, fsplayer.api.core.video.IVideoClipListener
{
var m_videoCommands, m_looping, m_bookmarks, m_state, m_videoClip, m_currentCommand, m_activeBookmarks, m_bookmarkMC, m_lastPos;
function CEventVideo (videoClip, videoCommands, looping, bookmarks) {
m_videoCommands = videoCommands;
m_looping = looping;
m_bookmarks = bookmarks;
m_state = STATE_IDLE;
m_videoClip = videoClip;
m_videoClip.addListener(this, undefined);
var _local3 = fsplayer.res.video.IVideoClipEx(m_videoClip);
if (_local3) {
var _local2 = _local3.getSkin();
if (_local2) {
_local2.addListener(fsplayer.res.video.skin.CVideoSkinEvent.PLAY, this, onVideoSkinPlay);
_local2.addListener(fsplayer.res.video.skin.CVideoSkinEvent.PAUSE, this, onVideoSkinPause);
_local2.addListener(fsplayer.res.video.skin.CVideoSkinEvent.SEEK_COMPLETE, this, onVideoSkinSeekComplete);
}
}
}
function ignoreEvents(ignore) {
m_ignoreEvents = ignore;
}
function onPositionChanged(stepIndex, time) {
if (!m_playbackEnabled) {
return(undefined);
}
var _local2 = getCommandByTime(stepIndex, time);
if (m_currentCommand != _local2) {
if (_local2) {
processAction(_local2.getAction());
} else {
stopInternal();
}
}
m_currentCommand = _local2;
}
function resync(stepIndex, time) {
onPositionChanged(stepIndex, time);
}
function start() {
startFrom(0);
}
function startFrom(pos) {
m_loopsCount = 0;
m_videoClip.play(pos);
m_state = STATE_PLAYING;
}
function stopInternal() {
m_videoClip.pause(0);
m_state = STATE_IDLE;
}
function play() {
if (m_state == STATE_PAUSED) {
m_state = STATE_PLAYING;
if (m_state == STATE_PLAYING) {
m_videoClip.play(m_position);
}
}
}
function pauseAt(pos) {
m_state = STATE_PAUSED_INTERNAL;
m_position = pos;
m_videoClip.pause(pos);
}
function pause() {
if (m_state == STATE_PLAYING) {
m_state = STATE_PAUSED;
m_position = m_videoClip.getPosition();
m_videoClip.pause(m_position);
}
}
function pauseInternal() {
pauseAt(m_videoClip.getPosition());
}
function eventPause() {
if (m_state == STATE_PLAYING) {
pauseInternal();
} else {
playInternal();
}
}
function playInternal() {
if ((m_state == STATE_PAUSED) || (m_state == STATE_PAUSED_INTERNAL)) {
m_state = STATE_PLAYING;
m_videoClip.play(m_position);
} else if (m_state == STATE_IDLE) {
start();
}
}
function startInternal(startPos) {
if (startPos < 0) {
playInternal();
} else {
if (startPos == undefined) {
startPos = 0;
}
startFrom(startPos);
}
}
function disablePlayback() {
m_playbackEnabled = false;
m_videoClip.disablePlayback();
}
function enablePlayback() {
m_playbackEnabled = true;
m_videoClip.enablePlayback();
}
function getCommandByTime(stepIndex, time) {
var _local8 = m_videoClip.getDuration();
var _local3 = m_videoCommands.length - 1;
while (_local3 >= 0) {
var _local2 = m_videoCommands[_local3];
var _local5 = _local2.getStartStep();
var _local4 = fsplayer.api.core.video.IPlayVideoCommand(_local2);
if ((_local5 < stepIndex) && ((!_local4) || ((_local4.getEndStep() == undefined) || (stepIndex < _local4.getEndStep())))) {
return(_local2);
}
if (_local5 == stepIndex) {
if (_local2.getStartTime() <= time) {
return(_local2);
}
}
_local3--;
}
return(undefined);
}
function processAction(action) {
var _local2 = fsplayer.api.core.video.IPlayVideoAction(action);
if (_local2) {
startInternal(_local2.getStartPosition());
} else if (fsplayer.api.core.video.IPauseVideoAction(action)) {
eventPause();
} else if (fsplayer.api.core.video.IStopVideoAction(action)) {
stopInternal();
}
}
function processTriggerAction(action) {
processAction(action);
}
function registerBookmarkHandler(bmkIndex, handlerFunc) {
if (m_bookmarks) {
var _local5 = m_bookmarks.getBookmarkTime(bmkIndex);
if (_local5 != undefined) {
if (!m_activeBookmarks) {
m_activeBookmarks = new Array();
var _local3 = fsplayer.res.video.IVideoClipEx(m_videoClip);
if (_local3) {
var _local2 = _local3.getTargetMC();
var thisPtr = this;
m_bookmarkMC = _local2.createEmptyMovieClip("m_bookmarkMC", _local2.getNextHighestDepth());
m_bookmarkMC.onEnterFrame = function () {
thisPtr.onEnterFrameBookmark();
};
}
}
var _local4 = {time:_local5, handlerFunc:handlerFunc};
m_activeBookmarks.push(_local4);
}
}
}
function onEnterFrameBookmark() {
if (m_playbackEnabled && (m_activeBookmarks)) {
var _local4 = getPosition();
if (m_lastPos > _local4) {
m_lastPos = undefined;
}
var _local5 = m_activeBookmarks.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = m_activeBookmarks[_local3];
if ((_local4 >= _local2.time) && ((m_lastPos == undefined) || (m_lastPos < _local2.time))) {
_local2.handlerFunc();
}
_local3++;
}
m_lastPos = _local4;
}
}
function clearBookmarkHandlers() {
delete m_activeBookmarks;
m_activeBookmarks = undefined;
if (m_bookmarkMC) {
m_bookmarkMC.removeMovieClip();
m_bookmarkMC = undefined;
}
}
function onVideoSkinPlay() {
m_state = STATE_PLAYING;
}
function onVideoSkinPause() {
m_state = STATE_PAUSED_INTERNAL;
m_position = m_videoClip.getPosition();
}
function onVideoSkinSeekComplete() {
m_position = m_videoClip.getPosition();
}
function getPosition() {
if ((m_state == STATE_PAUSED) || (m_state == STATE_PAUSED_INTERNAL)) {
return(m_position);
}
return(m_videoClip.getPosition());
}
function onVideoClipPlaybackComplete(videoClip, parameter) {
if (m_ignoreEvents) {
return(undefined);
}
var _local2 = false;
if (m_looping == "untilSlideEnd") {
_local2 = true;
} else if (m_looping == "untilClick") {
_local2 = true;
} else if (typeof(m_looping) == "number") {
if ((++m_loopsCount) < m_looping) {
_local2 = true;
}
}
if (_local2) {
pauseAt(0);
playInternal();
} else {
m_videoClip.pause();
m_state = STATE_IDLE;
}
}
function onVideoClipMouseClick(videoClip, parameter) {
var _local2 = fsplayer.res.video.IVideoClipEx(videoClip);
if (_local2 && (_local2.getHasTriggerAnimation())) {
return(undefined);
}
if (m_ignoreEvents) {
return(undefined);
}
if (m_state == STATE_PLAYING) {
pauseInternal();
} else if (videoClip.isCompleted()) {
start();
} else {
playInternal();
}
}
function onVideoClipPlaybackStart(videoClip, parameter) {
}
function onVideoClipLoadComplete(videoClip, parameter) {
}
function onVideoClipReady(videoClip, parameter) {
}
function onVideoClipLoadingProgress(videoClip, progress, parameter) {
}
function onVideoClipBufferEmpty(videoClip, parameter) {
}
function onVideoClipBufferFull(videoClip, parameter) {
}
static var STATE_IDLE = 0;
static var STATE_PLAYING = 1;
static var STATE_PAUSED = 2;
static var STATE_PAUSED_INTERNAL = 3;
var m_position = 0;
var m_loopsCount = 0;
var m_ignoreEvents = false;
var m_playbackEnabled = false;
}
Symbol 247 MovieClip [__Packages.fsplayer.res.video.skin.CVideoSkinEvent] Frame 0
class fsplayer.res.video.skin.CVideoSkinEvent
{
function CVideoSkinEvent () {
}
static var PLAY = "play";
static var PAUSE = "pause";
static var SEEK_COMPLETE = "seekComplete";
}
Symbol 248 MovieClip [__Packages.fsplayer.api.core.video.IPlayVideoCommand] Frame 0
interface fsplayer.api.core.video.IPlayVideoCommand extends fsplayer.api.core.video.IVideoCommand
{
}
Symbol 249 MovieClip [__Packages.fsplayer.api.core.video.IPlayVideoAction] Frame 0
interface fsplayer.api.core.video.IPlayVideoAction extends fsplayer.api.core.video.IVideoAction
{
}
Symbol 250 MovieClip [__Packages.fsplayer.api.core.video.IPauseVideoAction] Frame 0
interface fsplayer.api.core.video.IPauseVideoAction extends fsplayer.api.core.video.IVideoAction
{
}
Symbol 251 MovieClip [__Packages.fsplayer.api.core.video.IStopVideoAction] Frame 0
interface fsplayer.api.core.video.IStopVideoAction extends fsplayer.api.core.video.IVideoAction
{
}
Symbol 252 MovieClip [__Packages.fsplayer.core.playback.video.CVideoObjects] Frame 0
class fsplayer.core.playback.video.CVideoObjects implements fsplayer.api.core.video.IVideoObjects
{
var m_objects, m_set;
function CVideoObjects () {
m_objects = new Array();
m_set = new Object();
}
function getCount() {
return(m_objects.length);
}
function getVideoObject(index) {
return(m_objects[index]);
}
function addItem(object) {
m_set[object] = true;
m_objects.push(object);
}
function hasItem(object) {
return(m_set[object] === true);
}
function clear() {
m_objects = new Array();
m_set = new Object();
}
}
Symbol 253 MovieClip [__Packages.fsplayer.core.playback.video.CVideoCommands] Frame 0
class fsplayer.core.playback.video.CVideoCommands implements fsplayer.api.core.video.IVideoCommands
{
var m_videoCommands;
function CVideoCommands (steps, videoCommandsNode) {
m_videoCommands = new Array();
parseVideoCommands(steps, videoCommandsNode);
}
function getCount() {
return(m_videoCommands.length);
}
function getVideoCommand(index) {
return(m_videoCommands[index]);
}
function parseVideoCommands(steps, videoCommandsNode) {
var _local17 = videoCommandsNode.childNodes.length;
var _local9 = 0;
while (_local9 < _local17) {
var _local3 = videoCommandsNode.childNodes[_local9];
if (((_local3.nodeName == "playVideo") || (_local3.nodeName == "pauseVideo")) || (_local3.nodeName == "stopVideo")) {
var _local7 = _local3.attributes.videoId;
var _local10 = parseInt(_local3.attributes.frameIndex);
var _local6 = steps.getStepIndexByFrame(_local10);
var _local4 = steps.getStepEx(_local6);
var _local11 = Math.max(_local4.getPlayTime(), _local4.getPlayTimeFrameBased());
var _local14 = _local4.getStartTime() + ((_local11 / ((_local4.getEndFrame() - _local4.getStartFrame()) + 1)) * (_local10 - _local4.getStartFrame()));
var _local2 = new Object();
_local2.name = _local3.nodeName;
_local2.startStep = _local6;
_local2.startTime = _local14;
if (_local3.nodeName == "playVideo") {
var _local12 = _local3.attributes.slides;
var _local15 = _local3.attributes.repeat;
var _local5 = parseFloat(_local3.attributes.startPos);
if (_local5 == NaN) {
_local5 = 0;
}
_local2.endStep = (((_local15 == "untilNextClick") || (_local12 == 0)) ? (_local6 + 1) : undefined);
_local2.startPos = _local5;
}
var _local8;
if (_local3.nodeName == "playVideo") {
var _local13 = new fsplayer.core.playback.video.CPlayVideoAction(_local7, _local2.startPos);
_local8 = new fsplayer.core.playback.video.CPlayVideoCommand(_local13, _local2.startStep, _local2.startTime, _local2.endStep);
} else if (_local3.nodeName == "pauseVideo") {
var _local13 = new fsplayer.core.playback.video.CPauseVideoAction(_local7);
_local8 = new fsplayer.core.playback.video.CPauseVideoCommand(_local13, _local2.startStep, _local2.startTime);
} else {
var _local13 = new fsplayer.core.playback.video.CStopVideoAction(_local7);
_local8 = new fsplayer.core.playback.video.CStopVideoCommand(_local13, _local2.startStep, _local2.startTime);
}
m_videoCommands.push(_local8);
}
_local9++;
}
}
}
Symbol 254 MovieClip [__Packages.fsplayer.core.playback.video.CVideoAction] Frame 0
class fsplayer.core.playback.video.CVideoAction implements fsplayer.api.core.video.IVideoAction
{
var m_videoId;
function CVideoAction (videoId) {
m_videoId = videoId;
}
function getVideoId() {
return(m_videoId);
}
}
Symbol 255 MovieClip [__Packages.fsplayer.core.playback.video.CPlayVideoAction] Frame 0
class fsplayer.core.playback.video.CPlayVideoAction extends fsplayer.core.playback.video.CVideoAction implements fsplayer.api.core.video.IPlayVideoAction
{
var m_startPos;
function CPlayVideoAction (videoId, startPos) {
super(videoId);
m_startPos = startPos;
}
function getStartPosition() {
return(m_startPos);
}
}
Symbol 256 MovieClip [__Packages.fsplayer.core.playback.video.CVideoCommand] Frame 0
class fsplayer.core.playback.video.CVideoCommand implements fsplayer.api.core.video.IVideoCommand
{
var m_action, m_startStep, m_startTime;
function CVideoCommand (action, startStep, startTime) {
m_action = action;
m_startStep = startStep;
m_startTime = startTime;
}
function getAction() {
return(m_action);
}
function getStartStep() {
return(m_startStep);
}
function getStartTime() {
return(m_startTime);
}
}
Symbol 257 MovieClip [__Packages.fsplayer.core.playback.video.CPlayVideoCommand] Frame 0
class fsplayer.core.playback.video.CPlayVideoCommand extends fsplayer.core.playback.video.CVideoCommand implements fsplayer.api.core.video.IPlayVideoCommand
{
var m_endStep;
function CPlayVideoCommand (action, startStep, startTime, endStep) {
super(action, startStep, startTime);
m_endStep = endStep;
}
function getEndStep() {
return(m_endStep);
}
}
Symbol 258 MovieClip [__Packages.fsplayer.core.playback.video.CPauseVideoAction] Frame 0
class fsplayer.core.playback.video.CPauseVideoAction extends fsplayer.core.playback.video.CVideoAction implements fsplayer.api.core.video.IPauseVideoAction
{
function CPauseVideoAction (videoId) {
super(videoId);
}
}
Symbol 259 MovieClip [__Packages.fsplayer.api.core.video.IPauseVideoCommand] Frame 0
interface fsplayer.api.core.video.IPauseVideoCommand extends fsplayer.api.core.video.IVideoCommand
{
}
Symbol 260 MovieClip [__Packages.fsplayer.core.playback.video.CPauseVideoCommand] Frame 0
class fsplayer.core.playback.video.CPauseVideoCommand extends fsplayer.core.playback.video.CVideoCommand implements fsplayer.api.core.video.IPauseVideoCommand
{
function CPauseVideoCommand (action, startStep, startTime) {
super(action, startStep, startTime);
}
}
Symbol 261 MovieClip [__Packages.fsplayer.core.playback.video.CStopVideoAction] Frame 0
class fsplayer.core.playback.video.CStopVideoAction extends fsplayer.core.playback.video.CVideoAction implements fsplayer.api.core.video.IStopVideoAction
{
function CStopVideoAction (videoId) {
super(videoId);
}
}
Symbol 262 MovieClip [__Packages.fsplayer.api.core.video.IStopVideoCommand] Frame 0
interface fsplayer.api.core.video.IStopVideoCommand extends fsplayer.api.core.video.IVideoCommand
{
}
Symbol 263 MovieClip [__Packages.fsplayer.core.playback.video.CStopVideoCommand] Frame 0
class fsplayer.core.playback.video.CStopVideoCommand extends fsplayer.core.playback.video.CVideoCommand implements fsplayer.api.core.video.IStopVideoCommand
{
function CStopVideoCommand (action, startStep, startTime) {
super(action, startStep, startTime);
}
}
Symbol 264 MovieClip [__Packages.fsplayer.core.playback.video.CVideoObject] Frame 0
class fsplayer.core.playback.video.CVideoObject implements fsplayer.api.core.video.IVideoObject
{
var m_videoClip, m_id, m_looping, m_bookmarks;
function CVideoObject (videoClip, id, looping, bookmarks) {
m_videoClip = videoClip;
m_id = id;
m_looping = looping;
m_bookmarks = bookmarks;
}
function getVideoClip() {
return(m_videoClip);
}
function getId() {
return(m_id);
}
function getLooping() {
return(m_looping);
}
function getBookmarks() {
return(m_bookmarks);
}
}
Symbol 265 MovieClip [__Packages.fsplayer.core.playback.quiz.CQuizPlaybackController] Frame 0
class fsplayer.core.playback.quiz.CQuizPlaybackController implements fsplayer.core.playback.quiz.IQuizPlaybackController, quizmaker.api.IQuizApiListener
{
var m_slideController, m_userData, m_quizState;
function CQuizPlaybackController (slideController, userData) {
m_slideController = slideController;
m_userData = userData;
}
function registerQuiz(quiz) {
if (!m_quiz) {
m_quiz = quiz;
m_quiz.addListener(this);
if (m_userData.__get__name() != undefined) {
m_quiz.setUserName(m_userData.__get__name());
}
if (m_userData.__get__email() != undefined) {
m_quiz.setUserEmail(m_userData.__get__email());
}
if (m_userData.__get__id() != undefined) {
m_quiz.setUserId(m_userData.__get__id());
}
if (m_started) {
start();
}
}
}
function start() {
if (m_quiz) {
if (m_quizState) {
m_quiz.restoreState(m_quizState);
} else {
m_quiz.startQuiz();
}
}
m_started = true;
}
function onDeactivateSlide() {
if (m_quiz) {
var _local2 = m_quiz.saveState();
if (_local2) {
m_quizState = _local2;
}
m_quiz.removeListener(this);
m_quiz.deinitializeQuiz();
m_quiz = undefined;
}
m_started = false;
}
function onTimeout() {
}
function onTimer() {
}
function onChangeCurrentSlide(newSlideIndex, prevSlideIndex) {
}
function onChangeQuestionStatus(question, prevStatus) {
}
function onSetReviewMode() {
}
function onChangeQuizFinalizationState(enableFinalization) {
}
function onStartQuiz() {
}
function onChangeQuestionAnswer(question) {
}
function onQuizResultSendingComplete(success, recipient) {
}
function onQuizInitialized() {
}
function onExitQuiz() {
}
function onChangeKeyboardFocusState(acquireFocus) {
m_slideController.onKeyboardFocusStateChanged(acquireFocus);
}
function onFinalizeQuiz() {
m_quizCompleted = true;
var _local2 = m_quiz.getResults();
m_quizPassed = _local2.getQuizPassed();
}
function getQuiz() {
return(m_quiz);
}
function getQuizPassed() {
return(m_quizPassed);
}
function getQuizCompleted() {
return(m_quizCompleted);
}
var m_quiz = undefined;
var m_started = false;
var m_quizPassed = false;
var m_quizCompleted = false;
}
Symbol 266 MovieClip [__Packages.fsplayer.res.slides.CAnimationSteps] Frame 0
class fsplayer.res.slides.CAnimationSteps implements fsplayer.res.slides.IAnimationStepsEx
{
var m_steps, m_frameRate;
function CAnimationSteps (animationStepsNode, frameRate) {
m_steps = new Array();
m_frameRate = frameRate;
var _local6 = animationStepsNode.childNodes.length;
var _local2 = 0;
while (_local2 < _local6) {
var _local5 = animationStepsNode.childNodes[_local2];
var _local3 = new fsplayer.res.slides.CAnimationStep(_local5, m_duration, frameRate);
m_steps.push(_local3);
var _local4 = _local3.__get__pauseEndTime();
m_duration = ((_local4 != undefined) ? (_local4) : (_local3.__get__pauseStartTime()));
_local2++;
}
}
function getDuration() {
return(m_duration);
}
function getStepsCount() {
return(m_steps.length);
}
function getStepEx(index) {
return(m_steps[index]);
}
function getStep(index) {
return(m_steps[index]);
}
function getStepByFrame(frameIndex) {
var _local2 = getStepIndexByFrame(frameIndex);
if (_local2 != undefined) {
return(getStepEx(_local2));
}
return(undefined);
}
function getFrameIndexByTime(time) {
var _local2 = getStepByTime(time);
var _local4 = _local2.getEndFrame();
if (time >= _local2.getPauseStartTime()) {
return(_local2.getEndFrame());
}
var _local7 = time - _local2.getStartTime();
var _local3 = _local2.getPlayTime();
var _local5 = _local2.getStartFrame();
var _local8 = _local2.getPlayTimeFrameBased();
_local3 = Math.max(_local3, _local8);
if (_local3 > 0) {
return(Math.round((_local7 * (_local4 - _local5)) / _local3) + _local5);
}
return(_local4);
}
function getStepIndexByFrame(frameIndex) {
var _local5 = getStepsCount();
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = m_steps[_local2];
if ((frameIndex >= _local3.getStartFrame()) && (frameIndex <= _local3.getEndFrame())) {
return(_local2);
}
_local2++;
}
return(undefined);
}
function getStepByTime(time) {
var _local2 = getStepIndexByTime(time);
return(m_steps[_local2]);
}
function getStepIndexByTime(time) {
var _local3 = getStepsCount();
var _local2 = 1;
while (_local2 < _local3) {
if (time < m_steps[_local2].getStartTime()) {
return(_local2 - 1);
}
_local2++;
}
return(_local3 - 1);
}
var m_duration = 0;
}
Symbol 267 MovieClip [__Packages.fsplayer.res.slides.CAnimationStep] Frame 0
class fsplayer.res.slides.CAnimationStep implements fsplayer.res.slides.IAnimationStepEx
{
var m_startFrame, m_endFrame, m_playTime, m_pauseTime, m_startTime, m_playTimeFrameBased;
function CAnimationStep (animationStepNode, stepStartTime, frameRate) {
var _local2 = animationStepNode.attributes;
m_startFrame = parseInt(_local2.start);
m_endFrame = parseInt(_local2.end);
m_playTime = parseFloat(_local2.playTime);
m_pauseTime = ((_local2.pauseTime != "") ? (parseFloat(_local2.pauseTime)) : undefined);
m_startTime = stepStartTime;
m_playTimeFrameBased = ((frameRate != undefined) ? ((m_endFrame - m_startFrame) / frameRate) : (m_playTime));
}
function getPlayTimeFrameBased() {
return(m_playTimeFrameBased);
}
function get startTime() {
return(m_startTime);
}
function get pauseStartTime() {
return(((m_startTime != undefined) ? (m_startTime + m_playTime) : undefined));
}
function get pauseEndTime() {
var _local2 = pauseStartTime;
return((((_local2 != undefined) && (m_pauseTime != undefined)) ? (_local2 + m_pauseTime) : undefined));
}
function getStartFrame() {
return(m_startFrame);
}
function getEndFrame() {
return(m_endFrame);
}
function getPlayTime() {
return(m_playTime);
}
function getPauseTime() {
return(m_pauseTime);
}
function getStartTime() {
return(startTime);
}
function getPauseStartTime() {
return(pauseStartTime);
}
function getPauseEndTime() {
return(pauseEndTime);
}
}
Symbol 268 MovieClip [__Packages.fsplayer.core.CPlayerCoreComponentsFactory] Frame 0
class fsplayer.core.CPlayerCoreComponentsFactory
{
static var m_instance;
function CPlayerCoreComponentsFactory () {
}
static function getInstance() {
return(m_instance);
}
static function setInstance(instance) {
m_instance = instance;
}
}
Symbol 269 MovieClip [__Packages.fsplayer.core.IPlayerCoreComponentsFactory] Frame 0
interface fsplayer.core.IPlayerCoreComponentsFactory
{
}
Symbol 270 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionEffectsFactory] Frame 0
interface fsplayer.core.playback.transitions.ITransitionEffectsFactory
{
}
Symbol 271 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionParameters] Frame 0
interface fsplayer.core.playback.transitions.ITransitionParameters
{
}
Symbol 272 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionParameters] Frame 0
class fsplayer.core.playback.transitions.CTransitionParameters implements fsplayer.core.playback.transitions.ITransitionParameters
{
var m_oldSlide, m_newSlide, m_environment, m_hasOldSlide, m_inverted;
function CTransitionParameters (oldSlide, newSlide, environment, inverted) {
m_oldSlide = oldSlide;
m_newSlide = newSlide;
m_environment = environment;
m_hasOldSlide = oldSlide != undefined;
m_inverted = inverted == true;
}
function hasOldSlide() {
return(m_hasOldSlide);
}
function getOldSlide() {
return(m_oldSlide);
}
function getNewSlide() {
return(m_newSlide);
}
function getEnvironment() {
return(m_environment);
}
function getInverted() {
return(m_inverted);
}
}
Symbol 273 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackControllerEx] Frame 0
interface fsplayer.api.IPresentationPlaybackControllerEx extends fsplayer.api.IPresentationPlaybackController
{
}
Symbol 274 MovieClip [__Packages.fsplayer.core.playback.presentation.IPlaybackController] Frame 0
interface fsplayer.core.playback.presentation.IPlaybackController extends fsplayer.api.IPresentationPlaybackControllerEx
{
}
Symbol 275 MovieClip [__Packages.fsplayer.core.playback.sounds.IMediaPlaybackControllerEx] Frame 0
interface fsplayer.core.playback.sounds.IMediaPlaybackControllerEx extends fsplayer.api.ISoundController
{
}
Symbol 276 MovieClip [__Packages.cpslabs.utils.IMessageBroadcaster] Frame 0
interface cpslabs.utils.IMessageBroadcaster
{
}
Symbol 277 MovieClip [__Packages.fsplayer.core.playback.narration.INarrationSynchronizer] Frame 0
interface fsplayer.core.playback.narration.INarrationSynchronizer extends cpslabs.utils.IMessageBroadcaster
{
}
Symbol 278 MovieClip [__Packages.fsplayer.core.loading.IPresentationBgSoundAssetLoadingController] Frame 0
interface fsplayer.core.loading.IPresentationBgSoundAssetLoadingController
{
}
Symbol 279 MovieClip [__Packages.fsplayer.core.ILoadingControllersFactory] Frame 0
interface fsplayer.core.ILoadingControllersFactory
{
}
Symbol 280 MovieClip [__Packages.fsplayer.core.loading.IThumbnailAssetLoadingController] Frame 0
interface fsplayer.core.loading.IThumbnailAssetLoadingController
{
}
Symbol 281 MovieClip [__Packages.fsplayer.res.images.IImageAssetLoadingListener] Frame 0
interface fsplayer.res.images.IImageAssetLoadingListener
{
}
Symbol 282 MovieClip [__Packages.fsplayer.res.images.IImageAsset] Frame 0
interface fsplayer.res.images.IImageAsset
{
}
Symbol 283 MovieClip [__Packages.fsplayer.res.images.IImageInstance] Frame 0
interface fsplayer.res.images.IImageInstance
{
}
Symbol 284 MovieClip [__Packages.fsplayer.core.loading.ISlideLoadingController] Frame 0
interface fsplayer.core.loading.ISlideLoadingController
{
}
Symbol 285 MovieClip [__Packages.fsplayer.api.IWebObjectsController] Frame 0
interface fsplayer.api.IWebObjectsController extends fsplayer.api.IPlaybackListener
{
}
Symbol 286 MovieClip [__Packages.fsplayer.res.slides.CSlideTransition] Frame 0
class fsplayer.res.slides.CSlideTransition implements fsplayer.res.slides.ISlideTransition
{
var m_environment, m_sounds, m_soundId, m_effectName, m_transitionsFactory, m_duration, m_repeatSound, m_autoChange, m_transitionSound;
function CSlideTransition (transitionNode, sounds, environment, autoChange) {
m_environment = environment;
m_sounds = sounds;
m_soundId = transitionNode.attributes.soundId;
m_effectName = transitionNode.attributes.name;
m_transitionsFactory = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().getTransitionEffectsFactory();
m_duration = m_transitionsFactory.calculateEffectDuration(parseFloat(transitionNode.attributes.duration));
m_repeatSound = transitionNode.attributes.looped == "1";
m_autoChange = autoChange;
}
function hasSound() {
return(m_soundId != "");
}
function getSound() {
if (!m_transitionSound) {
m_transitionSound = ((m_soundId == "-") ? (new fsplayer.res.sounds.CDummySlideSound("-")) : (m_sounds.getSound(m_soundId)));
}
return(m_transitionSound);
}
function getAutoChange() {
return(m_autoChange);
}
function getTransitionEffect(oldSlide, newSlide, inverted) {
var _local2 = new fsplayer.core.playback.transitions.CTransitionParameters(oldSlide, newSlide, m_environment, inverted);
return(m_transitionsFactory.getTransitionEffect(m_effectName, _local2));
}
function getDuration() {
return(m_duration);
}
function soundIsLooped() {
return(m_repeatSound);
}
function disableAutoChange() {
m_autoChange = false;
}
}
Symbol 287 MovieClip [__Packages.fsplayer.res.sounds.CDummySlideSound] Frame 0
class fsplayer.res.sounds.CDummySlideSound implements fsplayer.res.sounds.ISlideSoundEx
{
var m_id, m_listener;
function CDummySlideSound (id) {
m_id = id;
}
function isLoaded() {
return(true);
}
function getId() {
return(m_id);
}
function start(position, loops) {
}
function stop(reset) {
}
function getSoundInstance() {
return(undefined);
}
function getPosition() {
return(0);
}
function getDuration() {
return(0);
}
function load(listener) {
}
function setListener(listener) {
m_listener = listener;
}
function setVolume(volume) {
}
function hasTriggerEffects() {
return(false);
}
function getBookmarks() {
return(undefined);
}
function getBytesLoaded() {
return(0);
}
function getBytesTotal() {
return(0);
}
}
Symbol 288 MovieClip [__Packages.fsplayer.res.sounds.CSoundCommandsEx] Frame 0
class fsplayer.res.sounds.CSoundCommandsEx implements fsplayer.res.sounds.ISoundCommandsEx
{
var m_slideIndex, m_sounds, m_eventSounds;
function CSoundCommandsEx (slideIndex, soundCommandsNode, sounds, steps) {
m_slideIndex = slideIndex;
m_sounds = sounds;
var _local23 = soundCommandsNode.childNodes.length;
m_eventSounds = new Object();
var _local12 = 0;
while (_local12 < _local23) {
var _local2 = soundCommandsNode.childNodes[_local12];
var _local8 = _local2.attributes.soundId;
var _local3 = m_sounds.getSound(_local8);
if (!_local3) {
} else {
var _local6 = _local2.nodeName;
if (_local6 == "playSound") {
var _local16 = parseInt(_local2.attributes.frameIndex);
var _local20 = parseInt(_local2.attributes.slides);
var _local13 = _local2.attributes.repeat;
var _local21 = (_local2.attributes.effect == "1") || (_local2.attributes.effect == "true");
var _local9 = parseFloat(_local2.attributes.startPos);
if ((_local9 == NaN) || ((!_local3.hasTriggerEffects()) && (_local9 < 0))) {
_local9 = 0;
}
var _local5 = parseFloat(_local2.attributes.volume);
if (isNaN(_local5)) {
_local5 = 0.5;
} else {
_local5 = ((_local5 < 0) ? 0 : (((_local5 > 1) ? 1 : (_local5))));
}
var _local15 = steps.getStepIndexByFrame(_local16);
var _local7 = steps.getStepEx(_local15);
var _local17 = Math.max(_local7.getPlayTime(), _local7.getPlayTimeFrameBased());
var _local22 = _local7.getStartTime() + ((_local17 / ((_local7.getEndFrame() - _local7.getStartFrame()) + 1)) * (_local16 - _local7.getStartFrame()));
var _local18 = slideIndex + Math.max(0, _local20 - 1);
var _local11 = m_eventSounds[_local8];
if (!_local11) {
_local11 = new Array();
m_eventSounds[_local8] = _local11;
}
var _local4 = new Object();
_local4.name = _local6;
_local3.setVolume(_local5);
var _local19 = parseInt(_local13);
_local4.startStep = _local15;
_local4.startTime = _local22;
_local4.duration = ((!isNaN(_local19)) ? (_local19 * _local3.getDuration()) : undefined);
_local4.endTime = ((_local4.duration != undefined) ? (_local22 + _local4.duration) : undefined);
_local4.endStep = (((_local13 == "untilNextClick") || (_local20 == 0)) ? (_local15 + 1) : undefined);
_local4.repeat = _local13;
_local4.loopsCount = _local19;
_local4.lastSlide = (((_local13 == "untilNextSlide") || ((_local3.getDuration() + _local4.startTime) > steps.getDuration())) ? (_local18) : (slideIndex));
_local4.effectSound = _local21;
_local4.startPos = _local9;
_local11.push(_local4);
} else if (_local3.hasTriggerEffects()) {
if ((_local6 == "pauseSound") || (_local6 == "stopSound")) {
var _local16 = parseInt(_local2.attributes.frameIndex);
var _local15 = steps.getStepIndexByFrame(_local16);
var _local7 = steps.getStepEx(_local15);
var _local17 = Math.max(_local7.getPlayTime(), _local7.getPlayTimeFrameBased());
var _local22 = _local7.getStartTime() + ((_local17 / ((_local7.getEndFrame() - _local7.getStartFrame()) + 1)) * (_local16 - _local7.getStartFrame()));
var _local11 = m_eventSounds[_local8];
if (!_local11) {
_local11 = new Array();
m_eventSounds[_local8] = _local11;
}
var _local4 = new Object();
_local4.name = _local6;
_local4.startStep = _local15;
_local4.startTime = _local22;
if (_local6 == "pauseSound") {
var _local5 = parseFloat(_local2.attributes.volume);
if (isNaN(_local5)) {
_local5 = 0.5;
} else {
_local5 = ((_local5 < 0) ? 0 : ((_local5 > 1) ? 1 : _local5));
}
_local3.setVolume(_local5);
var _local20 = parseInt(_local2.attributes.slides);
var _local18 = slideIndex + Math.max(0, _local20 - 1);
var _local13 = _local2.attributes.repeat;
var _local19 = parseInt(_local13);
_local4.lastSlide = (((_local13 == "untilNextSlide") || ((_local3.getDuration() + _local4.startTime) > steps.getDuration())) ? (_local18) : (slideIndex));
_local4.repeat = _local13;
_local4.loopsCount = _local19;
}
_local11.push(_local4);
}
}
}
_local12++;
}
}
function getSlideEventSounds(core) {
var _local5 = new Array();
for (var _local7 in m_eventSounds) {
var _local2 = m_sounds.getSound(_local7);
var _local4 = m_eventSounds[_local7];
var _local3 = new fsplayer.res.sounds.CSlideEventSoundEx(_local2, m_slideIndex, _local4, core);
_local5.push(_local3);
}
return(new fsplayer.res.sounds.CSlideEventSoundsEx(m_slideIndex, _local5, core));
}
}
Symbol 289 MovieClip [__Packages.fsplayer.res.sounds.CSoundExImpl] Frame 0
class fsplayer.res.sounds.CSoundExImpl implements fsplayer.res.sounds.ISoundEx, fsplayer.res.sounds.ISlideSoundListenerEx
{
var m_sound, m_core, m_state, m_playingStored;
function CSoundExImpl (sound, soundCore) {
m_sound = sound;
m_core = soundCore;
m_state = STATE_IDLE;
m_sound.setListener(this);
}
function onSlideSoundComplete(slideSound) {
}
function onPositionChanged(slideIndex, stepIndex, time) {
if (isSoundPlayingOnTime(slideIndex, stepIndex, time)) {
positionWasChanged(slideIndex, stepIndex, time);
}
}
function onStartSlideSwitching(slideIndex, autoStart) {
if (!isSoundPlayingOnSlide(slideIndex)) {
deactivateSound();
} else {
slideIndexWasChanged(slideIndex, autoStart);
}
}
function onStartSlidePlayback(slideIndex) {
}
function deactivateSound() {
stop();
}
function positionWasChanged(slideIndex, stepIndex, time) {
}
function slideIndexWasChanged(slideIndex, autoStartSound) {
}
function isSoundPlayingOnTime(slideIndex, stepIndex, time) {
return(true);
}
function isSoundPlayingOnSlide(slideIndex) {
return(true);
}
function getId() {
return(m_sound.getId());
}
function start() {
startFrom(0);
}
function startFrom(pos) {
if (m_buffering) {
m_position = pos;
m_playingStored = true;
return(undefined);
}
m_sound.start(pos, 1);
m_state = STATE_PLAYING;
}
function stop() {
if (m_buffering) {
m_playingStored = false;
}
m_sound.stop(true);
m_state = STATE_IDLE;
}
function unregister() {
m_buffering = false;
stop();
m_core.unregisterSound(this);
onUnregisterSound();
}
function onUnregisterSound() {
}
function play() {
if (m_buffering) {
m_playingStored = true;
return(undefined);
}
if (m_state == STATE_PAUSED) {
m_state = STATE_PLAYING;
m_sound.start(m_position, 1);
}
}
function pauseAt(pos) {
if (m_buffering) {
m_playingStored = false;
}
m_state = STATE_PAUSED;
m_position = pos;
m_sound.stop();
}
function pause() {
if (m_buffering) {
m_playingStored = false;
}
if (m_state == STATE_PLAYING) {
m_state = STATE_PAUSED;
m_position = m_sound.getPosition();
m_sound.stop();
}
}
function resync(slideIndex, stepIndex, time, playSound, fullResync) {
}
function getDuration() {
return(m_sound.getDuration());
}
function setVolume(volume) {
m_sound.setVolume(volume);
}
function onStartBuffering() {
if (needStopOnBuffering()) {
var _local2 = m_state == STATE_PLAYING;
pause();
m_buffering = true;
m_playingStored = _local2;
}
}
function onEndBuffering() {
if (m_buffering) {
m_buffering = false;
if (m_playingStored) {
play();
}
}
}
function needStopOnBuffering() {
return(false);
}
function getCurrentPosition() {
if ((m_state == STATE_PAUSED) || (m_state == STATE_PAUSED_INTERNAL)) {
return(m_position);
}
return(m_sound.getPosition());
}
function playInternal() {
if ((m_state == STATE_PAUSED) || (m_state == STATE_PAUSED_INTERNAL)) {
m_state = STATE_PLAYING;
m_sound.start(m_position, 1);
} else if (m_state == STATE_IDLE) {
start();
}
}
function pauseInternal() {
m_state = STATE_PAUSED_INTERNAL;
m_position = m_sound.getPosition();
m_sound.stop();
}
function startInternal(startPos) {
if (startPos < 0) {
playInternal();
} else {
if (startPos == undefined) {
startPos = 0;
}
startFrom(startPos);
}
}
function eventPause() {
if (m_state == STATE_PLAYING) {
pauseInternal();
} else {
playInternal();
}
}
function onTriggerEffectStopAllSounds() {
}
var m_position = 0;
var m_buffering = false;
static var STATE_IDLE = 0;
static var STATE_PLAYING = 1;
static var STATE_PAUSED = 2;
static var STATE_PAUSED_INTERNAL = 3;
}
Symbol 290 MovieClip [__Packages.fsplayer.res.sounds.CSlideEventSoundEx] Frame 0
class fsplayer.res.sounds.CSlideEventSoundEx extends fsplayer.res.sounds.CSoundExImpl implements fsplayer.res.sounds.ISlideEventSoundEx
{
var m_slideIndex, m_events, m_soundCore, m_presentation, m_slides, m_lastSlideIndex, m_lastEvent, unregister, m_lastStep, m_currentEventIndex, stop, m_sound, m_state, getDuration, getCurrentPosition, m_loopsCount, startFrom, pauseAt, start, play, startInternal, eventPause, setVolume, m_activeBookmarks, m_bookmarkMC, m_lastPos;
function CSlideEventSoundEx (sound, slideIndex, events, soundCore) {
super(sound, soundCore);
m_slideIndex = slideIndex;
m_events = events;
m_soundCore = soundCore;
m_presentation = soundCore.getPresentation();
m_slides = m_presentation.getSlides();
m_lastSlideIndex = slideIndex;
}
function positionWasChanged(slideIndex, stepIndex, time) {
if (slideIndex == m_slideIndex) {
if ((m_triggerProcessingMode && (m_lastEvent.hlink)) && (m_lastSlideIndex != slideIndex)) {
m_lastSlideIndex = slideIndex;
unregister();
}
if (stepIndex != m_lastStep) {
onChangeStep(stepIndex);
}
var _local2 = getEventIndexByTime(stepIndex, time);
if ((m_currentEventIndex != _local2) && (_local2 != undefined)) {
if (m_triggerProcessingMode) {
processEvent(m_events[_local2]);
} else {
startEventSound(m_events[_local2], m_events[_local2].startPos);
}
} else if ((_local2 == undefined) && (!m_triggerProcessingMode)) {
stop();
}
m_currentEventIndex = _local2;
} else {
clearBookmarkHandlers();
if (m_triggerProcessingMode) {
m_lastSlideIndex = slideIndex;
onChangeStep(stepIndex);
if ((slideIndex < m_slideIndex) || (slideIndex > m_lastEvent.lastSlide)) {
deactivateSound();
}
}
}
}
function deactivateSound() {
var _local2 = (m_triggerProcessingMode ? (m_lastEvent) : (m_events[m_events.length - 1]));
if (_local2.hlink) {
return(undefined);
}
m_triggerProcessingMode = false;
clearBookmarkHandlers();
unregister();
}
function getEventIndexByTime(stepIndex, time) {
var _local6 = m_sound.getDuration();
var _local3 = m_events.length - 1;
while (_local3 >= 0) {
var _local2 = m_events[_local3];
if ((_local2.startStep < stepIndex) && ((_local2.endStep == undefined) || (m_triggerProcessingMode && (stepIndex < _local2.endStep)))) {
return(_local3);
}
if (_local2.startStep == stepIndex) {
if (_local2.startTime <= time) {
if (m_triggerProcessingMode || ((_local2.endTime == undefined) || (time < _local2.endTime))) {
return(_local3);
}
}
}
_local3--;
}
return(undefined);
}
function isSoundPlayingOnSlide(slideIndex) {
var _local2 = (m_triggerProcessingMode ? (m_lastEvent) : (m_events[m_events.length - 1]));
return((m_slideIndex <= slideIndex) && (slideIndex <= _local2.lastSlide));
}
function startEventSound(evt, pos, playSound, fullResync) {
if (evt.name != "playSound") {
return(undefined);
}
if (m_lastEvent != evt) {
fullResync = true;
}
m_lastEvent = evt;
if ((fullResync != true) && (m_state == fsplayer.res.sounds.CSoundExImpl.STATE_PLAYING)) {
var _local7 = getCurrentPosition() + (m_curLoopIndex * getDuration());
if (pos <= _local7) {
return(undefined);
}
}
if (evt.effectSound) {
m_soundCore.startNewEffectSound(this);
}
var _local4 = getDuration();
var _local3 = ((pos < 0) ? 0 : (int(Math.floor(pos / _local4))));
var _local5 = pos - (_local3 * _local4);
if (!isNaN(evt.loopsCount)) {
m_loopsCount = evt.loopsCount - _local3;
if ((evt.loopsCount > 0) && (_local3 >= evt.loopsCount)) {
stop();
return(undefined);
}
} else {
m_loopsCount = 0;
}
m_curLoopIndex = 0;
if (playSound || (playSound == undefined)) {
startFrom(_local5);
} else {
pauseAt(_local5);
}
}
function onSlideSoundComplete(slideSound) {
if ((m_loopsCount == 0) || ((--m_loopsCount) != 0)) {
m_curLoopIndex++;
start();
} else if (m_triggerProcessingMode) {
stop();
}
}
function resync(slideIndex, stepIndex, time, playSound, fullResync) {
if (slideIndex == m_slideIndex) {
if (stepIndex != m_lastStep) {
onChangeStep(stepIndex);
}
var _local7 = getEventIndexByTime(stepIndex, time);
if (m_triggerProcessingMode) {
if ((m_currentEventIndex != _local7) && (_local7 != undefined)) {
processEvent(m_events[_local7], playSound);
} else {
play();
}
} else if (_local7 != undefined) {
var _local4 = m_events[_local7];
var _local6 = (time - _local4.startTime) + _local4.startPos;
startEventSound(_local4, _local6, playSound, fullResync != false);
} else {
stop();
}
m_currentEventIndex = _local7;
} else if (slideIndex > m_slideIndex) {
m_currentEventIndex = m_events.length - 1;
var _local4 = (m_triggerProcessingMode ? (m_lastEvent) : (m_events[m_currentEventIndex]));
if (slideIndex <= _local4.lastSlide) {
if ((((_local4.duration == undefined) || ((_local4.duration + _local4.startTime) > m_slides.getSlide(slideIndex).getDuration())) || (_local4.loopsCount == 1)) || (_local4.repeat == "untilNextSlide")) {
if (!m_triggerProcessingMode) {
var _local6 = (m_slides.getSlide(m_slideIndex).getDuration() - _local4.startTime) + _local4.startPos;
_local6 = _local6 + (m_slides.getSlide(slideIndex).getTransition().getDuration() + time);
var _local2 = m_slideIndex + 1;
while (_local2 < slideIndex) {
var _local3 = m_slides.getSlide(_local2);
_local6 = _local6 + (_local3.getTransition().getDuration() + _local3.getDuration());
_local2++;
}
startEventSound(_local4, _local6, playSound, fullResync != false);
} else {
play();
}
} else {
deactivateSound();
}
} else {
deactivateSound();
}
}
}
function onUnregisterSound() {
m_currentEventIndex = undefined;
}
function onChangeStep(stepIndex) {
if ((((m_lastStep != undefined) && (m_triggerProcessingMode)) && (!m_lastEvent.hlink)) && (m_lastEvent.endStep != undefined)) {
stop();
}
m_lastStep = stepIndex;
}
function processEvent(evt, playSound) {
m_lastEvent = evt;
if (evt.name == "stopSound") {
stop();
} else {
var _local3 = getDuration();
var _local4 = ((evt.startPos < 0) ? 0 : (int(Math.floor(evt.startPos / _local3))));
if (!isNaN(evt.loopsCount)) {
m_loopsCount = evt.loopsCount - _local4;
} else {
m_loopsCount = 0;
}
m_curLoopIndex = 0;
if (evt.name == "playSound") {
startInternal(evt.startPos);
} else if (evt.name == "pauseSound") {
eventPause();
}
}
}
function processTriggerEvent(cmdType, params) {
m_triggerProcessingMode = true;
var _local2 = new Object();
if (cmdType == "play") {
_local2.name = "playSound";
} else if (cmdType == "pause") {
_local2.name = "pauseSound";
} else if (cmdType == "stop") {
_local2.name = "stopSound";
}
if (params) {
var _local3 = parseFloat(params.volume);
if (isNaN(_local3)) {
_local3 = 0.5;
} else {
_local3 = ((_local3 < 0) ? 0 : (((_local3 > 1) ? 1 : (_local3))));
}
setVolume(_local3);
if (params.effect == "1") {
m_soundCore.startNewEffectSound(this);
}
var _local5 = parseInt(params.slides);
var _local8 = m_slideIndex + Math.max(0, _local5 - 1);
var _local6 = params.repeat;
var _local9 = parseInt(_local6);
_local2.lastSlide = ((_local5 > 0) ? (_local8) : (m_slideIndex));
_local2.repeat = _local6;
_local2.loopsCount = _local9;
_local2.startStep = m_lastStep;
_local2.endStep = ((((_local6 == "untilNextClick") || (_local5 == 0)) && (m_lastStep)) ? (m_lastStep + 1) : undefined);
if (params.startPos) {
_local2.startPos = parseFloat(params.startPos);
}
if (params.hlink == "1") {
_local2.hlink = true;
}
}
processEvent(_local2);
}
function needStopOnBuffering() {
return(!m_triggerProcessingMode);
}
function onTriggerEffectStopAllSounds() {
m_triggerProcessingMode = true;
stop();
}
function registerBookmarkHandler(bmkIndex, handlerFunc) {
var _local2 = m_sound.getBookmarks();
if (_local2) {
var _local5 = _local2.getBookmarkTime(bmkIndex);
if (_local5 != undefined) {
if (!m_activeBookmarks) {
m_activeBookmarks = new Array();
var _local3 = m_sound.getSoundInstance().getTargetMC();
var thisPtr = this;
m_bookmarkMC = _local3.createEmptyMovieClip("m_bookmarkMC", _local3.getNextHighestDepth());
m_bookmarkMC.onEnterFrame = function () {
thisPtr.onEnterFrameBookmark();
};
}
var _local4 = {time:_local5, handlerFunc:handlerFunc};
m_activeBookmarks.push(_local4);
}
}
}
function onEnterFrameBookmark() {
if (m_activeBookmarks) {
var _local4 = getCurrentPosition();
if (m_lastPos > _local4) {
m_lastPos = undefined;
}
var _local5 = m_activeBookmarks.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = m_activeBookmarks[_local3];
if ((_local4 >= _local2.time) && ((m_lastPos == undefined) || (m_lastPos < _local2.time))) {
_local2.handlerFunc();
}
_local3++;
}
m_lastPos = _local4;
}
}
function clearBookmarkHandlers() {
if (m_activeBookmarks) {
m_activeBookmarks = undefined;
m_bookmarkMC.removeMovieClip();
m_bookmarkMC = undefined;
m_lastPos = undefined;
}
}
var m_curLoopIndex = 0;
var m_triggerProcessingMode = false;
}
Symbol 291 MovieClip [__Packages.fsplayer.res.sounds.CSlideEventSoundsEx] Frame 0
class fsplayer.res.sounds.CSlideEventSoundsEx implements fsplayer.res.sounds.ISlideEventSoundsEx
{
var m_slideIndex, m_sounds, m_soundPlaybackCore;
function CSlideEventSoundsEx (slideIndex, eventSounds, soundPlaybackCore) {
m_slideIndex = slideIndex;
m_sounds = eventSounds;
m_soundPlaybackCore = soundPlaybackCore;
}
function register() {
var _local4 = m_sounds.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_sounds[_local2];
m_soundPlaybackCore.registerSound(_local3);
_local2++;
}
}
}
Symbol 292 MovieClip [__Packages.fsplayer.util.ITimerListener] Frame 0
interface fsplayer.util.ITimerListener
{
}
Symbol 293 MovieClip [__Packages.fsplayer.util.ITimer] Frame 0
interface fsplayer.util.ITimer
{
}
Symbol 294 MovieClip [__Packages.fsplayer.core.playback.slides.CSlidePlaybackSynchronizer] Frame 0
class fsplayer.core.playback.slides.CSlidePlaybackSynchronizer implements fsplayer.core.playback.slides.ISlidePlaybackSynchronizer, fsplayer.util.ITimerListener, fsplayer.core.playback.slides.ISlideInstancePlayerListener
{
var m_steps, m_slideInstancePlayer, m_timer, m_listener, m_oldTime, m_stepIndexNotified;
function CSlidePlaybackSynchronizer (steps, slideInstancePlayer, timer) {
m_steps = steps;
m_slideInstancePlayer = slideInstancePlayer;
m_slideInstancePlayer.setFrameIndex(0);
m_timer = ((timer != undefined) ? (timer) : (new fsplayer.util.CTimer()));
m_timer.setListener(this);
m_timer.stopAt(0);
m_slideInstancePlayer.setListener(this);
var _local5 = new Array();
var _local6 = steps.getStepsCount();
var _local2 = 0;
while (_local2 < _local6) {
var _local3 = steps.getStep(_local2);
if (_local3.getPauseTime() == undefined) {
_local5.push(_local3.getPauseStartTime());
}
_local2++;
}
m_timer.setCheckPoints(_local5);
m_timer.setTimeLimit(steps.getDuration());
}
function play() {
m_timer.resume();
m_playing = true;
suspend(false);
update();
}
function pause() {
m_timer.stop();
m_playing = false;
suspend(false);
update();
}
function playFrom(time) {
m_playing = true;
suspend(false);
m_timer.startFrom(time);
update();
}
function pauseAt(time) {
m_playing = false;
suspend(false);
m_timer.stopAt(time);
update();
}
function getTime() {
return(m_timer.getTime());
}
function isPlaying() {
return(m_playing);
}
function synchronize() {
m_timer.refreshState();
update();
}
function onEnterFrame() {
synchronize();
m_listener.onSlideEnterFrame();
}
function update() {
if (isSuspended()) {
var _local5 = m_steps.getStepEx(m_currentStepIndex);
m_slideInstancePlayer.setFrameIndex(_local5.getEndFrame());
} else {
var _local3 = m_timer.getTime();
var _local2 = m_steps.getFrameIndexByTime(_local3);
var _local4 = m_steps.getStepIndexByFrame(_local2);
m_slideInstancePlayer.setFrameIndex(_local2);
setCurrentStepIndex(_local4);
}
var _local3 = m_timer.getTime();
if (m_oldTime != _local3) {
m_listener.onPositionChanged(getPosition());
}
m_oldTime = _local3;
if (m_stepIndexNotified === undefined) {
m_stepIndexNotified = m_currentStepIndex;
m_listener.onStepIndexChanged(m_currentStepIndex);
}
}
function playFromStep(stepIndex) {
var _local2 = m_steps.getStepEx(stepIndex);
var _local3 = _local2.getStartTime();
setCurrentStepIndex(stepIndex);
playFrom(_local3);
}
function playFromStepEnd(stepIndex) {
var _local2 = m_steps.getStepEx(stepIndex);
var _local3 = _local2.getPauseStartTime();
setCurrentStepIndex(stepIndex);
m_timer.startFrom(_local3);
update();
}
function pauseAtStepStart(stepIndex) {
var _local2 = m_steps.getStepEx(stepIndex);
var _local3 = _local2.getStartTime();
var _local4 = _local2.getPauseEndTime();
setCurrentStepIndex(stepIndex);
m_playing = false;
suspend(_local4 === _local3);
m_timer.stopAt(_local3);
update();
}
function pauseAtStepEnd(stepIndex) {
var _local3 = m_steps.getStepEx(stepIndex);
var _local5 = _local3.getPauseStartTime();
var _local2 = _local3.getPauseEndTime();
setCurrentStepIndex(stepIndex);
m_playing = false;
suspend(true);
var _local4 = ((_local2 == undefined) ? (_local5) : (_local2));
m_timer.stopAt(_local4);
update();
}
function onTimeLimitReached(timer) {
suspend(true);
m_listener.onSlideFinished();
}
function onCheckPointPassed(timer, checkPointIndex) {
suspend(true);
}
function getCurrentStepIndex() {
return(m_currentStepIndex);
}
function getPosition() {
return(m_timer.getTime() / m_steps.getDuration());
}
function isSuspended() {
return(m_suspended);
}
function suspend(val) {
if (m_suspended != val) {
m_suspended = val;
if (val) {
m_listener.onPlaybackSuspended();
} else {
m_listener.onPlaybackResumed();
}
}
}
function setCurrentStepIndex(index) {
var _local3 = m_currentStepIndex;
m_currentStepIndex = index;
if (_local3 != index) {
m_stepIndexNotified = index;
m_listener.onStepIndexChanged(index);
}
}
function setListener(listener) {
m_listener = listener;
}
function activate() {
m_currentStepIndex = 0;
m_stepIndexNotified = undefined;
m_timer.stopAt(0);
m_oldTime = undefined;
m_playing = false;
m_suspended = false;
m_slideInstancePlayer.show();
}
function deactivate() {
}
var m_playing = false;
var m_suspended = false;
var m_currentStepIndex = 0;
}
Symbol 295 MovieClip [__Packages.fsplayer.util.CTimer] Frame 0
class fsplayer.util.CTimer implements fsplayer.util.ITimer
{
var m_timeLimit;
function CTimer () {
}
function startFrom(time) {
m_running = true;
m_time = time;
m_oldTime = time;
refreshTick();
m_startTick = m_tick;
m_startTime = m_time;
}
function stopAt(time) {
m_running = false;
m_time = time;
m_oldTime = time;
}
function stop() {
m_running = false;
}
function resume() {
m_running = true;
refreshTick();
m_startTick = m_tick;
m_startTime = m_time;
}
function getTime() {
return(m_time);
}
function isRunning() {
return(m_running);
}
function setListener(listener) {
m_listener = listener;
}
function setTimeLimit(timeLimit) {
m_timeLimit = timeLimit;
fixTimeLimit();
}
function getTimeLimit() {
return(m_timeLimit);
}
function setCheckPoints(checkPoints) {
m_checkpoints = checkPoints;
fixTimeLimit();
}
function getCheckPoints() {
return(m_checkpoints);
}
function refreshState() {
refreshTick();
if (m_running) {
m_oldTime = m_time;
m_time = ((m_tick - m_startTick) / 1000) + m_startTime;
if (m_oldTime < m_time) {
var _local4 = m_checkpoints.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_checkpoints[_local2];
if ((m_oldTime < _local3) && (_local3 <= m_time)) {
stopAt(_local3);
m_listener.onCheckPointPassed(this, _local2);
break;
}
_local2++;
}
if ((m_running && (m_timeLimit != undefined)) && (m_time >= m_timeLimit)) {
stopAt(m_timeLimit);
m_listener.onTimeLimitReached(this);
}
}
}
}
function refreshTick() {
m_tick = fsplayer.util.CTimeUtils.getTickCount();
}
function getTickInterval() {
return(fsplayer.util.CTimeUtils.getTickInterval(m_tick, m_startTick));
}
function fixTimeLimit() {
var _local2 = m_checkpoints.length - 1;
if ((m_timeLimit != undefined) && (_local2 >= 0)) {
m_timeLimit = Math.max(m_timeLimit, m_checkpoints[_local2]);
}
}
var m_time = 0;
var m_oldTime = 0;
var m_running = false;
var m_tick = 0;
var m_startTick = 0;
var m_startTime = 0;
var m_listener = undefined;
var m_checkpoints = new Array();
}
Symbol 296 MovieClip [__Packages.fsplayer.util.CTimeUtils] Frame 0
class fsplayer.util.CTimeUtils
{
function CTimeUtils () {
}
static function getTickCount() {
return(getTimer());
}
static function getTickInterval(t, t0) {
return(t - t0);
}
static function getTickCountInterval(t0) {
return(getTickInterval(getTickCount(), t0));
}
}
Symbol 297 MovieClip [__Packages.fsplayer.res.slides.branching.CQuizBranching] Frame 0
class fsplayer.res.slides.branching.CQuizBranching implements fsplayer.res.slides.branching.IQuizBranching
{
var m_viewNextSlidesRule, m_passedAction, m_failedAction, m_allowQuizInterruption;
function CQuizBranching (viewNextSlidesRule, allowInterruption, passedAction, failedAction) {
m_viewNextSlidesRule = viewNextSlidesRule;
m_passedAction = passedAction;
m_failedAction = failedAction;
m_allowQuizInterruption = allowInterruption == "1";
}
function getViewNextSlidesRule() {
return(m_viewNextSlidesRule);
}
function getPassedAction() {
return(m_passedAction);
}
function getFailedAction() {
return(m_failedAction);
}
function getAllowQuizInterruption() {
return(m_allowQuizInterruption);
}
}
Symbol 298 MovieClip [__Packages.fsplayer.res.slides.branching.actions.CBranchingAction] Frame 0
class fsplayer.res.slides.branching.actions.CBranchingAction implements fsplayer.res.slides.branching.actions.IBranchingAction
{
var m_type;
function CBranchingAction (type) {
m_type = type;
}
function getType() {
return(m_type);
}
}
Symbol 299 MovieClip [__Packages.fsplayer.res.slides.branching.actions.INavigateToUrlAction] Frame 0
interface fsplayer.res.slides.branching.actions.INavigateToUrlAction extends fsplayer.res.slides.branching.actions.IBranchingAction
{
}
Symbol 300 MovieClip [__Packages.fsplayer.res.slides.branching.actions.CNavigateToUrlAction] Frame 0
class fsplayer.res.slides.branching.actions.CNavigateToUrlAction extends fsplayer.res.slides.branching.actions.CBranchingAction implements fsplayer.res.slides.branching.actions.INavigateToUrlAction
{
var m_url, m_target;
function CNavigateToUrlAction (type, url, target) {
super(type);
m_url = url;
m_target = target;
}
function getUrl() {
return(m_url);
}
function getTarget() {
return(m_target);
}
}
Symbol 301 MovieClip [__Packages.fsplayer.res.slides.branching.actions.CBranchingActionType] Frame 0
class fsplayer.res.slides.branching.actions.CBranchingActionType
{
function CBranchingActionType () {
}
static var GOTO_NEXT_SLIDE = "gotoNextSlide";
static var GOTO_PREVIOUS_SLIDE = "gotoPreviousSlide";
static var GOTO_SLIDE = "gotoSlide";
static var NAVIGATE_TO_URL = "navigateToUrl";
static var CLOSE_PLAYER_WINDOW = "closePlayerWindow";
}
Symbol 302 MovieClip [__Packages.fsplayer.res.slides.branching.actions.IGotoSlideAction] Frame 0
interface fsplayer.res.slides.branching.actions.IGotoSlideAction extends fsplayer.res.slides.branching.actions.IBranchingAction
{
}
Symbol 303 MovieClip [__Packages.fsplayer.res.slides.branching.actions.CGotoSlideAction] Frame 0
class fsplayer.res.slides.branching.actions.CGotoSlideAction extends fsplayer.res.slides.branching.actions.CBranchingAction implements fsplayer.res.slides.branching.actions.IGotoSlideAction
{
var m_slideIndex;
function CGotoSlideAction (type, slideIndex) {
super(type);
m_slideIndex = slideIndex;
}
function getSlideIndex() {
return(m_slideIndex);
}
}
Symbol 304 MovieClip [__Packages.fsplayer.res.CNamedSlideShows] Frame 0
class fsplayer.res.CNamedSlideShows implements fsplayer.res.INamedSlideShows
{
var m_slideShowsNode, m_slideShows, m_numberOfSlideShows;
function CNamedSlideShows (slideShowsNode) {
m_slideShowsNode = slideShowsNode;
var _local5 = slideShowsNode.attributes;
m_slideShows = new Array();
m_numberOfSlideShows = slideShowsNode.childNodes.length;
var _local2 = 0;
while (_local2 < m_numberOfSlideShows) {
var _local3 = new fsplayer.res.CNamedSlideShow(slideShowsNode.childNodes[_local2]);
m_slideShows[_local2] = _local3;
_local2++;
}
}
function getCount() {
return(m_slideShows.length);
}
function getSlideShow(index) {
if ((index < 0) || (index >= getCount())) {
return(undefined);
}
return(m_slideShows[index]);
}
function getSlideShowByName(name) {
var _local2 = 0;
while (_local2 < getCount()) {
if (m_slideShows[_local2].getName() === name) {
return(m_slideShows[_local2]);
}
_local2++;
}
return(undefined);
}
}
Symbol 305 MovieClip [__Packages.fsplayer.res.CNamedSlideShow] Frame 0
class fsplayer.res.CNamedSlideShow implements fsplayer.res.INamedSlideShow
{
var m_slideShowNode, m_name, m_slideIndexes;
function CNamedSlideShow (slideShowNode) {
m_slideShowNode = slideShowNode;
var _local3 = slideShowNode.attributes;
m_name = _local3.name;
var _local4 = _local3.slides;
m_slideIndexes = _local4.split(",");
var _local2;
while (_local2 < m_slideIndexes.length) {
m_slideIndexes[_local2] = Number(m_slideIndexes[_local2]);
_local2++;
}
}
function getName() {
return(m_name);
}
function getSlidesCount() {
return(m_slideIndexes.length);
}
function getSlideIndex(position) {
return(m_slideIndexes[position]);
}
function findSlideAfterPosition(slideIndex, position) {
if (position == undefined) {
position = 0;
}
var _local2 = position;
while (_local2 < m_slideIndexes.length) {
if (m_slideIndexes[_local2] == slideIndex) {
return(_local2);
}
_local2++;
}
return(undefined);
}
function isHyperlinkSlideShow() {
return(false);
}
}
Symbol 306 MovieClip [__Packages.fsplayer.res.narration.CNarrationParser] Frame 0
class fsplayer.res.narration.CNarrationParser
{
function CNarrationParser () {
}
function parseNarration(node) {
var _local2 = cpslabs.utils.CXMLUtils.findFirstChildNode(node, "videoTracks");
var _local4 = ((_local2 != null) ? (parseVideoTracks(_local2)) : (new fsplayer.res.narration.CVideoTracks()));
var _local3 = cpslabs.utils.CXMLUtils.findFirstChildNode(node, "audioTracks");
var _local5 = ((_local3 != null) ? (parseAudioTracks(_local3)) : (new fsplayer.res.narration.CAudioTracks()));
return(new fsplayer.res.narration.CNarration(_local4, _local5));
}
function parseVideoTracks(node) {
var _local6 = new fsplayer.res.narration.CVideoTracks();
var _local5 = node.childNodes;
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2];
var _local4 = parseVideoTrack(_local3);
_local6.addTrack(_local4);
_local2++;
}
return(_local6);
}
function parseVideoTrack(node) {
var _local3 = cpslabs.utils.CXMLUtils.findFirstChildNode(node, "startTimestamp");
var _local15 = parseTimestamp(_local3);
var _local13 = cpslabs.utils.CXMLUtils.findFirstChildNode(node, "endTimestamp");
var _local7 = parseTimestamp(_local13);
var _local2 = node.attributes;
var _local11 = _local2.embedded == "1";
var _local4 = _local2.src;
var _local12 = parseFloat(_local2.width);
var _local14 = parseFloat(_local2.height);
var _local5 = parseFloat(_local2.frameRate);
var _local10 = ((!(_local2.trimLeft === undefined)) ? (parseFloat(_local2.trimLeft)) : 0);
var _local8 = ((_local2.trimRight != undefined) ? (parseFloat(_local2.trimRight)) : 0);
var _local16 = ((_local2.volume != undefined) ? (parseFloat(_local2.volume)) : 1);
var _local9 = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createPresenterVideo(_local4, _local11, _local12, _local14, _local5, _local10, _local8, _local16);
return(new fsplayer.res.narration.CVideoTrack(_local9, _local15, _local7));
}
function parseAudioTracks(node) {
var _local6 = new fsplayer.res.narration.CAudioTracks();
var _local5 = node.childNodes;
var _local2 = 0;
while (_local2 < _local5.length) {
var _local4 = _local5[_local2];
var _local3 = parseAudioTrack(_local4);
_local6.addTrack(_local3);
_local2++;
}
return(_local6);
}
function parseAudioTrack(node) {
var _local3 = cpslabs.utils.CXMLUtils.findFirstChildNode(node, "startTimestamp");
var _local10 = parseTimestamp(_local3);
var _local9 = cpslabs.utils.CXMLUtils.findFirstChildNode(node, "endTimestamp");
var _local5 = parseTimestamp(_local9);
var _local2 = node.attributes;
var _local8 = _local2.soundAssetId;
var _local7 = ((!(_local2.trimLeft === undefined)) ? (parseFloat(_local2.trimLeft)) : 0);
var _local6 = ((_local2.trimRight != undefined) ? (parseFloat(_local2.trimRight)) : 0);
var _local11 = ((_local2.volume != undefined) ? (parseFloat(_local2.volume)) : 1);
return(new fsplayer.res.narration.CAudioTrack(_local10, _local5, _local8, _local7, _local6, _local11));
}
function parseTimestamp(node) {
var _local2 = parseInt(node.attributes.slideIndex);
var _local3 = parseInt(node.attributes.stepIndex);
var _local1 = parseFloat(node.attributes.timeOffset);
return(new fsplayer.res.narration.CTimestamp(_local2, _local3, _local1));
}
}
Symbol 307 MovieClip [__Packages.cpslabs.utils.CXMLUtils] Frame 0
class cpslabs.utils.CXMLUtils
{
function CXMLUtils () {
}
static function findFirstChildNode(parentNode, nodeName) {
var _local3 = parentNode.childNodes.length;
var _local1 = 0;
while (_local1 < _local3) {
if (parentNode.childNodes[_local1].nodeName == nodeName) {
return(parentNode.childNodes[_local1]);
}
_local1++;
}
return(undefined);
}
static function getInnerText(node) {
var _local3 = node.childNodes.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = node.childNodes[_local1];
if (_local2.nodeType == 3) {
return(_local2.nodeValue);
}
_local1++;
}
return("");
}
}
Symbol 308 MovieClip [__Packages.fsplayer.res.narration.CNarrationTracks] Frame 0
class fsplayer.res.narration.CNarrationTracks implements fsplayer.res.narration.INarrationTracks
{
var m_tracks;
function CNarrationTracks () {
m_tracks = new Array();
}
function getCount() {
return(m_tracks.length);
}
function getTrack(index) {
return(m_tracks[index]);
}
function addTrack(track) {
m_tracks.push(track);
}
}
Symbol 309 MovieClip [__Packages.fsplayer.res.narration.CVideoTracks] Frame 0
class fsplayer.res.narration.CVideoTracks extends fsplayer.res.narration.CNarrationTracks implements fsplayer.res.narration.IVideoTracks
{
var getTrack;
function CVideoTracks () {
super();
}
function getVideoTrack(index) {
var _local2 = getTrack(index);
return(fsplayer.res.narration.IVideoTrack(_local2));
}
}
Symbol 310 MovieClip [__Packages.fsplayer.res.narration.CAudioTracks] Frame 0
class fsplayer.res.narration.CAudioTracks extends fsplayer.res.narration.CNarrationTracks implements fsplayer.res.narration.IAudioTracks
{
var getTrack;
function CAudioTracks () {
super();
}
function getAudioTrack(index) {
var _local2 = getTrack(index);
return(fsplayer.res.narration.IAudioTrack(_local2));
}
}
Symbol 311 MovieClip [__Packages.fsplayer.res.narration.CNarration] Frame 0
class fsplayer.res.narration.CNarration implements fsplayer.res.narration.INarration
{
var m_videoTracks, m_audioTracks;
function CNarration (videoTracks, audioTracks) {
m_videoTracks = videoTracks;
m_audioTracks = audioTracks;
}
function getVideoTracks() {
return(m_videoTracks);
}
function getAudioTracks() {
return(m_audioTracks);
}
}
Symbol 312 MovieClip [__Packages.fsplayer.res.narration.CNarrationTrack] Frame 0
class fsplayer.res.narration.CNarrationTrack implements fsplayer.res.narration.INarrationTrack
{
var m_startTimestamp, m_endTimestamp;
function CNarrationTrack (startTimestamp, endTimestamp) {
m_startTimestamp = startTimestamp;
m_endTimestamp = endTimestamp;
}
function getStartTimestamp() {
return(m_startTimestamp);
}
function getEndTimestamp() {
return(m_endTimestamp);
}
}
Symbol 313 MovieClip [__Packages.fsplayer.res.narration.CVideoTrack] Frame 0
class fsplayer.res.narration.CVideoTrack extends fsplayer.res.narration.CNarrationTrack implements fsplayer.res.narration.IVideoTrack
{
var m_video;
function CVideoTrack (video, startTimestamp, endTimestamp) {
super(startTimestamp, endTimestamp);
m_video = video;
}
function getPresenterVideo() {
return(m_video);
}
}
Symbol 314 MovieClip [__Packages.fsplayer.res.narration.CAudioTrack] Frame 0
class fsplayer.res.narration.CAudioTrack extends fsplayer.res.narration.CNarrationTrack implements fsplayer.res.narration.IAudioTrack
{
var m_soundAssetId, m_trimLeft, m_trimRight, m_volume;
function CAudioTrack (startTimestamp, endTimestamp, soundAssetId, trimLeft, trimRight, volume) {
super(startTimestamp, endTimestamp);
m_soundAssetId = soundAssetId;
m_trimLeft = trimLeft;
m_trimRight = trimRight;
m_volume = volume;
}
function getSoundAssetId() {
return(m_soundAssetId);
}
function getTrimLeft() {
return(m_trimLeft);
}
function getTrimRight() {
return(m_trimRight);
}
function getVolume() {
return(m_volume);
}
}
Symbol 315 MovieClip [__Packages.fsplayer.res.narration.CTimestamp] Frame 0
class fsplayer.res.narration.CTimestamp implements fsplayer.res.narration.ITimestamp
{
var m_slideIndex, m_stepIndex, m_timeOffset;
function CTimestamp (slideIndex, stepIndex, timeOffset) {
m_slideIndex = slideIndex;
m_stepIndex = stepIndex;
m_timeOffset = timeOffset;
}
function getSlideIndex() {
return(m_slideIndex);
}
function getStepIndex() {
return(m_stepIndex);
}
function getTimeOffset() {
return(m_timeOffset);
}
static function compare(a, b) {
if (a.getSlideIndex() > b.getSlideIndex()) {
return(1);
}
if (a.getSlideIndex() == b.getSlideIndex()) {
if (a.getStepIndex() > b.getStepIndex()) {
return(1);
}
if (a.getStepIndex() == b.getStepIndex()) {
if (a.getTimeOffset() > b.getTimeOffset()) {
return(1);
}
if (a.getTimeOffset() == b.getTimeOffset()) {
return(0);
}
return(-1);
}
return(-1);
}
return(-1);
}
}
Symbol 316 MovieClip [__Packages.fsplayer.core.playback.video.IPresenterVideoControllerEx] Frame 0
interface fsplayer.core.playback.video.IPresenterVideoControllerEx extends fsplayer.api.IPresenterVideoController
{
}
Symbol 317 MovieClip [__Packages.fsplayer.core.playback.narration.IAudioNarrationController] Frame 0
interface fsplayer.core.playback.narration.IAudioNarrationController extends cpslabs.utils.IMessageBroadcaster
{
}
Symbol 318 MovieClip [__Packages.fsplayer.core.settings.CKeyboardSettings] Frame 0
class fsplayer.core.settings.CKeyboardSettings implements fsplayer.api.IKeyboardSettings
{
var m_actions, m_keyboardEnabled;
function CKeyboardSettings (actionsNode, keyboardEnabled) {
m_actions = new Array();
m_keyboardEnabled = ((keyboardEnabled == false) ? false : true);
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.PLAY_PAUSE));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.NEXT_SLIDE));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.PREVIOUS_SLIDE));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.FIRST_SLIDE));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.LAST_SLIDE));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.LAST_VIEWED_SLIDE));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.SLIDE_START));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.SLIDE_END));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.SEEK_FORWARD));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.SEEK_BACKWARD));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.NEXT_STEP));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.PREVIOUS_STEP));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.VOLUME_UP));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.VOLUME_DOWN));
m_actions.push(new fsplayer.core.settings.CPlaybackAction(fsplayer.api.ActionType.TOGGLE_FULLSCREEN));
if (actionsNode) {
var _local9 = actionsNode.attributes;
var _local8 = actionsNode.childNodes.length;
var _local4;
var _local6 = 0;
while (_local6 < _local8) {
_local4 = actionsNode.childNodes[_local6];
var _local5 = getActionByType(_local4.attributes.name);
if (_local5) {
var _local3;
var _local2 = 0;
while (_local2 < _local4.childNodes.length) {
_local3 = _local4.childNodes[_local2];
_local5.addShortcut(new fsplayer.core.settings.CShortcut(parseInt(_local3.attributes.code), Boolean(parseInt(_local3.attributes.control)), Boolean(parseInt(_local3.attributes.shift))));
_local2++;
}
}
_local6++;
}
}
}
function getPlaybackAction(keyCode, controlPressed, shiftPressed) {
var _local3 = m_actions.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_actions[_local2].assigned(keyCode, controlPressed, shiftPressed)) {
return(m_actions[_local2]);
}
_local2++;
}
return(undefined);
}
function keyboardEnabled() {
return(m_keyboardEnabled);
}
function getActionByType(type) {
var _local2 = 0;
while (_local2 < m_actions.length) {
if (m_actions[_local2].getType() == type) {
return(m_actions[_local2]);
}
_local2++;
}
return(undefined);
}
}
Symbol 319 MovieClip [__Packages.fsplayer.core.settings.CPlaybackAction] Frame 0
class fsplayer.core.settings.CPlaybackAction implements fsplayer.api.IPlaybackAction
{
var m_shortcuts, m_type;
function CPlaybackAction (type, shortcut) {
m_shortcuts = new Array();
m_type = type;
if (shortcut) {
m_shortcuts[0] = shortcut;
}
}
function getType() {
return(m_type);
}
function addShortcut(shortcut) {
m_shortcuts.push(shortcut);
}
function assigned(keyCode, controlPressed, shiftPressed) {
var _local2 = 0;
while (_local2 < m_shortcuts.length) {
if (((m_shortcuts[_local2].code == keyCode) && (m_shortcuts[_local2].control == controlPressed)) && (m_shortcuts[_local2].shift == shiftPressed)) {
return(true);
}
_local2++;
}
return(false);
}
}
Symbol 320 MovieClip [__Packages.fsplayer.core.settings.CShortcut] Frame 0
class fsplayer.core.settings.CShortcut
{
function CShortcut (code, controlPressed, shiftPressed) {
m_code = code;
if (controlPressed != undefined) {
m_control = controlPressed;
}
if (shiftPressed != undefined) {
m_shift = shiftPressed;
}
}
function get code() {
return(m_code);
}
function get shift() {
return(m_shift);
}
function get control() {
return(m_control);
}
var m_code = 0;
var m_shift = false;
var m_control = false;
}
Symbol 321 MovieClip [__Packages.fsplayer.api.ActionType] Frame 0
class fsplayer.api.ActionType
{
function ActionType () {
}
static var PLAY_PAUSE = "playPause";
static var NEXT_SLIDE = "nextSlide";
static var PREVIOUS_SLIDE = "previousSlide";
static var FIRST_SLIDE = "firstSlide";
static var LAST_SLIDE = "lastSlide";
static var LAST_VIEWED_SLIDE = "lastViewedSlide";
static var SLIDE_START = "slideStart";
static var SLIDE_END = "slideEnd";
static var SEEK_FORWARD = "seekForward";
static var SEEK_BACKWARD = "seekBackward";
static var NEXT_STEP = "nextStep";
static var PREVIOUS_STEP = "previousStep";
static var VOLUME_UP = "volumeUp";
static var VOLUME_DOWN = "volumeDown";
static var TOGGLE_FULLSCREEN = "toggleFullscreen";
}
Symbol 322 MovieClip [__Packages.main.CTooltipManager] Frame 0
class main.CTooltipManager
{
var m_tooltipEventListener;
function CTooltipManager () {
Mouse.addListener(this);
}
function setTooltipEventListener(listener) {
m_tooltipEventListener = listener;
}
function showTooltip(id, text) {
if (m_currentId == id) {
clearInterval(m_hidingTimer);
return(undefined);
}
hideTooltipInternal();
showTooltipByTimer(id, text);
}
function hideTooltip(id) {
hideTooltipByTimer();
}
function hideTooltipByTimer() {
clearInterval(m_hidingTimer);
m_hidingTimer = setInterval(this, "hideTooltipInternal", HIDING_TIMEOUT);
}
function showTooltipByTimer(id, text) {
clearInterval(m_showingTimer);
m_currentId = id;
m_showingTimer = setInterval(this, "showTooltipInternal", SHOWING_TIMEOUT, id, text);
}
function showTooltipInternal(id, text) {
clearInterval(m_showingTimer);
m_tooltipEventListener.showTooltip(text);
}
function hideTooltipInternal() {
clearInterval(m_showingTimer);
clearInterval(m_hidingTimer);
if (m_currentId) {
m_currentId = undefined;
}
m_tooltipEventListener.hideTooltip();
}
function onMouseDown() {
hideTooltip();
}
var m_currentId = undefined;
var m_hidingTimer = undefined;
var m_showingTimer = undefined;
static var HIDING_TIMEOUT = 100;
static var SHOWING_TIMEOUT = 500;
}
Symbol 323 MovieClip [__Packages.fsplayer.ui.skins.ISkinEx] Frame 0
interface fsplayer.ui.skins.ISkinEx extends fsplayer.ui.skins.ISkin
{
}
Symbol 324 MovieClip [__Packages.fsplayer.ui.skins.asset.CSkinAssetImpl] Frame 0
class fsplayer.ui.skins.asset.CSkinAssetImpl implements fsplayer.ui.skins.asset.ISkinAsset, fsplayer.res.assets.IAssetLoadingListener
{
var m_listener, m_skinCreator;
function CSkinAssetImpl (loader, target, source, listener) {
m_listener = listener;
loader.loadAsset(target, source, this);
}
function createInstance(name, depth) {
if (depth == undefined) {
depth = m_skinCreator.getNextHighestDepth();
}
var _local2 = m_skinCreator.createEmptyMovieClip(name, depth);
return(m_skinCreator.createSkin(_local2));
}
function onAssetLoadInit(asset) {
m_skinCreator = asset.createInstance("skinCreator");
var thisPtr = this;
m_skinCreator.onEnterFrame = function () {
thisPtr.skinIsReady();
delete this.onEnterFrame;
};
}
function skinIsReady() {
m_listener.onSkinAssetLoadInit(this);
}
function onAssetLoadStart(asset) {
}
function onAssetLoadComplete(asset) {
}
function onAssetLoadProgress(asset, bytesLoaded, bytesTotal) {
}
}
Symbol 325 MovieClip [__Packages.fsplayer.api.IPlayerListenerEx] Frame 0
interface fsplayer.api.IPlayerListenerEx extends fsplayer.api.IPlayerListener
{
}
Symbol 326 MovieClip [__Packages.fsplayer.core.playback.quiz.CQuizApiListener] Frame 0
class fsplayer.core.playback.quiz.CQuizApiListener implements quizmaker.api.IQuizApiListener
{
function CQuizApiListener () {
}
function onQuizInitialized() {
}
function onStartQuiz() {
}
function onTimeout() {
}
function onTimer() {
}
function onChangeCurrentSlide(newSlideIndex, prevSlideIndex) {
}
function onChangeQuestionStatus(question, prevStatus) {
}
function onChangeQuestionAnswer(question) {
}
function onFinalizeQuiz() {
}
function onExitQuiz() {
}
function onSetReviewMode() {
}
function onChangeQuizFinalizationState(enableFinalization) {
}
function onChangeKeyboardFocusState(acquireFocus) {
}
function onQuizResultSendingComplete(success, recipient) {
}
}
Symbol 327 MovieClip [__Packages.fsplayer.core.playback.presentation.IPlaybackModeSwitcher] Frame 0
interface fsplayer.core.playback.presentation.IPlaybackModeSwitcher
{
}
Symbol 328 MovieClip [__Packages.fsplayer.core.playback.presentation.CPlaybackController] Frame 0
class fsplayer.core.playback.presentation.CPlaybackController extends fsplayer.core.playback.quiz.CQuizApiListener implements fsplayer.core.playback.presentation.IPlaybackController, fsplayer.core.loading.ISlideLoadingListener, fsplayer.core.playback.presentation.IPlaybackModeSwitcher
{
var m_slideShowControllers, m_rootSlideShowPlaybackController, m_presentation, m_slideLoadingController, m_playbackSettings, m_invertTransitionPrevSlide, PM_PLAYING, PM_PAUSED, PM_WAITING, PM_SWITCHING, PM_SEEKING, m_playbackMode, m_playing, m_mediaController, m_listeners, m_firstSlideIndex, m_lastSlideIndex, m_startingSlideShowName, m_narrationSynchronizer, m_lastViewedSlide;
function CPlaybackController (presentation, slideLoadingController, bgSoundLoadingController, playbackSettings) {
super();
m_slideShowControllers = new Array();
m_rootSlideShowPlaybackController = new fsplayer.core.playback.presentation.CSlideShowPlaybackController(m_presentation);
m_presentation = presentation;
m_slideLoadingController = slideLoadingController;
m_slideLoadingController.setListener(this);
m_playbackSettings = playbackSettings;
m_pptVersion = presentation.getPptVersion();
if (m_pptVersion >= 2010) {
m_invertTransitionPrevSlide = true;
}
PM_PLAYING = new fsplayer.core.playback.presentation.CPresentationPlaybackModePlaying(this);
PM_PAUSED = new fsplayer.core.playback.presentation.CPresentationPlaybackModePaused(this);
PM_WAITING = new fsplayer.core.playback.presentation.CPresentationPlaybackModeWaiting(this);
PM_SWITCHING = new fsplayer.core.playback.presentation.CPresentationPlaybackModeSlideSwitching(this);
PM_SEEKING = new fsplayer.core.playback.presentation.CPresentationPlaybackModeSeeking(this);
m_playbackMode = PM_WAITING;
m_playing = true;
m_mediaController = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createMediaPlaybackController(presentation, this, bgSoundLoadingController);
m_listeners = new Array();
var _local3 = getSlides();
var _local6 = _local3.getCount();
var _local4 = _local3.getVisibleCount();
if (_local4 > 0) {
m_firstSlideIndex = _local3.visibleIndexToIndex(0);
m_lastSlideIndex = _local3.visibleIndexToIndex(_local4 - 1);
} else {
m_firstSlideIndex = 0;
m_lastSlideIndex = _local6 - 1;
}
m_startingSlideShowName = presentation.getStartingSlideShowName();
}
function getCurrentSlideIndex() {
return(m_currentSlideIndex);
}
function gotoSlide(slideIndex, autoStart) {
gotoSlideEx(slideIndex, autoStart, false);
}
function gotoSlideEx(slideIndex, autoStart, invertTransition) {
if (!m_gotoSlideCalled) {
m_gotoSlideCalled = true;
}
var _local2 = true;
if (slideIndex == (m_currentSlideIndex + 1)) {
var _local5 = getCurrentStepIndex();
var _local3 = getCurrentSlide().getAnimationSteps();
if (_local5 == (_local3.getStepsCount() - 1)) {
_local2 = false;
}
}
var _local4 = _local2 || (getCurrentSlidePlaybackTime() != getCurrentSlideDuration());
m_mediaController.needResync(_local2);
m_mediaController.resyncOnPlay();
gotoSlideNoResync(slideIndex, autoStart, invertTransition == true);
if (_local4 && (m_narrationSynchronizer != null)) {
m_narrationSynchronizer.resync();
}
}
function gotoSlideNoResync(slideIndex, autoStart, invertTransition) {
if ((slideIndex >= 0) && (slideIndex < getSlidesCount())) {
if (slideIndex != getCurrentSlideIndex()) {
var _local4 = getSlide(slideIndex);
if (!_local4.isLoaded()) {
waitForSlide(slideIndex, autoStart);
} else {
switchToSlide(slideIndex, autoStart, invertTransition);
}
} else {
restartCurrentSlide(autoStart);
}
}
}
function registerVideoClip(slideIndex, videoClip, videoId, looping) {
var _local3 = getSlide(slideIndex);
var _local2 = _local3.getPlaybackController();
_local2.registerVideoClip(videoClip, videoId, looping);
}
function gotoLastViewedSlide(autoStart) {
var _local2 = getCurrentSlideIndex();
if (((_local2 != undefined) && (m_lastViewedSlide != undefined)) && (_local2 != m_lastViewedSlide)) {
gotoSlide(m_lastViewedSlide, autoStart);
}
}
function getURL(url, target) {
getURL (url, target);
}
function setPlaybackMode(playbackMode) {
if (m_playbackMode != undefined) {
m_playbackMode.onModeSwitching();
}
m_playbackMode = playbackMode;
}
function play() {
if (!playbackControlIsAccessible()) {
return(undefined);
}
if (isPausedInternal()) {
var _local6 = getCurrentSlide();
if (_local6.isLoaded()) {
m_mediaController.resyncOnPlay();
var _local4 = getCurrentStepIndex();
var _local5 = _local6.getAnimationSteps();
var _local13 = _local5.getStepsCount() - 1;
var _local2 = getCurrentSlidePlaybackTime();
var _local3 = _local5.getStepEx(_local4);
var _local8 = _local3.getPauseStartTime();
var _local9 = _local2 < _local8;
var _local14 = !_local9;
var _local7 = _local3.getPauseTime() != undefined;
var _local11 = _local4 == _local13;
var _local10 = (_local8 - _local2) < 0.001;
var _local12 = _local2 == _local3.getPauseEndTime();
if (_local11) {
if (_local12 || (_local14 && (!_local7))) {
gotoNextSlide();
} else {
startPlayback();
}
} else if (_local7 || (_local9 && (!_local10))) {
startPlayback();
} else {
playFromStep(_local4 + 1);
}
}
}
}
function pause() {
if (!playbackControlIsAccessible()) {
return(undefined);
}
if (!isPausedInternal()) {
var _local2 = getCurrentSlide();
if ((_local2 != undefined) && (_local2.isLoaded())) {
pausePlayback();
}
}
}
function pauseCurrentSlideAt(position) {
if (!playbackControlIsAccessible()) {
return(undefined);
}
var _local2 = getCurrentSlide();
if ((_local2 != undefined) && (_local2.isLoaded())) {
pausePlaybackAt(position);
}
}
function playCurrentSlideFrom(position) {
if (!playbackControlIsAccessible()) {
return(undefined);
}
var _local2 = getCurrentSlide();
if ((_local2 != undefined) && (_local2.isLoaded())) {
startPlaybackFrom(position);
}
}
function isPausedInternal() {
return(m_playbackMode == PM_PAUSED);
}
function isPlayingInternal() {
return((m_playbackMode == PM_PLAYING) || ((m_playbackMode == PM_SWITCHING) && (PM_SWITCHING.__get__resumeSlidePlayback())));
}
function isPlaying() {
return(m_playing);
}
function onSlideTransitionComplete() {
m_transitionIsPlaying = false;
m_transitionPhase = 1;
m_mediaController.onStartSlidePlayback(getCurrentSlideIndex());
getCurrentSlide().getPlaybackController().onSlideTransitionComplete();
}
function onSlideLoadInit(slide) {
m_playbackMode.onSlideLoadInit(slide);
FireEvent("onSlideLoadingComplete", slide.getIndex());
}
function onSlideLoadProgress(slide, bytesLoaded, bytesTotal) {
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function restartCurrentSlide(autoStart) {
if (autoStart || (autoStart == undefined)) {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.startSlide(getCurrentSlide());
m_mediaController.resync(true);
FirePlaybackEventNoDup();
} else {
pauseCurrentSlideAt(0);
}
}
function switchToSlide(slideIndex, autoStart, invertTransition) {
setPlaybackMode(PM_SWITCHING);
var _local2 = getSlide(slideIndex);
var thisPtr = this;
PM_SWITCHING.switchToSlide(_local2, autoStart, invertTransition, false, false, function () {
thisPtr.m_currentSlideIndex = slideIndex;
});
FirePlaybackEventNoDup();
}
function onSlideTransitionStart(oldSlideIndex, newSlideIndex, autoStart) {
if (m_narrationBufferEmpty && (!(oldSlideIndex === undefined))) {
var _local4 = getSlide(oldSlideIndex);
var _local5 = _local4.getPlaybackController();
_local5.onEndBuffering();
}
m_transitionIsPlaying = true;
m_transitionPhase = 0;
m_mediaController.onStartSlideSwitching(newSlideIndex, autoStart);
preloadNextSlide();
if (oldSlideIndex != undefined) {
m_lastViewedSlide = oldSlideIndex;
}
m_oldStep = undefined;
getSlides().slideChanged(m_currentSlideIndex);
if (m_narrationBufferEmpty && (!(newSlideIndex === undefined))) {
var _local6 = getSlide(m_currentSlideIndex);
var _local3 = _local6.getPlaybackController();
_local3.onStartBuffering();
}
FireEvent("onCurrentSlideIndexChanged", m_currentSlideIndex);
}
function onSlideTransitionPhaseChanged(phase) {
m_transitionPhase = phase;
FireEvent("onSlideTransitionPhaseChanged", phase);
}
function gotoPreviousVisibleSlideEnd() {
var _local2 = getSlides().getVisibleSlideNavigationIndex(getCurrentSlide().getIndex(), false);
if (_local2 != undefined) {
m_currentSlideIndex = _local2;
setPlaybackMode(PM_SWITCHING);
PM_SWITCHING.switchToSlide(getCurrentSlide(), false, m_invertTransitionPrevSlide, true, true);
FirePlaybackEventNoDup();
}
}
function waitForSlide(slideIndex, autoStart) {
m_slideLoadingController.enqueueSlide(slideIndex);
setPlaybackMode(PM_WAITING);
PM_WAITING.waitForSlide(slideIndex, autoStart);
FirePlaybackEventNoDup();
}
function pausePlayback() {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseSlide(getCurrentSlide());
m_mediaController.pause();
FirePlaybackEventNoDup();
}
function pausePlaybackAt(position) {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseSlideAt(getCurrentSlide(), position);
m_mediaController.pause();
if (m_narrationSynchronizer != null) {
m_narrationSynchronizer.resync();
}
FirePlaybackEventNoDup();
}
function startPlayback() {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.playSlide(getCurrentSlide());
m_mediaController.play();
FirePlaybackEventNoDup();
}
function startPlaybackFrom(position) {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.playSlideFrom(getCurrentSlide(), position);
m_mediaController.resync(true);
if (m_narrationSynchronizer != null) {
m_narrationSynchronizer.resync();
}
FirePlaybackEventNoDup();
}
function onSlidePlaybackComplete() {
var _local3 = getCurrentSlide();
var _local2 = _local3.getTransition().getAutoChange();
var _local4 = getNextSlideIndex() == undefined;
if (_local4) {
if (_local3.getPlaybackController().getSlideQuiz() == undefined) {
FireEvent(EVENT_PRESENTATION_PLAYBACK_COMPLETE);
if ((m_presentation.isLooped() && (m_automaticSlideSwitching)) && (_local2)) {
gotoVisibleSlide(0);
}
}
} else if (_local2 && (m_automaticSlideSwitching)) {
gotoNextVisibleSlideNoResyncIfNear();
}
}
function enableAutomaticSlideSwitching(autoSwitch) {
m_automaticSlideSwitching = autoSwitch;
}
function getAutomaticSlideSwitching() {
return(m_automaticSlideSwitching);
}
function preloadNextSlide() {
var _local2 = getNextSlideIndex();
if ((_local2 != undefined) && (!getSlide(_local2).isLoaded())) {
m_slideLoadingController.enqueueSlide(_local2);
}
}
function getSlidesCount() {
return(getSlides().getCount());
}
function getSlides() {
return(m_presentation.getSlides());
}
function getSlide(slideIndex) {
return(getSlides().getSlide(slideIndex));
}
function getCurrentSlide() {
var _local2 = getCurrentSlideIndex();
if (_local2 != undefined) {
return(getSlide(_local2));
}
return(undefined);
}
function FireEventImpl(listeners, eventName, args) {
var _local2 = 0;
while (_local2 < listeners.length) {
var _local3 = m_listeners[_local2];
var _local4 = _local3[eventName];
if (_local4 != undefined) {
_local4.apply(_local3, args);
}
_local2++;
}
}
function FireEventEx(listeners, eventName) {
var _local5 = arguments.length;
var _local4 = new Array();
var _local3 = 2;
while (_local3 < _local5) {
_local4.push(arguments[_local3]);
_local3++;
}
FireEventImpl(listeners, eventName, _local4);
}
function FireEvent(eventName) {
var _local5 = arguments.length;
var _local4 = new Array();
var _local3 = 1;
while (_local3 < _local5) {
_local4.push(arguments[_local3]);
_local3++;
}
FireEventImpl(m_listeners, eventName, _local4);
}
function FirePlaybackEventNoDup() {
if (isPlayingInternal() != m_playing) {
m_playing = !m_playing;
FireEvent((m_playing ? "onStartPlayback" : "onPausePlayback"));
}
}
function onSlidePositionChanged() {
var _local3 = getCurrentSlidePlaybackPosition();
FireEvent("onSlidePositionChanged", _local3);
var _local2 = getCurrentStepIndex();
if (_local2 != m_oldStep) {
m_oldStep = _local2;
FireEvent("onAnimationStepChanged", _local2);
}
var _local4 = getCurrentSlideDuration() * _local3;
m_mediaController.onPositionChanged(getCurrentSlideIndex(), _local2, _local4);
}
function gotoNextSlide(autoStart) {
if (namedSlideShowIsPlaying()) {
gotoNextSlideInNamedSlideShow(autoStart);
return(undefined);
}
gotoNextVisibleSlide(autoStart);
}
function gotoNextSlideNoResync() {
if (namedSlideShowIsPlaying()) {
gotoNextSlideInNamedSlideShow();
return(undefined);
}
gotoSlideNoResync(getCurrentSlideIndex() + 1);
}
function gotoPreviousSlide(autoStart) {
if (namedSlideShowIsPlaying()) {
var _local2 = getCurrentSlideShowPlaybackController().getPreviousSlideIndex();
if (_local2 != undefined) {
gotoSlideEx(_local2, autoStart, m_invertTransitionPrevSlide);
}
return(undefined);
}
gotoPreviousVisibleSlide(autoStart, m_invertTransitionPrevSlide);
}
function seek(position) {
if (!playbackControlIsAccessible()) {
return(undefined);
}
if (m_playbackMode != PM_SEEKING) {
var _local2 = isPlayingInternal();
setPlaybackMode(PM_SEEKING);
PM_SEEKING.startSeek(getCurrentSlide(), _local2);
FirePlaybackEventNoDup();
}
PM_SEEKING.seekTo(position);
if (m_narrationSynchronizer != null) {
m_narrationSynchronizer.resync();
}
}
function endSeek(resumePlayback) {
if (!playbackControlIsAccessible()) {
return(undefined);
}
if (m_playbackMode == PM_SEEKING) {
if ((resumePlayback == true) || ((resumePlayback == undefined) && (PM_SEEKING.getPlayState()))) {
startPlayback();
} else {
pausePlayback();
}
}
}
function onSeek() {
m_mediaController.onSeek();
}
function onEndSeek() {
m_mediaController.onEndSeek();
}
function playbackControlIsAccessible() {
return(getCurrentSlideIndex() != undefined);
}
function getCurrentSlidePlaybackPosition() {
return(getCurrentSlide().getPlaybackController().getPosition());
}
function getCurrentSlideDuration() {
return(getCurrentSlide().getDuration());
}
function getMediaPlaybackController() {
return(m_mediaController);
}
function gotoLastStepEnd() {
var _local2 = getCurrentSlide().getAnimationSteps().getStepsCount() - 1;
gotoStepEnd(_local2);
m_mediaController.onGotoLastStepEnd();
}
function gotoStepEnd(stepIndex) {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.gotoStepEnd(getCurrentSlide(), stepIndex);
m_mediaController.resyncOnPlay();
m_mediaController.play();
FirePlaybackEventNoDup();
if (m_narrationSynchronizer != null) {
m_narrationSynchronizer.resync();
}
}
function gotoPreviousStep() {
var _local2 = getCurrentStepIndex();
if (_local2 > 0) {
pauseAtStepEnd(_local2 - 1);
} else {
var _local5 = getCurrentSlide();
var _local4 = _local5.getAnimationSteps();
var _local6 = _local4.getStepEx(0);
var _local3 = getCurrentSlidePlaybackTime();
if (_local3 == 0) {
gotoPreviousVisibleSlideEnd();
} else {
pauseAtStepStart(0);
}
}
}
function getCurrentSlidePlaybackTime() {
return(getCurrentSlidePlaybackPosition() * getCurrentSlideDuration());
}
function gotoNextStep() {
var _local2 = getCurrentStepIndex();
var _local4 = getCurrentSlide().getAnimationSteps();
var _local7 = _local4.getStepsCount() - 1;
var _local6 = getCurrentSlidePlaybackTime();
var _local3 = _local4.getStepEx(_local2);
var _local5 = _local6 < _local3.getPauseStartTime();
if (_local2 < _local7) {
if (isPausedInternal()) {
play();
} else if (_local5 || (_local3.getPauseTime() != undefined)) {
playFromStep(_local2 + 1);
} else {
playFromStepNoResync(_local2 + 1);
}
} else if (isPausedInternal()) {
play();
} else if (_local5) {
gotoLastStepEnd();
} else if (getCurrentSlidePlaybackPosition() < 1) {
gotoNextVisibleSlide();
} else {
gotoNextVisibleSlideNoResyncIfNear();
}
}
function getCurrentStepIndex() {
return(getCurrentSlide().getPlaybackController().getCurrentStepIndex());
}
function setAnimationStepPause(pause) {
m_playbackSettings.setStepAdvancePause(pause);
}
function playFromStep(stepIndex) {
m_mediaController.resyncOnPlay();
playFromStepNoResync(stepIndex);
if (m_narrationSynchronizer != null) {
m_narrationSynchronizer.resync();
}
}
function playFromStepNoResync(stepIndex) {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.playFromStep(getCurrentSlide(), stepIndex);
m_mediaController.play();
FirePlaybackEventNoDup();
}
function pauseAtStepStart(stepIndex) {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseAtStepStart(getCurrentSlide(), stepIndex);
m_mediaController.pause();
m_mediaController.resyncOnPlay();
if (m_narrationSynchronizer != null) {
m_narrationSynchronizer.resync();
}
FirePlaybackEventNoDup();
}
function pauseAtStepEnd(stepIndex) {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseAtStepEnd(getCurrentSlide(), stepIndex);
m_mediaController.pause();
m_mediaController.resyncOnPlay();
if (m_narrationSynchronizer != null) {
m_narrationSynchronizer.resync();
}
FirePlaybackEventNoDup();
}
function getCurrentVisibleSlideIndex() {
return(getCurrentSlide().getVisibleIndex());
}
function gotoVisibleSlide(visibleSlideIndex, autoStart) {
endAllNamedSlideShows(autoStart);
gotoSlide(getSlides().visibleIndexToIndex(visibleSlideIndex), autoStart);
}
function getCurSldIndexNoUndefined() {
if (getCurrentSlideIndex() == undefined) {
return(getSlides().visibleIndexToIndex(0));
}
return(getCurrentSlideIndex());
}
function getNextSlideIndex() {
return(getSlides().getVisibleSlideNavigationIndex(getCurSldIndexNoUndefined(), true));
}
function getPreviousSlideIndex() {
return(getSlides().getVisibleSlideNavigationIndex(getCurSldIndexNoUndefined(), false));
}
function gotoNextVisibleSlide(autoStart) {
if (namedSlideShowIsPlaying()) {
gotoNextSlideInNamedSlideShow(autoStart);
return(undefined);
}
var _local3 = getCurSldIndexNoUndefined();
var _local2 = getSlides().getVisibleSlideNavigationIndex(_local3, true);
if (_local2 == undefined) {
if (m_presentation.isLooped()) {
_local2 = 0;
}
}
if (_local2 != undefined) {
gotoSlide(_local2, autoStart);
}
}
function gotoNextVisibleSlideNoResyncIfNear(autoStart) {
if (namedSlideShowIsPlaying()) {
gotoNextSlideInNamedSlideShow(autoStart);
return(undefined);
}
var _local4 = getCurrentSlideIndex();
if (_local4 == undefined) {
gotoSlide(getSlides().getVisibleSlideNavigationIndex(getCurSldIndexNoUndefined(), true), autoStart);
} else {
var _local2 = getSlides().getVisibleSlideNavigationIndex(getCurSldIndexNoUndefined(), true);
if (_local2 != undefined) {
if ((_local2 - _local4) == 1) {
gotoSlideNoResync(_local2, autoStart);
} else {
gotoSlide(_local2, autoStart);
}
} else if (m_presentation.isLooped()) {
gotoSlide(0, autoStart);
}
}
}
function gotoPreviousVisibleSlide(autoStart, invertTransitionPrevSlide) {
gotoSlideEx(getSlides().getVisibleSlideNavigationIndex(getCurSldIndexNoUndefined(), false), autoStart, invertTransitionPrevSlide);
}
function gotoFirstSlide(autoStart, considerHiddenSlides) {
if (m_startingSlideShowName != undefined) {
startNamedSlideShow(m_startingSlideShowName, false, autoStart);
} else {
gotoSlide(getFirstSlideIndex(considerHiddenSlides), autoStart);
}
}
function getFirstSlideIndex(considerHiddenSlides) {
if (considerHiddenSlides == undefined) {
considerHiddenSlides = ((m_pptVersion >= 2010) ? false : true);
}
var _local2 = (considerHiddenSlides ? 0 : (m_firstSlideIndex));
return(_local2);
}
function gotoLastSlide(autoStart, considerHiddenSlides) {
if (considerHiddenSlides == undefined) {
considerHiddenSlides = ((m_pptVersion >= 2010) ? false : true);
}
gotoSlide(getLastSlideIndex(considerHiddenSlides), autoStart);
}
function getLastSlideIndex(considerHiddenSlides) {
if (considerHiddenSlides == undefined) {
considerHiddenSlides = ((m_pptVersion >= 2010) ? false : true);
}
var _local2 = (considerHiddenSlides ? (getSlidesCount() - 1) : (m_lastSlideIndex));
return(_local2);
}
function setNarrationSynchronizer(narrationSynchronizer) {
m_narrationSynchronizer = narrationSynchronizer;
m_narrationSynchronizer.addListener(fsplayer.core.playback.narration.CNarrationSynchronizerEvent.BUFFER_FULL, this, onNarrationBufferFull);
m_narrationSynchronizer.addListener(fsplayer.core.playback.narration.CNarrationSynchronizerEvent.BUFFER_EMPTY, this, onNarrationBufferEmpty);
}
function registerQuiz(slideIndex, quiz) {
quiz.addListener(this);
var _local2 = getSlide(slideIndex);
var _local3 = _local2.getPlaybackController();
_local3.registerQuiz(quiz);
_local2.disableAutoChange();
FireEvent("onQuizActivated");
}
function getTransitionPhase() {
if (m_playbackMode == PM_SWITCHING) {
return(PM_SWITCHING.getTransitionPhase());
}
return(1);
}
function onKeyboardFocusStateChanged(acquireFocus) {
FireEvent("onKeyboardFocusStateChanged", acquireFocus);
}
function getActiveQuiz() {
var _local2 = getCurrentSlide();
if (_local2 != undefined) {
return(_local2.getPlaybackController().getSlideQuiz());
}
return(undefined);
}
function onLeaveCurrentSlide() {
var _local2 = getNextSlideIndex() == undefined;
if (!_local2) {
gotoNextSlide();
} else if (m_presentation.isLooped() && (m_automaticSlideSwitching)) {
gotoVisibleSlide(0);
}
}
function onPlaybackSuspended() {
m_narrationSynchronizer.setSuspended(true);
FireEvent("onPlaybackSuspended");
}
function onPlaybackResumed() {
m_narrationSynchronizer.setSuspended(false);
FireEvent("onPlaybackResumed");
}
function hyperlinkToSlide(slideIndex) {
m_mediaController.stopCurrentTransitionSound();
if (namedSlideShowIsPlaying()) {
if (getCurrentSlideShowPlaybackController().slideIsWithinCurrentSlideShowAfterCurrent(slideIndex)) {
getCurrentSlideShowPlaybackController().setSlideShowPosition(getCurrentSlideShowPlaybackController().getSlidePositionAfterCurrent(slideIndex));
gotoSlide(slideIndex, true);
} else {
var _local3 = new fsplayer.res.CHyperlinkSlideShow(slideIndex);
var _local4 = new fsplayer.core.playback.presentation.CSlideShowPlaybackController(m_presentation, getSlides(), _local3, true);
getCurrentSlideShowPlaybackController().setLastViewedSlidePosition(getCurrentSlidePlaybackPosition());
m_slideShowControllers.push(_local4);
gotoSlide(slideIndex, true);
}
} else {
gotoSlide(slideIndex, true);
}
}
function hyperlinkToFirstSlide() {
hyperlinkToSlide(getFirstSlideIndex());
}
function hyperlinkToLastSlide() {
hyperlinkToSlide(getLastSlideIndex());
}
function hyperlinkToNextSlide() {
var _local2 = getCurrentSlideIndex();
if (m_pptVersion <= 2003) {
if (_local2 < (getSlidesCount() - 1)) {
_local2++;
hyperlinkToSlide(_local2);
}
} else {
_local2 = getNextSlideIndex();
if (_local2 != undefined) {
hyperlinkToSlide(_local2);
}
}
}
function hyperlinkToPreviousSlide() {
var _local2 = getCurrentSlideIndex();
if (m_pptVersion <= 2003) {
if (_local2 > 0) {
_local2--;
hyperlinkToSlide(_local2);
}
} else {
_local2 = getPreviousSlideIndex();
if (_local2 != undefined) {
hyperlinkToSlide(_local2);
}
}
}
function startNamedSlideShow(slideShowName, showAndReturn, autoStart) {
var _local4 = m_presentation.getNamedSlideShows().getSlideShowByName(slideShowName);
var _local3 = new fsplayer.core.playback.presentation.CSlideShowPlaybackController(m_presentation, getSlides(), _local4, showAndReturn);
if (!namedSlideShowIsPlaying()) {
m_rootSlideShowPlaybackController.setSlideShowPosition(getCurrentSlideIndex());
}
var _local5 = getCurrentSlide();
var _local2 = _local5.isLoaded();
getCurrentSlideShowPlaybackController().setLastViewedSlidePosition((_local2 ? (getCurrentSlidePlaybackPosition()) : 0));
getCurrentSlideShowPlaybackController().setLastViewedSlideStep((_local2 ? (getCurrentStepIndex()) : 0));
_local3.setStartTime(fsplayer.util.CTimeUtils.getTickCount());
m_slideShowControllers.push(_local3);
gotoSlide(getCurrentSlideShowPlaybackController().getFirstSlideIndex(), autoStart);
}
function closePresentation() {
FireEventEx(m_listeners, "onHandleCloseRequest");
if (defaultEndSlideShowHandlerIsEnabled()) {
cpslabs.utils.CFSCommand.quit();
}
}
function enableDefaultEndSlideShowHandler(value) {
m_defaultEndSlideShowHandlerIsEnabled = value;
}
function defaultEndSlideShowHandlerIsEnabled() {
return(m_defaultEndSlideShowHandlerIsEnabled);
}
function endCurrentNamedSlideShow(autoStart) {
if (!namedSlideShowIsPlaying()) {
closePresentation();
return(undefined);
}
var _local17 = m_slideShowControllers.length;
var _local9 = false;
while (m_slideShowControllers.length > 0) {
if (getCurrentSlideShowPlaybackController().getShowAndReturn()) {
_local9 = true;
break;
}
m_slideShowControllers.pop();
}
if (!_local9) {
return(undefined);
}
var _local15 = (fsplayer.util.CTimeUtils.getTickCount() - getCurrentSlideShowPlaybackController().getStartTime()) / 1000;
var _local16 = getCurrentSlideShowPlaybackController().isHyperlinkSlideShow();
m_slideShowControllers.pop();
var _local13;
if (namedSlideShowIsPlaying()) {
_local13 = getCurrentSlideShowPlaybackController().getCurrentSlideIndex();
} else {
_local13 = m_rootSlideShowPlaybackController.getSlideShowPosition();
}
var _local12 = getSlides().getSlide(_local13);
var _local14 = getCurrentSlideShowPlaybackController().getLastViewedSlidePosition();
var _local8 = getCurrentSlideShowPlaybackController().getLastViewedSlidePosition() * _local12.getDuration();
var _local6 = _local8 + _local15;
var _local11 = getCurrentSlideShowPlaybackController().getLastViewedSlideStep();
var _local7 = _local12.getAnimationSteps();
var _local5;
var _local3;
var _local18 = 0;
var _local10 = false;
var _local4 = _local6;
if (_local16) {
_local4 = _local8;
} else {
_local3 = _local11;
while (_local3 < _local7.getStepsCount()) {
_local5 = _local7.getStep(_local3);
if (_local5.getPauseTime() == undefined) {
_local10 = true;
var _local2 = _local5.getPauseStartTime();
if ((Math.abs(_local8 - _local2) < MIN_DELTA) || (Math.abs(_local6 - _local2) < MIN_DELTA)) {
_local4 = _local2;
break;
}
if (_local6 > _local2) {
_local4 = _local2;
}
}
_local3++;
}
if (!_local10) {
if (_local6 > _local12.getDuration()) {
_local4 = _local12.getDuration();
}
}
_local4 = _local4 - MIN_DELTA;
if (_local4 < 0) {
_local4 = 0;
}
}
_local14 = _local4 / _local12.getDuration();
gotoSlide(_local13, false);
playCurrentSlideFrom(_local14);
return(undefined);
}
function endAllNamedSlideShows(autoStart) {
m_slideShowControllers = new Array();
}
function getCurrentSlideShowPlaybackController() {
if (namedSlideShowIsPlaying()) {
return(m_slideShowControllers[m_slideShowControllers.length - 1]);
}
return(m_rootSlideShowPlaybackController);
}
function namedSlideShowIsPlaying() {
return(m_slideShowControllers.length > 0);
}
function quitAfterCurrentSlideShow() {
if (namedSlideShowIsPlaying() && (getCurrentSlideShowPlaybackController().getShowAndReturn())) {
return(false);
}
return(true);
}
function gotoNextSlideInNamedSlideShow(autoStart) {
var _local2 = getCurrentSlideShowPlaybackController().getNextSlideIndex();
if (_local2 != undefined) {
gotoSlide(_local2, autoStart);
} else {
endCurrentNamedSlideShow(autoStart);
}
}
function findPresenterVideo(src, trimLeft, trimRight, volume) {
var _local11 = m_presentation.getNarration();
var _local5 = _local11.getVideoTracks();
var _local6 = _local5.getCount();
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = _local5.getVideoTrack(_local3);
var _local2 = _local4.getPresenterVideo();
if ((((_local2.getSrc() == src) && (_local2.getTrimLeft() == trimLeft)) && (_local2.getTrimRight() == trimRight)) && (_local2.getVolume() == volume)) {
return(_local2);
}
_local3++;
}
return(null);
}
function onExitQuiz() {
var _local3 = getCurrentSlide();
if (_local3 != null) {
if (getNextSlideIndex() === undefined) {
FireEvent(EVENT_PRESENTATION_PLAYBACK_COMPLETE);
}
var _local2 = _local3.getQuizBranching();
if (_local2 != null) {
var _local4 = getActiveQuiz();
if (_local4) {
var _local7 = _local4.getResults();
var _local8 = _local7.getQuizPassed();
var _local6 = (_local8 ? (_local2.getPassedAction()) : (_local2.getFailedAction()));
executeBranchingAction(_local6);
}
} else {
var _local5 = _local3.getPlaybackController();
_local5.leaveSlide();
}
}
FireEvent("onQuizDeactivated");
}
function executeBranchingAction(action) {
var _local7 = action.getType();
switch (_local7) {
case fsplayer.res.slides.branching.actions.CBranchingActionType.GOTO_SLIDE :
var _local5 = fsplayer.res.slides.branching.actions.IGotoSlideAction(action);
var _local3 = _local5.getSlideIndex();
gotoSlide(_local3);
break;
case fsplayer.res.slides.branching.actions.CBranchingActionType.GOTO_NEXT_SLIDE :
gotoNextSlide();
break;
case fsplayer.res.slides.branching.actions.CBranchingActionType.GOTO_PREVIOUS_SLIDE :
gotoPreviousSlide();
break;
case fsplayer.res.slides.branching.actions.CBranchingActionType.NAVIGATE_TO_URL :
var _local2 = fsplayer.res.slides.branching.actions.INavigateToUrlAction(action);
var _local8 = _local2.getUrl();
var _local4 = _local2.getTarget();
getURL (_local8, _local4);
break;
case fsplayer.res.slides.branching.actions.CBranchingActionType.CLOSE_PLAYER_WINDOW :
FireEvent("onBranchingActionClose");
}
}
function onDeactivateCurrentSlide() {
m_mediaController.onDeactivateCurrentSlide();
}
function onNarrationBufferEmpty() {
if (m_narrationBufferEmpty) {
return(undefined);
}
m_narrationBufferEmpty = true;
var _local2 = getSlide(getCurrentSlideIndex()).getPlaybackController();
_local2.onStartBuffering();
m_mediaController.onStartBuffering();
}
function onNarrationBufferFull() {
if (!m_narrationBufferEmpty) {
return(undefined);
}
m_narrationBufferEmpty = false;
var _local2 = getSlide(getCurrentSlideIndex()).getPlaybackController();
_local2.onEndBuffering();
m_mediaController.onEndBuffering();
}
function transitionIsPlaying() {
return(m_transitionIsPlaying);
}
function getCurrentSlideTransitionPhase() {
return(m_transitionPhase);
}
function registerStreamingVideo(slideIndex, video) {
var _local3 = getSlide(slideIndex);
var _local2 = _local3.getPlaybackController();
_local2.registerStreamingVideo(video);
}
var EVENT_PRESENTATION_PLAYBACK_COMPLETE = "onPresentationPlaybackComplete";
var m_currentSlideIndex = undefined;
var m_oldStep = undefined;
var m_automaticSlideSwitching = true;
var m_gotoSlideCalled = false;
var m_narrationBufferEmpty = false;
var MIN_DELTA = 0.01;
var m_defaultEndSlideShowHandlerIsEnabled = true;
var m_transitionIsPlaying = false;
var m_transitionPhase = 0;
var m_pptVersion = 2007;
}
Symbol 329 MovieClip [__Packages.fsplayer.core.playback.presentation.IPresentationPlaybackMode] Frame 0
interface fsplayer.core.playback.presentation.IPresentationPlaybackMode
{
}
Symbol 330 MovieClip [__Packages.fsplayer.core.playback.presentation.CPresentationPlaybackModePlaying] Frame 0
class fsplayer.core.playback.presentation.CPresentationPlaybackModePlaying implements fsplayer.core.playback.presentation.IPresentationPlaybackMode, fsplayer.core.playback.slides.ISlidePlaybackListenerEx
{
var m_modeSwitcher, m_playbackController;
function CPresentationPlaybackModePlaying (modeSwitcher) {
m_modeSwitcher = modeSwitcher;
}
function playSlide(slide) {
setSlide(slide);
m_playbackController.play();
}
function startSlide(slide) {
playSlideFrom(slide, 0);
}
function playSlideFrom(slide, position) {
setSlide(slide);
m_playbackController.playFrom(position);
}
function playFromStep(slide, stepIndex) {
setSlide(slide);
m_playbackController.playFromStep(stepIndex);
}
function onSlideLoadInit(slide) {
}
function onModeSwitching() {
if (m_playbackController != undefined) {
m_playbackController.setListener(undefined);
m_playbackController = undefined;
}
}
function onSlideEnterFrame() {
}
function onSlidePositionChanged(position) {
m_modeSwitcher.onSlidePositionChanged();
}
function onSlidePlaybackComplete() {
m_modeSwitcher.onSlidePlaybackComplete();
}
function onKeyboardFocusStateChanged(acquireFocus) {
m_modeSwitcher.onKeyboardFocusStateChanged(acquireFocus);
}
function setSlide(slide) {
m_playbackController = slide.getPlaybackController();
m_playbackController.setListener(this);
}
function gotoStepEnd(slide, stepIndex) {
setSlide(slide);
m_playbackController.pauseAtStepEnd(stepIndex);
}
function onLeaveCurrentSlide() {
m_modeSwitcher.onLeaveCurrentSlide();
}
function onPlaybackSuspended() {
m_modeSwitcher.onPlaybackSuspended();
}
function onPlaybackResumed() {
m_modeSwitcher.onPlaybackResumed();
}
}
Symbol 331 MovieClip [__Packages.fsplayer.core.playback.presentation.CPresentationPlaybackModePaused] Frame 0
class fsplayer.core.playback.presentation.CPresentationPlaybackModePaused implements fsplayer.core.playback.presentation.IPresentationPlaybackMode, fsplayer.core.playback.slides.ISlidePlaybackListenerEx
{
var m_playbackModeSwitcher, m_playbackController;
function CPresentationPlaybackModePaused (modeSwitcher) {
m_playbackModeSwitcher = modeSwitcher;
}
function setSlide(slide) {
m_playbackController = slide.getPlaybackController();
m_playbackController.setListener(this);
}
function pauseSlide(slide) {
setSlide(slide);
m_playbackController.pause();
}
function pauseSlideAt(slide, position) {
setSlide(slide);
m_playbackController.pauseAt(position);
}
function onSlideLoadInit(slide) {
}
function onModeSwitching() {
if (m_playbackController != undefined) {
m_playbackController.setListener(undefined);
m_playbackController = undefined;
}
}
function onSlidePositionChanged(position) {
m_playbackModeSwitcher.onSlidePositionChanged();
}
function onSlideEnterFrame() {
}
function onSlidePlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
m_playbackModeSwitcher.onKeyboardFocusStateChanged(acquireFocus);
}
function gotoLastStepEnd(slide) {
setSlide(slide);
var _local2 = slide.getAnimationSteps().getStepsCount() - 1;
m_playbackController.pauseAtStepEnd(_local2);
}
function pauseAtStepStart(slide, stepIndex) {
setSlide(slide);
m_playbackController.pauseAtStepStart(stepIndex);
}
function pauseAtStepEnd(slide, stepIndex) {
setSlide(slide);
m_playbackController.pauseAtStepEnd(stepIndex);
}
function onLeaveCurrentSlide() {
m_playbackModeSwitcher.onLeaveCurrentSlide();
}
function onPlaybackSuspended() {
m_playbackModeSwitcher.onPlaybackSuspended();
}
function onPlaybackResumed() {
m_playbackModeSwitcher.onPlaybackResumed();
}
}
Symbol 332 MovieClip [__Packages.fsplayer.core.playback.presentation.CPresentationPlaybackModeWaiting] Frame 0
class fsplayer.core.playback.presentation.CPresentationPlaybackModeWaiting implements fsplayer.core.playback.presentation.IPresentationPlaybackMode
{
var m_modeSwitcher, m_slideIndex, m_autoStart;
function CPresentationPlaybackModeWaiting (modeSwitcher) {
m_modeSwitcher = modeSwitcher;
}
function waitForSlide(slideIndex, autoStart) {
m_slideIndex = slideIndex;
m_autoStart = autoStart;
}
function onSlideLoadInit(slide) {
if (m_slideIndex == slide.getIndex()) {
m_slideIndex = undefined;
m_modeSwitcher.switchToSlide(slide.getIndex(), m_autoStart);
}
}
function onModeSwitching() {
}
function onLeaveCurrentSlide() {
m_modeSwitcher.onLeaveCurrentSlide();
}
}
Symbol 333 MovieClip [__Packages.fsplayer.core.playback.presentation.CPresentationPlaybackModeSlideSwitching] Frame 0
class fsplayer.core.playback.presentation.CPresentationPlaybackModeSlideSwitching implements fsplayer.core.playback.presentation.IPresentationPlaybackMode, fsplayer.core.playback.slides.ISlidePlaybackListenerEx
{
var m_modeSwitcher, m_autoStart, m_oldSlide, m_newSlide, m_invertTransition, m_pauseAtTheEnd, m_transition, m_effect, m_switchStartTime;
function CPresentationPlaybackModeSlideSwitching (modeSwitcher) {
m_modeSwitcher = modeSwitcher;
}
function get resumeSlidePlayback() {
return(m_autoStart);
}
function switchToSlide(slide, autoStart, invertTransition, pauseAtTheEnd, forceTransitionPlayback, slideChangedHandler) {
m_oldSlide = m_newSlide;
m_newSlide = slide;
m_autoStart = autoStart || (autoStart == undefined);
m_invertTransition = invertTransition == true;
m_pauseAtTheEnd = pauseAtTheEnd;
if ((m_oldSlide != undefined) && (m_oldSlide.isLoaded())) {
m_oldSlide.getPlaybackController().setListener(this);
}
pauseOldSlide();
if ((m_oldSlide != undefined) && (m_oldSlide.isLoaded())) {
m_oldSlide.getPlaybackController().deactivate();
m_modeSwitcher.onDeactivateCurrentSlide();
m_oldSlide.getPlaybackController().setListener(undefined);
}
if (slideChangedHandler != null) {
slideChangedHandler();
}
var _local2 = m_newSlide.getPlaybackController();
_local2.setListener(this);
_local2.activate();
if (pauseAtTheEnd) {
var _local5 = m_newSlide.getAnimationSteps().getStepsCount() - 1;
_local2.pauseAtStepEnd(_local5);
}
if (m_invertTransition) {
m_transition = m_oldSlide.getTransition();
} else {
m_transition = m_newSlide.getTransition();
}
var _local3 = getOldTransitionController();
var _local4 = getNewTransitionController();
if (m_invertTransition) {
m_effect = m_transition.getTransitionEffect(_local4, _local3, m_invertTransition);
} else {
m_effect = m_transition.getTransitionEffect(_local3, _local4, m_invertTransition);
}
m_switchStartTime = fsplayer.util.CTimeUtils.getTickCount();
m_modeSwitcher.onSlideTransitionStart(m_oldSlide.getIndex(), m_newSlide.getIndex(), m_autoStart);
if (m_autoStart || (forceTransitionPlayback)) {
m_effect.startEffect();
} else {
onEnterLastTransitionFrame();
}
}
function onSlideLoadInit(slide) {
}
function getPhase() {
var _local3 = getSwitchingInterval();
var _local2 = m_transition.getDuration();
return(((_local2 != 0) ? (Math.min(1, _local3 / _local2)) : 1));
}
function onSlideEnterFrame() {
var _local2 = getPhase();
if (_local2 >= 1) {
m_modeSwitcher.onSlideTransitionPhaseChanged(1);
onEnterLastTransitionFrame();
} else {
m_modeSwitcher.onSlideTransitionPhaseChanged(_local2);
m_effect.applyEffect(_local2);
}
}
function onEnterLastTransitionFrame() {
finishTransition();
if (m_autoStart) {
m_modeSwitcher.startPlayback();
} else {
m_modeSwitcher.pausePlayback();
}
}
function onSlidePlaybackComplete() {
}
function onSlidePositionChanged(position) {
m_modeSwitcher.onSlidePositionChanged();
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function onModeSwitching() {
if (m_effect != undefined) {
finishTransition();
}
}
function finishTransition() {
m_effect.applyEffect(1);
m_effect = undefined;
if (m_oldSlide != undefined) {
getOldTransitionController().hide();
}
var _local2 = getNewTransitionController();
_local2.hideSecondaryMovie();
_local2.hidePrimaryMask();
_local2.bringToFront();
m_modeSwitcher.onSlideTransitionComplete();
}
function getOldTransitionController() {
return(((m_oldSlide != undefined) ? (m_oldSlide.getTransitionController()) : undefined));
}
function getNewTransitionController() {
return(m_newSlide.getTransitionController());
}
function getSwitchingInterval() {
return(fsplayer.util.CTimeUtils.getTickCountInterval(m_switchStartTime) / 1000);
}
function pauseOldSlide() {
if ((m_oldSlide != undefined) && (m_oldSlide.isLoaded())) {
m_oldSlide.getPlaybackController().pause();
}
}
function getTransitionPhase() {
return(getPhase());
}
function onLeaveCurrentSlide() {
}
function onPlaybackSuspended() {
m_modeSwitcher.onPlaybackSuspended();
}
function onPlaybackResumed() {
m_modeSwitcher.onPlaybackResumed();
}
}
Symbol 334 MovieClip [__Packages.fsplayer.core.playback.presentation.CPresentationPlaybackModeSeeking] Frame 0
class fsplayer.core.playback.presentation.CPresentationPlaybackModeSeeking implements fsplayer.core.playback.presentation.IPresentationPlaybackMode, fsplayer.core.playback.slides.ISlidePlaybackListenerEx
{
var m_modeSwitcher, m_playbackController, m_isPlaying, m_slide;
function CPresentationPlaybackModeSeeking (modeSwitcher) {
m_modeSwitcher = modeSwitcher;
}
function onSlideLoadInit(slide) {
}
function onModeSwitching() {
if (m_playbackController != undefined) {
m_modeSwitcher.onEndSeek();
m_playbackController.setListener(undefined);
m_playbackController = undefined;
}
}
function getPlayState() {
return(m_isPlaying);
}
function startSeek(slide, isPlaying) {
m_slide = slide;
m_isPlaying = isPlaying;
m_modeSwitcher.onSeek();
m_playbackController = slide.getPlaybackController();
m_playbackController.setListener(this);
}
function seekTo(position) {
m_playbackController.pauseAt(position);
}
function onSlidePositionChanged(position) {
m_modeSwitcher.onSlidePositionChanged();
}
function onSlideEnterFrame() {
}
function onSlidePlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
m_modeSwitcher.onKeyboardFocusStateChanged(acquireFocus);
}
function onLeaveCurrentSlide() {
}
function onPlaybackSuspended() {
m_modeSwitcher.onPlaybackSuspended();
}
function onPlaybackResumed() {
m_modeSwitcher.onPlaybackResumed();
}
}
Symbol 335 MovieClip [__Packages.fsplayer.core.playback.presentation.ISlideShowPlaybackController] Frame 0
interface fsplayer.core.playback.presentation.ISlideShowPlaybackController
{
}
Symbol 336 MovieClip [__Packages.fsplayer.core.playback.presentation.CSlideShowPlaybackController] Frame 0
class fsplayer.core.playback.presentation.CSlideShowPlaybackController implements fsplayer.core.playback.presentation.ISlideShowPlaybackController
{
var m_presentation, m_slides, m_slideShow, m_showAndReturn, m_slideShowPosition, m_startTime, m_lastViewedSlidePosition, m_lastViewedSlideStep;
function CSlideShowPlaybackController (presentation, slides, slideShow, showAndReturn) {
m_presentation = presentation;
m_slides = slides;
m_slideShow = slideShow;
m_showAndReturn = showAndReturn;
m_slideShowPosition = 0;
}
function getFirstSlideIndex() {
m_slideShowPosition = getFirstSlidePosition();
return(m_slideShow.getSlideIndex(m_slideShowPosition));
}
function getFirstSlidePosition() {
var _local4;
var _local3;
var _local2 = 0;
while (_local2 < m_slideShow.getSlidesCount()) {
_local3 = m_slideShow.getSlideIndex(_local2);
_local4 = m_slides.getSlide(_local3);
if (!_local4.isHidden()) {
return(_local2);
}
_local2++;
}
return(0);
}
function getNextSlideIndex() {
var _local4;
var _local3;
if (m_slideShowPosition == undefined) {
m_slideShowPosition = getFirstSlidePosition();
} else {
var _local5;
var _local7 = m_slides.getSlide(m_slideShow.getSlideIndex(m_slideShowPosition));
var _local6 = _local7.isHidden();
var _local2 = m_slideShowPosition + 1;
while (_local2 < m_slideShow.getSlidesCount()) {
_local3 = m_slideShow.getSlideIndex(_local2);
_local4 = m_slides.getSlide(_local3);
if (_local6 || (!_local4.isHidden())) {
_local5 = _local2;
break;
}
_local2++;
}
if (_local5 == undefined) {
return(undefined);
}
m_slideShowPosition = _local5;
}
return(m_slideShow.getSlideIndex(m_slideShowPosition));
}
function getPreviousSlideIndex() {
var _local6;
var _local7;
if (m_slideShowPosition == undefined) {
m_slideShowPosition = getFirstSlidePosition();
} else {
var _local5;
var _local2 = m_slideShowPosition - 1;
while (_local2 >= 0) {
var _local3 = m_slides.getSlide(m_slideShow.getSlideIndex(m_slideShowPosition));
var _local4 = _local3.isHidden();
if (_local4 || (!_local6.isHidden())) {
_local5 = _local2;
break;
}
_local2--;
}
if (_local5 == undefined) {
return(undefined);
}
m_slideShowPosition = _local5;
}
return(m_slideShow.getSlideIndex(m_slideShowPosition));
}
function getCurrentSlideIndex() {
if (m_slideShowPosition == undefined) {
m_slideShowPosition = getFirstSlidePosition();
}
return(m_slideShow.getSlideIndex(m_slideShowPosition));
}
function slideIsWithinCurrentSlideShowAfterCurrent(slideIndex) {
if (!m_slideShow) {
return(undefined);
}
return(((m_slideShow.findSlideAfterPosition(slideIndex, getSlideShowPosition()) != undefined) ? true : false));
}
function getSlidePositionAfterCurrent(slideIndex) {
return(m_slideShow.findSlideAfterPosition(slideIndex, getSlideShowPosition()));
}
function setStartTime(startTime) {
m_startTime = startTime;
}
function getStartTime() {
return(m_startTime);
}
function setLastViewedSlidePosition(position) {
m_lastViewedSlidePosition = position;
}
function getLastViewedSlidePosition() {
return(m_lastViewedSlidePosition);
}
function setLastViewedSlideStep(step) {
m_lastViewedSlideStep = step;
}
function getLastViewedSlideStep() {
return(m_lastViewedSlideStep);
}
function setSlideShowPosition(position) {
m_slideShowPosition = position;
}
function getSlideShowPosition() {
return(m_slideShowPosition);
}
function getShowAndReturn() {
return(m_showAndReturn);
}
function isHyperlinkSlideShow() {
return(m_slideShow.isHyperlinkSlideShow());
}
}
Symbol 337 MovieClip [__Packages.fsplayer.core.playback.narration.CNarrationSynchronizerEvent] Frame 0
class fsplayer.core.playback.narration.CNarrationSynchronizerEvent
{
function CNarrationSynchronizerEvent () {
}
static var BUFFER_FULL = "bufferFull";
static var BUFFER_EMPTY = "bufferEmpty";
}
Symbol 338 MovieClip [__Packages.fsplayer.res.CHyperlinkSlideShow] Frame 0
class fsplayer.res.CHyperlinkSlideShow implements fsplayer.res.INamedSlideShow
{
var m_slideIndex;
function CHyperlinkSlideShow (slideIndex) {
m_slideIndex = slideIndex;
}
function getName() {
return(undefined);
}
function getSlidesCount() {
return(1);
}
function getSlideIndex(position) {
if (position != 0) {
return(undefined);
}
return(m_slideIndex);
}
function findSlideAfterPosition(slideIndex, position) {
if ((position == undefined) || (position == 0)) {
return(m_slideIndex);
}
return(undefined);
}
function isHyperlinkSlideShow() {
return(true);
}
}
Symbol 339 MovieClip [__Packages.cpslabs.utils.CFSCommand] Frame 0
class cpslabs.utils.CFSCommand
{
function CFSCommand () {
}
static function quit() {
tryCommand("quit");
}
static function tryCommand(command) {
try {
var e = "tryCommand";
_local1;
} catch(_local) {
}
}
}
Symbol 340 MovieClip [__Packages.fsplayer.core.playback.presentation.CPlaybackControllerWrapper] Frame 0
class fsplayer.core.playback.presentation.CPlaybackControllerWrapper implements fsplayer.core.playback.presentation.IPlaybackController
{
var m_playbackController;
function CPlaybackControllerWrapper (playbackController) {
m_playbackController = playbackController;
}
function get playbackController() {
return(m_playbackController);
}
function hyperlinkToSlide(slideIndex) {
m_playbackController.hyperlinkToSlide(slideIndex);
}
function hyperlinkToFirstSlide() {
m_playbackController.hyperlinkToFirstSlide();
}
function hyperlinkToLastSlide() {
m_playbackController.hyperlinkToLastSlide();
}
function hyperlinkToNextSlide() {
m_playbackController.hyperlinkToNextSlide();
}
function hyperlinkToPreviousSlide() {
m_playbackController.hyperlinkToPreviousSlide();
}
function getURL(url, target) {
m_playbackController.getURL(url, target);
}
function registerVideoClip(slideIndex, videoClip, videoId, looping) {
m_playbackController.registerVideoClip(slideIndex, videoClip, videoId, looping);
}
function getMediaPlaybackController() {
return(m_playbackController.getMediaPlaybackController());
}
function setNarrationSynchronizer(narrationSynchronizer) {
m_playbackController.setNarrationSynchronizer(narrationSynchronizer);
}
function getCurrentSlide() {
return(m_playbackController.getCurrentSlide());
}
function registerQuiz(slideIndex, quiz) {
m_playbackController.registerQuiz(slideIndex, quiz);
}
function registerStreamingVideo(slideIndex, video) {
m_playbackController.registerStreamingVideo(slideIndex, video);
}
function getTransitionPhase() {
return(m_playbackController.getTransitionPhase());
}
function startNamedSlideShow(slideShowName, showAndReturn, autoStart) {
m_playbackController.startNamedSlideShow(slideShowName, showAndReturn, autoStart);
}
function endCurrentNamedSlideShow(autoStart) {
m_playbackController.endCurrentNamedSlideShow(autoStart);
}
function namedSlideShowIsPlaying() {
return(m_playbackController.namedSlideShowIsPlaying());
}
function findPresenterVideo(src, trimLeft, trimRight, volume) {
return(m_playbackController.findPresenterVideo(src, trimLeft, trimRight, volume));
}
function getActiveQuiz() {
return(m_playbackController.getActiveQuiz());
}
function addListener(listener) {
m_playbackController.addListener(listener);
}
function removeListener(listener) {
m_playbackController.removeListener(listener);
}
function isPlaying() {
return(m_playbackController.isPlaying());
}
function getCurrentSlideDuration() {
return(m_playbackController.getCurrentSlideDuration());
}
function play() {
m_playbackController.play();
}
function pause() {
m_playbackController.pause();
}
function gotoNextSlide(autoStart) {
m_playbackController.gotoNextSlide(autoStart);
}
function gotoPreviousSlide(autoStart) {
m_playbackController.gotoPreviousSlide(autoStart);
}
function gotoLastViewedSlide(autoStart) {
m_playbackController.gotoLastViewedSlide(autoStart);
}
function getCurrentSlideIndex() {
return(m_playbackController.getCurrentSlideIndex());
}
function gotoSlide(slideIndex, autoStart) {
m_playbackController.gotoSlide(slideIndex, autoStart);
}
function getCurrentSlidePlaybackPosition() {
return(m_playbackController.getCurrentSlidePlaybackPosition());
}
function pauseCurrentSlideAt(position) {
m_playbackController.pauseCurrentSlideAt(position);
}
function playCurrentSlideFrom(position) {
m_playbackController.playCurrentSlideFrom(position);
}
function seek(position) {
m_playbackController.seek(position);
}
function endSeek(resumePlayback) {
m_playbackController.endSeek(resumePlayback);
}
function getCurrentStepIndex() {
return(m_playbackController.getCurrentStepIndex());
}
function gotoNextStep() {
m_playbackController.gotoNextStep();
}
function gotoPreviousStep() {
m_playbackController.gotoPreviousSlide();
}
function setAnimationStepPause(pause) {
m_playbackController.setAnimationStepPause(pause);
}
function playFromStep(stepIndex) {
m_playbackController.playFromStep(stepIndex);
}
function pauseAtStepStart(stepIndex) {
m_playbackController.pauseAtStepStart(stepIndex);
}
function pauseAtStepEnd(stepIndex) {
m_playbackController.pauseAtStepEnd(stepIndex);
}
function enableAutomaticSlideSwitching(autoSwitch) {
m_playbackController.enableAutomaticSlideSwitching(autoSwitch);
}
function getAutomaticSlideSwitching() {
return(m_playbackController.getAutomaticSlideSwitching());
}
function getCurrentVisibleSlideIndex() {
return(m_playbackController.getCurrentVisibleSlideIndex());
}
function gotoVisibleSlide(visibleSlideIndex, autoStart) {
m_playbackController.gotoVisibleSlide(visibleSlideIndex, autoStart);
}
function gotoFirstSlide(autoStart, considerHiddenSlides) {
m_playbackController.gotoFirstSlide(autoStart, considerHiddenSlides);
}
function gotoLastSlide(autoStart, considerHiddenSlides) {
m_playbackController.gotoLastSlide(autoStart, considerHiddenSlides);
}
function getNextSlideIndex() {
return(m_playbackController.getNextSlideIndex());
}
function getPreviousSlideIndex() {
return(m_playbackController.getPreviousSlideIndex());
}
function enableDefaultEndSlideShowHandler(value) {
m_playbackController.enableDefaultEndSlideShowHandler(value);
}
function defaultEndSlideShowHandlerIsEnabled() {
return(m_playbackController.defaultEndSlideShowHandlerIsEnabled());
}
function transitionIsPlaying() {
return(m_playbackController.transitionIsPlaying());
}
function getCurrentSlideTransitionPhase() {
return(m_playbackController.getCurrentSlideTransitionPhase());
}
}
Symbol 341 MovieClip [__Packages.fsplayer.core.playback.presentation.CRestrictedPlaybackController] Frame 0
class fsplayer.core.playback.presentation.CRestrictedPlaybackController extends fsplayer.core.playback.presentation.CPlaybackControllerWrapper implements fsplayer.api.IRestrictedPresentationPlaybackController
{
var m_slides, m_listeners, __get__playbackController, getCurrentSlide;
function CRestrictedPlaybackController (playbackController, slides) {
super(playbackController);
m_slides = slides;
m_listeners = new Array();
}
function addRestrictedListener(listener) {
if ((listener != null) && (cpslabs.utils.CArrayUtils.indexOf(m_listeners, listener) == -1)) {
m_listeners.push(listener);
}
}
function removeRestrictedListener(listener) {
if ((listener != null) && (cpslabs.utils.CArrayUtils.indexOf(m_listeners, listener) != -1)) {
cpslabs.utils.CArrayUtils.removeItem(m_listeners, listener);
}
}
function gotoNextSlide(autoStart) {
var _local3 = getGotoNextSlideRestriction();
if (_local3 != null) {
fireSlideChangeRestrictionEvent(_local3);
return(undefined);
}
super.gotoNextSlide(autoStart);
}
function getGotoNextSlideRestriction() {
var _local2 = __get__playbackController().getNextSlideIndex();
return(detectSlideChangeRestriction(_local2));
}
function gotoPreviousSlide(autoStart) {
var _local3 = getGotoPreviousSlideRestriction();
if (_local3 != null) {
fireSlideChangeRestrictionEvent(_local3);
return(undefined);
}
super.gotoPreviousSlide(autoStart);
}
function getGotoPreviousSlideRestriction() {
var _local2 = __get__playbackController().getPreviousSlideIndex();
return(detectSlideChangeRestriction(_local2));
}
function gotoSlide(slideIndex, autoStart) {
var _local3 = getGotoSlideRestriction(slideIndex);
if (_local3 != null) {
fireSlideChangeRestrictionEvent(_local3);
return(undefined);
}
super.gotoSlide(slideIndex, autoStart);
}
function getGotoSlideRestriction(slideIndex) {
return(detectSlideChangeRestriction(slideIndex));
}
function gotoVisibleSlide(visibleSlideIndex, autoStart) {
var _local3 = getGotoVisibleSlideRestriction(visibleSlideIndex);
if (_local3 != null) {
fireSlideChangeRestrictionEvent(_local3);
return(undefined);
}
super.gotoVisibleSlide(visibleSlideIndex, autoStart);
}
function getGotoVisibleSlideRestriction(visibleSlideIndex) {
var _local2 = m_slides.visibleIndexToIndex(visibleSlideIndex);
return(detectSlideChangeRestriction(_local2));
}
function gotoNextStep() {
var _local2 = getGotoNextSlideRestriction();
if (_local2 != null) {
fireSlideChangeRestrictionEvent(_local2);
return(undefined);
}
__get__playbackController().gotoNextStep();
}
function getGotoNextStepRestriction() {
var _local4 = __get__playbackController().getCurrentStepIndex();
var _local2 = __get__playbackController().getCurrentSlide().getAnimationSteps();
var _local3 = _local2.getStepsCount() - 1;
if (_local4 == _local3) {
return(getGotoNextSlideRestriction());
}
return(null);
}
function gotoPreviousStep() {
var _local2 = getGotoPreviousStepRestriction();
if (_local2 != null) {
fireSlideChangeRestrictionEvent(_local2);
return(undefined);
}
__get__playbackController().gotoPreviousStep();
}
function getGotoPreviousStepRestriction() {
if (__get__playbackController().getCurrentStepIndex() == 0) {
return(getGotoPreviousSlideRestriction());
}
return(null);
}
function getLastSlideIndex(considerHiddenSlides) {
if (considerHiddenSlides === undefined) {
considerHiddenSlides = true;
}
if (considerHiddenSlides) {
var _local2 = m_slides.getVisibleSlide(m_slides.getVisibleCount() - 1);
return(_local2.getIndex());
}
return(m_slides.getCount());
}
function getFirstSlideIndex(considerHiddenSlides) {
if (considerHiddenSlides === undefined) {
considerHiddenSlides = true;
}
if (considerHiddenSlides) {
var _local2 = m_slides.getVisibleSlide(0);
return(_local2.getIndex());
}
return(0);
}
function gotoLastSlide(autoStart, considerHiddenSlides) {
var _local3 = getGotoLastSlideRestriction(considerHiddenSlides);
if (_local3 != null) {
fireSlideChangeRestrictionEvent(_local3);
return(undefined);
}
super.gotoLastSlide(autoStart, considerHiddenSlides);
}
function getGotoLastSlideRestriction(considerHiddenSlides) {
var _local2 = getLastSlideIndex(considerHiddenSlides);
return(detectSlideChangeRestriction(_local2));
}
function gotoFirstSlide(autoStart, considerHiddenSlides) {
var _local3 = getGotoFirstSlideRestriction(considerHiddenSlides);
if (_local3 != null) {
fireSlideChangeRestrictionEvent(_local3);
return(undefined);
}
super.gotoFirstSlide(autoStart, considerHiddenSlides);
}
function getGotoFirstSlideRestriction(considerHiddenSlides) {
var _local2 = getFirstSlideIndex(considerHiddenSlides);
return(detectSlideChangeRestriction(_local2));
}
function detectSlideChangeRestriction(targetSlideIndex) {
var _local15 = fsplayer.api.IPresentationPlaybackControllerEx(__get__playbackController());
var _local10 = _local15.getActiveQuiz();
if (_local10 != null) {
var _local11 = _local10.getQuizStatus();
var _local14 = (_local11 != quizmaker.api.CQuizStatus.STOP) && (_local11 != quizmaker.api.CQuizStatus.REVIEW);
var _local12 = true;
var _local13 = getCurrentSlide();
if (_local13 != null) {
var _local4 = _local13.getQuizBranching();
_local12 = _local4.getAllowQuizInterruption();
}
if (_local14 && (!_local12)) {
return(new fsplayer.core.playback.presentation.CSlideChangeRestriction(fsplayer.api.restriction.CSlideChangeRestrictionType.QUIZ_NOT_COMPLETED));
}
}
var _local16 = __get__playbackController().namedSlideShowIsPlaying();
if ((!(targetSlideIndex === undefined)) && (!_local16)) {
var _local3 = 0;
while (_local3 < targetSlideIndex) {
var _local2 = m_slides.getSlide(_local3);
if (_local2.getVisibleIndex() === undefined) {
} else {
var _local4 = _local2.getQuizBranching();
if (_local4 != null) {
var _local5 = _local2.isLoaded();
var _local7 = (_local5 ? (_local2.getPlaybackController().slideQuizCompleted()) : false);
var _local8 = (_local5 ? (_local2.getPlaybackController().slideQuizPassed()) : false);
var _local6 = _local4.getViewNextSlidesRule();
if ((_local6 == fsplayer.res.slides.branching.CViewNextSlidesRule.AFTER_ATTEMPT) && (!_local7)) {
return(new fsplayer.core.playback.presentation.CSlideChangeRestriction(fsplayer.api.restriction.CSlideChangeRestrictionType.PRECEDING_QUIZ_NOT_COMPLETED, _local3));
}
if ((_local6 == fsplayer.res.slides.branching.CViewNextSlidesRule.AFTER_PASSING) && (!_local8)) {
return(new fsplayer.core.playback.presentation.CSlideChangeRestriction(fsplayer.api.restriction.CSlideChangeRestrictionType.PRECEDING_QUIZ_NOT_PASSED, _local3));
}
}
}
_local3++;
}
}
return(null);
}
function checkSlideChangeAvailable(targetSlideIndex) {
var _local2 = detectSlideChangeRestriction(targetSlideIndex);
if (_local2 != null) {
fireSlideChangeRestrictionEvent(_local2);
return(false);
}
return(true);
}
function fireSlideChangeRestrictionEvent(restriction) {
fireEvent("onSlideChangeRestiction", restriction);
}
function fireEvent(eventName) {
arguments.shift();
var _local3 = 0;
while (_local3 < m_listeners.length) {
var _local4 = m_listeners[_local3];
var _local5 = _local4[eventName];
_local5.apply(_local4, arguments);
_local3++;
}
}
}
Symbol 342 MovieClip [__Packages.cpslabs.utils.CArrayUtils] Frame 0
class cpslabs.utils.CArrayUtils
{
function CArrayUtils () {
}
static function indexOf(arr, object) {
var _local3 = arr.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = arr[_local1];
if (_local2 == object) {
return(_local1);
}
_local1++;
}
return(-1);
}
static function removeItem(arr, item, all) {
if (all === undefined) {
all = true;
}
var _local3 = false;
var _local1 = -1;
do {
_local1 = indexOf(arr, item);
if (_local1 == -1) {
break;
}
arr.splice(_local1, 1);
_local3 = true;
} while (all);
return(_local3);
}
static function shuffle(arr) {
var _local5 = arr.length;
var _local1 = 0;
while (_local1 < _local5) {
var _local3 = _local1 + Math.floor(Math.random() * (_local5 - _local1));
var _local4 = arr[_local1];
arr[_local1] = arr[_local3];
arr[_local3] = _local4;
_local1++;
}
}
static function copy(arr) {
return(arr.slice());
}
}
Symbol 343 MovieClip [__Packages.quizmaker.api.CQuizStatus] Frame 0
class quizmaker.api.CQuizStatus
{
function CQuizStatus () {
}
static var INIT = 0;
static var TEST = 1;
static var STOP = 2;
static var REVIEW = 3;
static var INIT_USER = 4;
}
Symbol 344 MovieClip [__Packages.fsplayer.core.playback.presentation.CSlideChangeRestriction] Frame 0
class fsplayer.core.playback.presentation.CSlideChangeRestriction implements fsplayer.api.restriction.ISlideChangeRestriction
{
var m_type, m_relatedSlideIndex;
function CSlideChangeRestriction (type, relatedSlideIndex) {
m_type = type;
m_relatedSlideIndex = relatedSlideIndex;
}
function getType() {
return(m_type);
}
function getRelatedSlideIndex() {
return(m_relatedSlideIndex);
}
}
Symbol 345 MovieClip [__Packages.fsplayer.api.restriction.CSlideChangeRestrictionType] Frame 0
class fsplayer.api.restriction.CSlideChangeRestrictionType
{
function CSlideChangeRestrictionType () {
}
static var QUIZ_NOT_COMPLETED = "quizNotCompleted";
static var PRECEDING_QUIZ_NOT_PASSED = "precedingQuizNotPassed";
static var PRECEDING_QUIZ_NOT_COMPLETED = "precedingQuizNotCompleted";
}
Symbol 346 MovieClip [__Packages.fsplayer.res.slides.branching.CViewNextSlidesRule] Frame 0
class fsplayer.res.slides.branching.CViewNextSlidesRule
{
function CViewNextSlidesRule () {
}
static var AT_ANY_TIME = "atAnyTime";
static var AFTER_ATTEMPT = "afterAttempt";
static var AFTER_PASSING = "afterPassing";
}
Symbol 347 MovieClip [__Packages.fsplayer.core.CHyperlinkManager] Frame 0
class fsplayer.core.CHyperlinkManager implements fsplayer.api.core.IHyperlinkManager
{
var m_playbackController;
function CHyperlinkManager (playbackController) {
m_playbackController = playbackController;
}
function gotoSlide(slideIndex) {
m_playbackController.hyperlinkToSlide(slideIndex);
}
function gotoLastViewedSlide() {
m_playbackController.gotoLastViewedSlide();
}
function gotoFirstSlide() {
m_playbackController.hyperlinkToFirstSlide();
}
function gotoLastSlide() {
m_playbackController.hyperlinkToLastSlide();
}
function gotoNextSlide() {
m_playbackController.hyperlinkToNextSlide();
}
function gotoPreviousSlide() {
m_playbackController.hyperlinkToPreviousSlide();
}
function getURL(url, target) {
m_playbackController.getURL(url, target);
}
function endShow() {
m_playbackController.endCurrentNamedSlideShow();
}
function startNamedSlideShow(slideShowName, showAndReturn) {
m_playbackController.startNamedSlideShow(slideShowName, showAndReturn);
}
}
Symbol 348 MovieClip [__Packages.fsplayer.core.playback.video.CPresenterVideoPlayer] Frame 0
class fsplayer.core.playback.video.CPresenterVideoPlayer implements fsplayer.api.video.IVideoPlayer, fsplayer.api.core.video.IVideoClipListener
{
var m_info, m_currentVideoClip;
function CPresenterVideoPlayer (info) {
m_info = info;
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function open(source, trimLeft, trimRight, volume) {
close();
var _local2 = m_info.findPresenterVideo(source, trimLeft, trimRight, volume);
if (_local2) {
m_videoPlaybackCompleted = false;
m_videoLoaded = false;
var _local3 = m_info.getPresenterVideoWindow().getPresenterVideoTarget();
m_isVideoEmbedded = _local2.getEmbedded();
if (!m_isVideoEmbedded) {
onVideoClipBufferEmpty();
}
m_currentVideoClip = _local2.createVideo(_local3);
m_currentVideoClip.addListener(this);
}
}
function close() {
if (m_currentVideoClip) {
m_currentVideoClip.close();
}
m_currentVideoClip = undefined;
}
function hasVideo() {
return(m_currentVideoClip != undefined);
}
function pause() {
if (m_currentVideoClip) {
m_currentVideoClip.pause();
}
}
function play() {
if (m_currentVideoClip) {
m_currentVideoClip.play();
}
}
function isPlaying() {
return((m_currentVideoClip ? (m_currentVideoClip.isPlaying()) : undefined));
}
function seek(time) {
if (m_currentVideoClip) {
(isPlaying() ? (m_currentVideoClip.play(time)) : (m_currentVideoClip.pause(time)));
m_videoPlaybackCompleted = false;
if ((!m_videoLoaded) && (!m_isVideoEmbedded)) {
onVideoClipBufferEmpty();
}
}
}
function getPlaybackTime() {
return((m_currentVideoClip ? (m_currentVideoClip.getPosition()) : undefined));
}
function getDuration() {
return((m_currentVideoClip ? (m_currentVideoClip.getDuration()) : undefined));
}
function onVideoClipPlaybackStart(videoClip, parameter) {
}
function onVideoClipMouseClick(videoClip, parameter) {
}
function onVideoClipReady(videoClip, parameter) {
}
function onVideoClipLoadingProgress(videoClip, progress, parameter) {
}
function onVideoClipPlaybackComplete(videoClip, parameter) {
m_videoPlaybackCompleted = true;
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
m_listeners[_local2].onPlaybackComplete(this);
_local2++;
}
}
function onVideoClipLoadComplete(videoClip, parameter) {
m_videoLoaded = true;
}
function onVideoClipBufferEmpty(videoClip, parameter) {
if ((!m_videoPlaybackCompleted) && (!m_isVideoEmbedded)) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
m_listeners[_local2].onBufferEmpty(this);
_local2++;
}
}
}
function onVideoClipBufferFull(videoClip, parameter) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
m_listeners[_local2].onBufferFull(this);
_local2++;
}
}
var m_listeners = new Array();
var m_videoPlaybackCompleted = false;
var m_videoLoaded = false;
var m_isVideoEmbedded = true;
}
Symbol 349 MovieClip [__Packages.fsplayer.core.playback.narration.INarrationControllerCore] Frame 0
interface fsplayer.core.playback.narration.INarrationControllerCore extends cpslabs.utils.IMessageBroadcaster
{
}
Symbol 350 MovieClip [__Packages.cpslabs.utils.CMessageBroadcaster] Frame 0
class cpslabs.utils.CMessageBroadcaster implements cpslabs.utils.IMessageBroadcaster
{
var m_events, m_id;
function CMessageBroadcaster () {
m_events = new Object();
}
function get id() {
return(m_id);
}
function set id(objectId) {
m_id = objectId;
//return(id);
}
function addListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
_local2 = new Array();
m_events[eventName] = _local2;
}
var _local3 = new Object();
_local3.handler = handler;
_local3.listener = listener;
_local2.push(_local3);
}
function removeListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
return(false);
}
if (listener == undefined) {
delete m_events[eventName];
return(true);
}
if (handler == undefined) {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if (_local4.listener == listener) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
} else {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if ((_local4.listener == listener) && (_local4.handler == handler)) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
}
return(false);
}
function broadcastMessage(eventName) {
var _local5 = m_events[eventName];
if (_local5 && (_local5.length > 0)) {
var _local6 = _local5.length;
arguments.shift();
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = _local5[_local3];
_local4.handler.apply(_local4.listener, arguments);
_local3++;
}
}
}
}
Symbol 351 MovieClip [__Packages.fsplayer.core.playback.narration.CNarrationControllerCore] Frame 0
class fsplayer.core.playback.narration.CNarrationControllerCore extends cpslabs.utils.CMessageBroadcaster implements fsplayer.core.playback.narration.INarrationControllerCore, fsplayer.api.IPlaybackListener
{
var m_tracks, m_slides, m_playbackController, m_currentTrackIndex, broadcastMessage;
function CNarrationControllerCore (tracks, playbackController, slides) {
super();
m_tracks = tracks;
m_slides = slides;
m_playbackController = playbackController;
m_playbackController.addListener(this);
}
function getTracks() {
return(m_tracks);
}
function isPlaying() {
return(m_playbackController.isPlaying() && (!m_suspended));
}
function getCurrentTrackPosition() {
var _local3 = getCurrentTimestamp();
var _local5 = convertTimestampToTime(_local3, true, false);
var _local2 = m_tracks.getTrack(m_currentTrackIndex);
var _local4 = convertTimestampToTime(_local2.getStartTimestamp(), true, false);
return(_local5 - _local4);
}
function getCurrentTrackIndex() {
return(m_currentTrackIndex);
}
function resync() {
if (!(m_currentTrackIndex === undefined)) {
var _local2 = getCurrentTrackPosition();
broadcastMessage(fsplayer.core.playback.narration.CNarrationPlaybackEvent.SEEK_TRACK, _local2);
}
}
function onSlidePositionChanged(position) {
var _local7 = m_tracks.getCount();
var _local2 = 0;
while (_local2 < _local7) {
var _local3 = m_tracks.getTrack(_local2);
var _local6 = _local3.getStartTimestamp();
var _local4 = _local3.getEndTimestamp();
if (insideInterval(_local6, _local4)) {
if (m_currentTrackIndex != _local2) {
if (!(m_currentTrackIndex === undefined)) {
broadcastMessage(fsplayer.core.playback.narration.CNarrationPlaybackEvent.DEACTIVATE_TRACK);
}
m_currentTrackIndex = _local2;
var _local5 = getCurrentTrackPosition();
broadcastMessage(fsplayer.core.playback.narration.CNarrationPlaybackEvent.ACTIVATE_TRACK, m_currentTrackIndex, _local5);
}
} else if (m_currentTrackIndex == _local2) {
broadcastMessage(fsplayer.core.playback.narration.CNarrationPlaybackEvent.DEACTIVATE_TRACK);
m_currentTrackIndex = undefined;
}
_local2++;
}
}
function getCurrentTimestamp() {
var _local4 = m_playbackController.getCurrentSlideIndex();
var _local2 = m_slides.getSlide(_local4);
var _local3 = m_playbackController.getCurrentStepIndex();
var _local9 = _local2.getAnimationSteps().getStep(_local3);
var _local5 = m_playbackController.getCurrentSlidePlaybackPosition();
var _local8 = _local5 * _local2.getDuration(false);
var _local7 = _local2.getStartTime() + _local8;
var _local6 = _local7 - (_local2.getStartTime() + _local9.getStartTime());
return(new fsplayer.res.narration.CTimestamp(_local4, _local3, _local6));
}
function insideInterval(start, end) {
var _local2 = getCurrentTimestamp();
var _local3 = fsplayer.res.narration.CTimestamp.compare(_local2, start) >= 0;
var _local4 = fsplayer.res.narration.CTimestamp.compare(_local2, end) < 0;
return(_local3 && (_local4));
}
function onPausePlayback() {
if (!m_suspended) {
pauseTrack();
}
}
function onStartPlayback() {
if (!m_suspended) {
resumeTrack();
}
}
function getSuspended() {
return(m_suspended);
}
function setSuspended(value) {
if (m_suspended == value) {
return(undefined);
}
var _local3 = isPlaying();
m_suspended = value;
var _local2 = isPlaying();
if (_local3 != _local2) {
if (_local2) {
resumeTrack();
} else {
pauseTrack();
}
}
}
function pauseTrack() {
if (!(m_currentTrackIndex === undefined)) {
broadcastMessage(fsplayer.core.playback.narration.CNarrationPlaybackEvent.PAUSE_TRACK);
}
}
function resumeTrack() {
if (!(m_currentTrackIndex === undefined)) {
var _local2 = getCurrentTrackPosition();
broadcastMessage(fsplayer.core.playback.narration.CNarrationPlaybackEvent.PLAY_TRACK, _local2);
}
}
function convertTimestampToTime(timestamp, considerTransitions, skipHiddenSlides) {
if (considerTransitions === undefined) {
considerTransitions = true;
}
if (skipHiddenSlides === undefined) {
skipHiddenSlides = true;
}
var _local2;
var _local4 = 0;
var _local3 = 0;
while (_local3 < timestamp.getSlideIndex()) {
_local2 = m_slides.getSlide(_local3);
if ((!skipHiddenSlides) || (!(_local2.getVisibleIndex() === undefined))) {
var _local11 = _local2.getTransition();
if (considerTransitions && (_local11 != null)) {
_local4 = _local4 + _local11.getDuration();
}
_local4 = _local4 + _local2.getAnimationSteps().getDuration();
}
_local3++;
}
_local2 = m_slides.getSlide(timestamp.getSlideIndex());
if ((!skipHiddenSlides) || (!(_local2.getVisibleIndex() === undefined))) {
if (timestamp.getStepIndex() >= 0) {
var _local11 = _local2.getTransition();
if (considerTransitions && (_local11 != null)) {
_local4 = _local4 + _local11.getDuration();
}
var _local8 = _local2.getAnimationSteps();
var _local10 = _local8.getStep(timestamp.getStepIndex());
var _local9 = _local10.getStartTime();
_local4 = _local4 + (_local9 + timestamp.getTimeOffset());
} else {
var _local11 = _local2.getTransition();
if (considerTransitions && (_local11 != null)) {
_local4 = _local4 + timestamp.getTimeOffset();
}
}
}
return(_local4);
}
function onAnimationStepChanged(stepIndex) {
}
function onSlideTransitionPhaseChanged(phase) {
}
function onCurrentSlideIndexChanged(slideIndex) {
}
function onSlideLoadingComplete(slideIndex) {
}
function onPresentationPlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function onHandleCloseRequest() {
}
function onPlaybackSuspended() {
}
function onPlaybackResumed() {
}
var m_suspended = false;
}
Symbol 352 MovieClip [__Packages.fsplayer.core.playback.narration.CNarrationPlaybackEvent] Frame 0
class fsplayer.core.playback.narration.CNarrationPlaybackEvent
{
function CNarrationPlaybackEvent () {
}
static var ACTIVATE_TRACK = "activateTrack";
static var DEACTIVATE_TRACK = "deactivateTrack";
static var PAUSE_TRACK = "pauseTrack";
static var PLAY_TRACK = "playTrack";
static var SEEK_TRACK = "resync";
}
Symbol 353 MovieClip [__Packages.fsplayer.core.playback.narration.CVideoNarrationController] Frame 0
class fsplayer.core.playback.narration.CVideoNarrationController implements fsplayer.core.playback.video.IPresenterVideoControllerEx, fsplayer.api.video.IVideoPlayerListener
{
var m_core, m_tracks, m_internalPlayer, m_extenralPlayer, m_listeners, m_trackIndexToDuration, m_currentVideo, m_currentPlayer;
function CVideoNarrationController (core, internalVideoPlayer, externalVideoPlayer, syncWithVideoNarration) {
m_core = core;
m_core.addListener(fsplayer.core.playback.narration.CNarrationPlaybackEvent.ACTIVATE_TRACK, this, onActivateTrack);
m_core.addListener(fsplayer.core.playback.narration.CNarrationPlaybackEvent.DEACTIVATE_TRACK, this, onDeactivateTrack);
m_core.addListener(fsplayer.core.playback.narration.CNarrationPlaybackEvent.PAUSE_TRACK, this, onPauseTrack);
m_core.addListener(fsplayer.core.playback.narration.CNarrationPlaybackEvent.PLAY_TRACK, this, onPlayTrack);
m_core.addListener(fsplayer.core.playback.narration.CNarrationPlaybackEvent.SEEK_TRACK, this, onSeekTrack);
m_tracks = fsplayer.res.narration.IVideoTracks(m_core.getTracks());
m_internalPlayer = internalVideoPlayer;
m_extenralPlayer = externalVideoPlayer;
m_syncWithVideoNarration = syncWithVideoNarration;
if (m_syncWithVideoNarration) {
m_internalPlayer.addListener(this);
if (m_extenralPlayer != null) {
m_extenralPlayer.addListener(this);
}
}
m_listeners = new Array();
m_trackIndexToDuration = new Array();
var thisPtr = this;
setInterval(function () {
thisPtr.checkForOutOfBounds();
}, 100);
}
function get core() {
return(m_core);
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function getCurrentVideo() {
return(m_currentVideo);
}
function setExternalPresenterVideoPlayer(externalPresenterVideoPlayer) {
if (m_syncWithVideoNarration && (m_extenralPlayer != null)) {
m_extenralPlayer.removeListener(this);
}
m_extenralPlayer = externalPresenterVideoPlayer;
if (m_syncWithVideoNarration && (m_extenralPlayer != null)) {
m_extenralPlayer.addListener(this);
}
if (m_currentVideo != null) {
changeVideo(m_currentVideo);
m_core.resync();
}
}
function changeVideo(video) {
if (((!video) && (m_currentVideo != null)) && (!m_currentVideo.getEmbedded())) {
dispatchBufferFullEvent(m_currentPlayer);
}
if (m_currentPlayer != null) {
m_currentPlayer.close();
}
m_currentPlayer = null;
m_currentVideo = null;
if (video != null) {
var _local3 = (m_extenralPlayer != null) && (!video.getEmbedded());
m_currentPlayer = (_local3 ? (m_extenralPlayer) : (m_internalPlayer));
if (m_currentPlayer != null) {
var _local4 = video.getSrc();
var _local6 = video.getTrimLeft();
var _local5 = video.getTrimRight();
var _local7 = video.getVolume();
m_currentPlayer.open(_local4, _local6, _local5, _local7);
m_currentVideo = video;
}
}
dispatchVideoChangedEvent(video);
}
function onActivateTrack(trackIndex, position) {
if (positionIsOutOfBounds(position, trackIndex)) {
return(undefined);
}
var _local3 = m_tracks.getVideoTrack(trackIndex);
var _local2 = _local3.getPresenterVideo();
changeVideo(_local2);
if ((m_currentVideo != null) && (m_currentPlayer != null)) {
m_currentPlayer.seek(position);
if (m_core.isPlaying()) {
m_currentPlayer.play();
} else {
m_currentPlayer.pause();
}
}
}
function onDeactivateTrack() {
tryToSaveCurrentTrackDuration();
changeVideo(null);
}
function onPauseTrack() {
m_currentPlayer.pause();
}
function onPlayTrack(position) {
if (Math.abs(m_currentPlayer.getPlaybackTime() - position) > 0.5) {
m_currentPlayer.seek(position);
}
m_currentPlayer.play();
}
function onSeekTrack(position) {
if (m_currentPlayer == null) {
if (!positionIsOutOfBounds(position)) {
var _local3 = m_core.getCurrentTrackIndex();
onActivateTrack(_local3, position);
}
return(undefined);
}
tryToSaveCurrentTrackDuration();
if (positionIsOutOfBounds(position)) {
changeVideo(null);
return(undefined);
}
m_currentPlayer.seek(position);
if (m_core.isPlaying()) {
m_currentPlayer.play();
} else {
m_currentPlayer.pause();
}
}
function tryToSaveCurrentTrackDuration() {
if (m_currentPlayer == null) {
return(undefined);
}
var _local2 = m_currentPlayer.getDuration();
if (_local2) {
var _local3 = m_core.getCurrentTrackIndex();
m_trackIndexToDuration[_local3] = _local2;
}
}
function positionIsOutOfBounds(position, trackIndex) {
if (trackIndex === undefined) {
trackIndex = m_core.getCurrentTrackIndex();
}
var _local2 = m_trackIndexToDuration[trackIndex];
return(Boolean(_local2) && (position > _local2));
}
function checkForOutOfBounds() {
if (m_currentPlayer != null) {
var _local2 = m_core.getCurrentTrackPosition();
if (positionIsOutOfBounds(_local2)) {
tryToSaveCurrentTrackDuration();
changeVideo(null);
}
}
}
function dispatchBufferFullEvent() {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
_local3.onPresenterVideoBufferFull();
_local2++;
}
}
function dispatchBufferEmptyEvent() {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
_local3.onPresenterVideoBufferEmpty();
_local2++;
}
}
function dispatchVideoChangedEvent(video) {
var _local4 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_listeners[_local2];
_local3.onChangePresenterVideo(video);
_local2++;
}
}
function seek(time) {
}
function resync() {
}
function restart() {
}
function onPlaybackComplete(videoPlayer) {
onDeactivateTrack();
}
function onBufferEmpty(videoPlayer) {
dispatchBufferEmptyEvent();
}
function onBufferFull(videoPlayer) {
dispatchBufferFullEvent();
}
function onVideoOpened(videoPlayer) {
}
function onVideoOpeningFailed(videoPlayer) {
}
function onBufferFlush(videoPlayer) {
}
function onPlaybackStarted(videoPlayer) {
}
function onPlabackStopped(videoPlayer) {
}
function onSeekComplete(videoPlayer) {
}
function onSeekTimeInvalid(videoPlayer) {
}
var m_syncWithVideoNarration = true;
}
Symbol 354 MovieClip [__Packages.fsplayer.core.playback.narration.CAudioNarrationController] Frame 0
class fsplayer.core.playback.narration.CAudioNarrationController extends cpslabs.utils.CMessageBroadcaster implements fsplayer.core.playback.narration.IAudioNarrationController, fsplayer.res.sounds.ISoundAssetLoadingListener, fsplayer.res.sounds.ISoundInstanceListener
{
var m_soundAssets, m_syncWithNarration, m_core, m_tracks, m_soundInstances, m_currentSoundInstance, broadcastMessage, m_currentTrack;
function CAudioNarrationController (core, soundAssets, syncWithNarration) {
super();
m_soundAssets = soundAssets;
m_syncWithNarration = syncWithNarration;
m_core = core;
m_core.addListener(fsplayer.core.playback.narration.CNarrationPlaybackEvent.ACTIVATE_TRACK, this, onActivateTrack);
m_core.addListener(fsplayer.core.playback.narration.CNarrationPlaybackEvent.DEACTIVATE_TRACK, this, onDeactivateTrack);
m_core.addListener(fsplayer.core.playback.narration.CNarrationPlaybackEvent.PAUSE_TRACK, this, onPauseTrack);
m_core.addListener(fsplayer.core.playback.narration.CNarrationPlaybackEvent.PLAY_TRACK, this, onPlayTrack);
m_core.addListener(fsplayer.core.playback.narration.CNarrationPlaybackEvent.SEEK_TRACK, this, onSeekTrack);
m_tracks = fsplayer.res.narration.IAudioTracks(core.getTracks());
m_soundInstances = new Object();
}
function get core() {
return(m_core);
}
function changeSound(track) {
if (m_currentSoundInstance != null) {
m_currentSoundInstance.stop();
} else {
broadcastMessage(fsplayer.res.narration.CAudioNarrationControllerEvent.BUFFER_FULL);
}
m_currentTrack = track;
m_currentSoundInstance = null;
if (m_currentTrack != null) {
var _local2 = m_currentTrack.getSoundAssetId();
if (!m_soundAssets.assetIsLoaded(_local2)) {
m_soundAssets.loadAsset(_local2, this);
if (m_syncWithNarration && (m_currentSoundInstance == null)) {
broadcastMessage(fsplayer.res.narration.CAudioNarrationControllerEvent.BUFFER_EMPTY);
}
} else {
m_currentSoundInstance = m_soundInstances[_local2];
initSoundInstance(m_currentSoundInstance, m_currentTrack);
}
}
}
function onActivateTrack(trackIndex, position) {
var _local2 = m_tracks.getAudioTrack(trackIndex);
changeSound(_local2);
if ((m_currentSoundInstance != null) && (m_core.isPlaying())) {
m_currentSoundInstance.start(position);
}
}
function onDeactivateTrack() {
changeSound(null);
}
function onPauseTrack() {
if (m_currentSoundInstance != null) {
m_currentSoundInstance.stop(false);
}
}
function onPlayTrack(position) {
if (m_currentSoundInstance != null) {
m_currentSoundInstance.start(position);
}
}
function onSeekTrack(position) {
if ((m_currentSoundInstance != null) && (m_core.isPlaying())) {
m_currentSoundInstance.start(position);
}
}
function initSoundInstance(soundInstance, track) {
var _local2 = track.getTrimLeft();
var _local1 = track.getTrimRight();
var _local4 = track.getVolume();
soundInstance.setTrim(_local2, _local1);
soundInstance.setVolume(_local4);
}
function onSoundAssetLoadInit(soundAsset) {
var _local3 = soundAsset.getId();
var _local2 = soundAsset.createInstance();
m_soundInstances[_local3] = _local2;
initSoundInstance(_local2, m_currentTrack);
if (_local3 == m_currentTrack.getSoundAssetId()) {
m_currentSoundInstance = _local2;
m_currentSoundInstance.setListener(this);
if (m_syncWithNarration) {
broadcastMessage(fsplayer.res.narration.CAudioNarrationControllerEvent.BUFFER_FULL);
}
}
}
function onSoundInstanceInit(instance) {
if ((m_currentSoundInstance == instance) && (m_core.isPlaying())) {
var _local2 = m_core.getCurrentTrackPosition();
m_currentSoundInstance.start(_local2);
}
}
function onSoundAssetLoadProgress(soundAsset, bytesLoaded, bytesTotal) {
}
function onSoundInstanceComplete(instance) {
}
}
Symbol 355 MovieClip [__Packages.fsplayer.res.narration.CAudioNarrationControllerEvent] Frame 0
class fsplayer.res.narration.CAudioNarrationControllerEvent
{
function CAudioNarrationControllerEvent () {
}
static var BUFFER_EMPTY = "bufferEmpty";
static var BUFFER_FULL = "bufferFull";
}
Symbol 356 MovieClip [__Packages.fsplayer.core.playback.narration.CNarrationSynchronizer] Frame 0
class fsplayer.core.playback.narration.CNarrationSynchronizer extends cpslabs.utils.CMessageBroadcaster implements fsplayer.core.playback.narration.INarrationSynchronizer, fsplayer.api.IPresenterVideoListener
{
var m_videoNarrationController, m_audioNarrationController, broadcastMessage;
function CNarrationSynchronizer (videoNarrationController, audioNarrationController) {
super();
m_videoNarrationController = videoNarrationController;
if (m_videoNarrationController != null) {
m_videoNarrationController.addListener(this);
}
m_audioNarrationController = audioNarrationController;
if (m_audioNarrationController != null) {
m_audioNarrationController.addListener(fsplayer.res.narration.CAudioNarrationControllerEvent.BUFFER_EMPTY, this, onAudioNarrationBufferEmpty);
m_audioNarrationController.addListener(fsplayer.res.narration.CAudioNarrationControllerEvent.BUFFER_FULL, this, onAudioNarrationBufferFull);
}
}
function getSuspended() {
return(m_suspended);
}
function setSuspended(value) {
if (m_suspended != value) {
m_suspended = value;
updateTracksState();
}
}
function updateTracksState() {
var _local2 = (m_suspended || (m_audioNarrationBufferEmpty)) || (m_videoNarrationBufferEmpty);
if (m_videoNarrationController != null) {
m_videoNarrationController.__get__core().setSuspended(_local2);
}
if (m_audioNarrationController != null) {
m_audioNarrationController.__get__core().setSuspended(_local2);
}
}
function resync() {
if (m_videoNarrationController != null) {
m_videoNarrationController.__get__core().resync();
}
if (m_audioNarrationController != null) {
m_audioNarrationController.__get__core().resync();
}
}
function onAudioNarrationBufferEmpty() {
m_audioNarrationBufferEmpty = true;
if (!m_videoNarrationBufferEmpty) {
broadcastMessage(fsplayer.core.playback.narration.CNarrationSynchronizerEvent.BUFFER_EMPTY);
}
updateTracksState();
}
function onAudioNarrationBufferFull() {
m_audioNarrationBufferEmpty = false;
if (!m_videoNarrationBufferEmpty) {
broadcastMessage(fsplayer.core.playback.narration.CNarrationSynchronizerEvent.BUFFER_FULL);
}
updateTracksState();
}
function onPresenterVideoBufferEmpty() {
m_videoNarrationBufferEmpty = true;
if (!m_audioNarrationBufferEmpty) {
broadcastMessage(fsplayer.core.playback.narration.CNarrationSynchronizerEvent.BUFFER_EMPTY);
}
updateTracksState();
}
function onPresenterVideoBufferFull() {
m_videoNarrationBufferEmpty = false;
if (!m_audioNarrationBufferEmpty) {
broadcastMessage(fsplayer.core.playback.narration.CNarrationSynchronizerEvent.BUFFER_FULL);
}
updateTracksState();
}
function onChangePresenterVideo(video) {
}
var m_audioNarrationBufferEmpty = false;
var m_videoNarrationBufferEmpty = false;
var m_suspended = false;
}
Symbol 357 MovieClip [__Packages.CSeparatePlayer] Frame 0
class CSeparatePlayer extends fsplayer.core.CPlayerImpl implements fsplayer.core.ILoadingControllersFactory
{
var loadSkinAsset, m_playerTarget, setPesentationNode;
function CSeparatePlayer (target, userData) {
super(this, target, userData);
}
function loadSkinFromURL(source) {
loadSkinAsset(source);
}
function loadPresentationInfoFromURL(presentationInfoURL) {
var presXML = new XML();
presXML.ignoreWhite = true;
var thisPtr = this;
presXML.onLoad = function (succeeded) {
if (succeeded) {
thisPtr.onLoadPresentationXML(presXML);
}
};
presXML.load(fsplayer.util.CFileUtils.PathToAbsolutePath(presentationInfoURL, m_playerTarget));
}
function onLoadPresentationXML(presentationXML) {
var _local2 = presentationXML.firstChild;
setPesentationNode(_local2);
}
function createThumbnailAssetLoadingController() {
var _local2 = new fsplayer.res.images.CImageAssetLoader(createAssetLoader());
return(new fsplayer.core.loading.CAsynchronousThumbnailAssetLoadingController(_local2));
}
function createSlideLoadingController(presentation) {
return(new fsplayer.core.loading.CRandomSlideLoadingController(presentation.getSlides()));
}
function createPresentationBgSoundAssetLoadingController(soundAssets) {
return(new fsplayer.core.loading.CPresentationBgSoundAssetLoadingController(soundAssets));
}
function createAssetLoader() {
return(new fsplayer.res.assets.CExternalAssetLoader());
}
function createSkinAssetLoader() {
return(createAssetLoader());
}
}
Symbol 358 MovieClip [__Packages.fsplayer.res.images.IImageAssetLoader] Frame 0
interface fsplayer.res.images.IImageAssetLoader
{
}
Symbol 359 MovieClip [__Packages.fsplayer.res.images.CImageAssetLoader] Frame 0
class fsplayer.res.images.CImageAssetLoader implements fsplayer.res.images.IImageAssetLoader
{
var m_assetLoader;
function CImageAssetLoader (assetLoader) {
m_assetLoader = assetLoader;
}
function loadImageAsset(target, source, listener) {
var _local2 = new fsplayer.res.images.CImageAsset();
_local2.load(m_assetLoader, target, source, listener);
return(_local2);
}
}
Symbol 360 MovieClip [__Packages.fsplayer.res.images.CImageAsset] Frame 0
class fsplayer.res.images.CImageAsset implements fsplayer.res.images.IImageAsset
{
var m_asset;
function CImageAsset () {
}
function createInstance(name, depth) {
var _local2 = m_asset.createInstance(name, depth);
return(new fsplayer.res.images.CImageInstance(_local2));
}
function load(assetLoader, target, source, listener) {
var _local2 = new fsplayer.res.images.CImageAssetLoadingListenerImpl(this, listener);
assetLoader.loadAsset(target, source, _local2);
}
function setAsset(asset) {
m_asset = asset;
}
}
Symbol 361 MovieClip [__Packages.fsplayer.res.images.CImageInstance] Frame 0
class fsplayer.res.images.CImageInstance implements fsplayer.res.images.IImageInstance
{
var m_instanceClip;
function CImageInstance (instanceClip) {
m_instanceClip = instanceClip;
}
function getInstanceClip() {
return(m_instanceClip);
}
}
Symbol 362 MovieClip [__Packages.fsplayer.res.images.CImageAssetLoadingListenerImpl] Frame 0
class fsplayer.res.images.CImageAssetLoadingListenerImpl implements fsplayer.res.assets.IAssetLoadingListener
{
var m_imgAsset, m_listener;
function CImageAssetLoadingListenerImpl (imgAsset, listener) {
m_imgAsset = imgAsset;
m_listener = listener;
}
function onAssetLoadStart(asset) {
m_imgAsset.setAsset(asset);
}
function onAssetLoadComplete(asset) {
}
function onAssetLoadInit(asset) {
if (m_listener != undefined) {
m_listener.onImageAssetLoadInit(m_imgAsset);
}
}
function onAssetLoadProgress(asset, bytesLoaded, bytesTotal) {
}
}
Symbol 363 MovieClip [__Packages.fsplayer.core.loading.CAsynchronousThumbnailAssetLoadingController] Frame 0
class fsplayer.core.loading.CAsynchronousThumbnailAssetLoadingController implements fsplayer.core.loading.IThumbnailAssetLoadingController
{
var m_imageAssetLoader, m_queue;
function CAsynchronousThumbnailAssetLoadingController (imageAssetLoader) {
m_imageAssetLoader = imageAssetLoader;
m_queue = new Array();
}
function onImageAssetLoadInit(imgAsset, listener) {
listener.onImageAssetLoadInit(imgAsset);
m_loadingCount--;
if ((m_loadingCount < MAX_LOADING_THUMBNAILS) && (m_queue.length > 0)) {
var _local2 = m_queue.shift();
loadThumbnailAsset(_local2.slideIndex, _local2.target, _local2.source, _local2.listener);
}
}
function loadThumbnailAsset(slideIndex, target, source, listener) {
if (m_loadingCount < MAX_LOADING_THUMBNAILS) {
m_loadingCount++;
var _local4 = new Object();
var _local3 = _local4;
var listenerPtr = listener;
var thisPtr = this;
_local3.onImageAssetLoadInit = function (imgAsset) {
thisPtr.onImageAssetLoadInit(imgAsset, listenerPtr);
};
m_imageAssetLoader.loadImageAsset(target, source, _local3);
} else {
var _local2 = new Object();
_local2.slideIndex = slideIndex;
_local2.target = target;
_local2.source = source;
_local2.listener = listener;
m_queue.push(_local2);
}
}
var m_loadingCount = 0;
static var MAX_LOADING_THUMBNAILS = 1;
}
Symbol 364 MovieClip [__Packages.fsplayer.core.loading.CRandomSlideLoadingController] Frame 0
class fsplayer.core.loading.CRandomSlideLoadingController implements fsplayer.core.loading.ISlideLoadingController, fsplayer.core.loading.ISlideLoadingListener
{
var m_slides, m_slideStatuses, m_queue, m_slideLoadingListener, m_slideLoadingLookup, m_lookupTableStart;
function CRandomSlideLoadingController (slides) {
m_slides = slides;
var _local2 = slides.getCount();
m_slideStatuses = new Array(_local2);
m_queue = new Array();
fillSlideLoadingSequence();
}
function enqueueSlide(slideIndex) {
addSlideToQueue(slideIndex, true);
}
function setListener(listener) {
m_slideLoadingListener = listener;
}
function onSlideLoadInit(slide) {
var _local2 = slide.getIndex();
m_slideStatuses[_local2] = SLD_STATUS_LOADED;
m_numberOfSlidesInLoading--;
if (m_slideLoadingListener != undefined) {
m_slideLoadingListener.onSlideLoadInit(slide);
}
var _local3 = getNextSlideIndexToLoad();
if (((_local3 != undefined) && (m_numberOfSlidesInLoading < NORMAL_LOADING_SLIDES)) && (m_loadingLockCount == 0)) {
addSlideToQueue(getNextSlideIndexToLoad(), false);
}
}
function onSlideLoadProgress(slide, bytesLoaded, bytesTotal) {
}
function addSlideToQueue(slideIndex, loadWithHighPriority) {
if (slideWasLoaded(slideIndex) || (slideIsNowLoaded(slideIndex))) {
return(undefined);
}
var _local6 = m_slideLoadingLookup[slideIndex];
if (_local6 != undefined) {
m_slideLoadingLookup[slideIndex] = undefined;
var _local5 = _local6.prev;
var _local4 = _local6.next;
if (_local5 != undefined) {
_local5.next = _local4;
} else {
m_lookupTableStart = _local4;
}
if (_local4 != undefined) {
_local4.prev = _local5;
}
}
var _local3 = getSlideQueuePosition(slideIndex);
if (m_numberOfSlidesInLoading < MAX_LOADING_SLIDES) {
if (_local3 != undefined) {
removeQueueItem(_local3);
}
loadSlide(slideIndex);
} else {
m_slideStatuses[slideIndex] = SLD_STATUS_QUEUED;
if (loadWithHighPriority) {
if (_local3 != undefined) {
removeQueueItem(_local3);
}
m_queue.splice(0, 0, slideIndex);
} else if (_local3 == undefined) {
m_queue.push(slideIndex);
}
}
}
function fillSlideLoadingSequence() {
var _local5 = m_slides.getCount();
m_slideLoadingLookup = new Array(_local5);
var _local4;
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = new Object();
if (_local4 != undefined) {
_local4.next = _local2;
}
_local2.prev = _local4;
_local4 = _local2;
_local2.index = _local3;
m_slideLoadingLookup[_local3] = _local2;
_local3++;
}
_local4.next = undefined;
m_lookupTableStart = m_slideLoadingLookup[0];
}
function getNextSlideIndexToLoad() {
if (m_lookupTableStart == undefined) {
return(undefined);
}
return(m_lookupTableStart.index);
}
function loadSlide(slideIndex) {
m_numberOfSlidesInLoading++;
m_slideStatuses[slideIndex] = SLD_STATUS_LOADING;
m_loadingLockCount++;
m_slides.getSlide(slideIndex).load(this);
m_loadingLockCount--;
}
function removeQueueItem(pos) {
m_queue.slice(pos, pos);
}
function slideIsInQueue(slideIndex) {
return(m_slideStatuses[slideIndex] == SLD_STATUS_QUEUED);
}
function slideWasLoaded(slideIndex) {
return(m_slides.getSlide(slideIndex).isLoaded());
}
function slideIsNowLoaded(slideIndex) {
return(m_slideStatuses[slideIndex] == SLD_STATUS_LOADING);
}
function getSlideQueuePosition(slideIndex) {
if (slideIsInQueue(slideIndex)) {
var _local3 = m_queue.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_queue[_local2] == slideIndex) {
return(_local2);
}
_local2++;
}
}
return(undefined);
}
static var MAX_LOADING_SLIDES = 5;
static var NORMAL_LOADING_SLIDES = 2;
static var SLD_STATUS_QUEUED = "queued";
static var SLD_STATUS_LOADING = "loading";
static var SLD_STATUS_LOADED = "loaded";
var m_numberOfSlidesInLoading = 0;
var m_loadingLockCount = 0;
}
Symbol 365 MovieClip [__Packages.fsplayer.core.loading.CPresentationBgSoundAssetLoadingController] Frame 0
class fsplayer.core.loading.CPresentationBgSoundAssetLoadingController implements fsplayer.core.loading.IPresentationBgSoundAssetLoadingController
{
var m_soundAssets, m_listener, m_soundIsAvailable, m_assetIdToLoad;
function CPresentationBgSoundAssetLoadingController (soundAssets) {
m_soundAssets = soundAssets;
}
function setListener(listener) {
m_listener = listener;
}
function backgroundSoundIsAvailable() {
m_soundIsAvailable = true;
if (m_assetIdToLoad != undefined) {
m_soundAssets.loadAsset(m_assetIdToLoad, m_listener);
m_assetIdToLoad = undefined;
}
}
function loadBgSoundAsset(assetId) {
if (assetId != "") {
if (m_soundAssets.assetIsEmbedded(assetId)) {
if (m_soundIsAvailable) {
m_soundAssets.loadAsset(assetId, m_listener);
} else {
m_assetIdToLoad = assetId;
}
} else {
m_soundAssets.loadAsset(assetId, m_listener);
m_listener.onSoundAssetLoadInit(m_soundAssets.getAsset(assetId));
}
}
}
}
Symbol 366 MovieClip [__Packages.CSeparatePlayerEmbeddedSkin] Frame 0
class CSeparatePlayerEmbeddedSkin extends CSeparatePlayer
{
var loadSkinAsset;
function CSeparatePlayerEmbeddedSkin (target, userData) {
super(target, userData);
}
function loadSkinFromAsset(source) {
loadSkinAsset(source);
}
function createSkinAssetLoader() {
return(new fsplayer.res.assets.CInternalAssetLoader());
}
}
Symbol 367 MovieClip [__Packages.ISolidPlayerResourceLoader] Frame 0
interface ISolidPlayerResourceLoader
{
}
Symbol 368 MovieClip [__Packages.CSolidPlayer] Frame 0
class CSolidPlayer extends fsplayer.core.CPlayerImpl implements fsplayer.core.ILoadingControllersFactory, ISolidPlayerResourceLoader
{
var m_loadingControlClip, m_availableSlides, m_availableThumbs, m_slideLoadingController, m_thumbnailLoadingController, loadSkinAsset, setPesentationNode, m_presentationBgSoundAssetLoadingController;
function CSolidPlayer (target, loadingControlClip, userData) {
super(this, target, userData);
m_loadingControlClip = loadingControlClip;
m_availableSlides = new Array();
m_availableThumbs = new Array();
}
function onSkinInit(skin) {
super.onSkinInit(skin);
m_skinInitialized = true;
var _local3 = 0;
while (_local3 < m_availableSlides.length) {
m_slideLoadingController.slideIsAvailable(m_availableSlides[_local3]);
_local3++;
}
_local3 = 0;
while (_local3 < m_availableThumbs.length) {
m_thumbnailLoadingController.thumbnailIsAvailable(m_availableThumbs[_local3]);
_local3++;
}
}
function loadSkinFromLibrary(source) {
loadSkinAsset(source);
}
function loadPresentationInfoFromString(presentationInfo) {
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.parseXML(presentationInfo);
setPesentationNode(_local2.firstChild);
}
function slideIsAvailable(slideIndex) {
if (m_skinInitialized) {
m_slideLoadingController.slideIsAvailable(slideIndex);
} else {
m_availableSlides.push(slideIndex);
}
}
function thumbnailIsAvailable(slideIndex) {
if (m_skinInitialized) {
m_thumbnailLoadingController.thumbnailIsAvailable(slideIndex);
} else {
m_availableThumbs.push(slideIndex);
}
}
function presentationBgSoundIsAvailable() {
m_presentationBgSoundAssetLoadingController.backgroundSoundIsAvailable();
}
function createThumbnailAssetLoadingController() {
var _local2 = new fsplayer.res.images.CImageAssetLoader(createAssetLoader());
m_thumbnailLoadingController = new fsplayer.core.loading.CSynchronousThumbnailAssetLoadingController(_local2);
return(m_thumbnailLoadingController);
}
function createSlideLoadingController(presentation) {
m_slideLoadingController = new fsplayer.core.loading.CSequentialSlideLoadingController(presentation.getSlides(), m_loadingControlClip);
return(m_slideLoadingController);
}
function createPresentationBgSoundAssetLoadingController(soundAssets) {
m_presentationBgSoundAssetLoadingController = new fsplayer.core.loading.CPresentationBgSoundAssetLoadingController(soundAssets);
return(m_presentationBgSoundAssetLoadingController);
}
function createAssetLoader() {
return(new fsplayer.res.assets.CInternalAssetLoader());
}
function createSkinAssetLoader() {
return(createAssetLoader());
}
var m_skinInitialized = false;
}
Symbol 369 MovieClip [__Packages.fsplayer.core.loading.CSequentialSlideLoadingController] Frame 0
class fsplayer.core.loading.CSequentialSlideLoadingController implements fsplayer.core.loading.ISlideLoadingController, fsplayer.core.loading.ISlideLoadingListener
{
var m_slides, m_loadControlClip, m_loadingSlides, m_slideWasAdded, m_intervalId, m_listener;
function CSequentialSlideLoadingController (slides, loadControlClip) {
m_slides = slides;
m_loadControlClip = loadControlClip;
m_loadingSlides = new Array();
m_slideWasAdded = true;
m_intervalId = setInterval(this, "onLoadingInterval", 100);
}
function enqueueSlide(slideIndex) {
}
function onLoadingInterval() {
if (m_loadControlClip._currentframe == 1) {
m_loadControlClip.play();
}
if (m_loadControlClip._currentframe < m_loadControlClip._totalframes) {
if (m_slideWasAdded) {
m_slideWasAdded = false;
m_loadControlClip.nextFrame();
m_loadControlClip.play();
updateAfterEvent();
}
} else {
clearInterval(m_intervalId);
}
}
function slideIsAvailable(slideIndex) {
var _local2 = m_slides.getSlide(slideIndex);
if ((!_local2.isLoaded()) && (!m_loadingSlides[slideIndex])) {
m_loadingSlides[slideIndex] = true;
m_slideWasAdded = true;
_local2.load(this);
}
}
function onSlideLoadInit(slide) {
m_loadingSlides[slide.getIndex()] = false;
m_listener.onSlideLoadInit(slide);
}
function onSlideLoadProgress(slide, bytesLoaded, bytesTotal) {
}
function setListener(listener) {
m_listener = listener;
}
}
Symbol 370 MovieClip [__Packages.fsplayer.core.loading.CSynchronousThumbnailAssetLoadingController] Frame 0
class fsplayer.core.loading.CSynchronousThumbnailAssetLoadingController implements fsplayer.core.loading.IThumbnailAssetLoadingController
{
var m_imageAssetLoader, m_thumbnails, m_queuedLoads;
function CSynchronousThumbnailAssetLoadingController (imageAssetLoader) {
m_imageAssetLoader = imageAssetLoader;
m_thumbnails = new Array();
m_queuedLoads = new Array();
}
function thumbnailIsAvailable(slideIndex) {
if (!m_thumbnails[slideIndex]) {
m_thumbnails[slideIndex] = true;
var _local5 = m_queuedLoads[slideIndex];
if (_local5 != undefined) {
var _local6 = _local5.length;
var _local3 = 0;
while (_local3 < _local6) {
var _local2 = _local5[_local3];
loadThumbnailAsset(slideIndex, _local2.target, _local2.source, _local2.listener);
_local3++;
}
}
delete m_queuedLoads[slideIndex];
}
}
function loadThumbnailAsset(slideIndex, target, source, listener) {
if (m_thumbnails[slideIndex]) {
m_imageAssetLoader.loadImageAsset(target, source, listener);
} else {
if (!m_queuedLoads[slideIndex]) {
m_queuedLoads[slideIndex] = new Array();
}
var _local2 = new Object();
_local2.listener = listener;
_local2.target = target;
_local2.source = source;
m_queuedLoads[slideIndex].push(_local2);
}
}
}
Symbol 371 MovieClip [__Packages.fsplayer.core.CPlayerCoreComponentsFactoryImpl] Frame 0
class fsplayer.core.CPlayerCoreComponentsFactoryImpl implements fsplayer.core.IPlayerCoreComponentsFactory
{
var m_transitionsFactory;
function CPlayerCoreComponentsFactoryImpl () {
m_transitionsFactory = new fsplayer.core.playback.transitions.CTransitionEffectsFactoryImpl();
}
function getTransitionEffectsFactory() {
return(m_transitionsFactory);
}
function createMediaPlaybackController(presentation, playbackController, bgSoundLoadingController) {
return(new fsplayer.core.playback.sounds.CMediaPlaybackControllerEx(presentation, playbackController, bgSoundLoadingController));
}
function createPresentationInfo(presentation, presentationNode, loadingControllersFactory) {
return(new fsplayer.api.impl.CPresentationInfo(presentation, presentationNode, loadingControllersFactory.createThumbnailAssetLoadingController(presentation)));
}
function createSlideSounds(soundsNode, soundAssets) {
return(new fsplayer.res.sounds.CSlideSoundsEx(soundsNode, soundAssets));
}
function createPresenterVideo(src, embedded, width, height, frameRate, trimLeft, trimRight, volume) {
return(new fsplayer.res.video.CPresenterVideo(src, embedded, width, height, frameRate, trimLeft, trimRight, volume));
}
function createWebObjectController(player, webObjects) {
return(new fsplayer.api.impl.CWebObjectsController(player, webObjects));
}
}
Symbol 372 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionEffectsFactoryImpl] Frame 0
class fsplayer.core.playback.transitions.CTransitionEffectsFactoryImpl implements fsplayer.core.playback.transitions.ITransitionEffectsFactory
{
function CTransitionEffectsFactoryImpl () {
}
function calculateEffectDuration(duration) {
return(duration);
}
function getTransitionEffect(effectType, parameters) {
if (effectType == "RandomTransition") {
var _local2 = m_transitions.length - 1;
var _local3 = Math.floor(_local2 * Math.random());
effectType = m_transitions[_local3];
}
switch (effectType) {
case "BoxDown" :
return(new fsplayer.core.playback.transitions.CTransitionBox3D(parameters, fsplayer.core.playback.transitions.CTransitionBox3D.DIRECTION_DOWN));
case "BoxLeft" :
return(new fsplayer.core.playback.transitions.CTransitionBox3D(parameters, fsplayer.core.playback.transitions.CTransitionBox3D.DIRECTION_LEFT));
case "BoxRight" :
return(new fsplayer.core.playback.transitions.CTransitionBox3D(parameters, fsplayer.core.playback.transitions.CTransitionBox3D.DIRECTION_RIGHT));
case "BoxUp" :
return(new fsplayer.core.playback.transitions.CTransitionBox3D(parameters, fsplayer.core.playback.transitions.CTransitionBox3D.DIRECTION_UP));
case "OrbitDown" :
return(new fsplayer.core.playback.transitions.CTransitionBox3D(parameters, fsplayer.core.playback.transitions.CTransitionBox3D.DIRECTION_DOWN));
case "OrbitLeft" :
return(new fsplayer.core.playback.transitions.CTransitionBox3D(parameters, fsplayer.core.playback.transitions.CTransitionBox3D.DIRECTION_LEFT));
case "OrbitRight" :
return(new fsplayer.core.playback.transitions.CTransitionBox3D(parameters, fsplayer.core.playback.transitions.CTransitionBox3D.DIRECTION_RIGHT));
case "OrbitUp" :
return(new fsplayer.core.playback.transitions.CTransitionBox3D(parameters, fsplayer.core.playback.transitions.CTransitionBox3D.DIRECTION_UP));
case "CubeDown" :
return(new fsplayer.core.playback.transitions.CTransitionCube(parameters, fsplayer.core.playback.transitions.CTransitionCube.DIRECTION_DOWN));
case "CubeLeft" :
return(new fsplayer.core.playback.transitions.CTransitionCube(parameters, fsplayer.core.playback.transitions.CTransitionCube.DIRECTION_LEFT));
case "CubeRight" :
return(new fsplayer.core.playback.transitions.CTransitionCube(parameters, fsplayer.core.playback.transitions.CTransitionCube.DIRECTION_RIGHT));
case "CubeUp" :
return(new fsplayer.core.playback.transitions.CTransitionCube(parameters, fsplayer.core.playback.transitions.CTransitionCube.DIRECTION_UP));
case "RotateDown" :
return(new fsplayer.core.playback.transitions.CTransitionCube(parameters, fsplayer.core.playback.transitions.CTransitionCube.DIRECTION_DOWN));
case "RotateLeft" :
return(new fsplayer.core.playback.transitions.CTransitionCube(parameters, fsplayer.core.playback.transitions.CTransitionCube.DIRECTION_LEFT));
case "RotateRight" :
return(new fsplayer.core.playback.transitions.CTransitionCube(parameters, fsplayer.core.playback.transitions.CTransitionCube.DIRECTION_RIGHT));
case "RotateUp" :
return(new fsplayer.core.playback.transitions.CTransitionCube(parameters, fsplayer.core.playback.transitions.CTransitionCube.DIRECTION_UP));
case "FlyThroughIn" :
return(new fsplayer.core.playback.transitions.CTransitionFlyThrough(parameters, fsplayer.core.playback.transitions.CTransitionFlyThrough.DIRECTION_IN, false));
case "FlyThroughOut" :
return(new fsplayer.core.playback.transitions.CTransitionFlyThrough(parameters, fsplayer.core.playback.transitions.CTransitionFlyThrough.DIRECTION_OUT, false));
case "FlyThroughInBounce" :
return(new fsplayer.core.playback.transitions.CTransitionFlyThrough(parameters, fsplayer.core.playback.transitions.CTransitionFlyThrough.DIRECTION_IN, true));
case "FlyThroughOutBounce" :
return(new fsplayer.core.playback.transitions.CTransitionFlyThrough(parameters, fsplayer.core.playback.transitions.CTransitionFlyThrough.DIRECTION_OUT, true));
case "WheelReverse1Spoke" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WHEEL_1_REVERSE));
case "FerrisWheelLeft" :
return(new fsplayer.core.playback.transitions.CTransitionFerrisWheel(parameters, fsplayer.core.playback.transitions.CTransitionFerrisWheel.DIRECTION_LEFT));
case "FerrisWheelRight" :
return(new fsplayer.core.playback.transitions.CTransitionFerrisWheel(parameters, fsplayer.core.playback.transitions.CTransitionFerrisWheel.DIRECTION_RIGHT));
case "Flashbulb" :
return(new fsplayer.core.playback.transitions.CTransitionFlashbulb(parameters));
case "FlipLeft" :
return(new fsplayer.core.playback.transitions.CTransitionFlip(parameters, fsplayer.core.playback.transitions.CTransitionFlip.DIRECTION_LEFT));
case "FlipRight" :
return(new fsplayer.core.playback.transitions.CTransitionFlip(parameters, fsplayer.core.playback.transitions.CTransitionFlip.DIRECTION_RIGHT));
case "DoorsVertical" :
return(new fsplayer.core.playback.transitions.CTransitionDoors(parameters, fsplayer.core.playback.transitions.CTransitionDoors.TYPE_VERTICAL));
case "DoorsHorizontal" :
return(new fsplayer.core.playback.transitions.CTransitionDoors(parameters, fsplayer.core.playback.transitions.CTransitionDoors.TYPE_HORIZONTAL));
case "WindowVertical" :
return(new fsplayer.core.playback.transitions.CTransitionDoors(parameters, fsplayer.core.playback.transitions.CTransitionDoors.TYPE_VERTICAL));
case "WindowHorizontal" :
return(new fsplayer.core.playback.transitions.CTransitionDoors(parameters, fsplayer.core.playback.transitions.CTransitionDoors.TYPE_HORIZONTAL));
case "ConveyorLeft" :
return(new fsplayer.core.playback.transitions.CTransitionGallery(parameters, fsplayer.core.playback.transitions.CTransitionGallery.DIRECTION_LEFT, true));
case "ConveyorRight" :
return(new fsplayer.core.playback.transitions.CTransitionGallery(parameters, fsplayer.core.playback.transitions.CTransitionGallery.DIRECTION_RIGHT, true));
case "GalleryLeft" :
return(new fsplayer.core.playback.transitions.CTransitionGallery(parameters, fsplayer.core.playback.transitions.CTransitionGallery.DIRECTION_LEFT, false));
case "GalleryRight" :
return(new fsplayer.core.playback.transitions.CTransitionGallery(parameters, fsplayer.core.playback.transitions.CTransitionGallery.DIRECTION_RIGHT, false));
case "Honeycomb" :
return(new fsplayer.core.playback.transitions.CTransitionHoneycomb(parameters));
case "GlitterDiamondDown" :
return(new fsplayer.core.playback.transitions.CTransitionGlitter(parameters, fsplayer.core.playback.transitions.CTransitionGlitter.TYPE_DIAMOND, fsplayer.core.playback.transitions.CTransitionGlitter.DIRECTION_DOWN));
case "GlitterDiamondLeft" :
return(new fsplayer.core.playback.transitions.CTransitionGlitter(parameters, fsplayer.core.playback.transitions.CTransitionGlitter.TYPE_DIAMOND, fsplayer.core.playback.transitions.CTransitionGlitter.DIRECTION_LEFT));
case "GlitterDiamondRight" :
return(new fsplayer.core.playback.transitions.CTransitionGlitter(parameters, fsplayer.core.playback.transitions.CTransitionGlitter.TYPE_DIAMOND, fsplayer.core.playback.transitions.CTransitionGlitter.DIRECTION_RIGHT));
case "GlitterDiamondUp" :
return(new fsplayer.core.playback.transitions.CTransitionGlitter(parameters, fsplayer.core.playback.transitions.CTransitionGlitter.TYPE_DIAMOND, fsplayer.core.playback.transitions.CTransitionGlitter.DIRECTION_UP));
case "GlitterHexagonDown" :
return(new fsplayer.core.playback.transitions.CTransitionGlitter(parameters, fsplayer.core.playback.transitions.CTransitionGlitter.TYPE_HEXAGON, fsplayer.core.playback.transitions.CTransitionGlitter.DIRECTION_DOWN));
case "GlitterHexagonLeft" :
return(new fsplayer.core.playback.transitions.CTransitionGlitter(parameters, fsplayer.core.playback.transitions.CTransitionGlitter.TYPE_HEXAGON, fsplayer.core.playback.transitions.CTransitionGlitter.DIRECTION_LEFT));
case "GlitterHexagonRight" :
return(new fsplayer.core.playback.transitions.CTransitionGlitter(parameters, fsplayer.core.playback.transitions.CTransitionGlitter.TYPE_HEXAGON, fsplayer.core.playback.transitions.CTransitionGlitter.DIRECTION_RIGHT));
case "GlitterHexagonUp" :
return(new fsplayer.core.playback.transitions.CTransitionGlitter(parameters, fsplayer.core.playback.transitions.CTransitionGlitter.TYPE_HEXAGON, fsplayer.core.playback.transitions.CTransitionGlitter.DIRECTION_UP));
case "RevealBlackRight" :
return(new fsplayer.core.playback.transitions.CTransitionReveal(parameters, fsplayer.core.playback.transitions.CTransitionReveal.SHADING_BLACK, fsplayer.core.playback.transitions.CTransitionReveal.DIRECTION_RIGHT));
case "RevealBlackLeft" :
return(new fsplayer.core.playback.transitions.CTransitionReveal(parameters, fsplayer.core.playback.transitions.CTransitionReveal.SHADING_BLACK, fsplayer.core.playback.transitions.CTransitionReveal.DIRECTION_LEFT));
case "RevealSmoothRight" :
return(new fsplayer.core.playback.transitions.CTransitionReveal(parameters, fsplayer.core.playback.transitions.CTransitionReveal.SHADING_SMOOTH, fsplayer.core.playback.transitions.CTransitionReveal.DIRECTION_RIGHT));
case "RevealSmoothLeft" :
return(new fsplayer.core.playback.transitions.CTransitionReveal(parameters, fsplayer.core.playback.transitions.CTransitionReveal.SHADING_SMOOTH, fsplayer.core.playback.transitions.CTransitionReveal.DIRECTION_LEFT));
case "ShredRectangleIn" :
return(new fsplayer.core.playback.transitions.CTransitionShred(parameters, fsplayer.core.playback.transitions.CTransitionShred.TYPE_RECTANGLE, fsplayer.core.playback.transitions.CTransitionShred.DIRECTION_IN));
case "ShredRectangleOut" :
return(new fsplayer.core.playback.transitions.CTransitionShred(parameters, fsplayer.core.playback.transitions.CTransitionShred.TYPE_RECTANGLE, fsplayer.core.playback.transitions.CTransitionShred.DIRECTION_OUT));
case "ShredStripsIn" :
return(new fsplayer.core.playback.transitions.CTransitionShred(parameters, fsplayer.core.playback.transitions.CTransitionShred.TYPE_STRIPS, fsplayer.core.playback.transitions.CTransitionShred.DIRECTION_IN));
case "ShredStripsOut" :
return(new fsplayer.core.playback.transitions.CTransitionShred(parameters, fsplayer.core.playback.transitions.CTransitionShred.TYPE_STRIPS, fsplayer.core.playback.transitions.CTransitionShred.DIRECTION_OUT));
case "SwitchLeft" :
return(new fsplayer.core.playback.transitions.CTransitionSwitch(parameters, fsplayer.core.playback.transitions.CTransitionSwitch.DIRECTION_LEFT));
case "SwitchRight" :
return(new fsplayer.core.playback.transitions.CTransitionSwitch(parameters, fsplayer.core.playback.transitions.CTransitionSwitch.DIRECTION_RIGHT));
case "VortexDown" :
return(new fsplayer.core.playback.transitions.CTransitionVortex(parameters, fsplayer.core.playback.transitions.CTransitionVortex.DIRECTION_DOWN));
case "VortexLeft" :
return(new fsplayer.core.playback.transitions.CTransitionVortex(parameters, fsplayer.core.playback.transitions.CTransitionVortex.DIRECTION_LEFT));
case "VortexRight" :
return(new fsplayer.core.playback.transitions.CTransitionVortex(parameters, fsplayer.core.playback.transitions.CTransitionVortex.DIRECTION_RIGHT));
case "VortexUp" :
return(new fsplayer.core.playback.transitions.CTransitionVortex(parameters, fsplayer.core.playback.transitions.CTransitionVortex.DIRECTION_UP));
case "CoverUp" :
return(new fsplayer.core.playback.transitions.CTransitionCover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_UP));
case "CoverUp" :
return(new fsplayer.core.playback.transitions.CTransitionCover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_UP));
case "CoverDown" :
return(new fsplayer.core.playback.transitions.CTransitionCover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_DOWN));
case "CoverLeft" :
return(new fsplayer.core.playback.transitions.CTransitionCover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_LEFT));
case "CoverRight" :
return(new fsplayer.core.playback.transitions.CTransitionCover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_RIGHT));
case "CoverLeftDown" :
return(new fsplayer.core.playback.transitions.CTransitionCover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_LEFT_DOWN));
case "CoverLeftUp" :
return(new fsplayer.core.playback.transitions.CTransitionCover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_LEFT_UP));
case "CoverRightDown" :
return(new fsplayer.core.playback.transitions.CTransitionCover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_RIGHT_DOWN));
case "CoverRightUp" :
return(new fsplayer.core.playback.transitions.CTransitionCover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_RIGHT_UP));
case "PushUp" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_UP));
case "PushDown" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_DOWN));
case "PushLeft" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_LEFT));
case "PushRight" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_RIGHT));
case "PanUp" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_UP, true));
case "PanDown" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_DOWN, true));
case "PanLeft" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_LEFT, true));
case "PanRight" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_RIGHT, true));
case "WipeUp" :
return(new fsplayer.core.playback.transitions.CTransitionWipe(parameters, fsplayer.core.playback.transitions.CTransitionWipe.DIRECTION_UP));
case "WipeDown" :
return(new fsplayer.core.playback.transitions.CTransitionWipe(parameters, fsplayer.core.playback.transitions.CTransitionWipe.DIRECTION_DOWN));
case "WipeLeft" :
return(new fsplayer.core.playback.transitions.CTransitionWipe(parameters, fsplayer.core.playback.transitions.CTransitionWipe.DIRECTION_LEFT));
case "WipeRight" :
return(new fsplayer.core.playback.transitions.CTransitionWipe(parameters, fsplayer.core.playback.transitions.CTransitionWipe.DIRECTION_RIGHT));
case "UncoverUp" :
return(new fsplayer.core.playback.transitions.CTransitionUncover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_UP));
case "UncoverDown" :
return(new fsplayer.core.playback.transitions.CTransitionUncover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_DOWN));
case "UncoverLeft" :
return(new fsplayer.core.playback.transitions.CTransitionUncover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_LEFT));
case "UncoverRight" :
return(new fsplayer.core.playback.transitions.CTransitionUncover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_RIGHT));
case "UncoverLeftDown" :
return(new fsplayer.core.playback.transitions.CTransitionUncover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_LEFT_DOWN));
case "UncoverLeftUp" :
return(new fsplayer.core.playback.transitions.CTransitionUncover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_LEFT_UP));
case "UncoverRightDown" :
return(new fsplayer.core.playback.transitions.CTransitionUncover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_RIGHT_DOWN));
case "UncoverRightUp" :
return(new fsplayer.core.playback.transitions.CTransitionUncover3D(parameters, fsplayer.core.playback.transitions.CTransitionCover3D.DIRECTION_RIGHT_UP));
case "FadeSmoothly" :
return(new fsplayer.core.playback.transitions.CTransitionFadeSmoothly(parameters));
case "FadeThroughBlack" :
return(new fsplayer.core.playback.transitions.CTransitionFadeThroughBlack(parameters));
case "CutThroughBlack" :
return(new fsplayer.core.playback.transitions.CTransitionCutThroughBlack(parameters));
case "BoxIn" :
return(new fsplayer.core.playback.transitions.CTransitionBox(parameters, fsplayer.core.playback.transitions.CTransitionBox.DIRECTION_IN));
case "BoxOut" :
return(new fsplayer.core.playback.transitions.CTransitionBox(parameters, fsplayer.core.playback.transitions.CTransitionBox.DIRECTION_OUT));
case "ShapeCircle" :
return(new fsplayer.core.playback.transitions.CTransitionShapeCircle(parameters));
case "ShapeDiamond" :
return(new fsplayer.core.playback.transitions.CTransitionShapeDiamond(parameters));
case "ShapePlus" :
return(new fsplayer.core.playback.transitions.CTransitionShapePlus(parameters));
case "SplitHorizontalIn" :
return(new fsplayer.core.playback.transitions.CTransitionSplit(parameters, fsplayer.core.playback.transitions.CTransitionSplit.HORIZONTAL_IN));
case "SplitHorizontalOut" :
return(new fsplayer.core.playback.transitions.CTransitionSplit(parameters, fsplayer.core.playback.transitions.CTransitionSplit.HORIZONTAL_OUT));
case "SplitVerticalIn" :
return(new fsplayer.core.playback.transitions.CTransitionSplit(parameters, fsplayer.core.playback.transitions.CTransitionSplit.VERTICAL_IN));
case "SplitVerticalOut" :
return(new fsplayer.core.playback.transitions.CTransitionSplit(parameters, fsplayer.core.playback.transitions.CTransitionSplit.VERTICAL_OUT));
case "BlindsVertical" :
return(new fsplayer.core.playback.transitions.CTransitionBlinds(parameters, fsplayer.core.playback.transitions.CTransitionBlinds.DIRECTION_VERTICAL));
case "BlindsHorizontal" :
return(new fsplayer.core.playback.transitions.CTransitionBlinds(parameters, fsplayer.core.playback.transitions.CTransitionBlinds.DIRECTION_HORIZONTAL));
case "StripsLeftDown" :
return(new fsplayer.core.playback.transitions.CTransitionStrips(parameters, fsplayer.core.playback.transitions.CTransitionStrips.DIRECTION_LEFT_DOWN));
case "StripsLeftUp" :
return(new fsplayer.core.playback.transitions.CTransitionStrips(parameters, fsplayer.core.playback.transitions.CTransitionStrips.DIRECTION_LEFT_UP));
case "StripsRightDown" :
return(new fsplayer.core.playback.transitions.CTransitionStrips(parameters, fsplayer.core.playback.transitions.CTransitionStrips.DIRECTION_RIGHT_DOWN));
case "StripsRightUp" :
return(new fsplayer.core.playback.transitions.CTransitionStrips(parameters, fsplayer.core.playback.transitions.CTransitionStrips.DIRECTION_RIGHT_UP));
case "Wedge" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WEDGE));
case "Wheel1Spoke" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WHEEL_1));
case "Wheel2Spokes" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WHEEL_2));
case "Wheel3Spokes" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WHEEL_3));
case "Wheel4Spokes" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WHEEL_4));
case "Wheel8Spokes" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WHEEL_8));
case "RandomBarsVertical" :
return(new fsplayer.core.playback.transitions.CTransitionRandomBars(parameters, fsplayer.core.playback.transitions.CTransitionRandomBars.DIRECTION_VERTICAL));
case "RandomBarsHorizontal" :
return(new fsplayer.core.playback.transitions.CTransitionRandomBars(parameters, fsplayer.core.playback.transitions.CTransitionRandomBars.DIRECTION_HORIZONTAL));
case "Dissolve" :
return(new fsplayer.core.playback.transitions.CTransitionDissolve(parameters));
case "Newsflash" :
return(new fsplayer.core.playback.transitions.CTransitionNewsflash(parameters));
case "CheckerboardAcross" :
return(new fsplayer.core.playback.transitions.CTransitionCheckerboard(parameters, fsplayer.core.playback.transitions.CTransitionCheckerboard.DIRECTION_ACROSS));
case "CheckerboardDown" :
return(new fsplayer.core.playback.transitions.CTransitionCheckerboard(parameters, fsplayer.core.playback.transitions.CTransitionCheckerboard.DIRECTION_DOWN));
case "CombHorizontal" :
return(new fsplayer.core.playback.transitions.CTransitionComb(parameters, fsplayer.core.playback.transitions.CTransitionComb.DIRECTION_HORIZONTAL));
case "CombVertical" :
return(new fsplayer.core.playback.transitions.CTransitionComb(parameters, fsplayer.core.playback.transitions.CTransitionComb.DIRECTION_VERTICAL));
case "WarpIn" :
return(new fsplayer.core.playback.transitions.CTransitionWarp(parameters, fsplayer.core.playback.transitions.CTransitionWarp.DIRECTION_IN));
case "WarpOut" :
return(new fsplayer.core.playback.transitions.CTransitionWarp(parameters, fsplayer.core.playback.transitions.CTransitionWarp.DIRECTION_OUT));
case "" :
return(new fsplayer.core.playback.transitions.CTransitionNoTransition());
}
return(new fsplayer.core.playback.transitions.CTransitionFadeThroughBlack(parameters));
}
static var m_transitions = new Array("BoxDown", "BoxLeft", "BoxRight", "BoxUp", "OrbitDown", "OrbitLeft", "OrbitRight", "OrbitUp", "CubeDown", "CubeLeft", "CubeRight", "CubeUp", "RotateDown", "RotateLeft", "RotateRight", "RotateUp", "FlyThroughIn", "FlyThroughOut", "FlyThroughInBounce", "FlyThroughOutBounce", "WheelReverse1Spoke", "FerrisWheelLeft", "FerrisWheelRight", "Flashbulb", "FlipLeft", "FlipRight", "DoorsVertical", "DoorsHorizontal", "WindowVertical", "WindowHorizontal", "ConveyorLeft", "ConveyorRight", "GalleryLeft", "GalleryRight", "Honeycomb", "GlitterDiamondDown", "GlitterDiamondLeft", "GlitterDiamondRight", "GlitterDiamondUp", "GlitterHexagonDown", "GlitterHexagonLeft", "GlitterHexagonRight", "GlitterHexagonUp", "RevealBlackRight", "RevealBlackLeft", "RevealSmoothRight", "RevealSmoothLeft", "ShredRectangleIn", "ShredRectangleOut", "ShredStripsIn", "ShredStripsOut", "SwitchLeft", "SwitchRight", "CoverUp", "CoverDown", "CoverLeft", "CoverRight", "CoverLeftDown", "CoverLeftUp", "CoverRightDown", "CoverRightUp", "UncoverUp", "UncoverDown", "UncoverLeft", "UncoverRight", "UncoverLeftDown", "UncoverLeftUp", "UncoverRightDown", "UncoverRightUp", "PushUp", "PushDown", "PushLeft", "PushRight", "PanUp", "PanDown", "PanLeft", "PanRight", "WipeUp", "WipeDown", "WipeLeft", "WipeRight", "FadeSmoothly", "FadeThroughBlack", "CutThroughBlack", "BoxIn", "BoxOut", "ShapeCircle", "ShapeDiamond", "ShapePlus", "SplitHorizontalIn", "SplitHorizontalOut", "SplitVerticalIn", "SplitVerticalOut", "BlindsVertical", "BlindsHorizontal", "StripsLeftDown", "StripsLeftUp", "StripsRightDown", "StripsRightUp", "Wedge", "Wheel1Spoke", "Wheel2Spokes", "Wheel3Spokes", "Wheel4Spokes", "Wheel8Spokes", "RandomBarsVertical", "RandomBarsHorizontal", "Dissolve", "Newsflash", "CheckerboardAcross", "CheckerboardDown", "CombHorizontal", "CombVertical");
}
Symbol 373 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionEffectBase] Frame 0
class fsplayer.core.playback.transitions.CTransitionEffectBase implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_parameters;
function CTransitionEffectBase (parameters) {
m_slideWidth = parameters.getEnvironment().getSlideWidth();
m_slideHeight = parameters.getEnvironment().getSlideHeight();
m_maxSlideSize = Math.max(m_slideWidth, m_slideHeight);
m_hasOldSlide = parameters.hasOldSlide();
m_inverted = parameters.getInverted();
m_parameters = parameters;
}
function get slideWidth() {
return(m_slideWidth);
}
function get slideHeight() {
return(m_slideHeight);
}
function get maxSlideSize() {
return(m_maxSlideSize);
}
function get hasOldSlide() {
return(m_hasOldSlide);
}
function get inverted() {
return(m_inverted);
}
function applyEffect(phase) {
if (!m_initialized) {
initialize();
m_initialized = true;
}
applyEffectImpl(getPhase(phase));
if (phase >= 1) {
cleanup();
}
}
function initialize() {
}
function startEffect() {
}
function applyEffectImpl(phase) {
}
function getPhase(phase) {
return(((inverted && (invertible)) ? (1 - phase) : (phase)));
}
function get invertible() {
return(m_invertible);
}
function set invertible(inv) {
m_invertible = inv;
//return(invertible);
}
function get params() {
return(m_parameters);
}
function cleanup() {
var _local2 = (inverted ? (m_parameters.getOldSlide().getPrimaryMovie()) : (m_parameters.getNewSlide().getPrimaryMovie()));
_local2._x = 0;
_local2._y = 0;
_local2._xscale = 100;
_local2._yscale = 100;
_local2._visible = true;
}
var m_slideWidth = 0;
var m_slideHeight = 0;
var m_maxSlideSize = 0;
var m_hasOldSlide = false;
var m_inverted = false;
var m_invertible = true;
var m_initialized = false;
}
Symbol 374 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionEffectBase3D] Frame 0
class fsplayer.core.playback.transitions.CTransitionEffectBase3D extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_renderParent, m_renderMC, m_renderer, __get__slideWidth, __get__slideHeight, __get__maxSlideSize, m_modelView;
function CTransitionEffectBase3D (parameters) {
super(parameters);
var _local3 = parameters.getNewSlide().getPrimaryMovie();
m_renderParent = _local3._parent.createEmptyMovieClip("renderParent", _local3._parent.getNextHighestDepth());
m_renderMC = m_renderParent.createEmptyMovieClip("renderMC", m_renderParent.getNextHighestDepth());
prepareRender(m_renderMC);
}
function prepareRender(renderMC) {
m_renderer = new ispringsolutions.gl.Renderer(m_renderMC);
m_renderer.enable(ispringsolutions.gl.Renderer.TEXTURE_2D);
m_renderer.enable(ispringsolutions.gl.Renderer.CULL_FACE);
m_renderer.__set__cullFace(ispringsolutions.gl.Renderer.BACK);
m_renderer.__set__frontFace(ispringsolutions.gl.Renderer.CW);
m_renderer.getViewPort().setWidth(__get__slideWidth());
m_renderer.getViewPort().setHeight(__get__slideHeight());
var _local2 = m_renderer.getProjectionMatrix();
_local2.loadFrustum((-__get__slideWidth()) / 8, __get__slideWidth() / 8, (-__get__slideHeight()) / 8, __get__slideHeight() / 8, __get__maxSlideSize() / 4, __get__maxSlideSize() * 3);
m_modelView = renderer.getModelViewMatrix();
}
function createTexture(tex) {
renderer.bindTexture(m_textureIndex);
renderer.textureImage2D(tex, false);
return(m_textureIndex++);
}
function get renderMC() {
return(m_renderMC);
}
function get renderer() {
return(m_renderer);
}
function get modelView() {
return(m_modelView);
}
function startEffect() {
}
function renderPlaneDepth(width, height, depth) {
renderer.beginDraw(ispringsolutions.gl.Renderer.PRIMITIVE_TRIANGLE_STRIP);
renderer.setTextureCoord0(0, 0);
renderer.addVertex3(-0.5 * width, 0.5 * height, 0.5 * depth);
renderer.setTextureCoord0(1, 0);
renderer.addVertex3(0.5 * width, 0.5 * height, 0.5 * depth);
renderer.setTextureCoord0(0, 1);
renderer.addVertex3(-0.5 * width, -0.5 * height, 0.5 * depth);
renderer.setTextureCoord0(1, 1);
renderer.addVertex3(0.5 * width, -0.5 * height, 0.5 * depth);
renderer.endDraw();
renderer.render();
}
function renderPlane(x, y, w, h, tx1, ty1, tx2, ty2) {
renderer.beginDraw(ispringsolutions.gl.Renderer.PRIMITIVE_TRIANGLE_STRIP);
renderer.setTextureCoord0(tx1, ty1);
renderer.addVertex3(x, y, 0);
renderer.setTextureCoord0(tx2, ty1);
renderer.addVertex3(x + w, y, 0);
renderer.setTextureCoord0(tx1, ty2);
renderer.addVertex3(x, y - h, 0);
renderer.setTextureCoord0(tx2, ty2);
renderer.addVertex3(x + w, y - h, 0);
renderer.endDraw();
renderer.render();
}
function resetMatrix(z) {
modelView.loadLookAtRH(0, 0, z, 0, 0, 0, 0, 1, 0);
}
function render() {
m_renderMC.clear();
if (!m_renderParentInitialized) {
m_renderParentInitialized = true;
m_renderParent.beginFill(0, 100);
m_renderParent.lineTo(0, __get__slideHeight());
m_renderParent.lineTo(__get__slideWidth(), __get__slideHeight());
m_renderParent.lineTo(__get__slideWidth(), 0);
m_renderParent.lineTo(0, 0);
m_renderParent.endFill();
}
}
function cleanup() {
super.cleanup();
m_renderParent.removeMovieClip();
}
var m_renderParentInitialized = false;
var m_textureIndex = 0;
static var HALFPI = (Math.PI/2);
}
Symbol 375 MovieClip [__Packages.ispringsolutions.gl.IVertexProgramState] Frame 0
interface ispringsolutions.gl.IVertexProgramState
{
}
Symbol 376 MovieClip [__Packages.ispringsolutions.gl.Matrix4] Frame 0
class ispringsolutions.gl.Matrix4
{
var m03, m02, m01, m00, m13, m12, m11, m10, m23, m22, m21, m20, m33, m32, m31, m30;
function Matrix4 () {
}
function mult(other) {
var _local3 = new ispringsolutions.gl.Matrix4();
_local3.m00 = (((m00 * other.m00) + (m01 * other.m10)) + (m02 * other.m20)) + (m03 * other.m30);
_local3.m01 = (((m00 * other.m01) + (m01 * other.m11)) + (m02 * other.m21)) + (m03 * other.m31);
_local3.m02 = (((m00 * other.m02) + (m01 * other.m12)) + (m02 * other.m22)) + (m03 * other.m32);
_local3.m03 = (((m00 * other.m03) + (m01 * other.m13)) + (m02 * other.m23)) + (m03 * other.m33);
_local3.m10 = (((m10 * other.m00) + (m11 * other.m10)) + (m12 * other.m20)) + (m13 * other.m30);
_local3.m11 = (((m10 * other.m01) + (m11 * other.m11)) + (m12 * other.m21)) + (m13 * other.m31);
_local3.m12 = (((m10 * other.m02) + (m11 * other.m12)) + (m12 * other.m22)) + (m13 * other.m32);
_local3.m13 = (((m10 * other.m03) + (m11 * other.m13)) + (m12 * other.m23)) + (m13 * other.m33);
_local3.m20 = (((m20 * other.m00) + (m21 * other.m10)) + (m22 * other.m20)) + (m23 * other.m30);
_local3.m21 = (((m20 * other.m01) + (m21 * other.m11)) + (m22 * other.m21)) + (m23 * other.m31);
_local3.m22 = (((m20 * other.m02) + (m21 * other.m12)) + (m22 * other.m22)) + (m23 * other.m32);
_local3.m23 = (((m20 * other.m03) + (m21 * other.m13)) + (m22 * other.m23)) + (m23 * other.m33);
_local3.m30 = (((m30 * other.m00) + (m31 * other.m10)) + (m32 * other.m20)) + (m33 * other.m30);
_local3.m31 = (((m30 * other.m01) + (m31 * other.m11)) + (m32 * other.m21)) + (m33 * other.m31);
_local3.m32 = (((m30 * other.m02) + (m31 * other.m12)) + (m32 * other.m22)) + (m33 * other.m32);
_local3.m33 = (((m30 * other.m03) + (m31 * other.m13)) + (m32 * other.m23)) + (m33 * other.m33);
return(_local3);
}
function invert() {
var _local5 = toArray();
var _local7 = calcDeterminantInternal(_local5);
if (_local7 != 0) {
var _local6 = 1 / _local7;
var _local3 = 0;
while (_local3 < 4) {
var _local2 = 0;
while (_local2 < 4) {
var _local4 = calcMinor(_local5, _local2, _local3) * _local6;
this[("m" + _local3) + _local2] = ((((_local3 + _local2) % 2) == 0) ? (_local4) : (-_local4));
_local2++;
}
_local3++;
}
}
}
function get determinant() {
return(calcDeterminantInternal(toArray()));
}
function toArray() {
var _local2 = new Array(4);
_local2[0] = new Array(m00, m01, m02, m03);
_local2[1] = new Array(m10, m11, m12, m13);
_local2[2] = new Array(m20, m21, m22, m23);
_local2[3] = new Array(m30, m31, m32, m33);
return(_local2);
}
function orthonormalize() {
var _local3 = ispringsolutions.gl.Vector3.create(m00, m10, m20);
_local3.normalize();
var _local2 = ispringsolutions.gl.Vector3.create(m01, m11, m21);
_local2.normalize();
var _local4 = _local3.crossProduct(_local2);
_local3 = _local2.crossProduct(_local4);
m00 = _local3.x;
m10 = _local3.y;
m20 = _local3.z;
m01 = _local2.x;
m11 = _local2.y;
m21 = _local2.z;
m02 = _local4.x;
m12 = _local4.y;
m22 = _local4.z;
}
static function calcDeterminantInternal(m) {
if (m.length == 2) {
return((m[0][0] * m[1][1]) - (m[0][1] * m[1][0]));
}
if (m.length == 3) {
return(((m[0][0] * ((m[1][1] * m[2][2]) - (m[2][1] * m[1][2]))) - (m[0][1] * ((m[1][0] * m[2][2]) - (m[1][2] * m[2][0])))) + (m[0][2] * ((m[1][0] * m[2][1]) - (m[1][1] * m[2][0]))));
}
return((((m[0][0] * calcMinor(m, 0, 0)) - (m[0][1] * calcMinor(m, 0, 1))) + (m[0][2] * calcMinor(m, 0, 2))) - (m[0][3] * calcMinor(m, 0, 3)));
}
static function calcMinor(m, row, col) {
var _local7 = new Array();
var _local4 = m.length;
var _local2 = 0;
while (_local2 < _local4) {
if (_local2 != row) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local4) {
if (_local1 != col) {
_local3.push(m[_local2][_local1]);
}
_local1++;
}
_local7.push(_local3);
}
_local2++;
}
return(calcDeterminantInternal(_local7));
}
function translate(dx, dy, dz) {
var _local2 = new ispringsolutions.gl.Matrix4();
_local2.loadTranslation(dx, dy, dz);
load(mult(_local2));
}
function rotate(angle, ux, uy, uz) {
var _local2 = new ispringsolutions.gl.Matrix4();
_local2.loadRotation(angle, ux, uy, uz);
load(mult(_local2));
}
function rotateX(angle) {
var _local2 = new ispringsolutions.gl.Matrix4();
_local2.loadRotationX(angle);
load(mult(_local2));
}
function rotateY(angle) {
var _local2 = new ispringsolutions.gl.Matrix4();
_local2.loadRotationY(angle);
load(mult(_local2));
}
function rotateZ(angle) {
var _local2 = new ispringsolutions.gl.Matrix4();
_local2.loadRotationZ(angle);
load(mult(_local2));
}
function load(m) {
m00 = m.m00;
m01 = m.m01;
m02 = m.m02;
m03 = m.m03;
m10 = m.m10;
m11 = m.m11;
m12 = m.m12;
m13 = m.m13;
m20 = m.m20;
m21 = m.m21;
m22 = m.m22;
m23 = m.m23;
m30 = m.m30;
m31 = m.m31;
m32 = m.m32;
m33 = m.m33;
}
function loadArray(m) {
m00 = m[0][0];
m01 = m[0][1];
m02 = m[0][2];
m03 = m[0][3];
m10 = m[1][0];
m11 = m[1][1];
m12 = m[1][2];
m13 = m[1][3];
m20 = m[2][0];
m21 = m[2][1];
m22 = m[2][2];
m23 = m[2][3];
m30 = m[3][0];
m31 = m[3][1];
m32 = m[3][2];
m33 = m[3][3];
}
function loadIdentity() {
m00 = 1;
m01 = 0;
m02 = 0;
m03 = 0;
m10 = 0;
m11 = 1;
m12 = 0;
m13 = 0;
m20 = 0;
m21 = 0;
m22 = 1;
m23 = 0;
m30 = 0;
m31 = 0;
m32 = 0;
m33 = 1;
}
function loadTranslation(dx, dy, dz) {
m00 = 1;
m01 = 0;
m02 = 0;
m03 = dx;
m10 = 0;
m11 = 1;
m12 = 0;
m13 = dy;
m20 = 0;
m21 = 0;
m22 = 1;
m23 = dz;
m30 = 0;
m31 = 0;
m32 = 0;
m33 = 1;
}
function loadScale(sx, sy, sz) {
m00 = sx;
m01 = 0;
m02 = 0;
m03 = 0;
m10 = 0;
m11 = sy;
m12 = 0;
m13 = 0;
m20 = 0;
m21 = 0;
m22 = sz;
m23 = 0;
m30 = 0;
m31 = 0;
m32 = 0;
m33 = 1;
}
function loadFrustum(left, right, bottom, top, near, far) {
var _local5 = near + near;
var _local3 = right - left;
var _local6 = top - bottom;
var _local4 = far - near;
var _local10 = (right + left) / _local3;
var _local9 = (top + bottom) / _local6;
var _local8 = (-(far + near)) / _local4;
var _local7 = ((-2 * far) * near) / _local4;
m00 = _local5 / _local3;
m01 = 0;
m02 = _local10;
m03 = 0;
m10 = 0;
m11 = _local5 / _local6;
m12 = _local9;
m13 = 0;
m20 = 0;
m21 = 0;
m22 = _local8;
m23 = _local7;
m30 = 0;
m31 = 0;
m32 = -1;
m33 = 0;
}
function loadPerspective(fovY, aspect, near, far) {
var _local2 = near * Math.tan((Math.PI * fovY) / 360);
var _local4 = -_local2;
var _local3 = _local2 * aspect;
var _local5 = -_local3;
loadFrustum(_local5, _local3, _local4, _local2, near, far);
}
function loadLookAtRH(eyeX, eyeY, eyeZ, targetX, targetY, targetZ, upX, upY, upZ) {
var _local5 = ispringsolutions.gl.Vector3.create(eyeX, eyeY, eyeZ);
var _local2 = ispringsolutions.gl.Vector3.create(eyeX - targetX, eyeY - targetY, eyeZ - targetZ);
_local2.normalize();
var _local3 = ispringsolutions.gl.Vector3.create(upX, upY, upZ).crossProduct(_local2);
_local3.normalize();
var _local4 = _local2.crossProduct(_local3);
m00 = _local3.x;
m01 = _local3.y;
m02 = _local3.z;
m03 = -_local5.dotProduct(_local3);
m10 = _local4.x;
m11 = _local4.y;
m12 = _local4.z;
m13 = -_local5.dotProduct(_local4);
m20 = _local2.x;
m21 = _local2.y;
m22 = _local2.z;
m23 = -_local5.dotProduct(_local2);
m30 = 0;
m31 = 0;
m32 = 0;
m33 = 1;
}
function clone() {
var _local2 = new ispringsolutions.gl.Matrix4();
_local2.load(this);
return(_local2);
}
function loadRotationX(angle) {
var _local3 = Math.sin(angle);
var _local2 = Math.cos(angle);
m00 = 1;
m01 = 0;
m02 = 0;
m03 = 0;
m10 = 0;
m11 = _local2;
m12 = -_local3;
m13 = 0;
m20 = 0;
m21 = _local3;
m22 = _local2;
m23 = 0;
m30 = 0;
m31 = 0;
m32 = 0;
m33 = 1;
}
function loadRotationY(angle) {
var _local3 = Math.sin(angle);
var _local2 = Math.cos(angle);
m00 = _local2;
m01 = 0;
m02 = _local3;
m03 = 0;
m10 = 0;
m11 = 1;
m12 = 0;
m13 = 0;
m20 = -_local3;
m21 = 0;
m22 = _local2;
m23 = 0;
m30 = 0;
m31 = 0;
m32 = 0;
m33 = 1;
}
function loadRotationZ(angle) {
var _local3 = Math.sin(angle);
var _local2 = Math.cos(angle);
m00 = _local2;
m01 = -_local3;
m02 = 0;
m03 = 0;
m10 = _local3;
m11 = _local2;
m12 = 0;
m13 = 0;
m20 = 0;
m21 = 0;
m22 = 1;
m23 = 0;
m30 = 0;
m31 = 0;
m32 = 0;
m33 = 1;
}
function loadRotation(angle, ux, uy, uz) {
var _local7 = 1 / Math.sqrt(((ux * ux) + (uy * uy)) + (uz * uz));
ux = ux * _local7;
uy = uy * _local7;
uz = uz * _local7;
var _local6 = Math.cos(-angle);
var _local8 = Math.sin(-angle);
var _local2 = 1 - _local6;
var _local10 = ux * uy;
var _local9 = ux * uz;
var _local11 = uy * uz;
var _local14 = _local8 * ux;
var _local13 = _local8 * uy;
var _local12 = _local8 * uz;
m00 = _local6 + ((_local2 * ux) * ux);
m10 = (_local2 * _local10) + _local12;
m20 = (_local2 * _local9) - _local13;
m01 = (_local2 * _local10) - _local12;
m11 = _local6 + ((_local2 * uy) * uy);
m21 = (_local2 * _local11) + _local14;
m02 = (_local2 * _local9) + _local13;
m12 = (_local2 * _local11) - _local14;
m22 = _local6 + ((_local2 * uz) * uz);
m30 = (m31 = (m32 = (m03 = (m13 = (m23 = 0)))));
m33 = 1;
}
function toString() {
var _local2 = "";
_local2 = _local2 + (((((((m00 + " ") + m01) + " ") + m02) + " ") + m03) + newline);
_local2 = _local2 + (((((((m10 + " ") + m11) + " ") + m12) + " ") + m13) + newline);
_local2 = _local2 + (((((((m20 + " ") + m21) + " ") + m22) + " ") + m23) + newline);
_local2 = _local2 + ((((((m30 + " ") + m31) + " ") + m32) + " ") + m33);
return(_local2);
}
function getRow(rowIndex) {
switch (rowIndex) {
case 0 :
return(ispringsolutions.gl.Vector4.create(m00, m01, m02, m03));
case 1 :
return(ispringsolutions.gl.Vector4.create(m10, m11, m12, m13));
case 2 :
return(ispringsolutions.gl.Vector4.create(m20, m21, m22, m23));
case 3 :
return(ispringsolutions.gl.Vector4.create(m30, m31, m32, m33));
}
return(new ispringsolutions.gl.Vector4());
}
}
Symbol 377 MovieClip [__Packages.ispringsolutions.gl.Vector3] Frame 0
class ispringsolutions.gl.Vector3
{
var x, y, z;
function Vector3 (newX, newY, newZ) {
x = newX;
y = newY;
z = newZ;
}
static function create(newX, newY, newZ) {
return(new ispringsolutions.gl.Vector3(newX, newY, newZ));
}
function clone() {
return(create(x, y, z));
}
function dotProduct(other) {
return(((x * other.x) + (y * other.y)) + (z * other.z));
}
function crossProduct(v1) {
return(create((y * v1.z) - (z * v1.y), (z * v1.x) - (x * v1.z), (x * v1.y) - (y * v1.x)));
}
static function transformPoint(p, m) {
if ((((m.m30 == 0) && (m.m31 == 0)) && (m.m32 == 0)) && (m.m33 == 1)) {
return(create((((m.m00 * p.x) + (m.m01 * p.y)) + (m.m02 * p.z)) + m.m03, (((m.m10 * p.x) + (m.m11 * p.y)) + (m.m12 * p.z)) + m.m13, (((m.m20 * p.x) + (m.m21 * p.y)) + (m.m22 * p.z)) + m.m23));
}
var _local3 = 1 / ((((m.m30 * p.x) + (m.m31 * p.y)) + (m.m32 * p.z)) + m.m33);
return(create(((((m.m00 * p.x) + (m.m01 * p.y)) + (m.m02 * p.z)) + m.m03) * _local3, ((((m.m10 * p.x) + (m.m11 * p.y)) + (m.m12 * p.z)) + m.m13) * _local3, ((((m.m20 * p.x) + (m.m21 * p.y)) + (m.m22 * p.z)) + m.m23) * _local3));
}
static function transformVector(p, m) {
return(create(((m.m00 * p.x) + (m.m01 * p.y)) + (m.m02 * p.z), ((m.m10 * p.x) + (m.m11 * p.y)) + (m.m12 * p.z), ((m.m20 * p.x) + (m.m21 * p.y)) + (m.m22 * p.z)));
}
function normalize() {
var _local2 = 1 / Math.sqrt(((x * x) + (y * y)) + (z * z));
x = x * _local2;
y = y * _local2;
z = z * _local2;
}
function add(other) {
return(create(x + other.x, y + other.y, z + other.z));
}
function sub(other) {
return(create(x - other.x, y - other.y, z - other.z));
}
function get length() {
return(Math.sqrt(((x * x) + (y * y)) + (z * z)));
}
function projectFast(sx, sy, dx, dy) {
return(new flash.geom.Point(((x * sx) / z) + dx, ((y * sy) / z) + dy));
}
function toString() {
return(((((("(" + x) + ", ") + y) + ", ") + z) + ")");
}
}
Symbol 378 MovieClip [__Packages.ispringsolutions.gl.Vector4] Frame 0
class ispringsolutions.gl.Vector4
{
var w, x, y, z;
function Vector4 () {
}
static function create(newX, newY, newZ, newW) {
var _local1 = new ispringsolutions.gl.Vector4();
_local1.x = newX;
_local1.y = newY;
_local1.z = newZ;
_local1.w = newW;
return(_local1);
}
function createPerspectivePoint() {
var _local2 = 1 / w;
return(ispringsolutions.gl.Vector3.create(x * _local2, y * _local2, z * _local2));
}
static function lerp(v0, v1, t) {
var _local2 = new ispringsolutions.gl.Vector4();
_local2.x = v0.x + (t * (v1.x - v0.x));
_local2.y = v0.y + (t * (v1.y - v0.y));
_local2.z = v0.z + (t * (v1.z - v0.z));
_local2.w = v0.w + (t * (v1.w - v0.w));
return(_local2);
}
function clone() {
return(create(x, y, z, w));
}
static function createPoint(x, y, z) {
return(create(x, y, z, 1));
}
static function createVector(x, y, z) {
return(create(x, y, z, 0));
}
function performPerspectiveDivision() {
var _local2 = 1 / w;
x = x * _local2;
y = y * _local2;
z = z * _local2;
w = 1;
}
function dotProduct(other) {
return((((x * other.x) + (y * other.y)) + (z * other.z)) + (w * other.w));
}
function mult(mat) {
return(create((((mat.m00 * x) + (mat.m01 * y)) + (mat.m02 * z)) + (mat.m03 * w), (((mat.m10 * x) + (mat.m11 * y)) + (mat.m12 * z)) + (mat.m13 * w), (((mat.m20 * x) + (mat.m21 * y)) + (mat.m22 * z)) + (mat.m23 * w), (((mat.m30 * x) + (mat.m31 * y)) + (mat.m32 * z)) + (mat.m33 * w)));
}
function projectFast(sx, sy, dx, dy) {
return(new flash.geom.Point(((x * sx) / z) + dx, ((y * sy) / z) + dy));
}
function toString() {
return(((((((("(" + x) + ", ") + y) + ", ") + z) + ", ") + w) + ")");
}
}
Symbol 379 MovieClip [__Packages.ispringsolutions.gl.IPolygonRenderer] Frame 0
interface ispringsolutions.gl.IPolygonRenderer
{
}
Symbol 380 MovieClip [__Packages.ispringsolutions.gl.IPrimitive] Frame 0
interface ispringsolutions.gl.IPrimitive
{
}
Symbol 381 MovieClip [__Packages.ispringsolutions.gl.ITextureObject] Frame 0
interface ispringsolutions.gl.ITextureObject
{
}
Symbol 382 MovieClip [__Packages.ispringsolutions.gl.Renderer] Frame 0
class ispringsolutions.gl.Renderer implements ispringsolutions.gl.IVertexProgramState, ispringsolutions.gl.IPolygonRenderer
{
var m_projectionMatrix, m_modelViewMatrix, m_mc, m_primitiveCollection, m_clipper, TRIANGLE_PRIMITIVE_ASSEMBLER, TRIANGLE_FAN_PRIMITIVE_ASSEMBLER, TRIANGLE_STRIP_PRIMITIVE_ASSEMBLER, m_vertexProgram, m_currentTexCoord, m_viewPort, m_booleanFlags, m_modelViewStack, m_projectionStack, m_textureObjects, m_textureIndex, m_primitiveAssembler, m_maxPerspectiveErrorNormalized, m_viewHalfWidth, m_viewHalfHeight, m_viewCenterX, m_viewCenterY, m_modelViewProjectionMatrix, __get__cullFace, __get__frontFace, m_temporaryTarget, m_textureBitmap, m_repeatTexture, m_smoothTexture;
function Renderer (mc) {
m_projectionMatrix = new ispringsolutions.gl.Matrix4();
m_projectionMatrix.loadIdentity();
m_modelViewMatrix = new ispringsolutions.gl.Matrix4();
m_modelViewMatrix.loadIdentity();
m_mc = mc;
m_primitiveCollection = new ispringsolutions.gl.PrimitiveCollection();
m_clipper = new ispringsolutions.gl.Clipper();
TRIANGLE_PRIMITIVE_ASSEMBLER = new ispringsolutions.gl.TrianglePrimitiveAssembler(m_primitiveCollection, m_clipper, this);
TRIANGLE_FAN_PRIMITIVE_ASSEMBLER = new ispringsolutions.gl.TriangleFanPrimitiveAssembler(m_primitiveCollection, m_clipper, this);
TRIANGLE_STRIP_PRIMITIVE_ASSEMBLER = new ispringsolutions.gl.TriangleStripPrimitiveAssembler(m_primitiveCollection, m_clipper, this);
m_vertexProgram = new ispringsolutions.gl.VertexProgramStandard(this);
m_currentTexCoord = new flash.geom.Point(0, 0);
m_viewPort = new ispringsolutions.gl.ViewPort(0, 0, Stage.width, Stage.height);
m_booleanFlags = new Object();
m_booleanFlags[TEXTURE_2D] = false;
m_booleanFlags[CULL_FACE] = false;
m_modelViewStack = new Array();
m_projectionStack = new Array();
m_textureObjects = new Array();
m_textureIndex = 0;
}
function set renderTarget(mc) {
m_mc = mc;
m_primitiveAssembler.setRenderTarget(mc);
//return(renderTarget);
}
function get renderTarget() {
return(m_mc);
}
function getViewPort() {
return(m_viewPort);
}
function render() {
m_maxPerspectiveErrorNormalized = m_maxPerspectiveError / m_viewPort.getWidth();
m_viewHalfWidth = m_viewPort.getWidth() * 0.5;
m_viewHalfHeight = m_viewPort.getHeight() * 0.5;
m_viewCenterX = m_viewPort.getLeft() + m_viewHalfWidth;
m_viewCenterY = m_viewPort.getTop() + m_viewHalfHeight;
m_primitiveCollection.render(this);
m_primitiveCollection.clear();
}
function pushMatrix(type) {
switch (type) {
case MODELVIEW_MATRIX :
m_modelViewStack.push(m_modelViewMatrix);
m_modelViewMatrix = m_modelViewMatrix.clone();
break;
case PROJECTION_MATRIX :
m_projectionStack.push(m_projectionMatrix);
m_projectionMatrix = m_projectionMatrix.clone();
}
}
function setColor(c, a) {
m_color = c;
m_alpha = a;
}
function popMatrix(type) {
switch (type) {
case MODELVIEW_MATRIX :
m_modelViewMatrix = ispringsolutions.gl.Matrix4(m_modelViewStack.pop());
break;
case PROJECTION_MATRIX :
m_projectionMatrix = ispringsolutions.gl.Matrix4(m_projectionStack.pop());
}
}
function resetPrimitiveGroup() {
m_primitiveAssembler.reset();
}
function beginDraw(type) {
switch (type) {
case PRIMITIVE_TRIANGLES :
m_primitiveAssembler = TRIANGLE_PRIMITIVE_ASSEMBLER;
break;
case PRIMITIVE_TRIANGLE_FAN :
m_primitiveAssembler = TRIANGLE_FAN_PRIMITIVE_ASSEMBLER;
break;
case PRIMITIVE_TRIANGLE_STRIP :
m_primitiveAssembler = TRIANGLE_STRIP_PRIMITIVE_ASSEMBLER;
}
m_modelViewProjectionMatrix = undefined;
m_primitiveAssembler.setRenderTarget(m_mc);
m_primitiveAssembler.beginDraw();
}
function endDraw() {
m_primitiveAssembler.endDraw();
m_primitiveAssembler = undefined;
}
function addVertex2(x, y) {
var _local2 = ispringsolutions.gl.Vector4.createPoint(x, y, 0);
addVertex(_local2);
}
function addVertex3(x, y, z) {
var _local2 = ispringsolutions.gl.Vector4.createPoint(x, y, z);
addVertex(_local2);
}
function setTextureCoord0(u, v) {
m_currentTexCoord.x = u;
m_currentTexCoord.y = v;
}
function enable(prop) {
m_booleanFlags[prop] = true;
}
function disable(prop) {
m_booleanFlags[prop] = false;
}
function isEnabled(prop) {
return(m_booleanFlags[prop]);
}
function set cullFace(cf) {
m_cullFace = cf;
//return(__get__cullFace());
}
function set frontFace(ff) {
m_frontFace = ff;
//return(__get__frontFace());
}
function addVertex(v) {
var _local2 = new ispringsolutions.gl.Vertex(v, m_currentTexCoord);
m_vertexProgram.transformVertex(_local2);
m_primitiveAssembler.addVertex(_local2);
}
function getModelViewProjectionMatrix() {
if (!m_modelViewProjectionMatrix) {
m_modelViewProjectionMatrix = m_projectionMatrix.mult(m_modelViewMatrix);
}
return(m_modelViewProjectionMatrix);
}
function getModelViewMatrix() {
return(m_modelViewMatrix);
}
function getProjectionMatrix() {
return(m_projectionMatrix);
}
function bindTexture(textureIndex) {
m_textureIndex = textureIndex;
}
function textureImage2D(bitmap, flip) {
m_textureObjects[m_textureIndex] = new ispringsolutions.gl.BitmapTextureObject(bitmap, flip);
}
function preparePrimitive(primitive) {
if (m_booleanFlags[TEXTURE_2D]) {
primitive.setTextureObject(m_textureObjects[m_textureIndex]);
}
}
static function calcTransformMatrix(p0, p1, p2) {
return(new flash.geom.Matrix(p1.x - p0.x, p1.y - p0.y, p2.x - p0.x, p2.y - p0.y, p0.x, p0.y));
}
function faceIsCulled(v0, v1, v2) {
if (!m_booleanFlags[CULL_FACE]) {
return(false);
}
var _local2 = ((v1.x - v0.x) * (v2.y - v0.y)) - ((v1.y - v0.y) * (v2.x - v0.x));
if (_local2 == 0) {
return(true);
}
var _local3 = ((_local2 > 0) && (m_frontFace == CCW)) || ((_local2 < 0) && (m_frontFace == CW));
return((_local3 && (m_cullFace == FRONT)) || ((!_local3) && (m_cullFace == BACK)));
}
function set maxPerspectiveError(error) {
m_maxPerspectiveError = error;
//return(maxPerspectiveError);
}
function set maxPerspectiveLevel(level) {
m_maxPerspectiveLevel = level;
//return(maxPerspectiveLevel);
}
function get maxPerspectiveError() {
return(m_maxPerspectiveError);
}
function get maxPerspectiveLevel() {
return(m_maxPerspectiveLevel);
}
function renderPerspectiveTriangleInternal(v0, t0, v1, t1, v2, t2, level) {
var _local17 = v0.createPerspectivePoint();
var _local16 = v1.createPerspectivePoint();
var _local15 = v2.createPerspectivePoint();
if (level < m_maxPerspectiveLevel) {
var _local4 = ispringsolutions.gl.Vector4.lerp(v0, v1, 0.5);
var _local5 = ispringsolutions.gl.Vector4.lerp(v1, v2, 0.5);
var _local3 = ispringsolutions.gl.Vector4.lerp(v0, v2, 0.5);
var _local21 = Math.abs(((_local17.x + _local16.x) * 0.5) - (_local4.x / _local4.w));
var _local23 = Math.abs(((_local17.y + _local16.y) * 0.5) - (_local4.y / _local4.w));
var _local20 = (_local21 + _local23) > m_maxPerspectiveErrorNormalized;
var _local22 = Math.abs(((_local16.x + _local15.x) * 0.5) - (_local5.x / _local5.w));
var _local24 = Math.abs(((_local16.y + _local15.y) * 0.5) - (_local5.y / _local5.w));
var _local18 = (_local22 + _local24) > m_maxPerspectiveErrorNormalized;
var _local25 = Math.abs(((_local17.x + _local15.x) * 0.5) - (_local3.x / _local3.w));
var _local26 = Math.abs(((_local17.y + _local15.y) * 0.5) - (_local3.y / _local3.w));
var _local19 = (_local25 + _local26) > m_maxPerspectiveErrorNormalized;
var _local9 = flash.geom.Point.interpolate(t0, t1, 0.5);
var _local14 = flash.geom.Point.interpolate(t1, t2, 0.5);
var _local6 = flash.geom.Point.interpolate(t0, t2, 0.5);
level++;
if ((_local20 && (_local18)) && (_local19)) {
renderPerspectiveTriangleInternal(v0, t0, _local4, _local9, _local3, _local6, level);
renderPerspectiveTriangleInternal(v1, t1, _local5, _local14, _local4, _local9, level);
renderPerspectiveTriangleInternal(v2, t2, _local3, _local6, _local5, _local14, level);
renderPerspectiveTriangleInternal(_local4, _local9, _local5, _local14, _local3, _local6, level);
return(undefined);
}
if (_local20 && (_local19)) {
renderPerspectiveTriangleInternal(v0, t0, _local4, _local9, _local3, _local6, level);
renderPerspectiveTriangleInternal(v1, t1, _local4, _local9, _local3, _local6, level);
renderPerspectiveTriangleInternal(v2, t2, v1, t1, _local3, _local6, level);
return(undefined);
}
if (_local20 && (_local18)) {
renderPerspectiveTriangleInternal(v0, t0, _local4, _local9, v2, t2, level);
renderPerspectiveTriangleInternal(_local4, _local9, v1, t1, _local5, _local14, level);
renderPerspectiveTriangleInternal(_local4, _local9, _local5, _local14, v2, t2, level);
return(undefined);
}
if (_local19 && (_local18)) {
renderPerspectiveTriangleInternal(v0, t0, v1, t1, _local3, _local6, level);
renderPerspectiveTriangleInternal(v1, t1, _local5, _local14, _local3, _local6, level);
renderPerspectiveTriangleInternal(_local5, _local14, v2, t2, _local3, _local6, level);
return(undefined);
}
if (_local20) {
renderPerspectiveTriangleInternal(_local4, _local9, v2, t2, v0, t0, level);
renderPerspectiveTriangleInternal(_local4, _local9, v1, t1, v2, t2, level);
return(undefined);
}
if (_local19) {
renderPerspectiveTriangleInternal(v0, t0, v1, t1, _local3, _local6, level);
renderPerspectiveTriangleInternal(v1, t1, v2, t2, _local3, _local6, level);
return(undefined);
}
if (_local18) {
renderPerspectiveTriangleInternal(v0, t0, v1, t1, _local5, _local14, level);
renderPerspectiveTriangleInternal(v0, t0, _local5, _local14, v2, t2, level);
return(undefined);
}
}
renderTriangle(m_temporaryTarget, m_textureBitmap, new flash.geom.Point((_local17.x * m_viewHalfWidth) + m_viewCenterX, m_viewCenterY - (_local17.y * m_viewHalfHeight)), t0, new flash.geom.Point((_local16.x * m_viewHalfWidth) + m_viewCenterX, m_viewCenterY - (_local16.y * m_viewHalfHeight)), t1, new flash.geom.Point((_local15.x * m_viewHalfWidth) + m_viewCenterX, m_viewCenterY - (_local15.y * m_viewHalfHeight)), t2, m_repeatTexture, m_smoothTexture);
}
function renderSolidTriangle(v0, v1, v2, target) {
var _local5 = v0.createPerspectivePoint();
var _local4 = v1.createPerspectivePoint();
var _local3 = v2.createPerspectivePoint();
if (!target) {
target = m_mc;
}
target.beginFill(m_color, m_alpha);
target.moveTo((_local5.x * m_viewHalfWidth) + m_viewCenterX, m_viewCenterY - (_local5.y * m_viewHalfHeight));
target.lineTo((_local4.x * m_viewHalfWidth) + m_viewCenterX, m_viewCenterY - (_local4.y * m_viewHalfHeight));
target.lineTo((_local3.x * m_viewHalfWidth) + m_viewCenterX, m_viewCenterY - (_local3.y * m_viewHalfHeight));
target.endFill();
}
function renderPerspectiveTriangle(bitmapData, v0, t0, v1, t1, v2, t2, repeat, smooth, target) {
m_repeatTexture = repeat;
m_smoothTexture = smooth;
m_textureBitmap = bitmapData;
m_temporaryTarget = (target ? (target) : (m_mc));
renderPerspectiveTriangleInternal(v0, t0, v1, t1, v2, t2, 0);
}
static function renderTriangle(mc, bitmapData, v0, t0, v1, t1, v2, t2, repeat, smooth) {
if (repeat == undefined) {
repeat = true;
}
if (smooth == undefined) {
smooth = true;
}
var _local3 = calcTransformMatrix(v0, v1, v2);
var _local2 = calcTransformMatrix(t0, t1, t2);
_local2.invert();
_local2.concat(_local3);
mc.beginBitmapFill(bitmapData, _local2, repeat, smooth);
mc.moveTo(v0.x, v0.y);
mc.lineTo(v1.x, v1.y);
mc.lineTo(v2.x, v2.y);
mc.endFill();
}
static var PRIMITIVE_TRIANGLES = "triangles";
static var PRIMITIVE_TRIANGLE_FAN = "triangleFan";
static var PRIMITIVE_TRIANGLE_STRIP = "triangleStrip";
static var TEXTURE_2D = "texture2d";
static var CULL_FACE = "cullFace";
static var FRONT = "front";
static var BACK = "back";
static var CCW = "ccw";
static var CW = "cw";
static var MODELVIEW_MATRIX = "modelview";
static var PROJECTION_MATRIX = "projection";
var m_cullFace = BACK;
var m_frontFace = CCW;
var m_maxPerspectiveError = 10;
var m_maxPerspectiveLevel = 3;
var m_color = 0;
var m_alpha = 100;
}
Symbol 383 MovieClip [__Packages.ispringsolutions.gl.IPrimitiveAssembler] Frame 0
interface ispringsolutions.gl.IPrimitiveAssembler
{
}
Symbol 384 MovieClip [__Packages.ispringsolutions.gl.Vertex] Frame 0
class ispringsolutions.gl.Vertex
{
var m_vertex, m_textureCoord0, m_position, m_clipPosition;
function Vertex (vertex, texCoord0) {
m_positionInitialized = false;
m_vertex = vertex.clone();
m_textureCoord0 = texCoord0.clone();
m_position = vertex.clone();
}
function getVertex() {
return(m_vertex);
}
function get position() {
return(m_position);
}
function set position(pos) {
m_position = pos;
//return(position);
}
static function lerp(v0, v1, t) {
var _local1 = v0.m_textureCoord0;
var _local6 = v1.m_textureCoord0;
var _local2 = new ispringsolutions.gl.Vertex(ispringsolutions.gl.Vector4.lerp(v0.m_vertex, v1.m_vertex, t), new flash.geom.Point(_local1.x + (t * (_local6.x - _local1.x)), _local1.y + (t * (_local6.y - _local1.y))));
_local2.m_position = ispringsolutions.gl.Vector4.lerp(v0.m_position, v1.m_position, t);
if (v0.m_clipPosition && (v1.m_clipPosition)) {
_local2.m_clipPosition = ispringsolutions.gl.Vector4.lerp(v0.m_clipPosition, v1.m_clipPosition, t);
}
return(_local2);
}
function get clipPosition() {
if (m_positionInitialized == false) {
m_positionInitialized = true;
var _local2 = 1 / m_position.w;
m_clipPosition = ispringsolutions.gl.Vector4.createPoint(m_position.x * _local2, m_position.y * _local2, m_position.z * _local2);
}
return(m_clipPosition);
}
function get textureCoord0() {
return(m_textureCoord0);
}
function clone() {
var _local2 = new ispringsolutions.gl.Vertex(m_position, textureCoord0);
if (m_clipPosition) {
_local2.m_clipPosition = m_clipPosition.clone();
}
return(_local2);
}
var m_positionInitialized = true;
}
Symbol 385 MovieClip [__Packages.ispringsolutions.gl.TrianglePrimitiveAssemblerImpl] Frame 0
class ispringsolutions.gl.TrianglePrimitiveAssemblerImpl implements ispringsolutions.gl.IPrimitiveAssembler
{
var m_primitiveCollection, m_clipper, m_polygonRenderer, m_renderTarget, m_vertices;
function TrianglePrimitiveAssemblerImpl (primitiveCollection, clipper, polygonRenderer) {
m_primitiveCollection = primitiveCollection;
m_clipper = clipper;
m_polygonRenderer = polygonRenderer;
}
function setRenderTarget(mc) {
m_renderTarget = mc;
}
function beginDraw() {
m_vertices = new Array();
}
function endDraw() {
}
function reset() {
m_vertices = new Array();
}
function addVertex(vertex) {
throw new Error("addVertex method is not implemented");
}
function addTriangle(v0, v1, v2) {
var _local9 = [v0, v1, v2];
var _local5 = new Array();
v0 = v2;
var _local2;
_local2 = 0;
while (_local2 < 3) {
v1 = _local9[_local2];
var _local3 = m_clipper.clipEdge(v0, v1);
if (_local3) {
if (_local3.v0) {
_local5.push(_local3.v0);
}
if (_local3.v) {
_local5.push(_local3.v);
}
}
v0 = v1;
_local2++;
}
var _local10 = _local5.length - 1;
_local2 = 1;
while (_local2 < _local10) {
v0 = _local5[0];
v1 = _local5[_local2];
v2 = _local5[_local2 + 1];
if (!m_polygonRenderer.faceIsCulled(v0.__get__clipPosition(), v1.__get__clipPosition(), v2.__get__clipPosition())) {
var _local7 = new ispringsolutions.gl.TrianglePrimitive(v0, v1, v2, m_renderTarget);
m_polygonRenderer.preparePrimitive(_local7);
m_primitiveCollection.addPrimitive(_local7);
}
_local2++;
}
}
}
Symbol 386 MovieClip [__Packages.ispringsolutions.gl.IPrimitiveCollection] Frame 0
interface ispringsolutions.gl.IPrimitiveCollection
{
}
Symbol 387 MovieClip [__Packages.ispringsolutions.gl.IClipper] Frame 0
interface ispringsolutions.gl.IClipper
{
}
Symbol 388 MovieClip [__Packages.ispringsolutions.gl.TrianglePrimitive] Frame 0
class ispringsolutions.gl.TrianglePrimitive implements ispringsolutions.gl.IPrimitive
{
var m_v0, m_v1, m_v2, m_mc, m_texture;
function TrianglePrimitive (v0, v1, v2, mc) {
m_v0 = v0;
m_v1 = v1;
m_v2 = v2;
m_mc = mc;
}
function setTextureObject(tex) {
m_texture = tex;
}
function render(r) {
if (m_texture) {
r.renderPerspectiveTriangle(m_texture.getBitmap(), m_v0.__get__position(), m_texture.transformCoordinates(m_v0.__get__textureCoord0()), m_v1.__get__position(), m_texture.transformCoordinates(m_v1.__get__textureCoord0()), m_v2.__get__position(), m_texture.transformCoordinates(m_v2.__get__textureCoord0()), m_texture.getRepeat(), m_texture.getSmooth(), m_mc);
return(undefined);
}
r.renderSolidTriangle(m_v0.__get__position(), m_v1.__get__position(), m_v2.__get__position(), m_mc);
}
}
Symbol 389 MovieClip [__Packages.ispringsolutions.gl.TrianglePrimitiveAssembler] Frame 0
class ispringsolutions.gl.TrianglePrimitiveAssembler extends ispringsolutions.gl.TrianglePrimitiveAssemblerImpl
{
var m_vertices, addTriangle;
function TrianglePrimitiveAssembler (primitiveCollection, clipper, polygonRenderer) {
super(primitiveCollection, clipper, polygonRenderer);
}
function addVertex(vertex) {
m_vertices.push(vertex);
if (m_vertices.length == 3) {
addTriangle(m_vertices[0], m_vertices[1], m_vertices[2]);
m_vertices = new Array();
}
}
}
Symbol 390 MovieClip [__Packages.ispringsolutions.gl.TriangleFanPrimitiveAssembler] Frame 0
class ispringsolutions.gl.TriangleFanPrimitiveAssembler extends ispringsolutions.gl.TrianglePrimitiveAssemblerImpl
{
var m_vertices, addTriangle;
function TriangleFanPrimitiveAssembler (primitiveCollection, clipper, polygonRenderer) {
super(primitiveCollection, clipper, polygonRenderer);
}
function addVertex(vertex) {
m_vertices.push(vertex);
if (m_vertices.length == 3) {
addTriangle(m_vertices[0], m_vertices[1], m_vertices[2]);
m_vertices.splice(1, 1);
}
}
}
Symbol 391 MovieClip [__Packages.ispringsolutions.gl.TriangleStripPrimitiveAssembler] Frame 0
class ispringsolutions.gl.TriangleStripPrimitiveAssembler extends ispringsolutions.gl.TrianglePrimitiveAssemblerImpl
{
var m_vertices, addTriangle;
function TriangleStripPrimitiveAssembler (primitiveCollection, clipper, polygonRenderer) {
super(primitiveCollection, clipper, polygonRenderer);
}
function addVertex(vertex) {
m_vertices.push(vertex);
switch (m_vertices.length) {
case 3 :
addTriangle(m_vertices[0], m_vertices[1], m_vertices[2]);
break;
case 4 :
addTriangle(m_vertices[2], m_vertices[1], m_vertices[3]);
m_vertices.splice(0, 2);
}
}
}
Symbol 392 MovieClip [__Packages.ispringsolutions.gl.IVertexProgram] Frame 0
interface ispringsolutions.gl.IVertexProgram
{
}
Symbol 393 MovieClip [__Packages.ispringsolutions.gl.PrimitiveCollection] Frame 0
class ispringsolutions.gl.PrimitiveCollection implements ispringsolutions.gl.IPrimitiveCollection
{
var m_primitives;
function PrimitiveCollection () {
m_primitives = new Array();
}
function addPrimitive(primitive) {
m_primitives.push(primitive);
}
function render(r) {
var _local3 = m_primitives.length;
var _local2 = 0;
while (_local2 < _local3) {
m_primitives[_local2].render(r);
_local2++;
}
}
function clear() {
m_primitives = new Array();
}
}
Symbol 394 MovieClip [__Packages.ispringsolutions.gl.IViewPort] Frame 0
interface ispringsolutions.gl.IViewPort
{
}
Symbol 395 MovieClip [__Packages.ispringsolutions.gl.ViewPort] Frame 0
class ispringsolutions.gl.ViewPort implements ispringsolutions.gl.IViewPort
{
var m_left, m_top, m_width, m_height, halfWidth, halfHeight, cx, cy;
function ViewPort (l, t, w, h) {
m_left = l;
m_top = t;
m_width = w;
m_height = h;
halfWidth = w * 0.5;
halfHeight = h * 0.5;
cx = halfWidth + m_left;
cy = halfHeight + m_top;
}
function getLeft() {
return(m_left);
}
function setLeft(l) {
m_left = l;
cx = halfWidth + m_left;
}
function getTop() {
return(m_top);
}
function setTop(t) {
m_top = t;
cy = halfHeight + m_top;
}
function getWidth() {
return(m_width);
}
function setWidth(w) {
m_width = w;
halfWidth = w * 0.5;
cx = halfWidth + m_left;
}
function getHeight() {
return(m_height);
}
function setHeight(h) {
m_height = h;
halfHeight = h * 0.5;
cy = halfHeight + m_top;
}
function windowToClipped(p) {
return(ispringsolutions.gl.Vector3.create((p.x - cx) / halfWidth, (cy - p.y) / halfHeight, (p.z * 2) - 1));
}
function clippedToWindow(p) {
return(ispringsolutions.gl.Vector3.create((p.x * halfWidth) + cx, cy - (p.y * halfHeight), (p.z + 1) * 0.5));
}
function windowToClipped2D(p) {
return(new flash.geom.Point((p.x - cx) / halfWidth, (cy - p.y) / halfHeight));
}
function clippedToWindow2D(p) {
return(new flash.geom.Point((p.x * halfWidth) + cx, cy - (p.y * halfHeight)));
}
function clippedToWindowVector2D(p) {
return(new flash.geom.Point(p.x * halfWidth, (-p.y) * halfHeight));
}
}
Symbol 396 MovieClip [__Packages.ispringsolutions.gl.Clipper] Frame 0
class ispringsolutions.gl.Clipper implements ispringsolutions.gl.IClipper
{
function Clipper () {
}
function clipEdge(v0, v1) {
var _local5 = v0.__get__position();
var _local4 = v1.__get__position();
var _local2 = clipEdgeInternal(_local5, _local4);
if (!_local2) {
return(false);
}
var _local3 = new Object();
if (_local2.t0 != undefined) {
_local3.v0 = v0;
}
if (_local2.t != undefined) {
_local3.v = ispringsolutions.gl.Vertex.lerp(v0, v1, _local2.t);
}
if (_local2.t1 != undefined) {
_local3.v1 = v1;
}
return(_local3);
}
function clipEdgeInternal(v0, v1) {
var _local2 = (v0.w + v0.z) >= 0;
var _local4 = (v1.w + v1.z) >= 0;
if ((!_local2) && (!_local4)) {
return(_local2);
}
var _local1 = new Object();
if (_local2 != _local4) {
_local1.t = (v0.w + v0.z) / ((v0.w + v0.z) - (v1.w + v1.z));
}
if (_local2) {
_local1.t0 = 0;
}
if (_local4) {
_local1.t1 = 1;
}
return(_local1);
}
}
Symbol 397 MovieClip [__Packages.ispringsolutions.gl.VertexProgramStandard] Frame 0
class ispringsolutions.gl.VertexProgramStandard implements ispringsolutions.gl.IVertexProgram
{
var m_state;
function VertexProgramStandard (vertexProgramState) {
m_state = vertexProgramState;
}
function transformVertex(vertex) {
vertex.__set__position(vertex.getVertex().mult(m_state.getModelViewProjectionMatrix()));
}
}
Symbol 398 MovieClip [__Packages.ispringsolutions.gl.BitmapTextureObject] Frame 0
class ispringsolutions.gl.BitmapTextureObject implements ispringsolutions.gl.ITextureObject
{
var m_bitmap;
function BitmapTextureObject (bitmap, flip) {
m_bitmap = bitmap;
m_flip = flip || (flip == undefined);
}
function getSmooth() {
return(m_smooth);
}
function setSmooth(smooth) {
m_smooth = smooth;
}
function getRepeat() {
return(m_repeat);
}
function setRepeat(repeat) {
m_repeat = repeat;
}
function getBitmap() {
return(m_bitmap);
}
function transformCoordinates(normalizedCoords) {
return(new flash.geom.Point(normalizedCoords.x * m_bitmap.width, (m_flip ? (m_bitmap.height - (normalizedCoords.y * m_bitmap.height)) : (normalizedCoords.y * m_bitmap.height))));
}
var m_flip = true;
var m_smooth = true;
var m_repeat = false;
}
Symbol 399 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionBox3D] Frame 0
class fsplayer.core.playback.transitions.CTransitionBox3D extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var m_type, m_depth, slideWidth, slideHeight, m_slide2, __get__hasOldSlide, m_slide1, __get__inverted, inverted, __get__renderer, __get__slideWidth, __get__slideHeight, m_tex1, m_tex2, __get__maxSlideSize, resetMatrix, __get__modelView, renderPlaneDepth;
function CTransitionBox3D (parameters, type) {
super(parameters);
m_type = type;
if ((m_type == DIRECTION_LEFT) || (m_type == DIRECTION_RIGHT)) {
m_depth = slideWidth;
} else {
m_depth = slideHeight;
}
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
if (__get__hasOldSlide()) {
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide1._visible = !__get__inverted();
}
m_slide2._visible = inverted;
__get__renderer().__set__maxPerspectiveError(10);
__get__renderer().__set__maxPerspectiveLevel(3);
var _local4 = __get__renderer().getProjectionMatrix();
_local4.loadFrustum((-__get__slideWidth()) / 8, __get__slideWidth() / 8, (-__get__slideHeight()) / 8, __get__slideHeight() / 8, m_depth / 4, m_depth * 3);
}
function initialize() {
m_tex1 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex2 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex2.draw(m_slide2);
m_slide2._visible = false;
if (__get__hasOldSlide()) {
m_tex1.draw(m_slide1);
m_slide1._visible = false;
}
}
function applyEffectImpl(phase) {
render(phase);
}
function render(phase) {
super.render();
var _local9 = __get__slideWidth();
var _local8 = __get__slideWidth();
var _local4 = true;
var _local3;
var _local6;
phase = Math.sin(phase * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI);
if (m_type == DIRECTION_LEFT) {
_local4 = false;
_local3 = phase * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
_local6 = _local3 - fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
} else if (m_type == DIRECTION_RIGHT) {
_local4 = false;
_local3 = (-phase) * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
_local6 = fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI + _local3;
} else if (m_type == DIRECTION_UP) {
_local4 = true;
_local3 = phase * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
_local6 = _local3 - fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
_local8 = slideHeight;
_local9 = _local8;
} else {
_local4 = true;
_local3 = (-phase) * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
_local6 = fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI + _local3;
_local8 = slideHeight;
_local9 = _local8;
}
var _local10 = Math.abs(_local3);
var _local11 = 0.5 * ((_local9 * Math.sin(_local10)) + (_local8 * Math.cos(_local10)));
var _local5 = 0;
if (_local4) {
_local5 = __get__slideHeight() * 0.1;
} else {
_local5 = __get__maxSlideSize() * 0.1;
}
if (__get__hasOldSlide()) {
resetMatrix(_local11 - (0.5 * _local5));
if (_local4) {
__get__modelView().rotateX(_local3);
} else {
__get__modelView().rotateY(_local3);
}
__get__renderer().textureImage2D(m_tex1, false);
renderPlaneDepth(__get__slideWidth(), __get__slideHeight(), (-m_depth) - _local5);
}
resetMatrix(_local11 - (0.5 * _local5));
if (_local4) {
__get__modelView().rotateX(_local6);
} else {
__get__modelView().rotateY(_local6);
}
__get__renderer().textureImage2D(m_tex2, false);
renderPlaneDepth(__get__slideWidth(), __get__slideHeight(), (-m_depth) - _local5);
}
static var DIRECTION_UP = 0;
static var DIRECTION_DOWN = 1;
static var DIRECTION_LEFT = 2;
static var DIRECTION_RIGHT = 3;
}
Symbol 400 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionCube] Frame 0
class fsplayer.core.playback.transitions.CTransitionCube extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var m_type, m_depth, slideWidth, slideHeight, m_newSlide, inverted, __get__hasOldSlide, m_oldSlide, __get__inverted, m_texOldSlide, __get__slideWidth, __get__slideHeight, m_texNewSlide, __get__maxSlideSize, resetMatrix, __get__modelView, __get__renderer, renderPlaneDepth;
function CTransitionCube (parameters, type) {
super(parameters);
m_type = type;
if ((m_type == DIRECTION_LEFT) || (m_type == DIRECTION_RIGHT)) {
m_depth = slideWidth;
} else {
m_depth = slideHeight;
}
m_newSlide = parameters.getNewSlide().getPrimaryMovie();
m_newSlide._visible = inverted;
parameters.getNewSlide().bringToFront();
if (__get__hasOldSlide()) {
m_oldSlide = parameters.getOldSlide().getPrimaryMovie();
m_oldSlide._visible = !__get__inverted();
}
}
function initialize() {
m_texOldSlide = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_texNewSlide = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_texNewSlide.draw(m_newSlide);
m_newSlide._visible = false;
if (__get__hasOldSlide()) {
m_texOldSlide.draw(m_oldSlide);
m_oldSlide._visible = false;
}
}
function applyEffectImpl(phase) {
render(phase);
}
function render(phase) {
super.render();
var _local8 = __get__slideWidth();
var _local7 = __get__slideWidth();
var _local3 = true;
var _local4;
var _local6;
if (m_type == DIRECTION_LEFT) {
_local3 = false;
_local4 = (-phase) * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
_local6 = (1 - phase) * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
} else if (m_type == DIRECTION_RIGHT) {
_local3 = false;
_local4 = phase * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
_local6 = (phase - 1) * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
} else if (m_type == DIRECTION_UP) {
_local3 = true;
_local4 = (-phase) * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
_local6 = (1 - phase) * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
_local7 = slideHeight;
_local8 = _local7;
} else if (m_type == DIRECTION_DOWN) {
_local3 = true;
_local4 = phase * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
_local6 = (phase - 1) * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
_local7 = slideHeight;
_local8 = _local7;
}
var _local9 = Math.abs(_local4);
var _local10 = __get__maxSlideSize() + (0.5 * ((_local8 * Math.sin(_local9)) + (_local7 * Math.cos(_local9))));
if (__get__hasOldSlide()) {
resetMatrix(_local10);
if (_local3) {
__get__modelView().rotateX(_local4);
} else {
__get__modelView().rotateY(_local4);
}
__get__renderer().textureImage2D(m_texOldSlide, false);
renderPlaneDepth(__get__slideWidth(), __get__slideHeight(), m_depth);
}
resetMatrix(_local10);
if (_local3) {
__get__modelView().rotateX(_local6);
} else {
__get__modelView().rotateY(_local6);
}
__get__renderer().textureImage2D(m_texNewSlide, false);
renderPlaneDepth(__get__slideWidth(), __get__slideHeight(), m_depth);
}
static var DIRECTION_UP = 0;
static var DIRECTION_DOWN = 1;
static var DIRECTION_LEFT = 2;
static var DIRECTION_RIGHT = 3;
}
Symbol 401 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionFlyThrough] Frame 0
class fsplayer.core.playback.transitions.CTransitionFlyThrough extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_type, m_bounce, PHASE_MAIN, m_slide1, m_slide2, applyEffect, __get__slideWidth, __get__slideHeight;
function CTransitionFlyThrough (parameters, type, bounce) {
super(parameters);
m_type = type;
m_bounce = bounce == true;
if (m_bounce) {
PHASE_MAIN = 1 - PHASE_BOUNCE;
} else {
PHASE_MAIN = 1;
}
if (type == DIRECTION_IN) {
parameters.getOldSlide().bringToFront();
} else {
parameters.getNewSlide().bringToFront();
}
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
applyEffect(0);
}
function applyEffectImpl(phase) {
var _local4;
var _local2;
if (m_type == DIRECTION_IN) {
if (phase <= PHASE_MAIN) {
_local2 = ((phase / PHASE_MAIN) * 0.5) + 0.5;
_local4 = ((phase / PHASE_MAIN) * 0.5) + 1;
m_slide1._xscale = _local4 * 100;
m_slide1._yscale = _local4 * 100;
m_slide1._x = (__get__slideWidth() - (__get__slideWidth() * _local4)) / 2;
m_slide1._y = (__get__slideHeight() - (__get__slideHeight() * _local4)) / 2;
} else {
_local2 = 1 + (BOUNCE_COEF * Math.sin((((phase - PHASE_MAIN) / PHASE_BOUNCE) * 2) * Math.PI));
}
m_slide2._xscale = _local2 * 100;
m_slide2._yscale = _local2 * 100;
m_slide2._x = (__get__slideWidth() - (__get__slideWidth() * _local2)) / 2;
m_slide2._y = (__get__slideHeight() - (__get__slideHeight() * _local2)) / 2;
if (phase < PHASE_ALPHA) {
m_slide1._alpha = (1 - (phase / PHASE_ALPHA)) * 100;
} else {
m_slide1._alpha = 0;
}
} else {
if (phase <= PHASE_MAIN) {
_local4 = 1 - ((phase / PHASE_MAIN) * 0.5);
m_slide1._xscale = _local4 * 100;
m_slide1._yscale = _local4 * 100;
m_slide1._x = (__get__slideWidth() - (__get__slideWidth() * _local4)) / 2;
m_slide1._y = (__get__slideHeight() - (__get__slideHeight() * _local4)) / 2;
_local2 = 1.5 - ((phase / PHASE_MAIN) * 0.5);
} else {
_local2 = 1 + (BOUNCE_COEF * Math.sin((((-(phase - PHASE_MAIN)) / PHASE_BOUNCE) * 2) * Math.PI));
}
m_slide2._xscale = _local2 * 100;
m_slide2._yscale = _local2 * 100;
m_slide2._x = (__get__slideWidth() - (__get__slideWidth() * _local2)) / 2;
m_slide2._y = (__get__slideHeight() - (__get__slideHeight() * _local2)) / 2;
if (phase < PHASE_ALPHA) {
m_slide2._alpha = (phase / PHASE_ALPHA) * 100;
} else {
m_slide2._alpha = 100;
}
}
}
static var DIRECTION_IN = 0;
static var DIRECTION_OUT = 1;
var PHASE_BOUNCE = 0.2;
var PHASE_ALPHA = 0.6;
var BOUNCE_COEF = 0.025;
}
Symbol 402 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionWedgeAndWheel] Frame 0
class fsplayer.core.playback.transitions.CTransitionWedgeAndWheel extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_type, __get__hasOldSlide, m_newSlide, m_backMC, __get__slideWidth, __get__slideHeight, m_mask, applyEffect;
function CTransitionWedgeAndWheel (parameters, type) {
super(parameters);
m_type = type;
if (m_type == TYPE_WHEEL_1_REVERSE) {
if (__get__hasOldSlide()) {
m_newSlide = parameters.getOldSlide();
}
} else {
m_newSlide = parameters.getNewSlide();
}
m_newSlide.bringToFront();
if (!__get__hasOldSlide()) {
m_backMC = parameters.getNewSlide().getPrimaryMovie()._parent.createEmptyMovieClip("backMC", parameters.getNewSlide().getPrimaryMovie()._parent.getNextHighestDepth());
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_backMC, 0, 0, __get__slideWidth(), __get__slideHeight(), 0);
m_backMC.swapDepths(m_newSlide.getPrimaryMovie());
}
if ((m_type == TYPE_WHEEL_1_REVERSE) && (!__get__hasOldSlide())) {
m_mask = m_backMC._parent.createEmptyMovieClip("mask", m_backMC._parent.getNextHighestDepth());
m_backMC.setMask(m_mask);
} else {
m_mask = m_newSlide.getPrimaryMask();
}
applyEffect(0);
}
function applyEffectImpl(phase) {
var _local5 = __get__slideWidth();
var _local6 = __get__slideHeight();
m_mask.clear();
m_mask.beginFill(0, 100);
var _local8 = m_type;
var _local9 = _local8;
if (m_type == TYPE_WEDGE) {
_local8 = 2;
_local9 = 1;
}
if (m_type == TYPE_WHEEL_1_REVERSE) {
phase = 1 - phase;
_local8 = 1;
_local9 = 1;
}
var _local7 = phase / _local8;
var _local2;
var _local3;
var _local4 = 0;
while (_local4 < _local9) {
_local2 = _local4 / _local8;
_local3 = _local2 + _local7;
m_mask.moveTo(_local5 * 0.5, _local6 * 0.5);
AddPointAtPhase(_local2);
if ((_local2 < 0.125) && (_local3 > 0.125)) {
m_mask.lineTo(_local5, 0);
}
if ((_local2 < 0.375) && (_local3 > 0.375)) {
m_mask.lineTo(_local5, _local6);
}
if ((_local2 < 0.625) && (_local3 > 0.625)) {
m_mask.lineTo(0, _local6);
}
if ((_local2 < 0.875) && (_local3 > 0.875)) {
m_mask.lineTo(0, 0);
}
AddPointAtPhase(_local3);
_local4++;
}
if (m_type == TYPE_WEDGE) {
_local7 = 1 - _local7;
m_mask.lineTo(_local5 * 0.5, _local6 * 0.5);
AddPointAtPhase(_local7);
if (_local7 < 0.625) {
m_mask.lineTo(0, _local6);
}
if (_local7 < 0.875) {
m_mask.lineTo(0, 0);
}
m_mask.lineTo(_local5 * 0.5, 0);
}
m_mask.endFill();
}
function AddPointAtPhase(phase) {
var _local4;
var _local3;
if (phase <= 0.125) {
_local4 = 0.5 + (phase * 4);
_local3 = 0;
} else if (phase <= 0.375) {
_local4 = 1;
_local3 = (phase - 0.125) * 4;
} else if (phase <= 0.625) {
_local4 = 1 + ((0.375 - phase) * 4);
_local3 = 1;
} else if (phase <= 0.875) {
_local4 = 0;
_local3 = 1 + ((0.625 - phase) * 4);
} else {
_local4 = (phase - 0.875) * 4;
_local3 = 0;
}
m_mask.lineTo(_local4 * __get__slideWidth(), _local3 * __get__slideHeight());
}
function cleanup() {
if (!__get__hasOldSlide()) {
m_backMC.removeMovieClip();
m_mask.removeMovieClip();
}
}
static var TYPE_WEDGE = 0;
static var TYPE_WHEEL_1 = 1;
static var TYPE_WHEEL_2 = 2;
static var TYPE_WHEEL_3 = 3;
static var TYPE_WHEEL_4 = 4;
static var TYPE_WHEEL_8 = 8;
static var TYPE_WHEEL_1_REVERSE = 9;
static var m_squareDivisor = 21;
}
Symbol 403 MovieClip [__Packages.fsplayer.core.playback.transitions.util.CDrawUtils] Frame 0
class fsplayer.core.playback.transitions.util.CDrawUtils
{
function CDrawUtils () {
}
static function DrawCircle(mc, x, y, radius, accuracy) {
if (accuracy == undefined) {
accuracy = 10;
}
if (accuracy < 3) {
accuracy = 3;
}
var _local4 = Math.PI / accuracy;
var _local6 = radius / Math.cos(_local4);
var _local1 = 0;
var _local2 = 0;
mc.moveTo(x + (Math.cos(_local1) * radius), y + (Math.sin(_local1) * radius));
var _local3 = 0;
while (_local3 < accuracy) {
_local2 = _local1 + _local4;
_local1 = _local2 + _local4;
mc.curveTo(x + (Math.cos(_local2) * _local6), y + (Math.sin(_local2) * _local6), x + (Math.cos(_local1) * radius), y + (Math.sin(_local1) * radius));
_local3++;
}
}
static function DrawRectangle(mc, x, y, width, height) {
mc.moveTo(x, y);
mc.lineTo(x + width, y);
mc.lineTo(x + width, y + height);
mc.lineTo(x, y + height);
mc.lineTo(x, y);
}
static function DrawFillRectangle(mc, x, y, width, height, color) {
if (color == undefined) {
color = 0;
}
mc.beginFill(color, 100);
DrawRectangle(mc, x, y, width, height);
mc.endFill();
}
}
Symbol 404 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionFerrisWheel] Frame 0
class fsplayer.core.playback.transitions.CTransitionFerrisWheel extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var m_type, m_depth, maxSlideSize, __get__hasOldSlide, m_slide1, __get__inverted, m_slide2, inverted, m_tex1, __get__slideWidth, __get__slideHeight, m_tex2, __get__maxSlideSize, resetMatrix, __get__renderer, __get__modelView, renderPlane;
function CTransitionFerrisWheel (parameters, type) {
super(parameters);
m_type = type;
m_depth = maxSlideSize;
if (__get__hasOldSlide()) {
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide1._visible = !__get__inverted();
}
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
m_slide2._visible = inverted;
}
function initialize() {
if (__get__hasOldSlide()) {
m_tex1 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex1.draw(m_slide1);
m_slide1._visible = false;
}
m_tex2 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex2.draw(m_slide2);
m_slide2._visible = false;
}
function applyEffectImpl(phase) {
render(phase);
}
function render(phase) {
super.render();
var _local13 = __get__slideWidth();
var _local12 = __get__slideWidth();
var _local10 = 0;
var _local15 = (-phase) * MAX_ANGLE_X;
var _local14 = MAX_ANGLE_X - (phase * MAX_ANGLE_X);
var _local3 = (-phase) * MAX_ANGLE_Z;
var _local9 = _local3 + MAX_ANGLE_Z;
var _local6 = (-__get__slideWidth()) / 2;
var _local4 = (phase * __get__slideWidth()) / 2;
var _local8 = phase * __get__slideHeight();
var _local7 = phase * m_depth;
if (m_type == DIRECTION_RIGHT) {
_local6 = -_local6;
_local4 = -_local4;
_local3 = -_local3;
_local9 = _local3 - MAX_ANGLE_Z;
}
var _local11 = __get__maxSlideSize() + (0.5 * ((_local13 * Math.sin(_local10)) + (_local12 * Math.cos(_local10))));
resetMatrix(_local11);
renderSlide(m_tex2, _local6 + _local4, (__get__slideHeight() * 2) - (_local8 * 2), (-m_depth) + (_local7 * 1.5), _local14, _local9);
if (__get__hasOldSlide()) {
resetMatrix(_local11);
renderSlide(m_tex1, _local4 / 2, -_local8, _local7 + (0.5 * m_depth), _local15, _local3);
}
}
function renderSlide(m_tex, x, y, z, angleX, angleZ) {
__get__renderer().textureImage2D(m_tex, false);
__get__modelView().translate(x, y, z);
__get__modelView().rotateZ(angleZ);
__get__modelView().rotateX(angleX);
renderPlane(-0.5 * __get__slideWidth(), 0.5 * __get__slideHeight(), __get__slideWidth(), __get__slideHeight(), 0, 0, 1, 1);
}
function cleanup() {
super.cleanup();
if (__get__hasOldSlide()) {
m_slide1._visible = true;
}
m_slide2._visible = true;
}
static var DIRECTION_LEFT = 0;
static var DIRECTION_RIGHT = 1;
var MAX_ANGLE_X = (Math.PI/2);
var MAX_ANGLE_Z = 0.196349540849362;
}
Symbol 405 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionFlashbulb] Frame 0
class fsplayer.core.playback.transitions.CTransitionFlashbulb extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var __set__invertible, __get__inverted, m_slide1, m_parameters, m_slide2, __get__hasOldSlide, m_slide2MC, m_slide1MC, __get__slideWidth, __get__slideHeight, m_dummyMC;
function CTransitionFlashbulb (parameters) {
super(parameters);
__set__invertible(false);
if (__get__inverted()) {
m_slide1 = m_parameters.getNewSlide();
m_slide2 = m_parameters.getOldSlide();
} else {
m_slide2 = m_parameters.getNewSlide();
if (__get__hasOldSlide()) {
m_slide1 = m_parameters.getOldSlide();
} else {
m_slide2.getPrimaryMovie()._visible = false;
}
}
}
function initialize() {
if (__get__inverted()) {
m_slide2MC = getTempSlideMC(m_slide2.getPrimaryMovie());
m_slide2.getPrimaryMovie()._visible = false;
m_slide1MC = getTempSlideMC(m_slide1.getPrimaryMovie());
m_slide1.getPrimaryMovie()._visible = false;
} else {
m_slide2MC = getTempSlideMC(m_slide2.getPrimaryMovie());
if (__get__hasOldSlide()) {
m_slide1MC = getTempSlideMC(m_slide1.getPrimaryMovie());
m_slide1.getPrimaryMovie()._visible = false;
m_slide2.getPrimaryMovie()._visible = false;
} else {
m_slide1MC = m_slide2MC._parent.createEmptyMovieClip("dummyMC", m_slide2MC._parent.getNextHighestDepth());
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_slide1MC, 0, 0, __get__slideWidth(), __get__slideHeight(), 4294967295);
}
}
}
function getTempSlideMC(sourceMC, tempBmp) {
var _local4 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 0);
var _local3 = sourceMC._parent.getNextHighestDepth();
_local4.draw(sourceMC);
var _local2 = sourceMC._parent.createEmptyMovieClip("tempMC" + _local3.toString(), _local3);
_local2.beginBitmapFill(_local4);
_local2.moveTo(0, 0);
_local2.lineTo(__get__slideWidth(), 0);
_local2.lineTo(__get__slideWidth(), __get__slideHeight());
_local2.lineTo(0, __get__slideHeight());
_local2.endFill();
return(_local2);
}
function applyEffectImpl(phase) {
if (phase < 0.5) {
var _local7 = new Color(m_slide1MC);
var _local4 = new Object();
var _local2 = phase * 510;
_local4 = {ra:100, rb:_local2, ga:100, gb:_local2, ba:100, bb:_local2, aa:"100", ab:"0"};
_local7.setTransform(_local4);
} else {
m_slide1MC._visible = false;
var _local5 = new Color(m_slide2MC);
var _local3 = new Object();
var _local2 = (1 - phase) * 510;
_local3 = {ra:100, rb:_local2, ga:100, gb:_local2, ba:100, bb:_local2, aa:"100", ab:"0"};
_local5.setTransform(_local3);
}
}
function cleanup() {
super.cleanup();
if (m_dummyMC) {
m_dummyMC.removeMovieClip();
}
if (m_slide1MC) {
m_slide1MC.removeMovieClip();
}
if (m_slide2MC) {
m_slide2MC.removeMovieClip();
}
}
}
Symbol 406 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionFlip] Frame 0
class fsplayer.core.playback.transitions.CTransitionFlip extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var m_type, m_depth, maxSlideSize, __get__slideWidth, m_slide2, inverted, __get__hasOldSlide, m_slide1, __get__inverted, m_tex1, __get__slideHeight, m_tex2, __get__maxSlideSize, resetMatrix, __get__renderer, __get__modelView, renderPlane;
function CTransitionFlip (parameters, type) {
super(parameters);
m_type = type;
m_depth = maxSlideSize;
MAX_DX = __get__slideWidth() / 4;
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
m_slide2._visible = inverted;
if (__get__hasOldSlide()) {
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide1._visible = !__get__inverted();
}
}
function initialize() {
m_tex1 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex2 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex2.draw(m_slide2);
m_slide2._visible = false;
if (__get__hasOldSlide()) {
m_tex1.draw(m_slide1);
m_slide1._visible = false;
}
}
function applyEffectImpl(phase) {
render(phase);
}
function render(phase) {
super.render();
var _local11 = __get__slideWidth();
var _local10 = __get__slideWidth();
var _local8 = 0;
var _local7 = 0;
if (phase > 0.15) {
_local7 = (-((phase - 0.15) / 0.85)) * Math.PI;
}
var _local5 = 0;
var _local3 = 0;
if (phase < 0.8) {
_local5 = (-Math.sin((phase / 0.8) * Math.PI)) * MAX_ANGLE_Y;
_local3 = Math.sin((phase / 0.8) * Math.PI) * MAX_DX;
}
var _local6 = 0.5 * m_depth;
if (phase < 0.9) {
_local6 = (Math.abs(Math.cos((phase / 0.9) * Math.PI)) * 0.5) * m_depth;
}
if (m_type == DIRECTION_LEFT) {
_local5 = -_local5;
_local3 = -_local3;
}
var _local9 = __get__maxSlideSize() + (0.5 * ((_local11 * Math.sin(_local8)) + (_local10 * Math.cos(_local8))));
resetMatrix(_local9);
renderSlide(m_tex1, _local3, _local6, _local7, _local5);
resetMatrix(_local9);
renderSlide(m_tex2, _local3, _local6, _local7 + Math.PI, _local5);
}
function renderSlide(m_tex, x, z, angleX, angleY) {
__get__renderer().textureImage2D(m_tex, false);
__get__modelView().translate(x, 0, z);
__get__modelView().rotateY(angleY);
__get__modelView().rotateX(angleX);
renderPlane(-0.5 * __get__slideWidth(), 0.5 * __get__slideHeight(), __get__slideWidth(), __get__slideHeight(), 0, 0, 1, 1);
}
function cleanup() {
super.cleanup();
m_slide1._visible = true;
m_slide2._visible = true;
}
static var DIRECTION_LEFT = 0;
static var DIRECTION_RIGHT = 1;
var MAX_ANGLE_Y = 0.392699081698724;
var MAX_DX = 0;
}
Symbol 407 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionDoors] Frame 0
class fsplayer.core.playback.transitions.CTransitionDoors extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var m_type, m_depth, slideWidth, slideHeight, m_slide2, inverted, __get__hasOldSlide, m_slide1, __get__inverted, m_tex1, __get__slideWidth, __get__slideHeight, m_tex2, __get__renderer, __get__renderMC, __get__maxSlideSize, resetMatrix, __get__modelView, renderPlane;
function CTransitionDoors (parameters, type) {
super(parameters);
m_type = type;
if (m_type == TYPE_VERTICAL) {
m_depth = slideWidth;
} else {
m_depth = slideHeight;
}
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
m_slide2._visible = inverted;
if (__get__hasOldSlide()) {
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide1._visible = !__get__inverted();
}
}
function initialize() {
m_tex1 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex2 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex2.draw(m_slide2);
if (__get__hasOldSlide()) {
m_tex1.draw(m_slide1);
m_slide1._visible = false;
}
__get__renderer().textureImage2D(m_tex1, false);
}
function applyEffectImpl(phase) {
render(phase);
}
function render(phase) {
super.render();
var _local13 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true, 0);
_local13.draw(m_tex1, new flash.geom.Matrix(), new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, -128 * phase));
__get__renderer().textureImage2D(_local13, false);
var _local9 = (0.5 * __get__slideWidth()) * (1 + phase);
var _local8 = (0.5 * __get__slideHeight()) * (1 + phase);
var _local6 = (__get__slideWidth() - _local9) / 2;
var _local5 = (__get__slideHeight() - _local8) / 2;
var _local10 = new flash.geom.Matrix();
var _local12 = 0.5 + (0.5 * phase);
_local10.scale(_local12, _local12);
var _local11 = new flash.geom.Matrix();
_local11.translate(_local6, _local5);
_local10.concat(_local11);
__get__renderMC().beginBitmapFill(m_tex2, _local10);
__get__renderMC().moveTo(_local6, _local5);
__get__renderMC().lineTo(_local6 + _local9, _local5);
__get__renderMC().lineTo(_local6 + _local9, _local5 + _local8);
__get__renderMC().lineTo(_local6, _local5 + _local8);
__get__renderMC().lineTo(_local6, _local5);
__get__renderMC().endFill();
var _local15 = __get__slideWidth();
var _local14 = __get__slideWidth();
var _local4 = 0;
var _local7 = __get__maxSlideSize() + (0.5 * ((_local15 * Math.sin(_local4)) + (_local14 * Math.cos(_local4))));
if (m_type == TYPE_VERTICAL) {
resetMatrix(_local7);
__get__modelView().translate(-0.5 * __get__slideWidth(), 0, (0.5 * m_depth) * (1 + phase));
_local4 = phase * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
__get__modelView().rotateY(_local4);
renderPlane(0, 0.5 * __get__slideHeight(), 0.5 * __get__slideWidth(), __get__slideHeight(), 0, 0, 0.5, 1);
resetMatrix(_local7);
__get__modelView().translate(0.5 * __get__slideWidth(), 0, (0.5 * m_depth) * (1 + phase));
_local4 = (-phase) * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
__get__modelView().rotateY(_local4);
renderPlane(-0.5 * __get__slideWidth(), 0.5 * __get__slideHeight(), 0.5 * __get__slideWidth(), __get__slideHeight(), 0.5, 0, 1, 1);
} else {
resetMatrix(_local7);
__get__modelView().translate(0, 0.5 * __get__slideHeight(), (0.5 * __get__maxSlideSize()) * (1 + phase));
_local4 = phase * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
__get__modelView().rotateX(_local4);
renderPlane(-0.5 * __get__slideWidth(), 0, __get__slideWidth(), 0.5 * __get__slideHeight(), 0, 0, 1, 0.5);
resetMatrix(_local7);
__get__modelView().translate(0, -0.5 * __get__slideHeight(), (0.5 * __get__maxSlideSize()) * (1 + phase));
_local4 = (-phase) * fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI;
__get__modelView().rotateX(_local4);
renderPlane(-0.5 * __get__slideWidth(), 0.5 * __get__slideHeight(), __get__slideWidth(), 0.5 * __get__slideHeight(), 0, 0.5, 1, 1);
}
}
function cleanup() {
super.cleanup();
m_slide1._visible = true;
}
static var TYPE_VERTICAL = 0;
static var TYPE_HORIZONTAL = 1;
}
Symbol 408 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionGallery] Frame 0
class fsplayer.core.playback.transitions.CTransitionGallery extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var m_type, m_conveyor, __get__slideWidth, __get__slideHeight, __get__hasOldSlide, m_slide1, __get__inverted, m_slide2, inverted, m_tex1, m_tex1refl, m_tex2, m_tex2refl, __get__maxSlideSize, __get__modelView, __get__renderer, renderPlane;
function CTransitionGallery (parameters, type, conveyor) {
super(parameters);
m_type = type;
m_conveyor = conveyor;
DIST_X = __get__slideWidth() / 10;
DIST_Y = __get__slideHeight() / 50;
if (__get__hasOldSlide()) {
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide1._visible = !__get__inverted();
}
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
m_slide2._visible = inverted;
}
function initialize() {
if (__get__hasOldSlide()) {
m_tex1 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex1.draw(m_slide1);
m_tex1refl = m_tex1.clone();
m_slide1._visible = false;
}
m_tex2 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex2.draw(m_slide2);
m_tex2refl = m_tex2.clone();
m_slide2._visible = false;
var _local2 = m_slide2._parent.createEmptyMovieClip("shadingMC", m_slide2._parent.getNextHighestDepth());
_local2._visible = false;
var _local3 = new flash.geom.Matrix();
_local3.createGradientBox(__get__slideWidth(), __get__slideHeight(), -fsplayer.core.playback.transitions.CTransitionEffectBase3D.HALFPI, 0, 0);
var _local5 = [0, 0];
var _local4 = [0, 100];
var _local6 = [0, 50];
_local2.beginGradientFill("linear", _local5, _local4, _local6, _local3);
_local2.moveTo(0, 0);
_local2.lineTo(0, __get__slideHeight());
_local2.lineTo(__get__slideWidth(), __get__slideHeight());
_local2.lineTo(__get__slideWidth(), 0);
_local2.lineTo(0, 0);
_local2.endFill();
if (__get__hasOldSlide()) {
m_tex1refl.draw(_local2);
}
m_tex2refl.draw(_local2);
_local2.removeMovieClip();
}
function applyEffectImpl(phase) {
render(phase);
}
function render(phase) {
super.render();
var _local3 = 0;
var _local7 = 0;
var _local6 = 0;
var _local4 = 0;
var _local9 = __get__maxSlideSize();
var _local10 = __get__maxSlideSize() * 0.1;
var _local8 = -0.5 * __get__slideWidth();
if (phase < PHASE_ROTATION) {
_local4 = ((-phase) / PHASE_ROTATION) * MAX_ANGLE_Y;
_local9 = _local9 + ((phase / PHASE_ROTATION) * _local10);
} else if (phase > (1 - PHASE_ROTATION)) {
_local3 = __get__slideWidth() + DIST_X;
_local4 = ((-(1 - phase)) / PHASE_ROTATION) * MAX_ANGLE_Y;
_local9 = _local9 + (((1 - phase) / PHASE_ROTATION) * _local10);
} else {
_local3 = ((phase - PHASE_ROTATION) / PHASE_MOVING) * (__get__slideWidth() + DIST_X);
_local4 = -MAX_ANGLE_Y;
_local9 = _local9 + _local10;
}
if (m_type == DIRECTION_LEFT) {
_local7 = (-__get__slideWidth()) - _local3;
_local6 = (-_local3) + DIST_X;
} else {
_local4 = -_local4;
_local8 = -_local8;
_local7 = _local3;
_local6 = (_local3 - DIST_X) - __get__slideWidth();
}
__get__modelView().loadLookAtRH(_local8, 0, _local9, _local8, 0, 0, 0, 1, 0);
__get__modelView().rotateY(_local4);
var _local12 = 0.5 * __get__slideHeight();
if (__get__hasOldSlide()) {
renderSlide(m_tex1, _local7, _local12, false);
}
renderSlide(m_tex2, _local6, _local12, false);
if (!m_conveyor) {
var _local11 = (-0.5 * __get__slideHeight()) - DIST_Y;
if (__get__hasOldSlide()) {
renderSlide(m_tex1refl, _local7, _local11, true);
}
renderSlide(m_tex2refl, _local6, _local11, true);
}
}
function renderSlide(m_tex, x, y, flip) {
__get__renderer().textureImage2D(m_tex, flip);
renderPlane(x, y, __get__slideWidth(), __get__slideHeight(), 0, 0, 1, 1);
}
function cleanup() {
super.cleanup();
if (__get__hasOldSlide()) {
m_slide1._visible = true;
}
m_slide2._visible = true;
}
static var DIRECTION_LEFT = 0;
static var DIRECTION_RIGHT = 1;
var MAX_ANGLE_Y = 0.349065850398866;
var PHASE_ROTATION = 0.2;
var PHASE_MOVING = 0.6;
var DIST_X = 0;
var DIST_Y = 0;
}
Symbol 409 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionHoneycomb] Frame 0
class fsplayer.core.playback.transitions.CTransitionHoneycomb extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_slide1, m_slide2, m_slide12, m_slide22, m_diamX, __get__slideWidth, m_radX, m_diamY, __get__slideHeight, m_radY, m_backMC, m_mask1, m_mask2, m_cells1, m_cells2, applyEffect, MAX_NUM_INNER_CELLS, __get__inverted, __get__hasOldSlide;
function CTransitionHoneycomb (parameters) {
super(parameters);
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
m_slide12 = parameters.getOldSlide().getSecondaryMovie();
m_slide22 = parameters.getNewSlide().getSecondaryMovie();
m_slide12._alpha = 0;
m_slide22._alpha = 0;
m_diamX = (__get__slideWidth() * 0.9) / (NUM_H - 1);
m_radX = m_diamX / 2;
m_diamY = (((m_diamX * 1.154) * __get__slideWidth()) * 3) / (__get__slideHeight() * 4);
m_radY = m_diamY / 2;
m_backMC = m_slide2._parent.createEmptyMovieClip("backMC", m_slide2._parent.getNextHighestDepth());
parameters.getNewSlide().bringToFront();
parameters.getOldSlide().bringToFront();
m_backMC.swapDepths(m_slide2);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_backMC, 0, 0, __get__slideWidth(), __get__slideHeight());
m_mask1 = parameters.getOldSlide().getPrimaryMask();
m_mask2 = parameters.getNewSlide().getPrimaryMask();
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask2, 0, 0, __get__slideWidth(), __get__slideHeight());
m_cells1 = new Array();
m_cells2 = new Array();
var _local5 = 0;
while (_local5 < NUM_V) {
var _local6 = (((_local5 % 2) == 0) ? (NUM_H) : (NUM_H - 1));
var _local4 = 0;
while (_local4 < _local6) {
var _local3 = new Object();
_local3.x = _local4;
_local3.y = _local5;
m_cells1.push(_local3);
_local4++;
}
_local5++;
}
applyEffect(0);
}
function applyEffectImpl(phase) {
m_mask1.clear();
m_mask2.clear();
if (phase < 0.15) {
m_slide12._alpha = 100 - (phase * 750);
m_slide22._alpha = 0;
}
if (phase > 0.05) {
m_slide12._alpha = 0;
if (phase > 0.95) {
m_slide22._alpha = (phase - 0.95) * 2000;
} else {
m_slide22._visible = false;
}
if (!m_firstDeleted) {
var _local3 = 0;
while (_local3 < NUM_H) {
deleteCell(m_cells1, 0, _local3);
deleteCell(m_cells1, NUM_V - 1, _local3);
_local3++;
}
deleteCell(m_cells1, 2, 0);
deleteCell(m_cells1, 2, NUM_H - 1);
deleteCell(m_cells1, 4, 0);
deleteCell(m_cells1, 4, NUM_H - 1);
deleteCell(m_cells1, 6, 0);
deleteCell(m_cells1, 6, NUM_H - 1);
MAX_NUM_INNER_CELLS = m_cells1.length;
deleteCell(m_cells1, 4, 4);
m_firstDeleted = true;
} else {
var _local13 = phase;
if (__get__inverted()) {
_local13 = 1 - phase;
}
var _local14 = ((_local13 - 0.05) / 0.85) * MAX_NUM_INNER_CELLS;
var _local4 = m_cells1.length;
var _local15 = MAX_NUM_INNER_CELLS - _local4;
var _local6 = _local14 - _local15;
if (_local6 > 0) {
var _local3 = 0;
while (_local3 < _local6) {
_local4 = m_cells1.length;
if (_local4 == 0) {
break;
}
var _local2 = Math.floor(Math.random() * (_local4 - 1));
m_cells2.push(m_cells1[_local2]);
m_cells1.splice(_local2, 1);
_local3++;
}
}
}
}
if (__get__inverted()) {
drawHexes(m_mask1, m_cells2);
drawHexes(m_mask2, m_cells1);
} else {
drawHexes(m_mask1, m_cells1);
drawHexes(m_mask2, m_cells2);
}
if (__get__hasOldSlide()) {
if (phase > 0.4) {
m_slide1._visible = false;
m_slide12._visible = false;
} else {
m_slide1._visible = true;
m_slide12._visible = true;
var _local11 = ((-(Math.pow(2, phase / 0.3) - 1)) * Math.PI) / 4;
var _local7 = Math.pow(20, phase / 0.6);
_local7 = Math.max(1, _local7);
var _local9 = (phase / 0.4) * m_diamX;
var _local8 = (((-phase) / 0.4) * m_radY) / 2;
transformSlide(m_slide1, _local11, _local7, _local9, _local8);
transformSlide(m_mask1, _local11, _local7, _local9, _local8);
transformSlide(m_slide12, _local11, _local7, _local9, _local8);
}
}
var _local10 = ((-phase) * Math.PI) + Math.PI;
var _local12 = phase;
transformSlide(m_slide2, _local10, _local12);
transformSlide(m_mask2, _local10, _local12);
transformSlide(m_slide22, _local10, _local12);
}
function drawHexes(mc, cells) {
var _local5 = __get__slideWidth() / (NUM_H - 1);
var _local6 = __get__slideHeight() / (NUM_V - 1);
var _local4 = 0;
var _local7 = cells.length;
var _local3 = 0;
while (_local3 < _local7) {
var _local2 = cells[_local3];
if ((_local2.y % 2) == 0) {
_local4 = 0;
} else {
_local4 = _local5 / 2;
}
drawHex(mc, (_local5 * _local2.x) + _local4, _local6 * _local2.y);
_local3++;
}
}
function drawHex(mc, x, y) {
mc.beginFill(0, 100);
mc.moveTo(x, y - m_radY);
mc.lineTo(x + m_radX, y - (0.5 * m_radY));
mc.lineTo(x + m_radX, y + (0.5 * m_radY));
mc.lineTo(x, y + m_radY);
mc.lineTo(x - m_radX, y + (0.5 * m_radY));
mc.lineTo(x - m_radX, y - (0.5 * m_radY));
mc.lineTo(x, y - m_radY);
mc.endFill();
}
function transformSlide(mc, angle, scale, dX, dY) {
if (dX == undefined) {
dX = 0;
}
if (dY == undefined) {
dY = 0;
}
var _local2 = mc.transform.matrix;
_local2.identity();
_local2.translate(dX, dY);
_local2.translate((-__get__slideWidth()) / 2, (-__get__slideHeight()) / 2);
_local2.rotate(angle);
_local2.scale(scale, scale);
_local2.translate(__get__slideWidth() / 2, __get__slideHeight() / 2);
mc.transform.matrix = _local2;
}
function deleteCell(arr, y, x) {
var _local4 = arr.length;
var _local1 = 0;
while (_local1 < _local4) {
var _local2 = arr[_local1];
if ((_local2.x == x) && (_local2.y == y)) {
arr.splice(_local1, 1);
break;
}
_local1++;
}
}
function cleanup() {
super.cleanup();
m_backMC.removeMovieClip();
}
var NUM_H = 10;
var NUM_V = 9;
var m_firstDeleted = false;
}
Symbol 410 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionGlitter] Frame 0
class fsplayer.core.playback.transitions.CTransitionGlitter extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_type, m_direction, __set__invertible, __get__inverted, m_slide1, m_slide2, m_tex1, __get__slideWidth, __get__slideHeight, m_tex2, m_backMC, NUM_X, NUM_Y, NUM_Y_ALL, m_diamX, m_radX, m_diamY, m_radY, SLIDE_SIZE, slideWidth, slideHeight, SRZ_SIZE, m_cells, NUM_CELLS, m_srzCoord2, m_srzCoord1;
function CTransitionGlitter (parameters, type, direction) {
super(parameters);
m_type = type;
m_direction = direction;
__set__invertible(false);
if (__get__inverted()) {
switch (m_direction) {
case DIRECTION_UP :
m_direction = DIRECTION_DOWN;
break;
case DIRECTION_DOWN :
m_direction = DIRECTION_UP;
break;
case DIRECTION_LEFT :
m_direction = DIRECTION_RIGHT;
break;
default :
m_direction = DIRECTION_LEFT;
}
}
if (__get__inverted()) {
m_slide1 = parameters.getNewSlide().getPrimaryMovie();
m_slide2 = parameters.getOldSlide().getPrimaryMovie();
} else {
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
}
m_slide1._visible = true;
m_slide2._visible = false;
}
function initialize() {
m_tex1 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex1.draw(m_slide1);
m_slide1._visible = false;
m_tex2 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex2.draw(m_slide2);
m_slide2._visible = false;
m_backMC = m_slide2._parent.createEmptyMovieClip("backMC", m_slide2._parent.getNextHighestDepth());
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_backMC, 0, 0, __get__slideWidth(), __get__slideHeight());
if (m_type == TYPE_DIAMOND) {
NUM_X = 24;
NUM_Y = 12;
} else {
NUM_X = 24;
NUM_Y = 21;
}
NUM_Y_ALL = NUM_Y + (NUM_Y + 1);
m_diamX = __get__slideWidth() / NUM_X;
m_radX = m_diamX / 2;
m_diamY = __get__slideHeight() / NUM_Y;
m_radY = m_diamY / 2;
if ((m_direction == DIRECTION_LEFT) || (m_direction == DIRECTION_RIGHT)) {
SLIDE_SIZE = slideWidth;
} else {
SLIDE_SIZE = slideHeight;
}
SRZ_SIZE = SLIDE_SIZE / 1.5;
m_cells = new Array();
var _local8;
var _local6;
var _local5 = -m_radY;
var _local7;
var _local4 = 0;
while (_local4 < NUM_Y_ALL) {
if ((_local4 % 2) == 0) {
_local6 = -m_radX;
_local7 = NUM_X + 1;
} else {
_local6 = 0;
_local7 = NUM_X;
}
var _local3 = 0;
while (_local3 < _local7) {
var _local2 = new Object();
_local2.x = _local6 + (_local3 * m_diamX);
if (m_type == TYPE_DIAMOND) {
_local2.y = _local5 + (_local4 * m_radY);
_local2.side1 = createDiamond(m_backMC, m_tex1, _local2.x, _local2.y);
_local2.side2 = createDiamond(m_backMC, m_tex2, _local2.x, _local2.y);
} else {
_local2.y = _local5 + ((_local4 * 1.5) * m_radY);
_local2.side1 = createHexagon(m_backMC, m_tex1, _local2.x, _local2.y);
_local2.side2 = createHexagon(m_backMC, m_tex2, _local2.x, _local2.y);
}
_local2.side2._visible = false;
_local2.angle = undefined;
_local2.startPhase = 0;
m_cells.push(_local2);
_local3++;
}
_local4++;
}
NUM_CELLS = m_cells.length;
}
function startEffect() {
}
function createDiamond(parent, bmp, x, y) {
var _local3 = parent.getNextHighestDepth();
var _local2 = parent.createEmptyMovieClip("cellmc" + _local3, _local3);
_local2.beginBitmapFill(bmp, new flash.geom.Matrix(1, 0, 0, 1, (-x) - m_radX, -y));
_local2.moveTo(0, -DS);
_local2.lineTo(m_radX + DS, m_radY);
_local2.lineTo(0, m_diamY + DS);
_local2.lineTo((-m_radX) - DS, m_radY + (DS * 2));
_local2.endFill();
_local2._x = x + m_radX;
_local2._y = y;
return(_local2);
}
function createHexagon(parent, bmp, x, y) {
var _local3 = parent.getNextHighestDepth();
var _local2 = parent.createEmptyMovieClip("cellmc" + _local3, _local3);
_local2.beginBitmapFill(bmp, new flash.geom.Matrix(1, 0, 0, 1, (-x) - m_radX, -y));
_local2.moveTo(0, -DS);
_local2.lineTo(m_radX + DS, (0.5 * m_radY) - DS);
_local2.lineTo(m_radX + DS, (1.5 * m_radY) + DS);
_local2.lineTo(0, m_diamY + (DS * 2));
_local2.lineTo((-m_radX) - DS, (1.5 * m_radY) + DS);
_local2.lineTo((-m_radX) - DS, (0.5 * m_radY) - DS);
_local2.endFill();
_local2._x = x + m_radX;
_local2._y = y;
return(_local2);
}
function applyEffectImpl(phase) {
if ((m_direction == DIRECTION_DOWN) || (m_direction == DIRECTION_RIGHT)) {
m_srzCoord2 = ((phase / MOVE_PHASE) * (SLIDE_SIZE + SRZ_SIZE)) - SRZ_SIZE;
m_srzCoord1 = m_srzCoord2 + SRZ_SIZE;
} else {
m_srzCoord2 = (SLIDE_SIZE - ((phase / MOVE_PHASE) * (SLIDE_SIZE + SRZ_SIZE))) + SRZ_SIZE;
m_srzCoord1 = m_srzCoord2 - SRZ_SIZE;
}
var _local4;
var _local8;
var _local6 = 0;
while (_local6 < NUM_CELLS) {
var _local2 = m_cells[_local6];
_local4 = _local2.angle;
if ((_local4 == undefined) || (_local4 > Math.PI)) {
_local4 = 0;
}
var _local5 = Math.abs(Math.cos(_local4));
var _local3 = (_local5 * 0.5) + 0.5;
if (_local2.angle > (Math.PI/2)) {
_local2.side1._visible = false;
_local2.side2._visible = true;
_local2.side2._xscale = 100 * _local5;
if (__get__inverted()) {
_local2.side2.transform.colorTransform = new flash.geom.ColorTransform(_local3, _local3, _local3, 1, 0, 0, 0, 0);
}
} else {
_local2.side1._visible = true;
_local2.side2._visible = false;
_local2.side1._xscale = 100 * _local5;
if (!__get__inverted()) {
_local2.side1.transform.colorTransform = new flash.geom.ColorTransform(_local3, _local3, _local3, 1, 0, 0, 0, 0);
}
}
if (_local2.angle == undefined) {
if (getDepthInZone(_local2, m_srzCoord2) != 0) {
startRotation(_local2, phase);
} else {
_local8 = getDepthInZone(_local2, m_srzCoord1);
if (_local8 != 0) {
var _local9 = Math.random() + (_local8 / SRZ_SIZE);
if (_local9 >= 1) {
startRotation(_local2, phase);
}
}
}
} else {
_local2.angle = ((phase - _local2.startPhase) / ROTATION_PHASE) * Math.PI;
}
_local6++;
}
}
function getDepthInZone(cell, zoneCoord) {
switch (m_direction) {
case DIRECTION_UP :
return(((cell.y >= zoneCoord) ? (cell.y - zoneCoord) : 0));
case DIRECTION_DOWN :
return(((cell.y <= zoneCoord) ? (zoneCoord - cell.y) : 0));
case DIRECTION_LEFT :
return(((cell.x >= zoneCoord) ? (cell.x - zoneCoord) : 0));
}
return(((cell.x <= zoneCoord) ? (zoneCoord - cell.x) : 0));
}
function startRotation(cell, phase) {
cell.startPhase = phase;
cell.angle = 0;
}
function cleanup() {
super.cleanup();
m_backMC.removeMovieClip();
var _local3 = 0;
while (_local3 < m_cells.length) {
m_cells[_local3].side1.removeMovieClip();
m_cells[_local3].side2.removeMovieClip();
_local3++;
}
m_slide1._visible = true;
m_slide2._visible = true;
}
static var DIRECTION_UP = 0;
static var DIRECTION_DOWN = 1;
static var DIRECTION_LEFT = 2;
static var DIRECTION_RIGHT = 3;
static var TYPE_DIAMOND = 0;
static var TYPE_HEXAGON = 1;
var DS = 1;
var ROTATION_PHASE = 0.3;
var MOVE_PHASE = 1 - fsplayer.core.playback.transitions.CTransitionGlitter.prototype.ROTATION_PHASE;
}
Symbol 411 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionReveal] Frame 0
class fsplayer.core.playback.transitions.CTransitionReveal extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_type, m_direction, __get__inverted, m_slide1, m_slide2, __get__hasOldSlide, m_backMC, __get__slideWidth, __get__slideHeight, m_drawMC;
function CTransitionReveal (parameters, type, direction) {
super(parameters);
m_type = type;
m_direction = direction;
var _local4;
if (__get__inverted()) {
m_slide1 = parameters.getNewSlide().getPrimaryMovie();
m_slide2 = parameters.getOldSlide().getPrimaryMovie();
} else {
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
if (__get__hasOldSlide()) {
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
} else {
m_backMC = m_slide2._parent.createEmptyMovieClip("backMC", m_slide2._parent.getNextHighestDepth());
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_backMC, 0, 0, __get__slideWidth(), __get__slideHeight(), 0);
m_slide1 = m_backMC;
}
}
m_drawMC = m_slide2._parent.createEmptyMovieClip("drawMC", m_slide2._parent.getNextHighestDepth());
}
function applyEffectImpl(phase) {
if (phase <= 0.5) {
if (__get__inverted()) {
m_slide1._visible = false;
}
var _local3 = 100 + (phase * SCALE_COEF);
m_slide1._xscale = (m_slide1._yscale = (m_slide2._xscale = (m_slide2._yscale = _local3)));
m_slide1._x = (m_slide2._x = __get__slideWidth() * (1 - (_local3 / 100)));
m_slide1._y = (m_slide2._y = __get__slideHeight() * (1 - (_local3 / 100)));
drawGradient(phase * 2);
} else {
if (!__get__inverted()) {
m_slide1._visible = false;
}
var _local3 = 100 + ((1 - phase) * SCALE_COEF);
m_slide1._xscale = (m_slide1._yscale = (m_slide2._xscale = (m_slide2._yscale = _local3)));
m_slide1._x = (m_slide2._x = 0);
m_slide1._y = (m_slide2._y = __get__slideHeight() * (1 - (_local3 / 100)));
drawGradient((1 - phase) * 2);
}
}
function drawGradient(phase) {
m_drawMC.clear();
var _local3 = new flash.geom.Matrix();
var _local4 = 0;
if (m_direction == DIRECTION_LEFT) {
_local4 = Math.PI;
}
_local3.createGradientBox(__get__slideWidth(), __get__slideHeight(), _local4, 0, 0);
var _local2;
if ((m_type == SHADING_BLACK) || (!__get__hasOldSlide())) {
_local2 = 0;
} else {
_local2 = 16777215 /* 0xFFFFFF */;
}
var _local7 = [_local2, _local2];
var _local5 = [phase * 100, (phase * 50) + 50];
var _local8 = [0, (1 - phase) * 255];
m_drawMC.beginGradientFill("linear", _local7, _local5, _local8, _local3);
m_drawMC.moveTo(0, 0);
m_drawMC.lineTo(0, __get__slideHeight());
m_drawMC.lineTo(__get__slideWidth(), __get__slideHeight());
m_drawMC.lineTo(__get__slideWidth(), 0);
m_drawMC.lineTo(0, 0);
m_drawMC.endFill();
}
function cleanup() {
super.cleanup();
m_drawMC.removeMovieClip();
if (m_backMC) {
m_backMC.removeMovieClip();
}
}
static var DIRECTION_LEFT = 0;
static var DIRECTION_RIGHT = 1;
static var SHADING_SMOOTH = 0;
static var SHADING_BLACK = 1;
var SCALE_COEF = 5;
}
Symbol 412 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionShred] Frame 0
class fsplayer.core.playback.transitions.CTransitionShred extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var m_layers1, m_layers2, m_type, m_direction, CELL_WIDTH, __get__slideWidth, CELL_HEIGHT, __get__slideHeight, m_depth, maxSlideSize, MAX_CAM_DX, MAX_CAM_DY, MAX_DZ, MAX_CAM_DZ, m_rndGen, __get__hasOldSlide, m_slide1, __get__inverted, m_slide2, inverted, __get__params, __get__renderer, createTexture, __get__maxSlideSize, __get__modelView, renderPlane;
function CTransitionShred (parameters, type, direction) {
super(parameters);
m_layers1 = new Array();
m_layers2 = new Array();
m_type = type;
m_direction = direction;
CELL_WIDTH = __get__slideWidth() / NUM_X;
CELL_HEIGHT = __get__slideHeight() / NUM_Y;
m_depth = maxSlideSize;
MAX_CAM_DX = __get__slideWidth() * 0.7;
MAX_CAM_DY = __get__slideHeight() * 0.9;
MAX_DZ = m_depth / 10;
MAX_CAM_DZ = MAX_DZ;
m_rndGen = new fsplayer.core.playback.transitions.util.CRandomGenerator(NUM_CELLS);
if (__get__hasOldSlide()) {
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide1._visible = !__get__inverted();
}
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
m_slide2._visible = inverted;
}
function initialize() {
if (__get__hasOldSlide()) {
m_slide1._visible = false;
}
m_slide2._visible = false;
if (m_type == TYPE_RECTANGLE) {
NUM_LAYERS = 6;
createLayersRectangle(__get__params().getOldSlide(), __get__params().getNewSlide());
__get__renderer().__set__maxPerspectiveLevel(0);
} else {
NUM_LAYERS = 4;
createLayersStrips(__get__params().getOldSlide(), __get__params().getNewSlide());
__get__renderer().__set__maxPerspectiveLevel(1);
}
}
function createLayersRectangle(slideController1, slideController2) {
var _local14 = slideController1.getPrimaryMovie();
var _local13 = slideController2.getPrimaryMovie();
var _local12 = NUM_CELLS / NUM_LAYERS;
var _local6;
var _local5;
var _local3;
var _local10 = new flash.geom.Matrix(1, 0, 0, 1, 0, 0);
var _local9 = 0;
while (_local9 < NUM_LAYERS) {
var _local8 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true, 0);
var _local7 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true, 0);
var _local11 = _local9 * _local12;
var _local2 = 0;
while (_local2 < _local12) {
_local6 = m_rndGen.GetRandom(_local11 + _local2);
_local3 = Math.floor(_local6 / NUM_X);
_local5 = _local6 - (_local3 * NUM_X);
_local5 = _local5 * CELL_WIDTH;
_local3 = _local3 * CELL_HEIGHT;
var _local4 = new flash.geom.Rectangle(_local5, _local3, CELL_WIDTH, CELL_HEIGHT);
if (__get__hasOldSlide()) {
_local8.draw(_local14, _local10, undefined, undefined, _local4);
}
_local7.draw(_local13, _local10, undefined, undefined, _local4);
_local2++;
}
if (__get__hasOldSlide()) {
m_layers1.push(createTexture(_local8));
}
m_layers2.push(createTexture(_local7));
_local9++;
}
}
function createLayersStrips(slideController1, slideController2) {
var _local21 = new Array();
var _local20 = new Array();
var _local17 = slideController1.getPrimaryMovie();
var _local16 = slideController2.getPrimaryMovie();
var _local22 = Math.max(__get__slideWidth() * MAX_STRIP_WIDTH, 1);
var _local18 = Math.max(0.5 * _local22, 1);
var _local19 = _local22 - _local18;
var _local6 = 0;
var _local5 = 0;
var _local11 = 0;
var _local14 = 0;
while (_local14 < NUM_LAYERS) {
if (__get__hasOldSlide()) {
var _local15 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true, 0);
_local21.push(_local15);
m_layers1.push(createTexture(_local15));
}
var _local13 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true, 0);
_local20.push(_local13);
m_layers2.push(createTexture(_local13));
_local14++;
}
var _local3 = new flash.geom.Matrix(1, 0, 0, 1, 0, 0);
var _local12 = 0;
while ((_local6 + _local5) < __get__slideWidth()) {
var _local2 = new flash.geom.Rectangle(_local6, _local11, _local5, __get__slideHeight() - _local11);
var _local8 = _local21[_local12];
var _local7 = _local20[_local12];
if (__get__hasOldSlide()) {
_local8.draw(_local17, _local3, undefined, undefined, _local2);
}
_local7.draw(_local16, _local3, undefined, undefined, _local2);
var _local9 = _local6 + _local5;
var _local4 = __get__slideWidth() - _local9;
var _local10;
_local10 = generateStripWidth(_local18, _local19, _local4);
_local2 = new flash.geom.Rectangle(_local9, 0, _local10, __get__slideHeight());
if (__get__hasOldSlide()) {
_local8.draw(_local17, _local3, undefined, undefined, _local2);
}
_local7.draw(_local16, _local3, undefined, undefined, _local2);
_local6 = _local9 + _local10;
_local4 = _local4 - _local10;
_local5 = generateStripWidth(_local18, _local19, _local4);
_local11 = Math.random() * __get__slideHeight();
_local2 = new flash.geom.Rectangle(_local6, 0, _local5, _local11);
if (__get__hasOldSlide()) {
_local8.draw(_local17, _local3, undefined, undefined, _local2);
}
_local7.draw(_local16, _local3, undefined, undefined, _local2);
_local12 = (_local12 + 1) % NUM_LAYERS;
}
}
function generateStripWidth(minStripWidth, deltaWidth, widthLeft) {
if (widthLeft <= minStripWidth) {
return(widthLeft);
}
return(minStripWidth + (Math.random() * deltaWidth));
}
function applyEffectImpl(phase) {
render(phase);
}
function render(phase) {
super.render();
var _local8 = 0;
var _local10 = 0;
var _local9 = __get__maxSlideSize();
var _local6 = 0;
var _local7 = 0;
if (phase < PHASE_CAM_ROTATION) {
_local8 = ((-phase) / PHASE_CAM_ROTATION) * MAX_CAM_DX;
_local10 = (phase / PHASE_CAM_ROTATION) * MAX_CAM_DY;
_local9 = _local9 + ((phase / PHASE_CAM_ROTATION) * MAX_CAM_DZ);
} else if (phase > (1 - PHASE_CAM_ROTATION)) {
_local8 = ((-(1 - phase)) / PHASE_CAM_ROTATION) * MAX_CAM_DX;
_local10 = ((1 - phase) / PHASE_CAM_ROTATION) * MAX_CAM_DY;
_local9 = _local9 + (((1 - phase) / PHASE_CAM_ROTATION) * MAX_CAM_DZ);
} else {
_local8 = -MAX_CAM_DX;
_local10 = MAX_CAM_DY;
_local9 = _local9 + MAX_CAM_DZ;
}
if ((m_direction == DIRECTION_OUT) && (phase >= 0.5)) {
_local8 = _local8 * -1;
}
if (phase < PHASE_MOVING) {
_local6 = (phase / PHASE_MOVING) * MAX_DZ;
} else if (phase > (1 - PHASE_MOVING)) {
_local6 = ((1 - phase) / PHASE_MOVING) * MAX_DZ;
} else if ((phase > PHASE_CAM_ROTATION) && (phase < (1 - PHASE_CAM_ROTATION))) {
_local6 = MAX_DZ;
_local7 = (Math.sin(((phase - PHASE_CAM_ROTATION) / PHASE_FAST_MOVING) * Math.PI) * m_depth) * 1.5;
} else {
_local6 = MAX_DZ;
}
var _local4;
var _local3 = 0;
while (_local3 < NUM_LAYERS) {
resetMatrix(_local8, _local10, _local9);
if (_local3 < (NUM_LAYERS / 2)) {
_local4 = (_local6 * (_local3 + 1)) + _local7;
} else {
_local4 = ((-_local6) * (NUM_LAYERS - _local3)) - _local7;
}
if (phase < 0.5) {
if (__get__hasOldSlide()) {
__get__renderer().bindTexture(m_layers1[_local3]);
renderLayer(_local4);
}
} else {
__get__renderer().bindTexture(m_layers2[_local3]);
renderLayer(_local4);
}
_local3++;
}
}
function renderLayer(z) {
__get__modelView().translate(0, 0, z);
renderPlane(-0.5 * __get__slideWidth(), 0.5 * __get__slideHeight(), __get__slideWidth(), __get__slideHeight(), 0, 0, 1, 1);
}
function resetMatrix(x, y, z) {
__get__modelView().loadLookAtRH(x, y, z, 0, 0, 0, 0, 1, 0);
}
function cleanup() {
super.cleanup();
if (__get__hasOldSlide()) {
m_slide1._visible = true;
}
m_slide2._visible = true;
}
static var DIRECTION_IN = 0;
static var DIRECTION_OUT = 1;
static var TYPE_RECTANGLE = 0;
static var TYPE_STRIPS = 1;
var NUM_X = 80;
var NUM_Y = 60;
var NUM_CELLS = fsplayer.core.playback.transitions.CTransitionShred.prototype.NUM_X * fsplayer.core.playback.transitions.CTransitionShred.prototype.NUM_Y;
var NUM_LAYERS = 6;
var PHASE_CAM_ROTATION = 0.4;
var PHASE_MOVING = 0.2;
var PHASE_FAST_MOVING = 1 - (fsplayer.core.playback.transitions.CTransitionShred.prototype.PHASE_CAM_ROTATION * 2);
var MAX_STRIP_WIDTH = 0.025;
}
Symbol 413 MovieClip [__Packages.fsplayer.core.playback.transitions.util.CRandomGenerator] Frame 0
class fsplayer.core.playback.transitions.util.CRandomGenerator
{
var m_size, m_set;
function CRandomGenerator (size) {
m_size = size;
Generate();
}
function GetRandom(index) {
if (index >= m_size) {
return(0);
}
return(m_set[index]);
}
function Generate() {
if (m_size > MAX_RANDOM_VALUE) {
m_size = MAX_RANDOM_VALUE;
}
var _local8 = 13;
var _local7 = 17;
var _local9 = MAX_RANDOM_VALUE;
var _local3 = new Array(MAX_RANDOM_VALUE);
_local3[0] = m_size;
var _local4 = 1;
while (_local4 < MAX_RANDOM_VALUE) {
_local3[_local4] = ((_local3[_local4 - 1] * _local8) + _local7) % _local9;
_local4++;
}
m_set = new Array(m_size);
var _local2;
var _local10 = Math.floor(Math.random() * m_size);
var _local5 = _local10;
var _local6 = 0;
_local4 = 0;
while (_local4 < m_size) {
do {
_local2 = _local3[_local6++];
} while (_local2 >= m_size);
m_set[_local5] = _local2;
_local5++;
if (_local5 == m_size) {
_local5 = 0;
}
_local4++;
}
}
static var MAX_RANDOM_VALUE = 8192;
}
Symbol 414 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionSwitch] Frame 0
class fsplayer.core.playback.transitions.CTransitionSwitch extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var m_type, m_depth, maxSlideSize, __get__slideWidth, __get__slideHeight, m_slide2, inverted, __get__hasOldSlide, m_slide1, __get__inverted, m_tex1, m_tex2, __get__maxSlideSize, resetMatrix, __get__renderer, __get__modelView, renderPlane;
function CTransitionSwitch (parameters, type) {
super(parameters);
m_type = type;
m_depth = maxSlideSize;
MAX_DX = __get__slideWidth() / 4;
MAX_DY = __get__slideHeight() / 2;
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
m_slide2._visible = inverted;
if (__get__hasOldSlide()) {
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide1._visible = !__get__inverted();
}
}
function initialize() {
m_tex1 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
m_tex2 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
if (__get__hasOldSlide()) {
m_tex1.draw(m_slide1);
m_slide1._visible = false;
}
m_tex2.draw(m_slide2);
m_slide2._visible = false;
}
function applyEffectImpl(phase) {
render(phase);
}
function render(phase) {
super.render();
var _local12 = __get__slideWidth();
var _local11 = __get__slideWidth();
var _local10 = 0;
var _local8 = Math.sin((phase * phase) * Math.PI) * MAX_ANGLE_X;
var _local3 = Math.sin(phase * Math.PI) * MAX_ANGLE_Z;
var _local7 = Math.sin(phase * Math.PI) * MAX_DX;
var _local6 = Math.sin(phase * Math.PI) * MAX_DY;
var _local5 = Math.abs((0.5 - phase) * m_depth);
if (m_type == DIRECTION_LEFT) {
_local3 = -_local3;
_local7 = -_local7;
}
var _local9 = __get__maxSlideSize() + (0.5 * ((_local12 * Math.sin(_local10)) + (_local11 * Math.cos(_local10))));
if (phase < 0.5) {
resetMatrix(_local9);
renderSlide(m_tex2, _local7, -_local6, _local5, _local8, _local3);
resetMatrix(_local9);
renderSlide(m_tex1, 0, _local6, _local5, _local8, _local3);
} else {
resetMatrix(_local9);
renderSlide(m_tex1, 0, _local6, _local5, _local8, _local3);
resetMatrix(_local9);
renderSlide(m_tex2, _local7, -_local6, _local5, _local8, _local3);
}
}
function renderSlide(tex, x, y, z, angleX, angleZ) {
__get__renderer().textureImage2D(tex, false);
__get__modelView().translate(x, y, z);
__get__modelView().rotateZ(angleZ);
__get__modelView().rotateX(angleX);
renderPlane(-0.5 * __get__slideWidth(), 0.5 * __get__slideHeight(), __get__slideWidth(), __get__slideHeight(), 0, 0, 1, 1);
}
function cleanup() {
super.cleanup();
m_slide1._visible = true;
m_slide2._visible = true;
}
static var DIRECTION_LEFT = 0;
static var DIRECTION_RIGHT = 1;
var MAX_ANGLE_Z = 0.392699081698724;
var MAX_ANGLE_X = 0.314159265358979;
var MAX_DX = 0;
var MAX_DY = 0;
}
Symbol 415 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionVortex] Frame 0
class fsplayer.core.playback.transitions.CTransitionVortex extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var m_direction, CELL_WIDTH, __get__slideWidth, CELL_HEIGHT, __get__slideHeight, m_depth, maxSlideSize, MAX_DZ, m_rndGen, __get__hasOldSlide, m_slide1, __get__inverted, m_slide2, inverted, __get__renderer, __get__params, m_layers1, m_layers2, createTexture, slideWidth, __get__modelView, renderPlane;
function CTransitionVortex (parameters, direction) {
super(parameters);
m_direction = direction;
CELL_WIDTH = __get__slideWidth() / NUM_X;
CELL_HEIGHT = __get__slideHeight() / NUM_Y;
m_depth = maxSlideSize;
MAX_DZ = m_depth / 10;
m_rndGen = new fsplayer.core.playback.transitions.util.CRandomGenerator(NUM_CELLS);
if (__get__hasOldSlide()) {
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide1._visible = !__get__inverted();
}
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
m_slide2._visible = inverted;
__get__renderer().__set__maxPerspectiveLevel(0);
}
function initialize() {
m_slide2._visible = false;
if (__get__hasOldSlide()) {
m_slide1._visible = false;
}
createRectangleLayers(__get__params().getOldSlide(), __get__params().getNewSlide());
}
function createRectangleLayers(slideController1, slideController2) {
m_layers1 = new Array();
m_layers2 = new Array();
var _local15 = slideController1.getPrimaryMovie();
var _local14 = slideController2.getPrimaryMovie();
var _local11 = NUM_CELLS / NUM_LAYERS;
var _local5;
var _local4;
var _local2;
var _local9 = new flash.geom.Matrix(1, 0, 0, 1, 0, 0);
var _local13 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true, 0);
var _local12 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true, 0);
_local13.draw(_local15);
_local12.draw(_local14);
var _local8 = 0;
while (_local8 < NUM_LAYERS) {
var _local7 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true, 0);
var _local6 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true, 0);
var _local10 = _local8 * _local11;
var _local3 = 0;
while (_local3 < _local11) {
_local5 = m_rndGen.GetRandom(_local10 + _local3);
_local2 = Math.floor(_local5 / NUM_X);
_local4 = _local5 - (_local2 * NUM_X);
_local4 = _local4 * CELL_WIDTH;
_local2 = _local2 * CELL_HEIGHT;
if (__get__hasOldSlide()) {
_local7.draw(_local13, _local9, undefined, undefined, new flash.geom.Rectangle(_local4, _local2, CELL_WIDTH, CELL_HEIGHT));
}
_local6.draw(_local12, _local9, undefined, undefined, new flash.geom.Rectangle(_local4, _local2, CELL_WIDTH, CELL_HEIGHT));
_local3++;
}
if (__get__hasOldSlide()) {
m_layers1.push(createTexture(_local7));
}
m_layers2.push(createTexture(_local6));
_local8++;
}
}
function applyEffectImpl(phase) {
render(phase);
}
function render(phase) {
super.render();
var _local7 = 0;
var _local6 = 0;
var _local5 = 0;
var _local9 = 0;
var _local10;
var _local8 = 0;
_local10 = phase * Math.PI;
if ((m_direction == DIRECTION_RIGHT) || (m_direction == DIRECTION_LEFT)) {
_local9 = slideWidth;
_local7 = (-Math.sin(_local10)) * _local9;
} else {
_local9 = slideWidth;
_local6 = Math.sin(_local10) * _local9;
}
_local5 = Math.cos(_local10) * _local9;
_local8 = Math.sin(phase * Math.PI) * MAX_DZ;
var _local4;
var _local3 = 0;
while (_local3 < NUM_LAYERS) {
if (_local3 < NUM_LAYERS) {
_local4 = _local8 * (_local3 + 0);
} else {
_local4 = (-_local8) * (NUM_LAYERS - _local3);
}
if (_local5 > _local4) {
if (__get__hasOldSlide()) {
resetMatrix(_local7, _local6, _local5, 1);
__get__renderer().bindTexture(m_layers1[_local3]);
renderLayer(_local4, 0, 0, 0);
}
} else {
__get__renderer().bindTexture(m_layers2[_local3]);
if ((m_direction == DIRECTION_RIGHT) || (m_direction == DIRECTION_LEFT)) {
resetMatrix(_local7, _local6, _local5, 1);
renderLayer(_local4, 0, Math.PI, 0);
} else {
resetMatrix(_local7, _local6, _local5, -1);
renderLayer(-_local4, Math.PI, 0, 0);
}
}
_local3++;
}
}
function renderLayer(z, angleX, angleY, angleZ) {
__get__modelView().translate(0, 0, z);
__get__modelView().rotateZ(angleZ);
__get__modelView().rotateY(angleY);
__get__modelView().rotateX(angleX);
renderPlane(-0.5 * __get__slideWidth(), 0.5 * __get__slideHeight(), __get__slideWidth(), __get__slideHeight(), 0, 0, 1, 1);
}
function resetMatrix(x, y, z, up) {
__get__modelView().loadLookAtRH(x, y, z, 0, 0, 0, 0, up, 0);
}
function cleanup() {
super.cleanup();
if (__get__hasOldSlide()) {
m_slide1._visible = true;
}
m_slide2._visible = true;
}
static var DIRECTION_UP = 0;
static var DIRECTION_DOWN = 1;
static var DIRECTION_LEFT = 2;
static var DIRECTION_RIGHT = 3;
var NUM_X = 80;
var NUM_Y = 60;
var NUM_CELLS = fsplayer.core.playback.transitions.CTransitionVortex.prototype.NUM_X * fsplayer.core.playback.transitions.CTransitionVortex.prototype.NUM_Y;
var MAX_STRIP_WIDTH = 0.025;
var NUM_LAYERS = 8;
}
Symbol 416 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionCover3D] Frame 0
class fsplayer.core.playback.transitions.CTransitionCover3D extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var __get__hasOldSlide, m_oldSlideMC, __get__inverted, m_shadowMc, m_renderParent, __get__slideWidth, __get__slideHeight, __get__renderer, m_newSlideMC, inverted, m_movingSlideMc, renderPlaneDepth, __get__modelView, __get__maxSlideSize, __get__renderMC, m_directionX, m_directionY;
function CTransitionCover3D (parameters, type) {
super(parameters);
if (__get__hasOldSlide()) {
m_oldSlideMC = parameters.getOldSlide().getPrimaryMovie();
m_oldSlideMC._visible = !__get__inverted();
m_shadowMc = m_renderParent.createEmptyMovieClip("shadowMc", m_renderParent.getNextHighestDepth());
cpslabs.utils.CGraphicsUtils.drawRect(m_shadowMc, SHADOW_BLUR_LEN, SHADOW_BLUR_LEN, __get__slideWidth() - (SHADOW_BLUR_LEN * 2), __get__slideHeight() - (SHADOW_BLUR_LEN * 2), 0, SHADOW_ALPHA);
var _local5 = new flash.filters.BlurFilter(SHADOW_BLUR_LEN, SHADOW_BLUR_LEN, 3);
m_shadowMc.filters = [_local5];
var _local3 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true, 0);
_local3.draw(m_shadowMc);
__get__renderer().bindTexture(m_shadowTextureIndex);
__get__renderer().textureImage2D(_local3, false);
m_shadowMc.filters = [];
m_shadowMc.clear();
}
m_newSlideMC = parameters.getNewSlide().getPrimaryMovie();
m_newSlideMC._visible = inverted;
m_movingSlideMc = m_renderParent.createEmptyMovieClip("secondSlideMc", m_renderParent.getNextHighestDepth());
setType(type);
}
function initialize() {
if (__get__hasOldSlide()) {
var _local3 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
__get__renderer().bindTexture(m_oldSlideTextureIndex);
__get__renderer().textureImage2D(_local3, false);
_local3.draw(m_oldSlideMC);
m_oldSlideMC._visible = false;
}
var _local2 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
__get__renderer().bindTexture(m_newSlideTextureIndex);
__get__renderer().textureImage2D(_local2, false);
_local2.draw(m_newSlideMC);
m_newSlideMC._visible = false;
}
function renderSlidePlane(target, textureIndex) {
if (!(textureIndex === undefined)) {
__get__renderer().bindTexture(textureIndex);
}
__get__renderer().__set__renderTarget(target);
renderPlaneDepth(__get__slideWidth(), __get__slideHeight(), 0);
}
function moveCamera(phase) {
var _local2;
if (phase < SKEWING_PHASE_DURATION) {
_local2 = phase;
} else if (phase > (1 - SKEWING_PHASE_DURATION)) {
_local2 = 1 - phase;
} else {
_local2 = SKEWING_PHASE_DURATION;
}
__get__modelView().loadLookAtRH(0, ((-__get__slideHeight()) * _local2) * 0.75, __get__maxSlideSize() + ((__get__maxSlideSize() * _local2) * 0.25), 0, 0, 0, 0, 1, 0);
}
function getMovingSlideAlphaByMovePhase(movePhase) {
return(MOVING_SLIDE_MIN_ALPHA + ((100 - MOVING_SLIDE_MIN_ALPHA) * movePhase));
}
function getMovingSlideTextureIndex() {
return(m_newSlideTextureIndex);
}
function getUnderMovingSlideTextureIndex() {
return(m_oldSlideTextureIndex);
}
function applyEffectImpl(phase) {
super.render();
m_movingSlideMc.clear();
if (m_shadowMc) {
m_shadowMc.clear();
}
moveCamera(phase);
if (__get__hasOldSlide() && (phase < MOVING_PHASE_END)) {
var _local7 = ((phase >= MOVING_PHASE_START) ? (getUnderMovingSlideTextureIndex()) : (m_oldSlideTextureIndex));
renderSlidePlane(__get__renderMC(), _local7);
}
if ((phase >= MOVING_PHASE_START) && (phase < MOVING_PHASE_END)) {
var _local6 = __get__modelView().m23 + 1;
var _local4 = 1 - ((MOVING_PHASE_END - phase) / (MOVING_PHASE_END - MOVING_PHASE_START));
translateMovingSlide(_local4);
if (__get__hasOldSlide()) {
m_movingSlideMc._alpha = getMovingSlideAlphaByMovePhase(_local4);
}
renderSlidePlane(m_movingSlideMc, getMovingSlideTextureIndex());
if (__get__hasOldSlide()) {
__get__modelView().m23 = _local6;
var _local5 = __get__renderer().__get__maxPerspectiveLevel();
__get__renderer().__set__maxPerspectiveLevel(0);
renderSlidePlane(m_shadowMc, m_shadowTextureIndex);
__get__renderer().__set__maxPerspectiveLevel(_local5);
}
} else if (phase >= MOVING_PHASE_END) {
renderSlidePlane(__get__renderMC(), m_newSlideTextureIndex);
}
}
function translateMovingSlide(movePhase) {
__get__modelView().translate((__get__slideWidth() * (-m_directionX)) * (1 - movePhase), (__get__slideHeight() * (-m_directionY)) * (1 - movePhase), MOVING_DEPTH * (1 - movePhase));
}
function setType(type) {
m_directionX = 0;
m_directionY = 0;
switch (type) {
case DIRECTION_UP :
m_directionY = 1;
break;
case DIRECTION_DOWN :
m_directionY = -1;
break;
case DIRECTION_LEFT :
m_directionX = -1;
break;
case DIRECTION_RIGHT :
m_directionX = 1;
break;
case DIRECTION_LEFT_DOWN :
m_directionX = -1;
m_directionY = -1;
break;
case DIRECTION_LEFT_UP :
m_directionX = -1;
m_directionY = 1;
break;
case DIRECTION_RIGHT_DOWN :
m_directionX = 1;
m_directionY = -1;
break;
case DIRECTION_RIGHT_UP :
m_directionX = 1;
m_directionY = 1;
}
}
static var DIRECTION_UP = 0;
static var DIRECTION_DOWN = 1;
static var DIRECTION_LEFT = 2;
static var DIRECTION_RIGHT = 3;
static var DIRECTION_LEFT_DOWN = 4;
static var DIRECTION_LEFT_UP = 5;
static var DIRECTION_RIGHT_DOWN = 6;
static var DIRECTION_RIGHT_UP = 7;
var SKEWING_PHASE_DURATION = 0.4;
var MOVING_PHASE_START = 0.1;
var MOVING_PHASE_END = 0.7;
var MOVING_DEPTH = 400;
var MOVING_SLIDE_MIN_ALPHA = 50;
var SHADOW_ALPHA = 30;
var SHADOW_BLUR_LEN = 25;
var m_oldSlideTextureIndex = 0;
var m_newSlideTextureIndex = 1;
var m_shadowTextureIndex = 2;
}
Symbol 417 MovieClip [__Packages.cpslabs.utils.CGraphicsUtils] Frame 0
class cpslabs.utils.CGraphicsUtils
{
function CGraphicsUtils () {
}
static function drawRect(target, x, y, width, height, fillColor, fillAlpha, lineWidth, lineColor, lineAlpha) {
if (fillColor === undefined) {
fillColor = 0;
}
if (fillAlpha === undefined) {
fillAlpha = 100;
}
if (lineWidth === undefined) {
lineWidth = 0;
}
if (lineColor === undefined) {
lineColor = 0;
}
if (lineAlpha === undefined) {
lineAlpha = 100;
}
x = x + (lineWidth / 2);
y = y + (lineWidth / 2);
width = width - lineWidth;
height = height - lineWidth;
target.lineStyle(((lineWidth == 0) ? undefined : (lineWidth)), lineColor, lineAlpha, undefined, undefined, "none", "miter");
target.beginFill(fillColor, fillAlpha);
target.moveTo(x, y);
target.lineTo(x + width, y);
target.lineTo(x + width, y + height);
target.lineTo(x, y + height);
target.lineTo(x, y);
target.endFill();
}
static function drawDashLine(mc, p1, p2, dashLen, thickness, color, alpha) {
if (alpha === undefined) {
alpha = 100;
}
var _local10 = p2.subtract(p1);
var _local11 = _local10.length;
var _local9 = Math.floor(_local11 / dashLen) - 1;
var _local2 = new flash.geom.Point(_local10.x / _local9, _local10.y / _local9);
var _local13 = p1.clone();
mc.lineStyle(thickness, color, alpha);
var _local1 = 0;
while (_local1 < _local9) {
var _local3 = p1.x + (_local1 * _local2.x);
var _local4 = p1.y + (_local1 * _local2.y);
var _local6 = _local3 + _local2.x;
var _local5 = _local4 + _local2.y;
mc.moveTo(_local3, _local4);
mc.lineTo(_local6, _local5);
_local1 = _local1 + 2;
}
}
static function drawDashRect(mc, x, y, width, height, dashLen, thickness, color, alpha) {
var _local2 = new flash.geom.Point(x, y);
var _local5 = new flash.geom.Point(x + width, y);
var _local8 = new flash.geom.Point(x + width, y + height);
var _local4 = new flash.geom.Point(x, y + height);
drawDashLine(mc, _local2, _local5, dashLen, thickness, color, alpha);
drawDashLine(mc, _local5, _local8, dashLen, thickness, color, alpha);
drawDashLine(mc, _local8, _local4, dashLen, thickness, color, alpha);
drawDashLine(mc, _local4, _local2, dashLen, thickness, color, alpha);
}
static function isGlobalVisibleMc(mc) {
do {
if (!mc._visible) {
return(false);
}
mc = mc._parent;
} while (mc);
return(true);
}
static function drawRoundRect(target, x, y, width, height, cornerRadius, fillColor, fillAlpha, lineWidth, lineColor, lineAlpha) {
if (cornerRadius == undefined) {
cornerRadius = 0;
}
if (fillColor == undefined) {
fillColor = 0;
}
if (fillAlpha == undefined) {
fillAlpha = 100;
}
if (lineWidth == undefined) {
lineWidth = 0;
}
if (lineColor == undefined) {
lineColor = 0;
}
if (lineAlpha == undefined) {
lineAlpha = 100;
}
width = width - lineWidth;
height = height - lineWidth;
target.lineStyle(lineWidth, lineColor, lineAlpha, undefined, undefined, "none", "milter");
target.beginFill(fillColor, fillAlpha);
target.moveTo(cornerRadius, 0);
target.lineTo(width - cornerRadius, 0);
target.curveTo(width, 0, width, cornerRadius);
target.lineTo(width, height - cornerRadius);
target.curveTo(width, height, width - cornerRadius, height);
target.lineTo(cornerRadius, height);
target.curveTo(0, height, 0, height - cornerRadius);
target.lineTo(0, cornerRadius);
target.curveTo(0, 0, cornerRadius, 0);
target.endFill();
target._x = x;
target._y = y;
}
}
Symbol 418 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionPush] Frame 0
class fsplayer.core.playback.transitions.CTransitionPush extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_slide1, m_slide2, __get__slideHeight, __get__slideWidth, applyEffect, __get__hasOldSlide, m_slide1_x1, m_slide1_y1, m_slide2_x0, m_slide2_y0;
function CTransitionPush (parameters, type, bounce) {
super(parameters);
SetType(type);
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
if (bounce == true) {
NORMAL_PHASE = 1 - BOUNCE_PHASE;
if ((type == DIRECTION_UP) || (type == DIRECTION_DOWN)) {
MAX_DELTA = __get__slideHeight() * 0.03;
} else {
MAX_DELTA = __get__slideWidth() * 0.03;
}
}
applyEffect(0);
}
function applyEffectImpl(phase) {
if (phase <= NORMAL_PHASE) {
phase = phase / NORMAL_PHASE;
if (__get__hasOldSlide()) {
m_slide1._x = __get__slideWidth() * (m_slide1_x1 * phase);
m_slide1._y = __get__slideHeight() * (m_slide1_y1 * phase);
}
m_slide2._x = __get__slideWidth() * (m_slide2_x0 * (1 - phase));
m_slide2._y = __get__slideHeight() * (m_slide2_y0 * (1 - phase));
} else {
var _local3 = Math.sin((((1 - phase) * 2) * Math.PI) / BOUNCE_PHASE);
if (__get__hasOldSlide()) {
m_slide1._x = m_slide1_x1 * (__get__slideWidth() - (_local3 * MAX_DELTA));
m_slide1._y = m_slide1_y1 * (__get__slideHeight() - (_local3 * MAX_DELTA));
}
m_slide2._x = m_slide2_x0 * (_local3 * MAX_DELTA);
m_slide2._y = m_slide2_y0 * (_local3 * MAX_DELTA);
}
}
function SetType(type) {
m_slide1_x1 = 0;
m_slide1_y1 = 0;
switch (type) {
case DIRECTION_UP :
m_slide1_y1 = -1;
break;
case DIRECTION_DOWN :
m_slide1_y1 = 1;
break;
case DIRECTION_LEFT :
m_slide1_x1 = -1;
break;
case DIRECTION_RIGHT :
m_slide1_x1 = 1;
}
m_slide2_x0 = -m_slide1_x1;
m_slide2_y0 = -m_slide1_y1;
}
static var DIRECTION_UP = 0;
static var DIRECTION_DOWN = 1;
static var DIRECTION_LEFT = 2;
static var DIRECTION_RIGHT = 3;
var MAX_DELTA = 0;
var BOUNCE_PHASE = 0.2;
var NORMAL_PHASE = 1;
}
Symbol 419 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionWipe] Frame 0
class fsplayer.core.playback.transitions.CTransitionWipe extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_newSlide, m_environment, applyEffect, m_x0, m_mask, m_y0;
function CTransitionWipe (parameters, type) {
super(parameters);
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
SetType(type);
applyEffect(0);
}
function applyEffectImpl(phase) {
m_mask._x = m_environment.getSlideWidth() * (m_x0 * (1 - phase));
m_mask._y = m_environment.getSlideHeight() * (m_y0 * (1 - phase));
}
function initialize() {
m_mask = m_newSlide.getPrimaryMask();
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, 0, m_environment.getSlideWidth(), m_environment.getSlideHeight());
}
function SetType(type) {
m_x0 = 0;
m_y0 = 0;
switch (type) {
case DIRECTION_UP :
m_y0 = 1;
break;
case DIRECTION_DOWN :
m_y0 = -1;
break;
case DIRECTION_LEFT :
m_x0 = 1;
break;
case DIRECTION_RIGHT :
m_x0 = -1;
}
}
static var DIRECTION_UP = 0;
static var DIRECTION_DOWN = 1;
static var DIRECTION_LEFT = 2;
static var DIRECTION_RIGHT = 3;
}
Symbol 420 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionUncover3D] Frame 0
class fsplayer.core.playback.transitions.CTransitionUncover3D extends fsplayer.core.playback.transitions.CTransitionCover3D
{
var MOVING_SLIDE_MIN_ALPHA, m_oldSlideTextureIndex, m_newSlideTextureIndex, __get__modelView, m_directionX, __get__slideWidth, m_directionY, __get__slideHeight, MOVING_DEPTH;
function CTransitionUncover3D (parameters, type) {
super(parameters, type);
}
function getMovingSlideAlphaByMovePhase(movePhase) {
return(MOVING_SLIDE_MIN_ALPHA + ((100 - MOVING_SLIDE_MIN_ALPHA) * (1 - movePhase)));
}
function getMovingSlideTextureIndex() {
return(m_oldSlideTextureIndex);
}
function getUnderMovingSlideTextureIndex() {
return(m_newSlideTextureIndex);
}
function translateMovingSlide(movePhase) {
__get__modelView().translate((__get__slideWidth() * m_directionX) * movePhase, (__get__slideHeight() * m_directionY) * movePhase, MOVING_DEPTH * movePhase);
}
var MOVING_PHASE_START = 0.3;
var MOVING_PHASE_END = 0.7;
}
Symbol 421 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionFadeSmoothly] Frame 0
class fsplayer.core.playback.transitions.CTransitionFadeSmoothly extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_parameters, applyEffect;
function CTransitionFadeSmoothly (parameters) {
super(parameters);
m_parameters = parameters;
m_parameters.getNewSlide().bringToFront();
applyEffect(0);
}
function applyEffectImpl(phase) {
var _local2 = m_parameters.getNewSlide().getPrimaryMovie();
_local2._alpha = 100 * phase;
}
}
Symbol 422 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionFadeThroughBlack] Frame 0
class fsplayer.core.playback.transitions.CTransitionFadeThroughBlack extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var __set__invertible, m_parameters, __get__inverted, m_slide2, m_slide1;
function CTransitionFadeThroughBlack (parameters) {
super(parameters);
__set__invertible(false);
if (m_parameters.hasOldSlide() && (!__get__inverted())) {
m_parameters.getOldSlide().bringToFront();
}
if (__get__inverted()) {
m_slide2 = m_parameters.getOldSlide().getPrimaryMovie();
m_slide1 = m_parameters.getNewSlide().getPrimaryMovie();
} else {
m_slide1 = m_parameters.getOldSlide().getPrimaryMovie();
m_slide2 = m_parameters.getNewSlide().getPrimaryMovie();
m_slide2._visible = false;
}
}
function applyEffectImpl(phase) {
if (!m_parameters.hasOldSlide()) {
phase = (phase * 0.5) + 0.5;
}
if (phase < 0.5) {
var _local7 = new Color(m_slide1);
var _local5 = new Object();
var _local2 = 200 * (0.5 - phase);
_local5 = {ra:_local2, rb:"0", ga:_local2, gb:"0", ba:_local2, bb:"0", aa:"100", ab:"0"};
_local7.setTransform(_local5);
} else {
if (m_parameters.hasOldSlide()) {
m_slide1._visible = false;
}
var _local6 = new Color(m_slide2);
var _local4 = new Object();
var _local2 = 200 * (phase - 0.5);
_local4 = {ra:_local2, rb:"0", ga:_local2, gb:"0", ba:_local2, bb:"0", aa:"100", ab:"0"};
_local6.setTransform(_local4);
m_slide2._visible = true;
}
}
}
Symbol 423 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionCutThroughBlack] Frame 0
class fsplayer.core.playback.transitions.CTransitionCutThroughBlack extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_newSlide, applyEffect;
function CTransitionCutThroughBlack (parameters, type) {
super(parameters);
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
applyEffect(0);
}
function applyEffectImpl(phase) {
var _local4 = m_newSlide.getPrimaryMovie();
var _local3 = new Color(_local4);
var _local2 = new Object();
if (phase < 0.8) {
_local2 = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(_local2);
} else {
_local2 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(_local2);
}
}
}
Symbol 424 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionBox] Frame 0
class fsplayer.core.playback.transitions.CTransitionBox extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_newSlide, m_oldSlide, m_environment, m_hasOldSlide, m_type, applyEffect, m_mask;
function CTransitionBox (parameters, type) {
super(parameters);
m_newSlide = parameters.getNewSlide();
m_oldSlide = parameters.getOldSlide();
m_environment = parameters.getEnvironment();
m_hasOldSlide = parameters.hasOldSlide();
m_type = type;
applyEffect(0);
}
function applyEffectImpl(phase) {
var _local4 = m_environment.getSlideWidth();
var _local5 = m_environment.getSlideHeight();
var _local3 = ((m_type == DIRECTION_IN) ? (1 - phase) : (phase));
if ((m_type != DIRECTION_IN) || (m_hasOldSlide)) {
m_mask.clear();
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, (_local4 * (1 - _local3)) * 0.5, (_local5 * (1 - _local3)) * 0.5, _local4 * _local3, _local5 * _local3);
} else {
var _local6 = (_local4 * (1 - _local3)) * 0.5;
var _local2 = (_local5 * (1 - _local3)) * 0.5;
m_mask.clear();
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, 0, _local4, _local2);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, _local5 - _local2, _local4, _local2);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, _local2, _local6, _local5 - (2 * _local2));
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, _local4 - _local6, _local2, _local6, _local5 - (2 * _local2));
}
}
function initialize() {
m_mask = undefined;
if (m_type == DIRECTION_IN) {
if (m_hasOldSlide) {
m_oldSlide.bringToFront();
m_mask = m_oldSlide.getPrimaryMask();
}
} else {
m_mask = m_newSlide.getPrimaryMask();
m_newSlide.bringToFront();
}
if (m_mask == undefined) {
m_mask = m_newSlide.getPrimaryMask();
}
}
static var DIRECTION_IN = 0;
static var DIRECTION_OUT = 1;
}
Symbol 425 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionShapeCircle] Frame 0
class fsplayer.core.playback.transitions.CTransitionShapeCircle extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_newSlide, m_environment, applyEffect, m_mask, m_scaleY;
function CTransitionShapeCircle (parameters) {
super(parameters);
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
applyEffect(0);
}
function applyEffectImpl(phase) {
var _local4 = m_environment.getSlideWidth();
var _local5 = m_environment.getSlideHeight();
var _local2 = Math.SQRT2;
m_mask._xscale = (phase * _local2) * 100;
m_mask._yscale = m_mask._xscale * m_scaleY;
m_mask._x = (_local4 * (1 - (phase * _local2))) * 0.5;
m_mask._y = (_local5 * (1 - (phase * _local2))) * 0.5;
}
function initialize() {
m_mask = m_newSlide.getPrimaryMask();
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
m_scaleY = _local4 / _local3;
var _local2 = _local3 * 0.5;
m_mask.beginFill(0, 100);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawCircle(m_mask, _local2, _local2, _local2);
m_mask.endFill();
}
}
Symbol 426 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionShapeDiamond] Frame 0
class fsplayer.core.playback.transitions.CTransitionShapeDiamond extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_newSlide, m_environment, applyEffect, m_mask;
function CTransitionShapeDiamond (parameters) {
super(parameters);
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
applyEffect(0);
}
function applyEffectImpl(phase) {
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
m_mask._xscale = phase * 100;
m_mask._yscale = phase * 100;
m_mask._x = (_local3 * (1 - (2 * phase))) * 0.5;
m_mask._y = (_local4 * (1 - (2 * phase))) * 0.5;
}
function initialize() {
m_mask = m_newSlide.getPrimaryMask();
var _local2 = m_environment.getSlideWidth();
var _local3 = m_environment.getSlideHeight();
m_mask.beginFill(0, 100);
m_mask.moveTo(0, _local3);
m_mask.lineTo(_local2, 0);
m_mask.lineTo(2 * _local2, _local3);
m_mask.lineTo(_local2, 2 * _local3);
m_mask.endFill();
}
}
Symbol 427 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionShapePlus] Frame 0
class fsplayer.core.playback.transitions.CTransitionShapePlus extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_newSlide, m_environment, applyEffect, m_mask;
function CTransitionShapePlus (parameters) {
super(parameters);
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
applyEffect(0);
}
function applyEffectImpl(phase) {
m_mask = m_newSlide.getPrimaryMask();
var _local5 = m_environment.getSlideWidth();
var _local7 = m_environment.getSlideHeight();
var _local3 = ((1 - phase) * 0.5) * _local5;
var _local6 = _local5 - _local3;
var _local2 = ((1 - phase) * 0.5) * _local7;
var _local4 = _local7 - _local2;
m_mask.clear();
m_mask.beginFill(0, 100);
m_mask.moveTo(0, _local4);
m_mask.lineTo(0, _local2);
m_mask.lineTo(_local3, _local2);
m_mask.lineTo(_local3, 0);
m_mask.lineTo(_local6, 0);
m_mask.lineTo(_local6, _local2);
m_mask.lineTo(_local5, _local2);
m_mask.lineTo(_local5, _local4);
m_mask.lineTo(_local6, _local4);
m_mask.lineTo(_local6, _local7);
m_mask.lineTo(_local3, _local7);
m_mask.lineTo(_local3, _local4);
m_mask.endFill();
}
}
Symbol 428 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionSplit] Frame 0
class fsplayer.core.playback.transitions.CTransitionSplit extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_newSlide, m_environment, m_type, applyEffect, m_mask1, m_mask2;
function CTransitionSplit (parameters, type) {
super(parameters);
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
m_type = type;
applyEffect(0);
}
function applyEffectImpl(phase) {
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
switch (m_type) {
case VERTICAL_IN :
m_mask1._xscale = phase * 100;
m_mask2._xscale = phase * 100;
m_mask2._x = (1 - (phase * 0.5)) * _local3;
break;
case HORIZONTAL_IN :
m_mask1._yscale = phase * 100;
m_mask2._yscale = phase * 100;
m_mask2._y = (1 - (phase * 0.5)) * _local4;
break;
case VERTICAL_OUT :
m_mask1._xscale = phase * 100;
m_mask1._x = ((1 - phase) * _local3) * 0.5;
break;
case HORIZONTAL_OUT :
m_mask1._yscale = phase * 100;
m_mask1._y = ((1 - phase) * _local4) * 0.5;
}
}
function initialize() {
var _local2 = m_newSlide.getPrimaryMask();
m_mask1 = _local2.createEmptyMovieClip("CTransitionSplit_mask1", _local2.getNextHighestDepth());
m_mask2 = _local2.createEmptyMovieClip("CTransitionSplit_mask2", _local2.getNextHighestDepth());
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
switch (m_type) {
case VERTICAL_IN :
var _local5 = _local3 * 0.5;
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask1, 0, 0, _local5, _local4);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask2, 0, 0, _local5, _local4);
break;
case HORIZONTAL_IN :
var _local6 = _local4 * 0.5;
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask1, 0, 0, _local3, _local6);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask2, 0, 0, _local3, _local6);
break;
case VERTICAL_OUT :
case HORIZONTAL_OUT :
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask1, 0, 0, _local3, _local4);
}
}
static var VERTICAL_IN = 0;
static var VERTICAL_OUT = 1;
static var HORIZONTAL_IN = 2;
static var HORIZONTAL_OUT = 3;
}
Symbol 429 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionBlinds] Frame 0
class fsplayer.core.playback.transitions.CTransitionBlinds extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var m_type, m_newSlideMC, inverted, __get__hasOldSlide, m_oldSlideMC, __get__inverted, __get__slideWidth, __get__slideHeight, __get__renderer, resetMatrix, __get__maxSlideSize, m_plates, m_plateHalfSize, m_plateX3, m_plateZ3, m_plateY3, m_plateHalfLength, m_cameraOffset, m_plateSize, m_plateLength, slideHeight, slideWidth, __get__renderMC;
function CTransitionBlinds (parameters, type) {
super(parameters);
m_type = type;
initTileAnimationParameters(parameters.getInverted());
m_newSlideMC = parameters.getNewSlide().getPrimaryMovie();
m_newSlideMC._visible = inverted;
if (__get__hasOldSlide()) {
m_oldSlideMC = parameters.getOldSlide().getPrimaryMovie();
m_oldSlideMC._visible = !__get__inverted();
}
}
function initialize() {
var _local2 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
var _local3 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true);
_local3.draw(m_newSlideMC);
m_newSlideMC._visible = false;
if (__get__hasOldSlide()) {
_local2.draw(m_oldSlideMC);
m_oldSlideMC._visible = false;
}
__get__renderer().bindTexture(m_oldSlideTexture);
__get__renderer().textureImage2D(_local2, false);
__get__renderer().bindTexture(m_newSlideTexture);
__get__renderer().textureImage2D(_local3, false);
}
function applyEffectImpl(phase) {
super.render();
var _local15 = __get__renderer();
_local15.__set__maxPerspectiveLevel(0);
resetMatrix(__get__maxSlideSize());
_local15.beginDraw(ispringsolutions.gl.Renderer.PRIMITIVE_TRIANGLE_STRIP);
var _local9 = 0;
while (_local9 < (m_plates.length / 2)) {
var _local3 = m_plates[_local9];
var _local7 = Math.min(1, Math.max(0, (phase - _local3.startTime) / ROTATE_PHASE_DURATION));
if (_local3.previousPhase == _local7) {
} else {
_local3.previousPhase = _local7;
var _local10 = (Math.PI - ROTATION_ANGLE) * _local7;
var _local5;
var _local4;
var _local13;
var _local12;
var _local11;
if (m_type == DIRECTION_VERTICAL) {
_local5 = Math.sin(_local10);
_local4 = Math.cos(_local10);
_local13 = getPointAfterRotate(-(m_plateHalfSize + ADDITIONAL_PLATE_SIZE), 0, _local5, _local4);
_local12 = getPointAfterRotate(m_plateHalfSize, 0, _local5, _local4);
_local11 = getPointAfterRotate(m_plateX3, m_plateZ3, _local5, _local4);
} else {
_local5 = Math.sin(-_local10);
_local4 = Math.cos(-_local10);
_local13 = getPointAfterRotate(m_plateHalfSize + ADDITIONAL_PLATE_SIZE, 0, _local5, _local4);
_local12 = getPointAfterRotate(-m_plateHalfSize, 0, _local5, _local4);
_local11 = getPointAfterRotate(m_plateY3, m_plateZ3, _local5, _local4);
}
var _local8 = (BRIGHTNESS_AMP * Math.max(0, _local4)) + MIN_BRIGHTNESS;
_local3.oldSprite.transform.colorTransform = new flash.geom.ColorTransform(_local8, _local8, _local8, 1, 0, 0, 0, 0);
var _local6 = (BRIGHTNESS_AMP * Math.max(0, Math.cos((1 - _local7) * (Math.PI - ROTATION_ANGLE)))) + MIN_BRIGHTNESS;
_local3.newSprite.transform.colorTransform = new flash.geom.ColorTransform(_local6, _local6, _local6, 1, 0, 0, 0, 0);
renderPlate(_local7, _local3, _local13, _local12, _local11);
var _local14 = (m_plates.length - 1) - _local9;
if (_local14 != _local9) {
_local3 = m_plates[_local14];
_local3.oldSprite.transform.colorTransform = new flash.geom.ColorTransform(_local8, _local8, _local8, 1, 0, 0, 0, 0);
_local3.newSprite.transform.colorTransform = new flash.geom.ColorTransform(_local6, _local6, _local6, 1, 0, 0, 0, 0);
renderPlate(_local7, _local3, _local13, _local12, _local11);
}
}
_local9++;
}
_local15.endDraw();
_local15.render();
}
function renderPlate(phase, plate, p1, p2, p3) {
if (m_type == DIRECTION_VERTICAL) {
renderVerticalPlate(phase, plate, p1, p2, p3);
} else {
renderHorizontalPlate(phase, plate, p1, p2, p3);
}
}
function renderHorizontalPlate(phase, plate, p1, p2, p3) {
var _local4 = 1 - plate.textureEnd;
var _local5 = 1 - plate.textureStart;
plate.oldSprite.clear();
__get__renderer().__set__renderTarget(plate.oldSprite);
__get__renderer().bindTexture(m_oldSlideTexture);
__get__renderer().resetPrimitiveGroup();
__get__renderer().setTextureCoord0(0, _local4);
__get__renderer().addVertex3(-m_plateHalfLength, p1.x, p1.y);
__get__renderer().setTextureCoord0(1, _local4);
__get__renderer().addVertex3(m_plateHalfLength, p1.x, p1.y);
__get__renderer().setTextureCoord0(0, _local5);
__get__renderer().addVertex3(-m_plateHalfLength, p2.x, p2.y);
__get__renderer().setTextureCoord0(1, _local5);
__get__renderer().addVertex3(m_plateHalfLength, p2.x, p2.y);
plate.newSprite.clear();
__get__renderer().__set__renderTarget(plate.newSprite);
__get__renderer().bindTexture(m_newSlideTexture);
__get__renderer().resetPrimitiveGroup();
__get__renderer().setTextureCoord0(0, _local4);
__get__renderer().addVertex3(-m_plateHalfLength, p2.x, p2.y);
__get__renderer().setTextureCoord0(1, _local4);
__get__renderer().addVertex3(m_plateHalfLength, p2.x, p2.y);
__get__renderer().setTextureCoord0(0, _local5);
__get__renderer().addVertex3(-m_plateHalfLength, p3.x, p3.y);
__get__renderer().setTextureCoord0(1, _local5);
__get__renderer().addVertex3(m_plateHalfLength, p3.x, p3.y);
}
function renderVerticalPlate(phase, plate, p1, p2, p3) {
var _local4 = plate.textureStart;
var _local5 = plate.textureEnd;
plate.oldSprite.clear();
__get__renderer().__set__renderTarget(plate.oldSprite);
__get__renderer().bindTexture(m_oldSlideTexture);
__get__renderer().resetPrimitiveGroup();
__get__renderer().setTextureCoord0(_local4, 0);
__get__renderer().addVertex3(p1.x, m_plateHalfLength, p1.y);
__get__renderer().setTextureCoord0(_local5, 0);
__get__renderer().addVertex3(p2.x, m_plateHalfLength, p2.y);
__get__renderer().setTextureCoord0(_local4, 1);
__get__renderer().addVertex3(p1.x, -m_plateHalfLength, p1.y);
__get__renderer().setTextureCoord0(_local5, 1);
__get__renderer().addVertex3(p2.x, -m_plateHalfLength, p2.y);
plate.newSprite.clear();
__get__renderer().__set__renderTarget(plate.newSprite);
__get__renderer().bindTexture(m_newSlideTexture);
__get__renderer().resetPrimitiveGroup();
__get__renderer().setTextureCoord0(_local4, 0);
__get__renderer().addVertex3(p2.x, m_plateHalfLength, p2.y);
__get__renderer().setTextureCoord0(_local5, 0);
__get__renderer().addVertex3(p3.x, m_plateHalfLength, p3.y);
__get__renderer().setTextureCoord0(_local4, 1);
__get__renderer().addVertex3(p2.x, -m_plateHalfLength, p2.y);
__get__renderer().setTextureCoord0(_local5, 1);
__get__renderer().addVertex3(p3.x, -m_plateHalfLength, p3.y);
}
function getPointAfterRotate(x, y, sa, ca) {
var _local2 = new flash.geom.Point(0, m_cameraOffset);
x = x + _local2.x;
y = y + _local2.y;
var _local4 = (x * ca) - (y * sa);
var _local3 = (x * sa) + (y * ca);
return(new flash.geom.Point(_local4 - _local2.x, _local3 - _local2.y));
}
function initTileAnimationParameters(inverted) {
var _local7 = ((m_type == DIRECTION_VERTICAL) ? (NUM_VERTICAL_PLATES) : (NUM_HORIZONTAL_PLATES));
if (m_type == DIRECTION_VERTICAL) {
m_plateSize = __get__slideWidth() / _local7;
m_plateLength = slideHeight;
} else {
m_plateSize = __get__slideHeight() / _local7;
m_plateLength = slideWidth;
}
m_plateHalfSize = m_plateSize / 2;
m_plateHalfLength = m_plateLength / 2;
m_cameraOffset = Math.tan(ROTATION_ANGLE / 2) * m_plateHalfSize;
m_plateX3 = m_plateHalfSize - (Math.cos(ROTATION_ANGLE) * (m_plateSize + ADDITIONAL_PLATE_SIZE));
m_plateY3 = (Math.cos(ROTATION_ANGLE) * m_plateSize) - m_plateHalfSize;
m_plateZ3 = (-(m_plateSize + ADDITIONAL_PLATE_SIZE)) * Math.sin(ROTATION_ANGLE);
m_plates = new Array();
var _local9 = (1 - ROTATE_PHASE_DURATION) / (Math.ceil(_local7 / 2) - 1);
var _local3 = 0;
while (_local3 < _local7) {
var _local6 = 1 / _local7;
var _local2 = {previousPhase:undefined};
_local2.textureStart = _local6 * _local3;
_local2.textureEnd = _local2.textureStart + _local6;
_local2.startTime = Math.floor(Math.abs(_local3 - ((_local7 - 1) / 2))) * _local9;
var _local5 = __get__renderMC().getNextHighestDepth();
_local2.oldSprite = __get__renderMC().createEmptyMovieClip(("s" + _local5) + "old", _local5);
var _local4 = __get__renderMC().getNextHighestDepth();
_local2.newSprite = __get__renderMC().createEmptyMovieClip(("s" + _local4) + "new", _local4);
if (m_type == DIRECTION_VERTICAL) {
_local2.oldSprite._x = (((-__get__slideWidth()) / 2) + (m_plateSize / 2)) + (m_plateSize * _local3);
_local2.newSprite._x = _local2.oldSprite._x;
} else {
_local2.oldSprite._y = ((__get__slideHeight() / 2) - (m_plateSize / 2)) - (m_plateSize * _local3);
_local2.newSprite._y = _local2.oldSprite._y;
}
m_plates.push(_local2);
if (inverted) {
_local2.startTime = (1 - ROTATE_PHASE_DURATION) - _local2.startTime;
}
_local3++;
}
}
static var DIRECTION_VERTICAL = 0;
static var DIRECTION_HORIZONTAL = 1;
static var NUM_VERTICAL_PLATES = 18;
static var NUM_HORIZONTAL_PLATES = 14;
static var ROTATE_PHASE_DURATION = 0.5;
var m_oldSlideTexture = 0;
var m_newSlideTexture = 1;
static var ROTATION_ANGLE = 1.0471975511966;
static var MIN_BRIGHTNESS = 0.2;
static var BRIGHTNESS_AMP = 1 - MIN_BRIGHTNESS;
static var ADDITIONAL_PLATE_SIZE = 0.5;
}
Symbol 430 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionStrips] Frame 0
class fsplayer.core.playback.transitions.CTransitionStrips extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_newSlide, m_environment, m_type, applyEffect, m_maskShift, m_mask;
function CTransitionStrips (parameters, type) {
super(parameters);
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
m_type = type;
applyEffect(0);
}
function applyEffectImpl(phase) {
m_mask._x = m_maskShift * (1 - phase);
}
function initialize() {
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
var _local11 = Math.round(Math.sqrt((_local3 * _local3) + (_local4 * _local4)) / m_squareDivisor);
var _local7 = Math.ceil(_local4 / _local11);
var _local12 = _local4 / _local3;
var _local9 = 1 / _local7;
var _local8 = _local9 * _local12;
var _local5;
var _local2;
var _local6;
m_maskShift = (1 + ((_local7 - 1) * _local8)) * _local3;
m_mask = m_newSlide.getPrimaryMask();
m_mask.beginFill(0, 100);
switch (m_type) {
case DIRECTION_LEFT_DOWN :
_local5 = -((_local7 - 1) * _local8);
_local2 = 0;
m_mask.moveTo(_local3, 0);
var _local10 = 0;
while (_local10 < _local7) {
m_mask.lineTo(_local5 * _local3, _local2 * _local4);
_local2 = _local2 + _local9;
m_mask.lineTo(_local5 * _local3, _local2 * _local4);
_local5 = _local5 + _local8;
_local10++;
}
m_mask.lineTo(_local3, _local4);
break;
case DIRECTION_LEFT_UP :
_local5 = 0;
_local2 = 0;
m_mask.moveTo(_local3, 0);
_local10 = 0;
while (_local10 < _local7) {
m_mask.lineTo(_local5 * _local3, _local2 * _local4);
_local2 = _local2 + _local9;
m_mask.lineTo(_local5 * _local3, _local2 * _local4);
_local5 = _local5 - _local8;
_local10++;
}
m_mask.lineTo(_local3, _local4);
break;
case DIRECTION_RIGHT_DOWN :
m_maskShift = m_maskShift * -1;
_local6 = 1 + ((_local7 - 1) * _local8);
_local2 = 0;
m_mask.moveTo(0, 0);
_local10 = 0;
while (_local10 < _local7) {
m_mask.lineTo(_local6 * _local3, _local2 * _local4);
_local2 = _local2 + _local9;
m_mask.lineTo(_local6 * _local3, _local2 * _local4);
_local6 = _local6 - _local8;
_local10++;
}
m_mask.lineTo(0, _local4);
break;
case DIRECTION_RIGHT_UP :
m_maskShift = m_maskShift * -1;
_local6 = 1;
_local2 = 0;
m_mask.moveTo(0, 0);
_local10 = 0;
while (_local10 < _local7) {
m_mask.lineTo(_local6 * _local3, _local2 * _local4);
_local2 = _local2 + _local9;
m_mask.lineTo(_local6 * _local3, _local2 * _local4);
_local6 = _local6 + _local8;
_local10++;
}
m_mask.lineTo(0, _local4);
}
m_mask.endFill();
}
static var DIRECTION_LEFT_DOWN = 0;
static var DIRECTION_LEFT_UP = 1;
static var DIRECTION_RIGHT_DOWN = 2;
static var DIRECTION_RIGHT_UP = 3;
static var m_squareDivisor = 21;
}
Symbol 431 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionRandomBars] Frame 0
class fsplayer.core.playback.transitions.CTransitionRandomBars extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var __set__invertible, __get__inverted, m_newSlide, m_environment, m_type, applyEffect, m_mask, m_numOfBars, m_lastNumOfOpenedBars, m_rndGen, m_randomBarSize;
function CTransitionRandomBars (parameters, type) {
super(parameters);
__set__invertible(false);
if (__get__inverted()) {
m_newSlide = parameters.getOldSlide();
} else {
m_newSlide = parameters.getNewSlide();
}
m_environment = parameters.getEnvironment();
m_type = type;
applyEffect(0);
}
function applyEffectImpl(phase) {
m_mask = m_newSlide.getPrimaryMask();
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
var _local6 = Math.floor(m_numOfBars * phase);
var _local5;
var _local2 = m_lastNumOfOpenedBars;
while (_local2 < _local6) {
_local5 = m_rndGen.GetRandom(_local2);
if (m_type == DIRECTION_HORIZONTAL) {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, (_local5 * m_randomBarSize) * _local4, _local3, m_randomBarSize * _local4);
} else {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, (_local5 * m_randomBarSize) * _local3, 0, m_randomBarSize * _local3, _local4);
}
_local2++;
}
m_newSlide.bringToFront();
m_lastNumOfOpenedBars = _local6;
}
function initialize() {
var _local2 = m_environment.getSlideWidth();
var _local3 = m_environment.getSlideHeight();
var _local4;
switch (m_type) {
case DIRECTION_HORIZONTAL :
_local4 = (((_local3 / MIN_BAR_SIZE) < MAX_BARS_NUM) ? (MIN_BAR_SIZE) : (Math.ceil(_local3 / MAX_BARS_NUM)));
m_numOfBars = Math.ceil(_local3 / _local4);
m_randomBarSize = 1 / m_numOfBars;
break;
case DIRECTION_VERTICAL :
_local4 = (((_local2 / MIN_BAR_SIZE) < MAX_BARS_NUM) ? (MIN_BAR_SIZE) : (Math.ceil(_local2 / MAX_BARS_NUM)));
m_numOfBars = Math.ceil(_local2 / _local4);
m_randomBarSize = 1 / m_numOfBars;
}
m_rndGen = new fsplayer.core.playback.transitions.util.CRandomGenerator(m_numOfBars);
m_lastNumOfOpenedBars = 0;
}
static var DIRECTION_VERTICAL = 0;
static var DIRECTION_HORIZONTAL = 1;
static var MAX_BARS_NUM = 200;
static var MIN_BAR_SIZE = 3;
}
Symbol 432 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionDissolve] Frame 0
class fsplayer.core.playback.transitions.CTransitionDissolve extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var __set__invertible, m_environment, __get__inverted, m_newSlide, m_mask, m_numOfSquares, m_lastNumOfOpenedSquares, m_rndGen, m_rowLength, m_sizeX, m_sizeY;
function CTransitionDissolve (parameters) {
super(parameters);
__set__invertible(false);
m_environment = parameters.getEnvironment();
if (__get__inverted()) {
m_newSlide = parameters.getOldSlide();
} else {
m_newSlide = parameters.getNewSlide();
}
m_newSlide.bringToFront();
m_mask = m_newSlide.getPrimaryMask();
InitParams();
}
function applyEffectImpl(phase) {
var _local6 = Math.floor(m_numOfSquares * phase);
var _local3;
var _local5;
var _local4;
var _local2 = m_lastNumOfOpenedSquares;
while (_local2 < _local6) {
_local3 = m_rndGen.GetRandom(_local2);
_local4 = _local3 % m_rowLength;
_local5 = Math.round((_local3 - _local4) / m_rowLength);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, _local4 * m_sizeX, _local5 * m_sizeY, m_sizeX, m_sizeY);
_local2++;
}
m_lastNumOfOpenedSquares = _local6;
}
function InitParams() {
var _local2 = m_environment.getSlideWidth();
var _local3 = m_environment.getSlideHeight();
var _local5 = Math.ceil(Math.sqrt((_local2 * _local3) / MAX_SQUARE_NUM));
m_rowLength = Math.ceil(_local2 / _local5);
var _local4 = Math.ceil(_local3 / _local5);
m_sizeX = _local2 / m_rowLength;
m_sizeY = _local3 / _local4;
m_numOfSquares = m_rowLength * _local4;
m_rndGen = new fsplayer.core.playback.transitions.util.CRandomGenerator(m_numOfSquares);
m_lastNumOfOpenedSquares = 0;
}
static var MAX_SQUARE_NUM = 1000;
}
Symbol 433 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionNewsflash] Frame 0
class fsplayer.core.playback.transitions.CTransitionNewsflash extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_slide2, m_rotatingMc, m_bmp, __get__slideWidth, __get__slideHeight;
function CTransitionNewsflash (parameters) {
super(parameters);
var _local4 = parameters.getNewSlide();
_local4.bringToFront();
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
m_slide2._visible = false;
}
function initialize() {
super.initialize();
m_rotatingMc = m_slide2._parent.createEmptyMovieClip("rotatingMc", m_slide2._parent.getNextHighestDepth());
m_bmp = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 0);
}
function applyEffectImpl(phase) {
m_bmp.draw(m_slide2);
m_rotatingMc.beginBitmapFill(m_bmp);
m_rotatingMc.moveTo(0, 0);
m_rotatingMc.lineTo(__get__slideWidth(), 0);
m_rotatingMc.lineTo(__get__slideWidth(), __get__slideHeight());
m_rotatingMc.lineTo(0, __get__slideHeight());
m_rotatingMc.endFill();
var _local3 = -6.28318530717959 * phase;
var _local5 = (__get__slideWidth() * phase) * 0.5;
var _local4 = (__get__slideHeight() * phase) * 0.5;
m_rotatingMc._xscale = 100 * phase;
m_rotatingMc._yscale = 100 * phase;
m_rotatingMc._rotation = -360 * phase;
var _local7 = (__get__slideWidth() * 0.5) - ((_local5 * Math.cos(_local3)) - (_local4 * Math.sin(_local3)));
m_rotatingMc._x = _local7;
var _local6 = (__get__slideHeight() * 0.5) - ((_local5 * Math.sin(_local3)) + (_local4 * Math.cos(_local3)));
m_rotatingMc._y = _local6;
}
function cleanup() {
super.cleanup();
m_rotatingMc.removeMovieClip();
m_slide2._visible = true;
}
}
Symbol 434 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionCheckerboard] Frame 0
class fsplayer.core.playback.transitions.CTransitionCheckerboard extends fsplayer.core.playback.transitions.CTransitionEffectBase3D
{
var m_type, m_newSlideMC, inverted, __get__hasOldSlide, m_oldSlideMc, __get__inverted, __get__slideWidth, __get__slideHeight, __get__renderer, resetMatrix, __get__maxSlideSize, m_tiles, __get__renderMC;
function CTransitionCheckerboard (parameters, type) {
super(parameters);
m_type = type;
initTileAnimationParameters();
m_newSlideMC = parameters.getNewSlide().getPrimaryMovie();
m_newSlideMC._visible = inverted;
if (__get__hasOldSlide()) {
m_oldSlideMc = parameters.getOldSlide().getPrimaryMovie();
m_oldSlideMc._visible = !__get__inverted();
}
}
function initialize() {
var _local2 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), false, 4278190080);
var _local3 = new flash.display.BitmapData(__get__slideWidth(), __get__slideHeight(), true);
_local3.draw(m_newSlideMC);
m_newSlideMC._visible = false;
if (__get__hasOldSlide()) {
_local2.draw(m_oldSlideMc);
m_oldSlideMc._visible = false;
}
__get__renderer().bindTexture(m_oldSlideTexture);
__get__renderer().textureImage2D(_local2, false);
__get__renderer().bindTexture(m_newSlideTexture);
__get__renderer().textureImage2D(_local3, false);
}
function applyEffectImpl(phase) {
var _local6 = 1 / NUM_COLUMNS;
var _local8 = 1 / NUM_ROWS;
var _local36 = __get__slideWidth() / NUM_COLUMNS;
var _local38 = __get__slideHeight() / NUM_ROWS;
var _local32 = _local36 * 0.5;
var _local28 = _local38 * 0.5;
var _local5 = 0;
var _local27 = (__get__slideHeight() * 0.5) - _local28;
super.render();
var _local3 = __get__renderer();
_local3.__set__maxPerspectiveLevel(0);
resetMatrix(__get__maxSlideSize());
_local3.beginDraw(ispringsolutions.gl.Renderer.PRIMITIVE_TRIANGLE_STRIP);
var _local34 = 0;
while (_local34 < NUM_ROWS) {
var _local4 = 0;
var _local11 = ((-__get__slideWidth()) * 0.5) + _local32;
var _local23 = 0;
while (_local23 < NUM_COLUMNS) {
var _local9 = m_tiles[_local34][_local23];
var _local33 = _local9.startTime;
var _local7 = Math.PI * Math.min(1, Math.max(0, (phase - _local33) / ROTATE_PHASE_DURATION));
if (_local7 == _local9.previousPhase) {
} else {
_local9.previousPhase = _local7;
var _local21 = _local9.target;
_local21.clear();
_local3.__set__renderTarget(_local21);
var _local22 = (BRIGHTNESS_AMP * Math.abs(Math.cos(_local7))) + MIN_BRIGHTNESS;
_local21.transform.colorTransform = new flash.geom.ColorTransform(_local22, _local22, _local22, 1, 0, 0, 0, 0);
var _local20;
var _local18;
var _local15;
var _local19;
var _local16;
var _local12;
var _local17;
var _local13;
var _local25;
var _local14;
var _local26;
var _local24;
var _local35 = Math.sin(_local7);
var _local31 = Math.cos(_local7);
var _local10 = _local35 * _local28;
if (m_type == DIRECTION_DOWN) {
var _local29 = _local31 * _local28;
_local17 = _local11 - _local32;
_local20 = _local17;
_local14 = _local11 + _local32;
_local19 = _local14;
_local16 = _local27 + _local29;
_local18 = _local16;
_local26 = _local27 - _local29;
_local13 = _local26;
_local12 = _local10;
_local15 = _local12;
_local24 = -_local10;
_local25 = _local24;
} else {
var _local30 = _local31 * _local32;
_local16 = _local27 + _local28;
_local18 = _local16;
_local26 = _local27 - _local28;
_local13 = _local26;
_local17 = _local11 - _local30;
_local20 = _local17;
_local14 = _local11 + _local30;
_local19 = _local14;
_local25 = _local10;
_local15 = _local25;
_local24 = -_local10;
_local12 = _local24;
}
_local3.bindTexture(m_oldSlideTexture);
_local3.resetPrimitiveGroup();
_local3.setTextureCoord0(_local4, _local5);
_local3.addVertex3(_local20, _local18, _local15);
_local3.setTextureCoord0(_local4 + _local6, _local5);
_local3.addVertex3(_local19, _local16, _local12);
_local3.setTextureCoord0(_local4, _local5 + _local8);
_local3.addVertex3(_local17, _local13, _local25);
_local3.setTextureCoord0(_local4 + _local6, _local5 + _local8);
_local3.addVertex3(_local14, _local26, _local24);
_local3.bindTexture(m_newSlideTexture);
_local3.resetPrimitiveGroup();
if (m_type == DIRECTION_DOWN) {
_local3.setTextureCoord0(_local4 + _local6, _local5 + _local8);
} else {
_local3.setTextureCoord0(_local4, _local5);
}
_local3.addVertex3(_local19, _local16, _local12);
if (m_type == DIRECTION_DOWN) {
_local3.setTextureCoord0(_local4, _local5 + _local8);
} else {
_local3.setTextureCoord0(_local4 + _local6, _local5);
}
_local3.addVertex3(_local20, _local18, _local15);
if (m_type == DIRECTION_DOWN) {
_local3.setTextureCoord0(_local4 + _local6, _local5);
} else {
_local3.setTextureCoord0(_local4, _local5 + _local8);
}
_local3.addVertex3(_local14, _local26, _local24);
if (m_type == DIRECTION_DOWN) {
_local3.setTextureCoord0(_local4, _local5);
} else {
_local3.setTextureCoord0(_local4 + _local6, _local5 + _local8);
}
_local3.addVertex3(_local17, _local13, _local25);
}
_local23++;
_local4 = _local4 + _local6;
_local11 = _local11 + _local36;
}
_local34++;
_local5 = _local5 + _local8;
_local27 = _local27 - _local38;
}
_local3.endDraw();
_local3.render();
}
function initTileAnimationParameters() {
var _local16 = (1 - ROTATE_PHASE_DURATION) - DELAY_DISPERSION;
var _local15 = ((m_type == DIRECTION_DOWN) ? (_local16 / (NUM_ROWS - 1)) : 0);
var _local14 = ((m_type == DIRECTION_ACROSS) ? (_local16 / (NUM_COLUMNS - 1)) : 0);
var _local10 = __get__renderMC();
m_tiles = new Array();
var _local9 = 0;
var _local8 = 1;
var _local6 = 0;
while (_local6 < NUM_ROWS) {
var _local7 = new Array();
var _local2 = 0;
while (_local2 < NUM_COLUMNS) {
var _local13 = ((_local6 * _local15) + (_local2 * _local14)) + (Math.random() * DELAY_DISPERSION);
_local9 = Math.max(_local13, _local9);
_local8 = Math.min(_local13, _local8);
var _local3 = _local10.getNextHighestDepth();
var _local4 = _local10.createEmptyMovieClip("s" + _local3, _local3);
var _local5 = {startTime:_local13, target:_local4, previousPhase:undefined};
_local7.push(_local5);
_local2++;
}
m_tiles.push(_local7);
_local6++;
}
initTileStartTime(_local8, _local9);
}
function initTileStartTime(minStartTime, maxStartTime) {
var _local5 = (1 - ROTATE_PHASE_DURATION) / (maxStartTime - minStartTime);
var _local4 = 0;
while (_local4 < NUM_ROWS) {
var _local3 = m_tiles[_local4];
var _local2 = 0;
while (_local2 < NUM_COLUMNS) {
_local3[_local2].startTime = (_local3[_local2].startTime - minStartTime) * _local5;
_local2++;
}
_local4++;
}
}
static var DIRECTION_ACROSS = 0;
static var DIRECTION_DOWN = 1;
static var NUM_ROWS = 5;
static var NUM_COLUMNS = 7;
static var ROTATE_PHASE_DURATION = 0.3;
static var DELAY_DISPERSION = 0.15;
var m_oldSlideTexture = 0;
var m_newSlideTexture = 1;
static var MIN_BRIGHTNESS = 0.3;
static var BRIGHTNESS_AMP = 0.7;
}
Symbol 435 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionComb] Frame 0
class fsplayer.core.playback.transitions.CTransitionComb extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_newSlide, m_oldSlide, m_type, applyEffect, __get__slideHeight, m_duplicate1, m_duplicate2, __get__slideWidth, m_slide2Mask, m_dup2Mask, m_slide1Mask, m_dup1Mask;
function CTransitionComb (parameters, type) {
super(parameters);
m_newSlide = parameters.getNewSlide();
m_oldSlide = parameters.getOldSlide();
m_type = type;
CreateMask();
applyEffect(0);
}
function applyEffectImpl(phase) {
var _local7 = m_newSlide.getPrimaryMovie();
var _local2 = ((m_oldSlide != undefined) ? (m_oldSlide.getPrimaryMovie()) : undefined);
if (m_type == DIRECTION_VERTICAL) {
var _local4 = __get__slideHeight() * phase;
var _local3 = __get__slideHeight() * (1 - phase);
if (_local2 != undefined) {
_local2._y = -_local4;
m_duplicate1._y = _local4;
}
_local7._y = _local3;
m_duplicate2._y = -_local3;
} else {
var _local6 = __get__slideWidth() * phase;
var _local5 = __get__slideWidth() * (1 - phase);
if (_local2 != undefined) {
_local2._x = -_local6;
m_duplicate1._x = _local6;
}
_local7._x = _local5;
m_duplicate2._x = -_local5;
}
}
function CreateMask() {
var _local6 = __get__slideWidth() / m_numOfStrips;
var _local5 = __get__slideHeight() / m_numOfStrips;
var _local7 = m_newSlide.getPrimaryMovie();
m_duplicate2 = m_newSlide.getSecondaryMovie();
m_slide2Mask = m_newSlide.getPrimaryMask();
m_dup2Mask = m_newSlide.getSecondaryMask();
if (m_oldSlide != undefined) {
var _local8 = m_oldSlide.getPrimaryMovie();
m_duplicate1 = m_oldSlide.getSecondaryMovie();
m_slide1Mask = m_oldSlide.getPrimaryMask();
m_dup1Mask = m_oldSlide.getSecondaryMask();
}
var _local4 = new Array(4);
_local4[0] = m_slide1Mask;
_local4[1] = m_dup1Mask;
_local4[2] = m_slide2Mask;
_local4[3] = m_dup2Mask;
var _local3 = 0;
while (_local3 < 4) {
if (_local4[_local3] != undefined) {
var _local2 = _local3 % 2;
while (_local2 < m_numOfStrips) {
if (m_type == DIRECTION_VERTICAL) {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(_local4[_local3], _local2 * _local6, 0, _local6, __get__slideHeight());
} else {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(_local4[_local3], 0, _local2 * _local5, __get__slideWidth(), _local5);
}
_local2 = _local2 + 2;
}
}
_local3++;
}
}
static var DIRECTION_VERTICAL = 0;
static var DIRECTION_HORIZONTAL = 1;
static var m_numOfStrips = 20;
}
Symbol 436 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionWarp] Frame 0
class fsplayer.core.playback.transitions.CTransitionWarp extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
var m_type, m_slide1, m_slide2, __get__inverted, applyEffect, __get__slideWidth, __get__slideHeight;
function CTransitionWarp (parameters, type) {
super(parameters);
m_type = type;
m_slide1 = parameters.getOldSlide().getPrimaryMovie();
m_slide2 = parameters.getNewSlide().getPrimaryMovie();
if (__get__inverted() && (type == DIRECTION_IN)) {
parameters.getOldSlide().bringToFront();
}
applyEffect(0);
}
function applyEffectImpl(phase) {
if (m_type == DIRECTION_IN) {
var _local6 = 0;
if (phase < 0.6) {
_local6 = 100 * Math.pow((0.6 - phase) / 0.6, 2);
var _local3 = phase / 0.6;
var _local5 = 1 + ((2 * _local3) * _local3);
if (_local3 > 0.66) {
_local5 = _local5 + (20 * Math.pow((_local3 - 0.66) / 0.34, 3));
}
scaleSlide(m_slide1, _local5);
}
m_slide1._alpha = _local6;
var _local4 = 0.4 + ((0.6 * phase) * phase);
scaleSlide(m_slide2, _local4);
} else {
if (phase < 0.6) {
var _local6 = 100 * Math.pow((0.6 - phase) / 0.6, 2);
m_slide1._alpha = _local6;
}
var _local5 = 0.4 + (0.6 * Math.pow(1 - phase, 2));
scaleSlide(m_slide1, _local5);
if (phase < 0.4) {
m_slide2._visible = false;
} else {
m_slide2._visible = true;
var _local3 = (1 - phase) / 0.6;
var _local4 = 1 + ((2 * _local3) * _local3);
if (_local3 > 0.66) {
_local4 = _local4 + (20 * Math.pow((_local3 - 0.66) / 0.34, 3));
}
scaleSlide(m_slide2, _local4);
}
}
}
function scaleSlide(slide, scale) {
slide._xscale = scale * 100;
slide._yscale = scale * 100;
slide._x = (__get__slideWidth() * (1 - scale)) * 0.5;
slide._y = (__get__slideHeight() * (1 - scale)) * 0.5;
}
static var DIRECTION_IN = 0;
static var DIRECTION_OUT = 1;
}
Symbol 437 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionNoTransition] Frame 0
class fsplayer.core.playback.transitions.CTransitionNoTransition extends fsplayer.core.playback.transitions.CTransitionEffectBase
{
function CTransitionNoTransition () {
super();
}
function applyEffectImpl(phase) {
}
}
Symbol 438 MovieClip [__Packages.fsplayer.core.playback.sounds.ITransitionSoundPlaybackCore] Frame 0
interface fsplayer.core.playback.sounds.ITransitionSoundPlaybackCore extends fsplayer.core.playback.sounds.ISoundPlaybackCore
{
}
Symbol 439 MovieClip [__Packages.fsplayer.res.sounds.ITransitionSoundEx] Frame 0
interface fsplayer.res.sounds.ITransitionSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 440 MovieClip [__Packages.fsplayer.core.loading.IPresentationBgSoundLoadingListenerEx] Frame 0
interface fsplayer.core.loading.IPresentationBgSoundLoadingListenerEx
{
}
Symbol 441 MovieClip [__Packages.fsplayer.res.sounds.IPresentationBackgroundSoundEx] Frame 0
interface fsplayer.res.sounds.IPresentationBackgroundSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 442 MovieClip [__Packages.fsplayer.core.playback.sounds.CMediaPlaybackControllerEx] Frame 0
class fsplayer.core.playback.sounds.CMediaPlaybackControllerEx implements fsplayer.core.playback.sounds.IMediaPlaybackControllerEx, fsplayer.core.playback.sounds.ITransitionSoundPlaybackCore, fsplayer.core.playback.sounds.IEventSoundPlaybackCore, fsplayer.core.loading.IPresentationBgSoundLoadingListenerEx
{
var m_presentation, m_playbackController, m_slides, m_soundAssets, m_activeSounds, m_transitionSounds, m_eventSounds, m_backgroundSounds, m_listeners, m_tweaks, m_bgSound, m_transitionSound, m_previousSlideIndex, m_lastEffectSound;
function CMediaPlaybackControllerEx (presentation, playbackController, bgAudioLoadingController) {
m_presentation = presentation;
m_playbackController = playbackController;
m_slides = presentation.getSlides();
m_soundAssets = presentation.getSoundAssets();
m_activeSounds = new Object();
var _local2 = m_slides.getCount();
m_transitionSounds = new Array(_local2);
m_eventSounds = new Array(_local2);
m_backgroundSounds = new Array(_local2);
var _local4 = new fsplayer.res.sounds.CPresentationBackgroundSoundEx(bgAudioLoadingController, presentation);
_local4.load(this);
m_listeners = new Array();
m_tweaks = {blinkSounds:true};
}
function onPresentationBgSoundLoadInit(backgroundSound) {
m_bgSound = backgroundSound;
registerSound(m_bgSound);
if (m_playing) {
m_bgSound.start();
}
}
function getPresentation() {
return(m_presentation);
}
function resyncOnPlay() {
m_resyncOnPlay = true;
}
function getTransitionSound(slideIndex) {
var _local2 = m_transitionSounds[slideIndex];
if (_local2 == undefined) {
var _local3 = m_slides.getSlide(slideIndex).getTransition();
if (_local3.hasSound()) {
_local2 = new fsplayer.res.sounds.CTransitionSoundEx(_local3.getSound(), slideIndex, _local3.soundIsLooped(), this);
} else {
_local2 = null;
}
m_transitionSounds[slideIndex] = _local2;
}
return(((_local2 != null) ? (_local2) : undefined));
}
function getEventSounds(slideIndex) {
var _local2 = m_eventSounds[slideIndex];
if (!_local2) {
var _local4 = m_slides.getSlide(slideIndex).getSoundCommands();
_local2 = _local4.getSlideEventSounds(this);
m_eventSounds[slideIndex] = _local2;
}
return(_local2);
}
function getSlideBackgroundSound(slideIndex) {
var _local2 = m_backgroundSounds[slideIndex];
if (_local2 == undefined) {
var _local4 = m_slides.getSlide(slideIndex);
if (_local4.hasBackgroundSound()) {
var _local5 = _local4.getBackgroundSound();
_local2 = new fsplayer.res.sounds.CSlideBackgroundSoundEx(_local5, slideIndex, this);
} else {
_local2 = null;
}
m_backgroundSounds[slideIndex] = _local2;
}
return(((_local2 != null) ? (_local2) : undefined));
}
function onStartSlideSwitching(slideIndex, autoStart) {
var _local7 = getTransitionSound(slideIndex);
if (_local7) {
startTransitionSound(_local7);
}
var _local8 = getEventSounds(slideIndex);
_local8.register();
var _local6 = getSlideBackgroundSound(slideIndex);
if (_local6) {
registerSound(_local6);
}
if (m_resyncOnSlideStart) {
resync(m_fullResyncMode, autoStart);
}
for (var _local5 in m_activeSounds) {
var _local2 = m_activeSounds[_local5];
_local2.onStartSlideSwitching(slideIndex, autoStart);
}
}
function onPositionChanged(slideIndex, stepIndex, time) {
if (!m_needResync) {
for (var _local6 in m_activeSounds) {
var _local2 = m_activeSounds[_local6];
_local2.onPositionChanged(slideIndex, stepIndex, time);
}
getSlideVideoController(slideIndex).onPositionChanged(stepIndex, time);
}
}
function blink() {
pause();
var _local2 = new Sound();
_local2.stop();
play();
}
function startTransitionSound(sound) {
stopCurrentTransitionSound();
m_transitionSound = sound;
registerSound(sound);
sound.start();
}
function stopCurrentTransitionSound() {
if (m_transitionSound) {
unregisterSound(m_transitionSound);
m_transitionSound.stop();
m_transitionSound = undefined;
}
}
function registerSound(sound) {
m_activeSounds[sound.getId()] = sound;
}
function unregisterSound(sound) {
m_activeSounds[sound.getId()] = undefined;
}
function onSeek() {
pause();
m_needResync = true;
m_fullResyncMode = true;
}
function onEndSeek() {
if (m_needResync) {
resync(m_fullResyncMode);
}
}
function needResync(fullResync) {
m_needResync = true;
m_fullResyncMode = fullResync;
m_resyncOnSlideStart = true;
}
function resync(fullResyncMode, startSound) {
m_needResync = false;
m_resyncOnSlideStart = false;
m_resyncOnPlay = false;
var _local5 = m_playbackController.getCurrentSlideIndex();
var _local4 = m_playbackController.getCurrentStepIndex();
var _local3 = m_playbackController.getCurrentSlidePlaybackPosition() * m_playbackController.getCurrentSlideDuration();
for (var _local7 in m_activeSounds) {
var _local2 = m_activeSounds[_local7];
_local2.resync(_local5, _local4, _local3, startSound, fullResyncMode);
}
getSlideVideoController(m_playbackController.getCurrentSlideIndex()).resync(_local4, _local3);
}
function onStartSlidePlayback(slideIndex) {
if (m_previousSlideIndex != undefined) {
var _local6 = m_slides.getSlide(slideIndex).hasEmbeddedFlashClips();
var _local5 = m_slides.getSlide(m_previousSlideIndex);
if (((!_local6) && (_local5.hasEmbeddedFlashClips())) && (m_tweaks.blinkSounds)) {
blink();
}
setVolume(m_volume);
}
m_previousSlideIndex = slideIndex;
for (var _local4 in m_activeSounds) {
var _local2 = m_activeSounds[_local4];
_local2.onStartSlidePlayback(slideIndex);
}
}
function play() {
m_playing = true;
if (m_resyncOnPlay) {
var _local4 = (m_needResync ? (m_fullResyncMode) : false);
resync(_local4);
} else {
for (var _local3 in m_activeSounds) {
var _local2 = m_activeSounds[_local3];
_local2.play();
}
}
getSlideVideoController(m_playbackController.getCurrentSlideIndex()).play();
}
function pause() {
m_playing = false;
for (var _local3 in m_activeSounds) {
var _local2 = m_activeSounds[_local3];
_local2.pause();
}
getSlideVideoController(m_playbackController.getCurrentSlideIndex()).pause();
}
function getVolume() {
return(m_volume);
}
function setVolume(volume) {
m_volume = volume;
m_soundAssets.setVolume(volume);
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
_local3.onSoundVolumeChanged(this);
_local2++;
}
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function tweak(parameterName, parameterValue) {
m_tweaks[parameterName] = parameterValue;
}
function getTweakableParameter(parameterName) {
return(m_tweaks[parameterName]);
}
function getTransitionPhase() {
return(m_playbackController.getTransitionPhase());
}
function getSlideVideoController(slideIndex) {
var _local2 = m_slides.getSlide(slideIndex).getPlaybackController().getVideoPlaybackController();
return(_local2);
}
function startNewEffectSound(effectSnd) {
if (m_lastEffectSound != undefined) {
m_lastEffectSound.stop();
}
m_lastEffectSound = effectSnd;
}
function onDeactivateCurrentSlide() {
if (m_previousSlideIndex != undefined) {
var _local2 = m_slides.getSlide(m_previousSlideIndex);
if (_local2.hasEmbeddedFlashClips() && (m_tweaks.blinkSounds)) {
blink();
}
}
}
function onGotoLastStepEnd() {
var _local4 = m_playbackController.getCurrentSlideIndex();
var _local5 = m_playbackController.getCurrentStepIndex() + 1;
var _local3 = m_playbackController.getCurrentSlidePlaybackPosition() * m_playbackController.getCurrentSlideDuration();
for (var _local6 in m_activeSounds) {
var _local2 = m_activeSounds[_local6];
_local2.resync(_local4, _local5, _local3, true, false);
}
}
function processTriggerCommand(mediaItemId, cmdType, params) {
if ((mediaItemId == "") && (cmdType == "stop")) {
if (params && (params.effect == "1")) {
if (m_lastEffectSound != undefined) {
m_lastEffectSound.stop();
}
} else {
for (var _local4 in m_activeSounds) {
var _local2 = m_activeSounds[_local4];
_local2.onTriggerEffectStopAllSounds();
}
}
return(undefined);
}
var _local5 = m_playbackController.getCurrentSlideIndex();
var _local10 = m_slides.getSlide(_local5).getSlideSounds();
var _local6 = _local10.getSound(mediaItemId);
if (_local6 != undefined) {
var _local3 = m_activeSounds[mediaItemId];
if (_local3 == undefined) {
_local3 = new fsplayer.res.sounds.CSlideEventSoundEx(_local6, _local5, new Array(), this);
registerSound(_local3);
}
_local3.processTriggerEvent(cmdType, params);
} else {
getSlideVideoController(_local5).processTriggerCommand(mediaItemId, cmdType, params);
}
}
function registerMediaBookmark(slideIndex, mediaItemId, bmkIndex, handlerFunc) {
var _local6 = m_slides.getSlide(slideIndex).getSlideSounds();
var _local3 = _local6.getSound(mediaItemId);
if (_local3 != undefined) {
var _local2 = m_activeSounds[mediaItemId];
if (_local2 == undefined) {
_local2 = new fsplayer.res.sounds.CSlideEventSoundEx(_local3, slideIndex, new Array(), this);
registerSound(_local2);
}
_local2.registerBookmarkHandler(bmkIndex, handlerFunc);
} else {
getSlideVideoController(slideIndex).registerBookmarkHandler(mediaItemId, bmkIndex, handlerFunc);
}
}
function onStartBuffering() {
for (var _local3 in m_activeSounds) {
var _local2 = m_activeSounds[_local3];
_local2.onStartBuffering();
}
}
function onEndBuffering() {
for (var _local3 in m_activeSounds) {
var _local2 = m_activeSounds[_local3];
_local2.onEndBuffering();
}
}
var m_volume = 1;
var m_fullResyncMode = true;
var m_needResync = false;
var m_resyncOnSlideStart = false;
var m_resyncOnPlay = false;
var m_playing = false;
}
Symbol 443 MovieClip [__Packages.fsplayer.res.sounds.CPresentationBackgroundSoundEx] Frame 0
class fsplayer.res.sounds.CPresentationBackgroundSoundEx implements fsplayer.res.sounds.IPresentationBackgroundSoundEx, fsplayer.res.sounds.ISoundAssetLoadingListener, fsplayer.res.sounds.ISoundInstanceListener
{
var m_loadingController, m_soundAssetId, m_looping, m_position, m_soundInstance, m_listener;
function CPresentationBackgroundSoundEx (loadingController, presentation) {
m_loadingController = loadingController;
var _local2 = presentation.getBackgroundSoundNode();
m_soundAssetId = _local2.attributes.soundAssetId;
var _local3 = _local2.attributes.looping;
m_looping = _local3 == "1";
}
function onStartSlideSwitching(slideIndex, playSound) {
if (playSound == false) {
pause();
}
}
function onPositionChanged(slideIndex, stepIndex, time) {
}
function onStartSlidePlayback(slideIndex) {
}
function getId() {
return(m_bgSoundName);
}
function pause() {
m_position = m_soundInstance.getPosition();
m_soundInstance.stop();
}
function play() {
if (!m_soundInstance.isPlaying()) {
m_soundInstance.start(m_position);
}
}
function resync(slideIndex, stepIndex, time, playSound, fullResync) {
if (playSound != false) {
play();
}
}
function start() {
m_soundInstance.start();
}
function load(listener) {
m_listener = listener;
m_loadingController.setListener(this);
m_loadingController.loadBgSoundAsset(m_soundAssetId);
}
function onSoundAssetLoadInit(soundAsset) {
m_soundInstance = soundAsset.createInstance(m_assetName);
m_soundInstance.setListener(this);
}
function onSoundAssetLoadProgress(soundAsset, bytesLoaded, bytesTotal) {
}
function onSoundInstanceInit(instance) {
m_soundInstance.setVolume(0.5);
m_listener.onPresentationBgSoundLoadInit(this);
}
function onSoundInstanceComplete(instance) {
if (m_looping) {
start();
}
}
function onStartBuffering() {
}
function onEndBuffering() {
}
function onTriggerEffectStopAllSounds() {
}
static var m_bgSoundName = "presentationBackgroundSound";
static var m_assetName = "presentationBackgroundSoundAsset";
}
Symbol 444 MovieClip [__Packages.fsplayer.res.sounds.CTransitionSoundEx] Frame 0
class fsplayer.res.sounds.CTransitionSoundEx extends fsplayer.res.sounds.CSoundExImpl implements fsplayer.res.sounds.ITransitionSoundEx
{
var m_slideIndex, m_looped, m_soundCore, m_presentation, m_slides, start, getDuration, startFrom, pauseAt, stop;
function CTransitionSoundEx (sound, slideIndex, looped, soundCore) {
super(sound, soundCore);
m_slideIndex = slideIndex;
m_looped = looped;
m_soundCore = soundCore;
m_presentation = soundCore.getPresentation();
m_slides = m_presentation.getSlides();
}
function slideIndexWasChanged(slideIndex, autoStartSound) {
if ((slideIndex == m_slideIndex) && (autoStartSound)) {
m_soundCore.startTransitionSound(this);
}
}
function onSlideSoundComplete(slideSound) {
if (m_looped) {
start();
}
}
function resync(slideIndex, stepIndex, time, playSound, fullResync) {
if (slideIndex >= m_slideIndex) {
var _local4 = (m_soundCore.getTransitionPhase() * m_slides.getSlide(slideIndex).getTransition().getDuration()) + time;
var _local2 = m_slideIndex;
while (_local2 < slideIndex) {
var _local3 = m_slides.getSlide(_local2);
_local4 = _local4 + (_local3.getTransition().getDuration() + _local3.getDuration());
_local2++;
}
var _local6 = getDuration();
if (_local4 < _local6) {
if (playSound || (playSound == undefined)) {
startFrom(_local4);
} else {
pauseAt(_local4);
}
} else if (m_looped) {
_local4 = _local4 - (_local6 * Math.floor(_local4 / _local6));
if (playSound || (playSound == undefined)) {
startFrom(_local4);
} else {
pauseAt(_local4);
}
} else {
stop();
}
}
}
}
Symbol 445 MovieClip [__Packages.fsplayer.res.sounds.ISlideBackgroundSoundEx] Frame 0
interface fsplayer.res.sounds.ISlideBackgroundSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 446 MovieClip [__Packages.fsplayer.res.sounds.CSlideBackgroundSoundEx] Frame 0
class fsplayer.res.sounds.CSlideBackgroundSoundEx extends fsplayer.res.sounds.CSoundExImpl implements fsplayer.res.sounds.ISlideBackgroundSoundEx
{
var m_slideIndex, unregister, startFrom, pauseAt, start;
function CSlideBackgroundSoundEx (slideSound, slideIndex, soundCore) {
super(slideSound, soundCore);
m_slideIndex = slideIndex;
}
function isSoundPlayingOnSlide(slideIndex) {
return(slideIndex == m_slideIndex);
}
function deactivateSound() {
unregister();
}
function resync(slideIndex, stepIndex, time, playSound, fullResync) {
if (playSound || (playSound == undefined)) {
startFrom(time);
} else {
pauseAt(time);
}
}
function onStartSlidePlayback(slideIndex) {
}
function slideIndexWasChanged(slideIndex, autoStartSound) {
if (autoStartSound && (slideIndex == m_slideIndex)) {
start();
}
}
}
Symbol 447 MovieClip [__Packages.fsplayer.api.impl.CPresentationInfo] Frame 0
class fsplayer.api.impl.CPresentationInfo implements fsplayer.api.IPresentationInfo, fsplayer.api.ISlideListener
{
var m_presentation, m_listeners, m_title, m_frameRate, m_uid, m_presentersCollection, m_webObjects, m_slidesCollection, m_thumbnailsCollection, m_companyInfo, m_references, m_narrationInfo;
function CPresentationInfo (presentation, presentationNode, thumbnailAssetLoadingController) {
m_presentation = presentation;
m_listeners = new Array();
m_title = presentationNode.attributes.title;
m_frameRate = parseInt(presentationNode.attributes.frameRate);
m_uid = presentationNode.attributes.uid;
m_presentationType = presentationNode.attributes.type;
if ((m_presentationType != fsplayer.api.PresentationType.COMPOUND) && (m_presentationType != fsplayer.api.PresentationType.SOLID)) {
m_presentationType = undefined;
}
var _local7 = presentationNode.attributes.hasExternalAudio;
m_hasExternalAudio = (_local7 == "1") || (_local7 == "true");
var _local13 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "presenter");
var _local9 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "slides");
var _local8 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "company");
var _local5 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "references");
m_presentersCollection = new fsplayer.api.impl.CPresentersCollection(presentationNode);
m_webObjects = new fsplayer.api.impl.CWebObjectsCollection();
m_slidesCollection = new fsplayer.api.impl.CSlidesCollection(presentation.getSlides(), _local9);
m_slidesCollection.setWebObjectsCollection(m_webObjects);
var _local4 = m_slidesCollection.getSlidesCount();
var _local2 = 0;
while (_local2 < _local4) {
m_slidesCollection.getSlideInfo(_local2).addListener(this);
_local2++;
}
m_thumbnailsCollection = new fsplayer.api.impl.CThumbnailsCollection(presentationNode, thumbnailAssetLoadingController);
if (_local8) {
m_companyInfo = new fsplayer.api.impl.CCompanyInfo(_local8);
}
if (_local5) {
m_references = new fsplayer.api.impl.CReferencesCollection(_local5);
}
var _local6 = m_presentation.getNarration();
var _local11 = _local6.getVideoTracks().getCount() > 0;
var _local10 = _local6.getAudioTracks().getCount() > 0;
m_narrationInfo = new fsplayer.api.impl.CNarrationInfo(_local11, _local10);
}
function getWebObjects() {
return(m_webObjects);
}
function getTitle() {
return(m_title);
}
function getSlideWidth() {
return(m_presentation.getSlideWidth());
}
function getSlideHeight() {
return(m_presentation.getSlideHeight());
}
function getSlides() {
return(m_slidesCollection);
}
function hasThumbnails() {
return(m_thumbnailsCollection.hasThumbnails());
}
function getThumbnails() {
return(m_thumbnailsCollection);
}
function getDuration(withTransitions) {
return(m_presentation.getDuration(withTransitions));
}
function hasPresenter() {
return(m_presentersCollection.getCount() > 0);
}
function getPresenterInfo() {
if (hasPresenter()) {
return(m_presentersCollection.getPresenter(0));
}
}
function getPresenters() {
return(m_presentersCollection);
}
function getNarration() {
return(m_narrationInfo);
}
function getFrameRate() {
return(m_frameRate);
}
function hasCompanyInfo() {
return((m_companyInfo ? true : false));
}
function getCompanyInfo() {
return(m_companyInfo);
}
function hasReferences() {
return(Boolean(m_references));
}
function getReferences() {
return(m_references);
}
function getVisibleDuration(withTransitions) {
return(m_presentation.getVisibleDuration(withTransitions));
}
function getUniqueId() {
return(m_uid);
}
function getBytesLoaded() {
m_bytesLoaded = 0;
var _local3 = m_slidesCollection.getSlidesCount();
var _local2 = 0;
while (_local2 < _local3) {
m_bytesLoaded = m_bytesLoaded + m_slidesCollection.getSlideInfo(_local2).getBytesLoaded();
_local2++;
}
return(m_bytesLoaded);
}
function getBytesTotal() {
m_bytesTotal = 0;
var _local3 = m_slidesCollection.getSlidesCount();
var _local2 = 0;
while (_local2 < _local3) {
m_bytesTotal = m_bytesTotal + m_slidesCollection.getSlideInfo(_local2).getBytesTotal();
_local2++;
}
return(m_bytesTotal);
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function getPresentationType() {
return(m_presentationType);
}
function hasExternalAudio() {
return(m_hasExternalAudio);
}
function isLooped() {
return(m_presentation.isLooped());
}
function onUpdateSlideLoadingProgress(slide, bytesLoaded, bytesTotal) {
var _local4 = m_listeners.length;
if (_local4 > 0) {
var _local6 = getBytesLoaded();
var _local5 = getBytesTotal();
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_listeners[_local2];
_local3.onUpdatePresentationLoadingProgress(this, _local6, _local5);
_local2++;
}
}
}
function onFinishSlideLoading(slide) {
}
var m_presentationType = undefined;
var m_hasExternalAudio = false;
var m_bytesLoaded = 0;
var m_bytesTotal = 0;
}
Symbol 448 MovieClip [__Packages.fsplayer.api.impl.CSlidesCollection] Frame 0
class fsplayer.api.impl.CSlidesCollection implements fsplayer.api.ISlidesCollection
{
var m_slides, m_slidesNode, m_slideInfos, m_webObjects;
function CSlidesCollection (slides, slidesNode) {
m_slides = slides;
m_slidesNode = slidesNode;
m_slideInfos = new Array();
}
function setWebObjectsCollection(webObjects) {
m_webObjects = webObjects;
}
function getSlidesCount() {
return(m_slides.getCount());
}
function getSlideInfo(slideIndex) {
if ((slideIndex < 0) || (slideIndex >= m_slides.getCount())) {
return(undefined);
}
if (m_slideInfos[slideIndex] == undefined) {
var _local3 = new fsplayer.api.impl.CSlideInfo(m_slides.getSlide(slideIndex), m_slidesNode.childNodes[slideIndex]);
_local3.updateWebObjectsCollection(m_webObjects);
m_slideInfos[slideIndex] = _local3;
}
return(m_slideInfos[slideIndex]);
}
function getVisibleSlidesCount() {
return(m_slides.getVisibleCount());
}
function getVisibleSlide(visibleSlideIndex) {
if ((visibleSlideIndex < 0) || (visibleSlideIndex >= getVisibleSlidesCount())) {
return(undefined);
}
return(getSlideInfo(m_slides.getVisibleSlide(visibleSlideIndex).getIndex()));
}
}
Symbol 449 MovieClip [__Packages.fsplayer.api.impl.CSlideInfo] Frame 0
class fsplayer.api.impl.CSlideInfo implements fsplayer.api.ISlideInfo, fsplayer.core.loading.ISlideLoadingListener
{
var m_slide, m_listeners, m_title, m_presenterIndex, m_slideResources, m_webObjects;
function CSlideInfo (slide, slideNode) {
m_slide = slide;
m_slide.addListener(this);
m_listeners = new Array();
m_bytesTotal = Number(slideNode.attributes.size);
m_title = slideNode.attributes.title;
var _local8 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "notes");
if (slideNode.attributes.titleNormalized) {
m_titleNormalized = slideNode.attributes.titleNormalized;
}
if (_local8) {
m_notesText = fsplayer.util.CXMLUtils.getInnerText(_local8);
m_notesTextNormalized = m_notesText.toLowerCase();
}
var _local7 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "text");
if (_local7) {
m_slideText = fsplayer.util.CXMLUtils.getInnerText(_local7);
}
var _local5 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "notesNormalized");
if (_local5) {
m_notesTextNormalized = fsplayer.util.CXMLUtils.getInnerText(_local5);
}
var _local3 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "notesHtml");
if (_local3) {
m_notesHtml = fsplayer.util.CXMLUtils.getInnerText(_local3);
}
var _local6 = slideNode.attributes.presenterIndex;
if (_local6 != undefined) {
m_presenterIndex = parseInt(_local6);
} else {
m_presenterIndex = undefined;
}
m_slideResources = new fsplayer.api.impl.CSlideResources(m_slide);
if (slideNode.attributes.advanceOnClick) {
if (parseInt(slideNode.attributes.advanceOnClick) == 1) {
m_manualAdvance = true;
}
}
var _local4 = new fsplayer.api.impl.CSlideWebObjectsCollection(this);
m_webObjects = _local4;
var _local9 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "webObjects");
if (_local9) {
_local4.parseWebObjectNode(_local9);
}
}
function updateWebObjectsCollection(global) {
var _local4 = m_webObjects.getWebObjectsCount();
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_webObjects.getWebObject(_local2);
global.pushWebObject(_local3);
_local2++;
}
}
function getWebObjects() {
return(m_webObjects);
}
function getTitle() {
return(m_title);
}
function isLoaded() {
return(m_slide.isLoaded());
}
function getNotesText() {
return(m_notesText);
}
function getDuration(withTransition) {
return(m_slide.getDuration(withTransition));
}
function getTransitionDuration() {
return(m_slide.getTransitionDuration());
}
function getStartTime(withTransition) {
return(m_slide.getStartTime(withTransition));
}
function getEndTime(withTransition) {
return(m_slide.getEndTime(withTransition));
}
function getStartStepIndex() {
return(m_slide.getStartStepIndex());
}
function getEndStepIndex() {
return(m_slide.getEndStepIndex());
}
function getAnimationSteps() {
return(m_slide.getAnimationSteps());
}
function getSlideText() {
return(m_slideText);
}
function getNotesTextNormalized() {
return(m_notesTextNormalized);
}
function getTitleNormalized() {
return(m_titleNormalized);
}
function getLevel() {
return(m_slide.getLevel());
}
function isHidden() {
return(m_slide.isHidden());
}
function getIndex() {
return(m_slide.getIndex());
}
function getVisibleIndex() {
return(m_slide.getVisibleIndex());
}
function getVisibleStartTime(withTransition) {
return(m_slide.getVisibleStartTime(withTransition));
}
function getVisibleEndTime(withTransition) {
return(m_slide.getVisibleEndTime(withTransition));
}
function getVisibleStartStepIndex() {
return(m_slide.getVisibleStartStepIndex());
}
function getVisibleEndStepIndex() {
return(m_slide.getVisibleEndStepIndex());
}
function getPresenterIndex() {
return(m_presenterIndex);
}
function getResources() {
return(m_slideResources);
}
function getNotesHtml() {
return(m_notesHtml);
}
function getAutoChange() {
return(m_slide.getTransition().getAutoChange());
}
function getBytesLoaded() {
return(m_slide.getBytesLoaded());
}
function getBytesTotal() {
return(m_slide.getBytesTotal());
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local2 = 0;
while (_local2 < m_listeners.length) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function onSlideLoadInit(slide) {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
_local3.onFinishSlideLoading(this);
_local2++;
}
}
function onSlideLoadProgress(slide, bytesLoaded, bytesTotal) {
m_bytesLoaded = bytesLoaded;
m_bytesTotal = bytesTotal;
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
_local3.onUpdateSlideLoadingProgress(this, bytesLoaded, bytesTotal);
_local2++;
}
}
function getManualAdvance() {
return(m_manualAdvance);
}
var m_notesText = "";
var m_slideText = "";
var m_notesTextNormalized = "";
var m_titleNormalized = "";
var m_notesHtml = "";
var m_bytesLoaded = 0;
var m_bytesTotal = 0;
var m_manualAdvance = false;
}
Symbol 450 MovieClip [__Packages.fsplayer.api.impl.CSlideResources] Frame 0
class fsplayer.api.impl.CSlideResources implements fsplayer.api.ISlideResources
{
var m_slide;
function CSlideResources (slide) {
m_slide = slide;
}
function hasPresenterVideo() {
return(m_slide.hasPresenterVideo());
}
function getPresenterVideo() {
return(m_slide.getPresenterVideo());
}
}
Symbol 451 MovieClip [__Packages.fsplayer.api.impl.CSlideWebObjectsCollection] Frame 0
class fsplayer.api.impl.CSlideWebObjectsCollection implements fsplayer.api.IWebObjectsCollection
{
var m_webObjects, m_slideInfo;
function CSlideWebObjectsCollection (slideInfo) {
m_webObjects = new Array();
m_slideInfo = slideInfo;
}
function parseWebObjectNode(webObjectsNode) {
var _local4 = webObjectsNode.childNodes.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = new fsplayer.api.impl.CWebObject(m_slideInfo, webObjectsNode.childNodes[_local2]);
m_webObjects.push(_local3);
_local2++;
}
}
function getWebObjectsCount() {
return(m_webObjects.length);
}
function getWebObject(id) {
return(m_webObjects[id]);
}
function pushWebObject(webObject) {
m_webObjects.push(webObject);
}
function removeWebObject(index) {
throw new Error("not implemented!");
return(undefined);
}
}
Symbol 452 MovieClip [__Packages.fsplayer.api.impl.CWebObject] Frame 0
class fsplayer.api.impl.CWebObject implements fsplayer.api.IWebObject
{
var m_slideInfo;
function CWebObject (slideInfo, webObject) {
m_slideInfo = slideInfo;
m_id = webObject.attributes.id;
m_x = parseFloat(webObject.attributes.x);
m_y = parseFloat(webObject.attributes.y);
m_width = parseFloat(webObject.attributes.width);
m_height = parseFloat(webObject.attributes.height);
m_timeOffset = parseFloat(webObject.attributes.timeOffset);
if (m_timeOffset >= m_slideInfo.getDuration()) {
m_timeOffset = 0;
}
m_newWindow = "0" != webObject.attributes.showInNewWindow;
m_fullscreen = "1" == webObject.attributes.fullScreen;
var _local3 = cpslabs.utils.CXMLUtils.findFirstChildNode(webObject, "url");
if (_local3) {
m_url = cpslabs.utils.CXMLUtils.getInnerText(_local3);
}
}
function x() {
return(m_x);
}
function y() {
return(m_y);
}
function width() {
return(m_width);
}
function height() {
return(m_height);
}
function getId() {
return(m_id);
}
function getUrl() {
return(m_url);
}
function getTimeOffset() {
return(m_timeOffset);
}
function showInNewWindow() {
return(m_newWindow);
}
function getSlideInfo() {
return(m_slideInfo);
}
function fullscreen() {
return(m_fullscreen);
}
var m_id = "";
var m_x = 0;
var m_y = 0;
var m_width = 0;
var m_height = 0;
var m_timeOffset = 0;
var m_url = "";
var m_newWindow = false;
var m_fullscreen = false;
}
Symbol 453 MovieClip [__Packages.fsplayer.api.impl.CThumbnailsCollection] Frame 0
class fsplayer.api.impl.CThumbnailsCollection implements fsplayer.api.IThumbnailsCollection
{
var m_thumbWidth, m_thumbHeight, m_slidesNode, m_loadingController, m_thumbnails, m_thumbsCount;
function CThumbnailsCollection (presentationNode, thumbnailAssetLoadingController) {
m_thumbWidth = parseInt(presentationNode.attributes.thmbWidth);
m_thumbHeight = parseInt(presentationNode.attributes.thmbHeight);
m_slidesNode = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "slides");
m_loadingController = thumbnailAssetLoadingController;
var _local2 = m_slidesNode.firstChild.attributes.thumbnailSrc;
if ((_local2 != undefined) && (_local2 != "")) {
m_thumbnails = new Array();
m_thumbsCount = m_slidesNode.childNodes.length;
}
}
function getThumbnailWidth() {
return(m_thumbWidth);
}
function getThumbnailHeight() {
return(m_thumbHeight);
}
function getThumbnailsCount() {
return(m_thumbsCount);
}
function getThumbnail(slideIndex) {
var _local2;
if ((hasThumbnails() && (slideIndex >= 0)) && (slideIndex < m_thumbsCount)) {
_local2 = m_thumbnails[slideIndex];
if (_local2 == undefined) {
_local2 = new fsplayer.api.impl.CSlideThumbnail(m_slidesNode.childNodes[slideIndex], m_loadingController);
m_thumbnails[slideIndex] = _local2;
}
}
return(_local2);
}
function hasThumbnails() {
return(m_thumbnails != undefined);
}
}
Symbol 454 MovieClip [__Packages.fsplayer.api.impl.CSlideThumbnail] Frame 0
class fsplayer.api.impl.CSlideThumbnail implements fsplayer.api.ISlideThumbnail, fsplayer.res.images.IImageAssetLoadingListener
{
var m_loadingController, m_source, m_slideIndex, m_listener;
function CSlideThumbnail (slideNode, loadingController) {
m_loadingController = loadingController;
m_source = slideNode.attributes.thumbnailSrc;
m_slideIndex = parseInt(slideNode.attributes.index);
}
function load(target, listener) {
m_listener = listener;
m_loadingController.loadThumbnailAsset(m_slideIndex, target, m_source, this);
}
function getSlideIndex() {
return(m_slideIndex);
}
function onImageAssetLoadInit(imgAsset) {
imgAsset.createInstance("thumb");
m_listener.onSlideThumbnailLoadInit(this);
}
}
Symbol 455 MovieClip [__Packages.fsplayer.api.impl.CPresentersCollection] Frame 0
class fsplayer.api.impl.CPresentersCollection implements fsplayer.api.IPresentersCollection
{
var m_presenters;
function CPresentersCollection (presentationNode) {
m_presenters = new Array();
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "presenters");
if (_local2 == undefined) {
var _local4 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "presenter");
if (_local4 != undefined) {
addPresenter(_local4, 0);
}
} else {
parsePresenters(_local2);
}
var _local3 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "slides");
if (_local3 != undefined) {
prepareSlidesNode(_local3);
}
}
function getCount() {
return(m_presenters.length);
}
function getPresenter(index) {
if ((index >= 0) && (index < m_presenters.length)) {
return(m_presenters[index]);
}
return(undefined);
}
function parsePresenters(presentersNode) {
var _local2 = 0;
while (_local2 < presentersNode.childNodes.length) {
var _local3 = presentersNode.childNodes[_local2];
if (_local3.nodeName == "presenter") {
addPresenter(_local3, _local2);
}
_local2++;
}
}
function addPresenter(presenterNode, index) {
m_presenters.push(new fsplayer.api.impl.CPresenterInfo(presenterNode, index));
}
function prepareSlidesNode(slidesNode) {
if (getCount() == 0) {
var _local4 = 0;
while (_local4 < slidesNode.childNodes.length) {
slidesNode.childNodes[_local4].attributes.presenterIndex = undefined;
_local4++;
}
} else if (getCount() == 1) {
var _local4 = 0;
while (_local4 < slidesNode.childNodes.length) {
var _local3 = slidesNode.childNodes[_local4];
if (_local3.attributes.presenterIndex == "") {
_local3.attributes.presenterIndex = undefined;
} else {
_local3.attributes.presenterIndex = "0";
}
_local4++;
}
} else {
var _local4 = 0;
while (_local4 < slidesNode.childNodes.length) {
var _local3 = slidesNode.childNodes[_local4];
if (_local3.attributes.presenterIndex == undefined) {
_local3.attributes.presenterIndex = "0";
} else if (_local3.attributes.presenterIndex == "") {
_local3.attributes.presenterIndex = undefined;
}
_local4++;
}
}
}
}
Symbol 456 MovieClip [__Packages.fsplayer.api.impl.CPresenterInfo] Frame 0
class fsplayer.api.impl.CPresenterInfo implements fsplayer.api.IPresenterInfo
{
var m_photo, m_company, m_hasPresenter;
function CPresenterInfo (presenterNode, index) {
var _local7 = presenterNode.attributes;
m_name = presenterNode.attributes.name;
m_title = presenterNode.attributes.title;
m_email = presenterNode.attributes.email;
m_phone = presenterNode.attributes.phone;
m_webSite = presenterNode.attributes.web;
m_index = index;
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(presenterNode, "bio");
for (var _local4 in _local2.childNodes) {
if (_local2.childNodes[_local4].nodeType == 3) {
m_biography = _local2.childNodes[_local4].nodeValue.split("\r\n").join(newline);
break;
}
}
var _local5 = fsplayer.util.CXMLUtils.findFirstChildNode(presenterNode, "photo");
if ((_local5 && (_local5.attributes.src)) && (_local5.attributes.src != "")) {
m_photo = new fsplayer.api.impl.CPresenterPhoto(_local5);
}
var _local6 = fsplayer.util.CXMLUtils.findFirstChildNode(presenterNode, "company");
if (_local6) {
m_company = new fsplayer.api.impl.CCompanyInfo(_local6);
}
m_hasPresenter = ((((((Boolean(m_name) || (Boolean(m_title))) || (Boolean(m_email))) || (Boolean(m_webSite))) || (Boolean(m_webSite))) || (Boolean(m_biography))) || (Boolean(m_photo))) || (Boolean(m_company));
}
function getName() {
return((m_name ? (m_name) : ""));
}
function getTitle() {
return((m_title ? (m_title) : ""));
}
function getBiographyText() {
return((m_biography ? (m_biography) : ""));
}
function getEmail() {
return((m_email ? (m_email) : ""));
}
function getPhone() {
return((m_phone ? (m_phone) : ""));
}
function getWebSite() {
return((m_webSite ? (m_webSite) : ""));
}
function hasPhoto() {
return(m_photo != undefined);
}
function getPhoto() {
return(m_photo);
}
function hasPresenter() {
return(m_hasPresenter);
}
function getIndex() {
return(m_index);
}
function hasCompany() {
return(m_company != undefined);
}
function getCompany() {
return(m_company);
}
var m_name = "";
var m_title = "";
var m_biography = "";
var m_email = "";
var m_phone = "";
var m_webSite = "";
var m_index = undefined;
}
Symbol 457 MovieClip [__Packages.fsplayer.api.impl.CPresenterPhoto] Frame 0
class fsplayer.api.impl.CPresenterPhoto implements fsplayer.api.IPresenterPhoto
{
var m_source, m_loader;
function CPresenterPhoto (photoNode) {
m_source = photoNode.attributes.src;
var _local2 = ((photoNode.attributes.embedded == "1") ? (new fsplayer.res.assets.CInternalAssetLoader()) : (new fsplayer.res.assets.CExternalAssetLoader()));
m_loader = new fsplayer.res.images.CImageAssetLoader(_local2);
}
function load(target, listener) {
var _local2 = new Object();
_local2.listener = listener;
_local2.onImageAssetLoadInit = function (imgAsset) {
imgAsset.createInstance("photo");
this.listener.onPresenterPhotoLoadInit();
};
m_loader.loadImageAsset(target, m_source, _local2);
}
}
Symbol 458 MovieClip [__Packages.fsplayer.api.impl.CCompanyInfo] Frame 0
class fsplayer.api.impl.CCompanyInfo implements fsplayer.api.ICompanyInfo, fsplayer.api.ICompanyLogo
{
var m_source, m_logo, m_loader, m_logoHyperlinkURL, m_logoHyperlinkTarget;
function CCompanyInfo (companyNode) {
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(companyNode, "logo");
if (_local2) {
if (_local2.attributes.src && (_local2.attributes.src != "")) {
m_source = _local2.attributes.src;
}
m_logo = this;
var _local3 = ((_local2.attributes.embedded == "1") ? (new fsplayer.res.assets.CInternalAssetLoader()) : (new fsplayer.res.assets.CExternalAssetLoader()));
m_loader = new fsplayer.res.images.CImageAssetLoader(_local3);
m_logoHyperlinkURL = _local2.attributes.href;
m_logoHyperlinkTarget = _local2.attributes.target;
}
}
function hasLogo() {
return(m_source != undefined);
}
function getLogo() {
return(this);
}
function load(target, listener) {
var _local2 = new Object();
_local2.listener = listener;
_local2.onImageAssetLoadInit = function (imgAsset) {
imgAsset.createInstance("photo");
this.listener.onCompanyLogoLoadInit();
};
if (m_source != "") {
m_loader.loadImageAsset(target, m_source, _local2);
}
}
function getHyperlinkURL() {
return(m_logoHyperlinkURL);
}
function getHyperlinkTarget() {
return(m_logoHyperlinkTarget);
}
}
Symbol 459 MovieClip [__Packages.fsplayer.api.PresentationType] Frame 0
class fsplayer.api.PresentationType
{
function PresentationType () {
}
static var SOLID = "solid";
static var COMPOUND = "compound";
}
Symbol 460 MovieClip [__Packages.fsplayer.api.impl.CWebObjectsCollection] Frame 0
class fsplayer.api.impl.CWebObjectsCollection implements fsplayer.api.IWebObjectsCollection
{
var m_webObjects;
function CWebObjectsCollection () {
m_webObjects = new Array();
}
function getWebObjectsCount() {
return(m_webObjects.length);
}
function getWebObject(id) {
return(m_webObjects[id]);
}
function pushWebObject(webObject) {
m_webObjects.push(webObject);
}
function removeWebObject(index) {
throw new Error("not implemented!");
return(undefined);
}
}
Symbol 461 MovieClip [__Packages.fsplayer.api.impl.CReferencesCollection] Frame 0
class fsplayer.api.impl.CReferencesCollection implements fsplayer.api.IReferencesCollection
{
var m_references;
function CReferencesCollection (referencesNode) {
m_references = new Array();
if (referencesNode.hasChildNodes()) {
var _local5 = referencesNode.childNodes;
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2];
var _local4 = new fsplayer.api.impl.CReferenceInfo(_local3);
m_references.push(_local4);
_local2++;
}
}
}
function getCount() {
return(m_references.length);
}
function getReference(index) {
return(m_references[index]);
}
}
Symbol 462 MovieClip [__Packages.fsplayer.api.impl.CReferenceInfo] Frame 0
class fsplayer.api.impl.CReferenceInfo implements fsplayer.api.IReferenceInfo
{
var m_title, m_url, m_target;
function CReferenceInfo (referenceNode) {
m_title = referenceNode.attributes.title;
m_url = referenceNode.attributes.url;
m_target = referenceNode.attributes.target;
if (!m_target) {
m_target = "_blank";
}
}
function getTitle() {
return(m_title);
}
function getURL() {
return(m_url);
}
function getTarget() {
return(m_target);
}
}
Symbol 463 MovieClip [__Packages.fsplayer.api.impl.CNarrationInfo] Frame 0
class fsplayer.api.impl.CNarrationInfo implements fsplayer.api.INarrationInfo
{
var m_hasVideoNarration, m_hasAudioNarration;
function CNarrationInfo (hasVideoNarration, hasAudioNarration) {
m_hasVideoNarration = hasVideoNarration;
m_hasAudioNarration = hasAudioNarration;
}
function hasVideoNarration() {
return(m_hasVideoNarration);
}
function hasAudioNarration() {
return(m_hasAudioNarration);
}
}
Symbol 464 MovieClip [__Packages.fsplayer.res.sounds.CSlideSoundsEx] Frame 0
class fsplayer.res.sounds.CSlideSoundsEx implements fsplayer.res.sounds.ISlideSoundsEx, fsplayer.res.sounds.ISlideSoundLoadingListenerEx
{
var m_sounds, m_soundsTotal, m_soundReferences, m_listener;
function CSlideSoundsEx (soundsNode, soundAssets) {
m_sounds = new Object();
var _local5 = soundsNode.childNodes.length;
m_soundsTotal = _local5;
m_soundReferences = new Array(_local5);
var _local2 = 0;
while (_local2 < _local5) {
var _local4 = soundsNode.childNodes[_local2];
var _local3 = new fsplayer.res.sounds.CSlideSoundEx(_local4, soundAssets);
m_sounds[_local3.getId()] = _local3;
m_soundReferences[_local2] = _local3;
_local2++;
}
}
function getSound(id) {
return(m_sounds[id]);
}
function setListener(listener) {
m_listener = listener;
}
function allSoundsWereLoaded() {
return(m_soundsLoaded == m_soundsTotal);
}
function load(listener) {
m_listener = listener;
var _local2 = 0;
while (_local2 < m_soundReferences.length) {
m_soundReferences[_local2].load(this);
_local2++;
}
}
function onSlideSoundLoadInit(slideSound) {
m_soundsLoaded++;
if (allSoundsWereLoaded() && (m_listener != undefined)) {
m_listener.onSlideSoundsLoadInit();
}
}
function onSlideSoundLoadProgress(slideSound, bytesLoaded, bytesTotal) {
if (m_listener != undefined) {
var _local4 = 0;
var _local5 = 0;
var _local2 = 0;
while (_local2 < m_soundsTotal) {
var _local3 = m_soundReferences[_local2];
_local4 = _local4 + _local3.getBytesLoaded();
_local5 = _local5 + _local3.getBytesTotal();
_local2++;
}
m_listener.onSlideSoundsLoadProgress(_local4, _local5);
}
}
function getBytesLoaded() {
var _local4 = 0;
var _local2 = 0;
while (_local2 < m_soundsTotal) {
var _local3 = m_soundReferences[_local2];
_local4 = _local4 + _local3.getBytesLoaded();
_local2++;
}
return(_local4);
}
function getBytesTotal() {
var _local4 = 0;
var _local2 = 0;
while (_local2 < m_soundsTotal) {
var _local3 = m_soundReferences[_local2];
_local4 = _local4 + _local3.getBytesTotal();
_local2++;
}
return(_local4);
}
var m_soundsLoaded = 0;
}
Symbol 465 MovieClip [__Packages.fsplayer.res.sounds.CSlideSoundEx] Frame 0
class fsplayer.res.sounds.CSlideSoundEx implements fsplayer.res.sounds.ISlideSoundEx, fsplayer.res.sounds.ISoundAssetLoadingListener, fsplayer.res.sounds.ISoundInstanceListener
{
var m_soundAssets, m_id, m_assetId, m_bookmarks, m_loadingListener, m_instance, m_listener, m_duration;
function CSlideSoundEx (soundNode, soundAssets) {
m_soundAssets = soundAssets;
m_id = soundNode.attributes.id;
m_assetId = soundNode.attributes.soundAssetId;
m_bytesTotal = soundAssets.getAssetSize(m_assetId);
if (soundNode.attributes.hasTriggerEffects) {
m_hasTriggerEffects = soundNode.attributes.hasTriggerEffects == "1";
}
if (soundNode.attributes.trimLeft) {
m_trimLeft = parseFloat(soundNode.attributes.trimLeft);
}
if (soundNode.attributes.trimRight) {
m_trimRight = parseFloat(soundNode.attributes.trimRight);
}
var _local2 = 0;
while (_local2 < soundNode.childNodes.length) {
var _local3 = soundNode.childNodes[_local2];
if (_local3.nodeName == "bookmarks") {
m_bookmarks = new fsplayer.res.CMediaBookmarks(_local3);
break;
}
_local2++;
}
}
function onSoundAssetLoadInit(soundAsset) {
var _local2 = soundAsset.createInstance(m_id);
_local2.setListener(this);
_local2.setTrim(m_trimLeft, m_trimRight);
}
function onSoundAssetLoadProgress(soundAsset, bytesLoaded, bytesTotal) {
m_bytesLoaded = bytesLoaded;
m_bytesTotal = bytesTotal;
m_loadingListener.onSlideSoundLoadProgress(this, bytesLoaded, bytesTotal);
}
function isPlaying() {
return(m_instance.isPlaying());
}
function getId() {
return(m_id);
}
function getPosition() {
return(m_instance.getPosition());
}
function setListener(listener) {
m_listener = listener;
}
function start(position, loops) {
m_instance.start(position, loops);
}
function stop(reset) {
m_instance.stop(reset);
}
function getSoundInstance() {
return(m_instance);
}
function onSoundInstanceInit(instance) {
m_instance = instance;
m_duration = m_instance.getDuration();
if (m_loadingListener) {
m_loadingListener.onSlideSoundLoadInit(this);
}
}
function onSoundInstanceComplete(instance) {
m_listener.onSlideSoundComplete(this);
}
function load(listener) {
m_loadingListener = listener;
if (!isLoaded()) {
m_soundAssets.loadAsset(m_assetId, this);
}
}
function isLoaded() {
return(m_instance != undefined);
}
function getDuration() {
return(m_duration);
}
function setVolume(volume) {
m_instance.setVolume(volume);
}
function hasTriggerEffects() {
return(m_hasTriggerEffects);
}
function getBookmarks() {
return(m_bookmarks);
}
function getBytesLoaded() {
return(m_bytesLoaded);
}
function getBytesTotal() {
return(m_bytesTotal);
}
var m_hasTriggerEffects = false;
var m_bytesLoaded = 0;
var m_bytesTotal = 0;
var m_trimLeft = 0;
var m_trimRight = 0;
}
Symbol 466 MovieClip [__Packages.fsplayer.res.video.CPresenterVideo] Frame 0
class fsplayer.res.video.CPresenterVideo implements fsplayer.res.video.IPresenterVideoEx
{
var m_src, m_embedded, m_width, m_height, m_frameRate, m_trimLeft, m_trimRight, m_volume;
function CPresenterVideo (src, embedded, width, height, frameRate, trimLeft, trimRight, volume) {
m_src = src;
m_embedded = embedded;
m_width = width;
m_height = height;
m_frameRate = frameRate;
m_trimLeft = trimLeft;
m_trimRight = trimRight;
m_volume = volume;
}
function getWidth() {
return(m_width);
}
function getHeight() {
return(m_height);
}
function createVideo(parent, name) {
var _local4 = parent.getNextHighestDepth();
if (name == undefined) {
name = "video";
}
if (m_embedded) {
var _local5 = parent.attachMovie(m_src, name, _local4);
var _local6 = new fsplayer.res.video.CInternalVideoClip(_local5, m_frameRate, m_trimLeft, m_trimRight, m_volume);
return(_local6);
}
var _local5 = parent.attachMovie("videoClip", name, _local4);
var _local2 = new fsplayer.res.video.CExternalVideoClip(_local5, "videoFrame", m_trimLeft, m_trimRight, m_volume);
_local2.__set__width(m_width);
_local2.__set__height(m_height);
_local2.load(m_src);
return(_local2);
}
function getSrc() {
return(m_src);
}
function getEmbedded() {
return(m_embedded);
}
function getTrimLeft() {
return(m_trimLeft);
}
function getTrimRight() {
return(m_trimRight);
}
function getVolume() {
return(m_volume);
}
}
Symbol 467 MovieClip [__Packages.fsplayer.res.video.CVideoClipExBase] Frame 0
class fsplayer.res.video.CVideoClipExBase implements fsplayer.res.video.IVideoClipEx
{
var m_target, m_listeners, m_onReleaseListener, m_onReleaseListenerHandler, m_skin;
function CVideoClipExBase (target) {
m_target = target;
m_listeners = new fsplayer.res.video.CVideoClipListeners(this);
}
function addListener(listener, listenerParameter) {
m_listeners.addListener(listener, listenerParameter);
}
function removeListener(listener, listenerParameter) {
m_listeners.removeListener(listener, listenerParameter);
}
function enablePlayback() {
m_playbackIsEnabled = true;
var thisPtr = this;
m_target.onRelease = function () {
thisPtr.onMouseClick();
};
}
function disablePlayback() {
m_playbackIsEnabled = false;
delete m_target.onRelease;
pause();
}
function onMouseClick() {
if (m_onReleaseListener) {
m_onReleaseListener.onRelease = m_onReleaseListenerHandler;
m_onReleaseListener.onRelease();
m_onReleaseListener.onRelease = undefined;
delete m_onReleaseListener.onRelease;
}
m_listeners.dispatchVideoMouseClick();
}
function getHasTriggerAnimation() {
return(m_hasTriggerAnimation);
}
function setHasTriggerAnimation(value) {
m_hasTriggerAnimation = value;
}
function setSkin(skin) {
m_skin = skin;
}
function getSkin() {
return(m_skin);
}
function getTargetMC() {
return(m_target);
}
function isReady() {
return(false);
}
function isLoaded() {
return(false);
}
function getDuration() {
return(0);
}
function getPosition() {
return(0);
}
function play(startTime) {
}
function pause(pauseTime) {
}
function seek(time) {
}
function isPlaying() {
return(false);
}
function isCompleted() {
return(false);
}
function getVolume() {
return(0);
}
function setVolume(volume) {
}
function close() {
}
function setOnReleaseListener(listener, handler) {
m_onReleaseListener = listener;
m_onReleaseListenerHandler = handler;
}
var m_playbackIsEnabled = true;
var m_hasTriggerAnimation = false;
}
Symbol 468 MovieClip [__Packages.fsplayer.res.video.CVideoClipListeners] Frame 0
class fsplayer.res.video.CVideoClipListeners
{
var m_listeners, m_videoClip;
function CVideoClipListeners (videoClip) {
m_listeners = new Array();
m_videoClip = videoClip;
}
function addListener(listener, listenerParameter) {
var _local2 = new Object();
_local2[LISTENER] = listener;
_local2[LISTENER_PARAMETER] = listenerParameter;
m_listeners.push(_local2);
}
function removeListener(listener, listenerParameter) {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
if ((_local3[LISTENER] === listener) && (_local3[LISTENER_PARAMETER] === listenerParameter)) {
m_listeners.splice(_local2, 1);
break;
}
_local2++;
}
}
function dispatchVideoMouseClick() {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
var _local4 = _local3[LISTENER];
if (_local4) {
_local4.onVideoClipMouseClick(m_videoClip, _local3[LISTENER_PARAMETER]);
}
_local2++;
}
}
function dispatchVideoClipPlaybackComplete() {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
var _local4 = _local3[LISTENER];
if (_local4) {
_local4.onVideoClipPlaybackComplete(m_videoClip, _local3[LISTENER_PARAMETER]);
}
_local2++;
}
}
function dispatchVideoClipPlaybackStart() {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
var _local4 = _local3[LISTENER];
if (_local4) {
_local4.onVideoClipPlaybackStart(m_videoClip, _local3[LISTENER_PARAMETER]);
}
_local2++;
}
}
function dispatchVideoClipLoadingProgress(progress) {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
var _local4 = _local3[LISTENER];
if (_local4) {
_local4.onVideoClipLoadingProgress(m_videoClip, progress, _local3[LISTENER_PARAMETER]);
}
_local2++;
}
}
function dispatchVideoClipReady() {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
var _local4 = _local3[LISTENER];
if (_local4) {
_local4.onVideoClipReady(m_videoClip, _local3[LISTENER_PARAMETER]);
}
_local2++;
}
}
function dispatchVideoClipLoadComplete() {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
var _local4 = _local3[LISTENER];
if (_local4) {
_local4.onVideoClipLoadComplete(m_videoClip, _local3[LISTENER_PARAMETER]);
}
_local2++;
}
}
function dispatchVideoClipBufferEmpty() {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
var _local4 = _local3[LISTENER];
if (_local4) {
_local4.onVideoClipBufferEmpty(m_videoClip, _local3[LISTENER_PARAMETER]);
}
_local2++;
}
}
function dispatchVideoClipBufferFull() {
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
var _local4 = _local3[LISTENER];
if (_local4) {
_local4.onVideoClipBufferFull(m_videoClip, _local3[LISTENER_PARAMETER]);
}
_local2++;
}
}
static var LISTENER = "LISTENER";
static var LISTENER_PARAMETER = "LISTENER_PARAMETER";
}
Symbol 469 MovieClip [__Packages.fsplayer.res.video.CInternalVideoClip] Frame 0
class fsplayer.res.video.CInternalVideoClip extends fsplayer.res.video.CVideoClipExBase
{
var m_trimLeft, m_trimRight, m_frameRate, m_framesCount, m_duration, m_target, m_listeners;
function CInternalVideoClip (target, frameRate, trimLeft, trimRight, volume) {
super(target);
m_trimLeft = ((trimLeft != undefined) ? (trimLeft) : 0);
m_trimRight = ((trimRight != undefined) ? (trimRight) : 0);
m_frameRate = frameRate;
m_framesCount = target._totalframes;
m_duration = ((m_framesCount / m_frameRate) - m_trimLeft) - m_trimRight;
if (m_trimRight != 0) {
m_framesCount = m_framesCount - Math.floor(m_trimRight * m_frameRate);
}
m_sound = new Sound(target);
if (volume == undefined) {
volume = 1;
}
setVolume(volume * 100);
seek(0);
pause();
var thisPtr = this;
target.onEnterFrame = function () {
thisPtr.onEnterFrame(this._currentframe - 1);
};
}
function isReady() {
return(true);
}
function isLoaded() {
return(true);
}
function isPlaying() {
return(m_playing);
}
function isCompleted() {
return(m_completed);
}
function play(startTime) {
if (m_playbackIsEnabled) {
if (startTime != undefined) {
seekInternal(startTime);
}
m_target.play();
m_playing = true;
onEnterFrame(m_target._currentframe - 1);
}
}
function pause(pauseTime) {
if (pauseTime != undefined) {
seekInternal(pauseTime);
}
m_target.stop();
m_playing = false;
}
function getDuration() {
return(m_duration);
}
function onEnterFrame(frameIndex) {
if (isPlaying() && (frameIndex >= (m_framesCount - 1))) {
pause();
m_completed = true;
m_listeners.dispatchVideoClipPlaybackComplete();
}
}
function seekInternal(time) {
var _local2 = Math.round((time + m_trimLeft) * m_frameRate);
if (_local2 >= (m_framesCount - 1)) {
_local2 = m_framesCount - 1;
}
m_target.gotoAndStop(_local2 + 1);
m_completed = _local2 == (m_framesCount - 1);
}
function getPosition() {
return(((m_target._currentframe - 1) / m_frameRate) - m_trimLeft);
}
function close() {
m_target.removeMovieClip();
}
function getVolume() {
return(m_sound.getVolume());
}
function setVolume(volume) {
m_sound.setVolume(volume);
}
function seek(time) {
seekInternal(time);
}
function get width() {
return(m_target._width);
}
function get height() {
return(m_target._height);
}
var m_playing = true;
var m_completed = false;
var m_playbackIsEnabled = true;
var m_sound = null;
}
Symbol 470 MovieClip [__Packages.fsplayer.res.video.CExternalVideoClip] Frame 0
class fsplayer.res.video.CExternalVideoClip extends fsplayer.res.video.CVideoClipExBase
{
static var m_netConnection;
var m_trimLeft, m_trimRight, m_videoPlayer, m_target, m_hideMc, m_listeners, m_initLoadingProgress, m_storedLoadingProgress, m_storedSeekTime, m_playbackIsEnabled, m_onReadySeekTime, m_keyFrames;
function CExternalVideoClip (target, videoName, trimLeft, trimRight, volume) {
super(target);
m_trimLeft = ((trimLeft != undefined) ? (trimLeft) : 0);
m_trimRight = ((trimRight != undefined) ? (trimRight) : 0);
if (m_trimRight != 0) {
var _local5 = target.createEmptyMovieClip("auxMc", target.getNextHighestDepth());
var thisPtr = this;
_local5.onEnterFrame = function () {
thisPtr.onEnterFrame();
};
}
m_videoPlayer = new cpslabs.ui.CVideoPlayer();
m_videoPlayer.attachVideo(target, videoName);
if (volume == undefined) {
volume = 1;
}
m_videoPlayer.__set__volume(volume * 100);
if (!m_netConnection) {
m_netConnection = new NetConnection();
}
m_videoPlayer.__set__netConnection(m_netConnection);
}
function set width(w) {
m_videoPlayer.__set__width(w);
//return(width);
}
function get width() {
return(m_videoPlayer.__get__width());
}
function set height(h) {
m_videoPlayer.__set__height(h);
//return(height);
}
function get height() {
return(m_videoPlayer.__get__height());
}
function load(url) {
url = fsplayer.util.CFileUtils.PathToAbsolutePath(url, m_target);
m_videoPlayer.addListener("playStart", this, onPlayStart);
m_videoPlayer.addListener("playStop", this, onPlayStop);
m_videoPlayer.addListener("progress", this, onLoadingProgress);
m_videoPlayer.addListener("ready", this, onLoadingComplete);
m_videoPlayer.addListener("bufferEmpty", this, onBufferEmpty);
m_videoPlayer.addListener("bufferFull", this, onBufferFull);
m_videoPlayer.addListener("metadataReceived", this, onMetadata);
m_videoPlayer.addListener("streamNotFound", this, onInvalidStream);
m_videoPlayer.__set__bufferTime(BUFFER_TIME);
m_videoPlayer.load(url);
m_videoPlayer.stop();
if (m_trimLeft != 0) {
m_hideMc = m_target.createEmptyMovieClip("hideMc", m_target.getNextHighestDepth());
var _local3 = (m_videoPlayer.__get__width() * 100) / m_target._xscale;
var _local2 = (m_videoPlayer.__get__height() * 100) / m_target._yscale;
m_hideMc.beginFill(0);
m_hideMc.moveTo(0, 0);
m_hideMc.lineTo(_local3, 0);
m_hideMc.lineTo(_local3, _local2);
m_hideMc.lineTo(0, _local2);
m_hideMc.endFill();
}
}
function isLoaded() {
return(m_loaded);
}
function isCompleted() {
return(m_isCompleted);
}
function onPlayStop() {
playbackCompleted();
}
function onPlayStart() {
m_listeners.dispatchVideoClipPlaybackStart();
}
function onLoadingProgress(p, progress) {
if ((m_hideMc && (m_ready)) && (progress >= m_initLoadingProgress)) {
m_hideMc.removeMovieClip();
m_hideMc = undefined;
}
if ((m_ready && (m_waitForLoading)) && (progress >= m_storedLoadingProgress)) {
m_waitForLoading = false;
m_videoPlayer.seek(m_storedSeekTime);
if (m_isPlaying) {
m_videoPlayer.play();
}
}
var _local2 = progress;
if (m_trimLeft != 0) {
if (m_ready) {
_local2 = ((m_videoPlayer.__get__duration() * progress) - m_trimLeft) / getDuration();
if (_local2 < 0) {
_local2 = 0;
}
} else {
_local2 = 0;
}
}
m_listeners.dispatchVideoClipLoadingProgress(_local2);
}
function getDuration() {
return((m_videoPlayer.__get__duration() - m_trimLeft) - m_trimRight);
}
function pause(pauseTime) {
if (pauseTime != undefined) {
seek(pauseTime);
}
if (!m_waitForLoading) {
m_videoPlayer.pause();
}
m_isPlaying = false;
}
function play(startTime) {
if (m_playbackIsEnabled) {
if (startTime != undefined) {
seek(startTime);
}
if ((startTime === undefined) || (!isBehindLastKeyframe(startTime))) {
if (!m_waitForLoading) {
m_videoPlayer.play();
}
m_isPlaying = true;
m_isCompleted = false;
}
}
}
function isBehindLastKeyframe(pos) {
if (pos === undefined) {
pos = m_videoPlayer.position;
}
var _local2 = m_videoPlayer.getLastKeyTime();
return(Boolean(_local2) && (pos >= _local2));
}
function seek(time) {
if (m_playbackIsEnabled) {
if (!m_ready) {
if (((m_onReadySeekTime == undefined) && (time == 0)) && (m_trimLeft == 0)) {
return(undefined);
}
m_onReadySeekTime = time;
m_waitForLoading = true;
m_videoPlayer.pause();
} else {
if (time > getDuration()) {
time = getDuration();
}
var _local4 = m_videoPlayer.getLastKeyTime();
var _local2 = Math.min(time + m_trimLeft, _local4);
var _local5 = FindFilePos(_local2);
if (_local5 <= m_videoPlayer.__get__bytesLoaded()) {
m_waitForLoading = false;
m_videoPlayer.seek(_local2);
if (m_isCompleted && (!m_isPlaying)) {
pause();
}
m_isCompleted = _local2 == _local4;
} else {
m_waitForLoading = true;
m_storedSeekTime = _local2;
m_storedLoadingProgress = _local5 / m_videoPlayer.__get__bytesTotal();
m_videoPlayer.pause();
m_isCompleted = false;
}
}
}
}
function onMetadata(sender, infoObject) {
m_keyFrames = infoObject.keyframes;
m_ready = true;
m_listeners.dispatchVideoClipReady();
if (m_onReadySeekTime != undefined) {
m_waitForLoading = false;
if (m_isPlaying) {
m_videoPlayer.play();
}
seek(m_onReadySeekTime);
m_onReadySeekTime = undefined;
} else if (m_trimLeft != 0) {
seek(0);
m_initLoadingProgress = FindFilePos(m_trimLeft) / m_videoPlayer.__get__bytesTotal();
}
}
function isReady() {
return(m_ready);
}
function isPlaying() {
return(m_isPlaying);
}
function playbackCompleted() {
m_isPlaying = false;
m_isCompleted = true;
m_listeners.dispatchVideoClipPlaybackComplete();
}
function onLoadingComplete() {
m_loaded = true;
m_listeners.dispatchVideoClipLoadComplete();
if (m_hideMc) {
m_hideMc.removeMovieClip();
m_hideMc = undefined;
}
}
function onBufferFull() {
if (m_isCompleted) {
m_isCompleted = false;
}
if (!m_waitForLoading) {
m_listeners.dispatchVideoClipBufferFull();
}
}
function onBufferEmpty() {
if (((!m_isCompleted) && (isLoaded())) && ((!isReady()) || ((m_videoPlayer.__get__position() / m_videoPlayer.__get__duration()) >= 0.95))) {
playbackCompleted();
} else {
m_listeners.dispatchVideoClipBufferEmpty();
}
}
function onInvalidStream() {
}
function getPosition() {
return(m_videoPlayer.__get__position() - m_trimLeft);
}
function close() {
m_videoPlayer.close();
m_target.removeMovieClip();
}
function getVolume() {
return(m_videoPlayer.__get__volume());
}
function setVolume(volume) {
m_videoPlayer.__set__volume(volume);
}
function FindFilePos(time) {
if (time == 0) {
return(0);
}
var _local8 = time / m_videoPlayer.__get__duration();
if (m_keyFrames) {
var _local5 = m_keyFrames.times;
var _local7 = m_keyFrames.filepositions;
if (_local5 && (_local7)) {
time = time * 1000;
var _local3 = 0;
var _local4 = _local5.length - 1;
var _local2 = 0;
while (_local3 <= _local4) {
_local2 = _local3 + Math.floor((_local4 - _local3) / 2);
if (time > _local5[_local2]) {
_local3 = _local2 + 1;
} else if (time < _local5[_local2]) {
_local4 = _local2 - 1;
} else {
break;
}
}
if ((_local2 < _local5.length) && (time > _local5[_local2])) {
_local2++;
}
_local8 = _local7[_local2];
}
}
return(_local8);
}
function onEnterFrame() {
if ((m_ready && (m_isPlaying)) && (m_videoPlayer.__get__position() >= (m_videoPlayer.__get__duration() - m_trimRight))) {
m_videoPlayer.pause();
playbackCompleted();
}
}
static var BUFFER_TIME = 1;
var m_loaded = false;
var m_ready = false;
var m_isPlaying = false;
var m_isCompleted = false;
var m_waitForLoading = false;
}
Symbol 471 MovieClip [__Packages.cpslabs.ui.CComponent] Frame 0
class cpslabs.ui.CComponent
{
var m_parent, m_mc, m_componentBroadcaster, m_tooltip, m_tooltipParams;
function CComponent (parent, name, depth) {
if (parent) {
m_parent = parent;
if (depth == undefined) {
depth = parent.getNextHighestDepth();
}
m_mc = parent.createEmptyMovieClip(((name != undefined) ? (name) : ("m" + depth)), depth);
m_mc.tabEnabled = false;
}
m_componentBroadcaster = new cpslabs.utils.CMessageBroadcaster();
}
function setMovieClip(mc) {
m_mc = mc;
m_parent = mc._parent;
}
function get parent() {
return(m_parent);
}
function set id(componentId) {
m_id = componentId;
//return(id);
}
function get id() {
return(m_id);
}
function addListener(eventName, l, fn) {
m_componentBroadcaster.addListener(eventName, l, fn);
}
function removeListener(eventName, l, fn) {
return(m_componentBroadcaster.removeListener(eventName, l, fn));
}
function get movieClip() {
return(m_mc);
}
function set visible(v) {
if (movieClip._visible != v) {
movieClip._visible = v;
if (v) {
onShow();
} else {
onHide();
}
}
//return(visible);
}
function get visible() {
return(movieClip._visible);
}
function set enabled(e) {
if (m_enabled != e) {
m_enabled = e;
if (e) {
onEnable();
} else {
onDisable();
}
}
//return(enabled);
}
function get enabled() {
return(m_enabled);
}
function get width() {
return(getWidth());
}
function get height() {
return(getHeight());
}
function set width(w) {
var _local2 = new Object();
_local2.width = w;
_local2.height = height;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
w = _local2.width;
var _local3 = _local2.height;
if ((w != width) || (_local3 != height)) {
resize(w, _local3);
onResize(w, _local3);
broadcastMessage("resize", this, w, _local3);
}
//return(width);
}
function set height(h) {
var _local2 = new Object();
var _local5 = width;
var _local6 = height;
_local2.width = _local5;
_local2.height = h;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
var _local4 = _local2.width;
h = _local2.height;
if ((_local4 != _local5) || (h != _local6)) {
resize(_local4, h);
onResize(_local4, h);
broadcastMessage("resize", this, _local4, h);
}
//return(height);
}
function set x(value) {
movieClip._x = value;
onMove(value, y);
//return(x);
}
function get x() {
return(movieClip._x);
}
function set y(value) {
movieClip._y = value;
onMove(x, value);
//return(y);
}
function get y() {
return(movieClip._y);
}
function set scaleX(value) {
movieClip._xscale = value * 100;
onScale(value, scaleY);
//return(scaleX);
}
function get scaleX() {
return(movieClip._xscale / 100);
}
function set scaleY(value) {
movieClip._yscale = value * 100;
onScale(scaleX, value);
//return(scaleY);
}
function get scaleY() {
return(movieClip._yscale / 100);
}
function get totalScaleX() {
var _local3 = scaleX;
var _local2 = movieClip._parent;
while (_local2) {
_local3 = _local3 * (_local2._xscale / 100);
_local2 = _local2._parent;
}
return(_local3);
}
function get alpha() {
return(movieClip._alpha);
}
function set alpha(a) {
movieClip._alpha = a;
//return(alpha);
}
function get autoUpdate() {
return(m_autoUpdate);
}
function set autoUpdate(enableAutoUpdate) {
m_autoUpdate = enableAutoUpdate;
if (enableAutoUpdate && (m_needUpdate)) {
update();
m_needUpdate = false;
}
//return(autoUpdate);
}
function remove() {
if (m_tooltip) {
m_tooltip.hide();
}
m_mc.removeMovieClip();
delete m_mc;
}
function getWidth() {
return(movieClip._width);
}
function getHeight() {
return(movieClip._height);
}
function onEnable() {
}
function onDisable() {
}
function onShow() {
}
function onHide() {
}
function onMove(newX, newY) {
}
function onScale(scaleX, scaleY) {
}
function broadcastMessage(eventName) {
m_componentBroadcaster.broadcastMessage.apply(m_componentBroadcaster, arguments);
}
function invalidate() {
m_needUpdate = true;
if (m_autoUpdate) {
update();
m_needUpdate = false;
}
}
function update() {
}
function onResizing(newSize) {
}
function resize(w, h) {
var _local2 = movieClip;
_local2._width = w;
_local2._height = h;
}
function onResize(w, h) {
}
function initMouseEvents(mc, listener, handleMouseMove) {
if (!mc) {
mc = movieClip;
}
if (listener == undefined) {
listener = this;
}
var thisPtr = this;
mc.onRollOver = function () {
listener.onRollOver(thisPtr);
};
mc.onRollOut = function () {
listener.onRollOut(thisPtr);
};
mc.onPress = function () {
listener.onPress(thisPtr);
};
mc.onRelease = function () {
listener.onRelease(thisPtr);
};
mc.onReleaseOutside = function () {
listener.onReleaseOutside(thisPtr);
};
mc.onDragOver = function () {
listener.onDragOver(thisPtr);
};
mc.onDragOut = function () {
listener.onDragOut(thisPtr);
};
if (handleMouseMove) {
mc.onMouseMove = function () {
listener.onMouseMove(thisPtr);
};
}
}
function removeMouseEvents(mc) {
if (!mc) {
mc = movieClip;
}
delete mc.onRelease;
delete mc.onReleaseOutside;
delete mc.onPress;
delete mc.onRollOver;
delete mc.onRollOut;
delete mc.onDragOver;
delete mc.onDragOut;
delete mc.onMouseMove;
}
function init() {
}
function addTooltip(tooltip, tooltipParams) {
tooltipParams = (tooltipParams ? (tooltipParams) : (new Object()));
m_tooltip = tooltip;
m_tooltipParams = tooltipParams;
var rollOverHandler = movieClip.onRollOver;
var rollOutHandler = movieClip.onRollOut;
var pressHandler = movieClip.onPress;
var thisPtr = this;
movieClip.onRollOver = function () {
tooltip.useCustomContent = false;
for (var _local1 in tooltipParams) {
tooltip[_local1] = tooltipParams[_local1];
}
thisPtr.prepareTooltip();
tooltip.show();
if (rollOverHandler) {
rollOverHandler();
}
};
movieClip.onRollOut = function () {
tooltip.hide();
thisPtr.clearTooltip();
if (rollOutHandler) {
rollOutHandler();
}
};
movieClip.onPress = function () {
tooltip.hide();
thisPtr.clearTooltip();
if (pressHandler) {
pressHandler();
}
};
}
function prepareTooltip() {
}
function clearTooltip() {
}
function get tooltip() {
return(m_tooltip);
}
function get tooltipParams() {
return(m_tooltipParams);
}
var m_enabled = true;
var m_id = "";
var m_needUpdate = false;
var m_autoUpdate = true;
}
Symbol 472 MovieClip [__Packages.cpslabs.ITooltip] Frame 0
interface cpslabs.ITooltip
{
}
Symbol 473 MovieClip [__Packages.cpslabs.ui.CVideoPlayer] Frame 0
class cpslabs.ui.CVideoPlayer extends cpslabs.ui.CComponent
{
var m_rtmpPath, m_container, m_video, setMovieClip, __get__movieClip, m_sound, m_netConnection, m_netStream, broadcastMessage, m_videoWidth, m_videoHeight, m_lastKeyTime, m_duration;
function CVideoPlayer (mcParent, name, depth) {
super(mcParent, name, depth);
m_rtmpPath = null;
}
function resize(w, h) {
m_container.__set__width(w);
m_container.__set__height(h);
}
function getWidth() {
return((m_container ? (m_container.__get__width()) : (super.getWidth())));
}
function getHeight() {
return((m_container ? (m_container.__get__height()) : (super.getHeight())));
}
function attachVideo(mcName, videoName) {
if (Video(mcName)) {
m_video = Video(mcName);
var _local3 = MovieClip(videoName);
if (_local3) {
m_container = new cpslabs.ui.CMovieClip();
m_container.setMovieClip(_local3);
setMovieClip(m_container.__get__movieClip());
}
} else if ((typeof(mcName) == "string") && (videoName != undefined)) {
m_container = new cpslabs.ui.CMovieClip(__get__movieClip(), "mcVideo");
m_container.attachMovie(String(mcName), "content");
m_video = m_container.__get__content()[videoName];
} else if ((typeof(mcName) == "movieclip") && (videoName != undefined)) {
m_container = new cpslabs.ui.CMovieClip();
var _local3 = MovieClip(mcName);
m_container.setMovieClip(_local3);
setMovieClip(_local3);
m_video = _local3[videoName];
}
m_sound = null;
if (m_video) {
var _local5 = ((__get__movieClip().getSWFVersion() >= 8) ? (m_video._parent) : (__get__movieClip()));
m_sound = new Sound(_local5);
}
if (m_video) {
m_video.smoothing = true;
}
}
function init(videoPlayerStates) {
attachVideo(videoPlayerStates.movieClip, videoPlayerStates.video);
}
function createNetStream() {
if ((m_rtmpPath == null) || ((m_rtmpPath != null) && (m_netConnection.uri != m_rtmpPath))) {
m_netConnection.connect(m_rtmpPath);
}
m_netStream = new NetStream(m_netConnection);
m_video.attachVideo(m_netStream);
__get__movieClip().attachAudio(m_netStream);
addNetStreamListener();
}
function addNetStreamListener() {
var thisPtr = this;
m_netStream.onStatus = function (infoObject) {
switch (infoObject.code) {
case "NetStream.Seek.Notify" :
thisPtr.m_netStream.pause(false);
thisPtr.m_bufferFullAfterBufferEmptyDispatched = false;
break;
case "NetStream.Buffer.Empty" :
thisPtr.m_bufferFullAfterBufferEmptyDispatched = false;
thisPtr.broadcastMessage("bufferEmpty", thisPtr);
break;
case "NetStream.Buffer.Full" :
thisPtr.onNetStreamBufferFull();
break;
case "NetStream.Play.Start" :
thisPtr.broadcastMessage("playStart", thisPtr);
break;
case "NetStream.Play.Stop" :
thisPtr.broadcastMessage("playStop", thisPtr);
break;
case "NetStream.Buffer.Flush" :
thisPtr.onNetStreamBufferFull();
thisPtr.broadcastMessage("bufferFlush", thisPtr);
break;
case "NetStream.Play.StreamNotFound" :
thisPtr.broadcastMessage("streamNotFound", thisPtr);
}
};
m_netStream.onMetaData = function (infoObject) {
if (thisPtr.m_duration == undefined) {
thisPtr.m_duration = infoObject.duration;
}
var _local3 = infoObject.keyframes;
if (_local3 && (thisPtr.m_lastKeyTime == undefined)) {
var _local1 = _local3.times;
if (_local1 && (_local1.length > 0)) {
thisPtr.m_lastKeyTime = _local1[_local1.length - 1] / 1000;
}
}
thisPtr.m_videoWidth = Number(infoObject.width);
thisPtr.m_videoHeight = Number(infoObject.height);
thisPtr.broadcastMessage("metadataReceived", thisPtr, infoObject);
};
}
function onNetStreamBufferFull() {
if (!m_bufferFullAfterBufferEmptyDispatched) {
broadcastMessage("bufferFull", this);
m_bufferFullAfterBufferEmptyDispatched = true;
if (m_pauseAtBufferFull) {
pause();
}
}
}
function load(file, start, length) {
if (!m_netStream) {
createNetStream();
}
m_videoWidth = (m_videoHeight = 0);
start = ((start == undefined) ? 0 : (start));
length = ((length == undefined) ? -1 : (length));
m_netStream.play(file, start, length);
checkVideoLoading();
m_pauseAtBufferFull = false;
}
function close() {
m_netStream.close();
if (__get__movieClip().onEnterFrame) {
delete __get__movieClip().onEnterFrame;
}
}
function checkVideoLoading() {
if (m_rtmpPath) {
return(undefined);
}
var thisPtr = this;
__get__movieClip().onEnterFrame = function () {
var _local2 = thisPtr.__get__loadProgress();
thisPtr.broadcastMessage("progress", thisPtr, _local2);
if (_local2 >= 1) {
thisPtr.broadcastMessage("ready", thisPtr);
delete this.onEnterFrame;
}
};
}
function seek(p) {
if (m_lastKeyTime && (p > m_lastKeyTime)) {
p = m_lastKeyTime;
}
m_netStream.seek(p);
}
function play() {
m_pauseAtBufferFull = false;
if (m_bufferFullAfterBufferEmptyDispatched) {
if (m_netStream.bufferLength >= m_netStream.bufferTime) {
m_netStream.seek(m_netStream.time);
} else {
m_netStream.pause(false);
}
}
}
function pause() {
m_pauseAtBufferFull = true;
if (m_bufferFullAfterBufferEmptyDispatched) {
m_netStream.pause(true);
}
}
function stop() {
pause();
seek(0);
}
function get volume() {
return((m_sound ? (m_sound.getVolume()) : undefined));
}
function set volume(v) {
if (m_sound) {
m_sound.setVolume(v);
}
//return(volume);
}
function get netConnection() {
return(m_netConnection);
}
function set netConnection(n) {
m_netConnection = n;
createNetStream();
//return(netConnection);
}
function get video() {
return(m_video);
}
function set video(v) {
m_video = v;
//return(video);
}
function get bytesLoaded() {
return(m_netStream.bytesLoaded);
}
function get bytesTotal() {
return(m_netStream.bytesTotal);
}
function get loadProgress() {
return(bytesLoaded / bytesTotal);
}
function get bufferLength() {
return(m_netStream.bufferLength);
}
function get bufferTime() {
return(m_netStream.bufferTime);
}
function set bufferTime(t) {
m_netStream.setBufferTime(t);
//return(bufferTime);
}
function get position() {
return(m_netStream.time);
}
function set position(p) {
seek(p);
//return(position);
}
function get videoWidth() {
var _local2 = m_video.width;
return((_local2 ? (_local2) : (m_videoWidth)));
}
function get videoHeight() {
var _local2 = m_video.height;
return((_local2 ? (_local2) : (m_videoHeight)));
}
function get duration() {
return(m_duration);
}
function getLastKeyTime() {
return(m_lastKeyTime);
}
var m_bufferFullAfterBufferEmptyDispatched = false;
var m_pauseAtBufferFull = false;
}
Symbol 474 MovieClip [__Packages.cpslabs.ui.CMovieClip] Frame 0
class cpslabs.ui.CMovieClip extends cpslabs.ui.CComponent
{
var m_source, m_content, invalidate, __get__movieClip;
function CMovieClip (parent, name, depth) {
super(parent, name, depth);
}
function set source(src) {
if (m_source != src) {
if (m_content) {
m_content.removeMovieClip();
delete m_content;
}
m_source = src;
attachMovie(src);
invalidate();
}
//return(source);
}
function get source() {
return(m_source);
}
function get content() {
return(m_content);
}
function createEmptyMovieClip(name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().createEmptyMovieClip(((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function attachMovie(assetName, name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().attachMovie(assetName, ((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
if (_local2 == undefined) {
}
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function resize(w, h) {
var _local2 = __get__movieClip();
if (m_content) {
_local2 = m_content;
}
_local2._width = w;
_local2._height = h;
}
function getWidth() {
return((m_content ? (m_content._width) : (__get__movieClip()._width)));
}
function getHeight() {
return((m_content ? (m_content._height) : (__get__movieClip()._height)));
}
}
Symbol 475 MovieClip [__Packages.fsplayer.api.impl.CWebObjectsController] Frame 0
class fsplayer.api.impl.CWebObjectsController implements fsplayer.api.IPlayerListener, fsplayer.api.IWebObjectsController
{
var m_player, m_webObjects, m_activeWebObjects, m_playbackController, m_connector;
function CWebObjectsController (player, webObjects) {
m_player = player;
m_webObjects = webObjects;
m_activeWebObjects = new Object();
if (!player.isInitialized()) {
player.addListener(this);
} else {
onPlayerInit(player);
}
}
function onPlayerInit(player) {
m_playbackController = player.getPlaybackController();
m_connector = new fsplayer.api.impl.CWebObjectsConnector();
setInterval(this, "updateActiveWebObjectPosition", 200);
}
function onSlidePositionChanged(position) {
updateActiveWebObjects();
}
function updateActiveWebObjects() {
if ((m_connector == undefined) || (m_playbackController == undefined)) {
return(undefined);
}
if (m_playbackController.transitionIsPlaying()) {
return(undefined);
}
var _local9 = m_playbackController.getCurrentSlideDuration();
var _local8 = m_playbackController.getCurrentSlidePlaybackPosition();
var _local7 = _local9 * _local8;
var _local6 = m_webObjects.getWebObjectsCount();
var _local3 = 0;
while (_local3 < _local6) {
var _local2 = m_webObjects.getWebObject(_local3);
var _local4 = _local2.getSlideInfo();
var _local5 = m_playbackController.getCurrentSlideIndex();
if (_local4.getIndex() == _local5) {
if (_local2.getTimeOffset() <= _local7) {
if (!m_activeWebObjects[_local2.getId()]) {
m_activeWebObjects[_local2.getId()] = _local2.getId();
m_connector.show(_local2);
updatePosition(_local2);
}
} else if (m_activeWebObjects[_local2.getId()]) {
m_connector.close(_local2);
delete m_activeWebObjects[_local2.getId()];
}
}
_local3++;
}
}
function slideMoved() {
var _local11 = m_player.getSkin();
var _local3 = _local11.getSlideShowWindow().getTarget();
var _local4 = {x:0, y:0};
_local3.localToGlobal(_local4);
var _local6 = _local4.x;
var _local5 = _local4.y;
var _local8 = _local3._width;
var _local9 = _local3._height;
var _local10 = _local3._xscale;
var _local7 = _local3._yscale;
var _local2 = false;
if (m_slidesX != _local6) {
_local2 = true;
}
if (m_slidesY != _local5) {
_local2 = true;
}
if (m_slidesWidth != _local8) {
_local2 = true;
}
if (m_slidesHeight != _local9) {
_local2 = true;
}
if (m_slidesScaleX != _local10) {
_local2 = true;
}
if (m_slidesScaleY != _local7) {
_local2 = true;
}
m_slidesX = _local6;
m_slidesY = _local5;
m_slidesWidth = _local8;
m_slidesHeight = _local9;
m_slidesScaleX = _local10;
m_slidesScaleY = _local7;
return(_local2);
}
function updateActiveWebObjectPosition() {
if (!slideMoved()) {
return(undefined);
}
var _local4 = m_webObjects.getWebObjectsCount();
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_webObjects.getWebObject(_local2);
updatePosition(_local3);
_local2++;
}
}
function updatePosition(wo) {
if (!m_activeWebObjects[wo.getId()]) {
return(undefined);
}
var _local3 = m_player.getSkin();
var _local2 = _local3.getSlideShowWindow().getTarget();
m_connector.updatePosition(_local2, wo);
}
function closeWebObjects(slideIndex) {
if (m_connector == undefined) {
return(undefined);
}
var _local5 = m_webObjects.getWebObjectsCount();
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = m_webObjects.getWebObject(_local3);
var _local4 = _local2.getSlideInfo();
if (_local4.getIndex() == slideIndex) {
m_connector.close(_local2);
delete m_activeWebObjects[_local2.getId()];
}
_local3++;
}
}
function onCurrentSlideIndexChanged(slideIndex) {
closeWebObjects(m_currentSlideIndex);
m_currentSlideIndex = slideIndex;
updateActiveWebObjects();
}
function onSlideTransitionPhaseChanged(phase) {
}
function onPausePlayback() {
}
function onStartPlayback() {
}
function onAnimationStepChanged(stepIndex) {
}
function onSlideLoadingComplete(slideIndex) {
}
function onPresentationPlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function onPlaybackSuspended() {
}
function onPlaybackResumed() {
}
function onHandleCloseRequest() {
}
var m_currentSlideIndex = -1;
var m_slidesX = 0;
var m_slidesY = 0;
var m_slidesWidth = 0;
var m_slidesHeight = 0;
var m_slidesScaleX = 0;
var m_slidesScaleY = 0;
}
Symbol 476 MovieClip [__Packages.fsplayer.api.impl.CWebObjectsConnector] Frame 0
class fsplayer.api.impl.CWebObjectsConnector
{
var m_broadcasterEventHandlers;
function CWebObjectsConnector () {
m_broadcasterEventHandlers = new Object();
if (flash.external.ExternalInterface.available) {
setListener(SHOW_REQUEST, SHOW_REQUEST);
setListener(SHOW_REQUEST_EX, SHOW_REQUEST_EX);
setListener(UPDATE_REQUEST, UPDATE_REQUEST);
setListener(CLOSE_REQUEST, CLOSE_REQUEST);
}
}
function broadcastEvent(eventName) {
if (flash.external.ExternalInterface.available) {
var _local3 = m_broadcasterEventHandlers[eventName];
if (_local3) {
var _local4 = flash.external.ExternalInterface.call;
arguments[0] = _local3;
_local4.apply(flash.external.ExternalInterface, arguments);
} else {
trace("CWebObjectsConnector: Error no handler!!");
}
}
}
function setListener(eventName, handlerName) {
m_broadcasterEventHandlers[eventName] = handlerName;
}
function removeListener(eventName) {
if (m_broadcasterEventHandlers[eventName]) {
delete m_broadcasterEventHandlers[eventName];
}
}
function show(webObject) {
if (webObject.showInNewWindow()) {
if (webObject.fullscreen()) {
broadcastEvent(SHOW_REQUEST_EX, webObject.getId(), webObject.getUrl(), true);
} else {
broadcastEvent(SHOW_REQUEST_EX, webObject.getId(), webObject.getUrl(), false, webObject.width(), webObject.height());
}
} else {
broadcastEvent(SHOW_REQUEST, webObject.getId(), webObject.getUrl());
}
}
function close(webObject) {
broadcastEvent(CLOSE_REQUEST, webObject.getId());
}
function updatePosition(mc, wo) {
if (wo.showInNewWindow()) {
return(undefined);
}
var _local3 = mc.getBounds(_root);
var _local6 = _local3.xMax - _local3.xMin;
var _local5 = _local3.yMax - _local3.yMin;
var _local8 = _local3.xMin + (_local6 * wo.x());
var _local7 = _local3.yMin + (_local5 * wo.y());
var _local9 = _local6 * wo.width();
var _local10 = _local5 * wo.height();
broadcastEvent(UPDATE_REQUEST, wo.getId(), _local8 / Stage.width, _local7 / Stage.height, _local9 / Stage.width, _local10 / Stage.height);
}
static var SHOW_REQUEST = "ispring_webObject_show";
static var SHOW_REQUEST_EX = "ispring_webObject_showInNewWindow";
static var UPDATE_REQUEST = "ispring_webObject_setPosition";
static var CLOSE_REQUEST = "ispring_webObject_close";
}
Symbol 72 MovieClip [coreAsset] Frame 1
function cleanup() {
var entities = Array("com.flashspring", "core", "cpslabs", "fsplayer", "ispring", "ispringsolutions", "main", "net.cpslabs", "quizmaker", "scormcontroller", "sounds", "CSeparatePlayer", "CSeparatePlayerEmbeddedSkin", "CSolidPlayer", "CAnimationStepAdapter", "CAnimationStepsAdapter", "CDebug", "CMediaPlaybackControllerEx", "CPlaybackController", "CSlideBackgroundSoundEx", "CSlideController", "CSlideEventSoundEx", "CSound", "CSoundExImpl", "CStandaloneSlideInstancePlayer");
var nums = entities.length;
var i = 0;
while (i < nums) {
delete eval (entities[i]);
i++;
}
}
function getPlayer() {
return(g_player);
}
function setUserData(name, email, id) {
g_userData = new fsplayer.core.CUserData(name, email, id);
}
function createStandalonePlayer(skinAssetURL, presentationInfoURL, startupParameters) {
if (g_player == undefined) {
var _local2 = new CSeparatePlayer(this, g_userData);
_local2.loadSkinFromURL(skinAssetURL);
_local2.loadPresentationInfoFromURL(presentationInfoURL);
g_player = _local2;
if (startupParameters.startSlide != undefined) {
var startSlide = parseInt(startupParameters.startSlide);
if (startSlide != NaN) {
_local2.addListener(this);
this.onPlayerInit = function (p) {
if (startSlide <= p.getPresentationInfo().getSlides().getSlidesCount()) {
p.getPlaybackController().gotoSlide(startSlide);
}
};
}
}
}
return(g_player);
}
function createStandalonePlayerEmbeddedSkin(skinAsset, presentationInfoURL, startupParameters) {
if (g_player == undefined) {
var _local2 = new CSeparatePlayerEmbeddedSkin(this, g_userData);
_local2.loadSkinFromAsset(skinAsset);
_local2.loadPresentationInfoFromURL(presentationInfoURL);
g_player = _local2;
if (startupParameters.startSlide != undefined) {
var startSlide = parseInt(startupParameters.startSlide);
if (startSlide != NaN) {
_local2.addListener(this);
this.onPlayerInit = function (p) {
if (startSlide <= p.getPresentationInfo().getSlides().getSlidesCount()) {
p.getPlaybackController().gotoSlide(startSlide);
}
};
}
}
}
return(g_player);
}
function createEmbeddedPlayer(skinAssetName, presentationInfo, loadingControlClip, startupParameters) {
if (g_player == undefined) {
var _local2 = new CSolidPlayer(this, loadingControlClip, g_userData);
_local2.loadSkinFromLibrary(skinAssetName);
_local2.loadPresentationInfoFromString(presentationInfo);
g_player = _local2;
g_resourceLoader = _local2;
if (startupParameters.startSlide != undefined) {
var startSlide = parseInt(startupParameters.startSlide);
if (startSlide != NaN) {
_local2.addListener(this);
this.onPlayerInit = function (p) {
if (startSlide <= p.getPresentationInfo().getSlides().getSlidesCount()) {
p.getPlaybackController().gotoSlide(startSlide);
}
};
}
}
}
return(g_player);
}
function slideIsAvailable(slideIndex) {
g_resourceLoader.slideIsAvailable(slideIndex);
}
function thumbnailIsAvailable(slideIndex) {
g_resourceLoader.thumbnailIsAvailable(slideIndex);
}
function presentationBgSoundIsAvailable() {
g_resourceLoader.presentationBgSoundIsAvailable();
}
var g_player;
var g_resourceLoader;
var g_userData;
fsplayer.core.CPlayerCoreComponentsFactory.setInstance(new fsplayer.core.CPlayerCoreComponentsFactoryImpl());
Symbol 499 MovieClip [__Packages.fsplayer.api.IPlaybackListener] Frame 0
interface fsplayer.api.IPlaybackListener
{
}
Symbol 500 MovieClip [__Packages.fsplayer.api.IRestrictedPlaybackListener] Frame 0
interface fsplayer.api.IRestrictedPlaybackListener
{
}
Symbol 501 MovieClip [__Packages.fsplayer.api.restriction.ISlideChangeRestriction] Frame 0
interface fsplayer.api.restriction.ISlideChangeRestriction
{
}
Symbol 502 MovieClip [__Packages.fsplayer.ui.skins.ISkin] Frame 0
interface fsplayer.ui.skins.ISkin
{
}
Symbol 503 MovieClip [__Packages.fsplayer.api.IPlayer] Frame 0
interface fsplayer.api.IPlayer
{
}
Symbol 504 MovieClip [__Packages.fsplayer.api.IPlayerListener] Frame 0
interface fsplayer.api.IPlayerListener
{
}
Symbol 505 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackController] Frame 0
interface fsplayer.api.IPresentationPlaybackController
{
}
Symbol 506 MovieClip [__Packages.fsplayer.api.IRestrictedPresentationPlaybackController] Frame 0
interface fsplayer.api.IRestrictedPresentationPlaybackController extends fsplayer.api.IPresentationPlaybackController
{
}
Symbol 507 MovieClip [__Packages.fsplayer.api.ISoundController] Frame 0
interface fsplayer.api.ISoundController
{
}
Symbol 508 MovieClip [__Packages.fsplayer.api.ISoundListener] Frame 0
interface fsplayer.api.ISoundListener
{
}
Symbol 509 MovieClip [__Packages.fsplayer.api.IPresentationInfo] Frame 0
interface fsplayer.api.IPresentationInfo
{
}
Symbol 510 MovieClip [__Packages.fsplayer.api.ISlidesCollection] Frame 0
interface fsplayer.api.ISlidesCollection
{
}
Symbol 511 MovieClip [__Packages.fsplayer.api.ISlideInfo] Frame 0
interface fsplayer.api.ISlideInfo
{
}
Symbol 512 MovieClip [__Packages.fsplayer.api.IAnimationSteps] Frame 0
interface fsplayer.api.IAnimationSteps
{
}
Symbol 513 MovieClip [__Packages.fsplayer.api.IAnimationStep] Frame 0
interface fsplayer.api.IAnimationStep
{
}
Symbol 514 MovieClip [__Packages.fsplayer.api.ISlideResources] Frame 0
interface fsplayer.api.ISlideResources
{
}
Symbol 515 MovieClip [__Packages.fsplayer.api.IPresenterVideo] Frame 0
interface fsplayer.api.IPresenterVideo
{
}
Symbol 516 MovieClip [__Packages.fsplayer.api.ISlideListener] Frame 0
interface fsplayer.api.ISlideListener
{
}
Symbol 517 MovieClip [__Packages.fsplayer.api.IWebObjectsCollection] Frame 0
interface fsplayer.api.IWebObjectsCollection
{
}
Symbol 518 MovieClip [__Packages.fsplayer.api.IWebObject] Frame 0
interface fsplayer.api.IWebObject
{
}
Symbol 519 MovieClip [__Packages.fsplayer.api.IThumbnailsCollection] Frame 0
interface fsplayer.api.IThumbnailsCollection
{
}
Symbol 520 MovieClip [__Packages.fsplayer.api.ISlideThumbnail] Frame 0
interface fsplayer.api.ISlideThumbnail
{
}
Symbol 521 MovieClip [__Packages.fsplayer.api.ISlideThumbnailLoadingListener] Frame 0
interface fsplayer.api.ISlideThumbnailLoadingListener
{
}
Symbol 522 MovieClip [__Packages.fsplayer.api.IPresenterInfo] Frame 0
interface fsplayer.api.IPresenterInfo
{
}
Symbol 523 MovieClip [__Packages.fsplayer.api.IPresenterPhoto] Frame 0
interface fsplayer.api.IPresenterPhoto
{
}
Symbol 524 MovieClip [__Packages.fsplayer.api.IPresenterPhotoLoadingListener] Frame 0
interface fsplayer.api.IPresenterPhotoLoadingListener
{
}
Symbol 525 MovieClip [__Packages.fsplayer.api.ICompanyInfo] Frame 0
interface fsplayer.api.ICompanyInfo
{
}
Symbol 526 MovieClip [__Packages.fsplayer.api.ICompanyLogo] Frame 0
interface fsplayer.api.ICompanyLogo
{
}
Symbol 527 MovieClip [__Packages.fsplayer.api.ICompanyLogoLoadingListener] Frame 0
interface fsplayer.api.ICompanyLogoLoadingListener
{
}
Symbol 528 MovieClip [__Packages.fsplayer.api.INarrationInfo] Frame 0
interface fsplayer.api.INarrationInfo
{
}
Symbol 529 MovieClip [__Packages.fsplayer.api.IReferencesCollection] Frame 0
interface fsplayer.api.IReferencesCollection
{
}
Symbol 530 MovieClip [__Packages.fsplayer.api.IReferenceInfo] Frame 0
interface fsplayer.api.IReferenceInfo
{
}
Symbol 531 MovieClip [__Packages.fsplayer.api.IPresentersCollection] Frame 0
interface fsplayer.api.IPresentersCollection
{
}
Symbol 532 MovieClip [__Packages.fsplayer.api.IPresentationListener] Frame 0
interface fsplayer.api.IPresentationListener
{
}
Symbol 533 MovieClip [__Packages.fsplayer.api.IKeyboardSettings] Frame 0
interface fsplayer.api.IKeyboardSettings
{
}
Symbol 534 MovieClip [__Packages.fsplayer.api.IPlaybackAction] Frame 0
interface fsplayer.api.IPlaybackAction
{
}
Symbol 535 MovieClip [__Packages.fsplayer.ui.skins.ISlideShowWindow] Frame 0
interface fsplayer.ui.skins.ISlideShowWindow
{
}
Symbol 536 MovieClip [__Packages.fsplayer.ui.skins.ISkinListener] Frame 0
interface fsplayer.ui.skins.ISkinListener
{
}
Symbol 537 MovieClip [__Packages.main.CSkinImpl] Frame 0
class main.CSkinImpl implements fsplayer.api.IPlaybackListener, fsplayer.api.IRestrictedPlaybackListener, fsplayer.ui.skins.ISkin, fsplayer.ui.skins.ISlideShowWindow
{
var m_skinTarget, m_player, m_skinSettings, m_playbackController, m_presentation, m_tooltip, m_slideAssetsTargetMovieClip, m_listener, m_skinInitialized;
function CSkinImpl (target) {
m_skinTarget = target;
var thisPtr = this;
m_skinTarget.onUnload = function () {
thisPtr.remove();
};
}
function initialize(playerAPI) {
m_player = playerAPI;
m_skinSettings = m_player.getSettings();
m_playbackController = m_player.getRestrictedPlaybackController();
m_presentation = m_player.getPresentationInfo();
m_playbackController.addListener(this);
m_playbackController.addRestrictedListener(this);
m_tooltip = new main.CTooltip(getSkinTarget(), getSlideShowWindow().getTarget());
var _local2 = fsplayer.api.IPlayerEx(playerAPI);
_local2.getPlayerCore().setTooltipEventListener(m_tooltip);
}
function onBranchingActionClose() {
}
function getSlideShowWindow() {
return(this);
}
function getTarget() {
if (!m_slideAssetsTargetMovieClip) {
m_slideAssetsTargetMovieClip = createSlideAssetsTarget();
}
return(m_slideAssetsTargetMovieClip);
}
function setListener(listener) {
m_listener = listener;
if (!m_skinInitialized) {
m_skinInitialized = true;
m_listener.onSkinInit(this);
}
}
function onPausePlayback() {
}
function onStartPlayback() {
}
function onCurrentSlideIndexChanged(slideIndex) {
}
function onSlideLoadingComplete(slideIndex) {
}
function onSlidePositionChanged(position) {
}
function onSlideTransitionPhaseChanged(phase) {
}
function onAnimationStepChanged(stepIndex) {
}
function onPresentationPlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function onPlaybackSuspended() {
}
function onPlaybackResumed() {
}
function onHandleCloseRequest() {
}
function onSlideChangeRestiction(restriction) {
}
function getSkinSettings() {
return(m_skinSettings);
}
function getSkinTarget() {
return(m_skinTarget);
}
function createSlideAssetsTarget() {
return(getSkinTarget().createEmptyMovieClip("assets", getSkinTarget().getNextHighestDepth()));
}
function remove() {
}
}
Symbol 538 MovieClip [__Packages.fsplayer.api.core.ITooltipEventListener] Frame 0
interface fsplayer.api.core.ITooltipEventListener
{
}
Symbol 539 MovieClip [__Packages.main.CTooltip] Frame 0
class main.CTooltip implements fsplayer.api.core.ITooltipEventListener
{
var m_mc, m_slidesMc, m_textField;
function CTooltip (parent, slidesMc, font) {
m_mc = parent.createEmptyMovieClip("tooltip", parent.getNextHighestDepth());
m_slidesMc = slidesMc;
initTextField(m_mc, font);
m_textField._visible = false;
}
function get movieClip() {
return(m_mc);
}
function initTextField(mc, font) {
mc.createTextField("tooltip_textfield", mc.getNextHighestDepth(), 0, 0, 300, 100);
m_textField = m_mc.tooltip_textfield;
m_textField.background = true;
m_textField.backgroundColor = 16777185 /* 0xFFFFE1 */;
m_textField.border = true;
m_textField.borderColor = 0;
m_textField.selectable = false;
m_textField.textColor = 0;
m_textField.type = "dynamic";
var _local2 = new TextFormat();
_local2.font = (font ? (font) : "iSpringSkinFont");
_local2.size = 12;
m_textField.setTextFormat(_local2);
m_textField.setNewTextFormat(_local2);
m_textField.embedFonts = true;
m_textField.autoSize = true;
m_textField.wordWrap = true;
m_textField.multiline = true;
}
function showTooltip(text) {
m_textField.multiline = false;
m_textField.wordWrap = false;
m_textField.text = text;
if (m_textField.textWidth > MAX_TEXT_WIDTH) {
m_textField.multiline = true;
m_textField.wordWrap = true;
m_textField._width = MAX_TEXT_WIDTH;
}
placeTooltip();
m_textField._visible = true;
}
function hideTooltip() {
m_textField._visible = false;
}
function placeTooltip() {
var _local8 = {x:m_slidesMc._xmouse, y:m_slidesMc._ymouse};
m_slidesMc.localToGlobal(_local8);
var _local6 = _local8.x;
var _local2 = _local8.y;
var _local9 = m_textField._width + DEFAULT_X_MARGIN;
var _local4 = m_textField._height;
var _local3 = {x:0, y:0};
m_slidesMc.localToGlobal(_local3);
var _local5 = {x:m_slidesMc._width, y:m_slidesMc._height};
m_slidesMc.localToGlobal(_local5);
var _local7 = DEFAULT_Y_MARGIN;
if ((_local6 + _local9) > _local5.x) {
_local6 = _local6 - ((_local6 + _local9) - _local5.x);
if (_local6 < _local3.x) {
_local6 = _local3.x;
}
}
if ((_local2 + _local4) > _local5.y) {
if ((_local2 - _local4) < _local3.y) {
_local2 = _local3.y;
} else {
_local2 = _local2 - _local4;
_local7 = ((((_local2 - _local4) - DEFAULT_Y_MARGIN) >= _local3.y) ? (-DEFAULT_Y_MARGIN) : (_local3.y - (_local2 - _local4)));
}
} else {
_local7 = ((((_local2 + _local4) + DEFAULT_Y_MARGIN) <= _local5.y) ? (DEFAULT_Y_MARGIN) : (_local5.y - (_local2 + _local4)));
}
m_textField._x = _local6;
m_textField._y = _local2 + _local7;
}
static var DEFAULT_X_MARGIN = 30;
static var DEFAULT_Y_MARGIN = 20;
static var MAX_TEXT_WIDTH = 220;
}
Symbol 540 MovieClip [__Packages.fsplayer.api.IPlayerEx] Frame 0
interface fsplayer.api.IPlayerEx extends fsplayer.api.IPlayer
{
}
Symbol 541 MovieClip [__Packages.fsplayer.api.IPlayerCore] Frame 0
interface fsplayer.api.IPlayerCore
{
}
Symbol 542 MovieClip [__Packages.fsplayer.api.video.IVideoPlayer] Frame 0
interface fsplayer.api.video.IVideoPlayer
{
}
Symbol 543 MovieClip [__Packages.fsplayer.api.video.IVideoPlayerListener] Frame 0
interface fsplayer.api.video.IVideoPlayerListener
{
}
Symbol 544 MovieClip [__Packages.fsplayer.api.core.IHyperlinkManager] Frame 0
interface fsplayer.api.core.IHyperlinkManager
{
}
Symbol 545 MovieClip [__Packages.main.CNullSkin] Frame 0
class main.CNullSkin extends main.CSkinImpl
{
var m_clickTag, m_skinTarget, m_keyboardController, getSkinSettings, m_player, m_presentation, m_playbackController, getTarget, m_slideAssetsMaskMovieClip;
function CNullSkin (target) {
super(target);
var _local3 = target;
while (_local3._parent != undefined) {
_local3 = _local3._parent;
}
if (String(_local3.clickTAG).substr(0, 5) == "http:") {
m_clickTag = _local3.clickTAG;
}
var thisPtr = this;
m_skinTarget.onEnterFrame = function () {
thisPtr.onEnterFrame();
};
}
function initialize(playerAPI) {
super.initialize(playerAPI);
m_keyboardController = createKeyboardController();
createMask();
var _local4 = getSkinSettings().webLinks.slideAreaLink;
var _local3 = getSkinSettings().navigation.mouse;
if (((m_clickTag || (_local4.href)) || (_local3.enabled == "1")) || (_local3.enabled == true)) {
createMouseLayer();
}
fullScreenInit(playerAPI.getSettings());
}
function fullScreenInit(settings) {
var _local1 = false;
if (settings.appearance.fullScreen) {
_local1 = settings.appearance.fullScreen == "1";
}
main.fullscreen.CFullScreen.__get__instance().setFullScreen(_local1, true);
}
function createKeyboardController() {
return(new main.CKeyboardControllerEx(m_player, getSkinSettings().navigation.keyboard));
}
function getPresentation() {
return(m_presentation);
}
function getPlaybackController() {
return(m_playbackController);
}
function onRelease() {
var _local2 = getSkinSettings().webLinks.slideAreaLink;
var _local3 = getSkinSettings().navigation.mouse;
var _local5 = _local2.href;
if (m_clickTag) {
getURL (m_clickTag, (_local2.target ? (_local2.target) : "_self"));
} else if (_local5) {
getURL (_local5, _local2.target);
} else if ((_local3.enabled == 1) || (_local3.enabled == true)) {
var _local6 = m_player.getPresentationInfo().getSlides().getSlideInfo(m_playbackController.getCurrentSlideIndex());
if (_local6.getManualAdvance()) {
var _local4 = fsplayer.api.IPresentationPlaybackControllerEx(m_playbackController);
var _local7 = _local4.getCurrentSlidePlaybackPosition() > 0.99;
var _local8 = (_local4.getNextSlideIndex() === undefined) && (_local7);
if (!_local8) {
if (_local3.target == "step") {
m_playbackController.gotoNextStep();
} else {
m_playbackController.gotoNextSlide();
}
} else if (m_presentation.isLooped() && (_local4.getActiveQuiz() == null)) {
m_playbackController.gotoVisibleSlide(0);
}
}
}
}
function onPresentationPlaybackComplete() {
var _local2 = getSkinSettings().webLinks.presentationEndLink;
if (_local2.href) {
getURL (_local2.href, _local2.target);
}
}
function getMouseLayerParent() {
return(getTarget()._parent);
}
function createMouseLayer() {
var _local2 = main.CMouseLayer.create(getMouseLayerParent(), m_player, this);
if (m_clickTag) {
_local2.useHandCursor = true;
}
}
function createSlideAssetsMaskMovieClip() {
var _local2 = getTarget()._parent;
return(_local2.createEmptyMovieClip("mask", _local2.getNextHighestDepth()));
}
function getSlideAssetsMask() {
if (!m_slideAssetsMaskMovieClip) {
m_slideAssetsMaskMovieClip = createSlideAssetsMaskMovieClip();
}
return(m_slideAssetsMaskMovieClip);
}
function createMask() {
var _local5 = m_player.getPresentationInfo();
var _local4 = _local5.getSlideWidth();
var _local3 = _local5.getSlideHeight();
if (getTarget().getSWFVersion() >= 8) {
var _local6 = new flash.geom.Rectangle(0, 0, _local4, _local3);
getTarget().scrollRect = _local6;
} else {
var _local2 = getSlideAssetsMask();
getTarget().setMask(_local2);
_local2.beginFill(16711680, 100);
_local2.moveTo(0, 0);
_local2.lineTo(_local4, 0);
_local2.lineTo(_local4, _local3);
_local2.lineTo(0, _local3);
_local2.lineTo(0, 0);
_local2.endFill();
}
}
function onSlidePositionChanged(pos) {
var _local3 = fsplayer.api.IPresentationPlaybackControllerEx(m_playbackController);
var _local2 = _local3.getActiveQuiz();
if (_local2 != m_currentQuiz) {
changeCurrentQuiz((_local2 ? (_local2) : null));
}
}
function changeCurrentQuiz(newQuiz) {
if (m_currentQuiz != null) {
var _local2 = {listener:m_quizListener};
m_currentQuiz.removeListener(_local2.listener);
m_quizListener = null;
onGoOutQuiz();
}
m_currentQuiz = newQuiz;
if (m_currentQuiz != null) {
var thisPtr = this;
m_quizListener = {onFinalizeQuiz:function () {
thisPtr.onFinishQuiz();
}, onQuizInitialized:function () {
thisPtr.onQuizInitialized();
}};
var _local2 = {listener:m_quizListener};
m_currentQuiz.addListener(_local2.listener);
if (m_currentQuiz.getQuizStatus() != quizmaker.api.CQuizStatus.INIT) {
onQuizInitialized();
}
}
}
function onGoInQuiz() {
if (((m_currentQuiz.getQuizStatus() == quizmaker.api.CQuizStatus.STOP) && (!m_currentQuiz.getResults().getQuizPassed())) && (quizmaker.api.IQuizApiEx(m_currentQuiz).hasRetakeAbility())) {
quizmaker.api.IQuizApiEx(m_currentQuiz).retakeQuiz();
}
updateKeyboardState();
}
function onGoOutQuiz() {
updateKeyboardState();
}
function onQuizInitialized() {
onGoInQuiz();
}
function onFinishQuiz() {
updateKeyboardState();
}
function currentSlideHasUncompletedQuiz() {
if (m_currentQuiz == null) {
return(false);
}
var _local2 = m_currentQuiz.getQuizStatus();
return((_local2 != quizmaker.api.CQuizStatus.STOP) && (_local2 != quizmaker.api.CQuizStatus.REVIEW));
}
function currentSlideHasUncompletedObligatoryQuiz() {
return(currentSlideHasUncompletedQuiz() && (m_currentQuiz.allowQuizInterruption() == false));
}
function onKeyboardFocusStateChanged(acquireFocus) {
m_hasKeyboardFocus = !acquireFocus;
updateKeyboardState();
}
function keyboardEnabled() {
return(m_hasKeyboardFocus && (!currentSlideHasUncompletedQuiz()));
}
function updateKeyboardState() {
m_keyboardController.__set__enabled(keyboardEnabled());
}
function remove() {
m_keyboardController.remove();
super.remove();
}
var m_hasKeyboardFocus = true;
var m_currentQuiz = null;
var m_quizListener = null;
}
Symbol 546 MovieClip [__Packages.main.CKeyboardControllerEx] Frame 0
class main.CKeyboardControllerEx implements fsplayer.api.IPlaybackListener
{
var m_player, m_keyboardNavigation, m_playbackController, m_soundController, m_presentation, m_slides, m_keyboardSettings, m_rewindTimer, m_keyboardSeeking, m_lastKeyPressed;
function CKeyboardControllerEx (player, keyboardNavigation) {
m_player = player;
m_keyboardNavigation = keyboardNavigation;
m_playbackController = player.getRestrictedPlaybackController();
m_soundController = player.getSoundController();
m_presentation = player.getPresentationInfo();
m_slides = m_presentation.getSlides();
m_keyboardSettings = player.getKeyboardSettings();
Key.addListener(this);
m_rewindTimer = new core.CTimer();
m_rewindTimer.__set__time(m_presentation.getFrameRate());
m_rewindTimer.addEventHandler("tick", onRewindTimerTick, this);
m_playbackController.addListener(this);
}
function get enabled() {
return(m_enableKeyboard);
}
function set enabled(e) {
m_enableKeyboard = e;
//return(enabled);
}
function onRewindTimerTick() {
var _local3 = m_seekingSpeed / (m_rewindTimer.__get__time() * m_playbackController.getCurrentSlideDuration());
m_seekingSpeed = Math.min(SEEKING_SPEED_MAX, m_seekingSpeed + (SEEKING_ACCELERATION * m_rewindTimer.__get__time()));
var _local2 = m_rewindPosition + (m_rewindDirection * _local3);
if (_local2 < 0) {
_local2 = 0;
} else if (_local2 > 1) {
_local2 = 1;
}
m_rewindPosition = _local2;
m_playbackController.seek(_local2);
}
function keyboardEnabled() {
return(Boolean(m_keyboardNavigation) && ((m_keyboardNavigation.enabled == true) || (m_keyboardNavigation.enabled == 1)));
}
function onKeyDown() {
if (!m_player.isInitialized()) {
return(undefined);
}
var _local2 = m_playbackController;
var _local9 = m_slides.getSlidesCount();
var _local7 = _local9 - 1;
var _local3 = Key.getCode();
if ((!enabled) || (!keyboardEnabled())) {
if (m_keyboardSeeking) {
m_keyboardSeeking = false;
m_rewindTimer.stop();
m_playbackController.endSeek();
}
m_lastKeyPressed = undefined;
return(undefined);
}
var _local5 = m_keyboardSettings.getPlaybackAction(_local3, Key.isDown(17), Key.isDown(16)).getType();
if (_local5 == undefined) {
return(undefined);
}
switch (_local5) {
case fsplayer.api.ActionType.FIRST_SLIDE :
if (m_slides.getVisibleSlide(0).isLoaded()) {
_local2.gotoFirstSlide();
}
break;
case fsplayer.api.ActionType.LAST_SLIDE :
if (m_slides.getVisibleSlide(m_slides.getVisibleSlidesCount() - 1).isLoaded()) {
_local2.gotoLastSlide();
}
break;
case fsplayer.api.ActionType.NEXT_SLIDE :
if (_local2.getCurrentSlideIndex() < _local7) {
_local2.gotoNextSlide();
}
break;
case fsplayer.api.ActionType.PREVIOUS_SLIDE :
if (_local2.getCurrentSlideIndex() > 0) {
_local2.gotoPreviousSlide();
}
break;
case fsplayer.api.ActionType.SLIDE_START :
if (m_lastKeyPressed != _local3) {
_local2.playCurrentSlideFrom(0);
}
break;
case fsplayer.api.ActionType.SLIDE_END :
if (m_lastKeyPressed != _local3) {
_local2.pauseCurrentSlideAt(1);
}
break;
case fsplayer.api.ActionType.PLAY_PAUSE :
if (m_lastKeyPressed != _local3) {
if (_local2.isPlaying()) {
if (_local2.getCurrentSlidePlaybackPosition() == 1) {
_local2.pause();
_local2.gotoNextSlide();
} else {
var _local8 = m_playbackSuspended;
_local2.pause();
if (_local8) {
_local2.play();
}
}
} else {
_local2.play();
}
}
break;
case fsplayer.api.ActionType.SEEK_FORWARD :
onSeekForward();
break;
case fsplayer.api.ActionType.SEEK_BACKWARD :
onSeekBackward();
break;
case fsplayer.api.ActionType.VOLUME_UP :
var _local4 = m_soundController.getVolume();
var _local6 = Math.min(1, _local4 + VOLUME_STEP);
if (_local4 != _local6) {
m_soundController.setVolume(_local6);
}
break;
case fsplayer.api.ActionType.VOLUME_DOWN :
_local4 = m_soundController.getVolume();
_local6 = Math.max(0, _local4 - VOLUME_STEP);
if (_local4 != _local6) {
m_soundController.setVolume(_local6);
}
break;
case fsplayer.api.ActionType.LAST_VIEWED_SLIDE :
if (m_lastKeyPressed != _local3) {
_local2.gotoLastViewedSlide();
}
break;
case fsplayer.api.ActionType.PREVIOUS_STEP :
if (m_lastKeyPressed != _local3) {
_local2.gotoPreviousStep();
}
break;
case fsplayer.api.ActionType.NEXT_STEP :
if (m_lastKeyPressed != _local3) {
_local2.gotoNextStep();
}
break;
case fsplayer.api.ActionType.TOGGLE_FULLSCREEN :
main.fullscreen.CFullScreen.__get__instance().setFullScreen(!main.fullscreen.CFullScreen.__get__instance().getFullScreen());
}
m_lastKeyPressed = Key.getCode();
}
function onSeekBackward() {
if (canSeek() && (!m_keyboardSeeking)) {
m_keyboardSeeking = true;
m_seekingSpeed = SEEKING_SPEED;
m_rewindPosition = m_playbackController.getCurrentSlidePlaybackPosition();
m_rewindDirection = -1;
m_rewindTimer.start();
}
}
function canSeek() {
if (!m_player.isInitialized()) {
return(false);
}
var _local2 = getCurrentSlideIndex();
if (_local2 != undefined) {
var _local3 = getSlideInfo(_local2);
if (_local3) {
return(_local3.isLoaded());
}
}
return(false);
}
function onSeekForward() {
if (canSeek() && (!m_keyboardSeeking)) {
m_keyboardSeeking = true;
m_seekingSpeed = SEEKING_SPEED;
m_rewindPosition = m_playbackController.getCurrentSlidePlaybackPosition();
m_rewindDirection = 1;
m_rewindTimer.start();
}
}
function onKeyBackwardUp() {
if (canSeek() && (m_keyboardSeeking)) {
m_keyboardSeeking = false;
m_rewindTimer.stop();
m_playbackController.endSeek();
}
}
function onKeyForwardUp() {
if (canSeek() && (m_keyboardSeeking)) {
m_keyboardSeeking = false;
m_rewindTimer.stop();
m_playbackController.endSeek();
}
}
function onKeyUp() {
if (!m_player.isInitialized()) {
return(undefined);
}
var _local2 = m_keyboardSettings.getPlaybackAction(Key.getCode(), Key.isDown(17), Key.isDown(16)).getType();
if ((keyboardEnabled() && (enabled)) && (_local2)) {
switch (_local2) {
case fsplayer.api.ActionType.SEEK_FORWARD :
onKeyForwardUp();
break;
case fsplayer.api.ActionType.SEEK_BACKWARD :
onKeyBackwardUp();
}
} else if (m_keyboardSeeking) {
m_keyboardSeeking = false;
m_rewindTimer.stop();
m_playbackController.endSeek();
}
m_lastKeyPressed = undefined;
}
function getCurrentSlideIndex() {
return(m_playbackController.getCurrentSlideIndex());
}
function getSlideInfo(slideIndex) {
return(m_presentation.getSlides().getSlideInfo(slideIndex));
}
function onPlaybackSuspended() {
m_playbackSuspended = true;
}
function onPlaybackResumed() {
m_playbackSuspended = false;
}
function remove() {
Key.removeListener(this);
}
function onPausePlayback() {
}
function onStartPlayback() {
}
function onAnimationStepChanged(stepIndex) {
}
function onSlidePositionChanged(position) {
}
function onSlideTransitionPhaseChanged(phase) {
}
function onCurrentSlideIndexChanged(slideIndex) {
}
function onSlideLoadingComplete(slideIndex) {
}
function onPresentationPlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function onHandleCloseRequest() {
}
var m_rewindPosition = 0;
var m_rewindDirection = 0;
var m_seekingSpeed = 0;
static var SEEKING_SPEED = 1;
static var SEEKING_SPEED_MAX = 10;
static var SEEKING_ACCELERATION = 0.003;
static var VOLUME_STEP = 0.05;
var m_enableKeyboard = true;
var m_playbackSuspended = false;
}
Symbol 547 MovieClip [__Packages.core.CEventBroadcaster] Frame 0
class core.CEventBroadcaster
{
var m_listeners;
function CEventBroadcaster () {
m_listeners = new Object();
}
function enableEvents() {
m_eventsEnabled = true;
}
function disableEvents() {
m_eventsEnabled = false;
}
function addEventHandler(eventName, handler, listener, params) {
if (!m_listeners[eventName]) {
m_listeners[eventName] = new Array();
}
var _local2 = new Object();
_local2.listener = listener;
_local2.handler = handler;
_local2.params = params;
m_listeners[eventName].push(_local2);
}
function removeEventHandler(eventName, handler, listener) {
var _local2 = 0;
while (_local2 < m_listeners[eventName].length) {
var _local3 = m_listeners[eventName][_local2];
if ((_local3.listener === listener) && (_local3.handler === handler)) {
m_listeners[eventName].splice(_local2, 1);
}
_local2++;
}
}
function broadcastEvent(name) {
if (!m_eventsEnabled) {
return(undefined);
}
var _local5 = m_listeners[name];
if (!_local5) {
return(undefined);
}
var _local4 = arguments;
_local4.unshift(0);
for (var _local6 in _local5) {
var _local3 = _local5[_local6];
_local4[0] = this;
_local4[1] = _local3.params;
_local3.handler.apply(_local3.listener, _local4);
}
}
function DEBUG(msg) {
_global.DEBUG(msg);
}
var m_eventsEnabled = true;
}
Symbol 548 MovieClip [__Packages.core.CTimer] Frame 0
class core.CTimer extends core.CEventBroadcaster
{
var broadcastEvent;
function CTimer () {
super();
}
function get type() {
return("TIMER");
}
function get timeRunning() {
return(m_timeRunning);
}
function get timeout() {
return(m_timeout);
}
function get time() {
return(m_time);
}
function set time(value) {
if (isRunning) {
stop();
m_time = value;
start();
} else {
m_time = value;
}
//return(time);
}
function get isPaused() {
return(m_isPaused);
}
function get isRunning() {
return(!(m_intervalId === 0));
}
function start(reportTick) {
if (isRunning) {
stop();
}
m_timeRunning = 0;
m_intervalId = setInterval(this, "notify", m_time);
broadcastEvent("start");
m_isPaused = false;
if (reportTick) {
broadcastEvent("tick");
}
}
function pause() {
m_isPaused = true;
}
function resume() {
m_isPaused = false;
}
function stop() {
if (!isRunning) {
return(undefined);
}
broadcastEvent("stop");
clearInterval(m_intervalId);
m_intervalId = 0;
}
function notify() {
if (!isPaused) {
m_timeRunning = m_timeRunning + m_time;
broadcastEvent("tick");
if (timeout && (m_timeRunning >= timeout)) {
broadcastEvent("timeout");
stop();
}
}
}
var m_intervalId = 0;
var m_time = 0;
var m_timeRunning = 0;
var m_timeout = 0;
var m_isPaused = true;
}
Symbol 549 MovieClip [__Packages.fsplayer.api.ActionType] Frame 0
class fsplayer.api.ActionType
{
function ActionType () {
}
static var PLAY_PAUSE = "playPause";
static var NEXT_SLIDE = "nextSlide";
static var PREVIOUS_SLIDE = "previousSlide";
static var FIRST_SLIDE = "firstSlide";
static var LAST_SLIDE = "lastSlide";
static var LAST_VIEWED_SLIDE = "lastViewedSlide";
static var SLIDE_START = "slideStart";
static var SLIDE_END = "slideEnd";
static var SEEK_FORWARD = "seekForward";
static var SEEK_BACKWARD = "seekBackward";
static var NEXT_STEP = "nextStep";
static var PREVIOUS_STEP = "previousStep";
static var VOLUME_UP = "volumeUp";
static var VOLUME_DOWN = "volumeDown";
static var TOGGLE_FULLSCREEN = "toggleFullscreen";
}
Symbol 550 MovieClip [__Packages.main.fullscreen.IFullScreen] Frame 0
interface main.fullscreen.IFullScreen
{
}
Symbol 551 MovieClip [__Packages.main.fullscreen.IFullScreenListener] Frame 0
interface main.fullscreen.IFullScreenListener
{
}
Symbol 552 MovieClip [__Packages.main.fullscreen.CFullScreen] Frame 0
class main.fullscreen.CFullScreen implements main.fullscreen.IFullScreen
{
function CFullScreen () {
}
function setFullScreen(value, isInitialization) {
}
function stateIsAccessible() {
return(undefined);
}
function setListener(l) {
m_listener = l;
}
function removeListener() {
m_listener = null;
}
function raiseEvent() {
if (m_listener) {
m_listener.onFullScreen(m_currentFullScreen);
}
}
static function get instance() {
if (!s_fullScreen) {
s_fullScreen = (isSupportStageFullScreen() ? (new main.fullscreen.CFullScreenStage()) : (((!isBrowserPlayer()) ? (new main.fullscreen.CFullScreenStandalone()) : (new main.fullscreen.CFullScreenDummy()))));
}
return(s_fullScreen);
}
function getFullScreen() {
return(m_currentFullScreen);
}
static function getFlashPlayerInfo() {
var _local3 = System.capabilities.version.split(" ", 2);
var _local4 = _local3[0];
var _local2 = _local3[1].split(",", 4);
var _local1 = new Object();
_local1.platform = _local3[0];
_local1.majorVersion = parseInt(_local2[0]);
_local1.minorVersion = parseInt(_local2[1]);
_local1.revision = parseInt(_local2[2]);
_local1.build = parseInt(_local2[3]);
return(_local1);
}
static function isSupportStageFullScreen() {
var _local1 = getFlashPlayerInfo();
return(((_local1.majorVersion > 9) || ((_local1.majorVersion == 9) && (_local1.minorVersion > 0))) || (((_local1.majorVersion == 9) && (_local1.minorVersion == 0)) && (_local1.revision >= 28)));
}
static function getPlayerType() {
return(System.capabilities.playerType);
}
static function isBrowserPlayer() {
return((getPlayerType() == PLAYER_TYPE_PLUG_IN) || (getPlayerType() == PLAYER_TYPE_ACTIVE_X));
}
static var PLAYER_TYPE_PLUG_IN = "PlugIn";
static var PLAYER_TYPE_ACTIVE_X = "ActiveX";
static var s_fullScreen = null;
var m_listener = null;
var m_currentFullScreen = false;
}
Symbol 553 MovieClip [__Packages.main.fullscreen.CFullScreenStage] Frame 0
class main.fullscreen.CFullScreenStage extends main.fullscreen.CFullScreen
{
var m_currentFullScreen, raiseEvent;
function CFullScreenStage () {
super();
Stage.addListener(this);
}
function onFullScreen(val) {
m_currentFullScreen = isStageFullScreen();
raiseEvent();
m_raised = true;
}
function setFullScreen(value, isInitialization) {
if ((isInitialization == true) && (!value)) {
value = isStageFullScreen();
}
m_raised = false;
setStageFullScreen(value);
if (!m_raised) {
raiseEvent();
}
}
function stateIsAccessible() {
return(true);
}
function isStageFullScreen() {
return(Stage[STAGE_DISPLAY_STATE] == STAGE_FULL_SCREEN);
}
function setStageFullScreen(value) {
if (m_currentFullScreen != value) {
Stage[STAGE_DISPLAY_STATE] = (value ? (STAGE_FULL_SCREEN) : (STAGE_NORMAL));
m_currentFullScreen = isStageFullScreen();
}
}
static var STAGE_FULL_SCREEN = "fullScreen";
static var STAGE_NORMAL = "normal";
static var STAGE_DISPLAY_STATE = "displayState";
var m_raised = false;
}
Symbol 554 MovieClip [__Packages.main.fullscreen.CFullScreenStandalone] Frame 0
class main.fullscreen.CFullScreenStandalone extends main.fullscreen.CFullScreen
{
var raiseEvent, m_currentFullScreen;
function CFullScreenStandalone () {
super();
}
function setFullScreen(value, isInitialization) {
if ((isInitialization != true) || (value)) {
setFscommandFullScreen(value);
}
raiseEvent();
}
function setFscommandFullScreen(value) {
if (m_currentFullScreen != value) {
try {
(value);// not popped
} catch(_local) {
// swfAction0x01 // Unknown action
toggleHighQuality();
nextFrame();
// swfAction0x02 // Unknown action
_local2 + "setFscommandFullScreen";
;
(function (b) {
return((b ? "true" : "false"));
});// not popped
}
}
}
function boolToString(b) {
return((b ? "true" : "false"));
}
function stateIsAccessible() {
return(false);
}
static var FSCOMMAND_FULL_SCREEN = "fullscreen";
}
Symbol 555 MovieClip [__Packages.main.fullscreen.CFullScreenDummy] Frame 0
class main.fullscreen.CFullScreenDummy extends main.fullscreen.CFullScreen
{
var raiseEvent;
function CFullScreenDummy () {
super();
}
function setFullScreen(value) {
raiseEvent();
}
function stateIsAccessible() {
return(false);
}
}
Symbol 556 MovieClip [__Packages.quizmaker.api.IQuizApi] Frame 0
interface quizmaker.api.IQuizApi
{
}
Symbol 557 MovieClip [__Packages.quizmaker.api.ISlidesCollection] Frame 0
interface quizmaker.api.ISlidesCollection
{
}
Symbol 558 MovieClip [__Packages.quizmaker.api.ISlide] Frame 0
interface quizmaker.api.ISlide
{
}
Symbol 559 MovieClip [__Packages.quizmaker.core.api.text.ITextRange] Frame 0
interface quizmaker.core.api.text.ITextRange
{
}
Symbol 560 MovieClip [__Packages.quizmaker.core.api.ISlideResources] Frame 0
interface quizmaker.core.api.ISlideResources
{
}
Symbol 561 MovieClip [__Packages.quizmaker.api.ISettings] Frame 0
interface quizmaker.api.ISettings
{
}
Symbol 562 MovieClip [__Packages.quizmaker.api.IUserInfo] Frame 0
interface quizmaker.api.IUserInfo
{
}
Symbol 563 MovieClip [__Packages.quizmaker.api.IFontManager] Frame 0
interface quizmaker.api.IFontManager
{
}
Symbol 564 MovieClip [__Packages.quizmaker.api.IMessagesManager] Frame 0
interface quizmaker.api.IMessagesManager
{
}
Symbol 565 MovieClip [__Packages.quizmaker.api.IResultsInfo] Frame 0
interface quizmaker.api.IResultsInfo
{
}
Symbol 566 MovieClip [__Packages.quizmaker.api.IResultScore] Frame 0
interface quizmaker.api.IResultScore
{
}
Symbol 567 MovieClip [__Packages.quizmaker.api.ISkin] Frame 0
interface quizmaker.api.ISkin
{
}
Symbol 568 MovieClip [__Packages.quizmaker.api.IQuestion] Frame 0
interface quizmaker.api.IQuestion extends quizmaker.api.ISlide
{
}
Symbol 569 MovieClip [__Packages.quizmaker.api.IQuizApiListener] Frame 0
interface quizmaker.api.IQuizApiListener
{
}
Symbol 570 MovieClip [__Packages.quizmaker.api.IImageAssetLoadListener] Frame 0
interface quizmaker.api.IImageAssetLoadListener
{
}
Symbol 571 MovieClip [__Packages.quizmaker.api.IVideoAssetLoadListener] Frame 0
interface quizmaker.api.IVideoAssetLoadListener
{
}
Symbol 572 MovieClip [__Packages.quizmaker.api.ISoundAssetLoadListener] Frame 0
interface quizmaker.api.ISoundAssetLoadListener
{
}
Symbol 573 MovieClip [__Packages.quizmaker.api.IFlashAssetLoadListener] Frame 0
interface quizmaker.api.IFlashAssetLoadListener
{
}
Symbol 574 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackControllerEx] Frame 0
interface fsplayer.api.IPresentationPlaybackControllerEx extends fsplayer.api.IPresentationPlaybackController
{
}
Symbol 575 MovieClip [__Packages.main.CMouseLayer] Frame 0
class main.CMouseLayer
{
function CMouseLayer () {
}
static function create(target, playerAPI, listener) {
var _local1 = target.createEmptyMovieClip("mouseLayer", -1);
var _local2 = playerAPI.getPresentationInfo();
var _local4 = _local2.getSlideWidth();
var _local3 = _local2.getSlideHeight();
_local1.beginFill(16711680, 0);
_local1.moveTo(0, 0);
_local1.lineTo(_local4, 0);
_local1.lineTo(_local4, _local3);
_local1.lineTo(0, _local3);
_local1.lineTo(0, 0);
_local1.endFill();
_local1.onRelease = function () {
listener.onRelease();
};
if (!playerAPI.getSettings().webLinks.slideAreaLink.href) {
_local1.useHandCursor = false;
}
return(_local1);
}
}
Symbol 576 MovieClip [__Packages.quizmaker.api.CQuizStatus] Frame 0
class quizmaker.api.CQuizStatus
{
function CQuizStatus () {
}
static var INIT = 0;
static var TEST = 1;
static var STOP = 2;
static var REVIEW = 3;
static var INIT_USER = 4;
}
Symbol 577 MovieClip [__Packages.quizmaker.api.IQuizApiEx] Frame 0
interface quizmaker.api.IQuizApiEx extends quizmaker.api.IQuizApi
{
}
Symbol 578 MovieClip [__Packages.quizmaker.core.api.IQuizPlayerCore] Frame 0
interface quizmaker.core.api.IQuizPlayerCore
{
}
Symbol 579 MovieClip [__Packages.quizmaker.core.api.IAuthorizationModule] Frame 0
interface quizmaker.core.api.IAuthorizationModule
{
}
Symbol 580 MovieClip [__Packages.quizmaker.core.api.IResultsProcessingModule] Frame 0
interface quizmaker.core.api.IResultsProcessingModule
{
}
Symbol 581 MovieClip [__Packages.quizmaker.core.api.IQuizCore] Frame 0
interface quizmaker.core.api.IQuizCore
{
}
Symbol 582 MovieClip [__Packages.quizmaker.core.api.ISettings] Frame 0
interface quizmaker.core.api.ISettings extends quizmaker.api.ISettings
{
}
Symbol 583 MovieClip [__Packages.quizmaker.core.api.ISlidesCollection] Frame 0
interface quizmaker.core.api.ISlidesCollection
{
}
Symbol 584 MovieClip [__Packages.quizmaker.core.api.ISlide] Frame 0
interface quizmaker.core.api.ISlide extends quizmaker.api.ISlide
{
}
Symbol 585 MovieClip [__Packages.quizmaker.core.api.ISlideListener] Frame 0
interface quizmaker.core.api.ISlideListener
{
}
Symbol 586 MovieClip [__Packages.quizmaker.core.api.question.IQuestion] Frame 0
interface quizmaker.core.api.question.IQuestion extends quizmaker.core.api.ISlide
{
}
Symbol 587 MovieClip [__Packages.quizmaker.core.api.resource.IResourcesContainer] Frame 0
interface quizmaker.core.api.resource.IResourcesContainer
{
}
Symbol 588 MovieClip [__Packages.quizmaker.core.api.resource.IResource] Frame 0
interface quizmaker.core.api.resource.IResource
{
}
Symbol 589 MovieClip [__Packages.quizmaker.core.api.resource.IImageAsset] Frame 0
interface quizmaker.core.api.resource.IImageAsset extends quizmaker.core.api.resource.IResource
{
}
Symbol 590 MovieClip [__Packages.quizmaker.core.api.resource.ISoundAsset] Frame 0
interface quizmaker.core.api.resource.ISoundAsset extends quizmaker.core.api.resource.IResource
{
}
Symbol 591 MovieClip [__Packages.quizmaker.core.api.resource.IVideoAsset] Frame 0
interface quizmaker.core.api.resource.IVideoAsset extends quizmaker.core.api.resource.IResource
{
}
Symbol 592 MovieClip [__Packages.quizmaker.core.api.resource.IFlashAsset] Frame 0
interface quizmaker.core.api.resource.IFlashAsset extends quizmaker.core.api.resource.IResource
{
}
Symbol 593 MovieClip [__Packages.quizmaker.core.api.IResultsInfo] Frame 0
interface quizmaker.core.api.IResultsInfo extends quizmaker.api.IResultsInfo
{
}
Symbol 594 MovieClip [__Packages.quizmaker.core.api.IResultScore] Frame 0
interface quizmaker.core.api.IResultScore extends quizmaker.api.IResultScore
{
}
Symbol 595 MovieClip [__Packages.quizmaker.core.api.IModule] Frame 0
interface quizmaker.core.api.IModule
{
}
Symbol 596 MovieClip [__Packages.quizmaker.core.api.action.IAction] Frame 0
interface quizmaker.core.api.action.IAction
{
}
Symbol 597 MovieClip [__Packages.quizmaker.core.api.event.IEvent] Frame 0
interface quizmaker.core.api.event.IEvent
{
}
Symbol 598 MovieClip [__Packages.quizmaker.core.api.IConfig] Frame 0
interface quizmaker.core.api.IConfig
{
}
Symbol 599 MovieClip [__Packages.main.CNullSkinEx] Frame 0
class main.CNullSkinEx extends main.CNullSkin
{
var m_slidesTarget, m_uiTarget, m_alert, m_messages, m_playbackResumer, m_presentation, getSkinTarget;
function CNullSkinEx (target) {
super(target);
m_slidesTarget = target.createEmptyMovieClip("slidesTarget", target.getNextHighestDepth());
m_uiTarget = target.createEmptyMovieClip("uiTarget", target.getNextHighestDepth());
m_alert = new com.flashspring.skins.ui.alert.CAlert(m_uiTarget);
m_alert.__set__embedFonts(true);
m_alert.__set__fontFamily("iSpringSkinFont");
Stage.addListener(this);
}
function initialize(playerAPI) {
super.initialize(playerAPI);
var _local5 = playerAPI.getSettings();
var _local6 = _local5.skin;
m_messages = _local6.messages;
var _local3 = m_alert.__get__window();
_local3.__set__okLabel(m_messages.ok);
_local3.__set__noLabel(m_messages.no);
_local3.__set__yesLabel(m_messages.yes);
m_playbackResumer = new com.flashspring.skins.api.CPlaybackResumer(playerAPI);
if (m_playbackResumer.resumeAvailable()) {
m_playbackResumer.beginResumeConfirmation();
m_alert.confirm(m_messages.resumeText, m_messages.resumeTitle, this, onResumePlaybackConfirmClosed, com.flashspring.skins.ui.alert.CAlertWindow.ICON_INFO);
}
onResize();
}
function createSlideAssetsTarget() {
return(m_slidesTarget);
}
function onResumePlaybackConfirmClosed(response) {
var _local2 = response == com.flashspring.skins.ui.alert.CAlertWindow.RESPONSE_YES;
m_playbackResumer.endResumeConfirmation(_local2);
}
function showPrecedingQuizNotCompletedAlert(slideIndex) {
var _local2 = m_messages.precedingQuizNotCompletedWindowTitle;
var _local3 = cpslabs.utils.CStringUtils.replace(m_messages.precedingQuizNotCompletedWindowText, "%SLIDE_INDEX%", String(slideIndex + 1));
m_alert.alert(_local3, _local2);
}
function showPrecedingQuizNotPassedAlert(slideIndex) {
var _local2 = m_messages.precedingQuizNotPassedWindowTitle;
var _local3 = cpslabs.utils.CStringUtils.replace(m_messages.precedingQuizNotPassedWindowText, "%SLIDE_INDEX%", "" + String(slideIndex + 1));
m_alert.alert(_local3, _local2);
}
function slideIndexToVisibleIndex(slideIndex) {
var _local3 = m_presentation.getSlides();
var _local2 = _local3.getSlideInfo(slideIndex);
return(_local2.getVisibleIndex());
}
function onSlideChangeRestiction(restriction) {
var _local2 = restriction.getType();
if (_local2 == fsplayer.api.restriction.CSlideChangeRestrictionType.PRECEDING_QUIZ_NOT_COMPLETED) {
var _local3 = restriction.getRelatedSlideIndex();
var _local5 = slideIndexToVisibleIndex(_local3);
showPrecedingQuizNotCompletedAlert(_local5);
} else if (_local2 == fsplayer.api.restriction.CSlideChangeRestrictionType.PRECEDING_QUIZ_NOT_PASSED) {
var _local3 = restriction.getRelatedSlideIndex();
var _local5 = slideIndexToVisibleIndex(_local3);
showPrecedingQuizNotPassedAlert(_local5);
}
}
function onResize() {
var _local3 = getSkinTarget()._width;
var _local2 = getSkinTarget()._height;
m_alert.setOverlaySize(_local3, _local2);
}
}
Symbol 600 MovieClip [__Packages.com.flashspring.skins.api.CPlaybackResumer] Frame 0
class com.flashspring.skins.api.CPlaybackResumer implements fsplayer.api.IPlaybackListener
{
var m_playbackSettings, m_playbackController, m_so, m_restoredSlideIndex;
function CPlaybackResumer (player) {
var _local4 = player.getSettings();
m_playbackSettings = _local4.playback;
var _local8 = m_playbackSettings.resumePresentationPlayback == "1";
if (_local8) {
m_playbackController = player.getPlaybackController();
m_playbackController.addListener(this);
var _local2 = player.getPresentationInfo();
var _local9 = _local2.getUniqueId();
m_so = SharedObject.getLocal(_local9);
m_restoredSlideIndex = Number(m_so.data.slideIndex);
var _local6 = ((m_so.data.playbackComplete != null) ? (m_so.data.playbackComplete == "1") : false);
var _local5 = player.getRestrictedPlaybackController();
var _local7 = _local2.getSlides().getVisibleSlide(0).getIndex();
var _local10 = _local5.getGotoSlideRestriction(m_restoredSlideIndex);
m_resumeAvailable = ((m_restoredSlideIndex > _local7) && (_local10 == null)) && (!_local6);
m_so.data.playbackComplete = "0";
}
}
function resumeAvailable() {
return(m_resumeAvailable);
}
function beginResumeConfirmation() {
if (m_playbackSettings.autoStart == "1") {
m_playbackSettings.autoStart = "0";
m_playbackSettings.autoStartDefault = "1";
}
}
function endResumeConfirmation(confirmed) {
if (m_playbackSettings.autoStartDefault == "1") {
m_playbackSettings.autoStart = "1";
m_playbackController.play();
}
if (confirmed && (resumeAvailable())) {
var _local2 = m_playbackSettings.autoStart && (m_playbackSettings.autoStart == "1");
m_playbackController.gotoSlide(m_restoredSlideIndex, _local2);
}
}
function onCurrentSlideIndexChanged(slideIndex) {
m_so.data.slideIndex = slideIndex;
}
function onHandleCloseRequest() {
}
function onPausePlayback() {
}
function onStartPlayback() {
}
function onAnimationStepChanged(stepIndex) {
}
function onSlidePositionChanged(position) {
}
function onSlideTransitionPhaseChanged(phase) {
}
function onSlideLoadingComplete(slideIndex) {
}
function onPresentationPlaybackComplete() {
m_so.data.playbackComplete = "1";
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function onPlaybackSuspended() {
}
function onPlaybackResumed() {
}
var m_resumeAvailable = false;
}
Symbol 601 MovieClip [__Packages.cpslabs.utils.IMessageBroadcaster] Frame 0
interface cpslabs.utils.IMessageBroadcaster
{
}
Symbol 602 MovieClip [__Packages.cpslabs.utils.CMessageBroadcaster] Frame 0
class cpslabs.utils.CMessageBroadcaster implements cpslabs.utils.IMessageBroadcaster
{
var m_events, m_id;
function CMessageBroadcaster () {
m_events = new Object();
}
function get id() {
return(m_id);
}
function set id(objectId) {
m_id = objectId;
//return(id);
}
function addListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
_local2 = new Array();
m_events[eventName] = _local2;
}
var _local3 = new Object();
_local3.handler = handler;
_local3.listener = listener;
_local2.push(_local3);
}
function removeListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
return(false);
}
if (listener == undefined) {
delete m_events[eventName];
return(true);
}
if (handler == undefined) {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if (_local4.listener == listener) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
} else {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if ((_local4.listener == listener) && (_local4.handler == handler)) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
}
return(false);
}
function broadcastMessage(eventName) {
var _local5 = m_events[eventName];
if (_local5 && (_local5.length > 0)) {
var _local6 = _local5.length;
arguments.shift();
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = _local5[_local3];
_local4.handler.apply(_local4.listener, arguments);
_local3++;
}
}
}
}
Symbol 603 MovieClip [__Packages.com.flashspring.skins.ui.alert.CAlert] Frame 0
class com.flashspring.skins.ui.alert.CAlert extends cpslabs.utils.CMessageBroadcaster
{
var m_overlay, m_window, m_closeListener, m_closeHandler, m_openMode;
function CAlert (target) {
super();
m_overlay = target.createEmptyMovieClip("overlay", target.getNextHighestDepth());
m_overlay.onRelease = function () {
};
m_overlay.useHandCursor = false;
cpslabs.utils.CGraphicsUtils.drawRect(m_overlay, 0, 0, 1, 1, 131586, 50);
m_window = createWindow(target);
m_window.addListener(com.flashspring.skins.ui.alert.CAlertWindow.EVENT_CLOSE, this, onWindowClose);
m_window.addListener(com.flashspring.skins.ui.alert.CAlertWindow.EVENT_START_DRAG, this, onWindowStartDrag);
m_window.addListener(com.flashspring.skins.ui.alert.CAlertWindow.EVENT_STOP_DRAG, this, onWindowStopDrag);
close();
}
function get window() {
return(m_window);
}
function createWindow(target) {
return(new com.flashspring.skins.ui.alert.CAlertWindow(target));
}
function setOverlaySize(w, h) {
if ((!w) || (!h)) {
return(undefined);
}
m_overlay._width = w;
m_overlay._height = h;
updateWindowScale();
updateWindowPosition();
}
function updateWindowScale() {
var _local6 = 1;
var _local4 = (m_window.__get__width() / (m_window.__get__movieClip()._xscale / 100)) + 50;
if (_local4 > m_overlay._width) {
_local6 = m_overlay._width / _local4;
}
var _local5 = 1;
var _local3 = (m_window.__get__height() / (m_window.__get__movieClip()._yscale / 100)) + 50;
if (_local3 > m_overlay._height) {
_local5 = m_overlay._height / _local3;
}
var _local2 = Math.min(_local6, _local5);
m_window.__get__movieClip()._xscale = _local2 * 100;
m_window.__get__movieClip()._yscale = _local2 * 100;
}
function updateWindowPosition() {
m_window.__set__x((m_overlay._width - m_window.__get__width()) / 2);
m_window.__set__y((m_overlay._height - m_window.__get__height()) / 2);
}
function set embedFonts(value) {
m_window.__set__embedFonts(value);
//return(embedFonts);
}
function get embedFonts() {
return(m_window.__get__embedFonts());
}
function set fontFamily(value) {
m_window.__set__fontFamily(value);
//return(fontFamily);
}
function get fontFamily() {
return(m_window.__get__fontFamily());
}
function alert(msg, title, closeListener, closeHandler, width) {
open(msg, title, com.flashspring.skins.ui.alert.CAlertWindow.BUTTONS_OK, com.flashspring.skins.ui.alert.CAlertWindow.ICON_INFO, closeListener, closeHandler);
}
function confirm(msg, title, closeListener, closeHandler, iconId, width) {
if (iconId === undefined) {
iconId = com.flashspring.skins.ui.alert.CAlertWindow.ICON_NONE;
}
open(msg, title, com.flashspring.skins.ui.alert.CAlertWindow.BUTTONS_YES_NO, iconId, closeListener, closeHandler, width);
}
function open(msg, title, buttonsMode, iconId, closeListener, closeHandler, width) {
if (!width) {
width = DEFAULT_WINDOW_WIDTH;
}
m_overlay._visible = true;
if (closeListener && (closeHandler)) {
m_closeListener = closeListener;
m_closeHandler = closeHandler;
m_window.addListener(com.flashspring.skins.ui.alert.CAlertWindow.EVENT_CLOSE, m_closeListener, m_closeHandler);
} else {
m_closeHandler = null;
m_closeListener = null;
}
m_window.open(msg, title, buttonsMode, iconId, width);
updateWindowScale();
updateWindowPosition();
}
function close() {
m_openMode = null;
if (m_closeListener && (m_closeHandler)) {
m_window.removeListener(com.flashspring.skins.ui.alert.CAlertWindow.EVENT_CLOSE, m_closeListener, m_closeHandler);
}
m_closeHandler = null;
m_closeListener = null;
m_window.close();
m_overlay._visible = false;
}
function isOpen() {
return(m_window.__get__visible());
}
function onWindowClose(response) {
if (m_closeHandler && (m_closeListener)) {
m_closeHandler.call(m_closeListener, response);
}
close();
}
function onWindowStartDrag() {
var _local2 = m_window.__get__movieClip();
_local2.startDrag(false, 0, 0, m_overlay._width - m_window.__get__width(), m_overlay._height - m_window.__get__height());
_local2.onMouseMove = function () {
updateAfterEvent();
};
}
function onWindowStopDrag() {
var _local2 = m_window.__get__movieClip();
_local2.stopDrag();
delete _local2.onMouseMove;
_local2.onMouseMove = null;
}
static var DEFAULT_WINDOW_WIDTH = 320;
}
Symbol 604 MovieClip [__Packages.cpslabs.ui.CComponent] Frame 0
class cpslabs.ui.CComponent
{
var m_parent, m_mc, m_componentBroadcaster, m_tooltip, m_tooltipParams;
function CComponent (parent, name, depth) {
if (parent) {
m_parent = parent;
if (depth == undefined) {
depth = parent.getNextHighestDepth();
}
m_mc = parent.createEmptyMovieClip(((name != undefined) ? (name) : ("m" + depth)), depth);
m_mc.tabEnabled = false;
}
m_componentBroadcaster = new cpslabs.utils.CMessageBroadcaster();
}
function setMovieClip(mc) {
m_mc = mc;
m_parent = mc._parent;
}
function get parent() {
return(m_parent);
}
function set id(componentId) {
m_id = componentId;
//return(id);
}
function get id() {
return(m_id);
}
function addListener(eventName, l, fn) {
m_componentBroadcaster.addListener(eventName, l, fn);
}
function removeListener(eventName, l, fn) {
return(m_componentBroadcaster.removeListener(eventName, l, fn));
}
function get movieClip() {
return(m_mc);
}
function set visible(v) {
if (movieClip._visible != v) {
movieClip._visible = v;
if (v) {
onShow();
} else {
onHide();
}
}
//return(visible);
}
function get visible() {
return(movieClip._visible);
}
function set enabled(e) {
if (m_enabled != e) {
m_enabled = e;
if (e) {
onEnable();
} else {
onDisable();
}
}
//return(enabled);
}
function get enabled() {
return(m_enabled);
}
function get width() {
return(getWidth());
}
function get height() {
return(getHeight());
}
function set width(w) {
var _local2 = new Object();
_local2.width = w;
_local2.height = height;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
w = _local2.width;
var _local3 = _local2.height;
if ((w != width) || (_local3 != height)) {
resize(w, _local3);
onResize(w, _local3);
broadcastMessage("resize", this, w, _local3);
}
//return(width);
}
function set height(h) {
var _local2 = new Object();
var _local5 = width;
var _local6 = height;
_local2.width = _local5;
_local2.height = h;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
var _local4 = _local2.width;
h = _local2.height;
if ((_local4 != _local5) || (h != _local6)) {
resize(_local4, h);
onResize(_local4, h);
broadcastMessage("resize", this, _local4, h);
}
//return(height);
}
function set x(value) {
movieClip._x = value;
onMove(value, y);
//return(x);
}
function get x() {
return(movieClip._x);
}
function set y(value) {
movieClip._y = value;
onMove(x, value);
//return(y);
}
function get y() {
return(movieClip._y);
}
function set scaleX(value) {
movieClip._xscale = value * 100;
onScale(value, scaleY);
//return(scaleX);
}
function get scaleX() {
return(movieClip._xscale / 100);
}
function set scaleY(value) {
movieClip._yscale = value * 100;
onScale(scaleX, value);
//return(scaleY);
}
function get scaleY() {
return(movieClip._yscale / 100);
}
function get totalScaleX() {
var _local3 = scaleX;
var _local2 = movieClip._parent;
while (_local2) {
_local3 = _local3 * (_local2._xscale / 100);
_local2 = _local2._parent;
}
return(_local3);
}
function get alpha() {
return(movieClip._alpha);
}
function set alpha(a) {
movieClip._alpha = a;
//return(alpha);
}
function get autoUpdate() {
return(m_autoUpdate);
}
function set autoUpdate(enableAutoUpdate) {
m_autoUpdate = enableAutoUpdate;
if (enableAutoUpdate && (m_needUpdate)) {
update();
m_needUpdate = false;
}
//return(autoUpdate);
}
function remove() {
if (m_tooltip) {
m_tooltip.hide();
}
m_mc.removeMovieClip();
delete m_mc;
}
function getWidth() {
return(movieClip._width);
}
function getHeight() {
return(movieClip._height);
}
function onEnable() {
}
function onDisable() {
}
function onShow() {
}
function onHide() {
}
function onMove(newX, newY) {
}
function onScale(scaleX, scaleY) {
}
function broadcastMessage(eventName) {
m_componentBroadcaster.broadcastMessage.apply(m_componentBroadcaster, arguments);
}
function invalidate() {
m_needUpdate = true;
if (m_autoUpdate) {
update();
m_needUpdate = false;
}
}
function update() {
}
function onResizing(newSize) {
}
function resize(w, h) {
var _local2 = movieClip;
_local2._width = w;
_local2._height = h;
}
function onResize(w, h) {
}
function initMouseEvents(mc, listener, handleMouseMove) {
if (!mc) {
mc = movieClip;
}
if (listener == undefined) {
listener = this;
}
var thisPtr = this;
mc.onRollOver = function () {
listener.onRollOver(thisPtr);
};
mc.onRollOut = function () {
listener.onRollOut(thisPtr);
};
mc.onPress = function () {
listener.onPress(thisPtr);
};
mc.onRelease = function () {
listener.onRelease(thisPtr);
};
mc.onReleaseOutside = function () {
listener.onReleaseOutside(thisPtr);
};
mc.onDragOver = function () {
listener.onDragOver(thisPtr);
};
mc.onDragOut = function () {
listener.onDragOut(thisPtr);
};
if (handleMouseMove) {
mc.onMouseMove = function () {
listener.onMouseMove(thisPtr);
};
}
}
function removeMouseEvents(mc) {
if (!mc) {
mc = movieClip;
}
delete mc.onRelease;
delete mc.onReleaseOutside;
delete mc.onPress;
delete mc.onRollOver;
delete mc.onRollOut;
delete mc.onDragOver;
delete mc.onDragOut;
delete mc.onMouseMove;
}
function init() {
}
function addTooltip(tooltip, tooltipParams) {
tooltipParams = (tooltipParams ? (tooltipParams) : (new Object()));
m_tooltip = tooltip;
m_tooltipParams = tooltipParams;
var rollOverHandler = movieClip.onRollOver;
var rollOutHandler = movieClip.onRollOut;
var pressHandler = movieClip.onPress;
var thisPtr = this;
movieClip.onRollOver = function () {
tooltip.useCustomContent = false;
for (var _local1 in tooltipParams) {
tooltip[_local1] = tooltipParams[_local1];
}
thisPtr.prepareTooltip();
tooltip.show();
if (rollOverHandler) {
rollOverHandler();
}
};
movieClip.onRollOut = function () {
tooltip.hide();
thisPtr.clearTooltip();
if (rollOutHandler) {
rollOutHandler();
}
};
movieClip.onPress = function () {
tooltip.hide();
thisPtr.clearTooltip();
if (pressHandler) {
pressHandler();
}
};
}
function prepareTooltip() {
}
function clearTooltip() {
}
function get tooltip() {
return(m_tooltip);
}
function get tooltipParams() {
return(m_tooltipParams);
}
var m_enabled = true;
var m_id = "";
var m_needUpdate = false;
var m_autoUpdate = true;
}
Symbol 605 MovieClip [__Packages.cpslabs.ITooltip] Frame 0
interface cpslabs.ITooltip
{
}
Symbol 606 MovieClip [__Packages.com.flashspring.skins.ui.alert.CAlertWindow] Frame 0
class com.flashspring.skins.ui.alert.CAlertWindow extends cpslabs.ui.CComponent
{
var m_bg, __get__movieClip, m_header, m_messageLabel, m_btnOk, m_btnYes, m_btnNo, m_keyboardListener, m_buttons, m_icons, __set__width, __set__height, __get__visible, __set__visible, broadcastMessage;
function CAlertWindow (target) {
super(target);
m_bg = __get__movieClip().attachMovie("alert_bg.swf", "bg", __get__movieClip().getNextHighestDepth());
m_header = new com.flashspring.skins.ui.alert.CAlertWindowHeader(__get__movieClip());
m_header.__set__x(HEADER_PADDING);
m_header.__set__y(HEADER_PADDING);
m_header.__set__height(HEADER_HEIGHT);
createIcons();
createButtons();
m_messageLabel = new cpslabs.ui.CLabel(__get__movieClip());
m_messageLabel.__set__fontSize(12);
m_messageLabel.__set__multiline(true);
m_messageLabel.__set__wordWrap(true);
m_messageLabel.__set__y((m_header.__get__y() + m_header.__get__height()) + CONTENT_PADDING);
m_header.addListener(com.flashspring.skins.ui.alert.CAlertWindowHeader.EVENT_CLOSE, this, onHeaderClose);
m_header.addListener(com.flashspring.skins.ui.alert.CAlertWindowHeader.EVENT_PRESS, this, onHeaderPress);
m_header.addListener(com.flashspring.skins.ui.alert.CAlertWindowHeader.EVENT_RELEASE, this, onHeaderRelease);
m_btnOk.addListener(cpslabs.ui.CBasicButton.EVENT_RELEASE, this, onBtnOkRelease);
m_btnYes.addListener(cpslabs.ui.CBasicButton.EVENT_RELEASE, this, onBtnYesRelease);
m_btnNo.addListener(cpslabs.ui.CBasicButton.EVENT_RELEASE, this, onBtnNoRelease);
m_keyboardListener = new Object();
var thisPtr = this;
m_keyboardListener.onKeyDown = function () {
thisPtr.onKeyDown();
};
close();
}
function get okLabel() {
return(m_btnOk.__get__label());
}
function set okLabel(value) {
m_btnOk.__set__label(value);
//return(okLabel);
}
function get noLabel() {
return(m_btnNo.__get__label());
}
function set noLabel(value) {
m_btnNo.__set__label(value);
//return(noLabel);
}
function get yesLabel() {
return(m_btnYes.__get__label());
}
function set yesLabel(value) {
m_btnYes.__set__label(value);
//return(yesLabel);
}
function createButtons() {
m_buttons = new Array();
m_btnOk = createButton(__get__movieClip(), BTN_OK_LABEL);
m_btnYes = createButton(__get__movieClip(), BTN_YES_LABEL);
m_btnNo = createButton(__get__movieClip(), BTN_NO_LABEL);
m_buttons.push(m_btnOk);
m_buttons.push(m_btnYes);
m_buttons.push(m_btnNo);
}
function createIcons() {
m_icons = new Object();
m_icons[ICON_INFO] = createIcon("alert_info_icon.swf");
cpslabs.utils.CLayoutUtils.setObjectsPosition(m_icons, CONTENT_PADDING, undefined);
}
function createIcon(assetName) {
var _local2 = new cpslabs.ui.CMovieClip(__get__movieClip());
_local2.attachMovie("alert_info_icon.swf");
_local2.__set__width(ICON_SIZE);
_local2.__set__height(ICON_SIZE);
return(_local2);
}
function createButton(target, label) {
var _local1 = new cpslabs.ui.CButton(target);
_local1.init({normal:"alert_button_normal.swf", over:"alert_button_over.swf", down:"alert_button_down.swf", disabled:"alert_button_disabled.swf"});
_local1.__set__label(label);
_local1.__set__autoSize(true);
_local1.__set__leftMargin(_local1.__set__rightMargin(5));
_local1.__set__fontSize(12);
_local1.__set__height(BUTTON_HEIGHT);
return(_local1);
}
function onKeyDown() {
if (Key.isDown(13)) {
if (m_btnOk.__get__visible()) {
onBtnOkRelease();
} else if (m_btnYes.__get__visible()) {
onBtnYesRelease();
}
} else if (Key.isDown(27)) {
if (m_btnNo.__get__visible()) {
onBtnNoRelease();
}
}
}
function setIcon(iconId) {
for (var _local4 in m_icons) {
var _local2 = m_icons[_local4];
_local2.__set__visible(_local4 == iconId);
}
}
function setButtonsMode(mode) {
for (var _local3 in m_buttons) {
var _local2 = m_buttons[_local3];
_local2.__set__visible(false);
}
switch (mode) {
case BUTTONS_OK :
m_btnOk.__set__visible(true);
break;
case BUTTONS_YES_NO :
m_btnYes.__set__visible(true);
m_btnNo.__set__visible(true);
}
}
function open(msg, title, buttonsMode, iconId, width) {
var _local6 = (((BUTTONS_WINDOW_PADDING + m_btnYes.__get__width()) + BUTTONS_GAP) + m_btnNo.__get__width()) + BUTTONS_WINDOW_PADDING;
width = Math.max(_local6, width);
__set__width(width);
if (title == undefined) {
title = "";
}
setButtonsMode(buttonsMode);
setIcon(iconId);
if (iconId && (iconId != ICON_NONE)) {
var _local4 = m_icons[iconId];
m_messageLabel.__set__x((_local4.__get__x() + _local4.__get__width()) + (CONTENT_PADDING / 2));
} else {
m_messageLabel.__set__x(CONTENT_PADDING);
}
m_header.__set__width(width);
m_header.__set__title(title);
m_messageLabel.__set__text(msg);
m_messageLabel.__set__width((width - m_messageLabel.__get__x()) - CONTENT_PADDING);
__set__height(((((m_messageLabel.__get__y() + m_messageLabel.__get__textHeight()) + CONTENT_PADDING) + BUTTON_HEIGHT) + CONTENT_PADDING) + BOTTOM_MARGIN);
Key.addListener(m_keyboardListener);
if (!__get__visible()) {
__set__visible(true);
}
}
function close() {
Key.removeListener(m_keyboardListener);
if (__get__visible()) {
__set__visible(false);
}
}
function set embedFonts(embed) {
m_header.__set__embedFonts(embed);
m_messageLabel.__set__embedFonts(embed);
for (var _local4 in m_buttons) {
var _local2 = m_buttons[_local4];
_local2.__set__embedFonts(embed);
_local2.onResize();
}
//return(embedFonts);
}
function get embedFonts() {
return(m_messageLabel.__get__embedFonts());
}
function set fontFamily(family) {
m_header.__set__fontFamily(family);
m_messageLabel.__set__fontFamily(family);
for (var _local4 in m_buttons) {
var _local2 = m_buttons[_local4];
_local2.__set__fontFamily(family);
_local2.onResize();
}
//return(fontFamily);
}
function get fontFamily() {
return(m_messageLabel.__get__fontFamily());
}
function onBtnOkRelease() {
close();
broadcastMessage(EVENT_CLOSE, RESPONSE_OK);
}
function onBtnYesRelease() {
close();
broadcastMessage(EVENT_CLOSE, RESPONSE_YES);
}
function onBtnNoRelease() {
close();
broadcastMessage(EVENT_CLOSE, RESPONSE_NO);
}
function onHeaderClose() {
broadcastMessage(EVENT_CLOSE);
}
function onHeaderPress() {
broadcastMessage(EVENT_START_DRAG);
}
function onHeaderRelease() {
broadcastMessage(EVENT_STOP_DRAG);
}
function resize(w, h) {
m_bg._width = w;
m_bg._height = h;
m_header.__set__width(w - (HEADER_PADDING * 2));
m_messageLabel.__set__width((w - m_messageLabel.__get__x()) - CONTENT_PADDING);
m_messageLabel.__set__height((h - (CONTENT_PADDING * 3)) - BUTTON_HEIGHT);
cpslabs.utils.CLayoutUtils.setObjectsPosition(m_icons, undefined, m_messageLabel.__get__y() + ((m_messageLabel.__get__height() - ICON_SIZE) / 2));
cpslabs.utils.CLayoutUtils.centeredHBox([m_btnOk], 0, w);
cpslabs.utils.CLayoutUtils.centeredHBox([m_btnYes, m_btnNo], 0, w, BUTTONS_GAP);
cpslabs.utils.CLayoutUtils.setObjectsPosition(m_buttons, undefined, ((h - BOTTOM_MARGIN) - CONTENT_PADDING) - BUTTON_HEIGHT);
}
static var EVENT_CLOSE = "close";
static var EVENT_START_DRAG = "startDrag";
static var EVENT_STOP_DRAG = "stopDrag";
static var RESPONSE_OK = "ok";
static var RESPONSE_YES = "yes";
static var RESPONSE_NO = "no";
static var BUTTONS_OK = "ok";
static var BUTTONS_YES_NO = "yesNo";
static var ICON_NONE = "none";
static var ICON_INFO = "info";
static var BTN_OK_LABEL = "Ok";
static var BTN_YES_LABEL = "Yes";
static var BTN_NO_LABEL = "No";
static var HEADER_PADDING = 1;
static var HEADER_HEIGHT = 25;
static var CONTENT_PADDING = 15;
static var BOTTOM_MARGIN = 10;
static var BUTTONS_GAP = 7;
static var BUTTON_WIDTH = 62;
static var BUTTON_HEIGHT = 23;
static var BUTTONS_WINDOW_PADDING = 15;
static var ICON_SIZE = 33;
}
Symbol 607 MovieClip [__Packages.com.flashspring.skins.ui.alert.CAlertWindowHeader] Frame 0
class com.flashspring.skins.ui.alert.CAlertWindowHeader extends cpslabs.ui.CComponent
{
var m_bg, __get__movieClip, m_btnClose, m_title, broadcastMessage, height;
function CAlertWindowHeader (target) {
super(target);
m_bg = __get__movieClip().attachMovie("alert_header.swf", "header", __get__movieClip().getNextHighestDepth());
var thisPtr = this;
m_bg.onPress = function () {
thisPtr.broadcastMessage(com.flashspring.skins.ui.alert.CAlertWindowHeader.EVENT_PRESS);
};
m_bg.onRelease = function () {
thisPtr.broadcastMessage(com.flashspring.skins.ui.alert.CAlertWindowHeader.EVENT_RELEASE);
};
m_bg.onReleaseOutside = function () {
thisPtr.broadcastMessage(com.flashspring.skins.ui.alert.CAlertWindowHeader.EVENT_RELEASE);
};
m_btnClose = new cpslabs.ui.CBasicButton(__get__movieClip());
m_btnClose.init({normal:"alert_close_button_normal.swf", over:"alert_close_button_over.swf", down:"alert_close_button_over.swf"});
m_title = new cpslabs.ui.CLabel(__get__movieClip());
m_title.__set__color(16777215);
m_title.__set__fontBold(true);
m_btnClose.addListener(cpslabs.ui.CBasicButton.EVENT_RELEASE, this, onCloseButtonClick);
}
function set title(value) {
m_title.__set__autoSize(true);
m_title.__set__text(value);
updateTitlePosition();
//return(title);
}
function get title() {
return(m_title.__get__text());
}
function set embedFonts(embed) {
m_title.__set__embedFonts(embed);
//return(embedFonts);
}
function get embedFonts() {
return(m_title.__get__embedFonts());
}
function set fontFamily(family) {
m_title.__set__fontFamily(family);
//return(fontFamily);
}
function get fontFamily() {
return(m_title.__get__fontFamily());
}
function onCloseButtonClick() {
broadcastMessage(EVENT_CLOSE);
}
function resize(w, h) {
m_bg._width = w;
m_bg._height = h;
m_btnClose.__set__y((h - m_btnClose.__get__height()) / 2);
m_btnClose.__set__x((w - m_btnClose.__get__width()) - m_btnClose.__get__y());
updateTitlePosition(h);
}
function updateTitlePosition(h) {
if (h === undefined) {
h = height;
}
m_title.__set__x(m_title.__set__y((h - m_title.__get__height()) / 2));
var _local3 = (m_btnClose.__get__x() - m_title.__get__x()) - TITLE_RIGHT_MARGIN;
m_title.__set__autoSize(false);
m_title.__set__width(_local3);
}
static var EVENT_CLOSE = "close";
static var EVENT_PRESS = "press";
static var EVENT_RELEASE = "release";
static var TITLE_RIGHT_MARGIN = 5;
}
Symbol 608 MovieClip [__Packages.cpslabs.ui.CLabel] Frame 0
class cpslabs.ui.CLabel extends cpslabs.ui.CComponent
{
var m_color, m_disabledColor, __get__movieClip, m_field, m_format, __get__enabled, invalidate;
function CLabel (mcParent, name, depth) {
super(mcParent, name, depth);
m_color = 0;
m_disabledColor = 8421504 /* 0x808080 */;
__get__movieClip().createTextField("T", 1, 0, 0, 0, 0);
m_field = __get__movieClip().T;
m_field.embedFonts = false;
m_field.autoSize = "left";
m_field.html = false;
m_field.selectable = false;
m_format = new TextFormat();
m_format.font = "Arial";
m_format.size = 12;
m_format.align = "left";
m_format.target = "_self";
m_format.url = "";
}
function get html() {
return(m_field.html);
}
function set html(useHtml) {
m_field.html = useHtml;
//return(html);
}
function set antiAliasType(aat) {
m_field.antiAliasType = aat;
//return(antiAliasType);
}
function get antiAliasType() {
return(m_field.antiAliasType);
}
function update() {
m_format.color = (__get__enabled() ? (m_color) : (m_disabledColor));
m_field.setTextFormat(m_format);
}
function onEnable() {
invalidate();
}
function onDisable() {
invalidate();
}
function resize(w, h) {
m_field._width = w;
m_field._height = h;
}
function get text() {
return((m_field.html ? (m_field.htmlText) : (m_field.text)));
}
function set text(t) {
if (m_field.html) {
m_field.htmlText = t;
} else {
m_field.text = t;
}
invalidate();
//return(text);
}
function get color() {
return(m_color);
}
function get wordWrap() {
return(m_field.wordWrap);
}
function set wordWrap(wrdWrap) {
m_field.wordWrap = wrdWrap;
//return(wordWrap);
}
function set color(c) {
m_color = c;
invalidate();
//return(color);
}
function get disabledColor() {
return(m_disabledColor);
}
function set disabledColor(c) {
m_disabledColor = c;
invalidate();
//return(disabledColor);
}
function get embedFonts() {
return(m_field.embedFonts);
}
function set embedFonts(e) {
m_field.embedFonts = e;
invalidate();
//return(embedFonts);
}
function get fontFamily() {
return(m_format.font);
}
function set fontFamily(f) {
m_format.font = f;
invalidate();
//return(fontFamily);
}
function get fontSize() {
return(m_format.size);
}
function set fontSize(s) {
m_format.size = s;
invalidate();
//return(fontSize);
}
function get fontBold() {
return(m_format.bold);
}
function set fontBold(b) {
m_format.bold = b;
invalidate();
//return(fontBold);
}
function get fontItalic() {
return(m_format.italic);
}
function set fontItalic(i) {
m_format.italic = i;
invalidate();
//return(fontItalic);
}
function get fontUnderline() {
return(m_format.underline);
}
function set fontUnderline(u) {
m_format.underline = u;
invalidate();
//return(fontUnderline);
}
function get textAlign() {
return(m_format.align);
}
function set textAlign(a) {
m_format.align = a;
invalidate();
//return(textAlign);
}
function get autoSize() {
return(m_field.autoSize);
}
function set autoSize(a) {
m_field.autoSize = a;
invalidate();
//return(autoSize);
}
function get url() {
return(m_format.url);
}
function set url(u) {
m_format.url = u;
invalidate();
//return(url);
}
function get target() {
return(m_format.target);
}
function set target(t) {
m_format.target = t;
invalidate();
//return(target);
}
function get selectable() {
return(m_field.selectable);
}
function set selectable(s) {
m_field.selectable = s;
//return(selectable);
}
function get multiline() {
return(m_field.multiline);
}
function set multiline(m) {
m_field.multiline = m;
//return(multiline);
}
function get textWidth() {
return(m_field.textWidth);
}
function get textHeight() {
return(m_field.textHeight);
}
}
Symbol 609 MovieClip [__Packages.cpslabs.ui.CBasicButton] Frame 0
class cpslabs.ui.CBasicButton extends cpslabs.ui.CComponent
{
var initMouseEvents, m_statesMC, __get__movieClip, m_states, m_hitArea, m_visibleStateIndex, invalidate, __get__enabled, broadcastMessage, m_tooltip, m_savedTooltipHanderls, removeMouseEvents;
function CBasicButton (parent, name, depth) {
super(parent, name, depth);
initMouseEvents();
}
function initButtonStates(falseUp, falseOver, falseDown, falseDisabled, trueUp, trueOver, trueDown, trueDisabled) {
if (m_statesMC) {
m_statesMC.remove();
}
m_statesMC = new cpslabs.ui.CMovieClip(__get__movieClip(), null, 0);
m_states = new Array();
var _local5 = 0;
while (_local5 < arguments.length) {
var _local3;
var _local4 = arguments[_local5];
if ((_local4 != undefined) && (_local4 != "")) {
_local3 = new cpslabs.ui.CMovieClip(m_statesMC.__get__movieClip());
_local3.attachMovie(_local4);
_local3.__set__visible(false);
}
m_states.push(_local3);
_local5++;
}
if (m_hitArea) {
m_hitArea.remove();
}
m_hitArea = new cpslabs.ui.CMovieClip(m_statesMC.__get__movieClip());
m_hitArea.attachMovie(arguments[0]);
m_hitArea.__get__movieClip()._alpha = 0;
m_visibleStateIndex = undefined;
setState(STATE_NORMAL);
}
function init(buttonStates) {
initButtonStates(buttonStates.normal, buttonStates.over, buttonStates.down, buttonStates.disabled, buttonStates.selectedNormal, buttonStates.selectedOver, buttonStates.selectedDown, buttonStates.selectedDisabled);
}
function addMouseEventListener(mc, listener, handleMouseMove) {
initMouseEvents(mc, listener, handleMouseMove);
}
function get toggle() {
return(m_toggle);
}
function set toggle(t) {
m_toggle = t;
//return(toggle);
}
function get selected() {
return(m_selected);
}
function set selected(s) {
if (s != m_selected) {
m_selected = s;
}
invalidate();
//return(selected);
}
function setVisibleState(stateIndex) {
var _local3 = m_states[stateIndex];
if (!_local3) {
switch (stateIndex) {
case STATE_NORMAL :
return(undefined);
case STATE_OVER :
setVisibleState(STATE_NORMAL);
return(undefined);
case STATE_DOWN :
setVisibleState(STATE_OVER);
return(undefined);
case STATE_DISABLED :
setVisibleState(STATE_NORMAL);
return(undefined);
case STATE_NORMAL_CHECKED :
setVisibleState(STATE_NORMAL);
return(undefined);
case STATE_OVER_CHECKED :
setVisibleState((m_states[STATE_NORMAL_CHECKED] ? (STATE_NORMAL_CHECKED) : (STATE_OVER)));
return(undefined);
case STATE_DOWN_CHECKED :
setVisibleState((m_states[STATE_OVER_CHECKED] ? (STATE_OVER_CHECKED) : (STATE_DOWN)));
return(undefined);
case STATE_DISABLED_CHECKED :
setVisibleState(STATE_DISABLED);
return(undefined);
}
}
if (m_visibleStateIndex != stateIndex) {
m_states[m_visibleStateIndex].visible = false;
m_states[stateIndex].visible = true;
m_visibleStateIndex = stateIndex;
}
}
function setState(stateIndex) {
var _local2 = (__get__enabled() ? (stateIndex) : (STATE_DISABLED)) + (selected ? (STATE_NORMAL_CHECKED) : 0);
setVisibleState(_local2);
broadcastMessage(EVENT_STATE_CHANGED, this, _local2);
}
function update() {
setState((m_mouseIsOver ? ((m_mouseIsPressed ? (STATE_DOWN) : (STATE_OVER))) : (STATE_NORMAL)));
}
function onPress() {
if (__get__enabled()) {
m_mouseIsPressed = true;
update();
broadcastMessage(EVENT_PRESS, this);
}
}
function onRelease() {
if (__get__enabled() && (m_mouseIsPressed)) {
m_mouseIsPressed = false;
if (m_toggle) {
m_selected = !m_selected;
}
invalidate();
broadcastMessage(EVENT_RELEASE, this);
if (m_toggle) {
broadcastMessage(EVENT_TOGGLE, this);
}
}
}
function onRollOver() {
m_mouseIsOver = true;
update();
broadcastMessage(EVENT_ROLL_OVER, this);
}
function onRollOut() {
m_mouseIsOver = false;
invalidate();
broadcastMessage(EVENT_ROLL_OUT, this);
}
function onDragOver() {
m_mouseIsOver = true;
invalidate();
broadcastMessage(EVENT_DRAG_OVER, this);
}
function onDragOut() {
m_mouseIsOver = false;
invalidate();
broadcastMessage(EVENT_DRAG_OUT, this);
}
function isPressedButtonState() {
return(m_mouseIsPressed && (m_mouseIsOver));
}
function onDisable() {
m_mouseIsPressed = false;
m_mouseIsOver = false;
invalidate();
if (m_tooltip) {
m_savedTooltipHanderls = {onRollOver:__get__movieClip().onRollOver, onRollOut:__get__movieClip().onRollOut, onPress:__get__movieClip().onPress};
}
removeMouseEvents();
}
function onEnable() {
invalidate();
initMouseEvents();
if (m_savedTooltipHanderls) {
__get__movieClip().onRollOver = m_savedTooltipHanderls.onRollOver;
__get__movieClip().onRollOut = m_savedTooltipHanderls.onRollOut;
__get__movieClip().onPress = m_savedTooltipHanderls.onPress;
m_savedTooltipHanderls = null;
}
}
function onReleaseOutside() {
if (__get__enabled()) {
m_mouseIsOver = (m_mouseIsPressed = false);
invalidate();
broadcastMessage(EVENT_RELEASE_OUTSIDE, this);
}
setState(STATE_NORMAL);
}
function resize(w, h) {
if (w != m_hitArea.__get__width()) {
var _local2 = 0;
while (_local2 < m_states.length) {
m_states[_local2].width = w;
_local2++;
}
}
if (h != m_hitArea.__get__height()) {
var _local2 = 0;
while (_local2 < m_states.length) {
m_states[_local2].height = h;
_local2++;
}
}
m_hitArea.__set__width(w);
m_hitArea.__set__height(h);
}
function getWidth() {
return(m_hitArea.__get__width());
}
function getHeight() {
return(m_hitArea.__get__height());
}
function getStates() {
return(m_states);
}
static var EVENT_PRESS = "press";
static var EVENT_RELEASE = "release";
static var EVENT_TOGGLE = "toggle";
static var EVENT_ROLL_OVER = "rollOver";
static var EVENT_ROLL_OUT = "rollOut";
static var EVENT_DRAG_OVER = "dragOver";
static var EVENT_DRAG_OUT = "dragOut";
static var EVENT_RELEASE_OUTSIDE = "releaseOutside";
static var EVENT_STATE_CHANGED = "stateChanged";
static var STATE_NORMAL = 0;
static var STATE_OVER = 1;
static var STATE_DOWN = 2;
static var STATE_DISABLED = 3;
static var STATE_NORMAL_CHECKED = 4;
static var STATE_OVER_CHECKED = 5;
static var STATE_DOWN_CHECKED = 6;
static var STATE_DISABLED_CHECKED = 7;
var m_mouseIsPressed = false;
var m_mouseIsOver = false;
var m_toggle = false;
var m_selected = false;
}
Symbol 610 MovieClip [__Packages.cpslabs.ui.CMovieClip] Frame 0
class cpslabs.ui.CMovieClip extends cpslabs.ui.CComponent
{
var m_source, m_content, invalidate, __get__movieClip;
function CMovieClip (parent, name, depth) {
super(parent, name, depth);
}
function set source(src) {
if (m_source != src) {
if (m_content) {
m_content.removeMovieClip();
delete m_content;
}
m_source = src;
attachMovie(src);
invalidate();
}
//return(source);
}
function get source() {
return(m_source);
}
function get content() {
return(m_content);
}
function createEmptyMovieClip(name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().createEmptyMovieClip(((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function attachMovie(assetName, name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().attachMovie(assetName, ((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
if (_local2 == undefined) {
}
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function resize(w, h) {
var _local2 = __get__movieClip();
if (m_content) {
_local2 = m_content;
}
_local2._width = w;
_local2._height = h;
}
function getWidth() {
return((m_content ? (m_content._width) : (__get__movieClip()._width)));
}
function getHeight() {
return((m_content ? (m_content._height) : (__get__movieClip()._height)));
}
}
Symbol 611 MovieClip [__Packages.cpslabs.ui.CButton] Frame 0
class cpslabs.ui.CButton extends cpslabs.ui.CBasicButton
{
var m_buttonSkinLayer, __get__movieClip, m_icon, m_label, invalidate, m_iconMovie, isPressedButtonState, m_pressedSelectedOffsetX, m_pressedSelectedOffsetY, __get__width, __get__height, resize, width, height;
function CButton (parent, name, depth) {
super(parent, name, depth);
m_buttonSkinLayer = new cpslabs.ui.CMovieClip(__get__movieClip(), null, 1);
m_icon = new cpslabs.ui.CMovieClip(m_buttonSkinLayer.__get__movieClip());
m_label = new cpslabs.ui.CLabel(m_buttonSkinLayer.__get__movieClip());
}
function get label() {
return(m_label.__get__text());
}
function set label(text) {
if (m_label.__get__text() != text) {
m_label.__set__text(text);
invalidate();
}
//return(label);
}
function get textColor() {
return(m_label.__get__color());
}
function set textColor(color) {
m_label.__set__color(color);
//return(textColor);
}
function get embedFonts() {
return(m_label.__get__embedFonts());
}
function set embedFonts(embed) {
if (m_label.__get__embedFonts() != embed) {
m_label.__set__embedFonts(embed);
}
//return(embedFonts);
}
function get fontFamily() {
return(m_label.__get__fontFamily());
}
function set fontFamily(familyName) {
if (m_label.__get__fontFamily() != familyName) {
m_label.__set__fontFamily(familyName);
}
//return(fontFamily);
}
function get fontSize() {
return(m_label.__get__fontSize());
}
function set fontSize(fntSize) {
if (m_label.__get__fontSize() != fntSize) {
m_label.__set__fontSize(fntSize);
}
//return(fontSize);
}
function get fontBold() {
return(m_label.__get__fontBold());
}
function set fontBold(bold) {
if (m_label.__get__fontBold() != bold) {
m_label.__set__fontBold(bold);
}
//return(fontBold);
}
function get fontItalic() {
return(m_label.__get__fontItalic());
}
function set fontItalic(italic) {
if (m_label.__get__fontItalic() != italic) {
m_label.__set__fontItalic(italic);
}
//return(fontItalic);
}
function get fontUnderline() {
return(m_label.__get__fontUnderline());
}
function set fontUnderline(underline) {
m_label.__set__fontUnderline(underline);
//return(fontUnderline);
}
function get antiAliasType() {
return(m_label.__get__antiAliasType());
}
function set antiAliasType(type) {
m_label.__set__antiAliasType(type);
//return(antiAliasType);
}
function get labelPlacement() {
return(m_labelPlacement);
}
function set labelPlacement(placement) {
if (m_labelPlacement != placement) {
m_labelPlacement = placement;
}
//return(labelPlacement);
}
function get icon() {
return(m_iconName);
}
function set icon(iconName) {
if (m_iconName != iconName) {
m_iconName = iconName;
changeIcon(iconName);
}
//return(icon);
}
function set overIcon(iconName) {
if (m_overIconName != iconName) {
m_overIconName = iconName;
changeIcon(iconName);
}
//return(overIcon);
}
function get overIcon() {
return(m_overIconName);
}
function set downIcon(iconName) {
if (m_downIconName != iconName) {
m_downIconName = iconName;
changeIcon(iconName);
}
//return(downIcon);
}
function get downIcon() {
return(m_downIconName);
}
function changeIcon(iconName) {
if (m_currentIconName == iconName) {
return(undefined);
}
m_currentIconName = iconName;
if (m_iconMovie) {
m_iconMovie.removeMovieClip();
}
if (iconName) {
m_iconMovie = m_icon.attachMovie(iconName);
invalidate();
}
}
function get labelIconDistance() {
return(m_labelIconDistance);
}
function set labelIconDistance(distance) {
if (distance != m_labelIconDistance) {
m_labelIconDistance = distance;
invalidate();
}
//return(labelIconDistance);
}
function get leftMargin() {
return(m_leftMargin);
}
function set leftMargin(margin) {
if (m_leftMargin != margin) {
m_leftMargin = margin;
invalidate();
}
//return(leftMargin);
}
function get topMargin() {
return(m_topMargin);
}
function set topMargin(margin) {
if (m_topMargin != margin) {
m_topMargin = margin;
invalidate();
}
//return(topMargin);
}
function get rightMargin() {
return(m_rightMargin);
}
function set rightMargin(margin) {
if (m_rightMargin != margin) {
m_rightMargin = margin;
invalidate();
}
//return(rightMargin);
}
function get bottomMargin() {
return(m_bottomMargin);
}
function set bottomMargin(margin) {
if (m_bottomMargin != margin) {
m_bottomMargin = margin;
invalidate();
}
//return(bottomMargin);
}
function get verticalAlignment() {
return(m_verticalAlignment);
}
function set verticalAlignment(valign) {
if (valign != m_verticalAlignment) {
switch (valign) {
case "center" :
case "top" :
case "bottom" :
m_verticalAlignment = valign;
invalidate();
}
}
//return(verticalAlignment);
}
function get horizontalAlignment() {
return(m_horizontalAlignment);
}
function set horizontalAlignment(halign) {
if (halign != m_horizontalAlignment) {
switch (halign) {
case "center" :
case "left" :
case "right" :
m_horizontalAlignment = halign;
invalidate();
return;
}
}
//return(horizontalAlignment);
}
function get pressedOffsetX() {
return(m_pressedOffsetX);
}
function set pressedOffsetX(offsetX) {
if (m_pressedOffsetX != offsetX) {
m_pressedOffsetX = offsetX;
if (isPressedButtonState()) {
invalidate();
}
}
//return(pressedOffsetX);
}
function get pressedOffsetY() {
return(m_pressedOffsetY);
}
function set pressedOffsetY(offsetY) {
if (m_pressedOffsetY != offsetY) {
m_pressedOffsetY = offsetY;
if (isPressedButtonState()) {
invalidate();
}
}
//return(pressedOffsetY);
}
function get selectedOffsetX() {
return(m_selectedOffsetX);
}
function set selectedOffsetX(offsetX) {
if (m_selectedOffsetX != offsetX) {
m_selectedOffsetX = offsetX;
if (isPressedButtonState()) {
invalidate();
}
}
//return(selectedOffsetX);
}
function get selectedOffsetY() {
return(m_selectedOffsetY);
}
function set selectedOffsetY(offsetY) {
if (m_selectedOffsetY != offsetY) {
m_selectedOffsetY = offsetY;
if (isPressedButtonState()) {
invalidate();
}
}
//return(selectedOffsetY);
}
function get selected() {
return(super.__get__selected());
}
function set selected(value) {
super.__set__selected(value);
//return(selected);
}
function get pressedSelectedOffsetX() {
return(m_pressedSelectedOffsetX);
}
function set pressedSelectedOffsetX(offsetX) {
if (m_pressedSelectedOffsetX != offsetX) {
m_pressedSelectedOffsetX = offsetX;
if (isPressedButtonState() && (selected)) {
invalidate();
}
}
//return(pressedSelectedOffsetX);
}
function get pressedSelectedOffsetY() {
return(m_pressedSelectedOffsetY);
}
function set pressedSelectedOffsetY(offsetY) {
if (m_pressedSelectedOffsetY != offsetY) {
m_pressedSelectedOffsetY = offsetY;
if (isPressedButtonState() && (selected)) {
invalidate();
}
}
//return(pressedSelectedOffsetY);
}
function get autoSize() {
return(m_autoSize);
}
function set autoSize(autoSizing) {
if (m_autoSize != autoSizing) {
m_autoSize = autoSizing;
if (autoSizing) {
invalidate();
}
}
//return(autoSize);
}
function update() {
super.update();
if (((!label) == "") && ((!icon) || (icon == ""))) {
return(undefined);
}
var _local9 = (m_icon.__get__width() ? (m_icon.__get__width()) : 0);
var _local3 = (m_icon.__get__height() ? (m_icon.__get__height()) : 0);
var _local16 = ((m_label.__get__text() != "") ? (m_label.__get__width()) : 0);
var _local8 = ((m_label.__get__text() != "") ? (m_label.__get__height()) : 0);
var _local7 = 0;
var _local6 = 0;
var _local5 = 0;
var _local4 = 0;
var _local15 = Math.max(_local3, _local8);
var _local13 = Math.max(_local9, _local3);
var _local17 = (((m_iconName != "") && (m_label.__get__text() != "")) ? (m_labelIconDistance) : 0);
switch (m_labelPlacement) {
case "left" :
_local5 = _local16 + _local17;
_local4 = (_local15 - _local3) * 0.5;
_local6 = (_local15 - _local8) * 0.5;
break;
case "right" :
_local7 = _local9 + _local17;
_local4 = (_local15 - _local3) * 0.5;
_local6 = (_local15 - _local8) * 0.5;
break;
case "up" :
_local4 = _local8 + _local17;
_local5 = (_local13 - _local9) * 0.5;
_local7 = (_local13 - _local16) * 0.5;
break;
case "down" :
_local6 = _local3 + _local17;
_local5 = (_local13 - _local9) * 0.5;
_local7 = (_local13 - _local16) * 0.5;
break;
}
m_label.__set__x((m_label.__get__text() ? (_local7) : 0));
m_label.__set__y((m_label.__get__text() ? (_local6) : 0));
m_icon.__set__x(_local5);
m_icon.__set__y(_local4);
var _local25 = Math.max(_local7 + _local16, _local5 + _local9);
var _local23 = Math.min(_local7, _local5);
var _local24 = Math.max(_local6 + _local8, _local4 + _local3);
var _local26 = Math.min(_local6, _local4);
var _local20 = _local25 - _local23;
var _local21 = _local24 - _local26;
var _local10 = __get__width();
var _local14 = __get__height();
if (m_autoSize) {
_local10 = (_local20 + m_leftMargin) + m_rightMargin;
resize(_local10, _local14);
_local10 = width;
_local14 = height;
}
var _local19 = 0;
var _local18 = 0;
if (isPressedButtonState()) {
var _local22 = selected;
_local19 = ((_local22 && (m_pressedSelectedOffsetX != undefined)) ? (m_pressedSelectedOffsetX) : (m_pressedOffsetX));
_local18 = ((_local22 && (m_pressedSelectedOffsetY != undefined)) ? (m_pressedSelectedOffsetY) : (m_pressedOffsetY));
} else if (selected) {
_local19 = m_selectedOffsetX;
_local18 = m_selectedOffsetY;
}
var _local12 = _local19;
var _local11 = _local18;
switch (m_horizontalAlignment) {
case "center" :
_local12 = _local12 + (((((_local10 - m_leftMargin) - m_rightMargin) - _local20) * 0.5) + m_leftMargin);
break;
case "left" :
_local12 = _local12 + m_leftMargin;
break;
case "right" :
_local12 = _local12 + ((_local10 - m_rightMargin) - _local20);
}
switch (m_verticalAlignment) {
case "center" :
_local11 = _local11 + (((((_local14 - m_topMargin) - m_bottomMargin) - _local21) * 0.5) + m_topMargin);
break;
case "top" :
_local11 = _local11 + m_topMargin;
break;
case "bottom" :
_local11 = _local11 + ((_local14 - m_bottomMargin) - _local21);
}
m_buttonSkinLayer.__set__x(_local12);
m_buttonSkinLayer.__set__y(_local11);
}
function onResize() {
invalidate();
}
function getLabel() {
return(m_label);
}
function getIcon() {
return(m_icon);
}
function setState(stateIndex) {
super.setState(stateIndex);
switch (stateIndex) {
case cpslabs.ui.CBasicButton.STATE_NORMAL :
changeIcon(m_iconName);
break;
case cpslabs.ui.CBasicButton.STATE_OVER :
changeIcon((m_overIconName ? (m_overIconName) : (m_iconName)));
break;
case cpslabs.ui.CBasicButton.STATE_DOWN :
changeIcon((m_downIconName ? (m_downIconName) : (m_iconName)));
break;
case cpslabs.ui.CBasicButton.STATE_DISABLED :
}
}
var m_iconName = "";
var m_overIconName = "";
var m_downIconName = "";
var m_currentIconName = "";
var m_labelPlacement = "right";
var m_labelIconDistance = 5;
var m_leftMargin = 0;
var m_topMargin = 0;
var m_rightMargin = 0;
var m_bottomMargin = 0;
var m_verticalAlignment = "center";
var m_horizontalAlignment = "center";
var m_pressedOffsetX = 0;
var m_pressedOffsetY = 0;
var m_selectedOffsetX = 0;
var m_selectedOffsetY = 0;
var m_autoSize = false;
}
Symbol 612 MovieClip [__Packages.cpslabs.utils.CLayoutUtils] Frame 0
class cpslabs.utils.CLayoutUtils
{
function CLayoutUtils () {
}
static function getObjectsCount(objects) {
if (objects instanceof Array) {
return(Array(objects).length);
}
var _local1 = 0;
for (var _local3 in objects) {
_local1++;
}
return(_local1);
}
static function centeredHBox(objects, pos, width, gap) {
centeredXBox(objects, "x", "width", pos, width, gap);
}
static function centeredVBox(objects, pos, height, gap) {
centeredXBox(objects, "y", "height", pos, height, gap);
}
static function centeredXBox(objects, posProp, sizeProp, pos, size, gap) {
var _local3 = getObjectsCount(objects);
if ((gap === undefined) && (_local3 > 1)) {
gap = (size - getObjectsTotalSize(objects, sizeProp)) / (_local3 - 1);
}
var _local6 = getObjectsTotalSize(objects, sizeProp, gap);
var _local4 = pos + ((size - _local6) / 2);
xBox(objects, posProp, sizeProp, _local4, gap);
}
static function hBox(objects, pos, gap) {
xBox(objects, "x", "width", pos, gap);
}
static function vBox(objects, pos, gap) {
xBox(objects, "y", "height", pos, gap);
}
static function xBox(objects, posProp, sizeProp, pos, gap) {
if (gap === undefined) {
gap = 0;
}
objects.reverse();
var _local2 = null;
for (var _local8 in objects) {
var _local1 = objects[_local8];
if (_local2 == null) {
_local1[posProp] = pos;
} else {
_local1[posProp] = (_local2[posProp] + _local2[sizeProp]) + gap;
}
_local2 = _local1;
}
objects.reverse();
}
static function getObjectsTotalWidth(objects, gap) {
return(getObjectsTotalSize(objects, "width", gap));
}
static function getObjectsTotalHeight(objects, gap) {
return(getObjectsTotalSize(objects, "height", gap));
}
static function getObjectsTotalSize(objects, sizeProp, gap) {
var _local3 = 0;
if (gap === undefined) {
gap = 0;
}
for (var _local5 in objects) {
var _local1 = objects[_local5];
_local3 = _local3 + _local1[sizeProp];
}
return(_local3 + (gap * (getObjectsCount(objects) - 1)));
}
static function setObjectsPosition(objects, x, y) {
for (var _local5 in objects) {
var _local1 = objects[_local5];
if (!(x === undefined)) {
_local1.__set__x(x);
}
if (y != undefined) {
_local1.__set__y(y);
}
}
}
static function setObjectsSize(objects, w, h) {
for (var _local3 in objects) {
var _local1 = objects[_local3];
_local1.__set__width(w);
_local1.__set__height(h);
}
}
static function hideObjects(objects) {
for (var _local3 in objects) {
var _local1 = objects[_local3];
_local1.__set__visible(false);
}
}
static function showObjects(objects) {
for (var _local3 in objects) {
var _local1 = objects[_local3];
_local1.__set__visible(true);
}
}
}
Symbol 613 MovieClip [__Packages.cpslabs.utils.CGraphicsUtils] Frame 0
class cpslabs.utils.CGraphicsUtils
{
function CGraphicsUtils () {
}
static function drawRect(target, x, y, width, height, fillColor, fillAlpha, lineWidth, lineColor, lineAlpha) {
if (fillColor === undefined) {
fillColor = 0;
}
if (fillAlpha === undefined) {
fillAlpha = 100;
}
if (lineWidth === undefined) {
lineWidth = 0;
}
if (lineColor === undefined) {
lineColor = 0;
}
if (lineAlpha === undefined) {
lineAlpha = 100;
}
x = x + (lineWidth / 2);
y = y + (lineWidth / 2);
width = width - lineWidth;
height = height - lineWidth;
target.lineStyle(((lineWidth == 0) ? undefined : (lineWidth)), lineColor, lineAlpha, undefined, undefined, "none", "miter");
target.beginFill(fillColor, fillAlpha);
target.moveTo(x, y);
target.lineTo(x + width, y);
target.lineTo(x + width, y + height);
target.lineTo(x, y + height);
target.lineTo(x, y);
target.endFill();
}
static function drawDashLine(mc, p1, p2, dashLen, thickness, color, alpha) {
if (alpha === undefined) {
alpha = 100;
}
var _local10 = p2.subtract(p1);
var _local11 = _local10.length;
var _local9 = Math.floor(_local11 / dashLen) - 1;
var _local2 = new flash.geom.Point(_local10.x / _local9, _local10.y / _local9);
var _local13 = p1.clone();
mc.lineStyle(thickness, color, alpha);
var _local1 = 0;
while (_local1 < _local9) {
var _local3 = p1.x + (_local1 * _local2.x);
var _local4 = p1.y + (_local1 * _local2.y);
var _local6 = _local3 + _local2.x;
var _local5 = _local4 + _local2.y;
mc.moveTo(_local3, _local4);
mc.lineTo(_local6, _local5);
_local1 = _local1 + 2;
}
}
static function drawDashRect(mc, x, y, width, height, dashLen, thickness, color, alpha) {
var _local2 = new flash.geom.Point(x, y);
var _local5 = new flash.geom.Point(x + width, y);
var _local8 = new flash.geom.Point(x + width, y + height);
var _local4 = new flash.geom.Point(x, y + height);
drawDashLine(mc, _local2, _local5, dashLen, thickness, color, alpha);
drawDashLine(mc, _local5, _local8, dashLen, thickness, color, alpha);
drawDashLine(mc, _local8, _local4, dashLen, thickness, color, alpha);
drawDashLine(mc, _local4, _local2, dashLen, thickness, color, alpha);
}
static function isGlobalVisibleMc(mc) {
do {
if (!mc._visible) {
return(false);
}
mc = mc._parent;
} while (mc);
return(true);
}
static function drawRoundRect(target, x, y, width, height, cornerRadius, fillColor, fillAlpha, lineWidth, lineColor, lineAlpha) {
if (cornerRadius == undefined) {
cornerRadius = 0;
}
if (fillColor == undefined) {
fillColor = 0;
}
if (fillAlpha == undefined) {
fillAlpha = 100;
}
if (lineWidth == undefined) {
lineWidth = 0;
}
if (lineColor == undefined) {
lineColor = 0;
}
if (lineAlpha == undefined) {
lineAlpha = 100;
}
width = width - lineWidth;
height = height - lineWidth;
target.lineStyle(lineWidth, lineColor, lineAlpha, undefined, undefined, "none", "milter");
target.beginFill(fillColor, fillAlpha);
target.moveTo(cornerRadius, 0);
target.lineTo(width - cornerRadius, 0);
target.curveTo(width, 0, width, cornerRadius);
target.lineTo(width, height - cornerRadius);
target.curveTo(width, height, width - cornerRadius, height);
target.lineTo(cornerRadius, height);
target.curveTo(0, height, 0, height - cornerRadius);
target.lineTo(0, cornerRadius);
target.curveTo(0, 0, cornerRadius, 0);
target.endFill();
target._x = x;
target._y = y;
}
}
Symbol 614 MovieClip [__Packages.cpslabs.utils.CStringUtils] Frame 0
class cpslabs.utils.CStringUtils
{
function CStringUtils () {
}
static function replace(str, searchStr, replaceStr) {
return(str.split(searchStr).join(replaceStr));
}
static function trim(str) {
var _local3 = str.length;
var _local1;
var _local2;
_local1 = 0;
while ((_local1 < _local3) && (str.charAt(_local1) == " ")) {
_local1++;
}
_local2 = _local3;
while ((_local2 >= 1) && (str.charAt(_local2 - 1) == " ")) {
_local2--;
}
return(str.substr(_local1, _local2 - _local1));
}
static function removeExtraSpaces(str) {
str = str.split("\t").join(" ");
var _local3 = "";
var _local4 = str.split(" ");
var _local5 = _local4.length;
var _local1 = 0;
while (_local1 < _local5) {
var _local2 = _local4[_local1];
if (_local2 != "") {
_local3 = _local3 + (_local2 + " ");
}
_local1++;
}
if (_local3.length) {
_local3 = _local3.substr(0, _local3.length - 1);
return(_local3);
}
return(_local3);
}
static function removeExtraSymbols(str, ch) {
var _local3 = str;
var _local1 = 0;
while (_local1 < str.length) {
if ((str.charAt(_local1) != ch) || (_local1 == (str.length - 1))) {
_local3 = str.substr(_local1, str.length);
break;
}
_local1++;
}
return(_local3);
}
}
Symbol 615 MovieClip [__Packages.fsplayer.api.restriction.CSlideChangeRestrictionType] Frame 0
class fsplayer.api.restriction.CSlideChangeRestrictionType
{
function CSlideChangeRestrictionType () {
}
static var QUIZ_NOT_COMPLETED = "quizNotCompleted";
static var PRECEDING_QUIZ_NOT_PASSED = "precedingQuizNotPassed";
static var PRECEDING_QUIZ_NOT_COMPLETED = "precedingQuizNotCompleted";
}
Symbol 479 MovieClip [skinAsset] Frame 1
this._lockroot = true;
function createSkin(mc) {
return(new main.CNullSkinEx(mc));
}
Symbol 479 MovieClip [skinAsset] Frame 2
this._lockroot = false;
Symbol 618 MovieClip [__Packages.fsplayer.api.IPlayer] Frame 0
interface fsplayer.api.IPlayer
{
}
Symbol 619 MovieClip [__Packages.fsplayer.api.IPlayerListener] Frame 0
interface fsplayer.api.IPlayerListener
{
}
Symbol 620 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackController] Frame 0
interface fsplayer.api.IPresentationPlaybackController
{
}
Symbol 621 MovieClip [__Packages.fsplayer.api.IPlaybackListener] Frame 0
interface fsplayer.api.IPlaybackListener
{
}
Symbol 622 MovieClip [__Packages.fsplayer.api.IRestrictedPresentationPlaybackController] Frame 0
interface fsplayer.api.IRestrictedPresentationPlaybackController extends fsplayer.api.IPresentationPlaybackController
{
}
Symbol 623 MovieClip [__Packages.fsplayer.api.IRestrictedPlaybackListener] Frame 0
interface fsplayer.api.IRestrictedPlaybackListener
{
}
Symbol 624 MovieClip [__Packages.fsplayer.api.restriction.ISlideChangeRestriction] Frame 0
interface fsplayer.api.restriction.ISlideChangeRestriction
{
}
Symbol 625 MovieClip [__Packages.fsplayer.api.ISoundController] Frame 0
interface fsplayer.api.ISoundController
{
}
Symbol 626 MovieClip [__Packages.fsplayer.api.ISoundListener] Frame 0
interface fsplayer.api.ISoundListener
{
}
Symbol 627 MovieClip [__Packages.fsplayer.api.IPresentationInfo] Frame 0
interface fsplayer.api.IPresentationInfo
{
}
Symbol 628 MovieClip [__Packages.fsplayer.api.ISlidesCollection] Frame 0
interface fsplayer.api.ISlidesCollection
{
}
Symbol 629 MovieClip [__Packages.fsplayer.api.ISlideInfo] Frame 0
interface fsplayer.api.ISlideInfo
{
}
Symbol 630 MovieClip [__Packages.fsplayer.api.IAnimationSteps] Frame 0
interface fsplayer.api.IAnimationSteps
{
}
Symbol 631 MovieClip [__Packages.fsplayer.api.IAnimationStep] Frame 0
interface fsplayer.api.IAnimationStep
{
}
Symbol 632 MovieClip [__Packages.fsplayer.api.ISlideResources] Frame 0
interface fsplayer.api.ISlideResources
{
}
Symbol 633 MovieClip [__Packages.fsplayer.api.IPresenterVideo] Frame 0
interface fsplayer.api.IPresenterVideo
{
}
Symbol 634 MovieClip [__Packages.fsplayer.api.ISlideListener] Frame 0
interface fsplayer.api.ISlideListener
{
}
Symbol 635 MovieClip [__Packages.fsplayer.api.IWebObjectsCollection] Frame 0
interface fsplayer.api.IWebObjectsCollection
{
}
Symbol 636 MovieClip [__Packages.fsplayer.api.IWebObject] Frame 0
interface fsplayer.api.IWebObject
{
}
Symbol 637 MovieClip [__Packages.fsplayer.api.IThumbnailsCollection] Frame 0
interface fsplayer.api.IThumbnailsCollection
{
}
Symbol 638 MovieClip [__Packages.fsplayer.api.ISlideThumbnail] Frame 0
interface fsplayer.api.ISlideThumbnail
{
}
Symbol 639 MovieClip [__Packages.fsplayer.api.ISlideThumbnailLoadingListener] Frame 0
interface fsplayer.api.ISlideThumbnailLoadingListener
{
}
Symbol 640 MovieClip [__Packages.fsplayer.api.IPresenterInfo] Frame 0
interface fsplayer.api.IPresenterInfo
{
}
Symbol 641 MovieClip [__Packages.fsplayer.api.IPresenterPhoto] Frame 0
interface fsplayer.api.IPresenterPhoto
{
}
Symbol 642 MovieClip [__Packages.fsplayer.api.IPresenterPhotoLoadingListener] Frame 0
interface fsplayer.api.IPresenterPhotoLoadingListener
{
}
Symbol 643 MovieClip [__Packages.fsplayer.api.ICompanyInfo] Frame 0
interface fsplayer.api.ICompanyInfo
{
}
Symbol 644 MovieClip [__Packages.fsplayer.api.ICompanyLogo] Frame 0
interface fsplayer.api.ICompanyLogo
{
}
Symbol 645 MovieClip [__Packages.fsplayer.api.ICompanyLogoLoadingListener] Frame 0
interface fsplayer.api.ICompanyLogoLoadingListener
{
}
Symbol 646 MovieClip [__Packages.fsplayer.api.INarrationInfo] Frame 0
interface fsplayer.api.INarrationInfo
{
}
Symbol 647 MovieClip [__Packages.fsplayer.api.IReferencesCollection] Frame 0
interface fsplayer.api.IReferencesCollection
{
}
Symbol 648 MovieClip [__Packages.fsplayer.api.IReferenceInfo] Frame 0
interface fsplayer.api.IReferenceInfo
{
}
Symbol 649 MovieClip [__Packages.fsplayer.api.IPresentersCollection] Frame 0
interface fsplayer.api.IPresentersCollection
{
}
Symbol 650 MovieClip [__Packages.fsplayer.api.IPresentationListener] Frame 0
interface fsplayer.api.IPresentationListener
{
}
Symbol 651 MovieClip [__Packages.fsplayer.ui.skins.ISkin] Frame 0
interface fsplayer.ui.skins.ISkin
{
}
Symbol 652 MovieClip [__Packages.fsplayer.ui.skins.ISlideShowWindow] Frame 0
interface fsplayer.ui.skins.ISlideShowWindow
{
}
Symbol 653 MovieClip [__Packages.fsplayer.ui.skins.ISkinListener] Frame 0
interface fsplayer.ui.skins.ISkinListener
{
}
Symbol 654 MovieClip [__Packages.fsplayer.api.IKeyboardSettings] Frame 0
interface fsplayer.api.IKeyboardSettings
{
}
Symbol 655 MovieClip [__Packages.fsplayer.api.IPlaybackAction] Frame 0
interface fsplayer.api.IPlaybackAction
{
}
Symbol 656 MovieClip [__Packages.cpslabs.utils.CJavaScriptBroadcaster] Frame 0
class cpslabs.utils.CJavaScriptBroadcaster
{
var m_broadcasterEventHandlers;
function CJavaScriptBroadcaster (setListenerMethodName, removeListenerMethodName) {
m_broadcasterEventHandlers = new Object();
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback(setListenerMethodName, this, setListener);
flash.external.ExternalInterface.addCallback(removeListenerMethodName, this, removeListener);
}
}
function broadcastEvent(eventName) {
if (flash.external.ExternalInterface.available) {
var _local3 = m_broadcasterEventHandlers[eventName];
if (_local3) {
var _local4 = flash.external.ExternalInterface.call;
arguments[0] = m_broadcasterEventHandlers[eventName];
_local4.apply(flash.external.ExternalInterface, arguments);
}
}
}
function setListener(eventName, handlerName) {
m_broadcasterEventHandlers[eventName] = handlerName;
}
function removeListener(eventName) {
if (m_broadcasterEventHandlers[eventName]) {
delete m_broadcasterEventHandlers[eventName];
}
}
}
Symbol 657 MovieClip [__Packages.com.flashspring.coreplugins.htmlconnector.CHtmlConnector] Frame 0
class com.flashspring.coreplugins.htmlconnector.CHtmlConnector extends cpslabs.utils.CJavaScriptBroadcaster implements fsplayer.api.IPlayerListener
{
var m_player, m_id, setListener, m_playbackControllerConnector, m_presentationInfoConnector, m_slideInfoConnector, m_presentersConnector, m_soundControllerConnector, m_skinConnector, broadcastEvent;
function CHtmlConnector (player, id) {
super("setListener", "removeListener");
m_player = player;
m_id = id;
setListener("ispring_onPlayerInit", "fsplayer.api.PresentationLoader.onPlayerInit." + m_id);
if (!player.isInitialized()) {
player.addListener(this);
} else {
onPlayerInit(player);
}
}
function onPlayerInit(player) {
if (flash.external.ExternalInterface.available) {
m_playbackControllerConnector = new com.flashspring.coreplugins.htmlconnector.CPlaybackControllerConnector(player.getPlaybackController());
m_presentationInfoConnector = new com.flashspring.coreplugins.htmlconnector.CPresentationInfoConnector(player.getPresentationInfo());
m_slideInfoConnector = new com.flashspring.coreplugins.htmlconnector.CSlideInfoConnector(player.getPresentationInfo().getSlides());
m_presentersConnector = new com.flashspring.coreplugins.htmlconnector.CPresentersConnector(player.getPresentationInfo().getPresenters());
m_soundControllerConnector = new com.flashspring.coreplugins.htmlconnector.CSoundControllerConnector(player.getSoundController());
m_skinConnector = new com.flashspring.coreplugins.htmlconnector.CSkinConnector(player.getSkin());
broadcastEvent("ispring_onPlayerInit");
}
}
}
Symbol 658 MovieClip [__Packages.com.flashspring.coreplugins.htmlconnector.CPlaybackControllerConnector] Frame 0
class com.flashspring.coreplugins.htmlconnector.CPlaybackControllerConnector extends cpslabs.utils.CJavaScriptBroadcaster implements fsplayer.api.IPlaybackListener
{
var m_pc, setListener, removeListener, broadcastEvent;
function CPlaybackControllerConnector (playback) {
super("setPlaybackListener", "removePlaybackListener");
playback.addListener(this);
playback.enableDefaultEndSlideShowHandler(false);
m_pc = playback;
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback("playbackController_setEventListener", this, playbackController_setEventListener);
flash.external.ExternalInterface.addCallback("playbackController_removeEventListener", this, playbackController_removeEventListener);
flash.external.ExternalInterface.addCallback("playbackController_play", this, playbackController_play);
flash.external.ExternalInterface.addCallback("playbackController_pause", this, playbackController_pause);
flash.external.ExternalInterface.addCallback("playbackController_gotoSlide", this, playbackController_gotoSlide);
flash.external.ExternalInterface.addCallback("playbackController_isPlaying", this, playbackController_isPlaying);
flash.external.ExternalInterface.addCallback("playbackController_gotoNextSlide", this, playbackController_gotoNextSlide);
flash.external.ExternalInterface.addCallback("playbackController_gotoPreviousStep", this, playbackController_gotoPreviousStep);
flash.external.ExternalInterface.addCallback("playbackController_gotoNextStep", this, playbackController_gotoNextStep);
flash.external.ExternalInterface.addCallback("playbackController_gotoPreviousSlide", this, playbackController_gotoPreviousSlide);
flash.external.ExternalInterface.addCallback("playbackController_getCurrentSlideIndex", this, playbackController_getCurrentSlideIndex);
flash.external.ExternalInterface.addCallback("playbackController_getCurrentStepIndex", this, playbackController_getCurrentStepIndex);
flash.external.ExternalInterface.addCallback("playbackController_getCurrentSlidePlaybackPosition", this, playbackController_getCurrentSlidePlaybackPosition);
}
}
function playbackController_setEventListener(eventName, handlerName) {
setListener(eventName, handlerName);
}
function playbackController_removeEventListener(eventName) {
removeListener(eventName);
}
function playbackController_play() {
m_pc.play();
}
function playbackController_pause() {
m_pc.pause();
}
function playbackController_gotoSlide(slideIndex, autoStart) {
m_pc.gotoSlide(slideIndex, autoStart);
}
function playbackController_isPlaying() {
return(m_pc.isPlaying());
}
function playbackController_gotoNextSlide(autoStart) {
m_pc.gotoNextSlide(autoStart);
}
function playbackController_gotoPreviousSlide(autoStart) {
m_pc.gotoPreviousSlide(autoStart);
}
function playbackController_getCurrentSlideIndex() {
return(m_pc.getCurrentSlideIndex());
}
function playbackController_getCurrentSlidePlaybackPosition() {
return(m_pc.getCurrentSlidePlaybackPosition());
}
function playbackController_gotoNextStep() {
m_pc.gotoNextStep();
}
function playbackController_gotoPreviousStep() {
m_pc.gotoPreviousStep();
}
function playbackController_getCurrentStepIndex() {
return(m_pc.getCurrentStepIndex());
}
function onPausePlayback() {
broadcastEvent(PAUSE_PLAYBACK);
}
function onStartPlayback() {
broadcastEvent(START_PLAYBACK);
}
function onAnimationStepChanged(stepIndex) {
broadcastEvent(ANIMATION_STEP_CHANGED, stepIndex);
}
function onSlidePositionChanged(position) {
broadcastEvent(SLIDE_POSITION_CHANGED, position);
}
function onSlideTransitionPhaseChanged(phase) {
}
function onCurrentSlideIndexChanged(slideIndex) {
broadcastEvent(CURRENT_SLIDE_INDEX_CHANGED, slideIndex);
}
function onSlideLoadingComplete(slideIndex) {
broadcastEvent(SLIDE_LOADING_COMPLETE, slideIndex);
}
function onPresentationPlaybackComplete() {
broadcastEvent(PRESENTATION_PLAYBACK_COMPLETE);
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function onPlaybackSuspended() {
broadcastEvent(PLAYBACK_SUSPENDED);
}
function onPlaybackResumed() {
broadcastEvent(PLAYBACK_RESUMED);
}
function onHandleCloseRequest() {
broadcastEvent(CLOSE_REQUEST);
}
static var PAUSE_PLAYBACK = "playbackListener_onPausePlayback";
static var START_PLAYBACK = "playbackListener_onStartPlayback";
static var PLAYBACK_SUSPENDED = "playbackListener_onPlaybackSuspended";
static var PLAYBACK_RESUMED = "playbackListener_onPlaybackResumed";
static var ANIMATION_STEP_CHANGED = "playbackListener_onAnimationStepChanged";
static var SLIDE_POSITION_CHANGED = "playbackListener_onSlidePositionChanged";
static var CURRENT_SLIDE_INDEX_CHANGED = "playbackListener_onCurrentSlideIndexChanged";
static var SLIDE_LOADING_COMPLETE = "playbackListener_onSlideLoadingComplete";
static var PRESENTATION_PLAYBACK_COMPLETE = "playbackListener_onPresentationPlaybackComplete";
static var CLOSE_REQUEST = "playbackListener_onCallCloseRequest";
}
Symbol 659 MovieClip [__Packages.com.flashspring.coreplugins.htmlconnector.CPresentationInfoConnector] Frame 0
class com.flashspring.coreplugins.htmlconnector.CPresentationInfoConnector
{
var m_presentationInfo;
function CPresentationInfoConnector (presInfo) {
m_presentationInfo = presInfo;
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback("presentation_getTitle", this, presentation_getTitle);
flash.external.ExternalInterface.addCallback("presentation_getSlidesCount", this, presentation_getSlidesCount);
flash.external.ExternalInterface.addCallback("presentation_getDuration", this, presentation_getDuration);
}
}
function presentation_getTitle() {
return(m_presentationInfo.getTitle());
}
function presentation_getSlidesCount() {
return(m_presentationInfo.getSlides().getSlidesCount());
}
function presentation_getDuration() {
return(m_presentationInfo.getDuration());
}
}
Symbol 660 MovieClip [__Packages.com.flashspring.coreplugins.htmlconnector.CSlideInfoConnector] Frame 0
class com.flashspring.coreplugins.htmlconnector.CSlideInfoConnector
{
var m_slides;
function CSlideInfoConnector (slides) {
m_slides = slides;
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback("slide_getTitle", this, slide_getTitle);
flash.external.ExternalInterface.addCallback("slide_isLoaded", this, slide_isLoaded);
flash.external.ExternalInterface.addCallback("slide_getDuration", this, slide_getDuration);
flash.external.ExternalInterface.addCallback("slide_getStepsCount", this, slide_getStepsCount);
}
}
function slide_getTitle(slideIndex) {
return(m_slides.getSlideInfo(slideIndex).getTitle());
}
function slide_isLoaded(slideIndex) {
return(m_slides.getSlideInfo(slideIndex).isLoaded());
}
function slide_getDuration(slideIndex) {
return(m_slides.getSlideInfo(slideIndex).getDuration());
}
function slide_getStepsCount(slideIndex) {
return(m_slides.getSlideInfo(slideIndex).getAnimationSteps().getStepsCount());
}
}
Symbol 661 MovieClip [__Packages.com.flashspring.coreplugins.htmlconnector.CPresentersConnector] Frame 0
class com.flashspring.coreplugins.htmlconnector.CPresentersConnector
{
var m_presenters;
function CPresentersConnector (presenters) {
m_presenters = presenters;
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback("presenters_getCount", this, presenters_getCount);
}
}
function presenters_getCount() {
return(m_presenters.getCount());
}
}
Symbol 662 MovieClip [__Packages.com.flashspring.coreplugins.htmlconnector.CSoundControllerConnector] Frame 0
class com.flashspring.coreplugins.htmlconnector.CSoundControllerConnector extends cpslabs.utils.CJavaScriptBroadcaster implements fsplayer.api.ISoundListener
{
var m_soundController, setListener, removeListener, broadcastEvent;
function CSoundControllerConnector (soundCtrl) {
super();
soundCtrl.addListener(this);
m_soundController = soundCtrl;
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback("soundController_setEventListener", this, soundController_setEventListener);
flash.external.ExternalInterface.addCallback("soundController_removeEventListener", this, soundController_removeEventListener);
flash.external.ExternalInterface.addCallback("soundController_setVolume", this, soundController_setVolume);
flash.external.ExternalInterface.addCallback("soundController_getVolume", this, soundController_getVolume);
}
}
function soundController_setEventListener(eventName, handlerName) {
setListener(eventName, handlerName);
}
function soundController_removeEventListener(eventName) {
removeListener(eventName);
}
function soundController_setVolume(volume) {
m_soundController.setVolume(volume);
}
function soundController_getVolume() {
return(m_soundController.getVolume());
}
function onSoundVolumeChanged(soundController) {
if (flash.external.ExternalInterface.available) {
broadcastEvent(VOLUME_CHANGED, soundController.getVolume());
}
}
static var VOLUME_CHANGED = "soundListener_onSoundVolumeChanged";
}
Symbol 663 MovieClip [__Packages.fsplayer.ui.skins.ISkinUIControllerListener] Frame 0
interface fsplayer.ui.skins.ISkinUIControllerListener
{
}
Symbol 664 MovieClip [__Packages.com.flashspring.coreplugins.htmlconnector.CSkinConnector] Frame 0
class com.flashspring.coreplugins.htmlconnector.CSkinConnector extends cpslabs.utils.CJavaScriptBroadcaster implements fsplayer.ui.skins.ISkinUIControllerListener
{
var broadcastEvent;
function CSkinConnector (skin) {
super("skinUI_setEventListener", "skinUI_removeEventListener");
if (skin instanceof fsplayer.ui.skins.ISkinUIController) {
var _local3 = fsplayer.ui.skins.ISkinUIController(skin);
_local3.addUIListener(this);
_local3.enableDefaultCloseEventHandler(false);
}
}
function onHandleSkinCloseRequest() {
broadcastEvent(CLOSE_REQUEST);
}
static var CLOSE_REQUEST = "skinUI_onCallCloseRequest";
}
Symbol 665 MovieClip [__Packages.fsplayer.ui.skins.ISkinUIController] Frame 0
interface fsplayer.ui.skins.ISkinUIController
{
}
Symbol 666 MovieClip [__Packages.com.flashspring.coreplugins.htmlconnector.CHtmlConnectorForLms] Frame 0
class com.flashspring.coreplugins.htmlconnector.CHtmlConnectorForLms extends com.flashspring.coreplugins.htmlconnector.CHtmlConnector
{
var m_player, m_currentSlideIndex, m_quiz, m_quizHtmlConnector;
function CHtmlConnectorForLms (player, id) {
super(player, id);
}
function onPlayerInit(player) {
super.onPlayerInit(player);
var _local3 = {};
var _local4 = {listener:_local3};
player.getPlaybackController().addListener(_local4.listener);
var thisPtr = this;
_local3.onCurrentSlideIndexChanged = function (slideIndex) {
thisPtr.onCurrentSlideIndexChanged(slideIndex);
};
_local3.onSlidePositionChanged = function () {
thisPtr.onSlidePositionChanged();
};
}
function getCurrentSlideQuiz() {
var _local2 = fsplayer.api.IPresentationPlaybackControllerEx(m_player.getPlaybackController());
return(_local2.getActiveQuiz());
}
function onCurrentSlideIndexChanged(slideIndex) {
m_currentSlideIndex = slideIndex;
m_quiz = undefined;
}
function onSlidePositionChanged() {
if ((m_quiz == undefined) && (((m_quiz = getCurrentSlideQuiz())) != undefined)) {
onStartQuiz();
}
}
function onStartQuiz() {
m_quizHtmlConnector = new quizmaker.plugins.html_connector.CQuizHtmlConnector(this);
m_quizHtmlConnector.setQuizApi(m_quiz);
m_quizHtmlConnector.setCurrentSlideIndex(m_currentSlideIndex);
}
static var RESULT_CORRECT = "correct";
static var RESULT_INCORRECT = "incorrect";
static var RESULT_PARTIALLY = "partially";
static var RESULT_UNDEFINED = "undefinded";
static var RESULT_NEUTRAL = "neutral";
static var QUESTION_TYPE_TRUE_FALSE = "true_false";
static var QUESTION_TYPE_MULTIPLE_CHOICE = "multiple_choice";
static var QUESTION_TYPE_MULTIPLE_RESPONCE = "multiple_responce";
static var QUESTION_TYPE_TYPE_IN = "type_in";
static var QUESTION_TYPE_FILL_IN_THE_BLANK = "fill_in_the_blank";
static var QUESTION_TYPE_SEQUENCE = "sequence";
static var QUESTION_TYPE_NUMERIC = "numeric";
static var QUESTION_TYPE_MATCHING = "matching";
static var QUESTION_TYPE_MULTIPLE_CHOICE_TEXT = "multiple_choice_text";
static var COMMIT_QUESTION = "lms_commitQuestion";
}
Symbol 667 MovieClip [__Packages.quizmaker.api.IQuizApi] Frame 0
interface quizmaker.api.IQuizApi
{
}
Symbol 668 MovieClip [__Packages.quizmaker.api.ISlidesCollection] Frame 0
interface quizmaker.api.ISlidesCollection
{
}
Symbol 669 MovieClip [__Packages.quizmaker.api.ISlide] Frame 0
interface quizmaker.api.ISlide
{
}
Symbol 670 MovieClip [__Packages.quizmaker.core.api.text.ITextRange] Frame 0
interface quizmaker.core.api.text.ITextRange
{
}
Symbol 671 MovieClip [__Packages.quizmaker.core.api.ISlideResources] Frame 0
interface quizmaker.core.api.ISlideResources
{
}
Symbol 672 MovieClip [__Packages.quizmaker.api.ISettings] Frame 0
interface quizmaker.api.ISettings
{
}
Symbol 673 MovieClip [__Packages.quizmaker.api.IUserInfo] Frame 0
interface quizmaker.api.IUserInfo
{
}
Symbol 674 MovieClip [__Packages.quizmaker.api.IFontManager] Frame 0
interface quizmaker.api.IFontManager
{
}
Symbol 675 MovieClip [__Packages.quizmaker.api.IMessagesManager] Frame 0
interface quizmaker.api.IMessagesManager
{
}
Symbol 676 MovieClip [__Packages.quizmaker.api.IResultsInfo] Frame 0
interface quizmaker.api.IResultsInfo
{
}
Symbol 677 MovieClip [__Packages.quizmaker.api.IResultScore] Frame 0
interface quizmaker.api.IResultScore
{
}
Symbol 678 MovieClip [__Packages.quizmaker.api.ISkin] Frame 0
interface quizmaker.api.ISkin
{
}
Symbol 679 MovieClip [__Packages.quizmaker.api.IQuestion] Frame 0
interface quizmaker.api.IQuestion extends quizmaker.api.ISlide
{
}
Symbol 680 MovieClip [__Packages.quizmaker.api.IQuizApiListener] Frame 0
interface quizmaker.api.IQuizApiListener
{
}
Symbol 681 MovieClip [__Packages.quizmaker.api.IImageAssetLoadListener] Frame 0
interface quizmaker.api.IImageAssetLoadListener
{
}
Symbol 682 MovieClip [__Packages.quizmaker.api.IVideoAssetLoadListener] Frame 0
interface quizmaker.api.IVideoAssetLoadListener
{
}
Symbol 683 MovieClip [__Packages.quizmaker.api.ISoundAssetLoadListener] Frame 0
interface quizmaker.api.ISoundAssetLoadListener
{
}
Symbol 684 MovieClip [__Packages.quizmaker.api.IFlashAssetLoadListener] Frame 0
interface quizmaker.api.IFlashAssetLoadListener
{
}
Symbol 685 MovieClip [__Packages.quizmaker.plugins.html_connector.CQuizHtmlConnector] Frame 0
class quizmaker.plugins.html_connector.CQuizHtmlConnector implements quizmaker.api.IQuizApiListener
{
var m_jsDispatcher, m_quizApi, m_bestSessionScore, m_currentQuestion, m_currentQuestionStartTime, m_currentQuestionTimestamp, m_currentSlideIndex;
function CQuizHtmlConnector (jsDispatcher) {
m_jsDispatcher = jsDispatcher;
m_quizApi = null;
}
function setQuizApi(quizApi) {
if (m_quizApi) {
m_quizApi.removeListener(this);
}
m_quizApi = quizApi;
m_quizApi.addListener(this);
setCurrentSlideIndex(INITIAL_SLIDE_INDEX);
}
function onChangeQuestionStatus(question, prevStatus) {
var _local2 = question.getStatus();
if ((((_local2 == quizmaker.api.CQuestionStatus.CORRECT_ANSWER) || (_local2 == quizmaker.api.CQuestionStatus.INCORRECT_ANSWER)) || (_local2 == quizmaker.api.CQuestionStatus.PARTIALLY_ANSWER)) || (_local2 == quizmaker.api.CQuestionStatus.ANSWERED)) {
commitCurrentQuestionLatenty();
if (isNaN(m_bestSessionScore)) {
sendQuestionInfoToLms(question);
}
}
}
function sendSubmittedQuestionsInfoToLms() {
var _local6 = m_quizApi.getSlides().getSlidesCount();
var _local3 = 0;
while (_local3 < _local6) {
var _local5 = m_quizApi.getSlides().getSlide(_local3);
var _local4 = quizmaker.api.IQuestion(_local5);
var _local2 = _local4.getStatus();
if ((((_local2 == quizmaker.api.CQuestionStatus.CORRECT_ANSWER) || (_local2 == quizmaker.api.CQuestionStatus.INCORRECT_ANSWER)) || (_local2 == quizmaker.api.CQuestionStatus.PARTIALLY_ANSWER)) || (_local2 == quizmaker.api.CQuestionStatus.ANSWERED)) {
sendQuestionInfoToLms(_local4);
}
_local3++;
}
}
function onChangeCurrentSlide(newSlideIndex, prevSlideIndex) {
commitCurrentQuestionLatenty();
var _local3 = m_quizApi.getSlides().getSlide(newSlideIndex);
var _local2 = quizmaker.api.IQuestion(_local3);
if (_local2.getStatus() == quizmaker.api.CQuestionStatus.PENDING) {
onCurrentActiveQuestionChanged(_local2);
}
}
function onCurrentActiveQuestionChanged(question) {
m_currentQuestion = question;
m_currentQuestionStartTime = getTimer();
m_currentQuestionTimestamp = new Date().valueOf();
}
function onStartQuiz() {
onChangeCurrentSlide(0, undefined);
}
function onFinalizeQuiz() {
var _local6 = isNaN(m_bestSessionScore);
var _local3 = m_quizApi.getResults();
if (_local3 != undefined) {
var _local2 = _local3.getResultScore();
var _local8 = _local3.getQuizPassed();
if ((!_local6) && (m_bestSessionScore >= _local2.getPointScore())) {
return(undefined);
}
m_bestSessionScore = _local2.getPointScore();
var _local4 = 0;
var _local5 = 0;
var _local7 = m_quizApi.getTotalScore();
var _local9 = m_quizApi.getTotalScoreNormalized();
if (_local2 != undefined) {
_local4 = _local2.getPercentScore();
_local5 = _local2.getPointScore();
}
if (!_local6) {
sendSubmittedQuestionsInfoToLms();
}
var _local10 = m_quizApi.getSettings().getSetting(quizmaker.api.CSettingsConstants.QUIZ_TYPE);
if (flash.external.ExternalInterface.available) {
m_jsDispatcher.broadcastEvent(SCORM_QUIZ_SET_SCORE, m_quizApi.getQuizId(), _local5, _local4, _local7, _local9, _local8, _local10 == quizmaker.api.CQuizType.SURVEY);
}
}
m_jsDispatcher.broadcastEvent(SCORM_QUIZ_FINISHED, m_quizApi.getQuizId());
}
function onExitQuiz() {
m_jsDispatcher.broadcastEvent(SCORM_QUIZ_EXIT, m_quizApi.getQuizId());
}
function sendQuestionInfoToLms(question) {
switch (question.getSlideType()) {
case quizmaker.api.CSlideType.TRUE_FALSE_QUESTION :
sendTrueFalseQuestionInfoToLms(quizmaker.api.question.ITrueFalseQuestion(question));
break;
case quizmaker.api.CSlideType.MULTIPLE_CHOICE_QUESTION :
sendMultipleChoiceQuestionInfoToLms(quizmaker.api.question.IMultipleChoiceQuestionEx(question));
break;
case quizmaker.api.CSlideType.MULTIPLE_RESPONSE_QUESTION :
sendMultipleResponceQuestionInfoToLms(quizmaker.api.question.IMultipleResponseQuestion(question));
break;
case quizmaker.api.CSlideType.FILL_IN_THE_BLANK_QUESTION :
sendFillInTheBlankQuestionInfoToLms(quizmaker.api.question.IFillInTheBlankQuestion(question));
break;
case quizmaker.api.CSlideType.MULTIPLE_CHOICE_TEXT_QUESTION :
sendMultipleChoiceTextQuestonInfoToLms(quizmaker.api.question.IMultipleChoiceTextQuestion(question));
break;
case quizmaker.api.CSlideType.TYPE_IN_QUESTION :
sendTypeInQuestionInfoToLms(quizmaker.api.question.ITypeInQuestion(question));
break;
case quizmaker.api.CSlideType.SEQUENCE_QUESTION :
sendSequenceQuestionInfoToLms(quizmaker.api.question.ISequenceQuestion(question));
break;
case quizmaker.api.CSlideType.NUMERIC_QUESTION :
sendNumericQuestionInfoToLms(quizmaker.api.question.INumericQuestion(question));
break;
case quizmaker.api.CSlideType.MATCHING_QUESTION :
sendMatchigQuestinoInfoToLms(quizmaker.api.question.IMatchingQuestion(question));
break;
case quizmaker.api.CSlideType.ESSAY_QUESTION :
sendEssayQuestionToLms(quizmaker.api.question.IEssayQuestion(question));
break;
case quizmaker.api.CSlideType.WORD_BANK_QUESTION :
sendWordbankQuestionToLms(quizmaker.api.question.IWordBankQuestion(question));
break;
case quizmaker.api.CSlideType.HOTSPOT_QUESTION :
sendHotspotQuestionToLms(quizmaker.api.question.IHotspotQuestion(question));
break;
case quizmaker.api.CSlideType.LIKERT_SCALE_QUESTION :
sendLikertScaleQuestionToLms(quizmaker.api.question.ILikertScaleQuestion(question));
break;
case quizmaker.api.CSlideType.YES_NO_QUESTION :
sendYesNoQuestionInfoToLms(quizmaker.api.question.IYesNoQuestion(question));
break;
case quizmaker.api.CSlideType.PICK_ONE_QUESTION :
sendPickOneQuestionInfoToLms(quizmaker.api.question.IPickOneQuestion(question));
break;
case quizmaker.api.CSlideType.PICK_MANY_QUESTION :
sendPickManyQuestionInfoToLms(quizmaker.api.question.IPickManyQuestion(question));
break;
case quizmaker.api.CSlideType.SHORT_ANSWER_QUESTION :
sendShortAnswerQuestionInfoToLms(quizmaker.api.question.IShortAnswerQuestion(question));
break;
case quizmaker.api.CSlideType.NUMERIC_SURVEY_QUESTION :
sendNumericSurveyQuestionInfoToLms(quizmaker.api.question.INumericSurveyQuestion(question));
break;
case quizmaker.api.CSlideType.RANKING_QUESTION :
sendRankingQuestionInfoToLms(quizmaker.api.question.IRankingQuestion(question));
break;
case quizmaker.api.CSlideType.MATCHING_SURVEY_QUESTION :
sendMatchingSurveyQuestionInfoToLms(quizmaker.api.question.IMatchingSurveyQuestion(question));
break;
case quizmaker.api.CSlideType.WHICH_WORD_QUESTION :
sendWhichWordQuestionInfoToLms(quizmaker.api.question.IWhichWordQuestion(question));
break;
case quizmaker.api.CSlideType.FILL_IN_THE_BLANK_SURVEY_QUESTION :
sendFillInTheBlankSurveyQuestionInfoToLms(quizmaker.api.question.IFillInTheBlankSurveyQuestion(question));
break;
case quizmaker.api.CSlideType.MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION :
sendMultipleChoiceTextSurveyQuestionInfoToLms(quizmaker.api.question.IMultipleChoiceTextSurveyQuestion(question));
}
}
function sendCustomQuestionInfoToLms(correctAnswer, userAnswer, question) {
var _local10 = (("Q" + fixNumberString(m_currentSlideIndex + 1)) + "-I") + fixNumberString(question.getSlideIndex() + 1);
var _local8 = question.getSlideText().getText();
var _local5 = m_questionsLatency[m_currentSlideIndex][question.getSlideIndex()];
var _local6 = m_questionsTimestamp[m_currentSlideIndex][question.getSlideIndex()];
var _local7 = quizApiQuestionTypeToLmsQuestionType(question.getSlideType());
var _local4 = quizApiQuestionStatusToLmsQuestionResult(question.getStatus());
var _local3 = quizmaker.api.IGradedQuestion(question);
var _local9 = (_local3 ? (_local3.getPoints()) : 0);
if (flash.external.ExternalInterface.available) {
m_jsDispatcher.broadcastEvent(COMMIT_QUESTION, m_quizApi.getQuizId(), _local7, _local10, _local8.substr(0, 250), correctAnswer, userAnswer, _local4, _local5, _local9, _local6);
}
}
function sendCustomSurveyQuestionInfoToLms(userAnswer, question) {
sendCustomQuestionInfoToLms(userAnswer, userAnswer, question);
}
function sendTrueFalseQuestionInfoToLms(question) {
var _local5 = question.getCorrectAnswer();
var _local7 = question.getChoicePosition(_local5);
var _local6 = question.getAnswer();
var _local8 = question.getChoicePosition(_local6);
var _local4 = getChoiceText(_local5, _local7);
var _local2 = getChoiceText(_local6, _local8);
_local4 = replaceString(_local4, " ", "_");
_local2 = replaceString(_local2, " ", "_");
sendCustomQuestionInfoToLms(_local4, _local2, question);
}
function sendMultipleChoiceQuestionInfoToLms(question) {
var _local5 = question.getCorrectAnswer()[0];
var _local7 = question.getChoicePosition(_local5);
var _local6 = question.getAnswer();
var _local8 = question.getChoicePosition(_local6);
var _local4 = getChoiceText(_local5, _local7);
var _local2 = getChoiceText(_local6, _local8);
_local4 = replaceString(_local4, " ", "_");
_local2 = replaceString(_local2, " ", "_");
sendCustomQuestionInfoToLms(_local4, _local2, question);
}
function choicesArrayToStringArray(choicesArr, positionsArr) {
var _local5 = new Array();
var _local2 = 0;
while (_local2 < choicesArr.length) {
var _local3 = choicesArr[_local2];
_local5.push(validateAsText(getChoiceText(_local3, positionsArr[_local2])));
_local2++;
}
return(_local5);
}
function sendMultipleResponceQuestionInfoToLms(question) {
var _local6 = question.getCorrectAnswer();
var _local10 = getPositionsArrFromChoicesArr(quizmaker.core.api.question.IChoicesQuestion(question), _local6);
var _local9 = choicesArrayToStringArray(_local6, _local10);
var _local5 = question.getAnswer();
var _local8 = getPositionsArrFromChoicesArr(quizmaker.core.api.question.IChoicesQuestion(question), _local5);
var _local7 = choicesArrayToStringArray(_local5, _local8);
var _local2 = _local9.join("[,]");
var _local4 = _local7.join("[,]");
_local2 = replaceString(_local2, " ", "_");
_local4 = replaceString(_local4, " ", "_");
sendCustomQuestionInfoToLms(_local2, _local4, question);
}
function sendTypeInQuestionInfoToLms(question) {
var _local5 = question.getCorrectAnswer();
var _local3 = question.getAnswer();
var _local2 = _local5.join("[,]");
sendCustomQuestionInfoToLms(_local2, _local3, question);
}
function sendMultipleChoiceTextQuestonInfoToLms(question) {
var _local15 = question.getDetails();
var _local16 = _local15.getItemsCount();
var _local13 = new Array();
var _local14 = new Array();
var _local12 = "";
var _local7 = 0;
while (_local7 < _local16) {
var _local10 = _local15.getItem(_local7);
var _local3;
var _local8;
_local3 = quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetailsBlank(_local10);
if (_local3) {
var _local6 = new Array();
var _local4 = new Object();
_local4.answers = _local6;
_local4.correctAnswerIndex = _local3.getCorrectAnswerIndex();
var _local9 = _local3.getAnswersCount();
var _local2 = 0;
while (_local2 < _local9) {
var _local5 = _local3.getAnswer(_local2);
_local6.push(_local5);
_local2++;
}
_local13.push(_local4);
_local12 = _local12 + (((("[" + String(_local4.correctAnswerIndex)) + "]") + _local4.answers.join("[.]")) + "[,]");
var _local11 = _local3.getUserAnswerIndex();
_local14.push(_local11);
} else {
_local8 = quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetailsText(_local10);
if (_local8) {
_local13.push(_local8.getValue());
_local12 = _local12 + (_local8.getValue() + "[:]");
}
}
_local7++;
}
var _local17 = _local14.join("[.]");
_local12 = replaceString(_local12, " ", "_");
sendCustomQuestionInfoToLms(_local12, _local17, question);
}
function sendFillInTheBlankQuestionInfoToLms(question) {
var _local13 = question.getDetails();
var _local14 = _local13.getItemsCount();
var _local16 = new Array();
var _local10 = "";
var _local11 = "";
var _local6 = 0;
while (_local6 < _local14) {
var _local9 = _local13.getItem(_local6);
var _local3;
var _local12;
_local3 = quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetailsBlank(_local9);
if (_local3) {
var _local4 = new Array();
var _local8 = _local3.getAnswersCount();
var _local2 = 0;
while (_local2 < _local8) {
var _local5 = _local3.getAnswer(_local2);
_local4.push(_local5);
_local2++;
}
if (_local10 == "") {
_local10 = _local10 + _local4.join("[,]");
} else {
_local10 = _local10 + ("[.]" + _local4.join("[,]"));
}
var _local7 = _local3.getUserAnswer();
if (_local11 == "") {
_local11 = _local11 + _local7;
} else {
_local11 = _local11 + ("[,]" + _local7);
}
} else {
_local12 = quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetailsText(_local9);
if (_local12) {
}
}
_local6++;
}
sendCustomQuestionInfoToLms(_local10, _local11, question);
}
function sendSequenceQuestionInfoToLms(question) {
var _local6 = question.getCorrectAnswer();
var _local10 = getPositionsArrFromChoicesArr(quizmaker.core.api.question.IChoicesQuestion(question), _local6);
var _local9 = choicesArrayToStringArray(_local6, _local10);
var _local5 = question.getAnswer();
var _local8 = getPositionsArrFromChoicesArr(quizmaker.core.api.question.IChoicesQuestion(question), _local5);
var _local7 = choicesArrayToStringArray(_local5, _local8);
var _local2 = _local9.join("[,]");
var _local4 = _local7.join("[,]");
_local2 = replaceString(_local2, " ", "_");
_local4 = replaceString(_local4, " ", "_");
sendCustomQuestionInfoToLms(_local2, _local4, question);
}
function quizApiNumericAnswerToString(answer) {
switch (answer.getOperationType()) {
case quizmaker.api.CNumericOperationType.EQUAL :
return("equal to " + answer.getLeftOperand());
case quizmaker.api.CNumericOperationType.BETWEEN :
return((("between " + answer.getLeftOperand()) + " and ") + answer.getRightOperand());
case quizmaker.api.CNumericOperationType.GREATER :
return("greater than " + answer.getLeftOperand());
case quizmaker.api.CNumericOperationType.GREATER_OR_EQUAL :
return("greater than and equal to " + answer.getLeftOperand());
case quizmaker.api.CNumericOperationType.LESS :
return("less than " + answer.getLeftOperand());
case quizmaker.api.CNumericOperationType.LESS_OR_EQUAL :
return("less than or equal to" + answer.getLeftOperand());
case quizmaker.api.CNumericOperationType.NOT_EQUAL :
return("not equal to");
}
}
function numericAnswersArrayToStringsArray(answersArray) {
var _local4 = new Array();
var _local2 = 0;
while (_local2 < answersArray.length) {
_local4.push(quizApiNumericAnswerToString(answersArray[_local2]));
_local2++;
}
return(_local4);
}
function sendNumericQuestionInfoToLms(question) {
var _local5 = numericAnswersArrayToStringsArray(question.getCorrectAnswer());
var _local3 = question.getAnswer();
var _local2 = _local5.join("[,]");
sendCustomQuestionInfoToLms(_local2, _local3, question);
}
function matchesArrayToStringsArray(matchesArray, positionsArray) {
var _local6 = new Array();
var _local2 = 0;
while (_local2 < matchesArray.length) {
var _local4 = matchesArray[_local2];
var _local3 = positionsArray[_local2];
_local6.push((getChoiceText(_local4.getChoice(), _local3[0]) + "[.]") + getChoiceText(_local4.getMatchedChoice(), _local3[1]));
_local2++;
}
return(_local6);
}
function sendMatchigQuestinoInfoToLms(question) {
var _local6 = question.getCorrectAnswer();
var _local10 = getPositionsArrFromMatchesArr(question, _local6);
var _local9 = matchesArrayToStringsArray(_local6, _local10);
var _local5 = question.getAnswer();
var _local8 = getPositionsArrFromMatchesArr(question, _local5);
var _local7 = matchesArrayToStringsArray(_local5, _local8);
var _local2 = _local9.join("[,]");
var _local4 = _local7.join("[,]");
_local2 = replaceString(_local2, " ", "_");
_local4 = replaceString(_local4, " ", "_");
sendCustomQuestionInfoToLms(_local2, _local4, question);
}
function sendEssayQuestionToLms(question) {
var _local2 = question.getAnswer();
sendCustomQuestionInfoToLms("", _local2, question);
}
function sendWordbankQuestionToLms(question) {
var _local5 = "";
var _local4 = "";
var _local6 = question.getDetails();
var _local7 = _local6.getItemsCount();
var _local3 = 0;
while (_local3 < _local7) {
var _local2 = quizmaker.api.question.word_bank.IWordBankDetailsWord(_local6.getItem(_local3));
if (_local2 != null) {
if (_local5 == "") {
_local5 = _local2.getValue();
} else {
_local5 = _local5 + ("[,]" + _local2.getValue());
}
if (_local4 == "") {
_local4 = _local2.getUserAnswer().getValue();
} else {
_local4 = _local4 + ("[,]" + _local2.getUserAnswer().getValue());
}
}
_local3++;
}
sendCustomQuestionInfoToLms(_local5, _local4, question);
}
function sendHotspotQuestionToLms(question) {
var _local9 = "";
var _local8 = "";
var _local10 = question.getHotspots();
var _local11 = question.getAnswer();
var _local6 = 0;
while (_local6 < _local10.length) {
var _local2 = _local10[_local6];
var _local4 = _local2.getStartPoint();
if (_local9 == "") {
_local9 = (((((((_local2.getType() + "_") + _local4.x) + "_") + _local4.y) + "_") + _local2.getWidth()) + "_") + _local2.getHeight();
} else {
_local9 = _local9 + ((((((((("[,]" + _local2.getType()) + "_") + _local4.x) + "_") + _local4.y) + "_") + _local2.getWidth()) + "_") + _local2.getHeight());
}
_local6++;
}
var _local5 = 0;
while (_local5 < _local11.length) {
var _local7 = _local11[_local5];
if (_local7.getInUse()) {
var _local3 = _local7.getStartPoint();
if (_local8 == "") {
_local8 = (_local3.x + "_") + _local3.y;
} else {
_local8 = _local8 + ((("[,]" + _local3.x) + "_") + _local3.y);
}
}
_local5++;
}
sendCustomQuestionInfoToLms(_local9, _local8, question);
}
function sendLikertScaleQuestionToLms(question) {
var _local13 = question.getAnswer();
var _local14 = question.getItems();
if (_local13) {
var _local4 = 0;
while (_local4 < _local13.length) {
var _local2 = _local13[_local4];
var _local12 = (("Q" + fixNumberString(m_currentSlideIndex + 1)) + "-I") + fixNumberString(_local2.getChoice().getId() + 1);
var _local10 = _local14[_local2.getChoice().getId()].getText();
var _local7 = m_questionsLatency[m_currentSlideIndex][question.getSlideIndex()];
var _local8 = m_questionsTimestamp[m_currentSlideIndex][question.getSlideIndex()];
var _local9 = quizApiQuestionTypeToLmsQuestionType(question.getSlideType());
var _local6 = quizApiQuestionStatusToLmsQuestionResult(question.getStatus());
var _local5 = quizmaker.api.IGradedQuestion(question);
var _local11 = (_local5 ? (_local5.getPoints()) : 0);
if (flash.external.ExternalInterface.available) {
m_jsDispatcher.broadcastEvent(COMMIT_QUESTION, m_quizApi.getQuizId(), _local9, _local12, _local10.substr(0, 250), String(_local2.getMatchedChoice().getId()), String(_local2.getMatchedChoice().getId()), _local6, _local7, _local11, _local8);
}
_local4++;
}
}
}
function sendYesNoQuestionInfoToLms(question) {
var _local3 = question.getAnswer();
var _local5 = question.getChoicePosition(_local3);
var _local2 = getChoiceText(_local3, _local5);
_local2 = replaceString(_local2, " ", "_");
sendCustomSurveyQuestionInfoToLms(_local2, question);
}
function sendPickOneQuestionInfoToLms(question) {
var _local3 = question.getAnswer();
var _local5 = question.getChoicePosition(_local3);
var _local2 = getChoiceText(_local3, _local5);
_local2 = replaceString(_local2, " ", "_");
sendCustomSurveyQuestionInfoToLms(_local2, question);
}
function sendPickManyQuestionInfoToLms(question) {
var _local3 = question.getAnswer();
var _local5 = getPositionsArrFromChoicesArr(quizmaker.core.api.question.IChoicesQuestion(question), _local3);
var _local4 = choicesArrayToStringArray(_local3, _local5);
var _local2 = _local4.join("[,]");
_local2 = replaceString(_local2, " ", "_");
sendCustomSurveyQuestionInfoToLms(_local2, question);
}
function sendShortAnswerQuestionInfoToLms(question) {
var _local2 = question.getAnswer();
sendCustomSurveyQuestionInfoToLms(_local2, question);
}
function sendNumericSurveyQuestionInfoToLms(question) {
var _local2 = question.getAnswer();
sendCustomSurveyQuestionInfoToLms(_local2, question);
}
function sendRankingQuestionInfoToLms(question) {
var _local3 = question.getAnswer();
var _local5 = getPositionsArrFromChoicesArr(quizmaker.core.api.question.IChoicesQuestion(question), _local3);
var _local4 = choicesArrayToStringArray(_local3, _local5);
var _local2 = _local4.join("[,]");
_local2 = replaceString(_local2, " ", "_");
sendCustomSurveyQuestionInfoToLms(_local2, question);
}
function sendMatchingSurveyQuestionInfoToLms(question) {
var _local3 = question.getAnswer();
var _local5 = getPositionsArrFromMatchesSurveyArr(question, _local3);
var _local4 = matchesArrayToStringsArray(_local3, _local5);
var _local2 = _local4.join("[,]");
_local2 = replaceString(_local2, " ", "_");
sendCustomSurveyQuestionInfoToLms(_local2, question);
}
function sendWhichWordQuestionInfoToLms(question) {
var _local4 = "";
var _local5 = question.getDetails();
var _local6 = _local5.getItemsCount();
var _local3 = 0;
while (_local3 < _local6) {
var _local2 = quizmaker.api.question.which_word.IWhichWordDetailsBlank(_local5.getItem(_local3));
if (_local2 != null) {
if (_local4 == "") {
_local4 = _local2.getUserAnswer().getValue();
} else {
_local4 = _local4 + ("[,]" + _local2.getUserAnswer().getValue());
}
}
_local3++;
}
sendCustomSurveyQuestionInfoToLms(_local4, question);
}
function sendFillInTheBlankSurveyQuestionInfoToLms(question) {
var _local7 = question.getDetails();
var _local8 = _local7.getItemsCount();
var _local4 = "";
var _local2 = 0;
while (_local2 < _local8) {
var _local6 = _local7.getItem(_local2);
var _local5;
_local5 = quizmaker.api.question.fill_in_the_blank_s.IFillInTheBlankSurveyDetailsBlank(_local6);
if (_local5) {
var _local3 = _local5.getUserAnswer();
if (_local4 == "") {
_local4 = _local4 + _local3;
} else {
_local4 = _local4 + ("[,]" + _local3);
}
}
_local2++;
}
sendCustomSurveyQuestionInfoToLms(_local4, question);
}
function sendMultipleChoiceTextSurveyQuestionInfoToLms(question) {
var _local7 = question.getDetails();
var _local8 = _local7.getItemsCount();
var _local6 = new Array();
var _local2 = 0;
while (_local2 < _local8) {
var _local5 = _local7.getItem(_local2);
var _local3;
var _local9;
_local3 = quizmaker.api.question.mchoice_text_survey.IMultipleChoiceTextSurveyDetailsBlank(_local5);
if (_local3) {
var _local4 = _local3.getUserAnswerIndex();
_local6.push(_local4);
}
_local2++;
}
var _local10 = _local6.join("[.]");
sendCustomSurveyQuestionInfoToLms(_local10, question);
}
function quizApiQuestionStatusToLmsQuestionResult(status) {
switch (status) {
case quizmaker.api.CQuestionStatus.CORRECT_ANSWER :
return(RESULT_CORRECT);
case quizmaker.api.CQuestionStatus.INCORRECT_ANSWER :
return(RESULT_INCORRECT);
case quizmaker.api.CQuestionStatus.PARTIALLY_ANSWER :
return(RESULT_PARTIALLY);
case quizmaker.api.CQuestionStatus.ANSWERED :
return(RESULT_NEUTRAL);
}
return(RESULT_UNDEFINED);
}
function quizApiQuestionTypeToLmsQuestionType(type) {
switch (type) {
case quizmaker.api.CSlideType.TRUE_FALSE_QUESTION :
return(SCORM_INTERACTION_MULTIPLE_CHOICE);
case quizmaker.api.CSlideType.MULTIPLE_CHOICE_QUESTION :
return(SCORM_INTERACTION_MULTIPLE_CHOICE);
case quizmaker.api.CSlideType.MULTIPLE_RESPONSE_QUESTION :
return(SCORM_INTERACTION_MULTIPLE_CHOICE);
case quizmaker.api.CSlideType.FILL_IN_THE_BLANK_QUESTION :
return(SCORM_INTERACTION_FILL_IN);
case quizmaker.api.CSlideType.TYPE_IN_QUESTION :
return(SCORM_INTERACTION_FILL_IN);
case quizmaker.api.CSlideType.SEQUENCE_QUESTION :
return(SCORM_INTERACTION_SEQUENCING);
case quizmaker.api.CSlideType.NUMERIC_QUESTION :
return(SCORM_INTERACTION_OTHER);
case quizmaker.api.CSlideType.MATCHING_QUESTION :
return(SCORM_INTERACTION_MATCHING);
case quizmaker.api.CSlideType.MULTIPLE_CHOICE_TEXT_QUESTION :
return(SCORM_INTERACTION_OTHER);
case quizmaker.api.CSlideType.WORD_BANK_QUESTION :
return(SCORM_INTERACTION_FILL_IN);
case quizmaker.api.CSlideType.ESSAY_QUESTION :
return(SCORM_INTERACTION_LONG_FILL_IN);
case quizmaker.api.CSlideType.HOTSPOT_QUESTION :
return(SCORM_INTERACTION_MULTIPLE_CHOICE);
case quizmaker.api.CSlideType.LIKERT_SCALE_QUESTION :
return(SCORM_INTERACTION_LIKERT);
case quizmaker.api.CSlideType.YES_NO_QUESTION :
return(SCORM_INTERACTION_MULTIPLE_CHOICE);
case quizmaker.api.CSlideType.PICK_ONE_QUESTION :
return(SCORM_INTERACTION_MULTIPLE_CHOICE);
case quizmaker.api.CSlideType.PICK_MANY_QUESTION :
return(SCORM_INTERACTION_MULTIPLE_CHOICE);
case quizmaker.api.CSlideType.SHORT_ANSWER_QUESTION :
return(SCORM_INTERACTION_FILL_IN);
case quizmaker.api.CSlideType.NUMERIC_SURVEY_QUESTION :
return(SCORM_INTERACTION_OTHER);
case quizmaker.api.CSlideType.RANKING_QUESTION :
return(SCORM_INTERACTION_SEQUENCING);
case quizmaker.api.CSlideType.MATCHING_SURVEY_QUESTION :
return(SCORM_INTERACTION_MATCHING);
case quizmaker.api.CSlideType.WHICH_WORD_QUESTION :
return(SCORM_INTERACTION_FILL_IN);
case quizmaker.api.CSlideType.FILL_IN_THE_BLANK_SURVEY_QUESTION :
return(SCORM_INTERACTION_FILL_IN);
case quizmaker.api.CSlideType.MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION :
return(SCORM_INTERACTION_OTHER);
}
}
function replaceString(str, val1, val2) {
var _local2;
var _local1;
var _local4;
var _local5;
if (val1.length == 1) {
return(str.split(val1).join(val2));
}
_local2 = str.indexOf(val1);
if (_local2 == -1) {
return(str);
}
_local1 = str;
do {
_local2 = _local1.indexOf(val1);
_local4 = _local1.substring(0, _local2);
_local1 = _local1.substring(_local2 + val1.length);
_local5 = _local5 + (_local4 + val2);
} while (_local1.indexOf(val1) != -1);
_local5 = _local5 + _local1;
return(_local5);
}
function fixNumberString(val) {
var _local2 = "";
if (val < 10) {
return("00" + val);
}
if (val < 100) {
return("0" + val);
}
return(String(val));
}
function validateAsText(str) {
var _local2 = str;
_local2 = replaceString(_local2, "[", "_");
_local2 = replaceString(_local2, "]", "_");
_local2 = replaceString(_local2, ",", "_");
_local2 = replaceString(_local2, ".", "_");
return(str);
}
function setCurrentSlideIndex(index) {
m_currentSlideIndex = index;
m_questionsLatency[m_currentSlideIndex] = new Array();
m_questionsTimestamp[m_currentSlideIndex] = new Array();
}
function commitCurrentQuestionLatenty() {
if (m_currentQuestion != undefined) {
var _local2 = m_currentQuestion.getSlideIndex();
if (m_questionsLatency[m_currentSlideIndex][_local2] == undefined) {
m_questionsLatency[m_currentSlideIndex][_local2] = 0;
}
m_questionsLatency[m_currentSlideIndex][m_currentQuestion.getSlideIndex()] = m_questionsLatency[m_currentSlideIndex][m_currentQuestion.getSlideIndex()] + (getTimer() - m_currentQuestionStartTime);
if ((!m_questionsTimestamp[m_currentSlideIndex][m_currentQuestion.getSlideIndex()]) || (m_questionsTimestamp[m_currentSlideIndex][m_currentQuestion.getSlideIndex()] == undefined)) {
m_questionsTimestamp[m_currentSlideIndex][m_currentQuestion.getSlideIndex()] = m_currentQuestionTimestamp;
}
}
}
function getChoiceText(choice, choicePosition) {
var _local1 = quizmaker.api.IChoiceEx(choice);
var _local2 = (((!_local1) || (choice.getText())) ? (choice.getText()) : (_local1.getResourceDescription(choicePosition)));
return(_local2);
}
function getPositionsArrFromChoicesArr(question, choicesArr) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < choicesArr.length) {
var _local2 = question.getChoicePosition(choicesArr[_local1]);
_local4.push(_local2);
_local1++;
}
return(_local4);
}
function getPositionsArrFromMatchesArr(question, matchesArr) {
var _local7 = new Array();
var _local1 = 0;
while (_local1 < matchesArr.length) {
var _local2 = matchesArr[_local1];
var _local4 = question.getPremisePosition(_local2.getChoice());
var _local3 = question.getResponsePosition(_local2.getMatchedChoice());
_local7.push(new Array(_local4, _local3));
_local1++;
}
return(_local7);
}
function getPositionsArrFromMatchesSurveyArr(question, matchesArr) {
var _local7 = new Array();
var _local1 = 0;
while (_local1 < matchesArr.length) {
var _local2 = matchesArr[_local1];
var _local4 = question.getPremisePosition(_local2.getChoice());
var _local3 = question.getResponsePosition(_local2.getMatchedChoice());
_local7.push(new Array(_local4, _local3));
_local1++;
}
return(_local7);
}
function onQuizInitialized() {
}
function onTimeout() {
}
function onTimer() {
}
function onChangeQuestionAnswer(question) {
}
function onSetReviewMode() {
}
function onChangeQuizFinalizationState(enableFinalization) {
}
function onChangeKeyboardFocusState(acquireFocus) {
}
function onQuizResultSendingComplete(success, recipient) {
}
static var RESULT_CORRECT = "correct";
static var RESULT_INCORRECT = "incorrect";
static var RESULT_PARTIALLY = "partially";
static var RESULT_UNDEFINED = "undefinded";
static var RESULT_NEUTRAL = "neutral";
static var SCORM_INTERACTION_TRUE_FALSE = "true-false";
static var SCORM_INTERACTION_MULTIPLE_CHOICE = "choice";
static var SCORM_INTERACTION_FILL_IN = "fill-in";
static var SCORM_INTERACTION_LONG_FILL_IN = "long-fill-in";
static var SCORM_INTERACTION_MATCHING = "matching";
static var SCORM_INTERACTION_PERFORMANCE = "performance";
static var SCORM_INTERACTION_SEQUENCING = "sequencing";
static var SCORM_INTERACTION_LIKERT = "likert";
static var SCORM_INTERACTION_NUMERIC = "numeric";
static var SCORM_INTERACTION_OTHER = "other";
static var SCORM_QUIZ_FINISHED = "scorm_onQuizFinished";
static var SCORM_QUIZ_SET_SCORE = "scorm_setQuizScore";
static var SCORM_QUIZ_EXIT = "scorm_onExitQuiz";
static var COMMIT_QUESTION = "lms_commitQuestion";
static var INITIAL_SLIDE_INDEX = 0;
var m_questionsLatency = new Array();
var m_questionsTimestamp = new Array();
}
Symbol 686 MovieClip [__Packages.quizmaker.api.CQuestionStatus] Frame 0
class quizmaker.api.CQuestionStatus
{
function CQuestionStatus () {
}
static var PENDING = 0;
static var CORRECT_ANSWER = 1;
static var INCORRECT_ANSWER = 2;
static var PARTIALLY_ANSWER = 3;
static var NOT_ANSWERED = 4;
static var ANSWERED = 5;
}
Symbol 687 MovieClip [__Packages.quizmaker.api.CSettingsConstants] Frame 0
class quizmaker.api.CSettingsConstants
{
function CSettingsConstants () {
}
static var QUIZ_TITLE = 0;
static var PASSING_SCORE = 1;
static var REQUIRE_ALL_QUESTIONS = 2;
static var SUBMIT_QUESTION_TYPE = 3;
static var TIME_LIMIT_ENABLED = 4;
static var TIME_LIMIT = 5;
static var DISPLAY_TIME_LIMIT = 6;
static var DISPLAY_TIME_LIMIT_TYPE = 7;
static var DISPLAY_CUMULATIVE_SCORE = 8;
static var DISPLAY_POINTS_AWARDED = 10;
static var DISPLAY_QUESTION_STATUS = 11;
static var EMAIL_RESULT_ALLOWED = 14;
static var PRINT_RESULT_ALLOWED = 15;
static var DISPLAY_USER_SCORE = 16;
static var DISPLAY_PASSING_SCORE = 17;
static var DISPLAY_RESULT_MESSAGE = 18;
static var RANDOMIZE_QUESTIONS = 25;
static var DISPLAY_QUESTION_POINTS = 26;
static var COLOR_HUE = 27;
static var COLOR_SATURATION = 28;
static var COLOR_LIGHTNESS = 29;
static var SKIN_ID = 31;
static var SKIN_MODULE_ID = 32;
static var ALLOW_QUIZ_INTERRUPTION = 33;
static var VIDEO_FORMAT = 37;
static var NORMALIZE_SCORE_ENABLED = 38;
static var MAX_NORMALIZED_SCORE = 39;
static var SHOW_ALL_QUESTIONS = 40;
static var MAX_QUESTIONS_COUNT = 41;
static var SHOW_AUTHORIZATION_DIALOG = 43;
static var STANDALONE_MODE = 44;
static var QUIZ_TYPE = 45;
static var DISPLAY_QUESTION_LIST = 48;
static var DISPLAY_USER_SCORE_IF_PASSED = 49;
static var DISPLAY_PASSING_SCORE_IF_PASSED = 50;
static var DISPLAY_RESULT_MESSAGE_IF_PASSED = 51;
static var REVIEW_ENABLED_IF_PASSED = 52;
static var ALLOW_PRINT_RESULTS_IF_PASSED = 53;
static var SHOW_RESULT_PAGE_IF_PASSED = 54;
static var SEND_RESULT_TO_EMAIL_IF_PASSED = 55;
static var RECEIVE_RESULT_EMAIL_IF_PASSED = 56;
static var SEND_DETAIL_RESULT_TO_EMAIL_IF_PASSED = 57;
static var SEND_RESULT_TO_URL_IF_PASSED = 58;
static var RECEIVE_RESULT_URL_IF_PASSED = 59;
static var AFTER_QUIZ_FINISH_ACTION_IF_PASSED = 60;
static var DISPLAY_USER_SCORE_IF_FAILED = 62;
static var DISPLAY_PASSING_SCORE_IF_FAILED = 63;
static var DISPLAY_RESULT_MESSAGE_IF_FAILED = 64;
static var REVIEW_ENABLED_IF_FAILED = 65;
static var ALLOW_PRINT_RESULTS_IF_FAILED = 66;
static var SHOW_RESULT_PAGE_IF_FAILED = 67;
static var SEND_RESULT_TO_EMAIL_IF_FAILED = 68;
static var RECEIVE_RESULT_EMAIL_IF_FAILED = 69;
static var SEND_DETAIL_RESULT_TO_EMAIL_IF_FAILED = 70;
static var SEND_RESULT_TO_URL_IF_FAILED = 71;
static var RECEIVE_RESULT_URL_IF_FAILED = 72;
static var AFTER_QUIZ_FINISH_ACTION_IF_FAILED = 73;
static var DISPLAY_RESULT_MESSAGE_IF_FINISHED = 78;
static var REVIEW_ENABLED_IF_FINISHED = 79;
static var ALLOW_PRINT_RESULTS_IF_FINISHED = 80;
static var SHOW_RESULT_PAGE_IF_FINISHED = 81;
static var SEND_RESULT_TO_EMAIL_IF_FINISHED = 82;
static var RECEIVE_RESULT_EMAIL_IF_FINISHED = 83;
static var SEND_DETAIL_RESULT_TO_EMAIL_IF_FINISHED = 84;
static var SEND_RESULT_TO_URL_IF_FINISHED = 85;
static var RECEIVE_RESULT_URL_IF_FINISHED = 86;
static var AFTER_QUIZ_FINISH_ACTION_IF_FINISHED = 87;
static var DISPLAY_POINTS = 88;
static var DISPLAY_RESOURCES = 89;
static var DISPLAY_DETAILED_RESULTS_IF_FINISHED = 90;
static var DISPLAY_DETAILED_RESULTS_IF_FAILED = 91;
static var DISPLAY_DETAILED_RESULTS_IF_PASSED = 92;
static var SETTINGS_VERSION = 93;
static var PROVIDE_FEEDBACK = 94;
static var DISABLE_REVIEW_IF_UNABLE_TO_SEND_REPORT_IF_FINISHED = 95;
static var DISABLE_REVIEW_IF_UNABLE_TO_SEND_REPORT_IF_FAILED = 96;
static var DISABLE_REVIEW_IF_UNABLE_TO_SEND_REPORT_IF_PASSED = 97;
static var FREE_MODE = 98;
static var ATTEMPTS_COUNT = 99;
static var USED_ATTEMPTS_COUNT = 100;
}
Symbol 688 MovieClip [__Packages.quizmaker.api.CQuizType] Frame 0
class quizmaker.api.CQuizType
{
function CQuizType () {
}
static var GRADED = "graded";
static var SURVEY = "survey";
}
Symbol 689 MovieClip [__Packages.quizmaker.api.CSlideType] Frame 0
class quizmaker.api.CSlideType
{
function CSlideType () {
}
static var TRUE_FALSE_QUESTION = 240;
static var MULTIPLE_CHOICE_QUESTION = 241;
static var MULTIPLE_RESPONSE_QUESTION = 242;
static var TYPE_IN_QUESTION = 243;
static var SEQUENCE_QUESTION = 244;
static var NUMERIC_QUESTION = 245;
static var MATCHING_QUESTION = 246;
static var FILL_IN_THE_BLANK_QUESTION = 247;
static var MULTIPLE_CHOICE_TEXT_QUESTION = 248;
static var WORD_BANK_QUESTION = 249;
static var ESSAY_QUESTION = 250;
static var HOTSPOT_QUESTION = 251;
static var LIKERT_SCALE_QUESTION = 252;
static var PICK_ONE_QUESTION = 253;
static var YES_NO_QUESTION = 254;
static var PICK_MANY_QUESTION = 255;
static var SHORT_ANSWER_QUESTION = 256;
static var NUMERIC_SURVEY_QUESTION = 257;
static var RANKING_QUESTION = 258;
static var MATCHING_SURVEY_QUESTION = 259;
static var WHICH_WORD_QUESTION = 260;
static var BLANK_SLIDE_QUESTION = 261;
static var FILL_IN_THE_BLANK_SURVEY_QUESTION = 262;
static var MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION = 263;
}
Symbol 690 MovieClip [__Packages.quizmaker.api.IGradedQuestion] Frame 0
interface quizmaker.api.IGradedQuestion extends quizmaker.api.IQuestion
{
}
Symbol 691 MovieClip [__Packages.quizmaker.api.question.IGradedChoicesQuestion] Frame 0
interface quizmaker.api.question.IGradedChoicesQuestion extends quizmaker.api.IGradedQuestion
{
}
Symbol 692 MovieClip [__Packages.quizmaker.api.IChoice] Frame 0
interface quizmaker.api.IChoice
{
}
Symbol 693 MovieClip [__Packages.quizmaker.api.question.IMultipleChoiceQuestion] Frame 0
interface quizmaker.api.question.IMultipleChoiceQuestion extends quizmaker.api.question.IGradedChoicesQuestion
{
}
Symbol 694 MovieClip [__Packages.quizmaker.api.question.ITrueFalseQuestion] Frame 0
interface quizmaker.api.question.ITrueFalseQuestion extends quizmaker.api.question.IMultipleChoiceQuestion
{
}
Symbol 695 MovieClip [__Packages.quizmaker.api.question.IMultipleChoiceQuestionEx] Frame 0
interface quizmaker.api.question.IMultipleChoiceQuestionEx extends quizmaker.api.question.IGradedChoicesQuestion
{
}
Symbol 696 MovieClip [__Packages.quizmaker.api.question.IMultipleResponseQuestion] Frame 0
interface quizmaker.api.question.IMultipleResponseQuestion extends quizmaker.api.question.IGradedChoicesQuestion
{
}
Symbol 697 MovieClip [__Packages.quizmaker.api.question.IFillInTheBlankQuestion] Frame 0
interface quizmaker.api.question.IFillInTheBlankQuestion extends quizmaker.api.IGradedQuestion
{
}
Symbol 698 MovieClip [__Packages.quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetails] Frame 0
interface quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetails
{
}
Symbol 699 MovieClip [__Packages.quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetailsItem] Frame 0
interface quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetailsItem
{
}
Symbol 700 MovieClip [__Packages.quizmaker.api.question.IMultipleChoiceTextQuestion] Frame 0
interface quizmaker.api.question.IMultipleChoiceTextQuestion extends quizmaker.api.IGradedQuestion
{
}
Symbol 701 MovieClip [__Packages.quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetails] Frame 0
interface quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetails
{
}
Symbol 702 MovieClip [__Packages.quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetailsItem] Frame 0
interface quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetailsItem
{
}
Symbol 703 MovieClip [__Packages.quizmaker.api.question.ITypeInQuestion] Frame 0
interface quizmaker.api.question.ITypeInQuestion extends quizmaker.api.IGradedQuestion
{
}
Symbol 704 MovieClip [__Packages.quizmaker.api.question.ISequenceQuestion] Frame 0
interface quizmaker.api.question.ISequenceQuestion extends quizmaker.api.question.IGradedChoicesQuestion
{
}
Symbol 705 MovieClip [__Packages.quizmaker.api.question.INumericQuestion] Frame 0
interface quizmaker.api.question.INumericQuestion extends quizmaker.api.IGradedQuestion
{
}
Symbol 706 MovieClip [__Packages.quizmaker.api.question.IMatchingQuestion] Frame 0
interface quizmaker.api.question.IMatchingQuestion extends quizmaker.api.IGradedQuestion
{
}
Symbol 707 MovieClip [__Packages.quizmaker.api.ISurveyQuestion] Frame 0
interface quizmaker.api.ISurveyQuestion extends quizmaker.api.IQuestion
{
}
Symbol 708 MovieClip [__Packages.quizmaker.api.question.IEssayQuestion] Frame 0
interface quizmaker.api.question.IEssayQuestion extends quizmaker.api.ISurveyQuestion
{
}
Symbol 709 MovieClip [__Packages.quizmaker.api.question.IWordBankQuestion] Frame 0
interface quizmaker.api.question.IWordBankQuestion extends quizmaker.api.IGradedQuestion
{
}
Symbol 710 MovieClip [__Packages.quizmaker.api.question.word_bank.IDetailsBase] Frame 0
interface quizmaker.api.question.word_bank.IDetailsBase
{
}
Symbol 711 MovieClip [__Packages.quizmaker.api.question.word_bank.IDetailsItemBase] Frame 0
interface quizmaker.api.question.word_bank.IDetailsItemBase
{
}
Symbol 712 MovieClip [__Packages.quizmaker.api.question.word_bank.IWordBankDetails] Frame 0
interface quizmaker.api.question.word_bank.IWordBankDetails extends quizmaker.api.question.word_bank.IDetailsBase
{
}
Symbol 713 MovieClip [__Packages.quizmaker.api.question.word_bank.IWordsCollection] Frame 0
interface quizmaker.api.question.word_bank.IWordsCollection
{
}
Symbol 714 MovieClip [__Packages.quizmaker.api.question.word_bank.IWordBase] Frame 0
interface quizmaker.api.question.word_bank.IWordBase
{
}
Symbol 715 MovieClip [__Packages.quizmaker.api.question.IHotspotQuestion] Frame 0
interface quizmaker.api.question.IHotspotQuestion extends quizmaker.api.IGradedQuestion
{
}
Symbol 716 MovieClip [__Packages.quizmaker.api.question.ILikertScaleQuestion] Frame 0
interface quizmaker.api.question.ILikertScaleQuestion extends quizmaker.api.ISurveyQuestion
{
}
Symbol 717 MovieClip [__Packages.quizmaker.api.question.ISurveyChoicesQuestion] Frame 0
interface quizmaker.api.question.ISurveyChoicesQuestion extends quizmaker.api.ISurveyQuestion
{
}
Symbol 718 MovieClip [__Packages.quizmaker.api.question.IYesNoQuestion] Frame 0
interface quizmaker.api.question.IYesNoQuestion extends quizmaker.api.question.ISurveyChoicesQuestion
{
}
Symbol 719 MovieClip [__Packages.quizmaker.api.question.IPickOneQuestion] Frame 0
interface quizmaker.api.question.IPickOneQuestion extends quizmaker.api.question.ISurveyChoicesQuestion
{
}
Symbol 720 MovieClip [__Packages.quizmaker.api.IChoiceEx] Frame 0
interface quizmaker.api.IChoiceEx extends quizmaker.api.IChoice
{
}
Symbol 721 MovieClip [__Packages.quizmaker.api.question.IPickManyQuestion] Frame 0
interface quizmaker.api.question.IPickManyQuestion extends quizmaker.api.question.ISurveyChoicesQuestion
{
}
Symbol 722 MovieClip [__Packages.quizmaker.api.question.IShortAnswerQuestion] Frame 0
interface quizmaker.api.question.IShortAnswerQuestion extends quizmaker.api.ISurveyQuestion
{
}
Symbol 723 MovieClip [__Packages.quizmaker.api.question.INumericSurveyQuestion] Frame 0
interface quizmaker.api.question.INumericSurveyQuestion extends quizmaker.api.ISurveyQuestion
{
}
Symbol 724 MovieClip [__Packages.quizmaker.api.question.IRankingQuestion] Frame 0
interface quizmaker.api.question.IRankingQuestion extends quizmaker.api.question.ISurveyChoicesQuestion
{
}
Symbol 725 MovieClip [__Packages.quizmaker.api.question.IMatchingSurveyQuestion] Frame 0
interface quizmaker.api.question.IMatchingSurveyQuestion extends quizmaker.api.ISurveyQuestion
{
}
Symbol 726 MovieClip [__Packages.quizmaker.api.question.IWhichWordQuestion] Frame 0
interface quizmaker.api.question.IWhichWordQuestion extends quizmaker.api.ISurveyQuestion
{
}
Symbol 727 MovieClip [__Packages.quizmaker.api.question.which_word.IWhichWordDetails] Frame 0
interface quizmaker.api.question.which_word.IWhichWordDetails
{
}
Symbol 728 MovieClip [__Packages.quizmaker.api.question.IFillInTheBlankSurveyQuestion] Frame 0
interface quizmaker.api.question.IFillInTheBlankSurveyQuestion extends quizmaker.api.ISurveyQuestion
{
}
Symbol 729 MovieClip [__Packages.quizmaker.api.question.fill_in_the_blank_s.IFillInTheBlankSurveyDetails] Frame 0
interface quizmaker.api.question.fill_in_the_blank_s.IFillInTheBlankSurveyDetails
{
}
Symbol 730 MovieClip [__Packages.quizmaker.api.question.fill_in_the_blank_s.IFillInTheBlankSurveyDetailsItem] Frame 0
interface quizmaker.api.question.fill_in_the_blank_s.IFillInTheBlankSurveyDetailsItem
{
}
Symbol 731 MovieClip [__Packages.quizmaker.api.question.IMultipleChoiceTextSurveyQuestion] Frame 0
interface quizmaker.api.question.IMultipleChoiceTextSurveyQuestion extends quizmaker.api.ISurveyQuestion
{
}
Symbol 732 MovieClip [__Packages.quizmaker.api.question.mchoice_text_survey.IMultipleChoiceTextSurveyDetails] Frame 0
interface quizmaker.api.question.mchoice_text_survey.IMultipleChoiceTextSurveyDetails
{
}
Symbol 733 MovieClip [__Packages.quizmaker.api.question.mchoice_text_survey.IMultipleChoiceTextSurveyDetailsItem] Frame 0
interface quizmaker.api.question.mchoice_text_survey.IMultipleChoiceTextSurveyDetailsItem
{
}
Symbol 734 MovieClip [__Packages.quizmaker.core.api.ISlide] Frame 0
interface quizmaker.core.api.ISlide extends quizmaker.api.ISlide
{
}
Symbol 735 MovieClip [__Packages.quizmaker.core.api.ISlideListener] Frame 0
interface quizmaker.core.api.ISlideListener
{
}
Symbol 736 MovieClip [__Packages.quizmaker.core.api.question.IQuestion] Frame 0
interface quizmaker.core.api.question.IQuestion extends quizmaker.core.api.ISlide
{
}
Symbol 737 MovieClip [__Packages.quizmaker.core.api.question.IChoicesQuestion] Frame 0
interface quizmaker.core.api.question.IChoicesQuestion extends quizmaker.core.api.question.IQuestion
{
}
Symbol 738 MovieClip [__Packages.quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetailsBlank] Frame 0
interface quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetailsBlank extends quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetailsItem
{
}
Symbol 739 MovieClip [__Packages.quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetailsText] Frame 0
interface quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetailsText extends quizmaker.api.question.multiple_choice_text.IMultipleChoiceTextDetailsItem
{
}
Symbol 740 MovieClip [__Packages.quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetailsBlank] Frame 0
interface quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetailsBlank extends quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetailsItem
{
}
Symbol 741 MovieClip [__Packages.quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetailsText] Frame 0
interface quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetailsText extends quizmaker.api.question.fill_in_the_blank.IFillInTheBlankDetailsItem
{
}
Symbol 742 MovieClip [__Packages.quizmaker.api.INumericAnswer] Frame 0
interface quizmaker.api.INumericAnswer
{
}
Symbol 743 MovieClip [__Packages.quizmaker.api.CNumericOperationType] Frame 0
class quizmaker.api.CNumericOperationType
{
function CNumericOperationType () {
}
static var EQUAL = 0;
static var BETWEEN = 1;
static var GREATER = 2;
static var GREATER_OR_EQUAL = 3;
static var LESS = 4;
static var LESS_OR_EQUAL = 5;
static var NOT_EQUAL = 6;
}
Symbol 744 MovieClip [__Packages.quizmaker.api.IMatchChoice] Frame 0
interface quizmaker.api.IMatchChoice
{
}
Symbol 745 MovieClip [__Packages.quizmaker.api.question.word_bank.IDetailsWordBase] Frame 0
interface quizmaker.api.question.word_bank.IDetailsWordBase extends quizmaker.api.question.word_bank.IDetailsItemBase
{
}
Symbol 746 MovieClip [__Packages.quizmaker.api.question.word_bank.IWordBankDetailsWord] Frame 0
interface quizmaker.api.question.word_bank.IWordBankDetailsWord extends quizmaker.api.question.word_bank.IDetailsWordBase
{
}
Symbol 747 MovieClip [__Packages.quizmaker.core.api.question.hotspot.IHotspot] Frame 0
interface quizmaker.core.api.question.hotspot.IHotspot
{
}
Symbol 748 MovieClip [__Packages.quizmaker.api.question.which_word.IWhichWordDetailsBlank] Frame 0
interface quizmaker.api.question.which_word.IWhichWordDetailsBlank extends quizmaker.api.question.word_bank.IDetailsWordBase
{
}
Symbol 749 MovieClip [__Packages.quizmaker.api.question.fill_in_the_blank_s.IFillInTheBlankSurveyDetailsBlank] Frame 0
interface quizmaker.api.question.fill_in_the_blank_s.IFillInTheBlankSurveyDetailsBlank extends quizmaker.api.question.fill_in_the_blank_s.IFillInTheBlankSurveyDetailsItem
{
}
Symbol 750 MovieClip [__Packages.quizmaker.api.question.mchoice_text_survey.IMultipleChoiceTextSurveyDetailsBlank] Frame 0
interface quizmaker.api.question.mchoice_text_survey.IMultipleChoiceTextSurveyDetailsBlank extends quizmaker.api.question.mchoice_text_survey.IMultipleChoiceTextSurveyDetailsItem
{
}
Symbol 751 MovieClip [__Packages.quizmaker.api.question.mchoice_text_survey.IMultipleChoiceTextSurveyDetailsText] Frame 0
interface quizmaker.api.question.mchoice_text_survey.IMultipleChoiceTextSurveyDetailsText extends quizmaker.api.question.mchoice_text_survey.IMultipleChoiceTextSurveyDetailsItem
{
}
Symbol 752 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackControllerEx] Frame 0
interface fsplayer.api.IPresentationPlaybackControllerEx extends fsplayer.api.IPresentationPlaybackController
{
}
Symbol 616 MovieClip Frame 1
function initialize(player) {
if (_root.id) {
g_htmlConnector = new com.flashspring.coreplugins.htmlconnector.CHtmlConnectorForLms(player, _root.id);
}
}
var g_htmlConnector;
Symbol 755 MovieClip [__Packages.fsplayer.api.IPlayerListener] Frame 0
interface fsplayer.api.IPlayerListener
{
}
Symbol 756 MovieClip [__Packages.fsplayer.api.IPlayer] Frame 0
interface fsplayer.api.IPlayer
{
}
Symbol 757 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackController] Frame 0
interface fsplayer.api.IPresentationPlaybackController
{
}
Symbol 758 MovieClip [__Packages.fsplayer.api.IPlaybackListener] Frame 0
interface fsplayer.api.IPlaybackListener
{
}
Symbol 759 MovieClip [__Packages.fsplayer.api.IRestrictedPresentationPlaybackController] Frame 0
interface fsplayer.api.IRestrictedPresentationPlaybackController extends fsplayer.api.IPresentationPlaybackController
{
}
Symbol 760 MovieClip [__Packages.fsplayer.api.IRestrictedPlaybackListener] Frame 0
interface fsplayer.api.IRestrictedPlaybackListener
{
}
Symbol 761 MovieClip [__Packages.fsplayer.api.restriction.ISlideChangeRestriction] Frame 0
interface fsplayer.api.restriction.ISlideChangeRestriction
{
}
Symbol 762 MovieClip [__Packages.fsplayer.api.ISoundController] Frame 0
interface fsplayer.api.ISoundController
{
}
Symbol 763 MovieClip [__Packages.fsplayer.api.ISoundListener] Frame 0
interface fsplayer.api.ISoundListener
{
}
Symbol 764 MovieClip [__Packages.fsplayer.api.IPresentationInfo] Frame 0
interface fsplayer.api.IPresentationInfo
{
}
Symbol 765 MovieClip [__Packages.fsplayer.api.ISlidesCollection] Frame 0
interface fsplayer.api.ISlidesCollection
{
}
Symbol 766 MovieClip [__Packages.fsplayer.api.ISlideInfo] Frame 0
interface fsplayer.api.ISlideInfo
{
}
Symbol 767 MovieClip [__Packages.fsplayer.api.IAnimationSteps] Frame 0
interface fsplayer.api.IAnimationSteps
{
}
Symbol 768 MovieClip [__Packages.fsplayer.api.IAnimationStep] Frame 0
interface fsplayer.api.IAnimationStep
{
}
Symbol 769 MovieClip [__Packages.fsplayer.api.ISlideResources] Frame 0
interface fsplayer.api.ISlideResources
{
}
Symbol 770 MovieClip [__Packages.fsplayer.api.IPresenterVideo] Frame 0
interface fsplayer.api.IPresenterVideo
{
}
Symbol 771 MovieClip [__Packages.fsplayer.api.ISlideListener] Frame 0
interface fsplayer.api.ISlideListener
{
}
Symbol 772 MovieClip [__Packages.fsplayer.api.IWebObjectsCollection] Frame 0
interface fsplayer.api.IWebObjectsCollection
{
}
Symbol 773 MovieClip [__Packages.fsplayer.api.IWebObject] Frame 0
interface fsplayer.api.IWebObject
{
}
Symbol 774 MovieClip [__Packages.fsplayer.api.IThumbnailsCollection] Frame 0
interface fsplayer.api.IThumbnailsCollection
{
}
Symbol 775 MovieClip [__Packages.fsplayer.api.ISlideThumbnail] Frame 0
interface fsplayer.api.ISlideThumbnail
{
}
Symbol 776 MovieClip [__Packages.fsplayer.api.ISlideThumbnailLoadingListener] Frame 0
interface fsplayer.api.ISlideThumbnailLoadingListener
{
}
Symbol 777 MovieClip [__Packages.fsplayer.api.IPresenterInfo] Frame 0
interface fsplayer.api.IPresenterInfo
{
}
Symbol 778 MovieClip [__Packages.fsplayer.api.IPresenterPhoto] Frame 0
interface fsplayer.api.IPresenterPhoto
{
}
Symbol 779 MovieClip [__Packages.fsplayer.api.IPresenterPhotoLoadingListener] Frame 0
interface fsplayer.api.IPresenterPhotoLoadingListener
{
}
Symbol 780 MovieClip [__Packages.fsplayer.api.ICompanyInfo] Frame 0
interface fsplayer.api.ICompanyInfo
{
}
Symbol 781 MovieClip [__Packages.fsplayer.api.ICompanyLogo] Frame 0
interface fsplayer.api.ICompanyLogo
{
}
Symbol 782 MovieClip [__Packages.fsplayer.api.ICompanyLogoLoadingListener] Frame 0
interface fsplayer.api.ICompanyLogoLoadingListener
{
}
Symbol 783 MovieClip [__Packages.fsplayer.api.INarrationInfo] Frame 0
interface fsplayer.api.INarrationInfo
{
}
Symbol 784 MovieClip [__Packages.fsplayer.api.IReferencesCollection] Frame 0
interface fsplayer.api.IReferencesCollection
{
}
Symbol 785 MovieClip [__Packages.fsplayer.api.IReferenceInfo] Frame 0
interface fsplayer.api.IReferenceInfo
{
}
Symbol 786 MovieClip [__Packages.fsplayer.api.IPresentersCollection] Frame 0
interface fsplayer.api.IPresentersCollection
{
}
Symbol 787 MovieClip [__Packages.fsplayer.api.IPresentationListener] Frame 0
interface fsplayer.api.IPresentationListener
{
}
Symbol 788 MovieClip [__Packages.fsplayer.ui.skins.ISkin] Frame 0
interface fsplayer.ui.skins.ISkin
{
}
Symbol 789 MovieClip [__Packages.fsplayer.ui.skins.ISlideShowWindow] Frame 0
interface fsplayer.ui.skins.ISlideShowWindow
{
}
Symbol 790 MovieClip [__Packages.fsplayer.ui.skins.ISkinListener] Frame 0
interface fsplayer.ui.skins.ISkinListener
{
}
Symbol 791 MovieClip [__Packages.fsplayer.api.IKeyboardSettings] Frame 0
interface fsplayer.api.IKeyboardSettings
{
}
Symbol 792 MovieClip [__Packages.fsplayer.api.IPlaybackAction] Frame 0
interface fsplayer.api.IPlaybackAction
{
}
Symbol 793 MovieClip [__Packages.CAS3Connector] Frame 0
class CAS3Connector extends LocalConnection implements fsplayer.api.IPlayerListener, fsplayer.api.IPlaybackListener, fsplayer.api.ISoundListener
{
var m_commandConnectionName, m_eventConnectionName, allowDomain, allowInsecureDomain, connect, m_playbackController, m_soundController, m_slides, send;
function CAS3Connector (player, commandConnectionName, eventConnectionName) {
super();
m_commandConnectionName = commandConnectionName;
m_eventConnectionName = eventConnectionName;
allowDomain = function (sendingDomain) {
return(true);
};
allowInsecureDomain = function (sendingDomain) {
return(true);
};
connect(m_commandConnectionName);
if (player.isInitialized()) {
onPlayerInitDontRemoveListener(player);
} else {
player.addListener(this);
}
}
function onStatus(infoObject) {
}
function onPlayerInitDontRemoveListener(player) {
m_playbackController = player.getPlaybackController();
m_playbackController.addListener(this);
m_soundController = player.getSoundController();
m_soundController.addListener(this);
m_slides = player.getPresentationInfo().getSlides();
m_sendPresentationInfo = new Object();
m_sendSlidesInfo = new Array();
var _local6 = new Object();
initPlayerObj(_local6, player);
var _local4 = objectToString(_local6);
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = Math.min(10000, _local4.length - _local2);
var _local5 = _local4.substr(_local2, _local3);
send(m_eventConnectionName, "onInfo", _local5);
_local2 = _local2 + _local3;
}
send(m_eventConnectionName, "onPlayerInit");
}
function onPlayerInit(player) {
player.removeListener(this);
onPlayerInitDontRemoveListener(player);
}
function initPlayerObj(obj, p) {
initPlaybackControllerObj((obj.playbackController = new Object()), p.getPlaybackController());
initSoundControllerObj((obj.soundController = new Object()), p.getSoundController());
obj.settings = p.getSettings();
initPresentationInfoObj((obj.presentationInfo = new Object()), p.getPresentationInfo());
}
function initPlaybackControllerObj(obj, pc) {
obj.playing = pc.isPlaying();
obj.currentSlideDuration = pc.getCurrentSlideDuration();
obj.currentSlideIndex = pc.getCurrentSlideIndex();
obj.currentSlidePlaybackPosition = pc.getCurrentSlidePlaybackPosition();
obj.currentStepIndex = pc.getCurrentStepIndex();
obj.automaticSlideSwitching = pc.getAutomaticSlideSwitching();
obj.currentVisibleSlideIndex = pc.getCurrentVisibleSlideIndex();
obj.nextSlideIndex = pc.getNextSlideIndex();
obj.previousSlideIndex = pc.getPreviousSlideIndex();
}
function initSoundControllerObj(obj, sc) {
obj.volume = sc.getVolume();
}
function initPresentationInfoObj(obj, pi) {
obj.title = pi.getTitle();
initSlideCollectionObj((obj.slides = new Object()), pi.getSlides());
obj.slideWidth = pi.getSlideWidth();
obj.slideHeight = pi.getSlideHeight();
obj.hasPresenter = pi.hasPresenter();
if (obj.hasPresenter) {
initPresenterInfoObj((obj.presenterInfo = new Object()), pi.getPresenterInfo());
}
obj.frameRate = pi.getFrameRate();
obj.duration = pi.getDuration();
obj.hasCompanyInfo = pi.hasCompanyInfo();
if (obj.hasCompanyInfo) {
initCompanyInfoObj((obj.companyInfo = new Object()), pi.getCompanyInfo());
}
obj.hasReferences = pi.hasReferences();
if (obj.hasReferences) {
initReferencesCollectionObj((obj.references = new Object()), pi.getReferences());
}
obj.visibleDuration = pi.getVisibleDuration();
initPresentersCollectionObj((obj.presenters = new Object()), pi.getPresenters());
}
function initSlideCollectionObj(obj, sc) {
obj.slidesCount = sc.getSlidesCount();
obj.slidesInfo = new Array();
var _local2 = 0;
while (_local2 < obj.slidesCount) {
initSlideInfoObj((obj.slidesInfo[_local2] = new Object()), sc.getSlideInfo(_local2));
_local2++;
}
obj.visibleSlidesCount = sc.getVisibleSlidesCount();
obj.visibleSlides = new Array();
var _local3 = 0;
while (_local3 < obj.visibleSlidesCount) {
obj.visibleSlides[_local3] = sc.getVisibleSlide(_local3).getIndex();
_local3++;
}
}
function initSlideInfoObj(obj, si) {
initSlideInfoObjMajor(obj, si);
initSlideInfoObjMinor(obj, si);
}
function initSlideInfoObjMajor(obj, si) {
obj.startTime = si.getStartTime();
obj.endTime = si.getEndTime();
obj.level = si.getLevel();
obj.hidden = si.isHidden();
obj.visibleStartTime = si.getVisibleStartTime();
obj.visibleEndTime = si.getVisibleEndTime();
}
function initSlideInfoObjMinor(obj, si) {
obj.loaded = si.isLoaded();
obj.title = si.getTitle();
initAnimationStepsObj((obj.animationSteps = new Object()), si.getAnimationSteps());
obj.notesText = si.getNotesText();
obj.startStepIndex = si.getStartStepIndex();
obj.endStepIndex = si.getEndStepIndex();
obj.slideText = si.getSlideText();
obj.notesTextNormalized = si.getNotesTextNormalized();
obj.titleNormalized = si.getTitleNormalized();
obj.visibleStartStepIndex = si.getVisibleStartStepIndex();
obj.visibleEndStepIndex = si.getVisibleEndStepIndex();
obj.presenterIndex = si.getPresenterIndex();
initSlideResourcesObj((obj.resources = new Object()), si.getResources());
}
function initAnimationStepsObj(obj, as) {
obj.stepsCount = as.getStepsCount();
obj.duration = as.getDuration();
obj.steps = new Array();
var _local2 = 0;
while (_local2 < obj.stepsCount) {
initAnimationStepObj((obj.steps[_local2] = new Object()), as.getStep(_local2));
_local2++;
}
}
function initAnimationStepObj(obj, as) {
obj.playTime = as.getPlayTime();
obj.pauseTime = as.getPauseTime();
obj.startTime = as.getStartTime();
obj.pauseStartTime = as.getPauseStartTime();
obj.pauseEndTime = as.getPauseEndTime();
}
function initSlideResourcesObj(obj, sr) {
obj.hasPresenterVideo = sr.hasPresenterVideo();
if (obj.hasPresenterVideo) {
initPresenterVideoObj((obj.presenterVideo = new Object()), sr.getPresenterVideo());
}
}
function initPresenterVideoObj(obj, pv) {
obj.width = pv.getWidth();
obj.height = pv.getHeight();
}
function initPresenterInfoObj(obj, pi) {
obj.name = pi.getName();
obj.title = pi.getTitle();
obj.biographyText = pi.getBiographyText();
obj.email = pi.getEmail();
obj.webSite = pi.getWebSite();
obj.hasPhoto = pi.hasPhoto();
obj.index = pi.getIndex();
}
function initReferencesCollectionObj(obj, rc) {
obj.count = rc.getCount();
obj.references = new Array();
var _local2 = 0;
while (_local2 < obj.count) {
initReferenceInfoObj((obj.references[_local2] = new Object()), rc.getReference(_local2));
_local2++;
}
}
function initReferenceInfoObj(obj, ri) {
obj.title = ri.getTitle();
obj.url = ri.getURL();
obj.target = ri.getTarget();
}
function initPresentersCollectionObj(obj, pc) {
obj.count = pc.getCount();
obj.presenters = new Array();
var _local1 = 0;
while (_local1 < obj.count) {
initPresenterObj((obj.presenters[_local1] = new Object()), pc.getPresenter(_local1));
_local1++;
}
}
function initCompanyInfoObj(obj, ci) {
obj.hasLogo = ci.hasLogo();
if (obj.hasLogo) {
initCompanyLogoObj((obj.logo = new Object()), ci.getLogo());
}
}
function initCompanyLogoObj(obj, cl) {
obj.hyperlinkUrl = cl.getHyperlinkURL();
obj.hyperlinkTarget = cl.getHyperlinkTarget();
}
function play() {
m_playbackController.play();
}
function pause() {
m_playbackController.pause();
}
function gotoNextSlide(autoStart) {
m_playbackController.gotoNextSlide(autoStart);
}
function gotoPreviousSlide(autoStart) {
m_playbackController.gotoPreviousSlide(autoStart);
}
function gotoLastViewedSlide(autoStart) {
m_playbackController.gotoLastViewedSlide(autoStart);
}
function gotoSlide(slideIndex, autoStart) {
m_playbackController.gotoSlide(slideIndex, autoStart);
}
function pauseCurrentSlideAt(position) {
m_playbackController.pauseCurrentSlideAt(position);
}
function playCurrentSlideFrom(position) {
m_playbackController.playCurrentSlideFrom(position);
}
function seek(position) {
m_playbackController.seek(position);
send(m_eventConnectionName, "onSeekingComplete");
}
function endSeek(resumePlayback) {
m_playbackController.endSeek(resumePlayback);
}
function gotoNextStep() {
m_playbackController.gotoNextStep();
}
function gotoPreviousStep() {
m_playbackController.gotoPreviousStep();
}
function setAnimationStepPause(pause) {
m_playbackController.setAnimationStepPause(pause);
}
function playFromStep(stepIndex) {
m_playbackController.playFromStep(stepIndex);
}
function pauseAtStepStart(stepIndex) {
m_playbackController.pauseAtStepStart(stepIndex);
}
function pauseAtStepEnd(stepIndex) {
m_playbackController.pauseAtStepEnd(stepIndex);
}
function enableAutomaticSlideSwitching(autoSwitch) {
m_playbackController.enableAutomaticSlideSwitching(autoSwitch);
}
function gotoVisibleSlide(visibleSlideIndex, autoStart) {
m_playbackController.gotoVisibleSlide(visibleSlideIndex, autoStart);
}
function gotoFirstSlide(autoStart) {
m_playbackController.gotoFirstSlide(autoStart);
}
function gotoLastSlide(autoStart) {
m_playbackController.gotoLastSlide(autoStart);
}
function setVolume(value) {
m_soundController.setVolume(value);
}
function onPausePlayback() {
send(m_eventConnectionName, "onPausePlayback");
}
function onStartPlayback() {
send(m_eventConnectionName, "onStartPlayback");
}
function onAnimationStepChanged(stepIndex) {
send(m_eventConnectionName, "onAnimationStepChanged", stepIndex);
}
function onSlidePositionChanged(position) {
send(m_eventConnectionName, "onSlidePositionChanged", position);
}
function onSlideTransitionPhaseChanged(phase) {
}
function onCurrentSlideIndexChanged(slideIndex) {
send(m_eventConnectionName, "onCurrentSlideIndexChanged", slideIndex, m_playbackController.getPreviousSlideIndex(), m_playbackController.getNextSlideIndex());
}
function onSlideLoadingComplete(slideIndex) {
send(m_eventConnectionName, "onSlideLoadingComplete", slideIndex);
}
function onPresentationPlaybackComplete() {
send(m_eventConnectionName, "onPresentationPlaybackComplete");
}
function onKeyboardFocusStateChanged(acquireFocus) {
send(m_eventConnectionName, "onKeyboardFocusStateChanged", acquireFocus);
}
function onSoundVolumeChanged(soundController) {
send(m_eventConnectionName, "onSoundVolumeChanged", soundController.getVolume());
}
function objectToString(obj) {
var _local2 = new XML();
_local2.appendChild(objectToXmlNode(obj, _local2));
return(_local2.toString());
}
function objectToXmlNode(obj, xml) {
var _local3;
var _local6 = typeof(obj);
if (_local6 == "object") {
_local3 = xml.createElement("o");
for (var _local7 in obj) {
var _local2 = objectToXmlNode(obj[_local7], xml);
_local2.attributes.n = _local7;
_local3.appendChild(_local2);
}
} else if (_local6 == "string") {
_local3 = xml.createElement("s");
_local3.attributes.v = String(obj);
} else if (_local6 == "number") {
_local3 = xml.createElement("n");
_local3.attributes.v = Number(obj);
} else if (_local6 == "boolean") {
_local3 = xml.createElement((Boolean(obj) ? "t" : "f"));
} else if (_local6 == "null") {
_local3 = xml.createElement("l");
} else if (_local6 == "undefined") {
_local3 = xml.createElement("u");
}
return(_local3);
}
function onPlaybackSuspended() {
send(m_eventConnectionName, "onPlaybackSuspended");
}
function onPlaybackResumed() {
send(m_eventConnectionName, "onPlaybackResumed");
}
function onHandleCloseRequest() {
}
}
Symbol 753 MovieClip Frame 1
function initialize(player) {
if (_root.commandConnectionName && (_root.eventConnectionName)) {
g_connector = new CAS3Connector(player, _root.commandConnectionName, _root.eventConnectionName);
}
}
var g_connector;
Symbol 797 MovieClip [spr6_48450687] Frame 1
this._lockroot = true;
function SoundStart(position, loops) {
SoundStop();
SoundGetObject().start(((position == undefined) ? 0 : (position)), ((loops == undefined) ? 1 : (loops)));
}
function SoundSetListener(l) {
listener = l;
}
function SoundGetDuration() {
return(SoundGetObject().duration);
}
function SoundGetVolume() {
return(SoundGetObject().getVolume() * 0.01);
}
function SoundSetVolume(vol) {
vol = ((vol < 0) ? 0 : (((vol > 1) ? 1 : (vol))));
SoundGetObject().setVolume(vol * 100);
}
function SoundStop() {
SoundGetObject().stop();
}
function SoundGetPosition() {
return(SoundGetObject().position);
}
function SoundGetObject() {
if (soundObject == undefined) {
soundObject = new Sound(this);
soundObject.attachSound("snda856108_0");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 797 MovieClip [spr6_48450687] Frame 2
this._lockroot = false;
Symbol 800 MovieClip [spr7_48450687] Frame 1
this._lockroot = true;
function SoundStart(position, loops) {
SoundStop();
SoundGetObject().start(((position == undefined) ? 0 : (position)), ((loops == undefined) ? 1 : (loops)));
}
function SoundSetListener(l) {
listener = l;
}
function SoundGetDuration() {
return(SoundGetObject().duration);
}
function SoundGetVolume() {
return(SoundGetObject().getVolume() * 0.01);
}
function SoundSetVolume(vol) {
vol = ((vol < 0) ? 0 : (((vol > 1) ? 1 : (vol))));
SoundGetObject().setVolume(vol * 100);
}
function SoundStop() {
SoundGetObject().stop();
}
function SoundGetPosition() {
return(SoundGetObject().position);
}
function SoundGetObject() {
if (soundObject == undefined) {
soundObject = new Sound(this);
soundObject.attachSound("snda856108_1");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 800 MovieClip [spr7_48450687] Frame 2
this._lockroot = false;
Symbol 810 MovieClip Frame 1
this.show3_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound0", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoNextSlide();
};
this.show3_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound1", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 794 MovieClip [spr0_48450687] Frame 1
stop();
Symbol 794 MovieClip [spr0_48450687] Frame 106
stop();
Symbol 822 MovieClip Frame 1
this.show14_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound2", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoNextSlide();
};
this.show14_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound3", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 827 MovieClip Frame 1
this.show10_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound6", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(11);
};
this.show10_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound7", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 832 MovieClip Frame 1
this.show18_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound4", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(12);
};
this.show18_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound5", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 814 MovieClip [spr8_48450687] Frame 1
stop();
Symbol 814 MovieClip [spr8_48450687] Frame 61
stop();
Symbol 847 MovieClip [spr35_48450687] Frame 1
this._lockroot = true;
function SoundStart(position, loops) {
SoundStop();
SoundGetObject().start(((position == undefined) ? 0 : (position)), ((loops == undefined) ? 1 : (loops)));
}
function SoundSetListener(l) {
listener = l;
}
function SoundGetDuration() {
return(SoundGetObject().duration);
}
function SoundGetVolume() {
return(SoundGetObject().getVolume() * 0.01);
}
function SoundSetVolume(vol) {
vol = ((vol < 0) ? 0 : (((vol > 1) ? 1 : (vol))));
SoundGetObject().setVolume(vol * 100);
}
function SoundStop() {
SoundGetObject().stop();
}
function SoundGetPosition() {
return(SoundGetObject().position);
}
function SoundGetObject() {
if (soundObject == undefined) {
soundObject = new Sound(this);
soundObject.attachSound("snda856108_2");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 847 MovieClip [spr35_48450687] Frame 2
this._lockroot = false;
Symbol 850 MovieClip [spr36_48450687] Frame 1
this._lockroot = true;
function SoundStart(position, loops) {
SoundStop();
SoundGetObject().start(((position == undefined) ? 0 : (position)), ((loops == undefined) ? 1 : (loops)));
}
function SoundSetListener(l) {
listener = l;
}
function SoundGetDuration() {
return(SoundGetObject().duration);
}
function SoundGetVolume() {
return(SoundGetObject().getVolume() * 0.01);
}
function SoundSetVolume(vol) {
vol = ((vol < 0) ? 0 : (((vol > 1) ? 1 : (vol))));
SoundGetObject().setVolume(vol * 100);
}
function SoundStop() {
SoundGetObject().stop();
}
function SoundGetPosition() {
return(SoundGetObject().position);
}
function SoundGetObject() {
if (soundObject == undefined) {
soundObject = new Sound(this);
soundObject.attachSound("snda856108_3");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 850 MovieClip [spr36_48450687] Frame 2
this._lockroot = false;
Symbol 853 MovieClip [spr37_48450687] Frame 1
this._lockroot = true;
function SoundStart(position, loops) {
SoundStop();
SoundGetObject().start(((position == undefined) ? 0 : (position)), ((loops == undefined) ? 1 : (loops)));
}
function SoundSetListener(l) {
listener = l;
}
function SoundGetDuration() {
return(SoundGetObject().duration);
}
function SoundGetVolume() {
return(SoundGetObject().getVolume() * 0.01);
}
function SoundSetVolume(vol) {
vol = ((vol < 0) ? 0 : (((vol > 1) ? 1 : (vol))));
SoundGetObject().setVolume(vol * 100);
}
function SoundStop() {
SoundGetObject().stop();
}
function SoundGetPosition() {
return(SoundGetObject().position);
}
function SoundGetObject() {
if (soundObject == undefined) {
soundObject = new Sound(this);
soundObject.attachSound("snda856108_4");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 853 MovieClip [spr37_48450687] Frame 2
this._lockroot = false;
Symbol 859 MovieClip Frame 1
this.show39_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound8", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoNextSlide();
};
this.show39_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound9", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 865 MovieClip Frame 1
this.show44_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound10", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show44_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound11", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 870 MovieClip Frame 1
this.show48_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound12", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show48_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound13", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 836 MovieClip [spr21_48450687] Frame 1
stop();
Symbol 836 MovieClip [spr21_48450687] Frame 61
stop();
Symbol 881 MovieClip Frame 1
this.show62_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound14", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoNextSlide();
};
this.show62_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound15", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 884 MovieClip Frame 1
this.show65_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound16", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoPreviousSlide();
};
this.show65_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound17", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 888 MovieClip Frame 1
this.show68_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound18", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show68_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound19", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 891 MovieClip Frame 1
this.show72_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound20", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show72_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound21", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 873 MovieClip [spr38_48450687] Frame 1
stop();
Symbol 873 MovieClip [spr38_48450687] Frame 2
stop();
Symbol 898 MovieClip Frame 1
this.show83_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound22", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoNextSlide();
};
this.show83_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound23", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 901 MovieClip Frame 1
this.show86_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound24", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoPreviousSlide();
};
this.show86_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound25", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 905 MovieClip Frame 1
this.show89_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound26", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show89_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound27", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 908 MovieClip Frame 1
this.show93_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound28", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show93_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound29", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 894 MovieClip [spr52_48450687] Frame 1
stop();
Symbol 894 MovieClip [spr52_48450687] Frame 2
stop();
Symbol 915 MovieClip Frame 1
this.show104_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound30", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoNextSlide();
};
this.show104_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound31", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 918 MovieClip Frame 1
this.show107_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound32", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoPreviousSlide();
};
this.show107_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound33", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 922 MovieClip Frame 1
this.show110_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound34", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show110_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound35", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 925 MovieClip Frame 1
this.show114_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound36", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show114_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound37", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 911 MovieClip [spr64_48450687] Frame 1
stop();
Symbol 911 MovieClip [spr64_48450687] Frame 2
stop();
Symbol 932 MovieClip Frame 1
this.show125_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound38", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoNextSlide();
};
this.show125_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound39", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 935 MovieClip Frame 1
this.show128_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound40", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoPreviousSlide();
};
this.show128_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound41", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 939 MovieClip Frame 1
this.show131_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound42", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show131_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound43", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 942 MovieClip Frame 1
this.show135_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound44", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show135_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound45", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 928 MovieClip [spr76_48450687] Frame 1
stop();
Symbol 928 MovieClip [spr76_48450687] Frame 2
stop();
Symbol 949 MovieClip Frame 1
this.show146_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound46", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoNextSlide();
};
this.show146_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound47", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 952 MovieClip Frame 1
this.show149_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound48", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoPreviousSlide();
};
this.show149_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound49", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 956 MovieClip Frame 1
this.show152_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound50", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show152_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound51", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 959 MovieClip Frame 1
this.show156_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound52", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show156_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound53", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 945 MovieClip [spr88_48450687] Frame 1
stop();
Symbol 945 MovieClip [spr88_48450687] Frame 2
stop();
Symbol 966 MovieClip Frame 1
this.show167_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound54", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoNextSlide();
};
this.show167_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound55", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 969 MovieClip Frame 1
this.show170_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound56", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoPreviousSlide();
};
this.show170_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound57", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 973 MovieClip Frame 1
this.show173_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound58", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show173_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound59", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 976 MovieClip Frame 1
this.show177_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound60", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show177_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound61", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 962 MovieClip [spr100_48450687] Frame 1
stop();
Symbol 962 MovieClip [spr100_48450687] Frame 2
stop();
Symbol 983 MovieClip Frame 1
this.show188_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound62", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoNextSlide();
};
this.show188_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound63", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 986 MovieClip Frame 1
this.show191_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound64", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoPreviousSlide();
};
this.show191_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound65", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 990 MovieClip Frame 1
this.show194_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound66", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show194_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound67", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 993 MovieClip Frame 1
this.show198_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound68", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show198_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound69", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 979 MovieClip [spr112_48450687] Frame 1
stop();
Symbol 979 MovieClip [spr112_48450687] Frame 2
stop();
Symbol 999 MovieClip Frame 1
this.show209_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound70", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoPreviousSlide();
};
this.show209_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound71", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 1003 MovieClip Frame 1
this.show212_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound72", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show212_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound73", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 1006 MovieClip Frame 1
this.show216_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound74", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show216_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound75", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 996 MovieClip [spr124_48450687] Frame 1
stop();
Symbol 996 MovieClip [spr124_48450687] Frame 121
stop();
Symbol 1047 MovieClip Frame 1
this.show253_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound76", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show253_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound77", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 1050 MovieClip Frame 1
this.show257_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound78", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show257_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound79", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 1038 MovieClip [spr145_48450687] Frame 1
stop();
Symbol 1038 MovieClip [spr145_48450687] Frame 106
stop();
Symbol 1083 MovieClip Frame 1
this._lockroot = true;
Symbol 1083 MovieClip Frame 2
this._lockroot = false;
Symbol 1089 MovieClip Frame 1
this._lockroot = true;
Symbol 1089 MovieClip Frame 2
this._lockroot = false;
Symbol 1095 MovieClip Frame 1
this._lockroot = true;
Symbol 1095 MovieClip Frame 2
this._lockroot = false;
Symbol 1102 MovieClip Frame 1
this._lockroot = true;
Symbol 1102 MovieClip Frame 2
this._lockroot = false;
Symbol 1108 MovieClip Frame 1
this._lockroot = true;
Symbol 1108 MovieClip Frame 2
this._lockroot = false;
Symbol 1114 MovieClip Frame 1
this._lockroot = true;
Symbol 1114 MovieClip Frame 2
this._lockroot = false;
Symbol 1120 MovieClip Frame 1
this._lockroot = true;
Symbol 1120 MovieClip Frame 2
this._lockroot = false;
Symbol 1127 MovieClip Frame 1
this._lockroot = true;
Symbol 1127 MovieClip Frame 2
this._lockroot = false;
Symbol 1134 MovieClip Frame 1
this._lockroot = true;
Symbol 1134 MovieClip Frame 2
this._lockroot = false;
Symbol 1141 MovieClip Frame 1
this._lockroot = true;
Symbol 1141 MovieClip Frame 2
this._lockroot = false;
Symbol 1147 MovieClip Frame 1
this._lockroot = true;
Symbol 1147 MovieClip Frame 2
this._lockroot = false;
Symbol 1153 MovieClip Frame 1
this.show332_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound80", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoNextSlide();
};
this.show332_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound81", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 1157 MovieClip Frame 1
this.show336_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound82", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show336_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound83", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 1160 MovieClip Frame 1
this.show340_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound84", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show340_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound85", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 1071 MovieClip [spr161_48450687] Frame 1
stop();
Symbol 1071 MovieClip [spr161_48450687] Frame 91
stop();
Symbol 1167 MovieClip Frame 1
this.show369_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound86", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoPreviousSlide();
};
this.show369_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound87", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 1171 MovieClip Frame 1
this.show372_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound88", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show372_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound89", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 1174 MovieClip Frame 1
this.show376_48450687.onRelease = function () {
_root.getPlayerCore().processTriggerCommand("sound90", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
_root.getPlayerCore().gotoSlide(1);
};
this.show376_48450687.onRollOver = function () {
_root.getPlayerCore().processTriggerCommand("sound91", "play", {slides:"0", repeat:"1", startPos:"0", volume:"1.000", effect:"1", hlink:"1"});
};
Symbol 1178 MovieClip Frame 1
this._lockroot = true;
Symbol 1178 MovieClip Frame 2
this._lockroot = false;
Symbol 1185 MovieClip Frame 1
this._lockroot = true;
Symbol 1185 MovieClip Frame 2
this._lockroot = false;
Symbol 1192 MovieClip Frame 1
this._lockroot = true;
Symbol 1192 MovieClip Frame 2
this._lockroot = false;
Symbol 1163 MovieClip [spr212_48450687] Frame 1
stop();
Symbol 1163 MovieClip [spr212_48450687] Frame 31
stop();