Frame 1
var rdinfoHasPlaybar = 1;
var rdinfoFrameCount = 1350;
var rdinfoSlidesInProject = 15;
var rdinfoFPS = 30;
var rdinfocurrFrame = 1;
var rdinfoCurrentFrame = 1;
var rdinfoCurrentSlide = 1;
var rdinfoCurrentSlideInProject = 1;
var rdinfoSlideCount = 15;
var rdIsMainMovie = 1;
var rdIsPreview = 0;
var rdIsStandalone = false;
var rdcmndGotoFrame = -1;
var rdcmndResume = 0;
var rdcmndPause = 0;
var rdcmndPrevious = 0;
var rdcmndNext = 0;
var rdcmndCC = 0;
var rdcmndMute = 0;
var rdcmndPlaybarMoved = 0;
var _quality = "best";
var CaptivateVersion = "2.0.0";
function isWaiting() {
if (waitCount) {
return(true);
}
return(false);
}
function incrementWait() {
if (waitCount) {
waitCount++;
} else {
waitCount = 1;
}
trace("incrementWait = " + waitCount);
}
function decrementWait() {
if (waitCount) {
waitCount--;
}
trace("decrementWait = " + waitCount);
}
function setExpired() {
expired = true;
}
function isExpired() {
if (expired == true) {
return(true);
}
return(false);
}
function createCpContextMenu() {
if (this.getSWFVersion() <= 6) {
Stage.showMenu = false;
} else {
var _local1 = new ContextMenu();
var _local2 = new ContextMenuItem("Created with Adobe Captivate", adobeHomeMenuItemHandler);
_local1.customItems.push(_local2);
_local1.hideBuiltInItems();
this.menu = _local1;
}
}
function adobeHomeMenuItemHandler() {
getURL ("http://www.adobe.com/products/captivate", "_blank");
}
createCpContextMenu();
Frame 2
function onEnterFrame() {
if (movie != undefined) {
movie.movieonEnterFrame();
}
}
function itemLoaded(item) {
if (typeof(item.setMovie) == "function") {
item.setMovie(this.movie);
}
}
function getSlideIndexFromFrame(frame) {
return(movie.getSlideIndexFromFrame(frame));
}
var movie = (new captivate.monalisa.rdMovie(this));
_captivateMovie = movie;
var pacemaker = (new captivate.monalisa.rdPacemaker(movie));
movie.SetPacemaker(pacemaker);
movie.setSize(631, 436);
movie.m_fps = 30;
movie.m_supportsSyncPlayback = false;
function toberemoved() {
}
movie.m_isPreviewForAudioDialog = false;
var index = 0;
var slideTransition = new captivate.monalisa.rdSlideTransition(0, 0, 30, 0);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(0, 0, 90, 90, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 1;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 90);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(90, 90, 180, 180, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 2;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 180);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(180, 180, 270, 270, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 3;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 270);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(270, 270, 360, 360, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 4;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 360);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(360, 360, 450, 450, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 5;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 450);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(450, 450, 540, 540, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 6;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 540);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(540, 540, 630, 630, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 7;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 630);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(630, 630, 720, 720, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 8;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 720);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(720, 720, 810, 810, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 9;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 810);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(810, 810, 900, 900, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 10;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 900);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(900, 900, 990, 990, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 11;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 990);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(990, 990, 1080, 1080, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 12;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 1080);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(1080, 1080, 1170, 1170, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 13;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 1170);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(1170, 1170, 1260, 1260, 90, 0, 0, 1000, 1000, 0, 1, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 14;
var slideTransition = new captivate.monalisa.rdSlideTransition(1, 0, 30, 1260);
movie.addSlideTransition(index, slideTransition);
var slideData = new captivate.monalisa.rdSlideData(1260, 1260, 1350, 1352, 90, 0, 0, 1000, 1000, 0, 0, 0, 0, 0, 0, 0, 0);
movie.addSlide(index, slideData);
var index = 15;
var slideTransition = new captivate.monalisa.rdSlideTransition(0, 30, 0, 1320);
movie.addSlideTransition(index, slideTransition);
var endSwfAction = 0;
quizPlaybackController = new captivate.monalisa.rdQuizPlaybackController();
_slideContent2 = quizPlaybackController;
_slideContent = quizPlaybackController;
quizPlaybackController.init();
quizPlaybackController.needToSkipExternalTrackingSWF = true;
this.quizPlaybackController.setMovie(movie);
this.movie.setQuizPlaybackController(quizPlaybackController);
movie.informQuizPlaybackController();
var slideInfo = null;
movie.m_quizPlaybackController.setLmsType(0);
movie.m_quizPlaybackController.setSendCompletionFlag(0);
movie.m_quizPlaybackController.setSendScoreAsPercent(0);
movie.m_quizPlaybackController.setTrackingLevel(0);
movie.m_quizPlaybackController.setEmailAddress("");
movie.m_quizPlaybackController.setIsTrackedFlag(0);
movie.m_quizPlaybackController.setTrackingCharsToNotUrlEncode("");
movie.m_quizPlaybackController.setTrackingUrlEncodeVersionAndSession(1);
movie.m_quizPlaybackController.setTrackingSendResumeData(1);
var quizParams_0 = (new MMQuizzingV3.MMQuizClasses.QuizParams());
quizParams_0.init();
quizParams_0.quizID = 10031;
quizParams_0.isTracked = true;
quizParams_0.numQuizAttemptsAllowed = 1;
quizParams_0.minScore = 0;
quizParams_0.maxScore = 40;
quizParams_0.passingScore = 32;
quizParams_0.passingGradeAction = "continue";
quizParams_0.passingGradeActionArg1 = " ";
quizParams_0.passingGradeActionArg2 = " ";
quizParams_0.failingGradeAction = "continue";
quizParams_0.failingGradeActionArg1 = " ";
quizParams_0.failingGradeActionArg2 = " ";
quizParams_0.anyGradeAction = " ";
quizParams_0.anyGradeActionArg1 = " ";
quizParams_0.anyGradeActionArg2 = " ";
quizParams_0.questionAdvance = "optional";
quizParams_0.quizAdvance = "optional";
quizParams_0.showProgress = "full";
quizParams_0.allowBackwardMovementInQuiz = true;
quizParams_0.showFinishButton = true;
quizParams_0.firstSlideInQuiz = movie.m_quizPlaybackController.getSlide(1);
quizParams_0.lastSlideInQuiz = movie.m_quizPlaybackController.getSlide(13);
quizParams_0.allowSkipPassScoreSlide = true;
quizParams_0.allowSkipFailScoreSlide = true;
quizParams_0.anyScoreSlide = movie.m_quizPlaybackController.getSlide(13);
quizParams_0.allowSkipAnyScoreSlide = true;
quizParams_0.allowReviewMode = true;
quizParams_0.passedScoreFeedback = "Congratulations, you passed.";
quizParams_0.failedScoreFeedback = "Sorry, you failed.";
slideInfo = movie.m_quizPlaybackController.getSlide(1);
slideinfo.questionWeights = 0;
slideInfo.questionsOnSlide.push(0);
slideInfo = movie.m_quizPlaybackController.getSlide(2);
slideinfo.questionWeights = 0;
slideInfo.questionsOnSlide.push(1);
slideInfo = movie.m_quizPlaybackController.getSlide(3);
slideinfo.questionWeights = 0;
slideInfo.questionsOnSlide.push(2);
slideInfo = movie.m_quizPlaybackController.getSlide(4);
slideinfo.questionWeights = 10;
slideInfo.questionsOnSlide.push(3);
slideInfo = movie.m_quizPlaybackController.getSlide(5);
slideinfo.questionWeights = 0;
slideInfo.questionsOnSlide.push(4);
slideInfo = movie.m_quizPlaybackController.getSlide(6);
slideinfo.questionWeights = 0;
slideInfo.questionsOnSlide.push(5);
slideInfo = movie.m_quizPlaybackController.getSlide(7);
slideinfo.questionWeights = 0;
slideInfo.questionsOnSlide.push(6);
slideInfo = movie.m_quizPlaybackController.getSlide(8);
slideinfo.questionWeights = 10;
slideInfo.questionsOnSlide.push(7);
slideInfo = movie.m_quizPlaybackController.getSlide(9);
slideinfo.questionWeights = 10;
slideInfo.questionsOnSlide.push(8);
slideInfo = movie.m_quizPlaybackController.getSlide(10);
slideinfo.questionWeights = 10;
slideInfo.questionsOnSlide.push(9);
slideInfo = movie.m_quizPlaybackController.getSlide(11);
slideinfo.questionWeights = 0;
slideInfo.questionsOnSlide.push(10);
slideInfo = movie.m_quizPlaybackController.getSlide(12);
slideinfo.questionWeights = 0;
slideInfo.questionsOnSlide.push(11);
movie.m_quizPlaybackController.addQuizParams(quizParams_0);
movie.m_quizPlaybackController.getQuizController(10031);
_accProps = new Object();
_accProps.name = "Adobe Captivate Movie ";
Accessibility.updateProperties();
Frame 61
stop();
Symbol 1680 MovieClip [__Packages.captivate.monalisa.rdExpire] Frame 0
class captivate.monalisa.rdExpire extends MovieClip
{
var year, month, day, _parent, _visible;
function rdExpire () {
super();
}
function onLoad() {
var _local2 = new Date();
var _local3 = new Date();
_local2.setFullYear(year);
_local2.setMonth(month);
_local2.setDate(day);
if (_local2.getTime() < _local3.getTime()) {
_parent.incrementWait();
_parent.setExpired();
} else {
_visible = false;
}
}
}
Symbol 1679 MovieClip [__Packages.captivate.monalisa.rdPassword] Frame 0
class captivate.monalisa.rdPassword extends MovieClip
{
var myListener, _visible, _parent, m_password, input_txt, gotoAndStop, pThis, _target;
function rdPassword () {
super();
}
function rdPreloader() {
}
function done() {
Key.removeListener(myListener);
_visible = false;
m_done = true;
_parent.decrementWait();
_parent.play();
}
function Submit() {
if (input_txt == m_password) {
done();
} else {
(gotoAndStop(2));// not popped
}
}
function CheckKeyDown() {
if (Key.isDown(13)) {
pThis.Submit();
}
}
function initialize() {
_parent.incrementWait();
var _local2 = _target;
_local2 = _local2 + "/password_editField";
Selection.setFocus(_local2);
myListener = new Object();
myListener.pThis = this;
myListener.onKeyDown = CheckKeyDown;
Key.addListener(myListener);
}
function onEnterFrame() {
if (_parent.isExpired()) {
_visible = false;
return(undefined);
}
if (m_done) {
return(undefined);
}
if (!m_doneInit) {
initialize();
m_doneInit = true;
}
}
var m_doneInit = false;
var m_done = false;
}
Symbol 1678 MovieClip [__Packages.captivate.monalisa.rdPreloader] Frame 0
class captivate.monalisa.rdPreloader extends MovieClip
{
var m_loadingSWFs, m_loadingSWFArr, _visible, _parent, m_startTime, m_movieWidth, m_movieHeight;
function rdPreloader () {
super();
m_loadingSWFs = new Object();
m_loadingSWFArr = new Array();
}
function done() {
if (m_loadType == loadTypePoolBytes) {
var _local2 = 0;
while (_local2 < m_loadingSWFArr.length) {
if ((m_loadingSWFArr[_local2].status == SWF_LOADING) || (m_loadingSWFArr[_local2].status == SWF_WAITING)) {
return(undefined);
}
_local2++;
}
}
_visible = false;
m_done = true;
_parent.decrementWait();
}
function addLoadSWF(swf_mc) {
m_loadingSWFs[swf_mc._name] = new Object();
m_loadingSWFs[swf_mc._name].status = SWF_WAITING;
m_loadingSWFs[swf_mc._name].swf_mc = swf_mc;
m_loadingSWFArr.push(m_loadingSWFs[swf_mc._name]);
}
function setSWFLoadStatus(swf_mc, status) {
m_loadingSWFs[swf_mc._name].status = status;
}
function getTotalBytes() {
var _local3 = _parent.getBytesTotal();
var _local2 = 0;
while (_local2 < m_loadingSWFArr.length) {
if (m_loadingSWFArr[_local2].status == SWF_LOADING) {
_local3 = _local3 + m_loadingSWFArr[_local2].swf_mc.getBytesTotal();
}
_local2++;
}
return(_local3);
}
function getLoadedBytes() {
var _local3 = _parent.getBytesLoaded();
var _local2 = 0;
while (_local2 < m_loadingSWFArr.length) {
if (m_loadingSWFArr[_local2].status == SWF_WAITING) {
return(_local3 / 4);
}
if (m_loadingSWFArr[_local2].status == SWF_LOADING) {
_local3 = _local3 + m_loadingSWFArr[_local2].swf_mc.getBytesLoaded();
}
_local2++;
}
return(_local3);
}
function getLoadedFrames() {
var _local3 = _parent._framesloaded;
var _local2 = 0;
while (_local2 < m_loadingSWFArr.length) {
if (m_loadingSWFArr[_local2].status == SWF_WAITING) {
return(_local3 / 4);
}
if (m_loadingSWFArr[_local2].status == SWF_LOADING) {
_local3 = _local3 + m_loadingSWFArr[_local2].swf_mc._framesloaded;
}
_local2++;
}
return(_local3);
}
function getTotalFrames() {
var _local3 = _parent._totalFrames;
var _local2 = 0;
while (_local2 < m_loadingSWFArr.length) {
if (m_loadingSWFArr[_local2].status == SWF_LOADING) {
_local3 = _local3 + m_loadingSWFArr[_local2].swf_mc._totalFrames;
}
_local2++;
}
return(_local3);
}
function onEnterFrame() {
if (typeof(_parent.isExpired) == "function") {
if (_parent.isExpired()) {
_visible = false;
return(undefined);
}
}
if (m_done) {
return(undefined);
}
if (!m_doneInit) {
_parent.incrementWait();
m_startTime = getTimer();
if (typeof(loading_sub_mc.initialize) == "function") {
loading_sub_mc.initialize(m_movieWidth, m_movieHeight);
}
m_doneInit = true;
}
switch (m_loadType) {
case loadTypeBytes :
default :
var _local5 = _parent.getBytesTotal();
var _local4 = _parent.getBytesLoaded();
if (typeof(loading_sub_mc.onProgress) == "function") {
loading_sub_mc.onProgress(_local4, _local5);
}
if (_parent._framesloaded >= _parent._totalframes) {
if (typeof(loading_sub_mc.isDone) != "function") {
done();
}
}
break;
case loadTypePoolBytes :
_local5 = getTotalBytes();
_local4 = getLoadedBytes();
if (typeof(loading_sub_mc.onProgress) == "function") {
loading_sub_mc.onProgress(_local4, _local5);
}
if (getLoadedFrames() >= getTotalFrames()) {
if (typeof(loading_sub_mc.isDone) != "function") {
done();
}
}
break;
case loadTypeTime :
var _local3 = getTimer();
var _local2 = _local3 - m_startTime;
if (typeof(loading_sub_mc.onProgress) == "function") {
loading_sub_mc.onProgress(_local2, m_loadingTime);
}
if (_local2 < m_loadingTime) {
break;
}
if (typeof(loading_sub_mc.isDone) == "function") {
break;
}
done();
}
if ((typeof(loading_sub_mc.isDone) == "function") && (!m_done)) {
if (loading_sub_mc.isDone()) {
done();
}
}
}
var initiaize = null;
var progress = null;
var m_doneInit = false;
var m_done = false;
var loading_sub_mc = null;
static var loadTypeTime = 1;
static var loadTypeBytes = 2;
static var loadTypePoolBytes = 3;
var m_loadType = 1;
var m_loadingTime = 5000;
static var SWF_WAITING = 0;
static var SWF_LOADING = 1;
static var SWF_ERROR = 2;
static var SWF_LOADED = 3;
}
Instance of Symbol 1673 MovieClip "progress_mc" in Symbol 1675 MovieClip Frame 18
onClipEvent (load) {
_visible = false;
}
Symbol 1675 MovieClip Frame 20
progress_mc._xscale = _parent.percentDone;
if (_parent.percentDone) {
progress_mc._visible = true;
_parent.percent_txt = ("Loading... " + _parent.percentDone) + "%";
if (_parent.percentDone >= 100) {
_parent.done = true;
gotoAndPlay ("finish");
} else {
gotoAndPlay ("start");
}
} else {
gotoAndPlay ("start");
}
Symbol 1675 MovieClip Frame 92
progress_mc._visible = false;
Symbol 1675 MovieClip Frame 96
_parent.percent_txt = "";
Symbol 1675 MovieClip Frame 105
stop();
Symbol 1666 MovieClip Frame 1
function initialize(movieWidth, movieHeight) {
}
function onProgress(loadedBytes, totalBytes) {
percentDone = Math.round((loadedBytes / totalBytes) * 100);
}
function isDone() {
if (this.done) {
return(true);
}
return(false);
}
var percentDone;
Symbol 1665 MovieClip [19b420a2_22] Frame 1
#initclip 4
Object.registerClass("19b420a2_22", captivate.monalisa.rdPreloader);
#endinitclip
var m_movieWidth = 630;
var m_movieHeight = 435;
var m_loadType = 2;
var m_loadingTime = 5000;
Symbol 1690 Button
on (release) {
if (website != "") {
var url = website;
if (url.indexOf("://", 0) == -1) {
url = "http://" + website;
}
if (website != "") {
getURL (url, "_blank");
}
}
}
Symbol 1693 Button
on (release) {
if (email != "") {
getURL ("mailto:" + email);
}
}
Symbol 1694 Button
on (release) {
getURL ("http://www.adobe.com/products/captivate", "_blank");
}
Symbol 1696 Button
on (release) {
_parent.movie.resumeOnInfo();
gotoAndStop (1);
}
Symbol 1682 MovieClip Frame 1
function playInfo() {
_parent.movie.pauseOnInfo();
gotoAndPlay (2);
}
author = "";
company = "";
stop();
var author = "";
var company = "";
var email = "";
var website = "";
var copyright = "";
Symbol 1682 MovieClip Frame 2
Button8._accProps = new Object();
Button8._accProps.name = "Close";
author_txt = author;
company_txt = company;
email_txt = email;
website_txt = website;
copyright_txt = copyright;
Symbol 1682 MovieClip Frame 3
stop();
Symbol 1 MovieClip [__Packages.captivate.monalisa.rdSlideData] Frame 0
class captivate.monalisa.rdSlideData
{
function rdSlideData (showOnFrame, playOnFrame, stopOnFrame, hideOnFrame, frameCount, transitionType, transitionOutType, transitionInDur, transitionOutDur, transitionInBetween, transitionOutBetween, transitionInEasing, transitionOutEasing, transitionInPrarm1, transitionOutParam1, transitionInParam2, transitionOutParam2) {
var _local1 = this;
_local1.m_showOnFrame = showOnFrame;
_local1.m_playOnFrame = playOnFrame;
_local1.m_stopOnFrame = stopOnFrame;
_local1.m_hideOnFrame = hideOnFrame;
_local1.m_frameCount = frameCount;
_local1.m_showOnFrameOrg = showOnFrame;
_local1.m_playOnFrameOrg = playOnFrame;
_local1.m_stopOnFrameOrg = stopOnFrame;
_local1.m_hideOnFrameOrg = hideOnFrame;
_local1.m_frameCountOrg = frameCount;
_local1.m_transitionType = transitionType;
_local1.m_transitionOutType = transitionOutType;
_local1.m_transitionInDur = transitionInDur;
_local1.m_transitionOutDur = transitionOutDur;
_local1.m_transitionInBetween = transitionInBetween;
_local1.m_transitionOutBetween = transitionOutBetween;
_local1.m_transitionInEasing = transitionInEasing;
_local1.m_transitionOutEasing = transitionOutEasing;
_local1.m_transitionInParam1 = transitionInPrarm1;
_local1.m_transitionOutParam1 = transitionOutParam1;
_local1.m_transitionInParam2 = transitionInParam2;
_local1.m_transitionOutParam2 = transitionOutParam2;
}
function AddOneDupSlide(dupSlide) {
trace(("AddOneDupSlide(" + dupSlide._name) + ")");
m_rdSlide_mcDup[m_rdSlide_mcDup.length] = dupSlide;
}
var className = "rdSlideData";
var m_rdSlide_mc = null;
var m_rdSlide_mcDup = new Array();
}
Symbol 2 MovieClip [__Packages.captivate.monalisa.rdBase] Frame 0
class captivate.monalisa.rdBase extends MovieClip
{
function rdBase () {
super();
}
function Initialize() {
var _local1 = this;
_local1.m_left = _local1._x;
_local1.m_top = _local1._y;
_local1.m_width = _local1._width;
_local1.m_height = _local1._height;
_local1.m_right = _local1.m_left + _local1.m_width;
_local1.m_bottom = _local1.m_top + _local1.m_height;
_local1.m_alpha = _local1._alpha;
}
}
Symbol 3 MovieClip [__Packages.captivate.monalisa.rdSlide] Frame 0
class captivate.monalisa.rdSlide extends captivate.monalisa.rdBase
{
var m_NoSkipFramesArray, _currentframe, gotoAndStop, m_CCMovieClip, m_Sub_mc_array;
function rdSlide () {
super();
m_NoSkipFramesArray = new Array();
return;
}
function onLoad() {
var _local1 = this;
_local1.tabChildren = true;
_local1.tabEnabled = false;
_local1._visible = false;
_local1._alpha = 100;
_local1.stop();
trace("onLoad m_movie = " + _local1.m_movie);
if (_local1.m_movie == undefined) {
if (_local1.m_isQuestionPoolSlide == true) {
_local1._parent.movie.slideLoaded(_local1);
} else {
_local1.m_movie = _local1._parent.movie;
_local1.m_movie.slideLoaded(_local1);
}
_local1.Initialize();
_local1.m_left = 0;
_local1.m_top = 0;
}
for (var _local2 in _local1) {
if (_local1[_local2]._name == "ccMovieClip") {
_local1.m_CCMovieClip = _local1[_local2];
_local1.m_CCMovieClip.startCCMovie();
}
}
}
function setMovie(movie) {
}
function getCurrentFrame() {
return(_currentframe);
}
function itemLoaded(item) {
item.setSlide(this);
}
function onEnterFrame() {
var _local1 = this;
_local1.applyTransition();
if (_local1.m_isHidden) {
} else if (_local1.m_stopped || (_local1.m_paused)) {
} else if (_local1._currentframe >= (_local1._totalframes - 1)) {
_local1.slideCompleted();
}
}
function isHidden() {
return(m_isHidden);
}
function showSlide() {
var _local1 = this;
if (_local1.m_isHidden) {
_local1._visible = true;
_local1.m_isHidden = false;
if (_local1.m_isQuestionPoolSlide == false) {
_local1.m_CCMovieClip.startCCMovie();
}
}
}
function hideSlide() {
var _local1 = this;
if (!_local1.m_isHidden) {
_local1._visible = false;
_local1.m_paused = false;
_local1.StopSlidelet();
_local1.gotoAndStop(1);
_local1.m_isHidden = true;
_local1.onLeaveSlide();
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "movieclip") {
_local1[_local2].m_doOnceInvisible = true;
}
}
_local1.m_CCMovieClip.stopCCMovie();
}
}
function isPlaying() {
return(m_isPlaying);
}
function rewindSlide() {
gotoAndStop(1);
m_CCMovieClip.stopCCMovie();
}
function onEnterSlide() {
var _local1 = this;
if (!_local1.m_isPlaying) {
if (_local1.m_movie.m_quizPlaybackController) {
var _local2;
var slideName = _local1._name;
var _local3 = parseInt(slideName.substr(5));
_local2 = _local1.m_movie.m_quizPlaybackController.getSlide(_local3);
_local1.m_movie.m_quizPlaybackController.enterSlide(_local2);
}
_local1.m_isPlaying = true;
}
}
function onLeaveSlide() {
var _local1 = this;
_local1.myTrace("101010 onLeaveSlide");
if (_local1.m_isPlaying) {
_local1.m_isPlaying = false;
}
}
function startSlide() {
var _local1 = this;
if (!_local1.m_isPlaying) {
_local1.onEnterSlide();
_local1.m_stopped = false;
_local1.gotoAndPlay(2);
_local1.m_CCMovieClip.startCCMovie();
}
}
function gotoFrame(frame, playSlide) {
var _local1 = this;
var _local2 = frame;
var _local3 = playSlide;
if (!_local1.m_isPlaying) {
_local1.onEnterSlide();
}
_local1.m_stopped = !_local3;
if (_local3) {
_local1.gotoAndPlay(_local2);
} else {
_local1.gotoAndStop(_local2);
}
_local1.syncSubMovieClips(_local2, _local3);
}
function slideCompleted() {
var _local1 = this;
_local1.m_stopped = true;
_local1.stop();
_local1.m_movie.slideCompleted(_local1);
if (!_local1.isDupSlide) {
if (typeof(_local1.succeeded) == "function") {
_local1.succeeded(_local1);
}
}
}
function pauseSlide() {
var _local1 = this;
_local1.m_paused = true;
_local1.m_movie.pauseMovie();
_local1.syncSubMovieClips(_local1._currentframe, false);
_local1.stop();
}
function playerPauseSlide() {
var _local1 = this;
_local1.m_playerPaused = true;
_local1.stop();
_local1.syncSubMovieClips(_local1._currentframe, false);
}
function playerResumeSlide() {
var _local1 = this;
_local1.m_playerPaused = false;
_local1.play();
_local1.syncSubMovieClips(_local1._currentframe, true);
}
function resumeSlide() {
var _local1 = this;
_local1.m_paused = false;
_local1.m_movie.resumeMovie();
_local1.play();
_local1.syncSubMovieClips(_local1._currentframe, true);
}
function gotoSlide(slideIndex) {
m_movie.gotoSlide(slideIndex);
}
function previousSlide() {
m_movie.previousSlide();
}
function nextSlide() {
m_movie.nextSlide();
}
function syncSubMovieClips(nFrame, doPlay) {
var i;
if (typeof(m_Sub_mc_array) == "object") {
i = 0;
while (i < m_Sub_mc_array.length) {
var mc;
mc = eval ("this." + m_Sub_mc_array[i]);
if (typeof(mc) == "movieclip") {
if ((typeof(mc.nEnterFrame) == "undefined") && (!doPlay)) {
mc.m_pendingStop = true;
}
if ((nFrame >= mc.nEnterFrame) && (nFrame < mc.nExitFrame)) {
var nSubFrame = ((nFrame - mc.nEnterFrame) + 1);
mc.gotoFrame(nSubFrame, doPlay);
}
}
i++;
}
}
}
function CanSkipFrames(count) {
var _local3 = this;
var _local2;
var retval = count;
_local3.myTrace("m_NoSkipFramesArray = " + _local3.m_NoSkipFramesArray);
_local2 = 0;
while (_local2 < _local3.m_NoSkipFramesArray.length) {
var _local1 = _local3.m_NoSkipFramesArray[_local2] - _local3.getCurrentFrame();
if (_local1 > 0) {
_local1--;
if (_local1 <= 0) {
return(0);
}
if (_local1 < retval) {
retval = _local1;
}
}
_local2++;
}
return(retval);
}
function AddNoSkipFrame(frame) {
var _local2 = this;
var _local3 = frame;
var _local1;
_local1 = 0;
while (_local1 < _local2.m_NoSkipFramesArray.length) {
if (_local2.m_NoSkipFramesArray[_local1] == _local3) {
return;
}
_local1++;
}
_local2.m_NoSkipFramesArray.push(_local3);
}
function StopSlideAudio() {
var _local1 = this;
if (_local1.m_soundIdx > -1) {
_local1.m_movie.m_soundHandler.PauseOneSound(_local1.m_soundIdx);
_local1.m_CCMovieClip.stopCCMovie();
}
}
function PauseSlideAudioCC() {
m_CCMovieClip.pauseCCMovie();
}
function ResumeSlideAudioCC() {
m_CCMovieClip.resumeCCMovie();
}
function StartSlideAudioCC() {
m_CCMovieClip.startCCMovie();
}
function StopSlideAudioCC() {
m_CCMovieClip.stopCCMovie();
}
function SyncSlideAudioCC(resumePlayback) {
m_CCMovieClip.seekCCMovie(resumePlayback);
}
function AddOneCCItem(startFrame, stopFrame, ccTxt) {
var _local2 = this;
if (ccTxt.length < 1) {
} else {
var _local1 = new Object();
_local1.startFrame = startFrame;
_local1.stopFrame = stopFrame;
_local1.ccTxt = ccTxt;
if (_local2.ccItems == null) {
_local2.ccItems = new Array();
}
_local2.ccItems[_local2.ccItems.length] = _local1;
}
}
function SyncCCItems() {
var _local3 = this;
if (_local3._visible == false) {
} else {
var ccTxt = "";
if ((_local3.ccItems != null) && (_local3.ccItems.length > 0)) {
var nFrame = (_local3.m_CCMovieClip._currentframe - _local3.m_CCMovieClip.frameOffset);
var _local2 = 0;
while (_local2 < _local3.ccItems.length) {
var _local1 = _local3.ccItems[_local2];
if ((nFrame >= _local1.startFrame) && (nFrame < _local1.stopFrame)) {
ccTxt = _local1.ccTxt;
break;
}
_local2++;
}
}
_local3.m_movie.m_cpCC.setCCText(ccTxt);
}
}
function SetCurrentClickableArea(iClickableArea) {
var _local1 = this;
var _local2 = iClickableArea;
if (((null != _local1.m_currClickableArea) && (_local1.m_currClickableArea != _local2)) && (null != _local2)) {
_local1.m_currClickableArea.StopSlidelet();
}
_local1.m_currClickableArea = _local2;
}
function StopPlayingAnyOtherClickableArea(iClickableArea) {
var _local1 = this;
if ((null != _local1.m_currClickableArea) && (_local1.m_currClickableArea != iClickableArea)) {
_local1.m_currClickableArea.StopSlidelet();
}
}
function WasCurrentClickableAreaClicked() {
var _local1 = false;
if (null != m_currClickableArea) {
_local1 = m_currClickableArea.WasClickableAreaClicked();
}
return(_local1);
}
function IsSlidelet() {
return(false);
}
function StopSlidelet() {
var _local1 = this;
if (null == _local1.m_currClickableArea) {
return(false);
}
_local1.m_currClickableArea.StopSlidelet();
_local1.m_currClickableArea = null;
return(true);
}
function myTrace(str) {
}
function applyTransition() {
var _local1 = this;
var _local3;
if (_local1.transitInStarted && (_local1._parent.movie.m_paused)) {
var tempInt;
tempInt = (_local1._parent.movie.m_currFrame - _local1.playOnFrame) / _local1._parent.movie.m_fps;
if ((tempInt < _local1.transitInDur) && (tempInt > 0)) {
_local1.transitInObj.setPosition(tempInt);
}
}
if (((_local1._parent.movie.m_currFrame > (_local1.playOnFrame + ((_local1._parent.movie.m_fps * _local1.transitInDur) / 1000))) || (_local1._parent.movie.m_currFrame < _local1.playOnFrame)) && (_local1.transitInStarted)) {
_local1.transitInStarted = false;
if (_local1.transitInObj.progress < 1) {
_local1.transitInObj.fforward();
_local1.transitInObj.cleanUp();
_local1.transitInPaused = null;
}
if (_local1._parent.movie.m_currFrame < _local1.playOnFrame) {
_local1._visible = false;
}
}
if (_local1.transitInStarted == false) {
if ((_local1._parent.movie.m_currFrame >= _local1.playOnFrame) && (_local1._parent.movie.m_currFrame < (_local1.playOnFrame + ((_local1._parent.movie.m_fps * _local1.transitInDur) / 1000)))) {
var _local2 = {};
if (_local1.transitType == 1) {
_local2.type = captivate.monalisa.transitions.BlindsExtended;
}
if (_local1.transitType == 2) {
_local2.type = captivate.monalisa.transitions.FadeExtended;
}
if (_local1.transitType == 3) {
_local2.type = captivate.monalisa.transitions.FlyExtended;
}
if (_local1.transitType == 4) {
_local2.type = captivate.monalisa.transitions.IrisExtended;
}
if (_local1.transitType == 5) {
_local2.type = captivate.monalisa.transitions.PhotoExtended;
}
if (_local1.transitType == 6) {
_local2.type = captivate.monalisa.transitions.PixelDissolveExtended;
}
if (_local1.transitType == 7) {
_local2.type = captivate.monalisa.transitions.RotateExtended;
_local2.degrees = 90;
_local2.ccw = true;
}
if (_local1.transitType == 8) {
_local2.type = captivate.monalisa.transitions.SqueezeExtended;
}
if (_local1.transitType == 9) {
_local2.type = captivate.monalisa.transitions.WipeExtended;
}
if (_local1.transitType == 10) {
_local2.type = captivate.monalisa.transitions.ZoomExtended;
}
_local2.duration = _local1.transitInDur / 1000;
_local1.transitInObj = mx.transitions.TransitionManager.start(_local1, _local2);
_local1.transitInPaused = false;
_local1.transitInStarted = true;
}
}
if (_local1._parent.movie.m_paused && (_local1.transitInPaused == false)) {
_local1.transitInPaused = true;
_local1.transitInObj.pause();
} else if ((!_local1._parent.movie.m_paused) && (_local1.transitInPaused == true)) {
_local1.transitInPaused = false;
_local1.transitInObj.resume();
}
if (_local1.transitOutStarted && (_local1._parent.movie.m_paused)) {
var tempInt;
if (_local1.transitOutBetween == true) {
tempInt = ((_local1._parent.movie.m_currFrame - (_local1.stopOnFrame + ((_local1.transitOutDur / 1000) * _local1._parent.movie.m_fps))) / _local1._parent.movie.m_fps) + (_local1.transitOutDur / 1000);
if ((tempInt < _local1.transitOutDur) && (tempInt > 0)) {
_local1.transitOutObj.setPosition(tempInt);
}
} else {
tempInt = ((_local1._parent.movie.m_currFrame - _local1.stopOnFrame) / _local1._parent.movie.m_fps) + (_local1.transitOutDur / 1000);
if ((tempInt < _local1.transitOutDur) && (tempInt > 0)) {
_local1.transitOutObj.setPosition(tempInt);
}
}
}
if (_local1.transitOutStarted == false) {
_local3 = false;
if (_local1.transitOutBetween == true) {
if ((_local1._parent.movie.m_currFrame >= (_local1.stopOnFrame - ((_local1._parent.movie.m_fps * _local1.transitOutDur) / 2000))) && (_local1._parent.movie.m_currFrame < _local1.stopOnFrame)) {
_local3 = true;
}
} else if ((_local1._parent.movie.m_currFrame >= (_local1.stopOnFrame - ((_local1._parent.movie.m_fps * _local1.transitOutDur) / 1000))) && (_local1._parent.movie.m_currFrame < _local1.stopOnFrame)) {
_local3 = true;
}
if (_local3 == true) {
var _local2 = {};
if (_local1.transitOutType == 1) {
_local2.type = captivate.monalisa.transitions.BlindsExtended;
}
if (_local1.transitOutType == 2) {
_local2.type = captivate.monalisa.transitions.FadeExtended;
}
if (_local1.transitOutType == 3) {
_local2.type = captivate.monalisa.transitions.FlyExtended;
}
if (_local1.transitOutType == 4) {
_local2.type = captivate.monalisa.transitions.IrisExtended;
}
if (_local1.transitOutType == 5) {
_local2.type = captivate.monalisa.transitions.PhotoExtended;
}
if (_local1.transitOutType == 6) {
_local2.type = captivate.monalisa.transitions.PixelDissolveExtended;
}
if (_local1.transitOutType == 7) {
_local2.type = captivate.monalisa.transitions.RotateExtended;
}
if (_local1.transitOutType == 8) {
_local2.type = captivate.monalisa.transitions.SqueezeExtended;
}
if (_local1.transitOutType == 9) {
_local2.type = captivate.monalisa.transitions.WipeExtended;
}
if (_local1.transitOutType == 10) {
_local2.type = captivate.monalisa.transitions.ZoomExtended;
}
_local2.direction = 1;
_local2.duration = _local1.transitOutDur / 1000;
_local1.transitOutObj = mx.transitions.TransitionManager.start(_local1, _local2);
_local1.transitOutPaused = false;
_local1.transitOutStarted = true;
}
}
if (_local1._parent.movie.m_paused && (_local1.transitOutPaused == false)) {
_local1.transitOutPaused = true;
_local1.transitOutObj.pause();
} else if ((!_local1._parent.movie.m_paused) && (_local1.transitOutPaused == true)) {
_local1.transitOutPaused = false;
_local1.transitOutObj.resume();
}
_local3 = false;
if (_local1.transitOutBetween == true) {
if (((_local1._parent.movie.m_currFrame > (_local1.stopOnFrame + ((_local1.transitOutDur / 1000) * _local1._parent.movie.m_fps))) || (_local1._parent.movie.m_currFrame < (_local1.stopOnFrame - ((_local1._parent.movie.m_fps * _local1.transitOutDur) / 2000)))) && (_local1.transitOutStarted)) {
_local3 = true;
}
} else if (((_local1._parent.movie.m_currFrame > _local1.stopOnFrame) || (_local1._parent.movie.m_currFrame < (_local1.stopOnFrame - ((_local1._parent.movie.m_fps * _local1.transitOutDur) / 1000)))) && (_local1.transitOutStarted)) {
_local3 = true;
}
if (_local3 == true) {
_local1.transitOutStarted = false;
if (_local1.transitOutObj.progress < 1) {
_local1.transitOutObj.rewind();
_local1.transitOutObj.cleanUp();
_local1.transitOutPaused = null;
}
}
}
function isSlideActive() {
var _local1 = this;
if (_local1.isDupSlide) {
return(true);
}
if ((_local1.playOnFrame <= _local1._parent.movie.m_currFrame) && (_local1.stopOnFrame > _local1._parent.movie.m_currFrame)) {
return(true);
}
return(false);
}
var m_frameCount = 2;
var m_oldx = 0;
var m_oldy = 0;
var m_movie = null;
var n = 0;
var m_stopped = true;
var m_paused = false;
var m_isPlaying = false;
var m_isHidden = true;
var m_index = 0;
var m_isQuizSlide = false;
var m_soundIdx = -1;
var succeeded = null;
var isDupSlide = false;
var m_currClickableArea = null;
var m_isQuestionPoolSlide = false;
var transitInObj = null;
var transitOutObj = null;
var transitInPaused = false;
var transitOutPaused = false;
var transitOutStarted = false;
var transitInStarted = false;
var transitType = 555;
var transitOutType = 555;
var transitInDur = 1;
var transitOutDur = 1;
var transitInBetween = false;
var transitOutBetween = false;
var transitInEasing = 1;
var transitOutEasing = 1;
var transitInParam1 = 1;
var transitOutParam1 = 1;
var transitInParam2 = 1;
var transitOutParam2 = 1;
}
Symbol 4 MovieClip [__Packages.ICaptivateMovie] Frame 0
interface ICaptivateMovie{}
Symbol 5 MovieClip [__Packages.captivate.monalisa.rdMovie] Frame 0
class captivate.monalisa.rdMovie
{
var m_width, m_height, m_slideData_array, m_slideTrans_array, m_quizPoolColl;
function rdMovie (movie_mc) {
var _local1 = this;
System.security.allowDomain("*");
_local1.m_movie_mc = movie_mc;
_local1.m_movie_mc.movie = _local1;
_local1.m_movie_mc.rdinfocurrFrame = _local1.m_currFrame;
_local1.m_movie_mc.rdcmndGotoFrame = -1;
_local1.m_movie_mc.rdcmndGotoSlide = -1;
_local1.m_movie_mc.rdinfostate = _local1.m_state;
_local1.m_movie_mc.rdcmndGotoFrameAndResume = -1;
_local1.m_movie_mc.rdcmndResume = 0;
_local1.m_movie_mc.rdcmndPause = 0;
_local1.m_movie_mc.rdcmndPrevious = 0;
_local1.m_movie_mc.rdcmndNext = 0;
_local1.m_keyHandler = new captivate.monalisa.rdKeyHandler();
_local1.m_soundHandler = new captivate.monalisa.rdSoundHandler(_local1);
_local1.m_slideTrans_array = new Array();
_local1.m_slideData_array = new Array();
if (_local1.m_movie_mc._parent.cpCaptivateSkinSWF == true) {
_local1.m_cpCC = _local1.m_movie_mc._parent.cpCC_mc;
} else {
_local1.m_cpCC = _local1.m_movie_mc.cpCC_mc;
}
_local1.m_quizPoolColl = new Object();
}
function pauseOnInfo() {
var _local1 = this;
if (_local1.m_paused == false) {
_local1.m_movie_mc.rdcmndPause = 1;
_local1.m_pausedOnInfo = true;
}
}
function resumeOnInfo() {
var _local1 = this;
if (_local1.m_pausedOnInfo == true) {
_local1.m_pausedOnInfo = false;
_local1.m_movie_mc.rdcmndResume = 1;
}
}
function isReady() {
return(m_state != stateStart);
}
function setQuizPlaybackController(quizPlaybackController) {
m_quizPlaybackController = quizPlaybackController;
}
function setSize(width, height) {
m_width = width;
m_height = height;
}
function findInHistory(mc) {
var _local2 = this;
var _local3 = mc;
var _local1 = 0;
while (_local1 < _local2.history.length) {
if (_local3 == _local2.history[_local1]) {
return(true);
}
_local1++;
}
return(false);
}
function traceAllPositions(obj) {
var _local1 = obj;
var _local2 = this;
for (var _local3 in _local1) {
if (typeof(_local1[_local3]) == "movieclip") {
if (((_local1[_local3]._x > _local2.m_width) || (_local1[_local3]._x < 0)) || (_local1[_local3]._width > _local2.m_width)) {
if (_local2.findInHistory(_local1[_local3]) == false) {
_local2.history.push(_local1[_local3]);
}
}
}
}
}
function size(w, h) {
var _local1 = this;
if ((_local1.m_movie_mc._width < 3200) && (_local1.m_movie_mc._height < 3200)) {
}
if (_local1.m_bogus_breeze_dims_set == false) {
_local1.m_bogus_breeze_width = _local1.m_movie_mc._width;
_local1.m_bogus_breeze_height = _local1.m_movie_mc._height;
_local1.m_bogus_breeze_dims_set = true;
}
var xScale = (w / _local1.m_width);
var _local3 = h / _local1.m_height;
var _local2 = Math.min(xScale, _local3);
_local2 = Math.min(1, _local2);
_local1.m_movie_mc._xscale = _local2 * 100;
_local1.m_movie_mc._yscale = _local2 * 100;
}
function resizeMovieKeepAspectRatio(newWidth, newHeight) {
var _local1 = this;
if ((_local1.m_width < newWidth) && (_local1.m_height < newHeight)) {
_local1.m_movie_mc._width = _local1.m_width;
_local1.m_movie_mc._height = _local1.m_height;
} else {
var _local3 = newWidth / _local1.m_width;
var _local2 = newHeight / _local1.m_height;
if (_local3 < _local2) {
_local1.m_movie_mc._width = newWidth;
_local1.m_movie_mc._height = _local1.m_height * _local3;
} else {
_local1.m_movie_mc._width = _local1.m_width * _local2;
_local1.m_movie_mc._height = newHeight;
}
}
}
function setCurrSlide(index) {
var _local1 = this;
var _local2 = _local1.m_currSlide;
var _local3 = _local1.m_nextSlide;
var oldPrev = _local1.m_prevSlide;
var oldCurrIndex = _local1.m_currSlideIndex;
if (index < 0) {
index = 0;
}
if (index != _local1.m_currSlideIndex) {
_local1.m_clickHandler_mc.clearSprites(index);
_local1.m_keyHandler.clearSprites(index);
}
_local1.m_currSlideIndex = index;
if (_local1.m_slideData_array.length >= (_local1.m_currSlideIndex + 1)) {
_local1.m_currSlide = _local1.m_slideData_array[_local1.m_currSlideIndex];
_local1.m_movie_mc.rdinfoCurrentSlideInProject = _local1.m_currSlide.m_rdSlide_mc.m_projectSlideIndex;
_local1.m_movie_mc.rdinfoCurrentSlide = _local1.m_currSlideIndex;
} else {
_local1.m_currSlide = null;
_local1.m_state = stateDone;
}
if (_local1.m_slideData_array.length >= (_local1.m_currSlideIndex + 2)) {
_local1.m_nextSlide = _local1.m_slideData_array[_local1.m_currSlideIndex + 1];
} else {
_local1.m_nextSlide = null;
}
if (_local1.m_currSlideIndex > 0) {
_local1.m_prevSlide = _local1.m_slideData_array[_local1.m_currSlideIndex - 1];
} else {
_local1.m_prevSlide = null;
}
if (oldCurrIndex >= 0) {
switch (_local1.m_currSlideIndex - oldCurrIndex) {
case 0 :
_local2 = null;
_local3 = null;
oldPrev = null;
break;
case 1 :
_local3 = null;
_local2 = null;
break;
case -1 :
_local2 = null;
}
if (_local2) {
_local1.doHide(_local2);
}
if (_local3) {
_local1.doHide(_local3);
}
if (oldPrev) {
_local1.doHide(oldPrev);
}
}
fscommand ("cpSlideChanged", _local1.m_movie_mc.rdinfoCurrentSlideInProject);
}
function setCurrTrans(index) {
}
function GetPlayingSlideIndex() {
var _local1 = this;
if (_local1.m_currSlide) {
if ((_local1.m_currFrame > _local1.m_currSlide.m_stopOnFrame) && (_local1.m_nextSlide)) {
return(_local1.m_currSlideIndex + 1);
}
}
return(_local1.m_currSlideIndex);
}
function doPlay() {
if (m_quizPlaybackController) {
var loadingResumeData;
loadingResumeData = m_quizPlaybackController.loadingResumeData;
if (loadingResumeData) {
m_movie_mc.rdcmndPause = 1;
}
if (!_hasIsTrackedBeenSet) {
if (!m_quizPlaybackController.isTrackedFlag) {
m_quizPlaybackController.isTracked = false;
_hasIsTrackedBeenSet = true;
} else if (m_currSlide) {
m_quizPlaybackController.isTracked = true;
_hasIsTrackedBeenSet = true;
}
}
}
if (m_currSlide) {
if (!m_currSlide.m_rdSlide_mc) {
m_state = stateWait;
return(undefined);
}
if (m_currFrame == m_currSlide.m_showOnFrame) {
m_currSlide.m_rdSlide_mc.showSlide();
}
if (m_currFrame == m_currSlide.m_playOnFrame) {
m_currSlide.m_rdSlide_mc.startSlide();
}
if (m_currFrame == m_currSlide.m_hideOnFrame) {
m_currSlide.m_rdSlide_mc.hideSlide();
}
if (m_currFrame == m_currSlide.m_stopOnFrame) {
var newSlide = (m_currSlideIndex + 1);
if (m_quizPlaybackController) {
var ok = false;
var i;
var currentSlide = m_quizPlaybackController.getSlide(m_currSlideIndex);
var slideAfterCurrent = m_quizPlaybackController.getSlideAfter(currentSlide);
if ((slideAfterCurrent != undefined) && (slideAfterCurrent != null)) {
newSlide = slideAfterCurrent.slideNum;
}
i = newSlide;
while ((i < m_slideData_array.length) && (!ok)) {
var targetSlide = m_quizPlaybackController.getSlide(i);
var errStr = m_quizPlaybackController.allowedToGoToSlide(currentSlide, targetSlide);
if (errStr == "") {
if (i == (m_currSlideIndex + 1)) {
m_quizPlaybackController.enableReviewMode(targetSlide);
ok = true;
} else {
gotoSlide(i, false);
return(undefined);
}
}
i++;
}
if (!ok) {
if (m_currSlideIndex < (m_slideData_array.length - 1)) {
m_movie_mc.rdcmndPause = 1;
return(undefined);
}
m_state = stateDone;
return(undefined);
}
}
setCurrSlide(newSlide);
doPlay();
return(undefined);
}
}
if (m_prevSlide) {
if ((m_currFrame >= m_prevSlide.m_hideOnFrame) && (m_prevSlide.m_rdSlide_mc._visible)) {
m_prevSlide.m_rdSlide_mc.hideSlide();
m_prevSlide = null;
}
}
if (m_nextSlide) {
if ((!m_nextSlide.m_rdSlide_mc) && (m_currFrame >= m_nextSlide.m_showOnFrame)) {
m_state = stateWait;
return(undefined);
}
if (m_currFrame == m_nextSlide.m_showOnFrame) {
m_nextSlide.m_rdSlide_mc.showSlide();
}
if (m_currFrame == m_nextSlide.m_playOnFrame) {
m_nextSlide.m_rdSlide_mc.startSlide();
}
if (m_currFrame == m_nextSlide.m_stopOnFrame) {
}
if (m_currFrame == m_nextSlide.m_hideOnFrame) {
}
}
if (typeof(m_movie_mc.m_Sub_mc_array) == "object") {
var i;
i = 0;
while (i < m_movie_mc.m_Sub_mc_array.length) {
var mc;
mc = eval ("this." + m_movie_mc.m_Sub_mc_array[i]);
if (typeof(mc) == "movieclip") {
if (m_currFrame == mc.nEnterFrame) {
mc._visible = true;
mc.gotoFrame(1, !m_paused, false);
}
if (m_currFrame == mc.nExitFrame) {
mc._visible = false;
mc.stop();
}
}
i++;
}
}
if (m_currFrame >= m_movie_mc.rdinfoFrameCount) {
m_state = stateDone;
}
if (m_state != stateDone) {
m_state = stateSlide;
}
m_movie_mc.rdinfostate = m_state;
}
function movieonEnterFrame() {
var _local1 = this;
if (1 == _local1.m_movie_mc.rdcmndPlaybarMoved) {
_local1.m_movie_mc.rdcmndPlaybarMoved = 0;
if (((null != _local1.m_currSlide) && (undefined != _local1.m_currSlide)) && (null != _local1.m_currSlide.m_rdSlide_mc)) {
_local1.m_currSlide.m_rdSlide_mc.StopSlidelet();
}
}
_local1.m_soundHandler.SyncSounds();
if (_local1.m_movie_mc.isWaiting()) {
} else {
if (_local1.m_slideDataArranged == false) {
_local1.ReArrangeSlideData();
_local1.m_slideDataArranged = true;
_local1.m_movie_mc.cpQuestionPoolsInitialized = true;
}
_local1.m_movie_mc._parent.cpSkinBorder_mc._visible = true;
_local1.checkPreviewCommands();
_local1.m_keyHandler.DoCheckAllKeys();
if (_local1.m_paused) {
_local1.debState();
} else {
switch (_local1.m_state) {
case stateStart :
_local1.m_currSlideIndex = -1;
_local1.setCurrSlide(0);
_local1.m_movie_mc.rdcmndGotoFrame = -1;
_local1.m_movie_mc.rdcmndGotoSlide = -1;
_local1.m_movie_mc.rdcmndGotoFrameAndResume = -1;
_local1.m_movie_mc.rdcmndResume = 0;
_local1.m_movie_mc.rdcmndPause = 0;
_local1.m_movie_mc.rdcmndPrevious = 0;
_local1.m_movie_mc.rdcmndNext = 0;
_local1.m_movie_mc.rdcmndRewindAndStop = 0;
_local1.m_movie_mc.rdcmndRewindAndPlay = 0;
_local1.doPlay();
break;
case stateSlide :
if (_local1.m_handledDone) {
_local1.m_handledDone = false;
}
_local1.doPlay();
break;
case stateWait :
_local1.doPlay();
break;
case stateDone :
if (_local1.m_handledDone) {
break;
}
if (typeof(_local1.m_movie_mc.endMovieFunction) == "function") {
_local1.m_movie_mc.endMovieFunction();
}
switch (_local1.m_movie_mc.endSwfAction) {
case 0 :
_local1.m_handledDone = true;
break;
case 1 :
_local1.gotoFrame(1, true, false);
_local1.m_soundHandler.DoDeleteAllSounds();
_local1.playerResumeMovie();
break;
case 2 :
_local1.m_movie_mc.rdcmndExit = 1;
_local1.m_handledDone = true;
}
}
switch (_local1.m_state) {
case stateSlide :
if (_local1.m_movie_mc.rdcmndPause != 1) {
_local1.m_currFrame++;
var _local2 = true;
if (_local1.m_pacemaker) {
if (!_local1.m_pacemaker.m_isInitialized) {
_local1.m_pacemaker.start(_local1.m_fps, _local1.m_currFrame)();
_local1.m_pacemaker.m_isInitialized = true;
} else {
var _local3 = _local1.m_pacemaker.pace(_local1.m_currFrame);
if (_local3 > 0) {
_local2 = false;
_local1.SkipFrames(_local3);
} else if (_local3 < 0) {
_local2 = false;
_local1.ReplayFrame();
}
}
}
}
if (_local2 && (_local1.m_quizPlaybackController)) {
}
break;
case stateDone :
case stateStart :
case stateWait :
}
_local1.m_movie_mc.rdinfoCurrentFrame = _local1.m_currFrame;
_local1.debState();
}
}
}
function debState() {
var _local2 = this;
_local2.m_debtick++;
var _local1 = "";
if (_local2.m_debDone) {
return;
}
_local1 = _local1 + (" " + _local2.m_currFrame);
switch (_local2.m_state) {
case stateStart :
_local1 = _local1 + " stateStart";
return;
case stateTrans :
_local1 = _local1 + " stateTrans";
return;
case stateSlide :
_local1 = _local1 + " stateSlide";
return;
case stateWait :
_local1 = _local1 + " stateWait";
return;
case stateDone :
_local1 = _local1 + " stateDone";
default :
}
}
function hideActiveSlides() {
var _local1 = this;
if (_local1.m_currSlide) {
if (_local1.m_currSlide.m_rdSlide_mc) {
_local1.m_currSlide.m_rdSlide_mc.hideSlide();
}
_local1.m_currSlide = null;
}
if (_local1.m_nextSlide) {
if (_local1.m_nextSlide.m_rdSlide_mc) {
_local1.m_nextSlide.m_rdSlide_mc.hideSlide();
}
_local1.m_nextSlide = null;
}
}
function doPlayTrans() {
}
function addSlide(index, slide) {
m_slideData_array[index] = slide;
m_slideTrans_array[index].m_nextSlide = slide;
}
function slideLoaded(slide_mc) {
var _local2 = this;
var _local3 = slide_mc;
var slideName = _local3._name;
var _local1 = parseInt(_local3._name.substr(5));
if (_local3.isDupSlide) {
_local2.m_slideData_array[_local1].AddOneDupSlide(_local3);
} else {
_local2.m_slideData_array[_local1].m_rdSlide_mc = _local3;
_local3.m_frameCount = _local2.m_slideData_array[_local1].m_frameCount;
_local3.m_index = _local1;
_local3.transitType = _local2.m_slideData_array[_local1].m_transitionType;
_local3.transitOutType = _local2.m_slideData_array[_local1].m_transitionOutType;
_local3.transitInDur = _local2.m_slideData_array[_local1].m_transitionInDur;
_local3.transitOutDur = _local2.m_slideData_array[_local1].m_transitionOutDur;
_local3.transitInBetween = _local2.m_slideData_array[_local1].m_transitionInBetween;
_local3.transitOutBetween = _local2.m_slideData_array[_local1].m_transitionOutBetween;
_local3.transitInEasing = _local2.m_slideData_array[_local1].m_transitionInEasing;
_local3.transitOutEasing = _local2.m_slideData_array[_local1].m_transitionOutEasing;
_local3.transitInParam1 = _local2.m_slideData_array[_local1].m_transitionInParam1;
_local3.transitOutParam1 = _local2.m_slideData_array[_local1].m_transitionOutParam1;
_local3.transitInParam2 = _local2.m_slideData_array[_local1].m_transitionInParam2;
_local3.transitOutParam2 = _local2.m_slideData_array[_local1].m_transitionOutParam2;
_local3.stopOnFrame = _local2.m_slideData_array[_local1].m_stopOnFrame;
_local3.playOnFrame = _local2.m_slideData_array[_local1].m_showOnFrame;
_local2.m_slideTrans_array[_local1].m_nextSlide = _local2.m_slideData_array[_local1];
_local2.m_slideTrans_array[_local1 + 1].m_prevSlide = _local2.m_slideData_array[_local1];
if (_local2.m_slideData_array[_local1].className == "rdRandomSlideData") {
var randomSlide_mc = _local3;
if ((randomSlide_mc.m_qSlide_mc == null) || (randomSlide_mc.m_qSlide_mc == undefined)) {
randomSlide_mc.m_qSlide_mc = _local2.m_slideData_array[_local1].m_qSlide_mc;
if ((randomSlide_mc.m_qSlide_mc != null) && (randomSlide_mc.m_qSlide_mc != undefined)) {
randomSlide_mc.m_qSlide_mc._question.setRandomQuestionData(randomSlide_mc.m_rqObjectiveID, randomSlide_mc.m_rqIsTracked, randomSlide_mc.m_rqWeighting);
randomSlide_mc.m_qSlide_mc.m_cpSlideHolder = randomSlide_mc;
}
}
}
}
fscommand ("cpSlideLoaded", _local1);
}
function slideCompleted(slide) {
}
function prevSlide() {
var _local1 = this;
_local1.gotoSlide(_local1.m_currSlideIndex - 1, true);
if ((_local1.m_currSlideIndex == 0) && (_local1.m_currSlide.m_rdSlide_mc)) {
_local1.m_currSlide.m_rdSlide_mc.StartSlideAudioCC();
}
_local1.m_soundHandler.ResetSounds(true);
}
function nextSlide() {
var _local1 = this;
if ((_local1.m_currSlideIndex + 1) >= _local1.m_slideData_array.length) {
_local1.playerResumeMovie();
} else {
var _local3 = _local1.GetPlayingSlideIndex() + 1;
if (_local1.m_quizPlaybackController) {
var currentSlide = _local1.m_quizPlaybackController.getSlide(_local1.GetPlayingSlideIndex());
var _local2 = _local1.m_quizPlaybackController.getSlideAfter(currentSlide);
if ((_local2 != undefined) && (_local2 != null)) {
_local3 = _local2.slideNum;
}
}
_local1.gotoSlide(_local3, true);
}
_local1.m_soundHandler.ResetSounds(true);
}
function previousSlide() {
var _local2 = this;
var _local1 = null;
if (_local2.m_currSlide) {
_local1 = _local2.m_currSlide.m_rdSlide_mc;
}
_local2.gotoSlide(_local2.GetPlayingSlideIndex() - 1, true);
if (_local1 && (_local1.m_paused)) {
_local1.m_paused = false;
}
_local2.m_soundHandler.ResetSounds(true);
}
function JumpToSlide(index) {
gotoSlide(index, true);
m_soundHandler.ResetSounds(true);
}
function gotoSlide(index, force) {
var _local1 = this;
var _local2 = index;
if (_local2 >= _local1.m_slideData_array.length) {
_local2 = _local1.m_slideData_array.length - 1;
}
if (_local2 < 0) {
_local2 = 0;
}
if (_local1.m_quizPlaybackController) {
var currentSlide = _local1.m_quizPlaybackController.getSlide(_local1.m_currSlideIndex);
var _local3 = _local1.m_quizPlaybackController.getSlide(_local2);
var errStr = _local1.m_quizPlaybackController.allowedToGoToSlide(currentSlide, _local3);
_local1.m_quizPlaybackController.enableReviewMode(_local3);
if (errStr == "") {
_local1.m_quizPlaybackController._gotoSlide(_local3, true);
_local1.gotoFrame(_local1.m_slideData_array[_local2].m_playOnFrame + 1, true, force);
} else if (errStr == "QUIZ_ERROR_MUST_START_QUIZ_TO_SEE_SCORE_SLIDE") {
_local1.nextSlide();
} else {
return;
}
} else {
_local1.gotoFrame(_local1.m_slideData_array[_local2].m_playOnFrame + 1, true, force);
}
_local1.playerResumeMovie();
}
function rewindMovie() {
}
function doResumeMovie() {
var _local1 = this;
_local1.m_paused = false;
_local1.syncSubMovieClips(_local1.m_currFrame, true, false);
_local1.m_pacemaker.start(_local1.m_fps, _local1.m_currFrame)();
_local1.m_movie_mc.rdcmndPause = 0;
if (_local1.m_currSlide.m_rdSlide_mc) {
_local1.m_currSlide.m_rdSlide_mc.ResumeSlideAudioCC();
}
_local1.m_soundHandler.ResumeAllSounds();
if (_local1.m_quizPlaybackController) {
_local1.m_quizPlaybackController.onPlayStateChanged();
}
}
function doPauseMovie(fromPlaybar) {
var _local1 = this;
_local1.m_paused = true;
_local1.syncSubMovieClips(_local1.m_currFrame, false, false);
if (_local1.m_quizPlaybackController) {
var _local2;
if (fromPlaybar == true) {
_local2 = false;
} else {
_local2 = true;
}
_local1.m_quizPlaybackController.onPlayStateChanged(_local2);
}
}
function pauseMovie() {
doPauseMovie(false);
}
function playerPauseMovie() {
var _local1 = this;
if (_local1.m_currSlide) {
if (_local1.m_currSlide.m_rdSlide_mc) {
_local1.m_currSlide.m_rdSlide_mc.playerPauseSlide();
_local1.m_currSlide.m_rdSlide_mc.PauseSlideAudioCC();
}
}
if (_local1.m_nextSlide) {
if (_local1.m_nextSlide.m_rdSlide_mc) {
_local1.m_nextSlide.m_rdSlide_mc.playerPauseSlide();
}
}
_local1.m_soundHandler.PauseAllSounds();
_local1.doPauseMovie(true);
}
function resumeMovie() {
doResumeMovie();
}
function playerResumeMovie() {
var _local1 = this;
if (_local1.m_currSlide) {
if (_local1.m_currSlide.m_rdSlide_mc) {
_local1.m_currSlide.m_rdSlide_mc.playerResumeSlide();
}
} else if (_local1.m_nextSlide) {
if (_local1.m_nextSlide.m_rdSlide_mc) {
_local1.m_nextSlide.m_rdSlide_mc.playerResumeSlide();
}
}
_local1.doResumeMovie();
}
function checkPreviewCommands() {
var _local1 = this;
var oldSlide = null;
if (_local1.m_currSlide) {
oldSlide = _local1.m_currSlide.m_rdSlide_mc;
}
var bToChangePause = false;
var bForcePauseChange = false;
if (_local1.m_movie_mc.rdcmndPrevious == 1) {
_local1.m_movie_mc.rdcmndPrevious = 0;
bToChangePause = true;
bForcePauseChange = true;
_local1.prevSlide();
}
if (_local1.m_movie_mc.rdcmndNextSlide == 1) {
_local1.m_movie_mc.rdcmndNextSlide = 0;
bToChangePause = true;
_local1.nextSlide();
}
if (_local1.m_movie_mc.rdcmndGotoSlide >= 0) {
var newSlide = _local1.m_movie_mc.rdcmndGotoSlide;
_local1.m_movie_mc.rdcmndGotoSlide = -2;
bToChangePause = true;
_local1.gotoSlide(newSlide, true);
_local1.m_movie_mc.rdinfoCurrentFrame = _local1.m_currFrame;
_local1.m_soundHandler.ResetSounds(true);
_local1.playerPauseMovie();
}
if (_local1.m_movie_mc.rdcmndPause == 1) {
if (!_local1.m_paused) {
_local1.playerPauseMovie();
}
}
if (_local1.m_movie_mc.rdcmndResume == 1) {
_local1.m_movie_mc.rdcmndResume = 0;
bToChangePause = true;
bForcePauseChange = true;
_local1.playerResumeMovie();
}
if (_local1.m_movie_mc.rdcmndRewindAndStop == 1) {
_local1.m_movie_mc.rdcmndRewindAndStop = 0;
if (_local1.allowedToGoToFrame(1) == false) {
return;
}
if (_local1.m_quizPlaybackController) {
var currentSlide = _local1.m_quizPlaybackController.getSlide(_local1.m_currSlideIndex);
var targetSlide = _local1.m_quizPlaybackController.getSlide(0);
var errStr = _local1.m_quizPlaybackController.allowedToGoToSlide(currentSlide, targetSlide);
_local1.m_quizPlaybackController.enableReviewMode(targetSlide);
if (errStr == "") {
_local1.m_quizPlaybackController._gotoSlide(targetSlide, true);
_local1.gotoFrame(_local1.m_slideData_array[0].m_playOnFrame + 1, true, true);
} else if (errStr == "QUIZ_ERROR_MUST_START_QUIZ_TO_SEE_SCORE_SLIDE") {
return;
}
} else {
_local1.gotoFrame(1, false, false);
}
if (_local1.m_currSlide.m_rdSlide_mc) {
_local1.m_currSlide.m_rdSlide_mc.SyncSlideAudioCC(false);
}
bToChangePause = true;
_local1.playerPauseMovie();
_local1.m_movie_mc.rdinfocurrFrame = _local1.m_currFrame;
_local1.m_soundHandler.DoDeleteAllSounds();
}
if (_local1.m_movie_mc.rdcmndRewindAndPlay == 1) {
_local1.m_movie_mc.rdcmndRewindAndPlay = 0;
if (_local1.allowedToGoToFrame(1) == false) {
return;
}
if (_local1.m_quizPlaybackController) {
var currentSlide = _local1.m_quizPlaybackController.getSlide(_local1.m_currSlideIndex);
var targetSlide = _local1.m_quizPlaybackController.getSlide(0);
var errStr = _local1.m_quizPlaybackController.allowedToGoToSlide(currentSlide, targetSlide);
_local1.m_quizPlaybackController.enableReviewMode(targetSlide);
if (errStr == "") {
bToChangePause = true;
bForcePauseChange = true;
_local1.m_quizPlaybackController._gotoSlide(targetSlide, true);
_local1.gotoFrame(_local1.m_slideData_array[0].m_playOnFrame + 1, true, true);
} else if (errStr == "QUIZ_ERROR_MUST_START_QUIZ_TO_SEE_SCORE_SLIDE") {
return;
}
} else {
bToChangePause = true;
bForcePauseChange = true;
_local1.gotoFrame(1, true, false);
}
if (_local1.m_currSlide.m_rdSlide_mc) {
_local1.m_currSlide.m_rdSlide_mc.StartSlideAudioCC();
}
_local1.playerResumeMovie();
_local1.m_soundHandler.ResetSounds(false);
}
if (_local1.m_movie_mc.rdcmndGotoFrame >= 0) {
var frame = _local1.m_movie_mc.rdcmndGotoFrame;
_local1.m_movie_mc.rdcmndGotoFrame = -1;
_local1.playerPauseMovie();
_local1.gotoFrame(frame, false, false);
_local1.m_movie_mc.rdinfocurrFrame = _local1.m_currFrame;
_local1.playerPauseMovie();
if (_local1.m_currSlide.m_rdSlide_mc) {
_local1.m_currSlide.m_rdSlide_mc.SyncSlideAudioCC(false);
}
_local1.m_soundHandler.DeleteNonBackgroundSound();
if (_local1.m_notifyPbc && (_local1.m_quizPlaybackController)) {
_local1.m_quizPlaybackController.onUserScrubChanged();
}
_local1.m_notifyPbc = false;
}
if (_local1.m_movie_mc.rdcmndGotoFrameAndResume >= 0) {
var frame = _local1.m_movie_mc.rdcmndGotoFrameAndResume;
_local1.m_movie_mc.rdcmndGotoFrameAndResume = -1;
bToChangePause = true;
if (frame < _local1.m_currFrame) {
bForcePauseChange = true;
}
_local1.gotoFrame(frame, true, false);
_local1.m_movie_mc.rdinfocurrFrame = _local1.m_currFrame;
if (_local1.m_currSlide.m_rdSlide_mc) {
_local1.m_currSlide.m_rdSlide_mc.SyncSlideAudioCC(true);
_local1.m_currSlide.m_rdSlide_mc.ResumeSlideAudioCC(true);
}
}
if (_local1.m_movie_mc.rdcmndExit == 1) {
_local1.m_movie_mc.rdcmndExit = 0;
var _local3 = false;
var _local2 = _local1.m_movie_mc;
while ((!_local3) && (_local2)) {
if (_local2.g_serranoViewerController) {
_local3 = true;
} else {
_local2 = _local2._parent;
}
}
if (_local3) {
} else if (_local1.m_quizPlaybackController && (typeof(_local1.m_quizPlaybackController.exitCourse) == "function")) {
_local1.m_quizPlaybackController.exitCourse();
} else if (_local1.m_movie_mc.rdIsPreview || (_root.FlashPlayer)) {
fscommand ("quit");
} else {
getURL ("javascript:window.close();", "_self");
}
}
if (_local1.m_movie_mc.rdcmndInfo == 1) {
_local1.m_movie_mc.rdcmndInfo = 0;
_local1.m_movie_mc.info_mc.playInfo();
}
if (_local1.m_movie_mc.rdcmndCC == 1) {
_local1.m_cpCC.playCC();
} else if (_local1.m_movie_mc.rdcmndCC == 0) {
_local1.m_cpCC.closeCC();
}
if ((bToChangePause && (oldSlide)) && (oldSlide.m_paused)) {
var changedSlide = null;
if (_local1.m_currSlide) {
changedSlide = _local1.m_currSlide.m_rdSlide_mc;
}
if (bForcePauseChange || (oldSlide != changedSlide)) {
oldSlide.m_paused = false;
}
}
}
function clickHandlerLoaded(clickHandler) {
m_clickHandler_mc = clickHandler;
}
function getSlideCount() {
return(m_slideData_array.length);
}
function showHidePlayGoto(slide, playSlide) {
var _local1 = slide;
var _local2 = this;
if (_local1 && (_local1.m_rdSlide_mc)) {
if ((_local2.m_currFrame >= _local1.m_showOnFrame) && (_local2.m_currFrame <= _local1.m_hideOnFrame)) {
_local1.m_rdSlide_mc.showSlide();
if ((_local2.m_currFrame >= _local1.m_playOnFrame) && (_local2.m_currFrame <= _local1.m_stopOnFrame)) {
_local1.m_rdSlide_mc.gotoFrame(_local2.m_currFrame - _local1.m_playOnFrame, playSlide);
} else if (_local2.m_currFrame < _local1.m_playOnFrame) {
_local1.m_rdSlide_mc.gotoFrame(1, false);
} else {
_local1.m_rdSlide_mc.gotoFrame(_local1.m_frameCount - 1, false);
}
var _local3;
_local3 = true;
if (_local3) {
}
} else {
_local1.m_rdSlide_mc.hideSlide();
}
}
}
function doShow(slide) {
var _local1 = slide;
if (_local1 && (_local1.m_rdSlide_mc)) {
_local1.m_rdSlide_mc.showSlide();
}
}
function doHide(slide) {
var _local1 = slide;
if (_local1 && (_local1.m_rdSlide_mc)) {
_local1.m_rdSlide_mc.hideSlide();
}
}
function allowedToGoToFrame(frame) {
var _local1 = this;
if (_local1.m_quizPlaybackController) {
var i = _local1.getSlideIndexFromFrame(frame);
var _local2 = _local1.m_quizPlaybackController.getSlide(_local1.m_currSlideIndex);
var targetSlide = _local1.m_quizPlaybackController.getSlide(i);
var _local3 = _local1.m_quizPlaybackController.allowedToGoToSlide(_local2, targetSlide);
if (_local3 != "") {
return(false);
}
}
return(true);
}
function gotoFrame(frame, playSlide, force) {
if (allowedToGoToFrame(frame) == false) {
return(undefined);
}
doGotoFrame(frame, playSlide, force);
}
function getSlideIndexFromFrame(frame) {
var _local3 = frame;
var _local1;
_local1 = 0;
while (_local1 < m_slideData_array.length) {
var _local2 = m_slideData_array[_local1];
if ((_local3 >= _local2.m_showOnFrame) && (_local3 <= _local2.m_stopOnFrame)) {
return(_local1);
}
_local1++;
}
return(-1);
}
function doGotoFrame(frame, playSlide, force) {
var _local1 = this;
var _local2 = frame;
var _local3 = playSlide;
if (_local2 < 1) {
_local2 = 1;
}
if (_local2 > _local1.m_movie_mc.rdinfoFrameCount) {
_local2 = _local1.m_movie_mc.rdinfoFrameCount;
}
_local1.m_state = stateSlide;
if (_local1.m_currFrame == _local2) {
} else {
var i;
var n;
_local1.m_currFrame = _local2;
_local1.m_movie_mc.rdinfocurrFrame = _local1.m_currFrame;
i = _local1.getSlideIndexFromFrame(_local2);
if (i != _local1.m_currSlideIndex) {
_local1.setCurrSlide(i);
}
if (i >= 0) {
_local1.showHidePlayGoto(_local1.m_currSlide, _local3);
_local1.showHidePlayGoto(_local1.m_nextSlide, _local3);
}
if (_local1.m_paused && (_local3)) {
_local1.playerResumeMovie();
} else if ((!_local1.m_paused) && (!_local3)) {
_local1.playerPauseMovie();
}
_local1.syncSubMovieClips(_local2, _local3, force);
_local1.doPlay();
if (_local1.m_quizPlaybackController) {
_local1.m_quizPlaybackController.onScrubChanged();
}
}
}
function syncSubMovieClips(nFrame, doPlay, force) {
var i;
if (typeof(m_movie_mc.m_Sub_mc_array) == "object") {
i = 0;
while (i < m_movie_mc.m_Sub_mc_array.length) {
var mc;
mc = eval ("this." + m_movie_mc.m_Sub_mc_array[i]);
if (typeof(mc) == "movieclip") {
if ((nFrame >= mc.nEnterFrame) && (nFrame < mc.nExitFrame)) {
var nSubFrame = ((nFrame - mc.nEnterFrame) + 1);
mc.gotoFrame(nSubFrame, doPlay, force);
}
}
i++;
}
}
}
function SetPacemaker(pacemaker) {
m_pacemaker = pacemaker;
}
function SkipFrames(count) {
var _local1 = this;
var _local2 = count;
if (_local1.m_currSlide && (_local1.m_currSlide.m_stopOnFrame > _local1.m_currFrame)) {
if (_local1.m_currSlide.m_stopOnFrame > (_local1.m_currFrame + _local2)) {
var _local3 = _local1.m_currSlide.m_rdSlide_mc.CanSkipFrames(_local2);
if (_local3 > 0) {
_local1.doGotoFrame(_local1.m_currFrame + _local3, true, false);
}
}
} else if (_local1.m_nextSlide && (_local1.m_nextSlide.m_playOnFrame < _local1.m_currFrame)) {
if (_local1.m_nextSlide.m_stopOnFrame > (_local1.m_currFrame + _local2)) {
var _local3 = _local1.m_nextSlide.m_rdSlide_mc.CanSkipFrames(_local2);
if (_local3 > 0) {
_local1.doGotoFrame(_local1.m_currFrame + _local3, true, false);
}
}
}
}
function ReplayFrame() {
doGotoFrame(m_currFrame - 1, true, false);
}
function informQuizPlaybackController() {
var _local3 = this;
if (_local3.m_quizPlaybackController) {
var _local1;
_local1 = 0;
while (_local1 < _local3.m_slideData_array.length) {
var _local2 = _local3.m_slideData_array[_local1];
_local3.m_quizPlaybackController.addSlideInfo(_local1, _local2.m_playOnFrame + 1, _local2.m_stopOnFrame);
_local1++;
}
}
}
function itemLoaded(item) {
item.setMovie(this);
}
function myTrace(p_arg) {
}
function addQuizPoolData(quizPoolData) {
m_quizPoolColl[quizPoolData.__get__poolname()] = quizPoolData;
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * (max - min)) + min;
return(_local1);
}
function getRandomizedArray(inArr) {
var _local3 = new Array();
var j = 0;
var _local2 = 0;
while (_local2 < inArr.length) {
_local3[_local2] = inArr[_local2];
_local2++;
}
var _local1;
var n;
var len = _local3.length;
_local1 = len;
while (_local1 > 1) {
n = randRange(0, _local1);
if (n != _local1) {
var temp = _local3[n];
_local3[n] = _local3[_local1 - 1];
_local3[_local1 - 1] = temp;
}
_local1--;
}
return(_local3);
}
function ReArrangeSlideData() {
var iSurveyIndex = 0;
var iGradedIndex = 0;
var qpSlideIndex = -1;
var iSlideNum = 0;
while (iSlideNum < m_slideData_array.length) {
if (m_slideData_array[iSlideNum].className == "rdRandomSlideData") {
qpSlideIndex = -1;
var _local2 = m_slideData_array[iSlideNum];
_local2.m_poolRandomArr = getRandomizedArray(_local2.m_poolArr);
var iPoolNum = 0;
while (iPoolNum < _local2.m_poolRandomArr.length) {
var _local1 = m_movie_mc.m_quizPoolColl[_local2.m_poolRandomArr[iPoolNum]];
if ((_local1 == null) || (_local1 == undefined)) {
} else {
if (_local2.m_isSurvey) {
if (_local1.nextSurveyQues < _local1.surveyQuesRandomArr.length) {
qpSlideIndex = Number(_local1.surveyQuesRandomArr[_local1.nextSurveyQues]);
}
_local1.nextSurveyQues++;
} else {
if (_local1.nextGradedQues < _local1.gradedQuesRandomArr.length) {
qpSlideIndex = Number(_local1.gradedQuesRandomArr[_local1.nextGradedQues]);
}
_local1.nextGradedQues++;
}
if (qpSlideIndex > -1) {
var _local3 = _local1.pool_mc.movie.m_slideData_array[qpSlideIndex];
_local2.m_qSlide_mc = _local1.pool_mc[("slide" + qpSlideIndex) + "__question_mc"];
_local2.m_frameCount = _local3.m_frameCount;
_local2.m_playOnFrame = _local3.m_playOnFrame;
_local2.m_stopOnFrame = _local3.m_stopOnFrame;
_local2.m_hideOnFrame = _local3.m_hideOnFrame;
_local2.m_showOnFrame = _local3.m_showOnFrame;
_local2.m_selectedPoolName = _local2.m_poolRandomArr[iPoolNum];
_local2.m_selectedQSlideIndex = qpSlideIndex;
break;
}
}
iPoolNum++;
}
}
iSlideNum++;
}
UpdateSlideData(false);
UpdateSoundData();
}
function RestoreMovieState() {
if (m_slideData_array[0].className == "rdRandomSlideData") {
m_slideData_array[0].m_rdSlide_mc.hideSlide();
}
var iSurveyIndex = 0;
var iGradedIndex = 0;
var qpSlideIndex = -1;
var _local2 = 0;
while (_local2 < m_slideData_array.length) {
if (m_slideData_array[_local2].className == "rdRandomSlideData") {
qpSlideIndex = -1;
var _local1 = m_slideData_array[_local2];
var slideInfo = m_quizPlaybackController.getSlide(_local2);
var quizPoolData = m_movie_mc.m_quizPoolColl[slideInfo.selectedPoolName];
if ((quizPoolData == null) || (quizPoolData == undefined)) {
} else {
qpSlideIndex = slideInfo.selectedQSlideIndex;
if (qpSlideIndex > -1) {
var _local3 = quizPoolData.pool_mc.movie.m_slideData_array[qpSlideIndex];
_local1.m_qSlide_mc = quizPoolData.pool_mc[("slide" + qpSlideIndex) + "__question_mc"];
_local1.m_frameCount = _local3.m_frameCount;
_local1.m_playOnFrame = _local3.m_playOnFrame;
_local1.m_stopOnFrame = _local3.m_stopOnFrame;
_local1.m_hideOnFrame = _local3.m_hideOnFrame;
_local1.m_showOnFrame = _local3.m_showOnFrame;
_local1.m_selectedPoolName = slideInfo.selectedPoolName;
_local1.m_selectedQSlideIndex = qpSlideIndex;
}
}
}
_local2++;
}
UpdateSlideData(true);
RestorePoolSoundData();
if (m_slideData_array[0].className == "rdRandomSlideData") {
m_slideData_array[0].m_rdSlide_mc.showSlide();
}
m_slideDataArranged = true;
m_movie_mc.cpQuestionPoolsInitialized = true;
}
function UpdateSlideData(force) {
var _local2 = this;
var _local3 = _local2.m_slideData_array[0];
_local2.m_movie_mc.rdinfoFrameCount = _local2.m_slideData_array[0].m_frameCount;
var iSlideNum = 1;
while (iSlideNum < _local2.m_slideData_array.length) {
_local3 = _local2.m_slideData_array[iSlideNum];
var playOnFrameDiff = (_local3.m_playOnFrame - _local3.m_showOnFrame);
var stopOnFrameDiff = (_local3.m_stopOnFrame - _local3.m_showOnFrame);
var hideOnFrameDiff = (_local3.m_hideOnFrame - _local3.m_showOnFrame);
_local3.m_showOnFrame = _local2.m_slideData_array[iSlideNum - 1].m_stopOnFrame;
_local3.m_playOnFrame = _local3.m_showOnFrame + playOnFrameDiff;
_local3.m_stopOnFrame = _local3.m_showOnFrame + stopOnFrameDiff;
_local3.m_hideOnFrame = _local3.m_showOnFrame + hideOnFrameDiff;
_local2.m_movie_mc.rdinfoFrameCount = _local2.m_movie_mc.rdinfoFrameCount + _local3.m_frameCount;
iSlideNum++;
}
var slideNo = 0;
while (slideNo < _local2.m_slideData_array.length) {
var _local1 = _local2.m_slideData_array[slideNo].m_rdSlide_mc;
if ((_local1 != null) && (_local1 != undefined)) {
_local1.m_frameCount = _local2.m_slideData_array[slideNo].m_frameCount;
_local1.stopOnFrame = _local2.m_slideData_array[slideNo].m_stopOnFrame;
_local1.playOnFrame = _local2.m_slideData_array[slideNo].m_playOnFrame;
if (_local2.m_slideData_array[slideNo].className == "rdRandomSlideData") {
if ((force || (_local1.m_qSlide_mc == null)) || (_local1.m_qSlide_mc == undefined)) {
_local1.m_qSlide_mc = _local2.m_slideData_array[slideNo].m_qSlide_mc;
if ((_local1.m_qSlide_mc != null) && (_local1.m_qSlide_mc != undefined)) {
_local1.m_qSlide_mc._question.setRandomQuestionData(_local1.m_rqObjectiveID, _local1.m_rqIsTracked, _local1.m_rqWeighting);
_local1.m_qSlide_mc.m_cpSlideHolder = _local1;
}
}
}
}
slideNo++;
}
if (_local2.m_quizPlaybackController) {
var i;
i = 0;
while (i < _local2.m_slideData_array.length) {
var slide = _local2.m_slideData_array[i];
if (slide.className == "rdRandomSlideData") {
_local2.m_quizPlaybackController.updateSlideInfo(i, slide.m_playOnFrame + 1, slide.m_stopOnFrame, slide.m_selectedPoolName, slide.m_selectedQSlideIndex);
} else {
_local2.m_quizPlaybackController.updateSlideInfo(i, slide.m_playOnFrame + 1, slide.m_stopOnFrame, "none", 999);
}
i++;
}
}
}
function RestorePoolSoundData() {
m_soundHandler.ClearPoolSound();
UpdateSoundData();
}
function UpdateSoundData() {
var _local1 = this;
var numOrgSounds = _local1.m_soundHandler.getNumSounds();
var BackgroundAudioAdjust = 0;
var iSlideNum = 0;
while (iSlideNum < _local1.m_slideData_array.length) {
var soundAdded = false;
if (_local1.m_slideData_array[iSlideNum].className == "rdRandomSlideData") {
var slideData = _local1.m_slideData_array[iSlideNum];
var poolMovie = slideData.m_qSlide_mc._parent;
var poolSoundHandler = poolMovie.movie.m_soundHandler;
var _local2 = 0;
while (_local2 < slideData.m_qSlide_mc.m_soundIdxArr.length) {
var _local3 = slideData.m_qSlide_mc.m_soundIdxArr[_local2];
_local1.m_soundHandler.DoAddSound(poolSoundHandler.NameArr[_local3], (slideData.m_showOnFrame + poolSoundHandler.StartArr[_local3]) - 1, (slideData.m_showOnFrame + poolSoundHandler.StopArr[_local3]) - 1, (slideData.m_showOnFrame + poolSoundHandler.FadeInArr[_local3]) - 1, (slideData.m_showOnFrame + poolSoundHandler.FadeOutArr[_local3]) - 1, poolSoundHandler.LoopArr[_local3], poolSoundHandler.LowerArr[_local3], poolSoundHandler.BackgroundArr[_local3], true, poolMovie, _local3);
soundAdded = true;
_local2++;
}
var adjustTime = ((slideData.m_hideOnFrame - slideData.m_showOnFrame) - (slideData.m_hideOnFrameOrg - slideData.m_showOnFrameOrg));
if ((soundAdded == true) || (adjustTime != 0)) {
BackgroundAudioAdjust = BackgroundAudioAdjust + adjustTime;
_local2 = 0;
while (_local2 < numOrgSounds) {
if ((_local1.m_soundHandler.BackgroundArr[_local2] != 1) && (_local1.m_soundHandler.StartArr[_local2] >= slideData.m_showOnFrameOrg)) {
_local1.m_soundHandler.StartArr[_local2] = _local1.m_soundHandler.StartArr[_local2] + adjustTime;
_local1.m_soundHandler.StopArr[_local2] = _local1.m_soundHandler.StopArr[_local2] + adjustTime;
_local1.m_soundHandler.FadeInArr[_local2] = _local1.m_soundHandler.FadeInArr[_local2] + adjustTime;
_local1.m_soundHandler.FadeOutArr[_local2] = _local1.m_soundHandler.FadeOutArr[_local2] + adjustTime;
}
_local2++;
}
}
}
iSlideNum++;
}
var iSoundNum1 = 0;
while (iSoundNum1 < numOrgSounds) {
if ((BackgroundAudioAdjust != 0) && (_local1.m_soundHandler.BackgroundArr[iSoundNum1] == 1)) {
_local1.m_soundHandler.StopArr[iSoundNum1] = _local1.m_soundHandler.StopArr[iSoundNum1] + BackgroundAudioAdjust;
_local1.m_soundHandler.FadeOutArr[iSoundNum1] = _local1.m_soundHandler.FadeOutArr[iSoundNum1] + BackgroundAudioAdjust;
_local1.m_soundHandler.BackgroundAudioAdjust = BackgroundAudioAdjust;
}
iSoundNum1++;
}
var poolItemSoundAdded = new Object();
var iSlideNum = 0;
while (iSlideNum < _local1.m_slideData_array.length) {
if (_local1.m_slideData_array[iSlideNum].className == "rdRandomSlideData") {
var slideData = _local1.m_slideData_array[iSlideNum];
var poolMovie = slideData.m_qSlide_mc._parent;
if (poolItemSoundAdded[poolMovie._name] == undefined) {
var poolSoundHandler = poolMovie.movie.m_soundHandler;
var _local2 = 0;
while (_local2 < poolSoundHandler.itmNameArr.length) {
_local1.m_soundHandler.AddItemSound(poolSoundHandler.itmNameArr[_local2], poolSoundHandler.itmStartArr[_local2] - 1, poolSoundHandler.itmStopArr[_local2] - 1, poolSoundHandler.itmFadeInArr[_local2] - 1, poolSoundHandler.itmFadeOutArr[_local2] - 1, poolSoundHandler.itmLoopArr[_local2], poolSoundHandler.itmLowerArr[_local2], true, poolMovie, _local2);
_local2++;
}
poolItemSoundAdded[poolMovie._name] = true;
}
}
iSlideNum++;
}
}
function getSlide(slidenum) {
if (m_slideData_array.length > slidenum) {
return(m_slideData_array[slidenum]);
}
return(null);
}
function gotoFlashFrame(frame) {
m_movie_mc.rdcmndGotoFrame = frame;
}
function gotoMovieSlide(slide) {
var _local1 = m_slideData_array[slide];
if (_local1 && (_local1 != undefined)) {
m_movie_mc.rdcmndGotoFrame = _local1.m_showOnFrame;
}
}
function gotoFrameAndResume(frame) {
m_movie_mc.rdcmndGotoFrameAndResume = frame;
}
function gotoSlideAndResume(slide) {
var _local1 = m_slideData_array[slide];
if (_local1 && (_local1 != undefined)) {
m_movie_mc.rdcmndGotoFrameAndResume = _local1.m_showOnFrame;
}
}
function resume() {
m_movie_mc.rdcmndResume = 1;
}
function pause() {
m_movie_mc.rdcmndPause = 1;
}
function gotoPreviousSlide() {
m_movie_mc.rdcmndPrevious = 1;
}
function gotoNextSlide() {
m_movie_mc.rdcmndNextSlide = 1;
}
function rewindAndPause() {
m_movie_mc.rdcmndRewindAndStop = 1;
}
function rewindAndPlay() {
m_movie_mc.rdcmndRewindAndPlay = 1;
}
function exit() {
m_movie_mc.rdcmndExit = 1;
}
function showInfo() {
m_movie_mc.rdcmndInfo = 1;
}
function getFrameCount() {
return(m_movie_mc.rdinfoFrameCount);
}
function getSlidesInProject() {
return(m_movie_mc.rdinfoSlidesInProject);
}
function getCurrentFrame() {
return(m_movie_mc.rdinfoCurrentFrame);
}
function getCurrentSlide() {
return(m_movie_mc.rdinfoCurrentSlide);
}
function getMovieSlideCount() {
return(m_movie_mc.rdinfoSlideCount);
}
function isMovieReady() {
return(isReady());
}
function hasPlaybar() {
return(m_movie_mc.rdinfoHasPlaybar);
}
function getFrameRate() {
return(m_movie_mc.rdinfoFPS);
}
function showCC(cmd) {
m_movie_mc.rdcmndCC = ((cmd == true) ? 1 : 0);
}
function mute(cmd) {
m_movie_mc.rdcmndMute = ((cmd == true) ? 1 : 0);
}
function getVersion() {
return(m_movie_mc.CaptivateVersion);
}
function setMovieSize(width, height) {
size(width, height);
}
function getMovieWidth() {
return(m_movie_mc._width);
}
function getMovieHeight() {
return(m_movie_mc._height);
}
var m_movie_mc = null;
var m_paused = false;
var m_pausedOnInfo = false;
var m_loop = false;
var m_clickHandler_mc = null;
var m_keyHandler = null;
var m_soundHandler = null;
var m_quizPlaybackController = null;
var m_notifyPbc = false;
var m_currSlide = null;
var m_nextSlide = null;
var m_prevSlide = null;
var m_currSlideIndex = 0;
var m_handledDone = false;
var m_currFrame = 0;
var m_debDone = false;
static var stateTrans = 0;
static var stateSlide = 1;
static var stateDone = 2;
static var stateStart = 3;
static var stateWait = 4;
var m_currIndex = 0;
var m_state = stateStart;
var m_debtick = 0;
var m_pacemaker = null;
var m_fps = 20;
var m_disableInteractions = false;
var m_supportsSyncPlayback = true;
var m_bogus_breeze_dims_set = false;
var m_bogus_breeze_width = 0;
var m_bogus_breeze_height = 0;
var m_slideDataArranged = false;
var _hasIsTrackedBeenSet = false;
var history = new Array();
}
Symbol 6 MovieClip [__Packages.captivate.monalisa.rdClickHandler] Frame 0
class captivate.monalisa.rdClickHandler extends MovieClip
{
var arr_Sprite, m_isDown, _parent;
function rdClickHandler () {
super();
arr_Sprite = new Array();
}
function clearSprites(excludeSlideIndex) {
var _local2 = this;
var _local3 = excludeSlideIndex;
var _local1;
_local1 = 0;
while (_local1 < _local2.arr_Sprite.length) {
if (_local2.arr_Sprite[_local1].parentSlideIndex != _local3) {
_local2.arr_Sprite[_local1].m_isRegistered = false;
_local2.arr_Sprite.splice(_local1, 1);
_local1--;
}
_local1++;
}
}
function MouseOutsideMovie() {
var _local1 = this;
var _local3 = _local1._parent._xmouse;
var _local2 = _local1._parent._ymouse;
if (_local3 < 0) {
return(true);
}
if (_local2 < 0) {
return(true);
}
if (_local3 > _local1.m_movie.m_width) {
return(true);
}
if (_local2 > _local1.m_movie.m_height) {
return(true);
}
return(false);
}
function IsMouseDown() {
return(m_isDown);
}
function onLoad() {
var _local1 = this;
_local1.m_movie = _local1._parent.movie;
_local1.m_movie.clickHandlerLoaded(_local1);
}
function SpriteLoaded(Sprite) {
arr_Sprite.push(Sprite);
return(true);
}
function SpriteUnloaded(Sprite) {
var _local2 = this;
var _local3 = Sprite;
var _local1;
_local1 = 0;
while (_local1 < _local2.arr_Sprite.length) {
if (_local2.arr_Sprite[_local1] == _local3) {
_local2.arr_Sprite.splice(_local1, 1);
return;
}
_local1++;
}
}
function MouseInPlaybar() {
var _local1 = this;
var _local2 = _root;
if (typeof(_local1._parent.cpPbcBar_mc.pbcBar_mc) == "movieclip") {
if (_local1._parent.cpPbcBar_mc.pbcBar_mc.hitTest(_local2._xmouse, _local2._ymouse, true)) {
return(true);
}
}
if (typeof(_local1._parent._parent.cpPbcBar_mc.pbcBar_mc) == "movieclip") {
if (_local1._parent._parent.cpPbcBar_mc.pbcBar_mc.hitTest(_local2._xmouse, _local2._ymouse, true)) {
return(true);
}
}
if (typeof(_local1._parent.playbar_mc) == "movieclip") {
if (_local1._parent.playbar_mc.hitTest(_local2._xmouse, _local2._ymouse, true)) {
return(true);
}
}
if (typeof(_local1._parent.info_mc) == "movieclip") {
if (_local1._parent.info_mc.hitTest(_local2._xmouse, _local2._ymouse, true)) {
return(true);
}
}
return(false);
}
function CheckSpriteClick(x1, y1, x2, y2, bSound) {
if ((((x1 == undefined) || (y1 == undefined)) || (x2 == undefined)) || (y2 == undefined)) {
return(false);
}
var _local1 = false;
var _local3 = _parent._xmouse;
var _local2 = _parent._ymouse;
if ((((_local3 >= x1) && (_local3 <= x2)) && (_local2 >= y1)) && (_local2 <= y2)) {
if (bSound) {
_parent.rdClibBoxSound_mc.gotoAndPlay(2);
}
_local1 = true;
}
return(_local1);
}
function onMouseDown() {
m_isDown = true;
CheckAllClicksDown();
}
function onMouseUp() {
m_isDown = false;
CheckAllClicksUp();
}
function CheckAllClicksDown() {
var _local1 = this;
var _local2;
var bOk = false;
if (_local1.arr_Sprite.length < 1) {
} else if (_local1.MouseInPlaybar()) {
} else if (_local1.MouseOutsideMovie()) {
} else {
_local2 = 0;
while (_local2 < _local1.arr_Sprite.length) {
var _local3 = false;
if (_local1.arr_Sprite[_local2].bClickSound) {
if (_local1.arr_Sprite[_local2].bOnDown && (!_local1.arr_Sprite[_local2].bDoubleClick)) {
_local3 = true;
}
}
if (_local1.CheckSpriteClick(_local1.arr_Sprite[_local2].m_left, _local1.arr_Sprite[_local2].m_top, _local1.arr_Sprite[_local2].m_right, _local1.arr_Sprite[_local2].m_bottom, _local3)) {
bOk = true;
if (_local1.arr_Sprite[_local2].bDoubleClick) {
if ((_local1.LastClicked_mc == _local1.arr_Sprite[_local2]) && ((getTimer() - _local1.LastClickedTime) <= _local1.arr_Sprite[_local2].nDoubleClickTime)) {
if (_local1.arr_Sprite[_local2].bClickSound) {
_local1.CheckSpriteClick(_local1.arr_Sprite[_local2].m_left, _local1.arr_Sprite[_local2].m_top, _local1.arr_Sprite[_local2].m_right, _local1.arr_Sprite[_local2].m_bottom, true);
}
_local1.arr_Sprite[_local2].Submit(true);
_local1.HandleStopAudio(_local1.arr_Sprite[_local2]);
_local1.LastClicked_mc = 0;
_local1.LastClickedTime = 0;
} else {
_local1.LastClicked_mc = _local1.arr_Sprite[_local2];
_local1.LastClickedTime = getTimer();
}
} else if (_local1.arr_Sprite[_local2].bOnDown) {
_local1.arr_Sprite[_local2].Submit(true);
_local1.HandleStopAudio(_local1.arr_Sprite[_local2]);
} else {
_local1.LastClicked_mc = _local1.arr_Sprite[_local2];
}
return;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.arr_Sprite.length) {
if ((_local1.arr_Sprite[_local2].bOnDown || (_local1.arr_Sprite[_local2].bDoubleClick)) && (!_local1.arr_Sprite[_local2].bNoAction)) {
_local1.arr_Sprite[_local2].Submit(false);
if (!_local1.arr_Sprite[_local2].m_isSubmitForItem) {
return;
}
}
_local2++;
}
}
}
function HandleStopAudio(mc) {
if (mc.bStopaudio == 1) {
if (typeof(_parent.rdSoundStarter_mc) == "movieclip") {
_parent.rdSoundStarter_mc.ssStopNonBackgroundSound();
}
}
}
function CheckAllClicksUp() {
var _local1 = this;
var _local2;
if (_local1.arr_Sprite.length < 1) {
} else if (_local1.MouseInPlaybar()) {
} else if (_local1.MouseOutsideMovie()) {
} else if (_local1.LastClicked_mc.bDoubleClick) {
} else {
var _local3 = false;
if (_local1.LastClicked_mc.bClickSound) {
if ((!_local1.LastClicked_mc.bOnDown) && (!_local1.LastClicked_mc.bDoubleClick)) {
_local3 = true;
}
}
if (_local1.CheckSpriteClick(_local1.LastClicked_mc.m_left, _local1.LastClicked_mc.m_top, _local1.LastClicked_mc.m_right, _local1.LastClicked_mc.m_bottom, _local3)) {
_local1.LastClicked_mc.Submit(true);
_local1.HandleStopAudio(_local1.LastClicked_mc);
} else {
_local2 = 0;
while (_local2 < _local1.arr_Sprite.length) {
if (((!_local1.arr_Sprite[_local2].bOnDown) && (!_local1.arr_Sprite[_local2].bDoubleClick)) && (!_local1.arr_Sprite[_local2].bNoAction)) {
_local1.arr_Sprite[_local2].Submit(false);
if (!_local1.arr_Sprite[_local2].m_isSubmitForItem) {
break;
}
}
_local2++;
}
}
_local1.LastClicked_mc = 0;
}
}
var LastClicked_mc = 0;
var LastClickedTime = 0;
}
Symbol 7 MovieClip [__Packages.captivate.monalisa.rdKeyHandler] Frame 0
class captivate.monalisa.rdKeyHandler
{
function rdKeyHandler () {
arr_Sprite = new Array();
}
function clearSprites(excludeSlideIndex) {
var _local2 = this;
var _local3 = excludeSlideIndex;
var _local1;
_local1 = 0;
while (_local1 < _local2.arr_Sprite.length) {
if (_local2.arr_Sprite[_local1].parentSlideIndex != _local3) {
_local2.arr_Sprite.splice(_local1, 1);
_local1--;
}
_local1++;
}
}
function SpriteLoaded(Sprite) {
arr_Sprite.push(Sprite);
return(true);
}
function SpriteUnloaded(Sprite) {
var _local2 = this;
var _local3 = Sprite;
var _local1;
_local1 = 0;
while (_local1 < _local2.arr_Sprite.length) {
if (_local2.arr_Sprite[_local1] == _local3) {
_local2.arr_Sprite.splice(_local1, 1);
return;
}
_local1++;
}
}
function CheckSpriteKey(nKey, bShift, bControl, bAlt, bConsiderNumpad) {
var _local2 = nKey;
var _local3 = _local2;
if (((_local2 >= 48) && (_local2 <= 57)) && (!bConsiderNumpad)) {
_local3 = (_local2 - 48) + 96;
}
var _local1 = false;
if (_local2 > 0) {
if (_local3 != _local2) {
_local1 = Key.isDown(_local2) || (Key.isDown(_local3));
} else {
_local1 = Key.isDown(_local2);
}
} else {
_local1 = true;
}
if (bShift && (!Key.isDown(16))) {
_local1 = false;
}
if ((!bShift) && (Key.isDown(16))) {
_local1 = false;
}
if (bControl && (!Key.isDown(17))) {
_local1 = false;
}
if ((!bControl) && (Key.isDown(17))) {
_local1 = false;
}
if (bAlt && (!Key.isDown(18))) {
_local1 = false;
}
if ((!bAlt) && (Key.isDown(18))) {
_local1 = false;
}
return(_local1);
}
function AnySubmitKeyPressed(bConsiderNumpad) {
var _local1;
_local1 = 65;
while (_local1 <= 90) {
if (Key.isDown(_local1)) {
return(true);
}
_local1++;
}
_local1 = 30;
while (_local1 <= 39) {
if (Key.isDown(_local1)) {
return(true);
}
_local1++;
}
if (!bConsiderNumpad) {
_local1 = 96;
while (_local1 <= 105) {
if (Key.isDown(_local1)) {
return(true);
}
_local1++;
}
}
if (Key.isDown(37)) {
return(true);
}
if (Key.isDown(39)) {
return(true);
}
if (Key.isDown(36)) {
return(true);
}
if (Key.isDown(35)) {
return(true);
}
if (Key.isDown(45)) {
return(true);
}
if (Key.isDown(46)) {
return(true);
}
if (Key.isDown(8)) {
return(true);
}
if (Key.isDown(13)) {
return(true);
}
if (Key.isDown(38)) {
return(true);
}
if (Key.isDown(40)) {
return(true);
}
if (Key.isDown(33)) {
return(true);
}
if (Key.isDown(34)) {
return(true);
}
if (Key.isDown(9)) {
return(true);
}
if (Key.isDown(27)) {
return(true);
}
return(undefined);
}
function DoCheckAllKeys() {
var _local1 = this;
if (_local1.arr_Sprite.length < 1) {
} else {
var _local3 = getTimer();
if ((_local3 - _local1.nLastSubmitTime) < 500) {
} else {
var bOk = false;
var _local2;
_local2 = 0;
for ( ; _local2 < _local1.arr_Sprite.length ; _local2++) {
if ((((_local1.arr_Sprite[_local2].m_nSubmitKeyCode > 0) || (_local1.arr_Sprite[_local2].m_bSubmitShift)) || (_local1.arr_Sprite[_local2].m_bSubmitAlt)) || (_local1.arr_Sprite[_local2].m_bSubmitControl)) {
if ((_local1.arr_Sprite[_local2].m_nSubmitKeyCode != 9) && (!_local1.arr_Sprite[_local2].m_bSubmitAlt)) {
if (typeof(_local1.arr_Sprite[_local2].strInputFocus) == "string") {
if (Selection.getFocus() != _local1.arr_Sprite[_local2].strInputFocus) {
continue;
}
}
} else if (_local1.CheckSpriteKey(_local1.arr_Sprite[_local2].m_nSubmitKeyCode, _local1.arr_Sprite[_local2].m_bSubmitShift, _local1.arr_Sprite[_local2].m_bSubmitControl, _local1.arr_Sprite[_local2].m_bSubmitAlt, _local1.arr_Sprite[_local2].m_bConsiderNumpad)) {
_local1.arr_Sprite[_local2].Submit(true);
_local1.nLastSubmitTime = _local3;
bOk = true;
break;
}
}
}
if (bOk == false) {
_local2 = 0;
while (_local2 < _local1.arr_Sprite.length) {
if ((_local1.arr_Sprite[_local2].m_nSubmitKeyCode > 0) && (_local1.arr_Sprite[_local2].m_bFailOnKey)) {
if (_local1.AnySubmitKeyPressed(_local1.arr_Sprite[_local2].m_bConsiderNumpad)) {
_local1.arr_Sprite[_local2].Submit(false);
_local1.nLastSubmitTime = _local3;
}
return;
}
_local2++;
}
}
}
}
}
var arr_Sprite = new Array();
var nLastSubmitTime = 0;
}
Symbol 8 MovieClip [__Packages.captivate.monalisa.rdSoundHandler] Frame 0
class captivate.monalisa.rdSoundHandler
{
var SoundObjArr, NameArr;
function rdSoundHandler (rdMovieObj) {
var _local1 = this;
_local1.rdMovie_obj = rdMovieObj;
_local1.SoundObjArr = new Array();
_local1.NameArr = new Array();
_local1.StartArr = new Array();
_local1.FadeInArr = new Array();
_local1.FadeOutArr = new Array();
_local1.StopArr = new Array();
_local1.LoopArr = new Array();
_local1.LowerArr = new Array();
_local1.BackgroundArr = new Array();
_local1.ExternalSWFAudio = new Array();
_local1.ExternalSWF = new Array();
_local1.ExternalSWFAudioIndex = new Array();
_local1.nNumberCurrentlyPlaying = 0;
_local1.bSoundsStopped = false;
_local1.bSoundPaused = false;
_local1.m_newMovieDepth = 24000;
_local1.itmSoundObjArr = new Array();
_local1.itmNameArr = new Array();
_local1.itmStartArr = new Array();
_local1.itmFadeInArr = new Array();
_local1.itmFadeOutArr = new Array();
_local1.itmStopArr = new Array();
_local1.itmLoopArr = new Array();
_local1.itmLowerArr = new Array();
_local1.itmFrameCounterArr = new Array();
_local1.itmExternalSWFAudio = new Array();
_local1.itmExternalSWF = new Array();
_local1.itmExternalSWFAudioIndex = new Array();
_local1.itmAudioIdx = new Object();
_local1.BackgroundAudioAdjust = 0;
}
function ClearPoolSound() {
var _local1 = this;
var soundNum = _local1.NameArr.length;
var poolaudioindex = -1;
var _local3 = 0;
while (_local3 < soundNum) {
if (_local1.ExternalSWFAudio[_local3] == true) {
poolaudioindex = _local3;
break;
}
_local3++;
}
if (poolaudioindex > -1) {
var soundIndex = poolaudioindex;
while (soundIndex < soundNum) {
_local1.NameArr.pop();
_local1.StartArr.pop();
_local1.StopArr.pop();
_local1.FadeInArr.pop();
_local1.FadeOutArr.pop();
_local1.LoopArr.pop();
_local1.LowerArr.pop();
_local1.BackgroundArr.pop();
_local1.ExternalSWFAudio.pop();
_local1.ExternalSWF.pop();
_local1.ExternalSWFAudioIndex.pop();
soundIndex++;
}
}
if (_local1.BackgroundAudioAdjust > 0) {
var _local2 = 0;
while (_local2 < _local1.NameArr.length) {
if (_local1.BackgroundArr[_local2] == 1) {
_local1.StopArr[_local2] = _local1.StopArr[_local2] - _local1.BackgroundAudioAdjust;
_local1.FadeOutArr[_local2] = _local1.FadeOutArr[_local2] - _local1.BackgroundAudioAdjust;
}
_local2++;
}
}
_local1.BackgroundAudioAdjust = 0;
}
function DoAddSound(Name, StartFrame, StopFrame, FadeIn, FadeOut, Loop, Lower, IsBkGround, IsExternalSWFAudio, ExternalSWF_mc, ExtnlSWFAudioIdx) {
var _local2 = this;
var _local1 = _local2.NameArr.length;
_local2.NameArr[_local1] = Name;
_local2.StartArr[_local1] = StartFrame;
_local2.StopArr[_local1] = StopFrame;
_local2.FadeInArr[_local1] = FadeIn;
_local2.FadeOutArr[_local1] = FadeOut;
_local2.LoopArr[_local1] = Loop;
_local2.LowerArr[_local1] = Lower;
_local2.BackgroundArr[_local1] = IsBkGround;
_local2.ExternalSWFAudio[_local1] = IsExternalSWFAudio;
_local2.ExternalSWF[_local1] = ExternalSWF_mc;
_local2.ExternalSWFAudioIndex[_local1] = ExtnlSWFAudioIdx;
}
function DoDeleteSound(nIndex) {
var _local1 = this;
var _local2 = nIndex;
if (typeof(_local1.SoundObjArr[_local2]) == "object") {
if (_local1.ExternalSWFAudio[_local2]) {
_local1.ExternalSWF[_local2].movie.m_soundHandler.DoDeleteSound(_local1.ExternalSWFAudioIndex[_local2]);
} else {
_local1.SoundObjArr[_local2].stop(_local1.SoundObjArr[_local2].strName);
_local1.SoundObjArr[_local2]._mc.removeMovieClip();
}
delete _local1.SoundObjArr[_local2];
_local1.nNumberCurrentlyPlaying--;
}
}
function DoDeleteAllSounds() {
var _local2 = this;
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.SoundObjArr.length) {
_local2.DoDeleteSound(_local1);
_local1++;
}
_local2.DoDeleteAllItemSounds();
_local2.bSoundsStopped = true;
_local2.m_newMovieDepth = 24000;
}
function SyncSounds() {
var _local2 = this;
if (_local2.bSoundsStopped || (_local2.bSoundPaused)) {
} else {
var _local3 = _local2.rdMovie_obj.m_currFrame;
var _local1 = 0;
var bNeedsLower = false;
_local1 = 0;
while (_local1 < _local2.NameArr.length) {
if ((_local2.BackgroundArr[_local1] != 1) && ((_local3 >= _local2.StartArr[_local1]) && (_local3 < _local2.StopArr[_local1]))) {
bNeedsLower = true;
break;
}
_local1++;
}
var bMovieOver = false;
if (2 == _local2.rdMovie_obj.m_state) {
bMovieOver = true;
}
_local1 = 0;
while (_local1 < _local2.NameArr.length) {
var this_sound = _local2.SoundObjArr[_local1];
var bToPlay = ((!bMovieOver) || (1 == _local2.BackgroundArr[_local1]));
if (((_local3 >= _local2.StartArr[_local1]) && (_local3 < _local2.StopArr[_local1])) && (bToPlay)) {
if (typeof(this_sound) != "object") {
var nOffsetMS = ((_local3 - _local2.StartArr[_local1]) / _local2.rdMovie_obj.m_fps);
this_sound = _local2.DoStartSound(_local1, nOffsetMS);
}
var nVolume = 100;
if (_local2.StartArr[_local1] < _local2.FadeInArr[_local1]) {
if ((_local3 >= _local2.StartArr[_local1]) && (_local3 <= _local2.FadeInArr[_local1])) {
nSpan = _local2.FadeInArr[_local1] - _local2.StartArr[_local1];
nPosInSpan = _local3 - _local2.StartArr[_local1];
nVolume = (nPosInSpan * 100) / nSpan;
}
}
if (_local2.StopArr[_local1] > _local2.FadeOutArr[_local1]) {
if ((_local3 >= _local2.FadeOutArr[_local1]) && (_local3 < _local2.StopArr[_local1])) {
var nSpan = (_local2.StopArr[_local1] - _local2.FadeOutArr[_local1]);
var nPosInSpan = (_local3 - _local2.FadeOutArr[_local1]);
nVolume = 100 - ((nPosInSpan * 100) / nSpan);
}
}
if ((_local2.LowerArr[_local1] == 1) && (nVolume > 25)) {
if (bNeedsLower) {
nVolume = 25;
}
}
this_sound.setVolume(((_local2.rdMovie_obj.m_movie_mc.rdcmndMute == 1) ? 0 : (nVolume)));
if (_local2.LoopArr[_local1] > 1) {
if (this_sound.position >= this_sound.duration) {
this_sound.stop();
this_sound.start();
}
}
} else {
_local2.DoDeleteSound(_local1);
}
_local1++;
}
_local2.SyncItemSounds();
}
}
function ResetSounds(playBKSound) {
var _local1 = this;
if (playBKSound) {
_local1.DeleteNonBackgroundSound();
} else {
_local1.DoDeleteAllSounds();
}
_local1.bSoundsStopped = false;
_local1.bSoundPaused = false;
}
function DoStartSound(nIndex, nOffset) {
var _local1 = this;
var _local3 = nIndex;
var _local2;
if (typeof(_local1.SoundObjArr[_local3]) == "object") {
_local2 = _local1.SoundObjArr[_local3];
} else {
if (_local1.ExternalSWFAudio[_local3]) {
_local2 = _local1.ExternalSWF[_local3].movie.m_soundHandler.DoStartSound(_local1.ExternalSWFAudioIndex[_local3], nOffset);
} else {
var strMcName = (("sound" + _local3) + "_mc");
var new_mc = _local1.rdMovie_obj.m_movie_mc.createEmptyMovieClip(strMcName, _local1.m_newMovieDepth);
_local1.m_newMovieDepth++;
_local2 = new Sound(new_mc);
_local2._mc = new_mc;
_local2.strName = _local1.NameArr[_local3];
_local2.attachSound(_local2.strName);
}
_local1.SoundObjArr[_local3] = _local2;
}
if (_local1.LoopArr[_local3] > 1) {
nOffset = ((nOffset * 1000) % _local2.duration) / 1000;
}
if (_local1.BackgroundArr[_local3] == 1) {
nOffset = 0;
}
_local2.start(nOffset, 1);
_local1.nNumberCurrentlyPlaying++;
return(_local2);
}
function PauseOneSound(nIndex) {
var _local1 = SoundObjArr[nIndex];
if (typeof(_local1) == "object") {
_local1.stop(_local1.strName);
}
}
function PauseAllSounds() {
var _local3 = this;
var _local2 = 0;
_local2 = 0;
while (_local2 < _local3.SoundObjArr.length) {
var _local1 = _local3.SoundObjArr[_local2];
if (typeof(_local1) == "object") {
_local1.stop(_local1.strName);
}
_local2++;
}
_local3.bSoundPaused = true;
}
function ResumeAllSounds() {
var _local3 = this;
if (_local3.bSoundPaused) {
_local3.bSoundPaused = false;
var _local2 = 0;
_local2 = 0;
while (_local2 < _local3.SoundObjArr.length) {
var _local1 = _local3.SoundObjArr[_local2];
if (typeof(_local1) == "object") {
_local1.start(_local1.position / 1000, 1);
}
_local2++;
}
}
_local3.bSoundsStopped = false;
}
function DeleteNonBackgroundSound() {
var _local2 = this;
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.SoundObjArr.length) {
var _local3 = _local2.SoundObjArr[_local1];
if (typeof(_local3) == "object") {
if (_local2.BackgroundArr[_local1] != 1) {
_local2.DoDeleteSound(_local1);
}
}
_local1++;
}
_local2.DoDeleteAllItemSounds();
}
function AddItemSound(Name, startFrame, stopFrame, FadeIn, FadeOut, Loop, Lower, IsExternalSWFAudio, ExternalSWF_mc, ExtnlSWFAudioIdx) {
var _local1 = this;
var _local3 = ExternalSWF_mc;
var _local2 = _local1.itmNameArr.length;
_local1.itmNameArr[_local2] = Name;
_local1.itmStartArr[_local2] = startFrame;
_local1.itmStopArr[_local2] = stopFrame;
_local1.itmFadeInArr[_local2] = FadeIn;
_local1.itmFadeOutArr[_local2] = FadeOut;
_local1.itmLoopArr[_local2] = Loop;
_local1.itmLowerArr[_local2] = Lower;
_local1.itmFrameCounterArr[_local2] = -1;
_local1.itmExternalSWFAudio[_local2] = IsExternalSWFAudio;
_local1.itmExternalSWF[_local2] = _local3;
_local1.itmExternalSWFAudioIndex[_local2] = ExtnlSWFAudioIdx;
if ((_local1.itmAudioIdx[_local3._name] == undefined) || (_local1.itmAudioIdx[_local3._name] == null)) {
_local1.itmAudioIdx[_local3._name] = new Array();
}
_local1.itmAudioIdx[_local3._name][ExtnlSWFAudioIdx] = _local2;
}
function StartItemSound(nIndex, nOffset, bExternalSWFAudio, ExternalSWF_mc) {
var _local1 = this;
var _local3 = nIndex;
if (_local1.rdMovie_obj.m_state == captivate.monalisa.rdMovie.stateDone) {
return(null);
}
var nExternalSWFIndex = -1;
if (bExternalSWFAudio == true) {
nExternalSWFIndex = _local3;
_local3 = _local1.itmAudioIdx[ExternalSWF_mc._name][_local3];
}
var _local2;
if (typeof(_local1.itmSoundObjArr[_local3]) == "object") {
_local2 = _local1.itmSoundObjArr[_local3];
if (_local1.itmFrameCounterArr[_local3] > -1) {
_local2.stop(_local2.strName);
}
} else {
if (bExternalSWFAudio == true) {
_local2 = ExternalSWF_mc.movie.m_soundHandler.StartItemSound(nExternalSWFIndex, nOffset);
} else if (_local1.itmExternalSWFAudio[_local3]) {
_local2 = _local1.itmExternalSWF[_local3].movie.m_soundHandler.StartItemSound(_local1.itmExternalSWFAudioIndex[_local3], nOffset);
} else {
var strMcName = (("item_sound" + _local3) + "_mc");
var new_mc = _local1.rdMovie_obj.m_movie_mc.createEmptyMovieClip(strMcName, _local1.m_newMovieDepth);
_local1.m_newMovieDepth++;
_local2 = new Sound(new_mc);
_local2._mc = new_mc;
_local2.strName = _local1.itmNameArr[_local3];
_local2.attachSound(_local2.strName);
}
_local1.itmSoundObjArr[_local3] = _local2;
}
_local1.itmFrameCounterArr[_local3] = nOffset;
_local2.start(nOffset, 1);
if (_local1.itmStartArr[_local3] < _local1.itmFadeInArr[_local3]) {
_local2.setVolume(((_local1.rdMovie_obj.m_movie_mc.rdcmndMute == 1) ? 0 : 25));
}
return(_local2);
}
function SyncItemSounds() {
var _local2 = this;
if (_local2.bSoundsStopped || (_local2.bSoundPaused)) {
} else {
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.itmNameArr.length) {
if (_local2.itmFrameCounterArr[_local1] > -1) {
_local2.itmFrameCounterArr[_local1]++;
var _local3 = _local2.itmFrameCounterArr[_local1];
var this_item_sound = _local2.itmSoundObjArr[_local1];
if (typeof(this_item_sound) != "object") {
_local2.itmFrameCounterArr[_local1] = -1;
} else if ((_local3 >= _local2.itmStartArr[_local1]) && (_local3 < _local2.itmStopArr[_local1])) {
var nVolume = 100;
if (_local2.itmStartArr[_local1] < _local2.itmFadeInArr[_local1]) {
if ((_local3 >= _local2.itmStartArr[_local1]) && (_local3 <= _local2.itmFadeInArr[_local1])) {
nSpan = _local2.itmFadeInArr[_local1] - _local2.itmStartArr[_local1];
nPosInSpan = _local3 - _local2.itmStartArr[_local1];
nVolume = (nPosInSpan * 100) / nSpan;
}
}
if (_local2.itmStopArr[_local1] > _local2.itmFadeOutArr[_local1]) {
if ((_local3 >= _local2.itmFadeOutArr[_local1]) && (_local3 < _local2.itmStopArr[_local1])) {
var nSpan = (_local2.itmStopArr[_local1] - _local2.itmFadeOutArr[_local1]);
var nPosInSpan = (_local3 - _local2.itmFadeOutArr[_local1]);
nVolume = 100 - ((nPosInSpan * 100) / nSpan);
}
}
this_item_sound.setVolume(((_local2.rdMovie_obj.m_movie_mc.rdcmndMute == 1) ? 0 : (nVolume)));
} else {
_local2.DoDeleteItemSound(_local1);
}
}
_local1++;
}
}
}
function DoDeleteItemSound(nIndex, bExternalSWFAudio, ExternalSWF_mc) {
var _local1 = nIndex;
var _local2 = this;
var _local3 = -1;
if (bExternalSWFAudio == true) {
_local3 = _local1;
_local1 = _local2.itmAudioIdx[ExternalSWF_mc._name][_local1];
}
_local2.itmFrameCounterArr[_local1] = -1;
if (typeof(_local2.itmSoundObjArr[_local1]) == "object") {
if (bExternalSWFAudio == true) {
ExternalSWF_mc.movie.m_soundHandler.DoDeleteItemSound(_local3);
} else if (_local2.itmExternalSWFAudio[_local1]) {
_local2.itmExternalSWF[_local1].movie.m_soundHandler.DoDeleteItemSound(_local2.itmExternalSWFAudioIndex[_local1]);
} else {
_local2.itmSoundObjArr[_local1].stop(_local2.itmSoundObjArr[_local1].strName);
_local2.itmSoundObjArr[_local1]._mc.removeMovieClip();
}
delete _local2.itmSoundObjArr[_local1];
}
}
function DoDeleteAllItemSounds() {
var _local2 = this;
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.itmSoundObjArr.length) {
_local2.DoDeleteItemSound(_local1);
_local1++;
}
}
function ResumeAllItemSound() {
var _local3 = this;
var _local1 = 0;
_local1 = 0;
while (_local1 < _local3.itmSoundObjArr.length) {
var _local2 = _local3.itmSoundObjArr[_local1];
if (typeof(_local2) == "object") {
if (_local3.itmLoopArr[_local1] > 1) {
_local2.start(0, _local3.itmLoopArr[_local1]);
} else {
_local2.start(_local2.position / 1000, 1);
}
}
_local1++;
}
}
function PauseAllItemSound() {
var _local3 = this;
var _local2 = 0;
_local2 = 0;
while (_local2 < _local3.itmSoundObjArr.length) {
var _local1 = _local3.itmSoundObjArr[_local2];
if (typeof(_local1) == "object") {
_local1.stop(_local1.strName);
}
_local2++;
}
}
function getNumSounds() {
return(NameArr.length);
}
}
Symbol 9 MovieClip [__Packages.captivate.monalisa.rdPacemaker] Frame 0
class captivate.monalisa.rdPacemaker extends Object
{
function rdPacemaker (movie) {
super();
m_movie = movie;
}
function stop() {
m_started = false;
}
function start(fps, currentFrame) {
var _local1 = this;
_local1.m_started = true;
_local1.m_fps = fps;
_local1.m_startTime = getTimer();
_local1.m_startFrame = currentFrame;
}
function pace(currentFrame) {
var _local2 = this;
if (_local2.m_started) {
var now = getTimer();
var _local3 = now - _local2.m_startTime;
if (_local3 > 0) {
var correctFrame = ((_local3 * _local2.m_fps) / 1000);
var _local1 = (currentFrame - correctFrame) - _local2.m_startFrame;
if (_local1 < -1) {
_local2.m_skipCount++;
return(Math.floor(-_local1));
}
if (_local1 > 1) {
return(-1);
}
}
} else {
var dummy = 1;
}
return(0);
}
var m_isInitialized = false;
var m_started = false;
var m_skipCount = 0;
var m_movie = null;
}
Symbol 10 MovieClip [__Packages.captivate.monalisa.rdItem] Frame 0
class captivate.monalisa.rdItem extends captivate.monalisa.rdBase
{
var _parent;
function rdItem () {
super();
}
function setSlide(slide) {
m_slide = slide;
}
function setMovie(movie) {
}
function onLoad() {
var _local1 = this;
_local1._parent.itemLoaded(_local1);
_local1._alpha = _local1.m_alpha;
var _local2 = true;
if (_local1.isStatic) {
if ((_local1._parent.m_isQuestionPoolSlide == true) && (_local1.m_staticProjectSharedItem == true)) {
if (_local1._parent.m_cpSlideHolder.m_index > _local1.parentSlideIndex) {
_local2 = false;
}
} else if (_local1._parent.m_index > _local1.parentSlideIndex) {
_local2 = false;
}
}
if ((_local1.inEnd == 1) && (_local1.m_mustBeReady)) {
_local2 = false;
}
if (!_local2) {
if (_local1.IsParentSlidelet() || (_local1.IsSlidelet())) {
_local2 = true;
}
}
if (_local2) {
_local1._visible = false;
} else {
_local1.SetVisible(true);
}
}
function itemLoaded(item) {
_parent.itemLoaded(item);
}
function IsParentSlidelet() {
return(_parent.IsSlidelet());
}
function getParentCurrFrame() {
var _local1 = this;
if (_local1.IsParentSlidelet()) {
return(_local1._parent.GetCurrentFrame());
}
return(_local1._parent._currentframe);
}
function SetVisible(setVisible) {
var _local1 = this;
var _local2 = setVisible;
_local1._visible = _local2;
if (_local2 && (_local1.m_soundIdx > -1)) {
if (_local1.m_slide.m_isQuestionPoolSlide == true) {
_local1.m_slide.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0, _local1.m_slide.m_isQuestionPoolSlide, _local1.m_slide._parent);
} else {
_local1.m_slide.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0);
}
} else if (((!_local2) && (_local1.IsParentSlidelet())) && (_local1.m_soundIdx > -1)) {
if (_local1.m_slide.m_isQuestionPoolSlide == true) {
_local1.m_slide.m_movie.m_soundHandler.DoDeleteItemSound(_local1.m_soundIdx, _local1.m_slide.m_isQuestionPoolSlide, _local1.m_slide._parent);
} else {
_local1.m_slide.m_movie.m_soundHandler.DoDeleteItemSound(_local1.m_soundIdx);
}
}
}
function onEnterFrame() {
var _local1 = this;
if (!_local1._parent._visible) {
if (_local1.m_doOnceInvisible && (_local1.m_mustBeReady)) {
_local1.m_doOnceInvisible = false;
// unexpected jump
}
if (((((!_local1.m_mustBeReady) && (!_local1.isStatic)) && (!_local1.m_isGlobal)) && (_local1.getParentCurrFrame() < _local1.inBegin)) || (_local1.getParentCurrFrame() >= _local1.outEnd)) {
_local1.m_isIn = false;
if (_local1._visible) {
_local1.SetVisible(false);
}
}
if ((_local1._parent.m_isQuestionPoolSlide == true) && (_local1.m_staticProjectSharedItem == true)) {
if (_local1._parent.m_cpSlideHolder.m_index > _local1.parentSlideIndex) {
if (!_local1._visible) {
_local1.SetVisible(true);
}
}
}
} else {
if (!_local1.initialized) {
_local1.Initialize();
_local1.initialized = true;
}
if (_local1.isStatic) {
var _local2 = true;
if ((_local1._parent.m_isQuestionPoolSlide == true) && (_local1.m_staticProjectSharedItem == true)) {
if ((_local1._parent.m_cpSlideHolder == undefined) || (_local1._parent.m_cpSlideHolder == null)) {
_local1.SetVisible(false);
return;
}
if (_local1._parent.m_cpSlideHolder.m_index == _local1.parentSlideIndex) {
if (_local1.getParentCurrFrame() < _local1.inEnd) {
_local2 = false;
}
} else if (_local1._parent.m_cpSlideHolder.m_index < _local1.parentSlideIndex) {
if (_local1._visible) {
_local1.SetVisible(false);
}
return;
}
} else if (_local1._parent.m_index == _local1.parentSlideIndex) {
if (_local1.getParentCurrFrame() < _local1.inEnd) {
_local2 = false;
}
}
if (_local2) {
if (!_local1._visible) {
_local1.SetVisible(true);
}
if (!_local1.m_isIn) {
_local1.m_isIn = true;
_local1._alpha = _local1.m_alpha;
}
} else {
var pf = _local1.getParentCurrFrame();
if ((_local1.getParentCurrFrame() < _local1.inBegin) || (_local1.getParentCurrFrame() >= _local1.outEnd)) {
_local1.m_isIn = false;
if (_local1._visible) {
_local1.SetVisible(false);
}
} else if (_local1._parent._visible) {
if (!_local1._visible) {
_local1.SetVisible(true);
}
if ((_local1.getParentCurrFrame() >= _local1.inBegin) && (_local1.getParentCurrFrame() < _local1.inEnd)) {
if (_local1.inEffect) {
_local1.inEffect(_local1, _local1.getParentCurrFrame() - _local1.inBegin, _local1.inEnd - _local1.inBegin);
}
_local1.m_isIn = false;
} else if ((_local1.getParentCurrFrame() >= _local1.outBegin) && (_local1.getParentCurrFrame() < _local1.outEnd)) {
if (_local1.outEffect) {
_local1.outEffect(_local1, _local1.getParentCurrFrame() - _local1.outBegin, _local1.outEnd - _local1.outBegin);
}
_local1.m_isIn = false;
} else if (!_local1.m_isIn) {
_local1.m_isIn = true;
_local1._alpha = _local1.m_alpha;
}
}
}
} else {
var pf = _local1.getParentCurrFrame();
if ((_local1.getParentCurrFrame() < _local1.inBegin) || (_local1.getParentCurrFrame() >= _local1.outEnd)) {
_local1.m_isIn = false;
if (_local1._visible) {
_local1.SetVisible(false);
}
} else if (_local1._parent._visible) {
if (!_local1._visible) {
_local1.SetVisible(true);
}
if ((_local1.getParentCurrFrame() >= _local1.inBegin) && (_local1.getParentCurrFrame() < _local1.inEnd)) {
if (_local1.inEffect) {
_local1.inEffect(_local1, _local1.getParentCurrFrame() - _local1.inBegin, _local1.inEnd - _local1.inBegin);
}
_local1.m_isIn = false;
} else if ((_local1.getParentCurrFrame() >= _local1.outBegin) && (_local1.getParentCurrFrame() < _local1.outEnd)) {
if (_local1.outEffect) {
_local1.outEffect(_local1, _local1.getParentCurrFrame() - _local1.outBegin, _local1.outEnd - _local1.outBegin);
}
_local1.m_isIn = false;
} else if (!_local1.m_isIn) {
_local1.m_isIn = true;
_local1._alpha = _local1.m_alpha;
}
}
}
}
}
function IsSlidelet() {
return(false);
}
function IsParentActive() {
var _local1 = this;
if (_local1.m_isGlobal) {
return(true);
}
if (_local1.IsParentSlidelet()) {
return(_local1._parent._visible);
}
return(_local1._parent.isSlideActive());
}
var inEffect = null;
var outEffect = null;
var initialized = false;
var m_slide = null;
var m_mustBeReady = true;
var m_setVisibleCalledFromSlidelet = false;
var m_staticProjectSharedItem = false;
}
Symbol 11 MovieClip [__Packages.captivate.monalisa.rdQuizPoolData] Frame 0
class captivate.monalisa.rdQuizPoolData
{
var _name;
function rdQuizPoolData (poolMovie) {
var _local1 = this;
_local1.__set__poolname("");
_local1.numQuestions = 0;
_local1.nextGradedQues = 0;
_local1.nextSurveyQues = 0;
_local1.pool_mc = poolMovie;
}
function set poolname(pname) {
_name = pname;
//return(poolname);
}
function get poolname() {
return(_name);
}
var className = "rdQuizPoolData";
}
Symbol 12 MovieClip [__Packages.captivate.monalisa.rdCCMovieClip] Frame 0
class captivate.monalisa.rdCCMovieClip extends MovieClip
{
function rdCCMovieClip () {
var _local1 = this;
super();
_local1.vPaceMaker = new captivate.monalisa.rdCCPacemaker(null);
_local1.vPausedFrame = 1;
_local1.vState = 0;
}
function onEnterFrame() {
var _local1 = this;
var _local2 = _local1.vPaceMaker.pace(_local1._currentframe);
if (_local2 > 0) {
_local1.gotoAndPlay(_local1._currentframe + _local2);
}
_local1._parent.SyncCCItems();
}
function startCCMovie() {
var _local1 = this;
_local1.vPausedFrame = 1;
_local1.vPaceMaker.start(_local1.fps, 1);
_local1.gotoAndPlay(1);
_local1.vState = 1;
}
function stopCCMovie() {
var _local1 = this;
_local1.vPaceMaker.stop();
_local1.stop();
_local1._parent.SyncCCItems();
_local1.vState = 0;
}
function pauseCCMovie() {
var _local1 = this;
if (_local1.vState == 1) {
_local1.vPaceMaker.stop();
_local1.vPausedFrame = _local1._currentframe;
_local1.stop();
_local1.vState = 2;
}
}
function resumeCCMovie() {
var _local1 = this;
if (_local1.vState == 2) {
_local1.vPaceMaker.start(_local1.fps, _local1.vPausedFrame);
_local1.gotoAndPlay(_local1.vPausedFrame);
_local1.vState = 1;
}
}
function seekCCMovie(Play) {
var _local1 = this;
if (Play) {
_local1.vPaceMaker.start(_local1.fps, _local1._parent._currentframe);
_local1.gotoAndPlay(_local1._parent._currentframe);
_local1.vState = 1;
} else {
_local1.vPaceMaker.stop();
_local1.vPausedFrame = _local1._parent._currentframe;
_local1.gotoAndStop(_local1._parent._currentframe);
_local1.vState = 2;
}
}
}
Symbol 13 MovieClip [__Packages.captivate.monalisa.rdCCPacemaker] Frame 0
class captivate.monalisa.rdCCPacemaker extends Object
{
function rdCCPacemaker () {
super();
}
function stop() {
m_started = false;
}
function start(fps, currentFrame) {
var _local1 = this;
_local1.m_started = true;
_local1.m_fps = fps;
_local1.m_startTime = getTimer();
_local1.m_startFrame = currentFrame;
}
function pace(currentFrame) {
var _local2 = this;
if (_local2.m_started) {
var now = getTimer();
var _local3 = now - _local2.m_startTime;
if (_local3 > 0) {
var correctFrame = ((_local3 * _local2.m_fps) / 1000);
var _local1 = (currentFrame - correctFrame) - _local2.m_startFrame;
if (_local1 < -1) {
_local2.m_skipCount++;
return(Math.floor(-_local1));
}
if (_local1 > 1) {
return(-1);
}
}
} else {
var dummy = 1;
}
return(0);
}
var m_isInitialized = false;
var m_started = false;
var m_skipCount = 0;
var m_movie = null;
}
Symbol 14 MovieClip [__Packages.captivate.monalisa.rdClickableArea] Frame 0
class captivate.monalisa.rdClickableArea extends captivate.monalisa.rdItem
{
function rdClickableArea () {
var _local1 = this;
super();
_local1.m_xPtArr = new Array();
_local1.m_yPtArr = new Array();
_local1._x = 0;
_local1._y = 0;
}
function onLoad() {
var _local1 = this;
var nXPoints = _local1.m_xPtArr.length;
var nYPoints = _local1.m_yPtArr.length;
if (_local1.m_bNeedsPause) {
_local1._parent.AddNoSkipFrame(_local1.m_pauseOnFrame);
}
super.onLoad();
if (nXPoints != nYPoints) {
} else if (nXPoints < 3) {
} else {
if (_local1.m_frameWidth > 0) {
_local1.lineStyle(_local1.m_frameWidth, _local1.m_frameColor, 100);
}
_local1.beginFill(_local1.m_fillColor, _local1.m_transparency);
var startX = _local1.m_xPtArr[0];
var startY = _local1.m_yPtArr[0];
_local1.moveTo(startX, startY);
var _local2 = 1;
while (_local2 < nXPoints) {
var tempX = _local1.m_xPtArr[_local2];
var _local3 = _local1.m_yPtArr[_local2];
_local1.lineTo(tempX, _local3);
_local2++;
}
_local1.lineTo(startX, startY);
_local1.endFill();
_local1.CreateBackSprite();
}
}
function SetXArrValueAtIndex(i, iVal) {
m_xPtArr[i] = iVal;
}
function SetYArrValueAtIndex(i, iVal) {
m_yPtArr[i] = iVal;
}
function DoPauseSlide() {
var _local1 = this;
if ((_local1.m_paused && (_local1.m_bWasSlidePausedByMe)) && ((_local1.m_pauseOnFrame == _local1._parent._currentframe) || (_local1.m_isSlideletPlaying))) {
} else {
_local1.m_bWasSlidePausedByMe = !_local1.m_slide.m_paused;
}
_local1.m_slide.pauseSlide();
}
function onEnterFrame() {
var _local1 = this;
if ((null != _local1.m_back_mc) && (_local1.m_back_mc._visible != _local1.m_isSlideletPlaying)) {
_local1.m_back_mc._visible = _local1.m_isSlideletPlaying;
}
if (_local1._visible) {
if (_local1._parent._currentframe < _local1.m_pauseOnFrame) {
_local1.m_paused = false;
_local1.m_pausedOnceWithoutClick = false;
}
if ((((_local1.m_bNeedsPause && (!_local1.m_pausedOnceWithoutClick)) && (_local1.m_pauseOnFrame == _local1._parent._currentframe)) && (!_local1.m_paused)) && (_local1._parent._visible)) {
_local1.m_pausedOnceWithoutClick = true;
_local1.DoPauseSlide();
_local1.m_paused = true;
}
}
if ((_local1.m_clickedOnFrame > 0) && (_local1.m_clickedOnFrame > _local1._parent._currentframe)) {
_local1.m_clickedOnFrame = -1;
}
if (_local1.m_canRegisterClick) {
if (((_local1._parent._currentframe < _local1.inBegin) || (_local1._parent._currentframe > _local1.outEnd)) || (!_local1._parent._visible)) {
_local1.m_canRegisterClick = false;
_local1.UnRegister();
}
} else if (((_local1._parent._currentframe >= _local1.inBegin) && (_local1._parent._currentframe <= _local1.outEnd)) && (_local1._parent._visible)) {
_local1.m_canRegisterClick = true;
_local1.Register();
}
super.onEnterFrame();
}
function StartPlaying() {
var _local1 = this;
_local1.m_paused = true;
_local1.DoPauseSlide();
if ((null != _local1.m_slidelet) && (!_local1.m_isSlideletPlaying)) {
_local1.m_isSlideletPlaying = true;
if (null != _local1.m_back_mc) {
_local1.m_back_mc._visible = true;
}
_local1.m_slide.SetCurrentClickableArea(_local1);
_local1.m_slidelet.StartPlaying(_local1);
}
}
function onPress() {
DoOnPress();
}
function onRollOver() {
var _local1 = this;
if ((null != _local1.m_slide) && (_local1.m_slide.WasCurrentClickableAreaClicked())) {
} else {
var _local2 = 100;
if (_local1.m_hoverMilliSeconds >= _local2) {
_local1.m_bIntervalStarted = true;
_local1.m_intervalID = setInterval(_local1, "StartPlayingOnHover", _local1.m_hoverMilliSeconds);
} else {
_local1.StartPlaying();
}
}
}
function onRollOut() {
var _local1 = this;
_local1.RemoveHoverInterval();
if ((null != _local1.m_slide) && (_local1.m_slide.WasCurrentClickableAreaClicked())) {
} else {
_local1.m_wasClicked = false;
var _local2 = _local1.m_isSlideletPlaying;
if (_local1.m_isSlideletPlaying) {
_local1.StopSlidelet();
} else {
_local1.m_paused = false;
if (_local1.m_pausedOnceWithoutClick && (_local1.m_pauseOnFrame != _local1._parent._currentframe)) {
_local1.m_pausedOnceWithoutClick = false;
}
}
_local1.m_slide.SetCurrentClickableArea(null);
if (_local1.m_continueAftersucceeded || (_local2)) {
if (_local1.m_bWasSlidePausedByMe) {
_local1.m_slide.resumeSlide();
}
}
}
}
function playOver(iSlidelet) {
var _local1 = this;
_local1.m_wasClicked = false;
_local1.m_paused = false;
_local1.m_isSlideletPlaying = false;
if (null != _local1.m_back_mc) {
_local1.m_back_mc._visible = false;
}
_local1.m_slide.SetCurrentClickableArea(null);
if (_local1.m_bWasSlidePausedByMe) {
_local1.m_slide.resumeSlide();
}
}
function StopSlidelet() {
var _local1 = this;
_local1.m_wasClicked = false;
_local1.m_paused = false;
_local1.m_isSlideletPlaying = false;
if (_local1.m_pausedOnceWithoutClick && (_local1.m_pauseOnFrame != _local1._parent._currentframe)) {
_local1.m_pausedOnceWithoutClick = false;
}
if (null != _local1.m_back_mc) {
_local1.m_back_mc._visible = false;
}
if (null != _local1.m_slidelet) {
_local1.m_slidelet.StopSlidelet();
}
}
function WasClickableAreaClicked() {
return(m_wasClicked);
}
function RemoveHoverInterval() {
var _local1 = this;
if (_local1.m_bIntervalStarted) {
_local1.m_bIntervalStarted = false;
clearInterval(_local1.m_intervalID);
}
}
function StartPlayingOnHover() {
var _local1 = this;
_local1.RemoveHoverInterval();
if ((null != _local1.m_slide) && (_local1.m_slide.WasCurrentClickableAreaClicked())) {
} else {
_local1.StartPlaying();
}
}
function SetVisible(setVisible) {
var _local1 = this;
if (!setVisible) {
_local1.m_paused = false;
_local1.m_pausedOnceWithoutClick = false;
_local1.m_isSlideletPlaying = false;
_local1.m_wasClicked = false;
if (null != _local1.m_back_mc) {
_local1.m_back_mc._visible = false;
}
if (_local1.m_bIntervalStarted) {
clearInterval(_local1.m_intervalID);
}
_local1.m_intervalID = -1;
_local1.m_bIntervalStarted = false;
}
super.SetVisible(setVisible);
}
function Register() {
var _local1 = this;
if (_local1.m_slide.m_movie.m_disableInteractions) {
} else if (!_local1.m_isRegistered) {
_local1.m_isRegistered = true;
if (((_local1.m_nSubmitKeyCode || (_local1.m_bSubmitShift)) || (_local1.m_bSubmitAlt)) || (_local1.m_bSubmitControl)) {
_local1.m_slide.m_movie.m_keyHandler.SpriteLoaded(_local1);
}
}
}
function UnRegister() {
var _local1 = this;
if (_local1.m_isRegistered) {
_local1.m_isRegistered = false;
if (((_local1.m_nSubmitKeyCode || (_local1.m_bSubmitShift)) || (_local1.m_bSubmitAlt)) || (_local1.m_bSubmitControl)) {
_local1.m_slide.m_movie.m_keyHandler.SpriteUnloaded(_local1);
}
}
}
function Submit(iValue) {
if (!iValue) {
return(undefined);
}
DoOnPress();
}
function DoOnPress() {
var _local1 = this;
_local1.m_clickedOnFrame = _local1._parent._currentframe;
if ((null != _local1.succeeded) && (typeof(_local1.succeeded) == "function")) {
if (_local1.m_canRegisterClick) {
if (!_local1.m_continueAftersucceeded) {
_local1.RemoveHoverInterval();
_local1.m_paused = false;
if (_local1.m_isSlideletPlaying) {
_local1.StopSlidelet();
}
_local1.m_slide.StopPlayingAnyOtherClickableArea(_local1);
_local1.m_slide.SetCurrentClickableArea(null);
}
_local1.succeeded(_local1._parent);
if ((_local1.m_ActionType >= 1) && (_local1.m_ActionType <= 3)) {
_local1.DoSleep(100);
}
if ((((_local1.m_continueAftersucceeded && (!_local1.m_isSlideletPlaying)) && (_local1.m_ActionType >= 0)) && (_local1.m_ActionType >= 4)) && (_local1.m_ActionType <= 7)) {
_local1.m_paused = false;
_local1.m_slide.resumeSlide();
}
}
} else if (!_local1.m_bActionContinue) {
_local1.m_wasClicked = true;
_local1.RemoveHoverInterval();
_local1.StartPlaying();
} else if (_local1.m_bActionContinue) {
if (((_local1.m_pauseOnFrame == _local1._parent._currentframe) && (_local1.m_paused)) && (!_local1.m_isSlideletPlaying)) {
_local1.m_paused = false;
if (_local1.m_bWasSlidePausedByMe) {
_local1.m_slide.resumeSlide();
}
}
}
}
function DoSleep(iSleepTime) {
var _local2 = iSleepTime;
var _local1 = getTimer();
do {
} while ((getTimer() - _local1) < _local2);
}
function CreateBackSprite() {
var _local2 = this;
if (!_local2.m_bShowRuntimeBorder) {
_local2.m_back_mc = null;
} else {
var nXPoints = _local2.m_xPtArr.length;
var nYPoints = _local2.m_yPtArr.length;
if ((nXPoints != nYPoints) || (nXPoints < 3)) {
} else {
_local2.m_back_mc.lineStyle(10, _local2.m_frameColor, 100);
var startX = _local2.m_xPtArr[0];
var startY = _local2.m_yPtArr[0];
_local2.m_back_mc.moveTo(startX, startY);
var _local1 = 1;
while (_local1 < nXPoints) {
var tempX = _local2.m_xPtArr[_local1];
var _local3 = _local2.m_yPtArr[_local1];
_local2.m_back_mc.lineTo(tempX, _local3);
_local1++;
}
_local2.m_back_mc.lineTo(startX, startY);
_local2.m_back_mc._visible = false;
}
}
}
var m_xPtArr = null;
var m_yPtArr = null;
var m_fillColor = 16777215;
var m_frameColor = 0;
var m_frameWidth = 1;
var m_transparency = 100;
var m_pauseOnFrame = 0;
var m_paused = false;
var m_slidelet = null;
var m_pausedOnceWithoutClick = false;
var m_isSlideletPlaying = false;
var m_wasClicked = false;
var m_hoverMilliSeconds = -1;
var m_intervalID = -1;
var m_bIntervalStarted = false;
var m_bNeedsPause = false;
var succeeded = null;
var m_continueAftersucceeded = true;
var m_canRegisterClick = false;
var m_bActionContinue = false;
var m_ActionType = -1;
var m_clickedOnFrame = -1;
var m_nSubmitKeyCode = 0;
var m_bSubmitShift = 0;
var m_bSubmitAlt = 0;
var m_bSubmitControl = 0;
var m_bFailOnKey = 0;
var m_bConsiderNumpad = 0;
var m_isRegistered = false;
var m_back_mc = null;
var m_bWasSlidePausedByMe = false;
var m_bShowRuntimeBorder = true;
}
Symbol 15 MovieClip [__Packages.captivate.monalisa.rdSlidelet] Frame 0
class captivate.monalisa.rdSlidelet extends captivate.monalisa.rdItem
{
function rdSlidelet () {
var _local1 = this;
super();
_local1.m_childItems = new Array();
_local1.m_paceMaker = new captivate.monalisa.rdPacemaker(null);
_local1.m_NoSkipFramesArray = new Array();
}
function InitSlidelet() {
var _local1 = this;
_local1.m_startFrame = 1;
_local1.m_endFrame = _local1.outEnd - _local1.inBegin;
_local1.m_inEffectStartFrame = _local1.m_startFrame;
_local1.m_inEffectEndFrame = _local1.inEnd - _local1.inBegin;
_local1.m_outEffectStartFrame = _local1.outBegin - _local1.inBegin;
_local1.m_outEffectEndFrame = _local1.m_endFrame;
var thisSlidelet = _local1;
var crossName = (_local1._name + "_cross_mc");
_local1.m_cross_mc = _local1.createEmptyMovieClip(crossName, _local1.getNextHighestDepth());
var crossWidth = 10;
var crossHeight = 10;
var _local3 = _local1.m_width - crossWidth;
var _local2 = 0;
_local1.m_cross_mc.lineStyle(1, 0, 100);
_local1.m_cross_mc.beginFill(16777215, 100);
_local1.m_cross_mc.moveTo(_local3, _local2);
_local1.m_cross_mc.lineTo(_local3 + crossWidth, _local2);
_local1.m_cross_mc.lineTo(_local3 + crossWidth, _local2 + crossHeight);
_local1.m_cross_mc.lineTo(_local3, _local2 + crossHeight);
_local1.m_cross_mc.lineTo(_local3, _local2);
_local1.m_cross_mc.endFill();
_local1.m_cross_mc.moveTo(_local3 + 2, _local2 + 2);
_local1.m_cross_mc.lineTo((_local3 + crossWidth) - 2, (_local2 + crossHeight) - 2);
_local1.m_cross_mc.moveTo((_local3 + crossWidth) - 2, _local2 + 2);
_local1.m_cross_mc.lineTo(_local3 + 2, (_local2 + crossHeight) - 2);
_local1.m_cross_mc.onPress = function () {
thisSlidelet.StopPlaying();
};
if (_local1.m_bShowShadow) {
_local1.CreateShadow();
}
}
function CreateShadow() {
var _local3 = this;
var shadowName = (_local3._name + "_shadow_mc");
_local3.m_shadow_mc = _local3.createEmptyMovieClip(shadowName, _local3.getNextHighestDepth());
var nLines = 20;
var startAlpha = 0;
var steps = ((100 - startAlpha) / (nLines / 2));
var _local2 = 1;
_local2 = 1;
var distance = 10;
var tempAlpha = startAlpha;
var topX = _local3.m_width;
var topY = (distance + 4);
var leftX = distance;
var bottomY = _local3.m_height;
var _local1 = 0;
while (_local1 < nLines) {
if (_local1 > (nLines / 2)) {
tempAlpha = 100 - ((_local1 - (nLines / 2)) * steps);
} else {
tempAlpha = _local1 * steps;
}
_local3.m_shadow_mc.lineStyle(_local2, 0, tempAlpha);
_local3.m_shadow_mc.moveTo(topX + (_local1 * _local2), topY);
_local3.m_shadow_mc.lineTo(topX + (_local1 * _local2), bottomY + (_local1 * _local2));
_local3.m_shadow_mc.lineTo(leftX, bottomY + (_local1 * _local2));
_local1++;
}
}
function StartPaceMaker() {
var _local1 = this;
if (null != _local1.m_slide) {
_local1.m_paceMaker.start(_local1.m_slide.m_movie.m_fps, _local1.m_currentFrame);
_local1.m_paceMakerStarted = true;
}
}
function StopPaceMaker() {
m_paceMaker.stop();
m_paceMakerStarted = false;
}
function onLoad() {
var _local1 = this;
super.onLoad();
_local1.InitSlidelet();
_local1.SetVisible(false);
_local1.gotoAndStop(1);
_local1.m_currentFrame = 1;
}
function StartPlaying(iClickableArea) {
var _local1 = this;
_local1.m_playing = true;
_local1.SetVisible(true);
_local1.m_clickableArea = iClickableArea;
_local1.gotoAndPlay(1);
_local1.StartPaceMaker();
}
function StopPlaying() {
var _local1 = this;
trace(_local1._name + " StopPlaying");
_local1.StopZoomItems();
_local1.m_playing = false;
_local1.SetVisible(false);
_local1.StopPaceMaker();
_local1.gotoAndStop(1);
_local1.m_currentFrame = 1;
if (null != _local1.m_clickableArea) {
_local1.m_clickableArea.playOver(_local1);
}
}
function StopSlidelet() {
var _local1 = this;
_local1.m_playing = false;
_local1.StopZoomItems();
_local1.SetVisible(false);
_local1.StopPaceMaker();
_local1.gotoAndStop(1);
_local1.m_currentFrame = 1;
}
function onEnterFrame() {
var _local1 = this;
if (!_local1.m_playing) {
} else if (_local1.m_slideletPaused) {
} else {
_local1.m_currentFrame++;
var bStartSound = false;
if (_local1.m_paceMakerStarted) {
var nToSkip = _local1.m_paceMaker.pace(_local1.m_currentFrame);
var _local2 = _local1.CanSkipFrames(nToSkip);
if (_local2 > 0) {
var _local3 = _local1.m_currentFrame + _local2;
if ((((_local1.m_soundIdx > -1) && (_local1.m_soundStartFrame > 0)) && (_local1.m_currentFrame <= _local1.m_soundStartFrame)) && (_local3 >= _local1.m_soundStartFrame)) {
bStartSound = true;
}
_local1.m_currentFrame = _local3;
} else if (_local2 < 0) {
var _local3 = _local1.m_currentFrame - _local2;
if ((((_local1.m_soundIdx > -1) && (_local1.m_soundStartFrame > 0)) && (_local1.m_currentFrame > _local1.m_soundStartFrame)) && (_local3 > _local1.m_soundStartFrame)) {
_local1.m_currentFrame = _local3;
}
}
}
if (((_local1._visible && (_local1.m_soundIdx > -1)) && (_local1.m_soundStartFrame > 0)) && ((_local1.m_currentFrame == _local1.m_soundStartFrame) || (bStartSound))) {
var offset = 0;
if (_local1.m_currentFrame > _local1.m_soundStartFrame) {
offset = _local1.m_currentFrame - _local1.m_soundStartFrame;
}
_local1.m_slide.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, offset);
}
if ((_local1.m_currentFrame >= _local1.m_inEffectStartFrame) && (_local1.m_currentFrame <= _local1.m_inEffectEndFrame)) {
if (_local1.inEffect) {
_local1.inEffect(_local1, _local1.m_currentFrame - _local1.m_inEffectStartFrame, _local1.m_inEffectEndFrame - _local1.m_inEffectStartFrame);
}
_local1.m_isIn = false;
} else if ((_local1.m_currentFrame >= _local1.m_outEffectStartFrame) && (_local1.m_currentFrame <= _local1.m_outEffectEndFrame)) {
if (_local1.outEffect) {
_local1.outEffect(_local1, _local1.m_currentFrame - _local1.m_outEffectStartFrame, _local1.m_outEffectEndFrame - _local1.m_outEffectStartFrame);
}
_local1.m_isIn = false;
} else {
_local1.m_isIn = true;
_local1._alpha = _local1.m_alpha;
}
if (_local1.m_currentFrame >= _local1.m_endFrame) {
_local1.StopPlaying();
} else if (_local1._currentframe != _local1.m_currentFrame) {
(_local1.gotoAndPlay(_local1.m_currentFrame));// not popped
}
}
}
function GetCurrentFrame() {
return(m_currentFrame);
}
function SetVisible(setVisible) {
var _local3 = this;
trace((("rdSlidelet._name : " + _local3._name) + " : SetVisible = ") + setVisible);
_local3._visible = setVisible;
if (!setVisible) {
var _local2 = 0;
while (_local2 < _local3.m_childItems.length) {
var _local1 = _local3.m_childItems[_local2];
_local1.m_setVisibleCalledFromSlidelet = true;
_local1.SetVisible(false);
_local1.m_setVisibleCalledFromSlidelet = false;
_local2++;
}
}
if (_local3.m_isDuplicate) {
} else if ((setVisible && (_local3.m_soundIdx > -1)) && (-1 == _local3.m_soundStartFrame)) {
_local3.m_slide.m_movie.m_soundHandler.StartItemSound(_local3.m_soundIdx, 0);
} else if ((!setVisible) && (_local3.m_soundIdx > -1)) {
_local3.m_slide.m_movie.m_soundHandler.DoDeleteItemSound(_local3.m_soundIdx);
}
}
function itemLoaded(item) {
super.itemLoaded(item);
m_childItems.push(item);
}
function IsSlidelet() {
return(true);
}
function PauseSlidelet() {
var _local1 = this;
_local1.m_slideletPaused = true;
_local1.StopPaceMaker();
if (_local1.m_slide && (!_local1.m_slide.m_paused)) {
_local1.m_slide.pauseSlide();
}
}
function ResumeSlidelet() {
var _local1 = this;
_local1.m_slideletPaused = false;
if (_local1._visible) {
_local1.StartPaceMaker();
}
}
function AddNoSkipFrame(frame) {
var _local2 = this;
var _local3 = frame;
var _local1;
_local1 = 0;
while (_local1 < _local2.m_NoSkipFramesArray.length) {
if (_local2.m_NoSkipFramesArray[_local1] == _local3) {
return;
}
_local1++;
}
_local2.m_NoSkipFramesArray.push(_local3);
}
function CanSkipFrames(count) {
var _local2 = this;
var i;
var retval = count;
var _local3 = 0;
i = 0;
while (i < _local2.m_NoSkipFramesArray.length) {
_local3 = _local2.m_NoSkipFramesArray[i];
var _local1 = _local3 - _local2.m_currentFrame;
if (_local1 > 0) {
_local1--;
if (_local1 <= 0) {
return(0);
}
if (_local1 < retval) {
retval = _local1;
}
}
if ((_local2.m_currentFrame <= _local3) && ((retval + _local2.m_currentFrame) > _local3)) {
return(0);
}
i++;
}
return(retval);
}
function IsPlaying() {
return(m_playing);
}
function SetCurrentFrame(iFrameNo) {
m_currentFrame = iFrameNo;
}
function SetIsDuplicate(ibIsDuplicate) {
m_isDuplicate = true;
}
function StopZoomItems() {
var _local3 = this;
if (null == _local3.m_zoomClipArr) {
} else {
var _local1 = 0;
_local1 = 0;
while (_local1 < _local3.m_zoomClipArr.length) {
var _local2 = _local3.m_zoomClipArr[_local1];
if (null != _local2) {
_local2.StopZoomItem();
}
_local1++;
}
}
}
function AddZoomClip(iZoomClip) {
var _local2 = this;
var _local3 = iZoomClip;
if ((null == _local3) || (undefined == _local3)) {
} else {
if (null == _local2.m_zoomClipArr) {
_local2.m_zoomClipArr = new Array();
}
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.m_zoomClipArr.length) {
if (_local3 == _local2.m_zoomClipArr[_local1]) {
return;
}
_local1++;
}
_local2.m_zoomClipArr.push(_local3);
}
}
var m_playing = false;
var m_startFrame = 0;
var m_endFrame = 0;
var m_inEffectStartFrame = 0;
var m_inEffectEndFrame = 0;
var m_outEffectStartFrame = 0;
var m_outEffectEndFrame = 0;
var m_clickableArea = null;
var m_currentFrame = 0;
var m_left = 0;
var m_top = 0;
var m_width = 0;
var m_height = 0;
var m_cross_mc = null;
var m_shadow_mc = null;
var m_childItems = null;
var m_soundStartFrame = -1;
var m_paceMaker = null;
var m_paceMakerStarted = false;
var m_slideletPaused = false;
var m_NoSkipFramesArray = null;
var m_isDuplicate = null;
var m_zoomClipArr = null;
var m_bShowShadow = false;
}
Symbol 16 MovieClip [__Packages.captivate.monalisa.rdSwf] Frame 0
class captivate.monalisa.rdSwf extends captivate.monalisa.rdItem
{
var stop, m_isGlobal, _parent;
function rdSwf () {
super();
}
function onEnterFrame() {
var _local1 = this;
if (!_local1.m_init_swf_mc) {
if (typeof(_local1.m_swf_mc) == "movieclip") {
_local1.m_init_swf_mc = true;
if (typeof(_local1.m_swf_mc.flashpaperversion) == "string") {
}
_local1.m_init_swf_mc = false;
if (typeof(_local1.m_swf_mc.getIFlashPaper) == "function") {
if (typeof(_local1.m_swf_mc.getIFlashPaper().setSize) == "function") {
var _local3 = _local1.m_swf_mc.getIFlashPaper().setSize(_local1.m_swfwidth, _local1.m_swfheight);
if (_local3) {
_local1.m_init_swf_mc = true;
}
}
}
}
}
if (_local1.m_bNeedsToStop) {
if (undefined != _local1.m_swf_mc) {
var _local2 = _local1.getMovie();
if (((null != _local2) && (undefined != _local2.m_movie_mc.rdcmndGotoSlide)) && (-2 == _local2.m_movie_mc.rdcmndGotoSlide)) {
_local1.m_isPlaying = false;
_local1.m_swf_mc.stop();
}
_local1.m_bNeedsToStop = false;
}
}
if (_local1.m_sync) {
var c1 = ((_local1.getParentCurrFrame() - _local1.nEnterFrame) + 2);
_local1.doSync(c1, false);
if (_local1.m_pendingStop) {
_local1.m_pendingStop = false;
_local1.m_swf_mc.gotoAndStop(1);
}
} else {
if ((!_local1.isStatic) && (!_local1.m_loop)) {
if ((!_local1._parent._visible) && (_local1._visible)) {
_local1.SetVisible(false);
}
}
if (!_local1.m_loop) {
if (_local1.m_swf_mc._currentframe >= _local1.nTotalFrames) {
_local1.m_swf_mc.gotoAndStop(_local1.nTotalFrames);
}
}
if ((((_local1.getParentCurrFrame() > _local1.inBegin) && (_local1.getParentCurrFrame() < _local1.outEnd)) && (_local1.m_isPlaying)) && (_local1._currentframe == 1)) {
_local1.gotoAndPlay(2);
}
if (_local1.m_playThis && (_local1.m_isPlaying)) {
if (_local1._currentframe >= ((_local1.nTotalFrames * 2) + 2)) {
_local1.gotoAndPlay(2);
}
}
}
super.onEnterFrame();
}
function doSync(frame, doPlay) {
var _local1 = this;
var _local2 = frame;
if (_local1.m_sync) {
var _local3 = doPlay;
if (_local2 > _local1.nTotalFrames) {
if (_local1.m_loop) {
_local2 = (_local2 % _local1.nTotalFrames) + 1;
} else {
_local2 = _local1.nTotalFrames;
_local3 = false;
}
}
if (_local3) {
_local1.m_swf_mc.gotoAndPlay(_local2);
} else {
_local1.m_swf_mc.gotoAndStop(_local2);
}
} else if (doPlay != _local1.m_isPlaying) {
_local1.m_isPlaying = doPlay;
if (doPlay) {
_local1.m_bNeedsToStop = false;
if (_local1.m_playThis) {
_local1.play();
}
_local1.m_swf_mc.play();
} else {
if (_local1.m_playThis) {
_local1.stop();
}
_local1.m_swf_mc.stop();
if (undefined == _local1.m_swf_mc) {
_local1.m_bNeedsToStop = true;
}
}
}
}
function gotoFrame(frame, doPlay, force) {
var _local1 = this;
if (_local1.m_slideFrame > 0) {
_local1._parent._parent.gotoAndPlay(_local1.m_slideFrame);
}
_local1.doSync(frame, doPlay);
}
function onLoad() {
super.onLoad();
(stop());// not popped
}
function SetVisible(setVisible) {
var _local1 = this;
var _local2 = setVisible;
if (_local2) {
_local1.m_isPlaying = true;
if (_local1.m_playThis) {
_local1.gotoAndPlay(2);
} else {
_local1.gotoAndStop(2);
}
} else if (!_local2) {
_local1.gotoAndStop(1);
}
super.SetVisible(_local2);
}
function getParentCurrFrame() {
if (m_isGlobal) {
return(_parent.movie.m_currFrame);
}
return(super.getParentCurrFrame());
}
function getMovie() {
var _local1 = this;
if (_local1.m_isGlobal) {
return(_local1._parent.movie);
}
if (!_local1._parent.IsSlidelet()) {
return(_local1._parent._parent.movie);
}
return(_local1._parent._parent._parent.movie);
}
var m_isPlaying = false;
var m_init_swf_mc = false;
var m_passedFirstFrame = false;
var m_slideFrame = 0;
var m_bNeedsToStop = false;
}
Symbol 17 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
var _local3 = queue;
if (_local3 != undefined) {
var l = _local3.length;
var _local1;
_local1 = 0;
while (_local1 < l) {
var _local2 = _local3[_local1];
if (_local2 == handler) {
_local3.splice(_local1, 1);
return;
}
_local1++;
}
}
}
static function initialize(object) {
var _local1 = object;
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
_local1.addEventListener = _fEventDispatcher.addEventListener;
_local1.removeEventListener = _fEventDispatcher.removeEventListener;
_local1.dispatchEvent = _fEventDispatcher.dispatchEvent;
_local1.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local2 = eventObj;
var queueName = ("__q_" + _local2.type);
var queue = queueObj[queueName];
if (queue != undefined) {
var i;
for (i in queue) {
var _local1 = queue[i];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(_local2);
}
if (_local1[_local2.type] != undefined) {
if (exceptions[_local2.type] == undefined) {
_local1[_local2.type](_local2);
}
}
} else {
_local1.apply(queueObj, [_local2]);
}
}
}
}
function dispatchEvent(eventObj) {
var _local1 = eventObj;
var _local2 = this;
if (_local1.target == undefined) {
_local1.target = _local2;
}
_local2[_local1.type + "Handler"](_local1);
_local2.dispatchQueue(_local2, _local1);
}
function addEventListener(event, handler) {
var _local2 = this;
var _local1 = "__q_" + event;
if (_local2[_local1] == undefined) {
_local2[_local1] = new Array();
}
_global.ASSetPropFlags(_local2, _local1, 1);
_removeEventListener(_local2[_local1], event, handler);
_local2[_local1].push(handler);
}
function removeEventListener(event, handler) {
var _local1 = "__q_" + event;
_removeEventListener(this[_local1], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 18 MovieClip [__Packages.mx.transitions.Transition] Frame 0
class mx.transitions.Transition
{
var _manager, _content, _easing, _twn, _progress;
function Transition (content, transParams, manager) {
if (!arguments.length) {
return;
}
init(content, transParams, manager);
}
function set manager(mgr) {
var _local1 = this;
if (_local1._manager != undefined) {
_local1.removeEventListener("transitionInDone", _local1._manager);
_local1.removeEventListener("transitionOutDone", _local1._manager);
_local1.removeEventListener("transitionProgress", _local1._manager);
}
_local1._manager = mgr;
_local1.addEventListener("transitionInDone", _local1._manager);
_local1.addEventListener("transitionOutDone", _local1._manager);
_local1.addEventListener("transitionProgress", _local1._manager);
//return(_local1.__get__manager());
}
function get manager() {
return(_manager);
}
function set content(c) {
var _local1 = c;
var _local2 = this;
if (typeof(_local1) == "movieclip") {
_local2._content = _local1;
_local2._twn.obj = _local1;
}
//return(_local2.__get__content());
}
function get content() {
return(_content);
}
function set direction(direction) {
_direction = (direction ? 1 : 0);
//return(this.direction);
}
function get direction() {
return(_direction);
}
function set duration(d) {
var _local1 = d;
var _local2 = this;
if (_local1) {
_local2._duration = _local1;
_local2._twn.duration = _local1;
}
//return(_local2.__get__duration());
}
function get duration() {
return(_duration);
}
function set easing(e) {
if (typeof(e) == "string") {
e = eval (e);
} else if (e == undefined) {
e = _noEase;
}
_easing = e;
_twn.easing = e;
//return(easing);
}
function get easing() {
return(_easing);
}
function set progress(p) {
var _local1 = this;
var _local2 = p;
if (_local1._progress == _local2) {
} else {
_local1._progress = _local2;
if (_local1._direction) {
_local1._render(1 - _local2);
} else {
_local1._render(_local2);
}
_local1.dispatchEvent({type:"transitionProgress", target:_local1, progress:_local2});
//return(_local1.__get__progress());
}
return;
}
function get progress() {
return(_progress);
}
function init(content, transParams, manager) {
var _local1 = this;
var _local2 = transParams;
_local1.__set__content(content);
_local1.__set__direction(_local2.direction);
_local1.__set__duration(_local2.duration);
_local1.__set__easing(_local2.easing);
_local1.__set__manager(manager);
_local1._innerBounds = _local1.__get__manager()._innerBounds;
_local1._outerBounds = _local1.__get__manager()._outerBounds;
_local1._width = _local1.__get__manager()._width;
_local1._height = _local1.__get__manager()._height;
_local1._resetTween();
}
function toString() {
return(("[Transition " + className) + "]");
}
function start() {
content._visible = true;
_twn.start();
}
function stop() {
_twn.fforward();
_twn.stop();
}
function cleanUp() {
var _local1 = this;
_local1.removeEventListener("transitionInDone", _local1._manager);
_local1.removeEventListener("transitionOutDone", _local1._manager);
_local1.removeEventListener("transitionProgress", _local1._manager);
_local1.stop();
}
function getNextHighestDepthMC(mc) {
var _local2 = mc;
var maxDepth = _local2.getNextHighestDepth();
if (maxDepth != undefined) {
return(maxDepth);
}
maxDepth = -1;
var _local3;
var _local1;
for (var p in _local2) {
_local1 = _local2[p];
if ((typeof(_local1) == "movieclip") && (_local1._parent == _local2)) {
_local3 = _local1.getDepth();
if (_local3 > maxDepth) {
maxDepth = _local3;
}
}
}
return(maxDepth + 1);
}
function drawBox(mc, x, y, w, h) {
var _local1 = mc;
var _local2 = y;
var _local3 = x;
_local1.moveTo(_local3, _local2);
_local1.lineTo(_local3 + w, _local2);
_local1.lineTo(_local3 + w, _local2 + h);
_local1.lineTo(_local3, _local2 + h);
_local1.lineTo(_local3, _local2);
}
function drawCircle(mc, x, y, r) {
var _local1 = r;
var _local2 = y;
var _local3 = x;
mc.moveTo(_local3 + _local1, _local2);
mc.curveTo(_local1 + _local3, (0.414213562373095 * _local1) + _local2, (0.707106781186547 * _local1) + _local3, (0.707106781186547 * _local1) + _local2);
mc.curveTo((0.414213562373095 * _local1) + _local3, _local1 + _local2, _local3, _local1 + _local2);
mc.curveTo((-0.414213562373095 * _local1) + _local3, _local1 + _local2, (-0.707106781186547 * _local1) + _local3, (0.707106781186547 * _local1) + _local2);
mc.curveTo((-_local1) + _local3, (0.414213562373095 * _local1) + _local2, (-_local1) + _local3, _local2);
mc.curveTo((-_local1) + _local3, (-0.414213562373095 * _local1) + _local2, (-0.707106781186547 * _local1) + _local3, (-0.707106781186547 * _local1) + _local2);
mc.curveTo((-0.414213562373095 * _local1) + _local3, (-_local1) + _local2, _local3, (-_local1) + _local2);
mc.curveTo((0.414213562373095 * _local1) + _local3, (-_local1) + _local2, (0.707106781186547 * _local1) + _local3, (-0.707106781186547 * _local1) + _local2);
mc.curveTo(_local1 + _local3, (-0.414213562373095 * _local1) + _local2, _local1 + _local3, _local2);
}
function _render(p) {
}
function _resetTween() {
var _local1 = this;
_local1._twn.stop();
_local1._twn.removeListener(_local1);
_local1._twn = new mx.transitions.Tween(_local1, null, _local1.__get__easing(), 0, 1, _local1.__get__duration(), true);
_local1._twn.stop();
_local1._twn.prop = "progress";
_local1._twn.addListener(_local1);
}
function _noEase(t, b, c, d) {
return(((c * t) / d) + b);
}
function onMotionFinished(src) {
var _local1 = this;
if (_local1.__get__direction()) {
_local1.dispatchEvent({type:"transitionOutDone", target:_local1});
} else {
_local1.dispatchEvent({type:"transitionInDone", target:_local1});
}
}
static var version = "1.1.0.52";
static var IN = 0;
static var OUT = 1;
var type = mx.transitions.Transition;
var className = "Transition";
var _direction = 0;
var _duration = 2;
static var __mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.Transition.prototype);
}
Symbol 19 MovieClip [__Packages.mx.transitions.TransitionManager] Frame 0
class mx.transitions.TransitionManager
{
var _transitions, _content, _contentAppearance;
function TransitionManager (content) {
this.content = (content);
_transitions = {};
}
function set content(c) {
var _local1 = this;
_local1.removeEventListener("allTransitionsInDone", _local1._content);
_local1.removeEventListener("allTransitionsOutDone", _local1._content);
_local1._content = c;
_local1.saveContentAppearance();
_local1.addEventListener("allTransitionsInDone", _local1._content);
_local1.addEventListener("allTransitionsOutDone", _local1._content);
//return(_local1.__get__content());
}
function get content() {
return(_content);
}
function get transitionsList() {
return(_transitions);
}
function get numTransitions() {
var _local2 = this;
var _local1 = 0;
for (var _local3 in _local2._transitions) {
_local1++;
}
return(_local1);
}
function get numInTransitions() {
var _local2 = 0;
var _local1 = _transitions;
for (var _local3 in _local1) {
if (!_local1[_local3].direction) {
_local2++;
}
}
return(_local2);
}
function get numOutTransitions() {
var _local2 = 0;
var _local1 = _transitions;
for (var _local3 in _local1) {
if (_local1[_local3].direction) {
_local2++;
}
}
return(_local2);
}
function get contentAppearance() {
return(_contentAppearance);
}
static function start(content, transParams) {
var _local1 = content;
if (_local1.__transitionManager == undefined) {
_local1.__transitionManager = new mx.transitions.TransitionManager(_local1);
}
if (transParams.direction == 1) {
_local1.__transitionManager._triggerEvent = "hide";
} else {
_local1.__transitionManager._triggerEvent = "reveal";
}
return(_local1.__transitionManager.startTransition(transParams));
}
function startTransition(transParams) {
var _local2 = this;
_local2.removeTransition(_local2.findTransition(transParams));
var _local3 = transParams.type;
var _local1 = new _local3[undefined](_local2._content, transParams, _local2);
_local2.addTransition(_local1);
_local1.start();
return(_local1);
}
function addTransition(trans) {
var _local1 = trans;
_local1.ID = ++IDCount;
_transitions[_local1.ID] = _local1;
return(_local1);
}
function removeTransition(trans) {
var _local1 = trans;
if (_transitions[_local1.ID] == undefined) {
return(false);
}
_local1.cleanUp();
return(delete _transitions[_local1.ID]);
}
function findTransition(transParams) {
var _local2 = this;
var _local3 = transParams;
var _local1;
for (var i in _local2._transitions) {
_local1 = _local2._transitions[i];
if (_local1.type == _local3.type) {
return(_local1);
}
}
return(undefined);
}
function removeAllTransitions() {
var _local1 = this;
for (var _local2 in _local1._transitions) {
_local1._transitions[_local2].cleanUp();
_local1.removeTransition(_local1._transitions[_local2]);
}
}
function saveContentAppearance() {
var _local2 = this;
var _local1 = _local2._content;
if (_local2._contentAppearance == undefined) {
var _local3 = (_local2._contentAppearance = {});
for (var i in _local2._visualPropList) {
_local3[i] = _local1[i];
}
_local3.colorTransform = new Color(_local1).getTransform();
}
_local2._innerBounds = _local1.getBounds(targetPath(_local1));
_local2._outerBounds = _local1.getBounds(targetPath(_local1._parent));
_local2._width = _local1._width;
_local2._height = _local1._height;
}
function restoreContentAppearance() {
var _local3 = this;
var _local1 = _local3._content;
var _local2 = _local3._contentAppearance;
for (var i in _local3._visualPropList) {
_local1[i] = _local2[i];
}
new Color(_local1).setTransform(_local2.colorTransform);
}
function transitionInDone(e) {
var _local1 = this;
_local1.removeTransition(e.target);
if (_local1.__get__numInTransitions() == 0) {
var _local2;
_local2 = _local1._content._visible;
if ((_local1._triggerEvent == "hide") || (_local1._triggerEvent == "hideChild")) {
_local1._content._visible = false;
}
if (_local2) {
_local1.dispatchEvent({type:"allTransitionsInDone", target:_local1});
}
}
}
function transitionOutDone(e) {
var _local1 = this;
_local1.removeTransition(e.target);
if (_local1.__get__numOutTransitions() == 0) {
_local1.restoreContentAppearance();
var _local2;
_local2 = _local1._content._visible;
if (_local2 && ((_local1._triggerEvent == "hide") || (_local1._triggerEvent == "hideChild"))) {
_local1._content._visible = false;
}
updateAfterEvent();
if (_local2) {
_local1.dispatchEvent({type:"allTransitionsOutDone", target:_local1});
}
}
}
function toString() {
return("[TransitionManager]");
}
static var version = "1.1.0.52";
static var IDCount = 0;
var type = mx.transitions.TransitionManager;
var className = "TransitionManager";
var _visualPropList = {_x:null, _y:null, _xscale:null, _yscale:null, _alpha:null, _rotation:null};
static var __mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.TransitionManager.prototype);
}
Symbol 20 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local2 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local2);
var _local1 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local1.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 21 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
var _local1 = o;
if (_local1.broadcastMessage != undefined) {
delete _local1.broadcastMessage;
}
_local1.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
_local1.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
_local1._listeners = new Array();
}
}
function addListener(o) {
var _local1 = this;
_local1.removeListener(o);
if (_local1.broadcastMessage == undefined) {
_local1.broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_local1._listeners.push(o));
}
function removeListener(o) {
var _local3 = this;
var _local1 = _local3._listeners;
var _local2 = _local1.length;
while (_local2--) {
if (_local1[_local2] == o) {
_local1.splice(_local2, 1);
if (!_local1.length) {
_local3.broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local3 = String(arguments.shift());
var _local2 = _listeners.concat();
var l = _local2.length;
var _local1 = 0;
while (_local1 < l) {
_local2[_local1][_local3].apply(_local2[_local1], arguments);
_local1++;
}
}
static var version = "1.1.0.52";
}
Symbol 22 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var _time, _duration, _fps, change, begin;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
var _local1 = this;
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
} else {
_local1.obj = obj;
_local1.prop = prop;
_local1.begin = begin;
_local1.__set__position(begin);
_local1.__set__duration(duration);
_local1.useSeconds = useSeconds;
if (func) {
_local1.func = func;
}
_local1.__set__finish(finish);
_local1._listeners = [];
_local1.addListener(_local1);
_local1.start();
}
}
function set time(t) {
var _local1 = this;
var _local2 = t;
_local1.prevTime = _local1._time;
if (_local2 > _local1.__get__duration()) {
if (_local1.looping) {
_local1.rewind(_local2 - _local1._duration);
_local1.update();
_local1.broadcastMessage("onMotionLooped", _local1);
} else {
if (_local1.useSeconds) {
_local1._time = _local1._duration;
_local1.update();
}
_local1.stop();
_local1.broadcastMessage("onMotionFinished", _local1);
}
} else if (_local2 < 0) {
_local1.rewind();
_local1.update();
} else {
_local1._time = _local2;
_local1.update();
}
//return(_local1.__get__time());
}
function get time() {
return(_time);
}
function set duration(d) {
var _local1 = d;
_duration = (((_local1 == null) || (_local1 <= 0)) ? (_global.Infinity) : (_local1));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local1 = this;
var _local2 = _local1.isPlaying;
_local1.stopEnterFrame();
_local1._fps = fps;
if (_local2) {
_local1.startEnterFrame();
}
//return(_local1.__get__FPS());
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
var _local1 = this;
_local1.prevPos = _local1._pos;
_local1.obj[_local1.prop] = (_local1._pos = p);
_local1.broadcastMessage("onMotionChanged", _local1, _local1._pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
var _local1 = this;
var _local2 = t;
if (_local2 == undefined) {
_local2 = _local1._time;
}
return(_local1.func(_local2, _local1.begin, _local1.change, _local1._duration));
}
function set finish(f) {
var _local1 = this;
_local1.change = f - _local1.begin;
//return(_local1.__get__finish());
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
var _local1 = this;
_local1.begin = _local1.position;
_local1.__set__finish(finish);
if (duration != undefined) {
_local1.__set__duration(duration);
}
_local1.start();
}
function yoyo() {
var _local1 = this;
_local1.continueTo(_local1.begin, _local1.__get__time());
}
function startEnterFrame() {
var _local1 = this;
if (_local1._fps == undefined) {
_global.MovieClip.addListener(_local1);
} else {
_local1._intervalID = setInterval(_local1, "onEnterFrame", 1000 / _local1._fps);
}
_local1.isPlaying = true;
}
function stopEnterFrame() {
var _local1 = this;
if (_local1._fps == undefined) {
_global.MovieClip.removeListener(_local1);
} else {
clearInterval(_local1._intervalID);
}
_local1.isPlaying = false;
}
function start() {
var _local1 = this;
_local1.rewind();
_local1.startEnterFrame();
_local1.broadcastMessage("onMotionStarted", _local1);
}
function stop() {
var _local1 = this;
_local1.stopEnterFrame();
_local1.broadcastMessage("onMotionStopped", _local1);
}
function resume() {
var _local1 = this;
_local1.fixTime();
_local1.startEnterFrame();
_local1.broadcastMessage("onMotionResumed", _local1);
}
function rewind(t) {
var _local1 = this;
_local1._time = ((t == undefined) ? 0 : (t));
_local1.fixTime();
_local1.update();
}
function fforward() {
var _local1 = this;
_local1.__set__time(_local1._duration);
_local1.fixTime();
}
function nextFrame() {
var _local1 = this;
if (_local1.useSeconds) {
_local1.__set__time((getTimer() - _local1._startTime) / 1000);
} else {
_local1.__set__time(_local1._time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
var _local1 = this;
if (!_local1.useSeconds) {
_local1.__set__time(_local1._time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
var _local1 = this;
if (_local1.useSeconds) {
_local1._startTime = getTimer() - (_local1._time * 1000);
}
}
function update() {
var _local1 = this;
_local1.__set__position(_local1.getPosition(_local1._time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 23 MovieClip [__Packages.mx.transitions.Blinds] Frame 0
class mx.transitions.Blinds extends mx.transitions.Transition
{
var _content, _mask;
function Blinds (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
var _local1 = transParams;
var _local2 = this;
super.init(content, _local1, manager);
_local2._dimension = (_local1.dimension ? 1 : 0);
if (_local1.numStrips) {
_local2._numStrips = _local1.numStrips;
}
_local2._initMask();
}
function start() {
_content.setMask(_mask);
super.start();
}
function cleanUp() {
_mask.removeMovieClip();
super.cleanUp();
}
function _initMask() {
var _local1 = this;
var container = _local1._content;
var depth = _local1.getNextHighestDepthMC(container);
var mask = ((_local1._mask = container.createEmptyMovieClip("__mask_Blinds_" + _local1.__get__direction(), depth)));
mask._visible = false;
var _local2 = (_local1._innerMask = _local1._mask.createEmptyMovieClip("innerMask", 0));
_local2._x = (_local2._y = 50);
if (_local1._dimension) {
_local2._rotation = -90;
}
_local2.beginFill(16711680);
_local1.drawBox(_local2, 0, 0, 100, 100);
_local2.endFill();
var _local3 = _local1._innerBounds;
mask._x = _local3.xMin;
mask._y = _local3.yMin;
mask._width = _local3.xMax - _local3.xMin;
mask._height = _local3.yMax - _local3.yMin;
}
function _render(p) {
var _local3 = this;
var h = (100 / _local3._numStrips);
var s = (p * h);
var _local2 = _local3._innerMask;
_local2.clear();
var _local1 = _local3._numStrips;
_local2.beginFill(16711680);
while (_local1--) {
_local3.drawBox(_local2, -50, (_local1 * h) - 50, 100, s);
}
_local2.endFill();
}
static var version = "1.1.0.52";
var type = mx.transitions.Blinds;
var className = "Blinds";
var _numStrips = 10;
}
Symbol 24 MovieClip [__Packages.captivate.monalisa.transitions.BlindsExtended] Frame 0
class captivate.monalisa.transitions.BlindsExtended extends mx.transitions.Blinds
{
var init, tweenObj;
function BlindsExtended (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function onMotionStarted(e) {
tweenObj = e;
}
function pause() {
tweenObj.stop();
}
function resume() {
tweenObj.resume();
}
function setPosition(p) {
tweenObj.__set__time(p);
}
function rewind() {
tweenObj.rewind();
}
function fforward() {
tweenObj.fforward();
}
}
Symbol 25 MovieClip [__Packages.mx.transitions.Fade] Frame 0
class mx.transitions.Fade extends mx.transitions.Transition
{
var _alphaFinal, __get__manager, _content;
function Fade (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
super.init(content, transParams, manager);
_alphaFinal = __get__manager().__get__contentAppearance()._alpha;
}
function _render(p) {
_content._alpha = _alphaFinal * p;
}
static var version = "1.1.0.52";
var type = mx.transitions.Fade;
var className = "Fade";
}
Symbol 26 MovieClip [__Packages.captivate.monalisa.transitions.FadeExtended] Frame 0
class captivate.monalisa.transitions.FadeExtended extends mx.transitions.Fade
{
var init, tweenObj;
function FadeExtended (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function onMotionStarted(e) {
tweenObj = e;
}
function pause() {
tweenObj.stop();
}
function resume() {
tweenObj.resume();
}
function setPosition(p) {
tweenObj.__set__time(p);
}
function rewind() {
tweenObj.rewind();
}
function fforward() {
tweenObj.fforward();
}
}
Symbol 27 MovieClip [__Packages.mx.transitions.Fly] Frame 0
class mx.transitions.Fly extends mx.transitions.Transition
{
function Fly (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
var _local2 = this;
super.init(content, transParams, manager);
if (transParams.startPoint) {
_local2._startPoint = transParams.startPoint;
}
_local2._xFinal = _local2.__get__manager().__get__contentAppearance()._x;
_local2._yFinal = _local2.__get__manager().__get__contentAppearance()._y;
var oldStageScaleMode = Stage.scaleMode;
Stage.scaleMode = "showAll";
var _local1 = (_local2._stagePoints = {});
_local1[1] = {x:0, y:0};
_local1[2] = {x:0, y:0};
_local1[3] = {x:Stage.width, y:0};
_local1[4] = {x:0, y:0};
_local1[5] = {x:Stage.width / 2, y:Stage.height / 2};
_local1[6] = {x:Stage.width, y:0};
_local1[7] = {x:0, y:Stage.height};
_local1[8] = {x:0, y:Stage.height};
_local1[9] = {x:Stage.width, y:Stage.height};
for (var i in _local1) {
_local2._content._parent.globalToLocal(_local1[i]);
}
var _local3 = _local2._innerBounds;
_local1[1].x = _local1[1].x - _local3.xMax;
_local1[1].y = _local1[1].y - _local3.yMax;
_local1[2].x = _local2.__get__manager().__get__contentAppearance()._x;
_local1[2].y = _local1[2].y - _local3.yMax;
_local1[3].x = _local1[3].x - _local3.xMin;
_local1[3].y = _local1[3].y - _local3.yMax;
_local1[4].x = _local1[4].x - _local3.xMax;
_local1[4].y = _local2.__get__manager().__get__contentAppearance()._y;
_local1[5].x = _local1[5].x - ((_local3.xMax + _local3.xMin) / 2);
_local1[5].y = _local1[5].y - ((_local3.yMax + _local3.yMin) / 2);
_local1[6].x = _local1[6].x - _local3.xMin;
_local1[6].y = _local2.__get__manager().__get__contentAppearance()._y;
_local1[7].x = _local1[7].x - _local3.xMax;
_local1[7].y = _local1[7].y - _local3.yMin;
_local1[8].x = _local2.__get__manager().__get__contentAppearance()._x;
_local1[8].y = _local1[8].y - _local3.yMin;
_local1[9].x = _local1[9].x - _local3.xMin;
_local1[9].y = _local1[9].y - _local3.yMin;
_local2._xInitial = _local2._stagePoints[_local2._startPoint].x;
_local2._yInitial = _local2._stagePoints[_local2._startPoint].y;
Stage.scaleMode = oldStageScaleMode;
}
function _render(p) {
var _local1 = this;
_local1._content._x = _local1._xFinal + ((_local1._xInitial - _local1._xFinal) * (1 - p));
_local1._content._y = _local1._yFinal + ((_local1._yInitial - _local1._yFinal) * (1 - p));
}
static var version = "1.1.0.52";
var type = mx.transitions.Fly;
var className = "Fly";
var _startPoint = 4;
}
Symbol 28 MovieClip [__Packages.captivate.monalisa.transitions.FlyExtended] Frame 0
class captivate.monalisa.transitions.FlyExtended extends mx.transitions.Fly
{
var init, tweenObj;
function FlyExtended (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function onMotionStarted(e) {
tweenObj = e;
}
function pause() {
tweenObj.stop();
}
function resume() {
tweenObj.resume();
}
function setPosition(p) {
tweenObj.__set__time(p);
}
function rewind() {
tweenObj.rewind();
}
function fforward() {
tweenObj.fforward();
}
}
Symbol 29 MovieClip [__Packages.mx.transitions.Iris] Frame 0
class mx.transitions.Iris extends mx.transitions.Transition
{
var _content, _mask;
function Iris (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
var _local1 = this;
var _local2 = transParams;
super.init(content, _local2, manager);
if (_local2.startPoint) {
_local1._startPoint = _local2.startPoint;
}
if (_local2.shape != undefined) {
_local1._shape = _local2.shape;
}
_local1._maxDimension = Math.max(_local1._width, _local1._height);
_local1._minDimension = Math.min(_local1._width, _local1._height);
if (_local1._startPoint % 2) {
_local1._cornerMode = true;
}
if (_local1._shape == "SQUARE") {
if (_local1._cornerMode) {
_local1._render = _local1._renderSquareCorner;
} else {
_local1._render = _local1._renderSquareEdge;
}
} else if (_local1._shape == "CIRCLE") {
_local1._render = _local1._renderCircle;
}
_local1._initMask();
}
function start() {
_content.setMask(_mask);
super.start();
}
function cleanUp() {
_mask.removeMovieClip();
super.cleanUp();
}
function _initMask() {
var _local3 = this;
var container = _local3._content;
var depth = _local3.getNextHighestDepthMC(container);
var _local1 = (_local3._mask = container.createEmptyMovieClip("__mask_Iris_" + _local3.__get__direction(), depth));
_local1._visible = false;
var _local2 = _local3._innerBounds;
switch (_local3._startPoint) {
case 1 :
_local1._x = _local2.xMin;
_local1._y = _local2.yMin;
return;
case 4 :
_local1._x = _local2.xMin;
_local1._y = (_local2.yMin + _local2.yMax) * 0.5;
return;
case 3 :
_local1._rotation = 90;
_local1._x = _local2.xMax;
_local1._y = _local2.yMin;
return;
case 2 :
_local1._rotation = 90;
_local1._x = (_local2.xMin + _local2.xMax) * 0.5;
_local1._y = _local2.yMin;
return;
case 9 :
_local1._rotation = 180;
_local1._x = _local2.xMax;
_local1._y = _local2.yMax;
return;
case 6 :
_local1._rotation = 180;
_local1._x = _local2.xMax;
_local1._y = (_local2.yMin + _local2.yMax) * 0.5;
return;
case 7 :
_local1._rotation = -90;
_local1._x = _local2.xMin;
_local1._y = _local2.yMax;
return;
case 8 :
_local1._rotation = -90;
_local1._x = (_local2.xMin + _local2.xMax) * 0.5;
_local1._y = _local2.yMax;
return;
case 5 :
_local1._x = (_local2.xMin + _local2.xMax) * 0.5;
_local1._y = (_local2.yMin + _local2.yMax) * 0.5;
return;
}
}
function _render(p) {
}
function _renderCircle(p) {
var _local1 = this;
var _local3 = p;
var _local2 = _local1._mask;
_local2.clear();
_local2.beginFill(16711680);
if (_local1._startPoint == 5) {
var maxRadius = (0.5 * Math.sqrt((_local1._width * _local1._width) + (_local1._height * _local1._height)));
_local1.drawCircle(_local2, 0, 0, _local3 * maxRadius);
} else if (_local1._cornerMode) {
var maxRadius = Math.sqrt((_local1._width * _local1._width) + (_local1._height * _local1._height));
_local1._drawQuarterCircle(_local2, _local3 * maxRadius);
} else {
if ((_local1._startPoint == 4) || (_local1._startPoint == 6)) {
var maxRadius = Math.sqrt((_local1._width * _local1._width) + ((0.25 * _local1._height) * _local1._height));
} else if ((_local1._startPoint == 2) || (_local1._startPoint == 8)) {
var maxRadius = Math.sqrt(((0.25 * _local1._width) * _local1._width) + (_local1._height * _local1._height));
}
_local1._drawHalfCircle(_local2, _local3 * maxRadius);
}
_local2.endFill();
}
function _drawQuarterCircle(mc, r) {
var _local1 = r;
var _local3 = 0;
var _local2 = 0;
mc.lineTo(_local1, 0);
mc.curveTo(_local1 + _local3, (0.414213562373095 * _local1) + _local2, (0.707106781186547 * _local1) + _local3, (0.707106781186547 * _local1) + _local2);
mc.curveTo((0.414213562373095 * _local1) + _local3, _local1 + _local2, _local3, _local1 + _local2);
}
function _drawHalfCircle(mc, r) {
var _local1 = r;
var _local3 = 0;
var _local2 = 0;
mc.lineTo(0, -_local1);
mc.curveTo((0.414213562373095 * _local1) + _local3, (-_local1) + _local2, (0.707106781186547 * _local1) + _local3, (-0.707106781186547 * _local1) + _local2);
mc.curveTo(_local1 + _local3, (-0.414213562373095 * _local1) + _local2, _local1 + _local3, _local2);
mc.curveTo(_local1 + _local3, (0.414213562373095 * _local1) + _local2, (0.707106781186547 * _local1) + _local3, (0.707106781186547 * _local1) + _local2);
mc.curveTo((0.414213562373095 * _local1) + _local3, _local1 + _local2, _local3, _local1 + _local2);
mc.lineTo(0, 0);
}
function _renderSquareEdge(p) {
var _local1 = this;
var _local2 = _local1._mask;
_local2.clear();
_local2.beginFill(16711680);
var s = _local1._startPoint;
var w = (p * _local1._width);
var h = (p * _local1._height);
var _local3 = p * _local1._maxDimension;
if ((s == 4) || (s == 6)) {
_local1.drawBox(_local2, 0, -0.5 * h, w, h);
} else if (_local1._height < _local1._width) {
_local1.drawBox(_local2, 0, -0.5 * _local3, h, w);
} else {
_local1.drawBox(_local2, 0, -0.5 * _local3, _local3, _local3);
}
_local2.endFill();
}
function _renderSquareCorner(p) {
var _local2 = this;
var _local1 = _local2._mask;
_local1.clear();
_local1.beginFill(16711680);
var s = _local2._startPoint;
var w = (p * _local2._width);
var _local3 = p * _local2._height;
if (s == 5) {
_local2.drawBox(_local1, -0.5 * w, -0.5 * _local3, w, _local3);
} else if ((s == 3) || (s == 7)) {
_local2.drawBox(_local1, 0, 0, _local3, w);
} else {
_local2.drawBox(_local1, 0, 0, w, _local3);
}
_local1.endFill();
}
static var version = "1.1.0.52";
static var SQUARE = "SQUARE";
static var CIRCLE = "CIRCLE";
var type = mx.transitions.Iris;
var className = "Iris";
var _startPoint = 5;
var _shape = "SQUARE";
}
Symbol 30 MovieClip [__Packages.captivate.monalisa.transitions.IrisExtended] Frame 0
class captivate.monalisa.transitions.IrisExtended extends mx.transitions.Iris
{
var init, tweenObj;
function IrisExtended (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function onMotionStarted(e) {
tweenObj = e;
}
function pause() {
tweenObj.stop();
}
function resume() {
tweenObj.resume();
}
function setPosition(p) {
tweenObj.__set__time(p);
}
function rewind() {
tweenObj.rewind();
}
function fforward() {
tweenObj.fforward();
}
}
Symbol 31 MovieClip [__Packages.mx.transitions.Photo] Frame 0
class mx.transitions.Photo extends mx.transitions.Transition
{
var _alphaFinal, _content, _colorControl;
function Photo (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
var _local1 = this;
super.init(content, transParams, manager);
_local1._alphaFinal = _local1.__get__manager().__get__contentAppearance()._alpha;
_local1._colorControl = new Color(_local1._content);
}
function _render(p) {
var _local3 = 0.8;
var _local2 = 0.9;
var _local1 = {};
var bright = 0;
if (p <= _local3) {
_content._alpha = _alphaFinal * (p / _local3);
} else {
_content._alpha = _alphaFinal;
if (p <= _local2) {
bright = ((p - _local3) / (_local2 - _local3)) * 256;
} else {
bright = (1 - ((p - _local2) / (1 - _local2))) * 256;
}
}
_local1.rb = (_local1.gb = (_local1.bb = bright));
_colorControl.setTransform(_local1);
}
static var version = "1.1.0.52";
var type = mx.transitions.Photo;
var className = "Photo";
}
Symbol 32 MovieClip [__Packages.captivate.monalisa.transitions.PhotoExtended] Frame 0
class captivate.monalisa.transitions.PhotoExtended extends mx.transitions.Photo
{
var init, tweenObj;
function PhotoExtended (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function onMotionStarted(e) {
tweenObj = e;
}
function pause() {
tweenObj.stop();
}
function resume() {
tweenObj.resume();
}
function setPosition(p) {
tweenObj.__set__time(p);
}
function rewind() {
tweenObj.rewind();
}
function fforward() {
tweenObj.fforward();
}
}
Symbol 33 MovieClip [__Packages.mx.transitions.PixelDissolve] Frame 0
class mx.transitions.PixelDissolve extends mx.transitions.Transition
{
var _content, _mask, _indices, _innerMask, _numSections, drawBox;
function PixelDissolve (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
var _local1 = this;
super.init(content, transParams, manager);
if (transParams.xSections) {
_local1._xSections = transParams.xSections;
}
if (transParams.ySections) {
_local1._ySections = transParams.ySections;
}
_local1._numSections = _local1._xSections * _local1._ySections;
_local1._indices = new Array();
var _local2 = _local1._ySections;
while (_local2--) {
var _local3 = _local1._xSections;
while (_local3--) {
_local1._indices[(_local2 * _local1._xSections) + _local3] = {x:_local3, y:_local2};
}
}
_local1._shuffleArray(_local1._indices);
_local1._initMask();
}
function start() {
_content.setMask(_mask);
super.start();
}
function cleanUp() {
_mask.removeMovieClip();
super.cleanUp();
}
function _initMask() {
var _local2 = this;
var container = _local2._content;
var depth = _local2.getNextHighestDepthMC(container);
var _local3 = (_local2._mask = container.createEmptyMovieClip("__mask_PixelDissolve_" + _local2.__get__direction(), depth));
_local3._visible = false;
var innerMask = ((_local2._innerMask = _local2._mask.createEmptyMovieClip("innerMask", 0)));
innerMask.beginFill(16711680);
_local2.drawBox(innerMask, 0, 0, 100, 100);
innerMask.endFill();
var _local1 = _local2._innerBounds;
_local3._x = _local1.xMin;
_local3._y = _local1.yMin;
_local3._width = _local1.xMax - _local1.xMin;
_local3._height = _local1.yMax - _local1.yMin;
}
function _shuffleArray(a) {
var _local2 = a;
var _local1 = _local2.length - 1;
while (_local1 > 0) {
var _local3 = random(_local1 + 1);
if (_local3 == _local1) {
} else {
var tmp = _local2[_local1];
_local2[_local1] = _local2[_local3];
_local2[_local3] = tmp;
}
_local1--;
}
}
function _render(p) {
if (p < 0) {
p = 0;
}
if (p > 1) {
p = 1;
}
var w = (100 / _xSections);
var _local3 = 100 / _ySections;
var _local2 = _indices;
var mask = _innerMask;
mask.clear();
mask.beginFill(16711680);
var _local1 = Math.floor(p * _numSections);
while (_local1--) {
drawBox(mask, _local2[_local1].x * w, _local2[_local1].y * _local3, w, _local3);
}
mask.endFill();
}
static var version = "1.1.0.52";
var type = mx.transitions.PixelDissolve;
var className = "PixelDissolve";
var _xSections = 10;
var _ySections = 10;
}
Symbol 34 MovieClip [__Packages.captivate.monalisa.transitions.PixelDissolveExtended] Frame 0
class captivate.monalisa.transitions.PixelDissolveExtended extends mx.transitions.PixelDissolve
{
var init, tweenObj;
function PixelDissolveExtended (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function onMotionStarted(e) {
tweenObj = e;
}
function pause() {
tweenObj.stop();
}
function resume() {
tweenObj.resume();
}
function setPosition(p) {
tweenObj.__set__time(p);
}
function rewind() {
tweenObj.rewind();
}
function fforward() {
tweenObj.fforward();
}
}
Symbol 35 MovieClip [__Packages.mx.transitions.Rotate] Frame 0
class mx.transitions.Rotate extends mx.transitions.Transition
{
function Rotate (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
var _local1 = this;
var _local2 = transParams;
super.init(content, _local2, manager);
if (_local1._rotationFinal == undefined) {
_local1._rotationFinal = _local1.__get__manager().__get__contentAppearance()._rotation;
}
if (_local2.degrees) {
_local1._degrees = _local2.degrees;
}
if (_local2.ccw ^ _local1.__get__direction()) {
_local1._degrees = _local1._degrees * -1;
}
}
function _render(p) {
var _local1 = this;
_local1._content._rotation = _local1._rotationFinal - (_local1._degrees * (1 - p));
}
static var version = "1.1.0.52";
var type = mx.transitions.Rotate;
var className = "Rotate";
var _degrees = 360;
}
Symbol 36 MovieClip [__Packages.captivate.monalisa.transitions.RotateExtended] Frame 0
class captivate.monalisa.transitions.RotateExtended extends mx.transitions.Rotate
{
var init, tweenObj;
function RotateExtended (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function onMotionStarted(e) {
tweenObj = e;
}
function pause() {
tweenObj.stop();
}
function resume() {
tweenObj.resume();
}
function setPosition(p) {
tweenObj.__set__time(p);
}
function rewind() {
tweenObj.rewind();
}
function fforward() {
tweenObj.fforward();
}
}
Symbol 37 MovieClip [__Packages.mx.transitions.Squeeze] Frame 0
class mx.transitions.Squeeze extends mx.transitions.Transition
{
function Squeeze (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
var _local1 = this;
super.init(content, transParams, manager);
if (transParams.dimension) {
_local1._scaleProp = "_yscale";
_local1._scaleFinal = _local1.__get__manager().__get__contentAppearance()._yscale;
} else {
_local1._scaleProp = "_xscale";
_local1._scaleFinal = _local1.__get__manager().__get__contentAppearance()._xscale;
}
}
function _render(p) {
var _local1 = this;
var _local2 = p;
if (_local2 <= 0) {
_local2 = 0;
_local1._content._visible = false;
} else {
_local1._content._visible = true;
}
_local1._content[_local1._scaleProp] = _local2 * _local1._scaleFinal;
}
static var version = "1.1.0.52";
var type = mx.transitions.Squeeze;
var className = "Squeeze";
}
Symbol 38 MovieClip [__Packages.captivate.monalisa.transitions.SqueezeExtended] Frame 0
class captivate.monalisa.transitions.SqueezeExtended extends mx.transitions.Squeeze
{
var init, tweenObj;
function SqueezeExtended (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function onMotionStarted(e) {
tweenObj = e;
}
function pause() {
tweenObj.stop();
}
function resume() {
tweenObj.resume();
}
function setPosition(p) {
tweenObj.__set__time(p);
}
function rewind() {
tweenObj.rewind();
}
function fforward() {
tweenObj.fforward();
}
}
Symbol 39 MovieClip [__Packages.mx.transitions.Wipe] Frame 0
class mx.transitions.Wipe extends mx.transitions.Transition
{
var _content, _mask;
function Wipe (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
var _local1 = transParams;
super.init(content, _local1, manager);
if (_local1.startPoint) {
_startPoint = _local1.startPoint;
}
_initMask();
}
function start() {
_content.setMask(_mask);
super.start();
}
function cleanUp() {
_mask.removeMovieClip();
super.cleanUp();
}
function _initMask() {
var _local2 = this;
var container = _local2._content;
var depth = _local2.getNextHighestDepthMC(container);
var mask = ((_local2._mask = container.createEmptyMovieClip("__mask_Wipe_" + _local2.__get__direction(), depth)));
var _local1 = (_local2._innerMask = _local2._mask.createEmptyMovieClip("innerMask", 0));
_local1._x = (_local1._y = 50);
mask._visible = false;
_local1.beginFill(16711680);
_local2.drawBox(_local1, -50, -50, 100, 100);
_local1.endFill();
switch (_local2._startPoint) {
case 3 :
case 2 :
_local1._rotation = 90;
break;
case 1 :
case 4 :
_local1._rotation = 0;
break;
case 9 :
case 6 :
_local1._rotation = 180;
break;
case 7 :
case 8 :
_local1._rotation = -90;
break;
}
if (_local2._startPoint % 2) {
_local2._cornerMode = true;
}
var _local3 = _local2._innerBounds;
mask._x = _local3.xMin;
mask._y = _local3.yMin;
mask._width = _local3.xMax - _local3.xMin;
mask._height = _local3.yMax - _local3.yMin;
}
function _render(p) {
var _local1 = this;
_local1._innerMask.clear();
_local1._innerMask.beginFill(16711680);
if (_local1._cornerMode) {
_local1._drawSlant(_local1._innerMask, p);
} else {
_local1.drawBox(_local1._innerMask, -50, -50, p * 100, 100);
}
_local1._innerMask.endFill();
}
function _drawSlant(mc, p) {
var _local1 = mc;
var _local2 = p;
_local1.moveTo(-50, -50);
if (_local2 <= 0.5) {
_local1.lineTo(200 * (_local2 - 0.25), -50);
_local1.lineTo(-50, 200 * (_local2 - 0.25));
} else {
_local1.lineTo(50, -50);
_local1.lineTo(50, 200 * (_local2 - 0.75));
_local1.lineTo(200 * (_local2 - 0.75), 50);
_local1.lineTo(-50, 50);
}
_local1.lineTo(-50, -50);
}
static var version = "1.1.0.52";
var type = mx.transitions.Wipe;
var className = "Wipe";
var _startPoint = 4;
}
Symbol 40 MovieClip [__Packages.captivate.monalisa.transitions.WipeExtended] Frame 0
class captivate.monalisa.transitions.WipeExtended extends mx.transitions.Wipe
{
var init, tweenObj;
function WipeExtended (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function onMotionStarted(e) {
tweenObj = e;
}
function pause() {
tweenObj.stop();
}
function resume() {
tweenObj.resume();
}
function setPosition(p) {
tweenObj.__set__time(p);
}
function rewind() {
tweenObj.rewind();
}
function fforward() {
tweenObj.fforward();
}
}
Symbol 41 MovieClip [__Packages.mx.transitions.Zoom] Frame 0
class mx.transitions.Zoom extends mx.transitions.Transition
{
function Zoom (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
var _local1 = this;
super.init(content, transParams, manager);
_local1._xscaleFinal = _local1.__get__manager().__get__contentAppearance()._xscale;
_local1._yscaleFinal = _local1.__get__manager().__get__contentAppearance()._yscale;
}
function _render(p) {
var _local1 = p;
var _local2 = this;
if (_local1 < 0) {
_local1 = 0;
}
_local2._content._xscale = _local1 * _local2._xscaleFinal;
_local2._content._yscale = _local1 * _local2._yscaleFinal;
}
static var version = "1.1.0.52";
var type = mx.transitions.Zoom;
var className = "Zoom";
}
Symbol 42 MovieClip [__Packages.captivate.monalisa.transitions.ZoomExtended] Frame 0
class captivate.monalisa.transitions.ZoomExtended extends mx.transitions.Zoom
{
var init, tweenObj;
function ZoomExtended (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function onMotionStarted(e) {
tweenObj = e;
}
function pause() {
tweenObj.stop();
}
function resume() {
tweenObj.resume();
}
function setPosition(p) {
tweenObj.__set__time(p);
}
function rewind() {
tweenObj.rewind();
}
function fforward() {
tweenObj.fforward();
}
}
Symbol 43 MovieClip [__Packages.captivate.monalisa.rdRandomSlideData] Frame 0
class captivate.monalisa.rdRandomSlideData extends captivate.monalisa.rdSlideData
{
var m_selectedPoolName, m_selectedQSlideIndex, m_poolArr;
function rdRandomSlideData (showOnFrame, playOnFrame, stopOnFrame, hideOnFrame, frameCount, transitionType, transitionOutType, transitionInDur, transitionOutDur, transitionInBetween, transitionOutBetween, transitionInEasing, transitionOutEasing, transitionInPrarm1, transitionOutParam1, transitionInParam2, transitionOutParam2) {
super(showOnFrame, playOnFrame, stopOnFrame, hideOnFrame, frameCount, transitionType, transitionOutType, transitionInDur, transitionOutDur, transitionInBetween, transitionOutBetween, transitionInEasing, transitionOutEasing, transitionInPrarm1, transitionOutParam1, transitionInParam2, transitionOutParam2);
m_selectedPoolName = "";
m_selectedQSlideIndex = -1;
}
function set isSurvey(isSurvey) {
m_isSurvey = isSurvey;
//return(this.isSurvey);
}
function get isSurvey() {
return(m_isSurvey);
}
function set poolNames(spoolNames) {
m_poolArr = spoolNames.split(",");
//return(poolNames);
}
function get poolNames() {
return(m_poolArr);
}
var className = "rdRandomSlideData";
var m_isSurvey = false;
var m_qSlide_mc = null;
}
Symbol 44 MovieClip [__Packages.captivate.monalisa.rdInteraction] Frame 0
class captivate.monalisa.rdInteraction extends captivate.monalisa.rdItem
{
var m_mustBeReady, m_slide, m_submitOnFrame;
function rdInteraction () {
super();
m_mustBeReady = false;
}
function onRegister() {
}
function isDone() {
return(m_done);
}
function setDone() {
var _local1 = this;
_local1.m_done = true;
_local1.m_doneOnFrame = _local1._parent._currentframe;
}
function getAttempts() {
var _local1 = this;
if (typeof(_local1.m_interactionAnswer) == "movieclip") {
return(_local1.m_interactionAnswer.question.numTries);
}
return(_local1.m_attempts);
}
function IncrementAttempts() {
var _local1 = this;
if (typeof(_local1.m_interactionAnswer) == "movieclip") {
_local1.m_interactionAnswer.question.numTries++;
}
_local1.m_attempts++;
}
function DoCheck() {
}
function onLoad() {
super.onLoad();
m_slide.AddNoSkipFrame(m_submitOnFrame);
}
function Register() {
var _local1 = this;
if (_local1.m_slide.m_movie.m_disableInteractions) {
} else if ((!_local1.m_isRegistered) && (!_local1.isDone())) {
_local1.m_paused = false;
_local1.m_done = false;
_local1.m_isRegistered = true;
if (_local1.m_useClickhandler) {
_local1.m_slide.m_movie.m_clickHandler_mc.SpriteLoaded(_local1);
}
if (((_local1.m_nSubmitKeyCode || (_local1.m_bSubmitShift)) || (_local1.m_bSubmitAlt)) || (_local1.m_bSubmitControl)) {
_local1.m_slide.m_movie.m_keyHandler.SpriteLoaded(_local1);
}
if (_local1.m_questionNumber != -1) {
_local1.m_interactionAnswer = _local1._parent["_question_" + _local1.m_questionNumber]["_answer" + _local1.m_questionNumber];
if (typeof(_local1.m_interactionAnswer) == "movieclip") {
var _local2;
var slideName = _local1._parent._name;
var _local3 = parseInt(slideName.substr(5));
_local2 = _local1._parent.m_movie.m_quizPlaybackController.getSlide(_local3);
var quizController = _local1._parent.m_movie.m_quizPlaybackController.quizControllerForSlide(_local2);
quizController.startQuestion(_local1._parent["_question_" + _local1.m_questionNumber]);
}
_local1.onRegister();
}
}
}
function Unregister() {
var _local1 = this;
if (_local1.m_rolloverItem && (_local1.m_rolloverItem._visible)) {
_local1.m_rolloverItem.hideRollover();
}
if (_local1.m_isRegistered) {
_local1.m_paused = false;
_local1.m_isRegistered = false;
if (_local1.m_useClickhandler) {
_local1.m_slide.m_movie.m_clickHandler_mc.SpriteUnloaded(_local1);
}
if (((_local1.m_nSubmitKeyCode || (_local1.m_bSubmitShift)) || (_local1.m_bSubmitAlt)) || (_local1.m_bSubmitControl)) {
_local1.m_slide.m_movie.m_keyHandler.SpriteUnloaded(_local1);
}
}
_local1.DoPostUnRegisterStuff();
}
function DoPostUnRegisterStuff() {
}
function SetVisible(setVisible) {
super.SetVisible(setVisible);
if (setVisible) {
}
m_done = false;
}
function onEnterFrame() {
var _local1 = this;
if (!_local1.m_slide.isSlideActive()) {
} else {
if (_local1._visible && (!_local1.m_slide.m_movie.m_disableInteractions)) {
if (_local1.m_isRegistered) {
if (((_local1._parent._currentframe < _local1.inBegin) || (_local1._parent._currentframe > _local1.outEnd)) || (!_local1._parent._visible)) {
_local1.Unregister();
}
} else if (((_local1._parent._currentframe >= _local1.inBegin) && (_local1._parent._currentframe <= _local1.outEnd)) && (_local1._parent._visible)) {
_local1.Register();
}
if (_local1.m_submitOnFrame == _local1._parent._currentframe) {
if (_local1.isDone() == false) {
if (_local1.m_paused == false) {
_local1.m_paused = true;
_local1.m_slide.pauseSlide();
}
}
} else if (_local1.isDone() && (_local1.m_doneOnFrame > _local1._parent._currentframe)) {
_local1.m_done = false;
}
if (_local1.m_submitOnFrame > _local1._parent._currentframe) {
_local1.m_paused = false;
}
} else if (_local1.m_slide.m_movie.m_disableInteractions) {
if (_local1.m_submitOnFrame == _local1._parent._currentframe) {
var isdone = _local1.isDone();
if (_local1.m_paused == false) {
_local1.m_slide.pauseSlide();
}
}
}
super.onEnterFrame();
}
}
function Resume() {
var _local1 = this;
if (_local1.m_done) {
if (_local1.m_paused) {
_local1.m_paused = false;
}
if (_local1.m_correct) {
if (typeof(_local1.succeeded) == "function") {
_local1.succeeded(_local1._parent);
}
if (_local1.m_continueAftersucceeded) {
_local1._parent.resumeSlide();
}
} else {
if (typeof(_local1.failed) == "function") {
_local1.failed(_local1._parent);
}
if (_local1.m_continueAfterfailed) {
_local1._parent.resumeSlide();
}
}
if (_local1.m_canResubmit) {
_local1.m_done = false;
} else {
_local1.Unregister();
}
}
}
function Submit(ok) {
var _local1 = this;
if (_local1.m_slide.m_movie.m_disableInteractions) {
} else if (_local1.isDone()) {
} else {
if (ok && (_local1.m_stopSlideAudioWhenClicked)) {
_local1.m_slide.StopSlideAudio();
}
_local1.m_correct = ok;
if (typeof(_local1.m_interactionAnswer) == "movieclip") {
_local1.m_interactionAnswer.submit(_local1.m_userResponse, _local1.m_correct);
}
var _local2 = false;
_local1.IncrementAttempts();
if (_local1.m_correct) {
if (_local1.m_failure_mc != null) {
_local1.m_failure_mc.hideFeedback();
}
_local2 = true;
if (_local1.m_success_mc != null) {
_local1.m_success_mc.showFeedback();
if (_local1.m_resumeAfterFeedback) {
_local1.m_success_mc.SetPendingResume(_local1);
_local2 = false;
}
}
_local1.setDone();
} else {
if (_local1.m_failure_mc != null) {
_local1.m_failure_mc.showFeedback();
}
if ((_local1.m_maxAttempts > 0) && (_local1.getAttempts() >= _local1.m_maxAttempts)) {
_local2 = true;
if ((_local1.m_failure_mc != null) && (_local1.m_resumeAfterFeedback)) {
_local1.m_failure_mc.SetPendingResume(_local1);
_local2 = false;
}
_local1.setDone();
}
}
if (_local1.isDone()) {
if (typeof(_local1.m_interactionAnswer) == "movieclip") {
_local1.m_interactionAnswer._parent.endQuestion(true);
}
if (_local1.m_trackuserresponse) {
var _local3;
if (_local1.m_correct) {
_local3 = "1";
} else {
_local3 = "0";
}
}
}
if (_local1.m_done) {
if (_local2) {
_local1.Resume();
}
}
}
}
function onRollOver() {
var _local1 = this;
_local1.m_isInside = true;
_local1.DoCheck();
if (_local1.m_rolloverItem) {
_local1.m_rolloverItem.showRollover();
}
super.onRollOver();
}
function onRollOut() {
var _local1 = this;
_local1.m_isInside = false;
_local1.DoCheck();
if (_local1.m_rolloverItem) {
_local1.m_rolloverItem.hideRollover();
}
super.onRollOut();
}
function IsMouseInside() {
if (m_isInside) {
return(true);
}
return(false);
}
var m_paused = false;
var m_isRegistered = false;
var m_done = false;
var m_doneOnFrame = -1;
var m_canResubmit = false;
var m_isSubmitForItem = false;
var m_userResponse = "";
var m_correct = false;
var m_attempts = 0;
var m_interactionAnswer = null;
var m_trackuserresponse = false;
var succeeded = null;
var failed = null;
var m_success_mc = null;
var m_rolloverItem = null;
var m_failure_mc = null;
var m_isInside = false;
var m_questionNumber = -1;
var m_resumeAfterFeedback = true;
var m_stopSlideAudioWhenClicked = false;
}
Symbol 45 MovieClip [__Packages.captivate.monalisa.rdFeedback] Frame 0
class captivate.monalisa.rdFeedback extends captivate.monalisa.rdBase
{
function rdFeedback () {
super();
}
function SetPendingResume(mc) {
m_pendingResume = mc;
}
function showFeedback() {
var _local1 = this;
_local1.currFrame = 0;
if (_local1.m_soundIdx > -1) {
if (_local1._parent.m_isQuestionPoolSWF == true) {
_local1.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0, _local1._parent.m_isQuestionPoolSWF, _local1._parent);
} else {
_local1.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0);
}
}
}
function hideFeedback() {
var _local1 = this;
_local1.currFrame = _local1.outEnd + 10;
if (_local1.m_soundIdx > -1) {
if (_local1._parent.m_isQuestionPoolSWF == true) {
_local1.m_movie.m_soundHandler.DoDeleteItemSound(_local1.m_soundIdx, _local1._parent.m_isQuestionPoolSWF, _local1._parent);
} else {
_local1.m_movie.m_soundHandler.DoDeleteItemSound(_local1.m_soundIdx);
}
}
}
function setMovie(movie) {
m_movie = movie;
}
function onLoad() {
var _local1 = this;
_local1._alpha = _local1.m_alpha;
_local1._visible = false;
_local1.currFrame = _local1.outEnd + 10;
_local1._parent.itemLoaded(_local1);
}
function onEnterFrame() {
var _local1 = this;
if (!_local1.initialized) {
_local1.Initialize();
_local1.initialized = true;
}
_local1.currFrame++;
if ((_local1.currFrame < _local1.inBegin) || (_local1.currFrame >= _local1.outEnd)) {
_local1.m_isIn = false;
if (_local1._visible) {
_local1._visible = false;
if (_local1.m_soundIdx > -1) {
if (_local1._parent.m_isQuestionPoolSWF == true) {
_local1.m_movie.m_soundHandler.DoDeleteItemSound(_local1.m_soundIdx, _local1._parent.m_isQuestionPoolSWF, _local1._parent);
} else {
_local1.m_movie.m_soundHandler.DoDeleteItemSound(_local1.m_soundIdx);
}
}
if (_local1.m_pendingResume) {
_local1.m_pendingResume.Resume();
_local1.m_pendingResume = null;
}
}
} else {
if (!_local1._visible) {
_local1._visible = true;
}
if ((_local1.currFrame >= _local1.inBegin) && (_local1.currFrame < _local1.inEnd)) {
if (_local1.inEffect) {
_local1.inEffect(_local1, _local1.currFrame - _local1.inBegin, _local1.inEnd - _local1.inBegin);
}
_local1.m_isIn = false;
} else if ((_local1.currFrame >= _local1.outBegin) && (_local1.currFrame < _local1.outEnd)) {
if (_local1.outEffect) {
_local1.outEffect(_local1, _local1.currFrame - _local1.outBegin, _local1.outEnd - _local1.outBegin);
}
_local1.m_isIn = false;
} else if (!_local1.m_isIn) {
_local1.m_isIn = true;
_local1._x = _local1.m_left;
_local1._y = _local1.m_top;
_local1._width = _local1.m_width;
_local1._height = _local1.m_height;
_local1._alpha = _local1.m_alpha;
}
}
}
var inEffect = null;
var outEffect = null;
var initialized = false;
var m_movie = null;
var m_pendingResume = null;
}
Symbol 46 MovieClip [__Packages.captivate.monalisa.rdRollover] Frame 0
class captivate.monalisa.rdRollover extends captivate.monalisa.rdBase
{
var _visible;
function rdRollover () {
super();
}
function setSlide(slide) {
m_slide = slide;
}
function setMovie(movie) {
m_movie = movie;
}
function onLoad() {
var _local1 = this;
_local1._visible = false;
_local1._alpha = _local1.m_alpha;
_local1._parent.itemLoaded(_local1);
}
function forceIn() {
var _local1 = this;
_local1.m_state = stateIn;
_local1._visible = true;
_local1.inEffect(_local1, 1, 1);
}
function forceOut() {
m_state = stateOut;
_visible = true;
}
function showRollover() {
var _local1 = this;
if (_local1.m_soundIdx > -1) {
if (_local1.m_slide != null) {
if (_local1.m_slide.m_isQuestionPoolSlide == true) {
_local1.m_slide.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0, _local1.m_slide.m_isQuestionPoolSlide, _local1.m_slide._parent);
} else {
_local1.m_slide.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0);
}
} else if (_local1.m_movie != null) {
if (_local1._parent.m_isQuestionPoolSWF == true) {
_local1.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0, _local1._parent.m_isQuestionPoolSWF, _local1._parent);
} else {
_local1.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0);
}
}
}
switch (_local1.m_state) {
case stateOut :
if (_local1.m_inEffectFrames > 0) {
_local1.m_state = stateIneffect;
_local1.m_effectPos = 0;
_local1.next();
_local1._visible = true;
} else {
_local1.forceIn();
}
return;
case stateIn :
return;
case stateOuteffect :
_local1.m_state = stateIneffect;
_local1.m_effectPos = _local1.m_outEffectFrames - _local1.m_effectPos;
if (_local1.m_outEffectFrames != _local1.m_inEffectFrames) {
_local1.m_effectPos = int((_local1.m_effectPos * _local1.m_inEffectFrames) / _local1.m_outEffectFrames);
if ((_local1.m_inEffectFrames == 0) || (_local1.m_effectPos > _local1.m_inEffectFrames)) {
_local1.forceIn();
}
}
return;
case stateIneffect :
}
}
function hideRollover() {
var _local1 = this;
if (_local1.m_soundIdx > -1) {
if (_local1.m_slide != null) {
if (_local1.m_slide.m_isQuestionPoolSlide == true) {
_local1.m_slide.m_movie.m_soundHandler.DoDeleteItemSound(_local1.m_soundIdx, _local1.m_slide.m_isQuestionPoolSlide, _local1.m_slide._parent);
} else {
_local1.m_slide.m_movie.m_soundHandler.DoDeleteItemSound(_local1.m_soundIdx);
}
} else if (_local1.m_movie != null) {
if (_local1._parent.m_isQuestionPoolSWF == true) {
_local1.m_movie.m_soundHandler.DoDeleteItemSound(_local1.m_soundIdx, _local1._parent.m_isQuestionPoolSWF, _local1._parent);
} else {
_local1.m_movie.m_soundHandler.DoDeleteItemSound(_local1.m_soundIdx);
}
}
}
switch (_local1.m_state) {
case stateOut :
return;
case stateIn :
_local1.m_state = stateOuteffect;
_local1.m_effectPos = 0;
return;
case stateOuteffect :
return;
case stateIneffect :
_local1.m_state = stateOuteffect;
_local1.m_effectPos = _local1.m_inEffectFrames - _local1.m_effectPos;
if (_local1.m_outEffectFrames == _local1.m_inEffectFrames) {
break;
}
_local1.m_effectPos = int((_local1.m_effectPos * _local1.m_outEffectFrames) / _local1.m_inEffectFrames);
if (_local1.m_outEffectFrames != 0) {
break;
}
_local1.m_state = stateOut;
_local1._visible = false;
}
}
function next() {
var _local1 = this;
switch (_local1.m_state) {
case stateOut :
return;
case stateIn :
return;
case stateIneffect :
_local1.m_effectPos++;
if (_local1.m_effectPos >= _local1.m_inEffectFrames) {
_local1.m_state = stateIn;
} else {
_local1.inEffect(_local1, _local1.m_effectPos, _local1.m_inEffectFrames);
}
return;
case stateOuteffect :
_local1.m_effectPos++;
if (_local1.m_effectPos >= _local1.m_outEffectFrames) {
_local1.m_state = stateOut;
_local1._visible = false;
} else {
_local1.outEffect(_local1, _local1.m_effectPos, _local1.m_outEffectFrames);
}
}
}
function onEnterFrame() {
var _local1 = this;
if (!_local1.initialized) {
_local1.Initialize();
_local1.initialized = true;
}
_local1.next();
}
var inEffect = null;
var outEffect = null;
var initialized = false;
var m_slide = null;
var m_movie = null;
static var stateOut = 0;
static var stateIn = 1;
static var stateIneffect = 2;
static var stateOuteffect = 3;
var m_state = stateOut;
var m_effectPos = 0;
}
Symbol 47 MovieClip [__Packages.captivate.monalisa.rdTextEntry] Frame 0
class captivate.monalisa.rdTextEntry extends captivate.monalisa.rdInteraction
{
var _target, strInputFocus, _parent, reset_txt;
function rdTextEntry () {
super();
}
function SetVisible(bool) {
if (bool) {
DoInit();
}
super.SetVisible(bool);
}
function SetFocus(removeSelection) {
var _local1 = _target;
_local1 = _local1 + "/EditField_txt";
Selection.setFocus(_local1);
if (removeSelection) {
Selection.setSelection(1000, 1000);
}
strInputFocus = Selection.getFocus();
}
function DoInit() {
_parent.rdStartTimer();
SetFocus(true);
}
function onRelease() {
SetFocus(false);
super.onRelease();
}
function DoCompare() {
var _local3 = this;
var UserInput_str = _local3.input_txt;
_local3.m_userResponse = UserInput_str;
if (!_local3.bCaseSensitive) {
UserInput_str = UserInput_str.toLowerCase();
}
var _local2;
_local2 = 0;
while (_local2 < _local3.CorrectAnswers_array.length) {
var _local1 = _local3.CorrectAnswers_array[_local2];
if (!_local3.bCaseSensitive) {
_local1 = _local1.toLowerCase();
}
if ((_local1 == UserInput_str) || ((length(_local1) == 0) && (length(UserInput_str) == 0))) {
return(true);
}
_local2++;
}
return(false);
}
function Submit(bOk) {
var _local1 = bOk;
if (_local1) {
_local1 = DoCompare();
super.Submit(_local1);
if (!_local1) {
SetFocus(true);
}
}
}
function onEnterFrame() {
var _local1 = this;
super.onEnterFrame();
if (((_local1.IsParentActive() && (_local1.getParentCurrFrame() >= _local1.inBegin)) && (_local1.getParentCurrFrame() < _local1.outEnd)) && (_local1.bSetFocus)) {
if (!_local1.bRetainFlag) {
_local1.input_txt = _local1.reset_txt;
}
_local1.bSetFocus = false;
_local1.SetFocus(true);
}
if ((((!_local1.IsParentActive()) || (_local1.getParentCurrFrame() < _local1.inBegin)) || (_local1.getParentCurrFrame() > _local1.outEnd)) && (!_local1.bSetFocus)) {
_local1.bSetFocus = true;
}
}
function onRegister() {
var _local2 = this;
if (typeof(_local2.m_interactionAnswer) == "movieclip") {
_local2.m_interactionAnswer.answerID = "A";
var _local1;
_local1 = 0;
while (_local1 < _local2.CorrectAnswers_array.length) {
var _local3 = _local2.CorrectAnswers_array[_local1];
_local2.m_interactionAnswer.correctAnswers.push(_local3);
_local1++;
}
}
}
function onLoad() {
reset_txt = input_txt;
super.onLoad();
}
var input_txt = "";
var deb = 0;
var bSetFocus = true;
var bRetainFlag = true;
}
Symbol 48 MovieClip [__Packages.captivate.monalisa.rdProgressInd] Frame 0
class captivate.monalisa.rdProgressInd extends MovieClip
{
var m_progressTextFormat;
function rdProgressInd () {
super();
m_progressTextFormat = new TextFormat();
}
function onLoad() {
var _local1 = this;
_local1.createTextField("m_progressTextField", 1, 0, 2, _local1.m_width, _local1.m_height - 2);
_local1.m_progressTextField.multiline = false;
_local1.m_progressTextField.autoSize = "left";
_local1.m_progressTextField.border = false;
_local1.m_progressTextField.selectable = false;
_local1.m_progressTextField.setNewTextFormat(_local1.m_progressTextFormat);
}
function setProgressText(currentQuesNum, totalQues) {
var _local1 = this;
var _local2 = _local1.m_progressText.split(" ");
if (_local1.m_progressIndType == 0) {
_local1.m_progressTextField.text = (((((_local2[0] + " ") + currentQuesNum) + " ") + _local2[2]) + " ") + totalQues;
} else {
_local1.m_progressTextField.text = (_local2[0] + " ") + currentQuesNum;
}
_local1.m_progressTextField.setNewTextFormat(_local1.m_progressTextFormat);
}
var m_progressText = "";
var m_width = 100;
var m_height = 100;
var m_progressIndType = 0;
}
Symbol 49 MovieClip [__Packages.captivate.monalisa.rdSwfLoader] Frame 0
class captivate.monalisa.rdSwfLoader extends captivate.monalisa.rdItem
{
var m_isGlobal, _parent;
function rdSwfLoader () {
super();
}
function getLoadBase() {
var _local1 = this;
if (_local1.__loadbase == undefined) {
var _local2 = _local1._url.indexOf("?");
if (_local2 > 0) {
_local1.__loadbase = _local1._url.substring(0, Math.max(_local1._url.lastIndexOf("/", _local2), _local1._url.lastIndexOf("\\", _local2)) + 1);
} else {
_local1.__loadbase = _local1._url.substring(0, Math.max(_local1._url.lastIndexOf("/"), _local1._url.lastIndexOf("\\")) + 1);
}
}
return(_local1.__loadbase);
}
function onEnterFrame() {
var _local1 = this;
if (((((_local1.childswf_mc != null) && (_local1.childswf_mc != undefined)) && (_local1.m_childSwfLoaded)) && (_local1.m_isPlaying)) && (_local1.m_resize)) {
_local1.m_resize = false;
}
if ((!_local1.m_childSwfLoaded) && (!_local1.m_childSwfLoadFail)) {
if (!_local1.m_isGlobal) {
if (_local1.getParent()._visible) {
_local1.pauseParent();
return;
}
// unexpected jump
}
if ((_local1.getParentCurrFrame() >= _local1.inBegin) && (_local1.getParentCurrFrame() <= _local1.outEnd)) {
_local1.pauseParent();
} else {
if (_local1.m_sync) {
var _local2 = (_local1.getParentCurrFrame() - _local1.nEnterFrame) + 2;
_local1.doSync(_local2, false);
if (_local1.m_pendingStop) {
_local1.m_pendingStop = false;
_local1.m_swf_mc.gotoAndStop(1);
}
} else {
if ((!_local1._parent._visible) && (_local1._visible)) {
_local1.SetVisible(false);
return;
}
if (!_local1.m_loop) {
if ((_local1.m_swf_mc._currentframe >= _local1.nTotalFrames) && (_local1._parent._visible && (_local1._visible))) {
_local1.m_swf_mc.gotoAndStop(_local1.nTotalFrames);
}
}
if (((_local1.m_playThis && (_local1.m_isPlaying)) && (_local1.childswf_mc != null)) && (_local1.childswf_mc != undefined)) {
_local1.myTrace((((("_currentframe = " + _local1._currentframe) + " m_swf_mc._currentframe = ") + _local1.m_swf_mc._currentframe) + " nTotalFrames = ") + _local1.nTotalFrames);
if ((_local1.m_swf_mc._currentframe >= _local1.nTotalFrames) && (_local1._parent._visible && (_local1._visible))) {
_local1.m_swf_mc.gotoAndPlay(1);
}
}
}
super.onEnterFrame();
}
} else {
if (_local1.m_sync) {
var _local2 = (_local1.getParentCurrFrame() - _local1.nEnterFrame) + 2;
_local1.doSync(_local2, false);
if (_local1.m_pendingStop) {
_local1.m_pendingStop = false;
_local1.m_swf_mc.gotoAndStop(1);
}
} else {
if ((!_local1._parent._visible) && (_local1._visible)) {
_local1.SetVisible(false);
return;
}
if (!_local1.m_loop) {
if ((_local1.m_swf_mc._currentframe >= _local1.nTotalFrames) && (_local1._parent._visible && (_local1._visible))) {
_local1.m_swf_mc.gotoAndStop(_local1.nTotalFrames);
}
}
if (((_local1.m_playThis && (_local1.m_isPlaying)) && (_local1.childswf_mc != null)) && (_local1.childswf_mc != undefined)) {
_local1.myTrace((((("_currentframe = " + _local1._currentframe) + " m_swf_mc._currentframe = ") + _local1.m_swf_mc._currentframe) + " nTotalFrames = ") + _local1.nTotalFrames);
if ((_local1.m_swf_mc._currentframe >= _local1.nTotalFrames) && (_local1._parent._visible && (_local1._visible))) {
_local1.m_swf_mc.gotoAndPlay(1);
}
}
}
super.onEnterFrame();
}
}
function doSync(frame, doPlay) {
var _local1 = this;
var _local2 = frame;
if (_local1.m_childSwfLoaded == false) {
} else if (!_local1._visible) {
_local1.m_bNeedsToStop = false;
if ((!_local1.m_sync) && (!doPlay)) {
var _local3 = _local1.getMovie();
if (((null != _local3) && (undefined != _local3.m_movie_mc.rdcmndGotoSlide)) && (-2 == _local3.m_movie_mc.rdcmndGotoSlide)) {
_local1.m_bNeedsToStop = true;
}
}
} else if (_local1.m_sync) {
var thisItemDoPlay = doPlay;
if (_local2 > _local1.nTotalFrames) {
if (_local1.m_loop) {
_local2 = (_local2 % _local1.nTotalFrames) + 1;
} else {
_local2 = _local1.nTotalFrames;
thisItemDoPlay = false;
}
}
if (thisItemDoPlay) {
_local1.m_swf_mc.gotoAndPlay(_local2);
} else {
_local1.m_swf_mc.gotoAndStop(_local2);
}
} else if (doPlay != _local1.m_isPlaying) {
_local1.m_isPlaying = doPlay;
if (doPlay) {
if (_local1.m_swf_mc._currentframe >= _local1.nTotalFrames) {
} else {
_local1.m_swf_mc.play();
}
} else {
_local1.m_swf_mc.stop();
}
}
}
function gotoFrame(frame, doPlay, force) {
var _local1 = this;
trace("rdSWFLoader gotoFrame _parent._parent = " + _local1._parent._parent);
if (_local1.m_slideFrame > 0) {
_local1._parent._parent.gotoAndPlay(_local1.m_slideFrame);
}
_local1.doSync(frame, doPlay);
}
function pauseParent() {
var _local1 = this;
_local1.myTrace("pauseParent() - pausing parent movie clip ------");
if (_local1.m_isGlobal) {
var _local3 = _local1._parent.movie;
if (_local3 && (!_local3.m_paused)) {
_local1.myTrace("pauseParent() - pausing movie ->" + _local1._parent.movie);
_local3.pauseMovie();
}
} else if (!_local1._parent.IsSlidelet()) {
var _local2 = _local1._parent;
if (_local2 && (!_local2.m_paused)) {
_local1.myTrace("pauseParent() - pausing slide ->" + _local2);
_local2.pauseSlide();
}
} else {
var slidelet = _local1._parent;
if (slidelet) {
slidelet.PauseSlidelet();
}
}
}
function resumeParent() {
var _local1 = this;
_local1.myTrace("resumeParent() - resuming parent movie clip ------this=" + _local1);
if (_local1.m_isGlobal) {
var _local3 = _local1._parent.movie;
if (_local3 && (_local3.m_paused)) {
_local1.myTrace("resumeParent() - resuming movie ->" + _local3);
_local3.resumeMovie();
}
} else if (!_local1._parent.IsSlidelet()) {
var _local2 = _local1._parent;
if (_local2 && (_local2.m_paused)) {
_local1.myTrace("resumeParent() - resuming slide ->" + _local2);
_local2.resumeSlide();
}
} else {
var slidelet = _local1._parent;
if (slidelet) {
slidelet.ResumeSlidelet();
}
}
}
function getMovie() {
var _local1 = this;
if (_local1.m_isGlobal) {
return(_local1._parent.movie);
}
if (!_local1._parent.IsSlidelet()) {
return(_local1._parent._parent.movie);
}
return(_local1._parent._parent._parent.movie);
}
function getParent() {
var _local1 = this;
if (_local1.m_isGlobal) {
return(_local1._parent.movie);
}
return(_local1._parent);
}
function onLoad() {
var _local1 = this;
if (_local1.getParent()._visible) {
_local1.pauseParent();
}
if ((_local1.childswf_mc == null) || (_local1.childswf_mc == undefined)) {
_local1.createEmptyMovieClip("childswf_mc", 999);
var _local2 = new Object();
_local2.onLoadStart = function (target_mc) {
trace(">> loadListener.onLoadStart()");
trace(">> =============================");
trace(((">> target_mc = " + target_mc) + " this = ") + this);
};
_local2.onLoadError = function (target_mc, errorCode, httpStatus) {
var _local1 = target_mc;
trace(">> loadListener.onLoadError()");
trace(">> ==========================");
trace(">> errorCode: " + errorCode);
trace(">> httpStatus: " + httpStatus);
_local1._parent.m_childSwfLoadFail = true;
if (!_local1._parent.m_isGlobal) {
if (_local1._parent.getParent()._visible) {
_local1._parent.resumeParent();
}
} else {
_local1._parent.resumeParent();
}
};
_local2.onLoadComplete = function (target_mc, httpStatus) {
var _local1 = target_mc;
trace(">> loadListener.onLoadComplete() target_mc._parent._parent = " + _local1._parent._parent);
trace(">> =============================");
trace(">> target_mc._width: " + _local1._width);
trace(">> httpStatus: " + httpStatus);
if ((!_local1._parent._parent._visible) || (!_local1._parent._visible)) {
_local1.stop();
}
};
_local2.onLoadInit = function (target_mc) {
var _local1 = target_mc;
trace(">> loadListener.onLoadInit()");
trace(">> ==========================");
_local1._parent.m_childSwfLoaded = true;
if (!_local1._parent.m_isGlobal) {
trace("target_mc._parent.getParent() = " + _local1._parent.getParent());
trace("target_mc._parent.getParent()._visible = " + _local1._parent.getParent()._visible);
if (_local1._parent.getParent()._visible) {
var _local3 = true;
var parentOfSWFLoader = _local1._parent.getParent();
var swfLoader_mc = _local1._parent;
if (!parentOfSWFLoader.IsSlidelet()) {
var _local2 = swfLoader_mc.getMovie();
if (((null != _local2) && (undefined != _local2.m_movie_mc.rdcmndGotoSlide)) && (-2 == _local2.m_movie_mc.rdcmndGotoSlide)) {
_local3 = false;
}
}
trace("bShouldResume = " + _local3);
if (_local3) {
_local1._parent.resumeParent();
} else {
swfLoader_mc.m_bNeedsToStop = true;
}
}
} else {
var _local3 = true;
var parentOfSWFLoader = _local1._parent.getParent();
var swfLoader_mc = _local1._parent;
var _local2 = swfLoader_mc.getMovie();
if (((null != _local2) && (undefined != _local2.m_movie_mc.rdcmndGotoSlide)) && (-2 == _local2.m_movie_mc.rdcmndGotoSlide)) {
_local3 = false;
}
if (_local3) {
_local1._parent.resumeParent();
}
}
trace(">> loadListener.onLoadInit() this.m_childSwfLoaded = " + this.m_childSwfLoaded);
};
_local1.m_mcLoader = new MovieClipLoader();
_local1.m_mcLoader.addListener(_local2);
_local1.m_chidSwfName = _local1.getLoadBase() + _local1.m_chidSwfName;
trace("m_chidSwfName = " + _local1.m_chidSwfName);
_local1.m_mcLoader.loadClip(_local1.m_chidSwfName, _local1.childswf_mc);
_local1.m_swf_mc = _local1.childswf_mc;
trace((("childswf_mc = " + _local1.childswf_mc) + " m_swf_mc = ") + _local1.m_swf_mc);
}
super.onLoad();
var _local3 = _local1.stop();
var _local2 = _local3;
_local1 = _local2;
}
function SetVisible(setVisible) {
var _local1 = this;
trace((("this = " + _local1) + " SetVisible:: setVisible = ") + setVisible);
trace(">> =========================================================");
if (setVisible) {
if ((!_local1._parent._visible) || (_local1._visible == true)) {
return;
}
_local1.m_isPlaying = true;
trace("rdSWFLoader::SetVisible m_playThis = " + _local1.m_playThis);
if (_local1.m_playThis) {
if ((_local1.childswf_mc != null) && (_local1.childswf_mc != undefined)) {
if (_local1.m_childSwfLoaded) {
trace(("SetVisible ========going for play with m_playThis _currentframe = " + _local1._currentframe) + " =========");
trace((((("SetVisible this._visible = " + _local1._visible) + " childswf_mc._visible = ") + _local1.childswf_mc._visible) + " m_swf_mc._visible = ") + _local1.m_swf_mc._visible);
trace("rdSWFLoader::%%%%%%Taking movie to frame 1");
trace("SetVisible(true):childswf_mc.gotoAndPlay(1)");
_local1.childswf_mc.gotoAndPlay(1);
_local1.childswf_mc._visible = true;
} else {
_local1._visible = false;
return;
}
}
} else if ((_local1.childswf_mc != null) && (_local1.childswf_mc != undefined)) {
trace("rdSWFLoader::SetVisible m_childSwfLoaded = " + _local1.m_childSwfLoaded);
if (_local1.m_childSwfLoaded) {
trace("SetVisible ========going for play without m_playThis=========");
var _local3 = true;
if (_local1.m_bNeedsToStop) {
var _local2 = _local1.getMovie();
if (((null != _local2) && (undefined != _local2.m_movie_mc.rdcmndGotoSlide)) && (-2 == _local2.m_movie_mc.rdcmndGotoSlide)) {
_local3 = false;
}
_local1.m_bNeedsToStop = false;
}
trace((("m_bNeedsToStop = " + _local1.m_bNeedsToStop) + "bToGoAndPlay = ") + _local3);
if (_local3) {
trace("rdSWFLoader::^^^^^Taking movie to frame 1");
_local1.childswf_mc.gotoAndPlay(1);
} else {
_local1.m_isPlaying = false;
_local1.childswf_mc.gotoAndStop(1);
}
_local1.childswf_mc._visible = true;
// unexpected jump
}
_local1._visible = false;
} else {
// unexpected jump
if (!setVisible) {
if (_local1._visible == false) {
return;
}
if (((_local1.childswf_mc != null) && (_local1.childswf_mc != undefined)) && (_local1.childswf_mc._visible)) {
trace("rdSWFLoader::SetVisible m_childSwfLoaded = " + _local1.m_childSwfLoaded);
if (_local1.m_childSwfLoaded) {
trace("rdSWFLoader::&&&&&&Taking movie to frame 1");
trace("SetVisible FALSE========going for stop=========");
_local1.childswf_mc.gotoAndStop(1);
}
}
}
super.SetVisible(setVisible);
trace((("After super this = " + _local1) + " SetVisible:: setVisible = ") + setVisible);
trace(">> =========================================================");
}
} else if (!setVisible) {
if (_local1._visible == false) {
return;
}
if (((_local1.childswf_mc != null) && (_local1.childswf_mc != undefined)) && (_local1.childswf_mc._visible)) {
trace("rdSWFLoader::SetVisible m_childSwfLoaded = " + _local1.m_childSwfLoaded);
if (_local1.m_childSwfLoaded) {
trace("rdSWFLoader::&&&&&&Taking movie to frame 1");
trace("SetVisible FALSE========going for stop=========");
_local1.childswf_mc.gotoAndStop(1);
}
}
}
super.SetVisible(setVisible);
trace((("After super this = " + _local1) + " SetVisible:: setVisible = ") + setVisible);
trace(">> =========================================================");
}
function getParentCurrFrame() {
if (m_isGlobal) {
return(_parent.movie.m_currFrame);
}
return(super.getParentCurrFrame());
}
function myAlert(msg) {
}
function myTrace(msg) {
}
var m_isPlaying = false;
var m_init_swf_mc = false;
var m_passedFirstFrame = false;
var m_slideFrame = 0;
var childswf_mc = null;
var m_mcLoader = null;
var m_movieWasPaused = false;
var m_childSwfLoaded = false;
var m_childSwfLoadFail = false;
var m_resize = true;
var __loadbase = undefined;
var m_bNeedsToStop = false;
}
Symbol 50 MovieClip [__Packages.captivate.monalisa.rdRolloverArea] Frame 0
class captivate.monalisa.rdRolloverArea extends captivate.monalisa.rdItem
{
function rdRolloverArea () {
super();
}
function onRollOut() {
m_rolloverItem.hideRollover();
}
function onRollOver() {
m_rolloverItem.showRollover();
}
var m_rolloverItem = null;
}
Symbol 51 MovieClip [__Packages.captivate.monalisa.rdButton] Frame 0
class captivate.monalisa.rdButton extends captivate.monalisa.rdInteraction
{
var _target, m_userResponse;
function rdButton () {
super();
}
function onSetFocus(oldFocus) {
var focusPath = _target;
focusPath = focusPath + "/btnEnterJ";
if (typeof(eval (focusPath)) == "object") {
Selection.setFocus(focusPath);
}
}
function onPress() {
m_isDown = true;
DoCheck();
}
function onRelease() {
m_isDown = false;
DoCheck();
}
function onReleaseOutside() {
m_isDown = false;
DoCheck();
}
function Submit(bOk) {
if (bOk) {
m_userResponse = "1";
} else {
m_userResponse = "0";
}
super.Submit(bOk);
}
function DoCheck() {
var _local1 = this;
if (_local1.m_slide.m_movie.m_disableInteractions) {
} else if (_local1.IsMouseInside()) {
if (_local1.m_slide.m_movie.m_clickHandler_mc.IsMouseDown()) {
_local1.gotoAndPlay(15);
} else {
_local1.gotoAndPlay(10);
}
} else {
_local1.gotoAndPlay(5);
}
}
function onRegister() {
var _local1 = this;
if (typeof(_local1.m_interactionAnswer) == "movieclip") {
_local1.m_interactionAnswer.answerID = "1";
_local1.m_interactionAnswer.correctAnswers.push("1");
}
}
function DoPostUnRegisterStuff() {
var _local1 = this;
if (_local1.IsMouseInside()) {
_local1.m_isInside = false;
_local1.DoCheck();
}
}
var m_isDown = false;
}
Symbol 52 MovieClip [__Packages.captivate.monalisa.rdSwfSlide] Frame 0
class captivate.monalisa.rdSwfSlide extends captivate.monalisa.rdSlide
{
var m_swf_mc;
function rdSwfSlide () {
super();
}
function onEnterFrame() {
var _local1 = this;
if (_local1.m_swf_mc._currentframe == _local1.nTotalFrames) {
if (_local1.m_loop) {
_local1.m_swf_mc.gotoAndPlay(1);
} else {
_local1.m_swf_mc.stop();
}
}
super.onEnterFrame();
}
function startSlide() {
super.startSlide();
m_swf_mc.gotoAndPlay(1);
}
function hideSlide() {
super.hideSlide();
if (typeof(m_swf_mc) == "movieclip") {
m_swf_mc.stop();
}
}
function slideCompleted() {
super.slideCompleted();
if (typeof(m_swf_mc) == "movieclip") {
m_swf_mc.stop();
}
}
function syncSubMovieClips(frame, doPlay) {
var _local1 = frame;
var _local2 = this;
var _local3 = doPlay;
if (_local1 > _local2.nTotalFrames) {
if (_local2.m_loop) {
_local1 = (_local1 % _local2.nTotalFrames) + 1;
} else {
_local1 = _local2.nTotalFrames;
_local3 = false;
}
}
if (_local3) {
_local2.m_swf_mc.gotoAndPlay(_local1);
} else {
_local2.m_swf_mc.gotoAndStop(_local1);
}
}
}
Symbol 53 MovieClip [__Packages.captivate.monalisa.rdZoomItem] Frame 0
class captivate.monalisa.rdZoomItem extends MovieClip
{
function rdZoomItem () {
super();
}
function InitZoomItemData() {
var _local1 = this;
if (typeof(_local1.dupTarget_mc) == "movieclip") {
} else {
_local1.movieWidth = _local1._parent.movieWidth;
_local1.movieHeight = _local1._parent.movieHeight;
_local1.targetMC = _local1._parent.targetMC;
_local1.mask_mc = _local1.mask_mc;
_local1.border_mct = _local1.border_mct;
_local1.border_mcb = _local1.border_mcb;
_local1.border_mcl = _local1.border_mcl;
_local1.border_mcr = _local1.border_mcr;
_local1.zoomStarted = false;
_local1.mask_mc._visible = false;
_local1.border_mct._visible = false;
_local1.border_mcb._visible = false;
_local1.border_mcl._visible = false;
_local1.border_mcr._visible = false;
_local1.borderClrT = new Color(_local1.border_mct);
_local1.borderClrB = new Color(_local1.border_mcb);
_local1.borderClrL = new Color(_local1.border_mcl);
_local1.borderClrR = new Color(_local1.border_mcr);
var widthScale = ((_local1.desWidth - (2 * _local1.desBorderWidth)) / _local1.srcWidth);
var _local3 = (_local1.desHeight - (2 * _local1.desBorderWidth)) / _local1.srcHeight;
var _local2 = _local1.zoomFor;
var leftStep = (((_local1.srcLeft - _local1.m_maskXOffset) * (widthScale - 1)) / _local2);
var topStep = (((_local1.srcTop - _local1.m_maskYOffset) * (_local3 - 1)) / _local2);
_local1.widthStep = (_local1.srcWidth * (widthScale - 1)) / _local2;
_local1.heightStep = (_local1.srcHeight * (_local3 - 1)) / _local2;
var disXStep = (((_local1.desLeft + _local1.desBorderWidth) - _local1.srcLeft) / _local2);
var disYStep = (((_local1.desTop + _local1.desBorderWidth) - _local1.srcTop) / _local2);
_local1.disLeft = disXStep - leftStep;
_local1.disTop = disYStep - topStep;
_local1.xStep = leftStep + _local1.disLeft;
_local1.yStep = topStep + _local1.disTop;
_local1.movieWidthStep = (_local1.movieWidth * (widthScale - 1)) / _local2;
_local1.movieHeightStep = (_local1.movieHeight * (_local3 - 1)) / _local2;
_local1.borderWidthStep = (_local1.desBorderWidth - _local1.srcBorderWidth) / _local2;
_local1.inEndAlpha = 100;
_local1.outBeginAlpha = 100 - _local1.desFillAlpha;
var fadeInFrms = (_local1.inEnd - _local1.inBegin);
if (fadeInFrms > 3) {
_local1.inAlphaStep = _local1.inEndAlpha / fadeInFrms;
}
var fadeOutFrms = (_local1.outEnd - _local1.outBegin);
if (fadeOutFrms > 3) {
_local1.outAlphaStep = _local1.outBeginAlpha / fadeOutFrms;
}
_local1.alphaStepFillClr = (_local1.desFillAlpha - _local1.srcFillAlpha) / _local2;
_local1.sR = _local1.srcBorderClr >> 16;
_local1.sG = (_local1.srcBorderClr & 65280) >> 8;
_local1.sB = _local1.srcBorderClr & 255;
var dR = (_local1.desBorderClr >> 16);
var dG = ((_local1.desBorderClr & 65280) >> 8);
var dB = (_local1.desBorderClr & 255);
_local1.bcRStep = (dR - _local1.sR) / _local2;
_local1.bcGStep = (dG - _local1.sG) / _local2;
_local1.bcBStep = (dB - _local1.sB) / _local2;
_local1.sfcR = _local1.srcFillClr >> 16;
_local1.sfcG = (_local1.srcFillClr & 65280) >> 8;
_local1.sfcB = _local1.srcFillClr & 255;
var dfcR = (_local1.desFillClr >> 16);
var dfcG = ((_local1.desFillClr & 65280) >> 8);
var dfcB = (_local1.desFillClr & 255);
_local1.fcRStep = (dfcR - _local1.sfcR) / _local2;
_local1.fcGStep = (dfcG - _local1.sfcG) / _local2;
_local1.fcBStep = (dfcB - _local1.sfcB) / _local2;
}
}
function GetRGBColorNumber(r, g, b) {
var _local1 = r << 16;
_local1 = _local1 + (g << 8);
_local1 = _local1 + b;
return(_local1);
}
function CreateDupMovieClip() {
var _local1 = this;
if (_local1.dupTarget_Depth == 0) {
_local1.dupTarget_Depth = ++_local1._parent.dupMCLayer;
}
_local1.dupTarget_mc = _local1.targetMC.duplicateMovieClip((_local1.targetMC._name + "_dupMC_") + _local1.dupTarget_Depth, _local1.dupTarget_Depth);
if (!_local1.IsTargetMCSlidelet()) {
_local1.dupTarget_mc.isDupSlide = true;
} else {
var _local2 = _local1.zoomFor;
_local1.m_extraX = _local1.targetMC._width - _local1.dupTarget_mc._width;
_local1.m_extraY = _local1.targetMC._height - _local1.dupTarget_mc._height;
if (_local1.m_extraX > 0) {
_local1.m_extraXStep = _local1.m_extraX / _local2;
}
if (_local1.m_extraY > 0) {
_local1.m_extraYStep = _local1.m_extraY / _local2;
}
_local1.dupTarget_mc.SetIsDuplicate(true);
_local1.targetMC.AddZoomClip(_local1);
}
_local1.dupTarget_mc.setMask(_local1.mask_mc);
_local1.dupTarget_mc._visible = false;
_local1.fillClr_mc = _local1.createEmptyMovieClip("", _local1.dupTarget_Depth + 1);
_local1.fillClr_mc._visible = false;
var _local3 = new Sound(_local1.dupTarget_mc);
_local3.setVolume(0);
_local1.ResetMaskPosition();
}
function DrawFillClrRect(fillClr, fillAlpha, left, top, width, height, bFadeout) {
var _local1 = this;
var _local2 = top;
var _local3 = left;
var curFA = (bFadeout ? (fillAlpha) : 100);
if (_local1.IsTargetMCSlidelet()) {
curFA = fillAlpha;
}
_local1.fillClr_mc.clear();
_local1.fillClr_mc.beginFill(fillClr, curFA);
_local1.fillClr_mc.moveTo(_local3, _local2);
_local1.fillClr_mc.lineTo(_local3 + width, _local2);
_local1.fillClr_mc.lineTo(_local3 + width, _local2 + height);
_local1.fillClr_mc.lineTo(_local3, _local2 + height);
_local1.fillClr_mc.lineTo(_local3, _local2);
_local1.fillClr_mc.endFill();
_local1.fillClr_mc._x = _local1.mask_mc._x;
_local1.fillClr_mc._y = _local1.mask_mc._y;
_local1.fillClr_mc._width = _local1.mask_mc._width;
_local1.fillClr_mc._height = _local1.mask_mc._height;
_local1.dupTarget_mc._alpha = (bFadeout ? (fillAlpha) : (100 - fillAlpha));
}
function StartZoomItem() {
var _local1 = this;
if (_local1.zoomStarted) {
} else {
if (_local1.IsTargetMCSlidelet()) {
_local1.dupTarget_mc.StartPlaying(null);
}
_local1.border_mct._visible = true;
_local1.border_mcb._visible = true;
_local1.border_mcl._visible = true;
_local1.border_mcr._visible = true;
_local1.dupTarget_mc._visible = true;
_local1.fillClr_mc._visible = true;
_local1.ResetMaskPosition();
_local1.zoomStarted = true;
}
}
function StopZoomItem() {
var _local1 = this;
if (!_local1.zoomStarted) {
} else {
if (typeof(_local1.dupTarget_mc) == "movieclip") {
_local1.fillClr_mc.removeMovieClip();
_local1.fillClr_mc = null;
_local1.dupTarget_mc.setMask(null);
_local1.dupTarget_mc.removeMovieClip();
_local1.dupTarget_mc = null;
}
_local1.border_mct._visible = false;
_local1.border_mcb._visible = false;
_local1.border_mcl._visible = false;
_local1.border_mcr._visible = false;
_local1.mask_mc._visible = false;
_local1.zoomStarted = false;
}
}
function SyncZoomItem() {
var _local1 = this;
var _local2 = _local1.GetTargetMCCurrentFrame();
if ((_local1.IsTargetMCPlaying() && (_local2 >= _local1.inBegin)) && (_local2 < _local1.outEnd)) {
if (typeof(_local1.dupTarget_mc) != "movieclip") {
_local1.CreateDupMovieClip();
} else {
if (!_local1.zoomStarted) {
_local1.StartZoomItem();
}
if (_local1.dupTarget_mc._currentframe != _local2) {
if (_local1.IsTargetMCSlidelet()) {
_local1.dupTarget_mc.SetCurrentFrame(_local2);
}
_local1.dupTarget_mc.gotoAndPlay(_local2);
}
if ((_local2 - _local1.inBegin) <= _local1.zoomFor) {
_local1.ScaleZoomItem(_local2);
}
if (_local2 >= _local1.outBegin) {
var _local3 = _local1.outBeginAlpha - ((_local2 - _local1.outBegin) * _local1.outAlphaStep);
_local1.SetAlpha(_local3);
_local1.DrawFillClrRect(_local1.desFillClr, _local3, 0, 0, 10, 10, true);
}
}
} else {
_local1.StopZoomItem();
}
}
function ResetMaskPosition() {
var _local1 = this;
_local1.dupTarget_mc._x = _local1.targetMC._x;
_local1.dupTarget_mc._y = _local1.targetMC._y;
_local1.dupTarget_mc._width = _local1.movieWidth + _local1.m_extraX;
_local1.dupTarget_mc._height = _local1.movieHeight + _local1.m_extraY;
_local1.mask_mc._x = _local1.srcLeft;
_local1.mask_mc._y = _local1.srcTop;
_local1.mask_mc._width = _local1.srcWidth;
_local1.mask_mc._height = _local1.srcHeight;
_local1.borderClrT.setRGB(_local1.srcBorderClr);
_local1.borderClrB.setRGB(_local1.srcBorderClr);
_local1.borderClrL.setRGB(_local1.srcBorderClr);
_local1.borderClrR.setRGB(_local1.srcBorderClr);
_local1.SyncBorderAndItem(0);
}
function SyncBorderAndItem(fD) {
var _local1 = this;
var _local3 = fD;
var _local2 = _local1.srcBorderWidth + (_local3 * _local1.borderWidthStep);
_local1.border_mct._x = _local1.mask_mc._x - _local2;
_local1.border_mct._y = _local1.mask_mc._y - _local2;
_local1.border_mct._width = _local1.mask_mc._width + (2 * _local2);
_local1.border_mct._height = _local2;
_local1.border_mcb._x = _local1.mask_mc._x - _local2;
_local1.border_mcb._y = _local1.mask_mc._y + _local1.mask_mc._height;
_local1.border_mcb._width = _local1.mask_mc._width + (2 * _local2);
_local1.border_mcb._height = _local2;
_local1.border_mcl._x = _local1.mask_mc._x - _local2;
_local1.border_mcl._y = _local1.mask_mc._y;
_local1.border_mcl._width = _local2;
_local1.border_mcl._height = _local1.mask_mc._height;
_local1.border_mcr._x = _local1.mask_mc._x + _local1.mask_mc._width;
_local1.border_mcr._y = _local1.mask_mc._y;
_local1.border_mcr._width = _local2;
_local1.border_mcr._height = _local1.mask_mc._height;
if ((_local3 + _local1.inBegin) < _local1.outBegin) {
var fc = _local1.GetRGBColorNumber(_local1.sfcR + (_local3 * _local1.fcRStep), _local1.sfcG + (_local3 * _local1.fcGStep), _local1.sfcB + (_local3 * _local1.fcBStep));
var fa = (_local1.srcFillAlpha + (_local3 * _local1.alphaStepFillClr));
_local1.DrawFillClrRect(fc, fa, 0, 0, 10, 10, false);
}
var bc = _local1.GetRGBColorNumber(_local1.sR + (_local3 * _local1.bcRStep), _local1.sG + (_local3 * _local1.bcGStep), _local1.sB + (_local3 * _local1.bcBStep));
_local1.borderClrT.setRGB(bc);
_local1.borderClrB.setRGB(bc);
_local1.borderClrL.setRGB(bc);
_local1.borderClrR.setRGB(bc);
}
function ScaleZoomItem(frmIdx) {
var _local1 = this;
var _local2 = frmIdx - _local1.inBegin;
_local1.mask_mc._x = _local1.srcLeft + (_local2 * _local1.xStep);
_local1.mask_mc._y = _local1.srcTop + (_local2 * _local1.yStep);
_local1.mask_mc._width = _local1.srcWidth + (_local2 * _local1.widthStep);
_local1.mask_mc._height = _local1.srcHeight + (_local2 * _local1.heightStep);
_local1.dupTarget_mc._x = _local1.targetMC._x + (_local2 * _local1.disLeft);
_local1.dupTarget_mc._y = _local1.targetMC._y + (_local2 * _local1.disTop);
_local1.dupTarget_mc._width = (_local1.movieWidth + _local1.m_extraX) + (_local2 * (_local1.movieWidthStep + _local1.m_extraXStep));
_local1.dupTarget_mc._height = (_local1.movieHeight + _local1.m_extraY) + (_local2 * (_local1.movieHeightStep + _local1.m_extraYStep));
_local1.SyncBorderAndItem(_local2);
if (frmIdx <= _local1.inEnd) {
_local1.SetAlpha(_local2 * _local1.inAlphaStep);
}
}
function SetAlpha(aVal) {
var _local1 = this;
var _local2 = aVal;
_local1.border_mct._alpha = _local2;
_local1.border_mcb._alpha = _local2;
_local1.border_mcl._alpha = _local2;
_local1.border_mcr._alpha = _local2;
}
function onEnterFrame() {
SyncZoomItem();
}
function IsTargetMCSlidelet() {
var _local1 = false;
if ((null != targetMC) && (targetMC.IsSlidelet())) {
_local1 = true;
}
return(_local1);
}
function IsTargetMCPlaying() {
var _local2 = this;
var _local1 = false;
if (_local2.IsTargetMCSlidelet()) {
_local1 = _local2.targetMC.IsPlaying();
} else {
_local1 = _local2.targetMC.m_isPlaying;
}
return(_local1);
}
function GetTargetMCCurrentFrame() {
var _local2 = this;
var _local1 = 0;
if (_local2.IsTargetMCSlidelet()) {
_local1 = _local2.targetMC.GetCurrentFrame();
} else {
_local1 = _local2.targetMC._currentframe;
}
return(_local1);
}
var inBegin = 0;
var outEnd = 0;
var inEnd = 0;
var outBegin = 0;
var zoomFor = 0;
var movieWidth = 0;
var movieHeight = 0;
var srcLeft = 0;
var srcTop = 0;
var srcWidth = 0;
var srcHeight = 0;
var srcBorderClr = 0;
var srcBorderWidth = 0;
var srcFillClr = 0;
var srcFillAlpha = 0;
var desLeft = 0;
var desTop = 0;
var desWidth = 0;
var desHeight = 0;
var desBorderClr = 0;
var desBorderWidth = 0;
var desFillClr = 0;
var desFillAlpha = 0;
var targetMC = null;
var mask_mc = null;
var border_mct = null;
var border_mcb = null;
var border_mcl = null;
var border_mcr = null;
var zoomStarted = false;
var xStep = 0;
var yStep = 0;
var widthStep = 0;
var heightStep = 0;
var disLeft = 0;
var disTop = 0;
var movieWidthStep = 0;
var movieHeightStep = 0;
var borderWidthStep = 0;
var dupTarget_Depth = 0;
var dupTarget_mc = null;
var fillClr_mc = null;
var inEndAlpha = 0;
var outBeginAlpha = 0;
var inAlphaStep = 0;
var outAlphaStep = 0;
var alphaStepFillClr = 0;
var borderClrT = null;
var borderClrB = null;
var borderClrL = null;
var borderClrR = null;
var sR = 0;
var sG = 0;
var sB = 0;
var bcRStep = 0;
var bcGStep = 0;
var bcBStep = 0;
var sfcR = 0;
var sfcG = 0;
var sfcB = 0;
var fcRStep = 0;
var fcGStep = 0;
var fcBStep = 0;
var m_maskXOffset = 0;
var m_maskYOffset = 0;
var m_extraX = 0;
var m_extraY = 0;
var m_extraXStep = 0;
var m_extraYStep = 0;
}
Symbol 55 MovieClip [19b420a2_0] Frame 1
#initclip 58
Object.registerClass("19b420a2_0", captivate.monalisa.rdClickHandler);
#endinitclip
Symbol 56 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.TrackingAdapter] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.TrackingAdapter
{
var addProperty, crossDomain_bln, _initialized_bln, timer_str, score_raw, score_max, score_min, score_scaled_cp, score_pass, score_tot, time, lesson_location, lesson_status, success_status, lesson_mode, student_id, student_name, credit, entry, lesson_data, vendor_data, lesson_status_array, score_array, mastery_score, max_time_allowed, time_limit_action, lmsQueue, crossDomain;
function TrackingAdapter (adapterReference_obj) {
if (adapterReference_obj != undefined) {
setObjectReference(adapterReference_obj);
}
trackingAdapterType.type_int = -1;
trackingAdapterType.type_str = null;
addProperty("score", getScore, setScore);
addProperty("core_lesson", getLessonData, setLessonData);
addProperty("core_vendor", getVendorData, setVendorData);
addProperty("session_time", getTimeInSession, setTimeInSession);
addProperty("total_time", getTimeInSession, setTimeInSession);
addProperty("score_scaled", getScoreScaled, setScoreScaled);
}
function isCrossDomain() {
return(crossDomain_bln);
}
function get initialized_bln() {
return(_initialized_bln);
}
function set initialized_bln(value_bln) {
if (value_bln == "true") {
value_bln = true;
} else if (value_bln == "false") {
value_bln = false;
}
_initialized_bln = value_bln;
//return(initialized_bln);
}
function isInitialized() {
return(initialized_bln);
}
function isInteractionDataTracked() {
return(interactionDataTracked_bln);
}
function isLessonDataTracked() {
return(lessonDataTracked_bln);
}
function isTrackingDataLoaded() {
return(trackingDataLoaded_bln);
}
function isAICCvsEscaped() {
return(escapeAICCvs_bln);
}
function getShowErrors() {
return(showErrors_int);
}
function getErrorArray() {
return(errors_array);
}
function getLastError() {
return(_getLastError());
}
function getLastErrorNumber() {
return(_getLastError("error_int"));
}
function getLastErrorString() {
return(_getLastError("error_str"));
}
function getLastErrorCommand() {
return(_getLastError("command"));
}
function _getLastError(propertyName) {
if ((errors_array.length == 0) || (errors_array[errors_array.length - 1] == undefined)) {
return(null);
}
if (propertyName == undefined) {
return(errors_array[errors_array.length - 1]);
}
return(errors_array[errors_array.length - 1][propertyName]);
}
function getTrackingAdapterType() {
return(trackingAdapterType);
}
function setTrackingAdapterType(adapterType_int, adapterType_str) {
trackingAdapterType.type_int = adapterType_int;
trackingAdapterType.type_str = adapterType_str;
}
function initialize() {
return(initialized_bln);
}
function flush() {
}
function finish() {
}
function setInitialized(value_bln) {
initialized_bln = (value_bln);
}
function getInteractionDataTracked() {
return(interactionDataTracked_bln);
}
function getLessonDataTracked() {
return(lessonDataTracked_bln);
}
function getEscapeAICCvs() {
return(escapeAICCvs_bln);
}
function getIgnoreEscapeList() {
return(ignoreEscapeList_str);
}
function setInteractionDataTracked(isTracked_bln) {
if (isTracked_bln != undefined) {
interactionDataTracked_bln = isTracked_bln;
}
}
function setLessonDataTracked(isTracked_bln) {
if (isTracked_bln != undefined) {
lessonDataTracked_bln = isTracked_bln;
}
}
function setEscapeAICCvs(isEscaped_bln) {
if (isEscaped_bln != undefined) {
escapeAICCvs_bln = isEscaped_bln;
}
}
function setIgnoreEscapeList(escapeList_str) {
if (ignoreEscapeList_str != undefined) {
ignoreEscapeList_str = escapeList_str;
}
}
function setTrackingDataLoaded(value_bln) {
trackingDataLoaded_bln = value_bln;
}
function setTrackingFinished() {
setInitialized(false);
setTrackingDataLoaded(false);
}
function setStatusType(type_int) {
statusType_int = type_int;
}
function getStatusType() {
return(statusType_int);
}
function setShowErrors(value_int) {
showErrors_int = value_int;
}
function setLastError(error_int, error_str, command_str) {
addToErrorArray(error_int, error_str, command_str);
}
function resetTimer() {
timer_int = int(getTimer() / 1000);
timer_str = undefined;
}
function addToErrorArray(error_int, error_str, command_str) {
var _local2 = errors_array.length;
errors_array.push(new Object());
errors_array[_local2].command = command_str;
errors_array[_local2].error = error_int;
errors_array[_local2].error_int = error_int;
errors_array[_local2].error_str = error_str;
}
function resetErrorArray() {
errors_array = [];
}
function setCrossDomain(value_bln) {
crossDomain_bln = value_bln;
}
function getScore(scoreAsRaw_bln) {
var _local2 = getScoreRaw();
if (_local2 == "") {
_local2 = " ";
}
if ((scoreAsRaw_bln == undefined) || (scoreAsRaw_bln == false)) {
if ((getScoreMax() != "") && (getScoreMin() != "")) {
_local2 = (((_local2 + ",") + getScoreMax()) + ",") + getScoreMin();
}
}
return(_local2);
}
function getScoreRaw() {
if (score_raw == undefined) {
score_raw = "";
}
return(score_raw);
}
function getScoreMax() {
if (((score_max == undefined) || (score_max == "")) || (score_max == " ")) {
score_max = "";
}
return(score_max);
}
function getScoreMin() {
if (((score_min == undefined) || (score_min == "")) || (score_min == " ")) {
score_min = "";
}
return(score_min);
}
function getScoreScaled() {
if (((score_scaled_cp == undefined) || (score_scaled_cp == "")) || (score_scaled_cp == " ")) {
score_scaled_cp = 1;
}
return(score_scaled_cp);
}
function getScorePass() {
return(score_pass);
}
function getScoreTot() {
return(score_tot);
}
function getTimeInSession() {
return(time);
}
function getLessonLocation() {
if ((lesson_location == undefined) || (lesson_location == "")) {
lesson_location = " ";
}
return(lesson_location);
}
function getLessonStatus() {
if (lesson_status == undefined) {
lesson_status = "incomplete";
}
return(lesson_status);
}
function getSuccessStatus() {
return(success_status);
}
function getLessonMode() {
return(lesson_mode);
}
function getStudentID() {
return(student_id);
}
function getStudentName() {
return(student_name);
}
function getCredit() {
return(credit);
}
function getEntry() {
return(entry);
}
function setScore(_scoreRaw_int, _scoreMin_int, _scoreMax_int) {
if (_scoreRaw_int != undefined) {
setScoreRaw(_scoreRaw_int);
}
if (_scoreMin_int != undefined) {
setScoreMin(_scoreMin_int);
}
if (_scoreMax_int != undefined) {
setScoreMax(_scoreMax_int);
}
if ((_scoreMax_int != undefined) && (_scoreRaw_int != undefined)) {
setScoreScaled(_scoreRaw_int / _scoreMax_int);
} else if (_scoreRaw_int != undefined) {
setScoreScaled(_scoreRaw_int / 100);
}
}
function validateScore(value) {
var _local2;
switch (typeof(value)) {
case "null" :
_local2 = undefined;
break;
case "string" :
if (Number(value) == value) {
_local2 = Number(value);
} else {
_local2 = undefined;
}
break;
case "number" :
if (isNaN(value)) {
_local2 = undefined;
} else {
_local2 = value;
}
break;
default :
_local2 = undefined;
}
if (_local2 != undefined) {
_local2 = roundDecimals(_local2, 2);
_local2 = _local2.toString();
} else {
_local2 = " ";
}
return(_local2);
}
function setScoreRaw(value) {
score_raw = validateScore(value);
}
function setScoreMax(value) {
score_max = validateScore(value);
}
function setScoreMin(value) {
score_min = validateScore(value);
}
function setScoreScaled(value) {
score_scaled_cp = validateScore(value);
}
function setScorePass(value) {
score_pass = value;
}
function setScoreTot(value) {
score_tot = value;
}
function setTimeInSession(time_var) {
if (((time_var == undefined) || (time_var == "")) || (time_var == null)) {
time_var = formatTime(int(getTimer() / 1000) - timer_int);
} else if (typeof(time_var == "number")) {
time_var = formatTime(time_var);
}
time = time_var;
timer_str = time_var;
}
function setLessonLocation(value) {
lesson_location = value;
}
function setLessonStatus(statusCompletion_str, statusSuccess_str) {
if ((((statusCompletion_str.substring(0, 1) == "n") || (statusCompletion_str == "")) || (statusCompletion_str == undefined)) || (statusCompletion_str == " ")) {
lesson_status = "incomplete";
} else {
lesson_status = statusCompletion_str;
}
if (statusSuccess_str != undefined) {
success_status = statusSuccess_str;
}
}
function setStudentID(value_str) {
student_id = value_str;
}
function setStudentName(value_str) {
student_name = value_str;
}
function setCredit(value_str) {
credit = value_str;
}
function getLessonData() {
if ((lesson_data == undefined) || (isLessonDataTracked() == false)) {
setLessonData("");
}
return(lesson_data);
}
function setLessonMode(value_str) {
lesson_mode = value_str;
}
function setLessonData(value_str) {
lesson_data = value_str;
}
function getVendorData() {
return(vendor_data);
}
function setVendorData(value_str) {
vendor_data = value_str;
}
function getLessonStatusArray() {
return(lesson_status_array);
}
function getScoreArray() {
return(score_array);
}
function getMasteryScore() {
return(mastery_score);
}
function getMaxTimeAllowed() {
return(max_time_allowed);
}
function getTimeLimitAction() {
return(time_limit_action);
}
function addToLessonStatusArray(value_str) {
lesson_status_array.push(value_str);
}
function addToScoreArray(value) {
score_array.push(value);
}
function setMasteryScore(value) {
mastery_score = value;
}
function setMaxTimeAllowed(value_str) {
max_time_allowed = value_str;
}
function setTimeLimitAction(value_str) {
time_limit_action = value_str;
}
function setSlideView(slideNumber_int) {
}
function sendSlideView(slideNumber_int) {
}
function sendTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str) {
if (_time_str == undefined) {
_time_str = "";
}
setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str);
}
function setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str) {
if (_scoreAsPercent_bln == true) {
if ((((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) && (!isNaN(Math.round((_scoreRaw_int / _scoreMax_int) * 100)))) && (_scoreMax_int != 0)) {
setScore(Math.round((_scoreRaw_int / _scoreMax_int) * 100));
} else {
setScore(Math.round(_scoreRaw_int));
}
} else if (((_scoreRaw_int != undefined) && (_scoreMin_int != undefined)) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, _scoreMin_int, _scoreMax_int);
} else if ((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, 0, _scoreMax_int);
} else if (_scoreRaw_int != undefined) {
setScore(_scoreRaw_int);
}
if (_location_str != undefined) {
setLessonLocation(_location_str);
}
if (_statusPreference_bln != undefined) {
if ((_statusPreference_bln == true) && (_statusCompletion_str != undefined)) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
if (_statusCompletion_str != undefined) {
setLessonStatus(_statusCompletion_str, _statusSuccess_str);
}
}
} else if (_statusCompletion_str != undefined) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
setLessonStatus(_statusSuccess_str);
}
if (_time_str != undefined) {
setTimeInSession(_time_str);
}
if (_resumeData_str != undefined) {
setLessonData(_resumeData_str);
}
}
function getTrackingData() {
if (isTrackingDataLoaded()) {
} else {
setTrackingDataLoaded(true);
}
}
function getTrackingDataCore() {
if (isTrackingDataLoaded()) {
} else {
setTrackingDataLoaded(true);
}
}
function flushData() {
}
function setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
var _local2 = interaction_ary.length;
interaction_ary[_local2] = new Array();
interaction_ary[_local2].interactionID_str = interactionID_str;
interaction_ary[_local2].objectiveID_str = objectiveID_str;
interaction_ary[_local2].type_str = type_str;
interaction_ary[_local2].correctResponse_str = correctResponse_str;
interaction_ary[_local2].studentResponse_str = studentResponse_str;
interaction_ary[_local2].result_bln = result_str;
interaction_ary[_local2].weight_int = weight_int;
if (((latency_str == undefined) || (latency_str == "")) || (latency_str == "0")) {
latency_str = formatTime(0);
} else if (typeof(latency_str) == "number") {
latency_str == formatTime(latency_str);
}
interaction_ary[_local2].latency_str = latency_str;
if ((date_str == undefined) || (date_str == "")) {
date_str = formatDate();
}
interaction_ary[_local2].date_str = date_str;
if ((time_str == undefined) || (time_str == "")) {
time_str = formatTime(0);
} else if (typeof(time_str) == "number") {
time_str = formatTime(time_str);
}
interaction_ary[_local2].time_str = time_str;
}
function sendInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
if ((interactionID_str != undefined) && (interactionID_str != "")) {
setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str);
}
}
function formatDate(date_var, day_str, year_str, format_type) {
var _local7;
var _local6;
if (date_var == undefined) {
var _local3 = new Date();
date_var = formatNum(_local3.getMonth() + 1, 2);
day_str = formatNum(_local3.getDate(), 2);
year_str = _local3.getFullYear();
} else if ((typeof(date_var) == "string") && (date_var.indexOf("/") > -1)) {
var _local3 = date_var.split("/");
date_var = formatNum(_local3[0], 2);
day_str = formatNum(_local3[1], 2);
year_str = formatNum(_local3[2], 4);
}
if (format_type == 1) {
_local6 = (((year_str + "/") + date_var) + "/") + day_str;
} else {
_local6 = (((date_var + "/") + day_str) + "/") + year_str;
}
return(_local6);
}
function formatTime(timeInSeconds) {
var _local4;
var _local2;
var _local3;
var _local5;
_local3 = "00";
_local2 = "00";
_local4 = "00";
_local3 = formatNum(int(timeInSeconds), 2);
if (_local3 > 59) {
_local2 = int(_local3 / 60);
_local3 = _local3 - (_local2 * 60);
_local2 = formatNum(_local2, 2);
_local3 = formatNum(_local3, 2);
}
if (_local2 > 59) {
_local4 = int(_local2 / 60);
_local2 = _local2 - (_local4 * 60);
_local4 = formatNum(_local4, 2);
_local2 = formatNum(_local2, 2);
}
_local5 = (((_local4 + ":") + _local2) + ":") + _local3;
return(_local5);
}
function formatNum(initialValue_var, numToPad_int) {
var _local2 = "";
var _local1 = 0;
var _local3 = initialValue_var.toString();
if (_local3.length > numToPad_int) {
} else {
_local1 = 1;
while (_local1 <= (numToPad_int - _local3.length)) {
_local2 = _local2 + "0";
_local1++;
}
}
_local2 = _local2 + initialValue_var;
return(_local2);
}
function roundDecimals(num_int, decimals_int) {
decimals_int = (((!decimals_int) && (decimals_int != 0)) ? 2 : (decimals_int));
return(Math.round(num_int * Math.pow(10, decimals_int)) / Math.pow(10, decimals_int));
}
function trim(s) {
while (s.indexOf(" ") == 0) {
s = s.substring(1);
}
while (s.length && (s.lastIndexOf(" ") == (s.length - 1))) {
s = s.substring(0, s.length - 1);
}
return(s);
}
function escapeJS(js_str) {
var _local1 = ["\r", "\t", "'", "\"", "\\"];
var _local2 = js_str;
for (var _local3 in _local1) {
_local2 = _local2.split(_local1[_local3]).join("\\" + _local1[_local3]);
}
_local2 = _local2.split("\\\\;").join("\\;");
_local2 = _local2.split("\\\\,").join("\\,");
return(_local2);
}
function setObjectReference(_adapterReference_obj) {
lmsQueue = new MMQuizzingV3.MMQuizClasses.lms.Queue(_adapterReference_obj);
crossDomain = new MMQuizzingV3.MMQuizClasses.lms.domainPolicy(_adapterReference_obj);
}
var trackingAdapterType = new Object();
var trackingDataLoaded_bln = false;
var interactionDataTracked_bln = true;
var lessonDataTracked_bln = true;
var escapeAICCvs_bln = true;
var ignoreEscapeList_str = "";
var showErrors_int = 1;
var errors_array = [];
var timer_int = 0;
var error_number = null;
var statusType_int = 1;
var interaction_ary = [];
var isRDPreview = false;
}
Symbol 57 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.Queue] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.Queue
{
var _scope_obj, _queueArray_str, _queueBusy_str, _queue_array, _useGlobalQueue_bln;
function Queue (_globalObject) {
if (_globalObject != undefined) {
useGlobalQueue_bln = (true);
_scope_obj = _globalObject;
_queueArray_str = "globalQueue_array";
_queueBusy_str = "globalQueueBusy_bln";
if (_scope_obj[_queueArray_str] == undefined) {
_scope_obj.globalQueue_array = [];
_scope_obj.globalQueueBusy_bln = false;
}
} else {
useGlobalQueue_bln = (false);
_scope_obj = this;
_queueArray_str = "_queue_array";
_queueBusy_str = "_queueBusy_bln";
_queue_array = [];
}
}
function isGlobalQueue() {
return(useGlobalQueue_bln);
}
function get useGlobalQueue_bln() {
return(_useGlobalQueue_bln);
}
function set useGlobalQueue_bln(_isGlobalQueue_bln) {
_useGlobalQueue_bln = _isGlobalQueue_bln;
//return(useGlobalQueue_bln);
}
function get queueTimeoutInterval_int() {
return(_queueTimeoutInterval_int);
}
function set queueTimeoutInterval_int(_timeout_int) {
_queueTimeoutInterval_int = _timeout_int;
//return(queueTimeoutInterval_int);
}
function get queuePollingInterval_int() {
return(_queuePollingInterval_int);
}
function set queuePollingInterval_int(_polling_int) {
_queuePollingInterval_int = _polling_int;
//return(queuePollingInterval_int);
}
function setQueueTimeoutInterval(_timeout_int) {
queueTimeoutInterval_int = (_timeout_int);
}
function setQueuePollingInterval(_polling_int) {
queuePollingInterval_int = (_polling_int);
}
function getQueueTimeoutInterval() {
return(queueTimeoutInterval_int);
}
function getQueuePollingInterval() {
return(queuePollingInterval_int);
}
function waitForQueue(this_obj, _queueTimer_int) {
if (getTimer() > _queueTimer_int) {
this_obj.removeFromQueue();
}
this_obj.checkQueue();
}
function addToQueue(target_obj, method_str, parameters_var, waitForResponse_bln, checkForQueue_bln) {
var _local2 = _scope_obj[_queueArray_str].length;
_scope_obj[_queueArray_str][_local2] = new Object();
_scope_obj[_queueArray_str][_local2].target_obj = target_obj;
_scope_obj[_queueArray_str][_local2].method_str = method_str;
_scope_obj[_queueArray_str][_local2].parameters_var = parameters_var;
_scope_obj[_queueArray_str][_local2].waitForResponse_bln = waitForResponse_bln;
_scope_obj[_queueArray_str][_local2].interval_var = undefined;
if ((checkForQueue_bln == undefined) || (checkForQueue_bln == true)) {
checkQueue();
}
return(_scope_obj[_queueArray_str]);
}
function removeFromQueue(flush_bln) {
if (_scope_obj[_queueArray_str][0].interval_var != undefined) {
clearInterval(_scope_obj[_queueArray_str][0].interval_var);
}
if (_scope_obj[_queueArray_str].length > 0) {
_scope_obj[_queueArray_str].shift();
_scope_obj[_queueBusy_str] = false;
checkQueue(flush_bln);
}
return(_scope_obj[_queueArray_str]);
}
function clearQueue() {
_scope_obj[_queueArray_str] = [];
return(_scope_obj[_queueArray_str]);
}
function flushQueue() {
removeFromQueue(true);
}
function checkQueue(flush_bln) {
var _local9 = _scope_obj[_queueBusy_str];
if (_local9) {
} else {
var _local6 = _scope_obj[_queueArray_str].length;
if (_local6 > 0) {
_scope_obj[_queueBusy_str] = true;
var _local4 = _scope_obj[_queueArray_str][0].target_obj;
var _local5 = _scope_obj[_queueArray_str][0].method_str;
var _local3 = _scope_obj[_queueArray_str][0].parameters_var;
var _local2 = ((flush_bln == undefined) ? (_scope_obj[_queueArray_str][0].waitForResponse_bln) : (!flush_bln));
if (_local2 || (_local2 == undefined)) {
var _local8 = getTimer() + (queueTimeoutInterval_int * 1000);
_scope_obj[_queueArray_str][0].interval_var = setInterval(waitForQueue, queuePollingInterval_int * 1000, this, _local8);
}
if (_local3 != undefined) {
_local4[_local5](_local3);
} else {
_local4[_local5]();
}
if ((!_local2) && (_local2 != undefined)) {
removeFromQueue(flush_bln);
}
}
}
}
var _queueTimeoutInterval_int = 5;
var _queuePollingInterval_int = 0.1;
}
Symbol 58 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.domainPolicy] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.domainPolicy
{
var queue_obj, queue_array, utilitiesURL, _remotePolicyXML;
function domainPolicy (_adapterObject) {
queue_obj = [];
queue_array = new MMQuizzingV3.MMQuizClasses.lms.Queue(_adapterObject);
utilitiesURL = new MMQuizzingV3.MMQuizClasses.lms.Utilities(_adapterObject);
}
function checkServerPolicy(remoteURL, localURL) {
var _local2 = -1;
for (var _local5 in queue_obj) {
if ((queue_obj[_local5].remoteURL.toLowerCase() == remoteURL.toLowerCase()) && (queue_obj[_local5].localURL.toLowerCase() == localURL.toLowerCase())) {
_local2 = _local5;
}
}
if (_local2 == -1) {
_local2 = queue_obj.length;
queue_obj[_local2] = new Object();
queue_obj[_local2].thisReference = this;
queue_obj[_local2].queue_int = _local2;
queue_obj[_local2].remoteURL = remoteURL;
queue_obj[_local2].localURL = localURL;
queue_obj[_local2].remotePolicyXML = _remotePolicyXML;
queue_obj[_local2].status_bln = undefined;
queue_array.addToQueue(this, "getDomainPolicy", queue_obj[_local2], true);
}
return(queue_obj[_local2].status_bln);
}
function getDomainPolicy(domainPolicy_obj) {
function setDomainPolicy(value_bln) {
_serverPolicy_bln = value_bln;
_getDomainPolicy.queue_obj[_queue_int].status_bln = value_bln;
}
var _serverPolicy_bln = null;
var _getDomainPolicy = this;
var _queue_int = domainPolicy_obj.queue_int;
var _local9 = domainPolicy_obj.localURL;
var _local10 = domainPolicy_obj.remoteURL;
var _local11 = domainPolicy_obj.remotePolicyXML;
if (_local9 == undefined) {
_local9 = _url;
}
if (utilitiesURL.findDomain(_local10, true).toLowerCase() == utilitiesURL.findDomain(_local9, true).toLowerCase()) {
setDomainPolicy(true);
} else if (utilitiesURL.getVersionPlayer(0) < 7) {
var _local4 = utilitiesURL.findDomain(_local10, true);
var _local7 = utilitiesURL.findDomain(_local9, true);
_local4 = _local4.split(".");
_local7 = _local7.split(".");
var _local6 = true;
if (_local4.length == _local7.length) {
var _local2 = 1;
while (_local2 < _local4.length) {
if (Number(_local4[_local2]) == _local4[_local2]) {
_local6 = false;
break;
}
if (_local4[_local2].toLowerCase() != _local7[_local2].toLowerCase()) {
_local6 = false;
}
_local2++;
}
} else {
_local6 = false;
}
setDomainPolicy(_local6);
} else {
var _local8 = new XML();
_local8.onData = function (data) {
if (data == undefined) {
setDomainPolicy(false);
} else {
setDomainPolicy(true);
}
_getDomainPolicy.queue_array.removeFromQueue();
};
if (((_local11 != undefined) && (utilitiesURL.getVersionPlayer(0) > 6)) && (utilitiesURL.getVersionPlayer(2) > 14)) {
var _local5 = _local11.split(";");
var _local3 = 0;
while (_local3 < _local5.length) {
System.security.loadPolicyFile(_local5[_local3]);
_local8.load(_local5[_local3]);
_local3++;
}
} else {
_local8.load((utilitiesURL.findProtocol(_local10, _local9) + utilitiesURL.findDomain(_local10)) + "/crossdomain.xml");
}
}
if (_serverPolicy_bln == null) {
return(undefined);
}
queue_array.removeFromQueue();
return(_serverPolicy_bln);
}
function setRemotePolicyXML(remotePolicyXML, serverURL) {
if (remotePolicyXML.substr(0, 1) == "/") {
if (serverURL == undefined) {
serverURL = _url;
}
_remotePolicyXML = (utilitiesURL.findProtocol(serverURL) + utilitiesURL.findDomain(serverURL)) + remotePolicyXML;
} else {
_remotePolicyXML = remotePolicyXML;
}
}
function getRemotePolicyXML() {
return(_remotePolicyXML);
}
}
Symbol 59 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.Utilities] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.Utilities
{
var adapterObject;
function Utilities (_adapterObject) {
if (_adapterObject != undefined) {
adapterObject = _adapterObject;
} else {
adapterObject = _root;
}
}
function findDomain(serverURL, ignorePort_bln) {
var _local2 = "://";
var _local1 = serverURL;
var _local3 = _local1.indexOf(_local2);
if (_local3 > -1) {
if (_local1.indexOf("/", _local3 + _local2.length) > 0) {
_local1 = _local1.substr(_local3 + _local2.length, _local1.indexOf("/", _local3 + _local2.length) - (_local3 + _local2.length));
} else {
_local1 = _local1.substr(_local3 + _local2.length);
}
} else if (_local1.indexOf("/", 1) > 0) {
_local1 = _local1.substr(0, _local1.indexOf("/", 1));
} else {
}
if (ignorePort_bln) {
_local3 = _local1.indexOf(":");
if (_local3 > -1) {
_local1 = _local1.substring(0, _local3);
}
}
return(_local1);
}
function findProtocol(serverURL, localURL) {
var _local3 = "://";
var _local2 = serverURL;
var _local4 = _local2.indexOf(_local3);
if (_local4 > -1) {
_local2 = _local2.substr(0, _local4 + _local3.length);
} else if ((localURL == undefined) || (localURL == "")) {
if (serverURL == _url) {
_local2 = "";
} else {
_local2 = findProtocol(_url);
}
} else {
_local2 = findProtocol(localURL);
}
return(_local2);
}
function getVersionPlayer(type_int) {
var _local2 = getVersion();
var _local1 = _local2.split(" ");
_local1 = _local1[1];
_local1 = _local1.split(",");
if (type_int == undefined) {
return(_local1);
}
return(_local1[type_int]);
}
function findParameter(type_str) {
var _local2 = adapterObject;
var _local3 = _local2._url;
while ((_local2 != undefined) && (getParameter(type_str, _local3) == "")) {
_local2 = _local2._parent;
_local3 = _local2._url;
}
return(_local2);
}
function getParameter(value_str, search_var, delimiter_str) {
var _local7 = "";
var _local8 = new Object();
var _local1 = new Object();
if (delimiter_str == undefined) {
delimiter_str = "=";
}
if ((search_var == undefined) || (search_var == "")) {
search_var = _url;
search_var = search_var.split("?")[1].split("&");
} else {
if (typeof(search_var) == "string") {
if ((search_var.indexOf("?") != -1) && (search_var.indexOf("=") != -1)) {
search_var = search_var.split("?")[1];
}
var _local6 = ["&", "\r\n", "\r", newline, ",", ";"];
var _local3 = 0;
while (_local3 < _local6.length) {
if ((search_var.indexOf(_local6[_local3]) != -1) && (search_var.indexOf("=") != -1)) {
_local1 = search_var.split(_local6[_local3]);
break;
}
_local3++;
}
if ((_local3 == _local6.length) && (search_var.indexOf(delimiter_str) > -1)) {
_local1[0] = search_var;
}
}
}
for (var _local9 in _local1) {
if (((typeof(_local1) == "string") || (typeof(_local1) == "object")) && (_local1[_local9].indexOf(delimiter_str) != -1)) {
if ((value_str != undefined) && (value_str != "")) {
if (unescape(_local1[_local9].toString().substr(0, _local1[_local9].indexOf(delimiter_str)).toLowerCase()) == value_str.toLowerCase()) {
_local7 = _local1[_local9].substr(_local1[_local9].indexOf(delimiter_str) + 1, _local1[_local9].length - 1);
}
} else {
_local8[unescape(_local1[_local9].toString().substr(0, _local1[_local9].indexOf(delimiter_str)))] = _local1[_local9].substr(_local1[_local9].indexOf(delimiter_str) + 1, _local1[_local9].length - 1);
}
} else if ((value_str != undefined) && (value_str != "")) {
if ((_local9.toLowerCase() == value_str.toLowerCase()) || (_local1[_local9].toLowerCase() == value_str.toLowerCase())) {
_local7 = _local1[_local9];
}
} else {
_local8[_local9] = _local1[_local9];
}
}
if ((value_str != undefined) && (value_str != "")) {
return(_local7);
}
return(_local8);
}
function getDirectoryPath(p_filepath) {
var _local2 = Math.max(p_filepath.lastIndexOf("/"), p_filepath.lastIndexOf("\\"));
if (_local2 != -1) {
return(p_filepath.substring(0, _local2));
}
return(p_filepath);
}
}
Symbol 60 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.Authorware] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.Authorware extends MMQuizzingV3.MMQuizClasses.lms.TrackingAdapter
{
var setObjectReference, resetTimer, isInitialized, setInitialized, interaction_ary, escapeJS, formatDate, formatTime, isInteractionDataTracked, isTrackingDataLoaded, setTrackingDataLoaded, setScore, setLessonLocation, setLessonStatus, getLessonStatus, setTimeInSession, setLessonData, trim, getSuccessStatus, getScoreRaw, getScoreMax;
function Authorware (_adapterObject, delimiter) {
super();
if (_adapterObject != undefined) {
setObjectReference(_adapterObject);
}
if (delimiter != undefined) {
setDelimiter(delimiter);
}
resetTimer();
}
function initialize() {
if (isInitialized()) {
} else {
setInitialized(true);
fscommand ("#Initialize:1");
}
return(isInitialized());
}
function flush() {
sendTrackingData();
}
function finish() {
if (isInitialized()) {
sendExitData();
}
}
function setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
var _local2 = interaction_ary.length;
interaction_ary[_local2] = new Array();
interaction_ary[_local2].interactionID_str = interactionID_str;
interaction_ary[_local2].objectiveID_str = objectiveID_str;
interaction_ary[_local2].type_str = type_str;
interaction_ary[_local2].correctResponse_str = escapeJS(correctResponse_str);
interaction_ary[_local2].studentResponse_str = escapeJS(studentResponse_str);
interaction_ary[_local2].result_str = result_str;
interaction_ary[_local2].weight_int = weight_int;
interaction_ary[_local2].latency_str = latency_str;
if ((date_str == undefined) || (date_str == "")) {
date_str = formatDate();
}
interaction_ary[_local2].date_str = date_str;
if ((time_str == undefined) || (time_str == "")) {
time_str = "00:00:00";
} else {
time_str = formatTime(time_str);
}
interaction_ary[_local2].time_str = time_str;
}
function sendInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
if (isInteractionDataTracked() && (isInitialized())) {
if (interactionID_str != undefined) {
setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str);
}
var _local2 = "";
_local2 = "";
for (var _local3 in interaction_ary) {
_local2 = ((((((((((((((((((((((((((((((((((((((((((((((("#Date:\"" + interaction_ary[_local3].date_str) + "\"") + delimiter_str) + "#Time:") + "\"") + interaction_ary[_local3].time_str) + "\"") + delimiter_str) + "#interaction_ID:") + "\"") + interaction_ary[_local3].interactionID_str) + "\"") + delimiter_str) + "#objective_ID:") + "\"") + interaction_ary[_local3].objectiveID_str) + "\"") + delimiter_str) + "#interaction_type:") + "\"") + interaction_ary[_local3].type_str) + "\"") + delimiter_str) + "#correct_response:") + "\"") + interaction_ary[_local3].correctResponse_str) + "\"") + delimiter_str) + "#student_response:") + "\"") + interaction_ary[_local3].studentResponse_str) + "\"") + delimiter_str) + "#result:") + "\"") + interaction_ary[_local3].result_str) + "\"") + delimiter_str) + "#weighting:") + "\"") + interaction_ary[_local3].weight_int) + "\"") + delimiter_str) + "#latency:") + "\"") + interaction_ary[_local3].latency_str) + "\"") + delimiter_str;
}
fscommand (_local2);
interaction_ary = [];
}
}
function getTrackingData() {
if ((!isTrackingDataLoaded()) && (isInitialized())) {
setTrackingDataLoaded(true);
}
}
function getTrackingDataCore() {
if (isInitialized()) {
getTrackingData();
}
}
function setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str) {
if (_scoreAsPercent_bln == true) {
if ((((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) && (!isNaN(Math.round((_scoreRaw_int / _scoreMax_int) * 100)))) && (_scoreMax_int != 0)) {
setScore(Math.round((_scoreRaw_int / _scoreMax_int) * 100));
} else {
setScore(Math.round(_scoreRaw_int));
}
} else if (((_scoreRaw_int != undefined) && (_scoreMin_int != undefined)) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, _scoreMin_int, _scoreMax_int);
} else if ((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, 0, _scoreMax_int);
} else if (_scoreRaw_int != undefined) {
setScore(_scoreRaw_int);
}
if (_location_str != undefined) {
setLessonLocation(_location_str);
}
if (_statusPreference_bln != undefined) {
if ((_statusPreference_bln == true) && (_statusCompletion_str != undefined)) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
if (_statusCompletion_str != undefined) {
setLessonStatus(_statusCompletion_str, _statusSuccess_str);
}
}
} else if (_statusCompletion_str != undefined) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
setLessonStatus(_statusSuccess_str);
}
setLessonStatus(getLessonStatus());
if (_time_str != undefined) {
setTimeInSession(_time_str);
}
if (_resumeData_str != undefined) {
setLessonData(_resumeData_str);
}
}
function isPassed(list_str, token_str) {
var _local3 = list_str.split(",");
var _local4 = token_str.substr(0, 1).toLowerCase();
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local4 == trim(_local3[_local2]).substr(0, 1)) {
return(true);
}
_local2++;
}
return(false);
}
function sendTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str) {
var _local2 = "";
if (isInitialized()) {
if (_time_str == undefined) {
_time_str = "";
}
setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str);
var _local3 = "";
if (_statusPreference_bln != undefined) {
if (_statusPreference_bln == true) {
_local2 = getLessonStatus();
} else if (getSuccessStatus() != undefined) {
_local2 = getSuccessStatus();
} else {
_local2 = getLessonStatus();
}
} else {
_local2 = getLessonStatus();
}
_local3 = _local3 + ((_local2 != undefined) ? (("#Passed:" + isPassed("passed,completed", _local2)) + delimiter_str) : "");
_local3 = _local3 + (("#Score:" + getScoreRaw()) + delimiter_str);
_local3 = _local3 + (("#Possible:" + getScoreMax()) + delimiter_str);
fscommand (_local3);
resetTimer();
}
}
function sendExitData() {
fscommand ("#Initialize:0");
setInitialized(false);
}
function setTrackingComplete() {
fscommand ("#Initialize:0");
setInitialized(false);
}
function setDelimiter(delimiter) {
delimiter_str = delimiter;
}
function getDelimiter() {
return(delimiter_str);
}
var delimiter_str = ";";
}
Symbol 61 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 62 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 63 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 64 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 65 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 66 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.QuizController] Frame 0
class MMQuizzingV3.MMQuizClasses.QuizController extends mx.core.UIObject
{
var _questionScores, _quizParams, _playbackController, dispatchEvent, getURL;
function QuizController () {
super();
_questionScores = [];
}
function get inForcedReviewMode() {
return(_inForcedReviewMode);
}
function set inForcedReviewMode(mode) {
_inForcedReviewMode = mode;
//return(inForcedReviewMode);
}
function get quizParams() {
return(_quizParams);
}
function set quizParams(newParams) {
_quizParams = newParams;
//return(quizParams);
}
function get playbackController() {
return(_playbackController);
}
function set playbackController(newController) {
_playbackController = newController;
//return(playbackController);
}
function get inReviewMode() {
return(_inReviewMode);
}
function set inReviewMode(inMode) {
if (inMode && (!_inReviewMode)) {
dispatchEvent({type:"enterReviewMode", target:this});
} else if ((!inMode) && (_inReviewMode)) {
dispatchEvent({type:"leaveReviewMode", target:this});
}
inForcedReviewMode = (false);
_inReviewMode = inMode;
//return(inReviewMode);
}
function get quizInProgress() {
return(_quizInProgress);
}
function set quizInProgress(inProgress) {
if (inProgress && (!_quizInProgress)) {
resetQuestionScores();
_inReviewMode = false;
_sawPassScoreSlide = false;
_sawFailScoreSlide = false;
_sawAnyScoreSlide = false;
numStarts = ((numStarts+1));
onStartQuiz();
} else if ((!inProgress) && (_quizInProgress)) {
_inReviewMode = false;
numFinishes = ((numFinishes+1));
onEndQuiz();
}
_quizInProgress = inProgress;
//return(quizInProgress);
}
function get onScoreSlide() {
var _local2 = playbackController.__get__currentSlide();
if (this != playbackController.quizControllerForSlide(_local2)) {
return(false);
}
return(isScoreSlide(_local2));
}
function get currentSlideContainer() {
return(playbackController.__get__currentSlideContainer());
}
function get scoreDisplay() {
return(currentSlideContainer._scoreDisplay);
}
function get firstQuestionSlideInQuiz() {
var _local3 = null;
for (var _local4 in playbackController.__get__slides()) {
var _local2 = playbackController.__get__slides()[_local4];
if ((_local2.__get__slideNum() >= quizParams.firstSlideInQuiz.__get__slideNum()) && (_local2.__get__slideNum() <= quizParams.lastSlideInQuiz.__get__slideNum())) {
if (((!_local3) || (_local2.__get__slideNum() < _local3.__get__slideNum())) && (_local2.__get__questionsOnSlide().length > 0)) {
_local3 = _local2;
}
}
}
return(_local3);
}
function get lastQuestionSlideInQuiz() {
var _local3 = null;
for (var _local4 in playbackController.__get__slides()) {
var _local2 = playbackController.__get__slides()[_local4];
if ((_local2.__get__slideNum() >= quizParams.firstSlideInQuiz.__get__slideNum()) && (_local2.__get__slideNum() <= quizParams.lastSlideInQuiz.__get__slideNum())) {
if (((!_local3) || (_local2.__get__slideNum() > _local3.__get__slideNum())) && (_local2.__get__questionsOnSlide().length > 0)) {
_local3 = _local2;
}
}
}
return(_local3);
}
function get restoringState() {
return(_restoringState);
}
function set restoringState(rs) {
_restoringState = rs;
//return(restoringState);
}
function hasScoreSlide() {
return(((quizParams.passScoreSlide != null) || (quizParams.failScoreSlide != null)) || (quizParams.anyScoreSlide != null));
}
function isScoreSlide(slide) {
var _local2 = quizParams.getSlideType(slide);
switch (_local2) {
case "passScoreSlide" :
case "failScoreSlide" :
case "anyScoreSlide" :
return(true);
}
return(false);
}
function slideAfter(slide) {
if (this != playbackController.quizControllerForSlide(slide)) {
return(null);
}
with (quizParams) {
var pbcontroller = playbackController;
var slideType = getSlideType(slide);
switch (slideType) {
case "passScoreSlide" :
if (passingGradeAction == "gotoSlide") {
return(pbcontroller.getSlide(Number(passingGradeActionArg1)));
}
if (failScoreSlide) {
return(pbcontroller.getSlide(failScoreSlide.slideNum + 1));
}
return(pbcontroller.getSlide(passScoreSlide.slideNum + 1));
case "failScoreSlide" :
if (failingGradeAction == "gotoSlide") {
return(pbcontroller.getSlide(Number(failingGradeActionArg1)));
}
return(pbcontroller.getSlide(failScoreSlide.slideNum + 1));
case "anyScoreSlide" :
if (anyGradeAction == "gotoSlide") {
return(pbcontroller.getSlide(Number(anyGradeActionArg1)));
}
if ((passingGradeAction == "gotoSlide") && (score >= passingScore)) {
return(pbcontroller.getSlide(Number(passingGradeActionArg1)));
}
if ((failingGradeAction == "gotoSlide") && (score < passingScore)) {
return(pbcontroller.getSlide(Number(failingGradeActionArg1)));
}
return(pbcontroller.getSlide(anyScoreSlide.slideNum + 1));
case "question" :
}
var lastQuestionSlide = lastQuestionSlideInQuiz;
if (slide.__get__slideNum() < lastQuestionSlide.__get__slideNum()) {
var nextNum = (slide.__get__slideNum() + 1);
return(pbcontroller.getSlide(slide.__get__slideNum() + 1));
}
if (isScoreSlide(pbcontroller.getSlide(slide.__get__slideNum() + 1))) {
if (score >= passingScore) {
if (passScoreSlide) {
return(passScoreSlide);
}
if (anyScoreSlide) {
return(anyScoreSlide);
}
if (failScoreSlide) {
return(pbcontroller.getSlide(failScoreSlide.slideNum + 1));
}
return(pbcontroller.getSlide(lastQuestionSlide.__get__slideNum() + 1));
}
if (failScoreSlide) {
return(failScoreSlide);
}
if (anyScoreSlide) {
return(anyScoreSlide);
}
return(pbcontroller.getSlide(passScoreSlide.slideNum + 1));
}
if (anyGradeAction == "gotoSlide") {
return(pbcontroller.getSlide(Number(anyGradeActionArg1)));
}
if ((passingGradeAction == "gotoSlide") && (score >= passingScore)) {
return(pbcontroller.getSlide(Number(passingGradeActionArg1)));
}
if ((failingGradeAction == "gotoSlide") && (score < passingScore)) {
return(pbcontroller.getSlide(Number(failingGradeActionArg1)));
}
return(pbcontroller.getSlide(slide.__get__slideNum() + 1));
}
}
function slideBefore(slide) {
if (this != playbackController.quizControllerForSlide(slide)) {
return(null);
}
with (quizParams) {
var slideType = getSlideType(slide);
switch (slideType) {
case "question" :
case "passScoreSlide" :
case "failScoreSlide" :
case "anyScoreSlide" :
return(playbackController.getSlide(slide.__get__slideNum() - 1));
}
}
}
function get numStarts() {
return(_numStarts);
}
function set numStarts(num) {
_numStarts = num;
//return(numStarts);
}
function get numFinishes() {
return(_numFinishes);
}
function set numFinishes(num) {
_numFinishes = num;
//return(numFinishes);
}
function get questionScores() {
return(_questionScores);
}
function set questionScores(scores) {
_questionScores = scores;
//return(questionScores);
}
function get score() {
var _local3 = 0;
for (var _local4 in questionScores) {
var _local2 = questionScores[_local4];
if (!isNaN(_local2.__get__score())) {
_local3 = _local3 + _local2.score;
}
}
return(_local3);
}
function get minScore() {
return(quizParams.minScore);
}
function get maxScore() {
return(quizParams.maxScore);
}
function get totalRetries() {
var _local3 = 0;
for (var _local4 in questionScores) {
var _local2 = questionScores[_local4];
_local3 = _local3 + _local2.numTries;
}
return(_local3);
}
function get percentCorrect() {
if (maxScore == 0) {
return(" ");
}
var _local2;
_local2 = Math.round((score * 100) / maxScore);
return(_local2 + "%");
}
function get numQuestions() {
var _local3 = 0;
for (var _local4 in playbackController.__get__slides()) {
var _local2 = playbackController.__get__slides()[_local4];
if ((_local2.__get__slideNum() >= quizParams.firstSlideInQuiz.__get__slideNum()) && (_local2.__get__slideNum() <= quizParams.lastSlideInQuiz.__get__slideNum())) {
_local3 = _local3 + _local2.__get__questionsOnSlide().length;
}
}
return(_local3);
}
function get numQuestionsCorrect() {
var _local3 = 0;
for (var _local4 in questionScores) {
var _local2 = questionScores[_local4];
if (_local2.__get__wasJudged() && (_local2.__get__answeredCorrectly())) {
_local3++;
}
}
return(_local3);
}
function get anyQuestionsAnswered() {
for (var _local3 in questionScores) {
var _local2 = questionScores[_local3];
if (_local2.__get__wasJudged() && (!_local2.__get__answersIncomplete())) {
return(true);
}
}
return(false);
}
function get allQuestionsAnswered() {
var _local4 = [];
for (i in questionScores) {
_local4[questionScores[i].slideNum] = true;
}
i = quizParams.firstSlideInQuiz.slideNum;
while (i <= quizParams.lastSlideInQuiz.__get__slideNum()) {
if (!_local4[i]) {
var _local2 = playbackController.__get__slides()[i];
if ((_local2 && (_local2.questionsOnSlide)) && (_local2.questionsOnSlide.length > 0)) {
if (_local2.questionWeights && (_local2.questionWeights > 0)) {
return(false);
}
}
}
i++;
}
for (var i in questionScores) {
var _local3 = questionScores[i];
if ((_local3.__get__weighting() > 0) && ((!_local3.__get__wasJudged()) || (_local3.__get__answersIncomplete()))) {
return(false);
}
}
return(true);
}
function get sawPassScoreSlide() {
return(_sawPassScoreSlide);
}
function set sawPassScoreSlide(sawIt) {
_sawPassScoreSlide = sawIt;
//return(sawPassScoreSlide);
}
function get sawFailScoreSlide() {
return(_sawFailScoreSlide);
}
function set sawFailScoreSlide(sawIt) {
_sawFailScoreSlide = sawIt;
//return(sawFailScoreSlide);
}
function get sawAnyScoreSlide() {
return(_sawAnyScoreSlide);
}
function set sawAnyScoreSlide(sawIt) {
_sawAnyScoreSlide = sawIt;
//return(sawAnyScoreSlide);
}
function get quizProgressIndicator() {
return(currentSlideContainer._quizProgress);
}
function get quizFinishButton() {
return(currentSlideContainer._quizFinishButton);
}
function getQuestionsForCurrentSlide() {
var _local2 = currentSlideContainer;
var _local3 = [];
if (_local2.m_isRandomQuestionSlide == true) {
var _local4 = _local2.m_qSlide_mc;
for (var _local5 in _local4) {
if (_local5.indexOf("_question") == 0) {
_local3.push(_local4[_local5]);
}
}
} else {
for (var _local5 in _local2) {
if (_local5.indexOf("_question") == 0) {
_local3.push(_local2[_local5]);
}
}
}
return(_local3);
}
function getDeepestQuestion() {
var _local3 = getQuestionsForCurrentSlide();
var _local2 = null;
for (var _local4 in _local3) {
if ((!_local2) || (_local3[_local4].getDepth() < _local2.getDepth())) {
_local2 = _local3[_local4];
}
}
return(MMQuizzingV3.MMQuizClasses.Question(_local2));
}
function get firstQuestionOnCurrentSlide() {
var _local4 = getQuestionsForCurrentSlide();
var _local3 = null;
for (var _local5 in _local4) {
var _local2 = _local4[_local5];
if ((!_local3) || (_local2.__get__questionNumInQuiz() < _local3.__get__questionNumInQuiz())) {
_local3 = _local2;
}
}
return(_local3);
}
function get lastQuestionOnCurrentSlide() {
var _local4 = getQuestionsForCurrentSlide();
var _local3 = null;
for (var _local5 in _local4) {
var _local2 = _local4[_local5];
if ((!_local3) || (_local2.__get__questionNumInQuiz() > _local3.__get__questionNumInQuiz())) {
_local3 = _local2;
}
}
return(_local3);
}
function getQuestionScore(questionNum) {
for (var _local4 in questionScores) {
var _local2 = _questionScores[_local4];
if (_local2.__get__questionNumInQuiz() == questionNum) {
return(_local2);
}
}
return(null);
}
function get isPassed() {
var _local2 = score >= quizParams.passingScore;
return(score >= quizParams.passingScore);
}
function get isAttemptFinished() {
if ((numStarts > 0) && (numStarts == numFinishes)) {
return(true);
}
if ((sawPassScoreSlide || (sawFailScoreSlide)) || (sawAnyScoreSlide)) {
return(true);
}
return(false);
}
function canEnterSlide(slide) {
if (this != playbackController.quizControllerForSlide(slide)) {
return("");
}
var _local3 = quizParams.getSlideType(slide);
var _local2 = false;
if (((onScoreSlide && (_local3 == "question")) && (!inReviewMode)) && (numStarts >= quizParams.__get__numQuizAttemptsAllowed())) {
if (quizParams.allowReviewMode) {
return("");
}
return("QUIZ_ERROR_TOO_MANY_QUIZ_ATTEMPTS");
}
if ((!quizInProgress) || ((quizParams.questionAdvance == "optional") && (totalRetries > 0))) {
switch (_local3) {
case "question" :
if (((!inReviewMode) && (!quizInProgress)) && (numStarts >= quizParams.__get__numQuizAttemptsAllowed())) {
if (quizParams.allowReviewMode) {
return("");
}
return("QUIZ_ERROR_TOO_MANY_QUIZ_ATTEMPTS");
}
break;
case "passScoreSlide" :
if (score < quizParams.passingScore) {
return("QUIZ_ERROR_MUST_PASS_QUIZ_TO_SEE_PASS_SCORE_SLIDE");
}
_local2 = true;
break;
case "failScoreSlide" :
if (score >= quizParams.passingScore) {
return("QUIZ_ERROR_MUST_FAIL_QUIZ_TO_SEE_FAIL_SCORE_SLIDE");
}
_local2 = true;
break;
case "anyScoreSlide" :
_local2 = true;
}
if ((_local2 && (!quizInProgress)) && (!inReviewMode)) {
return("QUIZ_ERROR_MUST_START_QUIZ_TO_SEE_SCORE_SLIDE");
}
} else {
switch (_local3) {
case "question" :
return("");
case "passScoreSlide" :
case "failScoreSlide" :
case "anyScoreSlide" :
return("");
}
}
return("");
}
function canLeaveSlide(fromSlide, movingBackward, currSlide) {
if (this != playbackController.quizControllerForSlide(fromSlide)) {
return("");
}
var _local8 = null;
var _local11 = playbackController.findSlideContainer(fromSlide.__get__slideNum());
if (_local11.m_isRandomQuestionSlide == true) {
var _local6 = currentSlideContainer.m_qSlide_mc;
for (var _local9 in _local6) {
if (_local9.indexOf("_question") == 0) {
var _local4 = _local6[_local9];
_local8 = _local4.questionScore;
}
}
}
var _local10 = quizParams.getSlideType(fromSlide);
switch (_local10) {
case "question" :
var _local3 = getQuestionScore(lastQuestionOnCurrentSlide.__get__questionNumInQuiz());
switch (quizParams.questionAdvance) {
case "mustAnswer" :
if (!inReviewMode) {
if (_local8 != null) {
if ((!movingBackward) && (_local8.__get__numTries() == 0)) {
return("QUIZ_ERROR_MUST_ANSWER_QUESTION");
}
} else {
var _local2 = 0;
while (_local2 < fromSlide.__get__questionsOnSlide().length) {
_local3 = getQuestionScore(fromSlide.__get__questionsOnSlide()[_local2]);
if ((!movingBackward) && ((!_local3) || (_local3.__get__numTries() == 0))) {
return("QUIZ_ERROR_MUST_ANSWER_QUESTION");
}
_local2++;
}
}
}
break;
case "mustAnswerCorrectly" :
if ((!movingBackward) && ((!_local3) || (!_local3.__get__answeredCorrectly()()))) {
return("QUIZ_ERROR_MUST_ANSWER_CORRECTLY");
}
break;
case "optional" :
}
if ((!movingBackward) && (fromSlide.sameSlideAs(lastQuestionSlideInQuiz))) {
if (((quizParams.quizAdvance == "mustTake") && (!anyQuestionsAnswered)) && (numStarts <= 1)) {
return("QUIZ_ERROR_MUST_TAKE_QUIZ");
}
} else if (movingBackward) {
if (((!inReviewMode) && (!quizParams.allowBackwardMovementInQuiz)) && (currSlide == fromSlide)) {
return("QUIZ_ERROR_CANNOT_MOVE_BACKWARD_IN_QUIZ");
}
}
break;
case "passScoreSlide" :
if ((((!quizParams.allowSkipPassScoreSlide) && (score >= quizParams.passingScore)) && (!sawPassScoreSlide)) && (quizInProgress)) {
return("QUIZ_ERROR_MUST_SEE_PASS_SCORE_SLIDE");
}
if (((!movingBackward) && (quizParams.quizAdvance == "mustPass")) && (score < quizParams.passingScore)) {
return("QUIZ_ERROR_MUST_PASS_QUIZ");
}
break;
case "failScoreSlide" :
if ((((!quizParams.allowSkipFailScoreSlide) && (score < quizParams.passingScore)) && (!sawFailScoreSlide)) && (quizInProgress)) {
return("QUIZ_ERROR_MUST_SEE_FAIL_SCORE_SLIDE");
}
if (((!movingBackward) && (quizParams.quizAdvance == "mustPass")) && (score < quizParams.passingScore)) {
return("QUIZ_ERROR_MUST_PASS_QUIZ");
}
break;
case "anyScoreSlide" :
if (((!quizParams.allowSkipFailScoreSlide) && (!sawAnyScoreSlide)) && (quizInProgress)) {
return("QUIZ_ERROR_MUST_SEE_SCORE_SLIDE");
}
if (((!movingBackward) && (quizParams.quizAdvance == "mustPass")) && (score < quizParams.passingScore)) {
return("QUIZ_ERROR_MUST_PASS_QUIZ");
}
break;
}
return("");
}
function onStartQuiz() {
if (quizFinishButton && (quizParams.showFinishButton)) {
quizFinishButton._visible = true;
}
}
function onEndQuiz() {
if (quizFinishButton) {
quizFinishButton._visible = false;
}
playbackController.onEndQuiz(this);
}
function startQuestion(currentQuestion) {
currentQuestion.__set__slide(playbackController.currentSlide);
currentQuestion.startQuestion(inReviewMode, getQuestionScore(currentQuestion.__get__questionNumInQuiz()));
}
function enterCurrentSlide() {
var _local6 = playbackController.__get__currentSlide();
if (this != playbackController.quizControllerForSlide(_local6)) {
return(undefined);
}
var _local7 = quizParams.getSlideType(_local6);
var _local4 = false;
switch (_local7) {
case "question" :
if ((!quizInProgress) && (!inReviewMode)) {
quizInProgress = (true);
}
break;
case "passScoreSlide" :
_local4 = true;
sawPassScoreSlide = (true);
break;
case "failScoreSlide" :
_local4 = true;
sawFailScoreSlide = (true);
break;
case "anyScoreSlide" :
_local4 = true;
sawAnyScoreSlide = (true);
break;
}
var _local3 = getQuestionsForCurrentSlide();
if (_local3.length > 0) {
for (var _local5 in _local3) {
var _local2 = _local3[_local5];
_local2.quizController = this;
startQuestion(_local2);
}
} else if (_local4) {
scoreDisplay.__set__score(score);
scoreDisplay.__set__maxScore(maxScore);
scoreDisplay.__set__numQuestions(numQuestions);
scoreDisplay.__set__numRetries(totalRetries);
scoreDisplay.__set__numQuizAttempts(numStarts);
scoreDisplay.__set__percentCorrect(percentCorrect);
scoreDisplay.__set__numQuestionsCorrect(numQuestionsCorrect);
scoreDisplay.passed = isPassed;
if (isPassed) {
scoreDisplay.__set__feedback(quizParams.passedScoreFeedback);
} else {
scoreDisplay.__set__feedback(quizParams.failedScoreFeedback);
}
scoreDisplay.setAccessibility();
scoreDisplay.__set__quizController(this);
}
if (playbackController.__get__isTracked() && (playbackController.__get__preferredLMSType().toUpperCase() != "EMAIL")) {
playbackController.sendCourseData(true);
} else {
playbackController.sendCourseData(false);
}
}
function doGetURL(actionArg1, actionArg2) {
switch (actionArg2) {
case "0" :
case 0 :
actionArg2 = "_self";
break;
case "1" :
case 1 :
actionArg2 = "_blank";
}
(getURL(actionArg1, actionArg2));// not popped
}
function doQuizAction(actionType, actionArg1, actionArg2) {
switch (actionType) {
case "continue" :
case "gotoSlide" :
break;
case "movie" :
doGetURL(actionArg1, actionArg2);
break;
case "url" :
doGetURL(actionArg1, actionArg2);
break;
case "javascript" :
doGetURL("javascript:" + actionArg1);
break;
case "email" :
if (currentSlideContainer.m_movie.m_movie_mc.rdIsPreview || (currentSlideContainer.m_movie.m_movie_mc.rdIsStandalone)) {
fscommand ("execfile", "mailto:" + actionArg1);
} else {
doGetURL("mailto:" + actionArg1);
}
break;
}
}
function leavingQuiz(fromSlide, toSlide) {
if (quizInProgress) {
if (toSlide.__get__slideNum() >= fromSlide.__get__slideNum()) {
return(toSlide.__get__slideNum() > quizParams.lastSlideInQuiz.__get__slideNum());
}
return(toSlide.__get__slideNum() < firstQuestionSlideInQuiz.__get__slideNum());
}
return(false);
}
function leavingReviewMode(fromSlide, toSlide) {
if (inReviewMode) {
if (toSlide.__get__slideNum() >= fromSlide.__get__slideNum()) {
return(toSlide.__get__slideNum() > quizParams.lastSlideInQuiz.__get__slideNum());
}
return(toSlide.__get__slideNum() < firstQuestionSlideInQuiz.__get__slideNum());
}
return(false);
}
function doAction(actionType, actionArg1, actionArg2) {
switch (actionType) {
case "continue" :
Selection.setFocus(null);
playbackController.gotoNextSlide();
break;
case "gotoSlide" :
var _local3 = null;
_local3 = playbackController.findSlideByID(actionArg1);
if (_local3) {
Selection.setFocus(null);
playbackController.gotoSlide(_local3);
}
break;
case "movie" :
doGetURL(actionArg1, actionArg2);
break;
case "url" :
doGetURL(actionArg1, actionArg2);
break;
case "javascript" :
doGetURL("javascript:" + actionArg1);
break;
case "email" :
doGetURL("mailto:" + actionArg1);
break;
case "submit" :
currentSlideContainer.submit(actionArg1, actionArg2);
break;
case "nextSlide" :
playbackController.gotoNextSlide();
break;
case "prevSlide" :
playbackController.gotoPrevSlide();
break;
}
}
function leaveCurrentSlide(toSlide) {
var fromSlide = playbackController.__get__currentSlide();
var isLeavingQuiz;
if (this != playbackController.quizControllerForSlide(fromSlide)) {
return(undefined);
}
if (playbackController.__get__restoringQuizState()) {
playbackController.__set__restoringQuizState(false);
return(undefined);
}
var slideType = quizParams.getSlideType(fromSlide);
isLeavingQuiz = leavingQuiz(fromSlide, toSlide);
with (quizParams) {
switch (slideType) {
case "question" :
var currentQuestions = getQuestionsForCurrentSlide();
for (var i in currentQuestions) {
var currentQuestion = currentQuestions[i];
if (currentQuestion) {
currentQuestion.endQuestion(false);
currentQuestion.clearAnswers();
currentQuestion.leaveSlide();
}
}
if ((isLeavingQuiz && (!isScoreSlide(toSlide))) && (toSlide.__get__slideNum() == (fromSlide.__get__slideNum() + 1))) {
if ((passingGradeAction.length > 0) && (score >= passingScore)) {
doQuizAction(passingGradeAction, passingGradeActionArg1, passingGradeActionArg2);
} else if ((failingGradeAction.length > 0) && (score < passingScore)) {
doQuizAction(failingGradeAction, failingGradeActionArg1, failingGradeActionArg2);
} else if (anyGradeAction.length > 0) {
doQuizAction(anyGradeAction, anyGradeActionArg1, anyGradeActionArg2);
}
}
break;
case "passScoreSlide" :
if (!inReviewMode) {
isLeavingQuiz = true;
}
if (isLeavingQuiz) {
if (passingGradeAction.length > 0) {
doQuizAction(passingGradeAction, passingGradeActionArg1, passingGradeActionArg2);
} else if (anyGradeAction.length > 0) {
doQuizAction(anyGradeAction, anyGradeActionArg1, anyGradeActionArg2);
}
}
break;
case "failScoreSlide" :
if (!inReviewMode) {
isLeavingQuiz = true;
}
if (isLeavingQuiz) {
if (failingGradeAction.length > 0) {
doQuizAction(failingGradeAction, failingGradeActionArg1, failingGradeActionArg2);
} else if (anyGradeAction.length > 0) {
doQuizAction(anyGradeAction, anyGradeActionArg1, anyGradeActionArg2);
}
}
break;
case "anyScoreSlide" :
if (!inReviewMode) {
isLeavingQuiz = true;
}
if (isLeavingQuiz && (quizInProgress)) {
if ((passingGradeAction.length > 0) && (score >= passingScore)) {
doQuizAction(passingGradeAction, passingGradeActionArg1, passingGradeActionArg2);
} else if ((failingGradeAction.length > 0) && (score < passingScore)) {
doQuizAction(failingGradeAction, failingGradeActionArg1, failingGradeActionArg2);
} else if (anyGradeAction.length > 0) {
doQuizAction(anyGradeAction, anyGradeActionArg1, anyGradeActionArg2);
}
}
break;
}
if (isLeavingQuiz) {
quizInProgress = (false);
}
if (leavingReviewMode(fromSlide, toSlide)) {
inReviewMode = (false);
}
var toSlideType = quizParams.getSlideType(toSlide);
if ((((onScoreSlide && (toSlideType == "question")) && (!inReviewMode)) && (numStarts >= quizParams.__get__numQuizAttemptsAllowed())) && (quizParams.allowReviewMode)) {
inReviewMode = (true);
}
}
}
function canEnterReviewMode() {
if (inReviewMode) {
return("");
}
if (quizParams.allowReviewMode) {
return("");
}
return("QUIZ_ERROR_REVIEW_MODE_NOT_ALLOWED");
}
function reviewAnswers() {
if (quizParams.allowReviewMode) {
inReviewMode = (true);
inForcedReviewMode = (true);
playbackController.gotoSlide(firstQuestionSlideInQuiz);
}
}
function finishQuiz() {
if (quizInProgress) {
var _local2 = null;
var _local3 = quizParams.getSlideType(playbackController.__get__currentSlide());
switch (_local3) {
case "question" :
_local2 = slideAfter(lastQuestionSlideInQuiz);
break;
default :
_local2 = slideAfter(playbackController.__get__currentSlide());
}
quizInProgress = (false);
playbackController.gotoSlide(_local2);
}
}
function sendInteractionData(questionScore) {
if (quizParams.isTracked) {
playbackController.sendInteractionData(questionScore);
}
}
function saveQuestionScore(question) {
if ((!inReviewMode) && (!restoringState)) {
addQuestionScore(question.__get__questionScore());
question._questionScore = null;
}
}
function addQuestionScore(qs) {
for (var _local3 in questionScores) {
if (questionScores[_local3].questionNumInQuiz == qs.__get__questionNumInQuiz()) {
questionScores[_local3] = qs;
return(undefined);
}
}
questionScores.push(qs);
}
function doDefaultAction(question) {
if ((question.isSurvey || (question.__get__answeredCorrectly())) || (question.__get__numTries() >= question.__get__numQuestionAttemptsAllowed())) {
doAction(quizParams.defaultActionType, quizParams.defaultActionArg1, quizParams.defaultActionArg2);
}
}
function saveState(myState) {
myState.writeBoolean(_inReviewMode);
myState.writeBoolean(_inForcedReviewMode);
myState.writeBoolean(_quizInProgress);
myState.writeNumber(_numStarts);
myState.writeNumber(_numFinishes);
myState.writeBoolean(_sawPassScoreSlide);
myState.writeBoolean(_sawFailScoreSlide);
myState.writeBoolean(_sawAnyScoreSlide);
myState.writeNumber(questionScores.length);
var _local2 = 0;
while (_local2 < questionScores.length) {
var _local3 = questionScores[_local2];
_local3.saveState(myState);
_local2++;
}
}
function restoreState(myState) {
restoringState = (true);
_inReviewMode = myState.readBoolean();
_inForcedReviewMode = myState.readBoolean();
_quizInProgress = myState.readBoolean();
_numStarts = myState.readNumber();
_numFinishes = myState.readNumber();
_sawPassScoreSlide = myState.readBoolean();
_sawFailScoreSlide = myState.readBoolean();
_sawAnyScoreSlide = myState.readBoolean();
var _local8 = myState.readNumber();
var _local5;
_local5 = 0;
while (_local5 < _local8) {
var _local6 = new MMQuizzingV3.MMQuizClasses.QuestionScore();
_local6.restoreState(myState);
addQuestionScore(_local6);
_local5++;
}
for (_local5 in questionScores) {
var _local4 = questionScores[whichQuestion];
var _local3 = getQuestionsForCurrentSlide();
for (var whichQuestion in _local3) {
var _local2 = _local3[whichQuestion];
if ((_local2.__get__questionNumInQuiz() == _local4.__get__questionNumInQuiz()) && (_local2.__get__state() == "playing")) {
_local2.endQuestion(false);
_local2.startQuestion(_inReviewMode, _local4);
_local2.resetPreviousAnswers();
}
}
}
restoringState = (false);
}
function resetQuestionScores() {
for (var _local3 in questionScores) {
var _local2 = _questionScores[_local3];
_local2.resetScore();
}
}
function init() {
super.init();
}
var _inReviewMode = false;
var _quizInProgress = false;
var _numStarts = 0;
var _numFinishes = 0;
var _sawPassScoreSlide = false;
var _sawFailScoreSlide = false;
var _sawAnyScoreSlide = false;
var _restoringState = false;
var _inForcedReviewMode = false;
}
Symbol 67 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.QuizParams] Frame 0
class MMQuizzingV3.MMQuizClasses.QuizParams extends Object
{
function QuizParams () {
super();
}
function getSlideType(theSlide) {
if (passScoreSlide && (passScoreSlide.sameSlideAs(theSlide))) {
return("passScoreSlide");
}
if (failScoreSlide && (failScoreSlide.sameSlideAs(theSlide))) {
return("failScoreSlide");
}
if (anyScoreSlide && (anyScoreSlide.sameSlideAs(theSlide))) {
return("anyScoreSlide");
}
if (theSlide.__get__questionsOnSlide().length > 0) {
return("question");
}
return("");
}
function get numQuizAttemptsAllowed() {
return(_numQuizAttemptsAllowed);
}
function set numQuizAttemptsAllowed(num) {
if (num == -1) {
num = 9999;
}
_numQuizAttemptsAllowed = num;
//return(numQuizAttemptsAllowed);
}
function init() {
super.init();
}
var quizID = 0;
var isTracked = false;
var _numQuizAttemptsAllowed = 1;
var minScore = 0;
var maxScore = 150;
var passingScore = 60;
var questionAdvance = "mustAnswer";
var quizAdvance = "mustTake";
var showProgress = "minimal";
var allowBackwardMovementInQuiz = true;
var showFinishButton = false;
var firstSlideInQuiz = null;
var lastSlideInQuiz = null;
var passScoreSlide = null;
var failScoreSlide = null;
var allowSkipFailScoreSlide = true;
var anyScoreSlide = null;
var allowSkipAnyScoreSlide = true;
var allowReviewMode = true;
var defaultActionType = "continue";
var defaultActionArg1 = "";
var defaultActionArg2 = "";
var passedScoreFeedback = "";
var failedScoreFeedback = "";
}
Symbol 68 MovieClip [__Packages.MMQuizzingV3.MMSlideClasses.ISlideInfo] Frame 0
interface MMQuizzingV3.MMSlideClasses.ISlideInfo
{
}
Symbol 69 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.SlideInfo] Frame 0
class MMQuizzingV3.MMQuizClasses.SlideInfo extends Object implements MMQuizzingV3.MMSlideClasses.ISlideInfo
{
var _questionsOnSlide, _slideNum, _firstFrameNum, _lastFrameNum, _selectedQSlideIndex, _selectedPoolName;
function SlideInfo () {
super();
_questionsOnSlide = [];
}
function get slideNum() {
return(_slideNum);
}
function set slideNum(num) {
_slideNum = num;
//return(slideNum);
}
function get firstFrameNum() {
return(_firstFrameNum);
}
function set firstFrameNum(frameNum) {
_firstFrameNum = frameNum;
//return(firstFrameNum);
}
function get lastFrameNum() {
return(_lastFrameNum);
}
function set lastFrameNum(frameNum) {
_lastFrameNum = frameNum;
//return(lastFrameNum);
}
function get questionsOnSlide() {
return(_questionsOnSlide);
}
function set questionsOnSlide(questions) {
_questionsOnSlide = questions;
//return(questionsOnSlide);
}
function containsFrame(frameNum) {
return((frameNum >= firstFrameNum) && (frameNum <= lastFrameNum));
}
function sameSlideAs(slide) {
return(slide && (slideNum == slide.__get__slideNum()));
}
function get seen() {
return(_seen);
}
function set seen(seenIt) {
_seen = seenIt;
//return(seen);
}
function get selectedQSlideIndex() {
return(_selectedQSlideIndex);
}
function set selectedQSlideIndex(index) {
_selectedQSlideIndex = index;
//return(selectedQSlideIndex);
}
function get selectedPoolName() {
return(_selectedPoolName);
}
function set selectedPoolName(name) {
_selectedPoolName = name;
//return(selectedPoolName);
}
function getSlideTitle() {
return("");
}
var _seen = false;
}
Symbol 70 MovieClip [__Packages.MMQuizzingV3.MMSlideClasses.ISlideContent] Frame 0
interface MMQuizzingV3.MMSlideClasses.ISlideContent
{
}
Symbol 71 MovieClip [__Packages.MMQuizzingV3.MMSlideClasses.ISlideContainer] Frame 0
interface MMQuizzingV3.MMSlideClasses.ISlideContainer
{
}
Symbol 72 MovieClip [__Packages.MMQuizzingV3.MMSlideClasses.IQuestionScore] Frame 0
interface MMQuizzingV3.MMSlideClasses.IQuestionScore
{
}
Symbol 73 MovieClip [__Packages.MMQuizzingV3.MMSlideClasses.IQuizState] Frame 0
interface MMQuizzingV3.MMSlideClasses.IQuizState
{
}
Symbol 74 MovieClip [__Packages.MMQuizzingV3.MMSlideClasses.ISlideContent2] Frame 0
interface MMQuizzingV3.MMSlideClasses.ISlideContent2 extends MMQuizzingV3.MMSlideClasses.ISlideContent
{
}
Symbol 75 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.PlaybackController] Frame 0
class MMQuizzingV3.MMQuizClasses.PlaybackController extends mx.core.UIObject implements MMQuizzingV3.MMSlideClasses.ISlideContent2
{
static var _doActionLaterIntervals;
var _tracking, _slides, _quizParams, _quizControllers, _pollLMSStartTime, _pollLMSLoadExternalTrackingSWFStartTime, getURL, dispatchEvent;
function PlaybackController () {
super();
}
function get loadingResumeData() {
return(_loadingResumeData);
}
function set loadingResumeData(loading) {
_loadingResumeData = loading;
//return(loadingResumeData);
}
function get restoringQuizState() {
return(_restoringQuizState);
}
function set restoringQuizState(restoring) {
_restoringQuizState = restoring;
//return(restoringQuizState);
}
function get pollLMSGetTrackingDataTimeoutSecs() {
return(_pollLMSGetTrackingDataTimeoutSecs);
}
function get pollLMSLoadExternalTrackingSWFTimeoutSecs() {
return(_pollLMSLoadExternalTrackingSWFTimeoutSecs);
}
function get trackingLevel() {
return(_trackingLevel);
}
function set trackingLevel(theLevel) {
_trackingLevel = theLevel;
//return(trackingLevel);
}
function get tracking() {
return(_tracking);
}
function set pollLMSGetTrackingDataTimeoutSecs(secs) {
_pollLMSGetTrackingDataTimeoutSecs = secs;
//return(pollLMSGetTrackingDataTimeoutSecs);
}
function get pollLMSInitializeTimeoutSecs() {
return(_pollLMSInitializeTimeoutSecs);
}
function set pollLMSInitializeTimeoutSecs(secs) {
_pollLMSInitializeTimeoutSecs = secs;
//return(pollLMSInitializeTimeoutSecs);
}
function get currentSlide() {
return(_currentSlide);
}
function set currentSlide(slide) {
_currentSlide = slide;
//return(currentSlide);
}
function get slides() {
return(_slides);
}
function get quizParams() {
return(_quizParams);
}
function set slides(a) {
_slides = a;
//return(slides);
}
function set quizParams(a) {
_quizParams = a;
//return(quizParams);
}
function getSlide(slideNum) {
var _local2;
if ((slides == null) || (slides == undefined)) {
return(null);
}
_local2 = 0;
while (_local2 < slides.length) {
if (slides[_local2].slideNum == slideNum) {
return(slides[_local2]);
}
_local2++;
}
return(null);
}
function quizIDForSlide(slide) {
var _local3 = 0;
while (_local3 < _quizParams.length) {
var _local2 = _quizParams[_local3];
if (((_local2 && (slide)) && (slide.__get__slideNum() >= _local2.firstSlideInQuiz.__get__slideNum())) && (slide.__get__slideNum() <= _local2.lastSlideInQuiz.__get__slideNum())) {
return(_local2.quizID);
}
_local3++;
}
return(-1);
}
function quizControllerForSlide(slide) {
return(getQuizController(quizIDForSlide(slide)));
}
function quizParamsOfQuiz(quizID) {
var _local2 = 0;
while (_local2 < _quizParams.length) {
if (_quizParams[_local2].quizID == quizID) {
return(_quizParams[_local2]);
}
_local2++;
}
var _local3 = new MMQuizzingV3.MMQuizClasses.QuizParams();
_local3.quizID = quizID;
_local3.firstSlideInQuiz = new MMQuizzingV3.MMQuizClasses.SlideInfo();
_local3.firstSlideInQuiz.__set__slideNum(999999);
_local3.lastSlideInQuiz = new MMQuizzingV3.MMQuizClasses.SlideInfo();
_local3.lastSlideInQuiz.__set__slideNum(-1);
return(_local3);
}
function get currentSlideContainer() {
return(getCurrentSlideContainer());
}
function getCurrentSlideContainer() {
return(null);
}
function findSlideContainer(slideNum) {
return(null);
}
function getTrackingAdapterReference() {
return(null);
}
function containerSetsAccessibility() {
var _local2 = this;
while (_local2) {
if (_local2._containerSetsAccessibility) {
return(true);
}
_local2 = _local2._parent;
}
return(false);
}
function set preferredLMSType(theType) {
_preferredLMSType = theType;
//return(preferredLMSType);
}
function get preferredLMSType() {
return(_preferredLMSType);
}
function get actualLMSType() {
var _local2 = null;
if (_tracking) {
var _local3 = _tracking.currentTrackingAdapter();
if (_local3) {
return(_local3.getTrackingAdapterType().type_str);
}
}
if (!_local2) {
_local2 = preferredLMSType;
}
return(_local2);
}
function get LMSIsBreeze() {
return(actualLMSType == "BREEZE");
}
function get LMSIsAICC() {
return(actualLMSType == "AICC");
}
function get hasQuizzes() {
return(_quizParams.length > 0);
}
function get numSlidesSeen() {
var _local2 = 0;
for (var _local3 in slides) {
if (slides[_local3].seen) {
_local2++;
}
}
return(_local2);
}
function get passingNumSlidesSeen() {
return(((numSlidesSeen / slides.length) * 100) >= completionSlideViewPercentage);
}
function get allSlidesSeen() {
return(numSlidesSeen == slides.length);
}
function set AuthorwareDelimeter(delim) {
_AuthorwareDelimeter = delim;
//return(AuthorwareDelimeter);
}
function get AuthorwareDelimeter() {
return(_AuthorwareDelimeter);
}
function set emailAddress(addr) {
_emailAddress = addr;
//return(emailAddress);
}
function get emailAddress() {
return(_emailAddress);
}
function get sendScoreAsPercent() {
if (LMSIsBreeze) {
return(false);
}
return(_sendScoreAsPercent);
}
function set sendScoreAsPercent(asPercent) {
_sendScoreAsPercent = asPercent;
//return(sendScoreAsPercent);
}
function get trackingUpdateIntervalSecs() {
return(_trackingUpdateIntervalSecs);
}
function set trackingUpdateIntervalSecs(numSecs) {
_trackingUpdateIntervalSecs = numSecs;
//return(trackingUpdateIntervalSecs);
}
function get sendCourseDataWithInteractionData() {
return(_sendCourseDataWithInteractionData);
}
function set sendCourseDataWithInteractionData(doSend) {
_sendCourseDataWithInteractionData = doSend;
//return(sendCourseDataWithInteractionData);
}
function getQuizController(quizID) {
if (quizID < 0) {
return(null);
}
var _local4 = null;
var _local2 = 0;
while (_local2 < _quizControllers.length) {
var _local3 = _quizControllers[_local2];
if (_local3.__get__quizParams().quizID == quizID) {
_local4 = _local3;
}
_local2++;
}
if (_local4) {
return(_local4);
}
_local4 = new MMQuizzingV3.MMQuizClasses.QuizController();
_local4.__set__quizParams(quizParamsOfQuiz(quizID));
_local4.__set__playbackController(this);
_quizControllers.push(_local4);
return(_local4);
}
function _gotoFrame(frameNum) {
}
static function dispatchDoActionLater(params) {
for (var _local4 in _doActionLaterIntervals) {
var _local2 = _doActionLaterIntervals[_local4];
var _local3 = new Date();
if (_local2.params == params) {
if (((!params.counterObj) || ((params.counterObj._currentframe >= params.lowerFrame) && (params.counterObj._currentframe <= params.upperFrame))) || (_local3.getTime() > params.timeout)) {
clearInterval(_local2.intID);
_doActionLaterIntervals.splice(_local4, 1);
params.obj[params.funcName]();
}
}
}
}
static function doActionLater(obj, funcName, counterObj, lowerFrame, upperFrame, minDelayMsecs, maxDelayMsecs) {
var _local3 = new Date();
if ((maxDelayMsecs == undefined) || (maxDelayMsecs == 0)) {
maxDelayMsecs = 2000;
}
var _local4 = _local3.getTime() + maxDelayMsecs;
var _local11 = {obj:obj, funcName:funcName, counterObj:counterObj, lowerFrame:lowerFrame, upperFrame:upperFrame, timeout:_local4};
if ((minDelayMsecs == undefined) || (minDelayMsecs == 0)) {
minDelayMsecs = 100;
}
var _local9 = setInterval(dispatchDoActionLater, minDelayMsecs, _local11);
if (_doActionLaterIntervals == undefined) {
_doActionLaterIntervals = new Array();
}
_doActionLaterIntervals.push({params:_local11, intID:_local9});
}
function findSlideByID(p_id) {
return(null);
}
function activateSlide(toSlide) {
_gotoFrame(toSlide.__get__firstFrameNum());
}
function allQuestionsOnCurrentSlideConstructed() {
var _local3 = currentSlideContainer;
var _local4 = false;
if (_local3.m_isRandomQuestionSlide == true) {
_local4 = true;
} else {
for (var _local5 in _local3) {
if (_local5.indexOf("_question") == 0) {
_local4 = true;
var _local2 = _local3[_local5];
if (!_local2.isConstructed) {
return(false);
}
}
}
}
return(_local4);
}
function scoreDisplayConstructed() {
var _local3 = currentSlideContainer;
var _local2 = _local3._scoreDisplay;
if (_local2 && (_local2.isConstructed)) {
return(true);
}
return(false);
}
function doPollEnterCurrentSlide() {
var _local2 = quizControllerForSlide(currentSlide);
if (!_local2) {
clearInterval(_pollEnterCurrentSlideIntervalID);
_pollEnterCurrentSlideIntervalID = -1;
return(undefined);
}
var _local3 = _local2.__get__quizParams().getSlideType(currentSlide);
switch (_local3) {
case "question" :
if (allQuestionsOnCurrentSlideConstructed()) {
clearInterval(_pollEnterCurrentSlideIntervalID);
_pollEnterCurrentSlideIntervalID = -1;
_local2.enterCurrentSlide();
}
break;
case "passScoreSlide" :
case "failScoreSlide" :
case "anyScoreSlide" :
if (scoreDisplayConstructed()) {
clearInterval(_pollEnterCurrentSlideIntervalID);
_pollEnterCurrentSlideIntervalID = -1;
_local2.enterCurrentSlide();
}
break;
default :
clearInterval(_pollEnterCurrentSlideIntervalID);
_pollEnterCurrentSlideIntervalID = -1;
}
}
function _gotoSlide(toSlide, notifyOnly, p_fromHB) {
if (_pollEnterCurrentSlideIntervalID != -1) {
clearInterval(_pollEnterCurrentSlideIntervalID);
_pollEnterCurrentSlideIntervalID = -1;
}
if (p_fromHB == undefined) {
p_fromHB = false;
}
var _local3 = quizControllerForSlide(currentSlide);
var _local4 = quizControllerForSlide(toSlide);
if (_local3) {
_local3.leaveCurrentSlide(toSlide);
}
currentSlide = (toSlide);
_gotoSlideCounter++;
if (!notifyOnly) {
activateSlide(toSlide);
}
onSlideChanged(toSlide.__get__slideNum(), p_fromHB);
var _local5 = _local4.__get__quizParams().getSlideType(currentSlide);
if (_local4) {
if (_pollEnterCurrentSlideIntervalID == -1) {
_pollEnterCurrentSlideIntervalID = setInterval(this, "doPollEnterCurrentSlide", 100, this);
}
switch (_local5) {
case "question" :
case "passScoreSlide" :
case "failScoreSlide" :
case "anyScoreSlide" :
break;
default :
if (preferredLMSType.toUpperCase() != "EMAIL") {
sendCourseData(true);
} else {
sendCourseData(false);
}
}
} else {
sendCourseData(false);
}
}
function gotoSlideNum(slideNum) {
return(gotoSlide(getSlide(slideNum)));
}
function finishCurrentQuiz() {
var _local2 = quizControllerForSlide(currentSlide);
_local2.finishQuiz();
}
function get isTracked() {
return(_isTracked);
}
function set isTracked(tracked) {
var _local3 = new MMQuizzingV3.MMQuizClasses.lms.Utilities();
var _local4 = _local3.findParameter("airspeed");
if (_local4 != undefined) {
tracked = true;
}
if (tracked && (tracked != _isTracked)) {
turnOnTracking();
} else if (!tracked) {
if (tracked != _isTracked) {
turnOffTracking();
} else {
loadingResumeData = (false);
}
}
_isTracked = tracked;
//return(isTracked);
}
function get totalQuizScore() {
var _local2 = 0;
for (var _local3 in _quizControllers) {
_local2 = _local2 + _quizControllers[_local3].score;
}
return(_local2);
}
function get totalQuizMaxScore() {
var _local2 = 0;
for (var _local3 in _quizControllers) {
_local2 = _local2 + _quizControllers[_local3].maxScore;
}
return(_local2);
}
function get totalQuizMinScore() {
var _local2 = 0;
for (var _local3 in _quizControllers) {
_local2 = _local2 + _quizControllers[_local3].minScore;
}
return(_local2);
}
function get totalQuizLocation() {
return(String(currentSlide.__get__slideNum()));
}
function set totalQuizLocation(theSlide) {
gotoSlide(getSlide(Number(theSlide)));
//return(totalQuizLocation);
}
function get totalQuizPassed() {
var _local2 = totalQuizStatusAll;
if (_local2.isPassed) {
return("passed");
}
return("failed");
}
function get totalQuizCompleted() {
var _local2 = totalQuizStatusAll;
if (_local2.isCompleted) {
return("completed");
}
return("incomplete");
}
function get totalQuizSendCompletion() {
var _local2 = true;
switch (completionValueToSend) {
case "completion" :
_local2 = true;
break;
case "passed" :
_local2 = false;
break;
case "default" :
default :
var _local3 = totalQuizStatusAll;
_local2 = _local3.sendCompletion;
}
return(_local2);
}
function get totalQuizStatus() {
var _local2 = totalQuizStatusAll;
if (_local2.sendCompletion) {
return(totalQuizCompleted);
}
return(totalQuizPassed);
}
function get totalQuizStatusAll() {
var _local2 = {isPassed:false, isCompleted:false, sendCompletion:true, sendNothing:false};
var _local3 = "";
if (LMSIsBreeze) {
_local3 = "breeze";
} else {
_local3 = completionTrigger;
}
switch (_local3) {
case "breeze" :
if (hasQuizzes) {
if (allQuizAttemptsFinished) {
if (allQuizzesPassed) {
_local2.isPassed = true;
_local2.isCompleted = true;
_local2.sendCompletion = false;
} else {
_local2.isPassed = false;
_local2.isCompleted = true;
_local2.sendCompletion = false;
}
} else {
_local2.isPassed = false;
_local2.isCompleted = false;
_local2.sendCompletion = true;
}
} else if (allSlidesSeen) {
_local2.isPassed = true;
_local2.isCompleted = true;
_local2.sendCompletion = true;
} else {
_local2.isPassed = false;
_local2.isCompleted = false;
_local2.sendCompletion = true;
}
break;
case "quiz_only" :
if (!hasQuizzes) {
if (passingNumSlidesSeen) {
_local2.isPassed = true;
_local2.isCompleted = true;
_local2.sendCompletion = true;
} else {
_local2.isPassed = false;
_local2.isCompleted = false;
_local2.sendCompletion = true;
}
} else if (allQuizzesPassingScore == 0) {
if (allQuizAttemptsFinished) {
_local2.isPassed = true;
_local2.isCompleted = true;
_local2.sendCompletion = true;
} else {
_local2.isPassed = false;
_local2.isCompleted = false;
_local2.sendCompletion = true;
}
} else if (allQuizzesPassed) {
_local2.isPassed = true;
_local2.isCompleted = true;
_local2.sendCompletion = false;
} else if (allQuizAttemptsFinished) {
_local2.isPassed = false;
_local2.isCompleted = true;
_local2.sendCompletion = false;
} else {
_local2.isPassed = false;
_local2.isCompleted = false;
_local2.sendCompletion = true;
}
break;
case "quiz_and_views" :
if (!hasQuizzes) {
if (passingNumSlidesSeen) {
_local2.isPassed = true;
_local2.isCompleted = true;
_local2.sendCompletion = true;
} else {
_local2.isPassed = false;
_local2.isCompleted = false;
_local2.sendCompletion = true;
}
} else if (allQuizzesPassingScore == 0) {
if (allQuizAttemptsFinished) {
_local2.isPassed = true;
_local2.isCompleted = true;
_local2.sendCompletion = true;
} else {
_local2.isPassed = false;
_local2.isCompleted = false;
_local2.sendCompletion = true;
}
} else {
if (allQuizzesPassed) {
_local2.isPassed = true;
_local2.sendCompletion = false;
} else if (allQuizAttemptsFinished) {
_local2.isPassed = false;
_local2.sendCompletion = false;
}
if (passingNumSlidesSeen) {
_local2.isCompleted = true;
_local2.sendCompletion = true;
}
}
break;
case "views_only" :
if (passingNumSlidesSeen) {
_local2.isPassed = true;
_local2.isCompleted = true;
_local2.sendCompletion = true;
} else {
_local2.isPassed = false;
_local2.isCompleted = false;
_local2.sendCompletion = true;
}
break;
case "access" :
default :
if (numSlidesSeen < 1) {
_local2.isPassed = false;
_local2.isCompleted = false;
_local2.sendCompletion = true;
} else {
_local2.isPassed = true;
_local2.isCompleted = true;
_local2.sendCompletion = true;
}
}
return(_local2);
}
function get allQuestionsAnswered() {
for (var _local3 in _quizParams) {
var _local2 = getQuizController(_quizParams[_local3].quizID);
if (!_local2.__get__allQuestionsAnswered()) {
return(false);
}
}
return(true);
}
function get allQuizAttemptsFinished() {
for (var _local3 in _quizParams) {
var _local2 = getQuizController(_quizParams[_local3].quizID);
if (!_local2.__get__isAttemptFinished()) {
return(false);
}
}
return(true);
}
function get allQuizzesPassed() {
for (var _local3 in _quizParams) {
var _local2 = getQuizController(_quizParams[_local3].quizID);
if (!_local2.__get__isPassed()) {
return(false);
}
}
return(true);
}
function get allQuizzesPassingScore() {
var _local2 = 0;
for (var _local3 in _quizParams) {
_local2 = _local2 + _quizParams[_local3].passingScore;
}
return(_local2);
}
function get totalQuizTime() {
return(null);
}
function get totalQuizState() {
var _local2 = new MMQuizzingV3.MMQuizClasses.QuizState();
saveQuizState(_local2);
var _local3 = _local2.toString();
return(_local3);
}
function init() {
if (_quizControllers == undefined) {
_quizControllers = [];
}
if (_slides == undefined) {
_slides = [];
}
if (_quizParams == undefined) {
_quizParams = [];
}
super.init();
doActionLater(this, "postInit", currentSlideContainer, currentSlideContainer._currentframe + 1, 9999999, 100, 1000);
}
function postInit() {
}
function onStartQuiz(qc) {
}
function shouldSendCourseData(lastData, thisData) {
if (preferredLMSType.toUpperCase() == "EMAIL") {
return(false);
}
if ((thisData == null) || (thisData == undefined)) {
return(false);
}
if ((lastData == null) || (lastData == undefined)) {
return(true);
}
if (thisData.slideCount >= (lastData.slideCount + _sendCourseDataSlideInterval)) {
return(true);
}
if ((((thisData.quizMinScore != lastData.quizMinScore) || (thisData.quizMaxScore != lastData.quizMaxScore)) || (thisData.sendScoreAsPercent != lastData.sendScoreAsPercent)) || (thisData.quizSendCompletion != lastData.quizSendCompletion)) {
return(true);
}
if (((thisData.quizScore != lastData.quizScore) || (thisData.quizCompleted != lastData.quizCompleted)) || (thisData.quizPassed != lastData.quizPassed)) {
return(true);
}
return(false);
}
function shouldFlushCourseData(lastData, thisData) {
if (preferredLMSType.toUpperCase() == "EMAIL") {
return(false);
}
if ((thisData == null) || (thisData == undefined)) {
return(false);
}
if ((lastData == null) || (lastData == undefined)) {
return(true);
}
if ((((thisData.quizMinScore != lastData.quizMinScore) || (thisData.quizMaxScore != lastData.quizMaxScore)) || (thisData.sendScoreAsPercent != lastData.sendScoreAsPercent)) || (thisData.quizSendCompletion != lastData.quizSendCompletion)) {
return(true);
}
if (((thisData.quizScore != lastData.quizScore) || (thisData.quizCompleted != lastData.quizCompleted)) || (thisData.quizPassed != lastData.quizPassed)) {
return(true);
}
return(false);
}
function sendCourseData(flush) {
setBreezeDefaults();
if (_slideContainer) {
_slideContainer.sendCourseData(flush);
} else {
var _local3 = _tracking.currentTrackingAdapter();
if (isTracked && (_local3)) {
_local3.isRDPreview = currentSlideContainer.m_movie.m_movie_mc.rdIsPreview == 1;
var _local2 = new MMQuizzingV3.MMQuizClasses.CourseData(_gotoSlideCounter, totalQuizScore, totalQuizMinScore, totalQuizMaxScore, sendScoreAsPercent, totalQuizLocation, totalQuizCompleted, totalQuizPassed, totalQuizSendCompletion, totalQuizTime, totalQuizState);
flush = flush || (shouldFlushCourseData(_lastCourseDataSent, _local2));
if (flush || (shouldSendCourseData(_lastCourseDataSent, _local2))) {
_lastCourseDataSent = _local2;
_local3.sendTrackingData(_local2.quizScore, _local2.quizMinScore, _local2.quizMaxScore, _local2.sendScoreAsPercent, _local2.quizLocation, _local2.quizCompleted, _local2.quizPassed, _local2.quizSendCompletion, _local2.quizTime, _local2.quizState);
if (flush) {
_local3.flush();
_local3.flushData();
}
} else {
}
}
}
}
function sendInteractionData(questionScore) {
setBreezeDefaults();
if (_slideContainer) {
_slideContainer.sendInteractionData(questionScore);
} else if (isTracked && (trackingLevel == "interactions")) {
var trackingAdapter = _tracking.currentTrackingAdapter();
if (trackingAdapter) {
trackingAdapter.isRDPreview = currentSlideContainer.m_movie.m_movie_mc.rdIsPreview == 1;
with (questionScore) {
if (LMSIsAICC) {
trackingAdapter.sendInteractionData(interactionID, objectiveID, interactionType, correctAnswersAsString, chosenAnswersAsString, isCorrectAsString, weighting, latencyAsString, curDateAsString2, curTimeAsSecondsSinceMidnight);
} else {
trackingAdapter.sendInteractionData(interactionID, objectiveID, interactionType, correctAnswersAsString, chosenAnswersAsString, isCorrectAsString, weighting, latencyAsSeconds, curDateAsString, curTimeAsSecondsSinceMidnight);
}
}
}
}
}
function onEndQuiz(qc) {
if (isTracked && (preferredLMSType.toUpperCase() != "EMAIL")) {
sendCourseData(true);
}
}
function sendEmailResults() {
if (isTracked && (preferredLMSType.toUpperCase() == "EMAIL")) {
sendCourseData(true);
}
}
function doSendLMSTrackingData(pbcontroller) {
if (pbcontroller.__get__isTracked() && (pbcontroller.__get__preferredLMSType().toUpperCase() != "EMAIL")) {
pbcontroller.sendCourseData(true);
} else {
pbcontroller.sendCourseData(false);
}
}
function setBreezeDefaults() {
if (LMSIsBreeze) {
completionValueToSend = "default";
completionTrigger = "breeze";
completionSlideViewPercentage = 100;
sendScoreAsPercent = (false);
trackingLevel = ("interactions");
trackingUrlEncodeVersionAndSession = true;
trackingCharsToNotUrlEncode = "";
trackingSendResumeData = true;
}
}
function createTrackingAdapter() {
_tracking = new MMQuizzingV3.MMQuizClasses.lms.Tracking();
if (_tracking.createTrackingAdapter(preferredLMSType, AuthorwareDelimeter, emailAddress, getTrackingAdapterReference(), mmTrackingSWF, trackingUrlEncodeVersionAndSession, trackingCharsToNotUrlEncode, trackingSendResumeData)) {
var _local2 = _tracking.currentTrackingAdapter();
if ((_local2 == null) || (_local2 == undefined)) {
} else if (_local2.isInitialized()) {
getTrackingData();
} else {
_pollLMSIntervalID = setInterval(this, "doPollLMSInitialized", 250, this);
_pollLMSStartTime = new Date();
_gotoSlideCounter = 0;
}
} else {
delete _tracking;
_tracking = null;
loadingResumeData = (false);
_trackingIsOn = false;
}
}
function isExternalTrackingSWFLoaded() {
if (mmTrackingSWF && (mmTrackingSWF.isReady != undefined)) {
return(mmTrackingSWF.isReady);
}
return(false);
}
function doPollLMSLoadExternalTrackingSWF(pbcontroller) {
if (pbcontroller.isExternalTrackingSWFLoaded()) {
clearInterval(pbcontroller._pollLMSLoadExternalTrackingSWFIntervalID);
pbcontroller.createTrackingAdapter();
} else {
var _local2 = new Date();
var _local3 = (_local2.getTime() - pbcontroller._pollLMSLoadExternalTrackingSWFStartTime.getTime()) / 1000;
if (_local3 > pbcontroller.__get__pollLMSLoadExternalTrackingSWFTimeoutSecs()) {
clearInterval(pbcontroller._pollLMSLoadExternalTrackingSWFIntervalID);
pbcontroller.createTrackingAdapter();
}
}
}
function loadExternalTrackingAdapter(parentReference, adapterName) {
MMQuizzingV3.MMQuizClasses.lms.Tracking.loadExternalTrackingAdapter(parentReference, adapterName);
_pollLMSLoadExternalTrackingSWFStartTime = new Date();
_pollLMSLoadExternalTrackingSWFIntervalID = setInterval(this, "doPollLMSLoadExternalTrackingSWF", 250, this);
}
function getTrackingData() {
var _local2 = _tracking.currentTrackingAdapter();
_local2.getTrackingData();
_pollLMSIntervalID = setInterval(this, "doPollLMSGetTrackingDataLoaded", 250, this);
_pollLMSStartTime = new Date();
}
function doPollLMSInitialized(pbcontroller) {
var _local3 = pbcontroller._tracking.currentTrackingAdapter();
if (_local3 && (_local3.isInitialized())) {
setBreezeDefaults();
_local3.isRDPreview = pbcontroller.__get__currentSlideContainer().m_movie.m_movie_mc.rdIsPreview == 1;
clearInterval(pbcontroller._pollLMSIntervalID);
getTrackingData();
} else {
var _local4 = new Date();
var _local5 = (_local4.getTime() - pbcontroller._pollLMSStartTime.getTime()) / 1000;
if (_local5 > pbcontroller.__get__pollLMSInitializeTimeoutSecs()) {
turnOffTracking();
}
}
}
function _doPollLMSGetTrackingDataLoaded() {
if (isTracked) {
var _local2 = _tracking.currentTrackingAdapter();
if (_local2 && (_local2.isTrackingDataLoaded())) {
clearInterval(_pollLMSIntervalID);
var _local7 = _local2.getLessonLocation();
var _local5 = _local2.getLessonData();
var _local3 = new MMQuizzingV3.MMQuizClasses.QuizState();
_local3.fromString(_local5);
restoreQuizState(_local3);
loadingResumeData = (false);
_pollLMSIntervalID = setInterval(this, "doSendLMSTrackingData", trackingUpdateIntervalSecs * 1000, this);
} else {
var _local4 = new Date();
var _local6 = (_local4.getTime() - _pollLMSStartTime.getTime()) / 1000;
if (_local6 > pollLMSGetTrackingDataTimeoutSecs) {
turnOffTracking();
}
}
}
}
function doPollLMSGetTrackingDataLoaded(pbcontroller) {
pbcontroller._doPollLMSGetTrackingDataLoaded();
}
function turnOnTracking() {
if ((!_trackingIsOn) && (!_slideContainer)) {
loadingResumeData = (true);
_trackingIsOn = true;
if (needToLoadExternalTrackingSWF) {
loadExternalTrackingAdapter(getTrackingAdapterReference(), externalTrackingSWFName);
} else {
createTrackingAdapter();
}
}
}
function turnOffTracking() {
if (_trackingIsOn) {
loadingResumeData = (false);
clearInterval(_pollLMSIntervalID);
_trackingIsOn = false;
}
}
function doFinalExit() {
turnOffTracking();
if (_allowForceQuitContainer) {
if (_root.FlashPlayer) {
fscommand ("quit");
} else if (preferredLMSType.toUpperCase() != "AUTHORWARE") {
if (System.capabilities.playerType == "PlugIn") {
(getURL("javascript:window.open( \"\", \"_parent\", \"\" );", "_self"));// not popped
(getURL("javascript:window.close();", "_self"));// not popped
} else if (System.capabilities.playerType == "StandAlone") {
fscommand ("quit");
} else {
(getURL("javascript:window.close();", "_self"));// not popped
}
}
}
}
function exitCourse() {
if (_slideContainer) {
_slideContainer.exitCourse();
} else if (isTracked && (_tracking.currentTrackingAdapter())) {
if (preferredLMSType.toUpperCase() != "EMAIL") {
sendCourseData(true);
}
_tracking.currentTrackingAdapter().finish();
doActionLater(this, "doFinalExit", null, 0, 0, 3000, 3000);
} else {
doFinalExit();
}
}
function onPlayStateChanged(p_fromHB) {
if (p_fromHB == undefined) {
p_fromHB = false;
}
dispatchEvent({type:"playStateChanged", target:this, isPlaying:isPlaying(), fromHB:p_fromHB});
}
function onUserScrubChanged(p_fromHB) {
if (p_fromHB == undefined) {
p_fromHB = false;
}
dispatchEvent({type:"scrubChanged", target:this, scrub:getScrubPosition(), fromHB:p_fromHB});
}
function onScrubChanged(p_fromHB) {
if (p_fromHB == undefined) {
p_fromHB = false;
}
}
function onSlideChanged(i, p_fromHB) {
if (p_fromHB == undefined) {
p_fromHB = false;
}
if ((i >= 0) && (i < slides.length)) {
currentSlide = (slides[i]);
currentSlide.__set__seen(true);
if (_tracking) {
var _local2 = _tracking.currentTrackingAdapter();
if (_local2) {
_local2.sendSlideView(i);
}
}
}
dispatchEvent({type:"slideChanged", target:this, slideNum:currentSlide.__get__slideNum(), fromHB:p_fromHB});
}
function onCurrentSlideLoaded(p_fromHB) {
if (p_fromHB == undefined) {
p_fromHB = false;
}
dispatchEvent({type:"currentSlideLoaded", target:this, slideNum:currentSlide.__get__slideNum(), fromHB:p_fromHB});
}
function onVolumeChanged(newVolume, p_fromHB) {
if (p_fromHB == undefined) {
p_fromHB = false;
}
dispatchEvent({type:"volumeChanged", target:this, volume:newVolume, fromHB:p_fromHB});
}
function onIsScrubbingChanged(p_fromHB) {
if (p_fromHB == undefined) {
p_fromHB = false;
}
}
function getCurrentFrame() {
return(0);
}
function get mmTrackingSWF() {
var _local2 = getTrackingAdapterReference();
while (_local2) {
if ((_local2._mmTrackingSWF != undefined) && (_local2._mmTrackingSWF != null)) {
return(_local2._mmTrackingSWF);
}
_local2 = _local2._parent;
}
return(null);
}
function isReady() {
return(false);
}
function getCurrentSlideIndex() {
return(currentSlide.__get__slideNum());
}
function getSlideInfo(slideNum) {
if ((slideNum < 0) || (slideNum >= slides.length)) {
return(null);
}
return(getSlide(slideNum));
}
function getNumSlides() {
return(slides.length);
}
function getSlideAfter(s) {
var _local3 = quizControllerForSlide(s);
var _local2 = null;
if (_local3) {
var _local4 = _local3.__get__quizParams();
var _local5 = _local4.lastSlideInQuiz.slideNum;
_local2 = _local3.slideAfter(s);
if (_local3.__get__inReviewMode() && (_local3.__get__inForcedReviewMode())) {
while ((_local2 && (_local2.__get__slideNum() < _local5)) && (_local4.getSlideType(_local2) == "")) {
_local2 = _local3.slideAfter(_local2);
}
}
}
if (!_local2) {
_local2 = getSlide(s.__get__slideNum() + 1);
}
return(_local2);
}
function gotoNextSlide() {
return(gotoSlide(getSlideAfter(currentSlide)));
}
function getSlideBefore(s) {
var _local5 = quizControllerForSlide(s);
var _local2 = null;
if (_local5) {
var _local4 = _local5.__get__quizParams();
var _local3 = _local4.firstSlideInQuiz.slideNum;
_local2 = _local5.slideBefore(s);
if (_local5.__get__inReviewMode() && (_local5.__get__inForcedReviewMode())) {
if (_local2.__get__slideNum() < _local3) {
_local2 = getSlide(_local3);
} else {
while ((_local2 && (_local2.__get__slideNum() > _local3)) && (_local4.getSlideType(_local2) == "")) {
_local2 = getSlide(_local2.__get__slideNum() - 1);
}
}
}
}
if (!_local2) {
_local2 = getSlide(s.__get__slideNum() - 1);
}
return(_local2);
}
function gotoPrevSlide() {
return(gotoSlide(getSlideBefore(currentSlide)));
}
function enableReviewMode(slide) {
var _local2 = quizControllerForSlide(slide);
if ((((_local2 && (!_local2.__get__inReviewMode())) && (!_local2.__get__quizInProgress())) && (_local2.__get__quizParams().allowReviewMode)) && (_local2.__get__numStarts() >= _local2.__get__quizParams().__get__numQuizAttemptsAllowed())) {
_local2.__set__inReviewMode(true);
}
}
function gotoSlideEx(slide, p_notifyOnly, p_fromHB) {
var _local2 = MMQuizzingV3.MMQuizClasses.SlideInfo(slide);
var _local3 = allowedToGoToSlide(currentSlide, _local2);
if (_local3 == "") {
enableReviewMode(_local2);
_gotoSlide(_local2, p_notifyOnly, p_fromHB);
}
return(_local3);
}
function gotoSlide(slide) {
return(gotoSlideEx(slide, false, false));
}
function allowedToGoToSlide(fromSlide, toSlide) {
if (currentSlideContainer.m_movie.m_isPreviewForAudioDialog == 1) {
return("");
}
var _local3 = MMQuizzingV3.MMQuizClasses.SlideInfo(fromSlide);
var _local4 = MMQuizzingV3.MMQuizClasses.SlideInfo(toSlide);
var _local2 = "";
var _local7 = _local4.slideNum < _local3.slideNum;
var _local5;
var _local6;
var _local8 = ((_local3.slideNum < _local4.slideNum) ? 1 : -1);
if (loadingResumeData) {
return("QUIZ_ERROR_WAITING_FOR_LMS_RESUME_DATA");
}
if ((((_local3 == undefined) || (!_local3)) || (_local4 == undefined)) || (!_local4)) {
return("QUIZ_ERROR_BAD_SLIDE_NUM");
}
while (true) {
if (_local3.sameSlideAs(_local4)) {
_local6 = quizControllerForSlide(_local4);
if (_local6) {
_local2 = _local6.canEnterSlide(_local4);
return(_local2);
}
return("");
}
_local5 = quizControllerForSlide(_local3);
if (_local5) {
_local2 = _local5.canLeaveSlide(_local3, _local7, currentSlide);
} else {
_local2 = "";
}
if (_local2 != "") {
return(_local2);
}
_local3 = getSlide(_local3.slideNum + _local8);
}
}
function reviewAnswersForCurrentQuiz() {
var _local2 = quizControllerForSlide(currentSlide);
_local2.reviewAnswers();
}
function showUI(part, show) {
return(false);
}
function setPlaying(playing) {
}
function isPlaying() {
return(false);
}
function getScrubDuration(slideIndex) {
return(0);
}
function getScrubStart(slideIndex) {
return(0);
}
function getScrubPosition() {
return(0);
}
function gotoScrubPosition(position) {
}
function setContainer(container) {
if (!LMSIsBreeze) {
_slideContainer = container;
}
}
function saveQuizState(state) {
var _local2 = MMQuizzingV3.MMQuizClasses.QuizState(state);
_local2.writeNumber(currentSlide.__get__slideNum());
for (var _local5 in slides) {
_local2.writeBoolean(slides[_local5].seen);
_local2.writeString(slides[_local5].selectedPoolName);
_local2.writeNumber(slides[_local5].selectedQSlideIndex);
}
for (var _local4 in _quizParams) {
var _local3 = getQuizController(_quizParams[_local4].quizID);
_local3.saveState(_local2);
}
return("");
}
function gotoRestoredQuizSlide() {
if (_restoredSlideNum < 0) {
_restoredSlideNum = 0;
}
currentSlide = (getSlide(_restoredSlideNum));
_restoringQuizState = true;
currentSlideContainer.m_movie.gotoSlide(_restoredSlideNum);
}
function restoreQuizState(state) {
var _local2 = MMQuizzingV3.MMQuizClasses.QuizState(state);
var _local6 = _local2.toString();
if (_local6.length > 0) {
_restoredSlideNum = _local2.readNumber();
if ((_restoredSlideNum == null) || (_restoredSlideNum == undefined)) {
return("");
}
for (var _local5 in slides) {
slides[_local5].seen = _local2.readBoolean();
slides[_local5].selectedPoolName = _local2.readString();
slides[_local5].selectedQSlideIndex = _local2.readNumber();
}
currentSlideContainer.m_movie.RestoreMovieState();
for (var _local4 in _quizParams) {
var _local3 = getQuizController(_quizParams[_local4].quizID);
_local3.restoreState(_local2);
}
doActionLater(this, "gotoRestoredQuizSlide", null, 0, 0, 500, 500);
}
return("");
}
function getTotalQuizScore() {
return(totalQuizScore);
}
function getMinQuizScore() {
return(totalQuizMinScore);
}
function getMaxQuizScore() {
return(totalQuizMaxScore);
}
function isQuizPassed() {
return(allQuizzesPassed == true);
}
function isQuizCompleted() {
return(allQuizAttemptsFinished == true);
}
function setSize(newWidth, newHeight) {
}
function addEventListener(eventName, listenerObj) {
super.addEventListener(eventName, listenerObj);
}
function getVolume() {
return(0);
}
function setVolume(v) {
}
function getIsScrubbing() {
return(false);
}
function getSupportsSyncPlayback() {
return(true);
}
function setAllowForceQuitContainer(allow) {
_allowForceQuitContainer = allow;
}
function hasProperty(prop) {
return(false);
}
function getSlideViewMetrics() {
return({left:0, top:0, right:0, bottom:0});
}
function setSyncMode(p_mode) {
}
function setPlayAndScrub(p_playing, p_position) {
return(false);
}
function close() {
}
var _currentSlide = null;
var _isTracked = false;
var _trackingUpdateIntervalSecs = 600;
var _sendCourseDataWithInteractionData = true;
var _sendCourseDataSlideInterval = 10;
var _lastCourseDataSent = null;
var _gotoSlideCounter = 0;
var _preferredLMSType = "SCORM";
var _AuthorwareDelimeter = ";";
var _emailAddress = "";
var _pollLMSIntervalID = 0;
var _pollLMSInitializeTimeoutSecs = 2;
var _pollLMSGetTrackingDataTimeoutSecs = 15;
var _pollEnterCurrentSlideIntervalID = -1;
var _pollLMSLoadExternalTrackingSWFTimeoutSecs = 2.5;
var _pollLMSLoadExternalTrackingSWFIntervalID = 0;
var externalTrackingSWFName = "MMTracking.swf";
var _trackingIsOn = false;
var _loadingResumeData = false;
var completionValueToSend = "default";
var completionTrigger = "quiz_only";
var completionSlideViewPercentage = 100;
var _sendScoreAsPercent = false;
var _trackingLevel = "interactions";
var _courseIsComplete = false;
var _slideContainer = null;
var _restoredSlideNum = -1;
var _restoringQuizState = false;
var _allowForceQuitContainer = true;
var trackingUrlEncodeVersionAndSession = true;
var trackingCharsToNotUrlEncode = "";
var trackingSendResumeData = true;
var needToLoadExternalTrackingSWF = false;
var needToSkipExternalTrackingSWF = true;
}
Symbol 76 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.CourseData] Frame 0
class MMQuizzingV3.MMQuizClasses.CourseData
{
function CourseData (aSlideCount, aQuizScore, aQuizMinScore, aQuizMaxScore, aSendScoreAsPercent, aQuizLocation, aQuizCompleted, aQuizPassed, aQuizSendCompletion, aQuizTime, aQuizState) {
slideCount = aSlideCount;
quizScore = aQuizScore;
quizMinScore = aQuizMinScore;
quizMaxScore = aQuizMaxScore;
sendScoreAsPercent = aSendScoreAsPercent;
quizLocation = aQuizLocation;
quizCompleted = aQuizCompleted;
quizPassed = aQuizPassed;
quizSendCompletion = aQuizSendCompletion;
quizTime = aQuizTime;
quizState = aQuizState;
}
function init() {
}
var slideCount = 0;
var quizScore = 0;
var quizMinScore = 0;
var quizMaxScore = 0;
var sendScoreAsPercent = false;
var quizLocation = "";
var quizCompleted = "";
var quizPassed = "";
var quizSendCompletion = false;
var quizTime = "";
var quizState = "";
}
Symbol 77 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 78 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.126";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 79 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 80 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 81 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(MovieClip(this), _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local1 = targetDepth;
var _local2 = targetDepth;
if (direction == "down") {
while (depthTable[_local2] != undefined) {
_local2--;
}
return(_local2);
}
while (depthTable[_local1] != undefined) {
_local1++;
}
return(_local1);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 82 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local8 = false;
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
_local8 = true;
}
if (_local8) {
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 83 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 84 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local4 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local4 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = mx.controls.scrollClasses.ScrollBar(createObject("HScrollBar", "hSB", 1001));
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local4)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local4, 0, colCount - _local4);
viewableColumns = _local4;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local5 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local5 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = mx.controls.scrollClasses.ScrollBar(createObject("VScrollBar", "vSB", 1002));
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local5 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local5, 0, (rwCount - _local5) + _local8);
viewableRows = _local5;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = mx.controls.scrollClasses.ScrollBar(createObject("FHScrollBar", "hSB", 1001));
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.126";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 85 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
_scrollPosition = pos;
if (isScrolling != true) {
pos = Math.min(pos, maxPos);
pos = Math.max(pos, minPos);
var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top;
scrollThumb_mc.move(0, _local3);
}
//return(scrollPosition);
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
super.init();
_scrollPosition = 0;
tabEnabled = false;
focusEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (scrollTrack_mc == undefined) {
setSkin(skinIDTrack, scrollTrackName);
}
scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (upArrow_mc == undefined) {
_local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = onUpArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _local2.height;
_minWidth = _local2.width;
if (downArrow_mc == undefined) {
_local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = onDownArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
if (skinID == skinIDUpArrow) {
o.falseUpSkin = upArrowUpName;
o.falseDownSkin = upArrowDownName;
o.falseOverSkin = upArrowOverName;
} else {
o.falseUpSkin = downArrowUpName;
o.falseDownSkin = downArrowDownName;
o.falseOverSkin = downArrowOverName;
}
var _local3 = createObject(linkageName, id, skinID, o);
this[id].visible = false;
this[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = new Object();
_local2.validateNow = true;
_local2.tabEnabled = false;
_local2.leftSkin = thumbTopName;
_local2.middleSkin = thumbMiddleName;
_local2.rightSkin = thumbBottomName;
_local2.gripSkin = thumbGripName;
createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local4;
var _local2 = scrollTrack_mc;
pageSize = pSize;
largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
minPos = Math.max(mnPos, 0);
maxPos = Math.max(mxPos, 0);
_scrollPosition = Math.max(minPos, _scrollPosition);
_scrollPosition = Math.min(maxPos, _scrollPosition);
if (((maxPos - minPos) > 0) && (enabled)) {
var _local5 = _scrollPosition;
if (!initializing) {
upArrow_mc.enabled = true;
downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = startTrackScroller);
_local2.onRelease = releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = stopScrolling);
_local2.onReleaseOutside = releaseScrolling;
_local2.useHandCursor = false;
if (scrollThumb_mc == undefined) {
createThumb();
}
var _local3 = scrollThumb_mc;
if (scrollTrackOverName.length > 0) {
_local2.onRollOver = trackOver;
_local2.onRollOut = trackOut;
}
_local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height;
if (_local4 < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
_local4 = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local4);
}
_local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos);
_local5 = Math.min(_local5, maxPos);
scrollPosition = (Math.max(_local5, minPos));
} else {
scrollThumb_mc.__set__visible(false);
if (!initializing) {
upArrow_mc.enabled = false;
downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (initializing) {
scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function draw(Void) {
if (initializing) {
initializing = false;
scrollTrack_mc.visible = true;
upArrow_mc.__set__visible(true);
downArrow_mc.__set__visible(true);
}
size();
}
function size(Void) {
if (_height == 1) {
return(undefined);
}
if (upArrow_mc == undefined) {
return(undefined);
}
var _local3 = upArrow_mc.__get__height();
var _local2 = downArrow_mc.__get__height();
upArrow_mc.move(0, 0);
var _local4 = scrollTrack_mc;
_local4._y = _local3;
_local4._height = (virtualHeight - _local3) - _local2;
downArrow_mc.move(0, virtualHeight - _local2);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
if (k == 36) {
if (scrollPosition != 0) {
scrollPosition = (0);
dispatchScrollEvent(minMode);
}
return(true);
}
if (k == 35) {
if (scrollPosition < maxPos) {
scrollPosition = (maxPos);
dispatchScrollEvent(maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local3 = smallScroll;
if (inc != "Line") {
_local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll));
}
var _local2 = _scrollPosition + (mode * _local3);
if (_local2 > maxPos) {
_local2 = maxPos;
} else if (_local2 < minPos) {
_local2 = minPos;
}
if (scrollPosition != _local2) {
scrollPosition = (_local2);
var _local4 = ((mode < 0) ? (minusMode) : (plusMode));
dispatchScrollEvent(inc + _local4);
}
}
function startTrackScroller(Void) {
_parent.pressFocus();
if (_parent.scrollTrackDownName.length > 0) {
if (_parent.scrollTrackDown_mc == undefined) {
_parent.setSkin(skinIDTrackDown, scrollTrackDownName);
} else {
_parent.scrollTrackDown_mc.visible = true;
}
}
_parent.trackScroller();
_parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
clearInterval(scrolling);
if (inc == "Page") {
trackScroller();
} else {
scrollIt(inc, mode);
}
scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode);
}
function trackScroller(Void) {
if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) {
scrollIt("Page", 1);
} else if (scrollThumb_mc._y > _ymouse) {
scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
_parent.releaseFocus();
stopScrolling();
_parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
if (_parent.scrollTrackOverName.length > 0) {
if (_parent.scrollTrackOver_mc == undefined) {
_parent.setSkin(skinIDTrackOver, scrollTrackOverName);
} else {
_parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 86 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.2.126";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 87 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
ymin = _ymin;
ymax = _ymax;
datamin = _datamin;
datamax = _datamax;
}
function dragThumb(Void) {
scrollMove = _ymouse - lastY;
scrollMove = scrollMove + _y;
if (scrollMove < ymin) {
scrollMove = ymin;
} else if (scrollMove > ymax) {
scrollMove = ymax;
}
_parent.isScrolling = true;
_y = scrollMove;
var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin;
_parent.scrollPosition = _local2;
_parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
_parent.isScrolling = false;
_parent.dispatchScrollEvent("ThumbPosition");
_parent.dispatchScrollChangedEvent();
delete onMouseMove;
}
function onPress(Void) {
_parent.pressFocus();
lastY = _ymouse;
onMouseMove = dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
super.draw();
if (grip_mc == undefined) {
setSkin(3, gripSkin);
}
}
function size() {
super.size();
grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 88 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 89 MovieClip [__Packages.mx.controls.TextArea] Frame 0
class mx.controls.TextArea extends mx.core.ScrollView
{
var label, invalidate, initText, dispatchValueChangedEvent, getHPosition, setHPosition, getVPosition, setVPosition, _color, focusTextField, tfx, tfy, tfw, tfh, doLater, _vpos, _hpos, hookedV, vScroller, hookedH, hScroller, getViewMetrics, __get__width, __get__height, hScrollPolicy, vScrollPolicy, getStyle, getFocusManager, addEventListener, removeEventListener, _getTextFormat;
function TextArea () {
super();
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(x) {
label.maxChars = x;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(s) {
label.restrict = ((s == "") ? null : (s));
//return(restrict);
}
function get wordWrap() {
return(label.wordWrap);
}
function set wordWrap(s) {
label.wordWrap = s;
invalidate();
//return(wordWrap);
}
function get editable() {
return(__editable);
}
function set editable(x) {
__editable = x;
label.type = (x ? "input" : "dynamic");
//return(editable);
}
function get password() {
return(label.password);
}
function set password(s) {
label.password = s;
//return(password);
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
var _local2 = label;
if (_local2.html == true) {
return(_local2.htmlText);
}
return(_local2.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
invalidate();
}
dispatchValueChangedEvent(t);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
label.hscroll = pos;
label.background = false;
//return(hPosition);
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
label.scroll = pos + 1;
label.background = false;
//return(vPosition);
}
function get maxVPosition() {
var _local2 = label.maxscroll - 1;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
var _local2 = label.maxhscroll;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function init(Void) {
super.init();
label.styleName = this;
_color = mx.core.UIObject.textColorList;
focusTextField = label;
label.owner = this;
label.onSetFocus = function (x) {
this._parent.onSetFocus(x);
};
label.onKillFocus = function (x) {
this._parent.onKillFocus(x);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = function () {
this.owner.adjustScrollBars();
this.owner.dispatchEvent({type:"change"});
this.owner.dispatchValueChangedEvent(this.owner.text);
};
label.onScroller = function () {
this.owner.hPosition = this.hscroll;
this.owner.vPosition = this.scroll - 1;
};
if (text == undefined) {
text = ("");
}
}
function createChildren(Void) {
super.createChildren();
label.autoSize = "none";
}
function layoutContent(x, y, totalW, totalH, displayW, displayH) {
var _local2 = label;
if ((((tfx != x) || (tfy != y)) || (tfw != displayW)) || (tfh != displayH)) {
tfx = x;
tfy = y;
tfw = displayW;
tfh = displayH;
_local2.move(tfx, tfy);
_local2.setSize(tfw, tfh);
doLater(this, "adjustScrollBars");
}
}
function scrollChanged(Void) {
var _local2 = Selection;
if (_local2.lastBeginIndex != undefined) {
restoreSelection();
}
label.background = false;
}
function onScroll(docObj) {
var _local3 = label;
super.onScroll(docObj);
_local3.hscroll = hPosition + 0;
_local3.scroll = vPosition + 1;
_vpos = _local3.scroll;
_hpos = _local3.hscroll;
_local3.background = false;
if (hookedV != true) {
vScroller.addEventListener("scrollChanged", this);
hookedV = true;
}
if (hookedH != true) {
hScroller.addEventListener("scrollChanged", this);
hookedH = true;
}
}
function size(Void) {
var _local3 = getViewMetrics();
var _local7 = _local3.left + _local3.right;
var _local4 = _local3.top + _local3.bottom;
var _local6 = _local3.left;
var _local5 = _local3.top;
tfx = _local6;
tfy = _local5;
tfw = __get__width() - _local7;
tfh = __get__height() - _local4;
super.size();
label.move(tfx, tfy);
label.setSize(tfw, tfh);
if (__get__height() <= 40) {
hScrollPolicy = "off";
vScrollPolicy = "off";
}
doLater(this, "adjustScrollBars");
}
function setEnabled(enable) {
vScroller.enabled = enable;
hScroller.enabled = enable;
label.type = (((editable == false) || (enable == false)) ? "dynamic" : "input");
label.selectable = enable;
var _local3 = getStyle((enable ? "color" : "disabledColor"));
if (_local3 == undefined) {
_local3 = (enable ? 0 : 8947848);
}
setColor(_local3);
}
function setColor(col) {
label.textColor = col;
}
function setFocus(Void) {
Selection.setFocus(label);
}
function onSetFocus(x) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
getFocusManager().defaultPushButtonEnabled = false;
addEventListener("keyDown", this);
super.onSetFocus(x);
}
function onKillFocus(x) {
getFocusManager().defaultPushButtonEnabled = true;
removeEventListener("keyDown", this);
super.onKillFocus(x);
}
function restoreSelection(x) {
var _local2 = Selection;
Selection.setSelection(_local2.lastBeginIndex, _local2.lastEndIndex);
label.scroll = _vpos;
label.hscroll = _hpos;
}
function getLineOffsets(Void) {
var _local16 = _getTextFormat();
var _local18 = _local16.getTextExtent2(label.text);
var _local5 = _root._getTextExtent;
_local5.setNewTextFormat(TextFormat(_local16));
var _local14 = label.wordWrap;
var _local9 = 0;
var _local7 = (label._width - 2) - 2;
var _local12 = new Array();
var _local17 = new String(label.text);
var _local15 = _local17.split("\r");
var _local11 = 0;
while (_local11 < _local15.length) {
_local12.push(_local9);
var _local4 = _local15[_local11];
_local5.text = _local4;
var _local13 = Math.ceil(_local5.textWidth / _local7);
var _local10 = Math.floor(_local4.length / _local13);
var _local3;
while (_local14 && (_local5.textWidth > _local7)) {
_local3 = _local4.indexOf(" ", _local10);
var _local6;
if (_local3 == -1) {
_local3 = _local4.lastIndexOf(" ");
if (_local3 == -1) {
_local3 = _local10;
}
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
if (_local5.textWidth > _local7) {
while (_local5.textWidth > _local7) {
var _local8 = _local3;
_local3 = _local4.lastIndexOf(" ", _local3 - 1);
if (_local3 == -1) {
_local3 = _local8 - 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
} else if (_local5.textWidth < _local7) {
var _local8 = _local3;
while (_local5.textWidth < _local7) {
_local8 = _local3;
_local3 = _local4.indexOf(" ", _local3 + 1);
if (_local3 == -1) {
if (_local4.indexOf(" ", 0) != -1) {
break;
}
_local3 = _local8 + 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
_local3 = _local8;
}
_local9 = _local9 + _local3;
_local12.push(_local9 + 1);
_local4 = _local4.substr(_local3);
if (_local4.charAt(0) == " ") {
_local4 = _local4.substr(1, _local4.length - 1);
_local9 = _local9 + 1;
}
_local5.text = _local4;
}
_local9 = _local9 + (_local4.length + 1);
_local11++;
}
return(_local12);
}
function keyDown(e) {
var _local5 = e.code;
if (_local5 == 34) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = Math.min(label.bottomScroll + 1, label.maxscroll);
if (_local2 == label.maxscroll) {
var _local4 = label.length;
Selection.setSelection(_local4, _local4);
} else {
label.scroll = _local2;
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
}
} else if (_local5 == 33) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = label.scroll - 1;
if (_local2 < 1) {
Selection.setSelection(0, 0);
} else {
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
label.scroll = Math.max(_local2 - _local6, 1);
}
}
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = true;
_local2.wordWrap = wordWrap == true;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = ((editable == true) ? "input" : "dynamic");
size();
_local2.background = false;
}
function adjustScrollBars() {
var _local2 = label;
var _local4 = (_local2.bottomScroll - _local2.scroll) + 1;
var _local3 = (_local4 + _local2.maxscroll) - 1;
if (_local3 < 1) {
_local3 = 1;
}
var _local5 = 0;
if ((_local2.textWidth + 5) > _local2._width) {
if (!_local2.wordWrap) {
_local5 = _local2._width + _local2.maxhscroll;
}
} else {
_local2.hscroll = 0;
_local2.background = false;
}
if ((_local2.height / _local4) != Math.round(_local2.height / _local4)) {
_local3--;
}
setScrollProperties(_local5, 1, _local3, _local2.height / _local4);
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
super.setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding);
if (vScroller == undefined) {
hookedV = false;
}
if (hScroller == undefined) {
hookedH = false;
}
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
function get styleSheet() {
return(label.styleSheet);
}
function set styleSheet(v) {
label.styleSheet = v;
//return(styleSheet);
}
static var symbolName = "TextArea";
static var symbolOwner = mx.controls.TextArea;
static var version = "2.0.2.126";
var className = "TextArea";
var initializing = true;
var clipParameters = {text:1, wordWrap:1, editable:1, maxChars:1, restrict:1, html:1, password:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextArea.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var __vScrollPolicy = "auto";
var __hScrollPolicy = "auto";
var __editable = true;
}
Symbol 90 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.Tracking] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.Tracking
{
var MMtrackingAdapter_mc;
function Tracking () {
}
static function buildDepthTable(p_mc) {
var _local5 = new Array();
var _local4;
for (_local4 in p_mc) {
var _local1 = p_mc[_local4];
var _local2 = typeof(_local1);
if ((_local2 == "movieclip") || ((_local2 == "object") && (_local1.__getTextFormat != undefined))) {
if (_local1._parent == p_mc) {
_local5[_local1.getDepth()] = _local1;
}
}
}
return(_local5);
}
static function findNextAvailableDepth(p_depthTable) {
if (p_depthTable[0] == undefined) {
return(0);
}
var _local1 = 0;
while (p_depthTable[_local1] != undefined) {
_local1++;
}
return(_local1);
}
static function loadExternalTrackingAdapter(parentReference, adapterName) {
var _local2 = buildDepthTable(parentReference);
var _local3 = findNextAvailableDepth(_local2);
parentReference._mmTrackingSWF = parentReference.createEmptyMovieClip("m_tracking", _local3);
parentReference._mmTrackingSWF.loadMovie(adapterName);
}
function createTrackingAdapter(adapterType, adapterDelimiter, adapterEMail, adapterReference, externalReference, escapeURLvs, ignoreEscape, sendLessonData) {
if (currentTrackingAdapter()) {
return(true);
}
MMtrackingAdapter_mc = externalReference;
if (((MMtrackingAdapter_mc == undefined) || (MMtrackingAdapter_mc == null)) || (MMtrackingAdapter_mc.isReady == undefined)) {
if ((adapterReference === undefined) || (adapterReference === null)) {
return(false);
}
var _local3 = buildDepthTable(adapterReference);
var _local4 = findNextAvailableDepth(_local3);
MMtrackingAdapter_mc = adapterReference.createEmptyMovieClip("MMtracking_mc", _local4);
createInternalAdapter(adapterType, adapterDelimiter, adapterEMail, MMtrackingAdapter_mc, escapeURLvs, ignoreEscape, sendLessonData);
} else {
MMtrackingAdapter_mc.createExternalAdapter(this, adapterType, adapterDelimiter, adapterEMail, adapterReference, escapeURLvs, ignoreEscape, sendLessonData);
}
if (currentTrackingAdapter()) {
return(true);
}
return(false);
}
function createInternalAdapter(adapterType_str, adapterDelimiter_str, adapterEMail_str, adapterReference_obj, escapeURLvs_bln, ignoreEscape_str, sendLessonData_bln) {
var _local2 = new MMQuizzingV3.MMQuizClasses.lms.Utilities(adapterReference_obj);
var _local9 = new Array();
response = new MMQuizzingV3.MMQuizClasses.lms.Response(adapterReference_obj);
if ((adapterType_str == undefined) || (adapterType_str == "")) {
_local9 = ["BREEZE", "AICC", "SCORM_1_3", "SCORM_1_2"];
} else if (adapterType_str.toUpperCase() == "SCORM") {
_local9 = ["BREEZE", "SCORM_1_3", "SCORM_1_2", "AICC"];
} else {
_local9 = ["BREEZE", adapterType_str.toUpperCase(), "AICC", "SCORM_1_3", "SCORM_1_2"];
}
var _local7 = 0;
while ((MMtrackingAdapter_mc.MMtracking == null) && (_local7 < _local9.length)) {
trackingType_str = _local9[_local7];
switch (trackingType_str) {
case "AUTHORWARE" :
MMtrackingAdapter_mc.MMtracking = new MMQuizzingV3.MMQuizClasses.lms.Authorware(adapterReference_obj, adapterDelimiter_str);
MMtrackingAdapter_mc.MMtracking.initialize();
MMtrackingAdapter_mc.MMtracking.getTrackingData();
break;
case "QUESTIONMARK" :
MMtrackingAdapter_mc.MMtracking = new MMQuizzingV3.MMQuizClasses.lms.QuestionMark(adapterReference_obj);
MMtrackingAdapter_mc.MMtracking.initialize();
MMtrackingAdapter_mc.MMtracking.getTrackingData();
break;
case "EMAIL" :
MMtrackingAdapter_mc.MMtracking = new MMQuizzingV3.MMQuizClasses.lms.EMail(adapterReference_obj, adapterEMail_str);
MMtrackingAdapter_mc.MMtracking.initialize();
MMtrackingAdapter_mc.MMtracking.getTrackingData();
break;
case "BREEZE" :
var _local4 = _local2.findParameter("airspeed");
if (_local4 != undefined) {
MMtrackingAdapter_mc.MMtracking = new MMQuizzingV3.MMQuizClasses.lms.Breeze(adapterReference_obj, _local4._url);
MMtrackingAdapter_mc.MMtracking.initialize();
MMtrackingAdapter_mc.MMtracking.getTrackingData();
}
break;
case "AICC" :
_local4 = _local2.findParameter("aicc_url");
if (_local4 != undefined) {
MMtrackingAdapter_mc.MMtracking = new MMQuizzingV3.MMQuizClasses.lms.AICC(adapterReference_obj, _local4._url, escapeURLvs_bln, ignoreEscape_str, sendLessonData_bln);
var _local6 = _local2.getParameter("keepAliveInterval", _local4._url);
var _local5 = _local2.getParameter("keepAliveLimit", _local4._url);
if ((_local6 != "") && (_local5 != "")) {
MMtrackingAdapter_mc.MMtracking.setKeepAlive(Number(_local6), Number(_local5));
}
MMtrackingAdapter_mc.MMtracking.initialize();
MMtrackingAdapter_mc.MMtracking.getTrackingData();
}
break;
case "SCORM_1_3" :
_local4 = _local2.findParameter("scorm_api");
if ((_local4 != undefined) && (_local2.getParameter("scorm_api", _local4._url) > "0.2")) {
MMtrackingAdapter_mc.MMtracking = new MMQuizzingV3.MMQuizClasses.lms.SCORM_1_3(adapterReference_obj, _local2.getParameter("scorm_type", _local4._url), sendLessonData_bln);
MMtrackingAdapter_mc.MMtracking.initialize();
}
break;
case "SCORM_1_2" :
_local4 = _local2.findParameter("scorm_api");
if (!((_local4 != undefined) && (_local2.getParameter("scorm_api", _local4._url) == "0.2"))) {
break;
}
MMtrackingAdapter_mc.MMtracking = new MMQuizzingV3.MMQuizClasses.lms.SCORM_1_2(adapterReference_obj, _local2.getParameter("scorm_type", _local4._url), sendLessonData_bln);
MMtrackingAdapter_mc.MMtracking.initialize();
}
_local7++;
}
if (MMtrackingAdapter_mc.MMtracking != null) {
MMtrackingAdapter_mc.MMtracking.setTrackingAdapterType(0, trackingType_str);
} else if ((adapterType_str == undefined) || (adapterType_str == "")) {
MMtrackingAdapter_mc.MMtracking = new MMQuizzingV3.MMQuizClasses.lms.TrackingAdapter(adapterReference_obj);
MMtrackingAdapter_mc.MMtracking.setLessonDataTracked(sendLessonData_bln);
MMtrackingAdapter_mc.MMtracking.setEscapeAICCvs(escapeURLvs_bln);
MMtrackingAdapter_mc.MMtracking.setIgnoreEscapeList(ignoreEscape_str);
MMtrackingAdapter_mc.MMtracking.initialize();
MMtrackingAdapter_mc.MMtracking.setTrackingAdapterType(0, "TrackingAdapter");
}
}
function currentTrackingAdapter() {
return(MMtrackingAdapter_mc.MMtracking);
}
var response = null;
var trackingType_str = "";
}
Symbol 91 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.Response] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.Response
{
var _obj, _array_str, _array, _useGlobalResponse_bln;
function Response (_globalObject) {
if (_globalObject != undefined) {
setGlobalResponse(true);
_obj = _globalObject;
_array_str = "globalResponse_array";
if (_obj[_array_str] == undefined) {
_obj.globalResponse_array = [];
}
} else {
setGlobalResponse(false);
_obj = this;
_array_str = "_array";
_array = [];
}
}
function waitForResponse(variable_str, variableDefault_var, this_obj, function_str, functionParam1_var, functionParam2_var, functionParam3_var, functionParam4_var, timeout_var) {
var arrayLength_int = _obj[_array_str].length;
if (timeout_var != undefined) {
if (typeof(timeout_var) == "string") {
timeout_var = eval (timeout_var);
}
if (timeout_var < getTimer()) {
timeout_var = timeout_var + getTimer();
}
} else {
timeout_var = _timeout + getTimer();
}
_obj[_array_str][arrayLength_int] = setInterval(checkResponse, _interval, variable_str, variableDefault_var, this_obj, function_str, functionParam1_var, functionParam2_var, functionParam3_var, functionParam4_var, timeout_var, arrayLength_int, this);
}
function checkResponse(variable_str, variableDefault_var, this_obj, function_str, functionParam1_var, functionParam2_var, functionParam3_var, functionParam4_var, timeout_var, arrayLength_int, response_obj) {
if (variable_str.indexOf(".") > 0) {
var variableOriginal_str = variable_str;
var refOriginal_obj = this_obj;
var ref_obj = eval (variable_str.substr(0, variable_str.indexOf(".")));
variable_str = variable_str.substr(variable_str.indexOf(".") + 1);
} else {
var ref_obj = this_obj;
}
if (typeof(ref_obj[variable_str]) == "function") {
var response_var = ref_obj[variable_str]();
} else if (typeof(this[variable_str]) == "function") {
var response_var = this[variable_str]();
} else if (typeof(this_obj[ref_obj][variable_str]) != "undefined") {
var response_var = this_obj[ref_obj][variable_str];
} else if (typeof(ref_obj[variable_str]) != "undefined") {
var response_var = ref_obj[variable_str];
} else if (typeof(refOriginal_obj[variableOriginal_str]) != "undefined") {
var response_var = refOriginal_obj[variableOriginal_str];
} else if (typeof(eval (variableOriginal_str)) != "undefined") {
var response_var = eval (variableOriginal_str);
} else {
var response_var = eval (variable_str);
}
if ((response_var != variableDefault_var) || (timeout_var <= getTimer())) {
clearInterval(response_obj._obj[response_obj._array_str][arrayLength_int]);
if (function_str.indexOf(".") > 0) {
var func_obj = function_str.substr(0, function_str.indexOf("."));
function_str = function_str.substr(function_str.indexOf(".") + 1);
} else {
var func_obj = this_obj;
}
if (typeof(func_obj[function_str]) == "function") {
func_obj[function_str](functionParam1_var, functionParam2_var, functionParam3_var, functionParam4_var);
} else if (typeof(this[function_str]) == "function") {
this[function_str](functionParam1_var, functionParam2_var, functionParam3_var, functionParam4_var);
} else if (typeof(this_obj[func_obj][function_str]) == "function") {
this_obj[func_obj][function_str](functionParam1_var, functionParam2_var, functionParam3_var, functionParam4_var);
} else {
this_obj[function_str](functionParam1_var, functionParam2_var, functionParam3_var, functionParam4_var);
}
}
}
function getResponseLength() {
return(_obj[_array_str].length);
}
function setResponseTimeOut(timeoutLimit_int) {
_timeout = timeoutLimit_int;
}
function getResponseTimeOut() {
return(_timeout);
}
function setResponseInterval(interval_int) {
_interval = interval_int;
}
function getResponseInterval() {
return(_interval);
}
function isGlobalResponse() {
return(_useGlobalResponse_bln);
}
function setGlobalResponse(value_bln) {
_useGlobalResponse_bln = value_bln;
}
var _timeout = 5000;
var _interval = 100;
}
Symbol 92 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.AICC] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.AICC extends MMQuizzingV3.MMQuizClasses.lms.TrackingAdapter
{
var setEscapeAICCvs, setIgnoreEscapeList, setLessonDataTracked, setObjectReference, version, serverPost, isAICCvsEscaped, getIgnoreEscapeList, serverResult, serverUtilities, trackingResponse, lmsQueue, serverTemp, aicc_url, contentURL_str, aicc_sid, addToErrorArray, crossDomain, isInitialized, escapeJS, interaction_ary, formatTime, formatDate, isInteractionDataTracked, isTrackingDataLoaded, setScore, setLessonLocation, setLessonStatus, getLessonStatus, setTimeInSession, setLessonData, aicc_data, getSuccessStatus, getLessonLocation, getScore, getTimeInSession, getLessonData, resetTimer, __set__initialized_bln, trim;
function AICC (_adapterObject, launchURL, escapeURLvs_bln, ignoreEscape_str, sendLessonData_bln) {
super();
if (escapeURLvs_bln != undefined) {
setEscapeAICCvs(escapeURLvs_bln);
}
if (ignoreEscape_str != undefined) {
setIgnoreEscapeList(ignoreEscape_str);
}
if (sendLessonData_bln != undefined) {
setLessonDataTracked(sendLessonData_bln);
}
if (_adapterObject != undefined) {
setObjectReference(_adapterObject);
}
version = "3.5";
serverPost = new MMQuizzingV3.MMQuizClasses.lms.AICCLoadVars(isAICCvsEscaped(), getIgnoreEscapeList());
serverResult = new MMQuizzingV3.MMQuizClasses.lms.AICCLoadVars(isAICCvsEscaped(), getIgnoreEscapeList());
serverResult.parent = this;
serverUtilities = new MMQuizzingV3.MMQuizClasses.lms.Utilities(_adapterObject);
trackingResponse = new MMQuizzingV3.MMQuizClasses.lms.Response();
lmsQueue.setQueueTimeoutInterval(overrideQueueTimeoutInterval_int);
serverTemp = new MMQuizzingV3.MMQuizClasses.lms.AICCLoadVars(isAICCvsEscaped(), getIgnoreEscapeList());
serverResult.onLoad = function (success) {
var _local3 = new Object();
var _local2 = new MMQuizzingV3.MMQuizClasses.lms.AICCLoadVars(this.isAICCvsEscaped(), this.getIgnoreEscapeList());
if (!success) {
this.error = (("-3" + this.return_str) + "error_text=tracking results failed!") + this.return_str;
}
var _local5 = this.parent.serverResult.command;
if (_local5.toUpperCase() == "GETPARAM") {
for (var _local4 in this) {
if ((_local4 != "command") && (_local4 != "parent")) {
_local2[_local4] = this[_local4];
}
}
this.parent.LMS = this.parent.parseTrackingData(_local2.toString());
_local3.Errors = this.parent.LMS.Errors;
this.parent.setTrackingDataLoaded(true);
} else {
_local3 = this.parent.parseTrackingdata(this.toString());
if (_local5.toUpperCase() == "EXITAU") {
if (_local3.Errors.error == 0) {
this.parent.setInitialized(false);
}
}
}
if (_local3.Errors.error != 0) {
this.parent.addToErrorArray(_local3.Errors.error, _local3.Errors.error_text, this.parent.serverResult.command);
}
this.parent.serverBusy_bln = false;
this.parent.lmsQueue.removeFromQueue();
};
if (launchURL != undefined) {
setURL(launchURL);
}
}
function getAICCversion() {
return(version);
}
function getURLparameter(value_str) {
var _local2 = "";
for (var _local4 in _root) {
if (unescape(_local4.toString().toUpperCase()) == value_str.toUpperCase()) {
_local2 = unescape(_root[_local4]);
}
}
return(_local2);
}
function getAICCurl() {
if (aicc_url == undefined) {
setAICCurl(serverUtilities.getParameter("aicc_url", contentURL_str));
}
return(aicc_url);
}
function getAICCsid() {
if (aicc_sid == undefined) {
setAICCsid(serverUtilities.getParameter("aicc_sid", contentURL_str));
}
return(aicc_sid);
}
function getURL() {
return(contentURL_str);
}
function fixAICCurl(value_str) {
if (value_str.toUpperCase().substr(0, 4) != "HTTP") {
if (contentURL_str.toUpperCase().substr(0, 5) == "HTTPS") {
value_str = (contentURL_str.substr(0, 5) + "://") + value_str;
} else if (contentURL_str.toUpperCase().substr(0, 4) == "HTTP") {
value_str = (contentURL_str.substr(0, 4) + "://") + value_str;
} else {
value_str = "http://" + value_str;
}
}
return(value_str);
}
function setAICCversion(value_str) {
version = value_str;
}
function setAICCurl(value_str) {
value_str = unescape(value_str);
if ((value_str != "") && (value_str != undefined)) {
aicc_url = fixAICCurl(value_str);
} else {
aicc_url = value_str;
}
}
function setAICCsid(value_str) {
aicc_sid = unescape(value_str);
}
function setURL(URL_str) {
if (contentURL_str == undefined) {
contentURL_str = _url;
}
setAICCurl(unescape(serverUtilities.getParameter("aicc_url", URL_str)));
setAICCsid(unescape(serverUtilities.getParameter("aicc_sid", URL_str)));
if (getAICCurl() == "") {
addToErrorArray(-2, "Tracking URL not found");
} else {
crossDomain.checkServerPolicy(getAICCurl(), contentURL_str);
}
if (getAICCsid() == "") {
addToErrorArray(-1, "Session ID not found");
}
}
function startDev() {
setURL("http://locahost/content/flash.swf?aicc_url=http://achemeylaptop/cgi-bin/wrapper.exe&aicc_sid=0001");
}
function initialize() {
if (isInitialized()) {
} else {
if ((getAICCurl() == "") && (getAICCsid() == "")) {
var _local2 = serverUtilities.findParameter("aicc_url");
if (_local2 != undefined) {
setURL(_local2._url);
setInitialized(true);
}
} else {
setInitialized(true);
}
if ((aicc_url != "") && (aicc_url != undefined)) {
crossDomain.checkServerPolicy(getAICCurl(), contentURL_str);
}
}
return(isInitialized());
}
function AICCbuild(command, AICCdata) {
var _local2 = new MMQuizzingV3.MMQuizClasses.lms.AICCLoadVars(isAICCvsEscaped(), getIgnoreEscapeList());
_local2.aicc_data = AICCdata;
_local2.session_id = getAICCsid();
_local2.version = getAICCversion();
_local2.command = command;
lmsQueue.addToQueue(this, "AICCpost", _local2);
}
function AICCpost(parameter_obj) {
if (isInitialized() || ((parameter_obj.command.toUpperCase() == "GETPARAM") && (getAICCurl() != ""))) {
if (parameter_obj.command.toUpperCase() == "EXITAU") {
setInitialized(false);
}
var _local2 = new MMQuizzingV3.MMQuizClasses.lms.AICCLoadVars(isAICCvsEscaped(), getIgnoreEscapeList());
_local2 = parameter_obj;
if (crossDomain.checkServerPolicy(getAICCurl(), contentURL_str)) {
serverResult.command = _local2.command;
_local2.sendAndLoad(getAICCurl(), serverResult, "POST");
} else {
_local2.send(getAICCurl(), "cmiresults", "POST");
lmsQueue.removeFromQueue();
}
} else {
lmsQueue.removeFromQueue();
}
}
function flush() {
}
function finish() {
sendExitData();
}
function checkInteractionResponse(response_str) {
var _local5 = "";
var _local4 = false;
var _local2 = 0;
while (_local2 < response_str.length) {
if (response_str.substr(_local2, 1) == ",") {
if (response_str.substr(_local2 - 1, 1) != "\\") {
_local4 = true;
}
}
_local2++;
}
if (_local4) {
_local5 = ("{" + escapeJS(response_str)) + "}";
} else {
_local5 = escapeJS(response_str);
}
return(_local5);
}
function setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
var _local2 = interaction_ary.length;
interaction_ary[_local2] = new Array();
interaction_ary[_local2].interactionID_str = interactionID_str;
interaction_ary[_local2].objectiveID_str = objectiveID_str;
interaction_ary[_local2].type_str = type_str;
interaction_ary[_local2].correctResponse_str = checkInteractionResponse(correctResponse_str);
interaction_ary[_local2].studentResponse_str = checkInteractionResponse(studentResponse_str);
interaction_ary[_local2].result_str = result_str;
interaction_ary[_local2].weight_int = weight_int;
if (((latency_str == undefined) || (latency_str == "")) || (latency_str == "0")) {
latency_str = formatTime(0);
} else if (typeof(latency_str) == "number") {
latency_str == formatTime(latency_str);
}
interaction_ary[_local2].latency_str = latency_str;
if ((date_str == undefined) || (date_str == "")) {
date_str = formatDate(undefined, undefined, undefined, 1);
}
interaction_ary[_local2].date_str = date_str;
if ((time_str == undefined) || (time_str == "")) {
time_str = "00:00:00";
} else {
time_str = formatTime(time_str);
}
interaction_ary[_local2].time_str = time_str;
}
function sendInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
if (isInteractionDataTracked() && (isInitialized())) {
if ((interactionID_str != undefined) && (interactionID_str != "")) {
setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str);
}
var _local2 = "";
_local2 = "";
_local2 = "\"course_id\",\"student_id\",\"date\",\"time\",\"interaction_id\",\"objective_id\",\"type_interaction\",\"correct_response\",\"student_response\",\"result\",\"weighting\",\"latency\"" + return_str;
for (var _local3 in interaction_ary) {
_local2 = ((((((((((((((((((((((((((((((((_local2 + "\"0\",") + "\"0\",") + "\"") + interaction_ary[_local3].date_str) + "\",") + "\"") + interaction_ary[_local3].time_str) + "\",") + "\"") + interaction_ary[_local3].interactionID_str) + "\",") + "\"") + interaction_ary[_local3].objectiveID_str) + "\",") + "\"") + interaction_ary[_local3].type_str) + "\",") + "\"") + interaction_ary[_local3].correctResponse_str) + "\",") + "\"") + interaction_ary[_local3].studentResponse_str) + "\",") + "\"") + interaction_ary[_local3].result_str) + "\",") + "\"") + interaction_ary[_local3].weight_int) + "\",") + "\"") + interaction_ary[_local3].latency_str) + "\"") + return_str;
}
AICCbuild("putInteractions", _local2);
interaction_ary = [];
}
}
function getTrackingData() {
if (((!isTrackingDataLoaded()) && (isInitialized())) && (!serverBusy_bln)) {
serverBusy_bln = true;
AICCbuild("getParam", "");
}
}
function getTrackingDataCore() {
if (isInitialized()) {
getTrackingData();
}
}
function setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str) {
if (_scoreAsPercent_bln == true) {
if ((((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) && (!isNaN(Math.round((_scoreRaw_int / _scoreMax_int) * 100)))) && (_scoreMax_int != 0)) {
setScore(Math.round((_scoreRaw_int / _scoreMax_int) * 100));
} else {
setScore(Math.round(_scoreRaw_int));
}
} else if (((_scoreRaw_int != undefined) && (_scoreMin_int != undefined)) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, _scoreMin_int, _scoreMax_int);
} else if ((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, 0, _scoreMax_int);
} else if (_scoreRaw_int != undefined) {
setScore(_scoreRaw_int);
}
if (_location_str != undefined) {
setLessonLocation(_location_str);
}
if (_statusPreference_bln != undefined) {
if ((_statusPreference_bln == true) && (_statusCompletion_str != undefined)) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
if (_statusCompletion_str != undefined) {
setLessonStatus(_statusCompletion_str, _statusSuccess_str);
}
}
} else if (_statusCompletion_str != undefined) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
setLessonStatus(_statusSuccess_str);
}
setLessonStatus(getLessonStatus());
if (_time_str != undefined) {
setTimeInSession(_time_str);
}
if (_resumeData_str != undefined) {
setLessonData(_resumeData_str);
}
}
function sendTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str) {
if (isInitialized()) {
var _local2 = "";
if (_time_str == undefined) {
_time_str = "";
}
setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str);
aicc_data = "";
aicc_data = (aicc_data + "[Core]") + return_str;
if (_statusPreference_bln != undefined) {
if (_statusPreference_bln == true) {
_local2 = getLessonStatus();
} else if (getSuccessStatus() != undefined) {
_local2 = getSuccessStatus();
} else {
_local2 = getLessonStatus();
}
} else {
_local2 = getLessonStatus();
}
aicc_data = ((aicc_data + "lesson_status=") + _local2) + return_str;
aicc_data = ((aicc_data + "lesson_location=") + getLessonLocation()) + return_str;
aicc_data = ((aicc_data + "score=") + getScore(_scoreAsPercent_bln)) + return_str;
aicc_data = ((aicc_data + "time=") + getTimeInSession()) + return_str;
_local2 = getLessonData();
if (_local2 != "") {
aicc_data = (((aicc_data + "[Core_lesson]") + return_str) + escape(_local2)) + return_str;
}
AICCbuild("putParam", aicc_data);
resetTimer();
}
}
function sendExitData() {
if (isInitialized()) {
AICCbuild("exitAU", "");
}
}
function setTrackingComplete() {
sendExitData();
}
function setInitialized(value_bln) {
__set__initialized_bln(value_bln);
}
function keepSessionAlive(this_obj) {
if ((((this_obj.keepSessionAlive_obj._scoreRaw_int == this_obj.getScoreRaw()) && (this_obj.keepSessionAlive_obj._lessonStatus == this_obj.getLessonStatus())) && (this_obj.keepSessionAlive_obj._successStatus == this_obj.getSuccessStatus())) && (this_obj.keepSessionAlive_obj._lessonData == this_obj.getLessonData())) {
this_obj.keepSessionAliveTimer_int = this_obj.keepSessionAliveTimer_int + this_obj.keepSessionAliveInterval_int;
} else {
this_obj.keepSessionAliveTimer_int = 0;
}
this_obj.keepSessionAlive_obj._scoreRaw_int = this_obj.getScoreRaw();
this_obj.keepSessionAlive_obj._lessonStatus = this_obj.getLessonStatus();
this_obj.keepSessionAlive_obj._successStatus = this_obj.getSuccessStatus();
this_obj.keepSessionAlive_obj._lessonData = this_obj.getLessonData();
if (this_obj.keepSessionAliveTimer_int <= this_obj.keepSessionAliveTimeoutInterval_int) {
this_obj.AICCbuild("getParam", "");
} else {
clearInterval(this_obj.keepSessionAliveInterval_var);
this_obj.keepSessionAliveInterval_var = "";
this_obj.finish();
}
}
function setKeepAlive(_keepAliveInterval, _keepAliveLimit) {
keepSessionAliveInterval_int = _keepAliveInterval;
keepSessionAliveTimeoutInterval_int = _keepAliveLimit;
if (keepSessionAliveInterval_int > 0) {
if (keepSessionAliveInterval_var == "") {
keepSessionAliveInterval_var = setInterval(keepSessionAlive, keepSessionAliveInterval_int * 1000, this);
}
}
}
function capitalize(s) {
return(s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase());
}
function parseTrackingData(text) {
var _local16 = new Object();
text = unescape(text);
var _local9;
var _local8 = new Array("Core", "Core_lesson", "Core_vendor", "Evaluation", "Objectives_status", "Student_preferences", "Student_data", "Student_demographics");
var _local12 = text.toLowerCase();
for (var _local17 in _local8) {
var _local13 = ("[" + _local8[_local17]) + "]";
while (_local9 = _local12.indexOf(_local13.toLowerCase()) , _local9 != -1) {
text = (((text.substring(0, _local9) + "%^") + _local8[_local17]) + "|") + text.substring((_local9 + 2) + _local8[_local17].length);
_local12 = text.toLowerCase();
}
}
text = "Errors|" + text;
var _local11 = text.split("%^");
text = "";
for (var _local18 in _local11) {
var _local14 = _local11[_local18].indexOf("|");
var _local3 = new Object();
_local3.name = _local11[_local18].substring(0, _local14);
_local3.blob = _local11[_local18].substring(_local14 + 1);
var _local2 = _local3.blob.split(return_str);
if ((_local3.name == "Core_lesson") || (_local3.name == "Core_vendor")) {
var _local10 = _local2.join("\r");
if (_local10.substr(0, 1) == "\r") {
_local10 = _local10.substr(1);
}
this[_local3.name.toLowerCase()] = _local10;
}
for (var _local15 in _local2) {
var _local4;
_local4 = _local2[_local15].indexOf("=");
if (_local4 != -1) {
var _local7 = trim(_local2[_local15].substring(0, _local4)).toLowerCase();
var _local6 = trim(_local2[_local15].substring(_local4 + 1, _local2[_local15].length));
_local3[_local7] = _local6;
this[_local7] = _local6;
}
}
_local16[_local3.name] = _local3;
}
return(_local16);
}
var overrideQueueTimeoutInterval_int = 10;
var keepSessionAliveInterval_int = 0;
var keepSessionAliveTimeoutInterval_int = 0;
var LMS = new Object();
var return_str = "\r\n";
var serverBusy_bln = false;
var keepSessionAlive_obj = new Object();
var keepSessionAliveTimer_int = 0;
var keepSessionAliveInterval_var = "";
}
Symbol 93 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.AICCLoadVars] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.AICCLoadVars extends LoadVars
{
var escapeAICCvs_bln;
function AICCLoadVars (_escapeAICCvs_bln, _ignoreEscapeList_str) {
super();
if (_escapeAICCvs_bln != undefined) {
escapeAICCvs_bln = _escapeAICCvs_bln;
}
if (_ignoreEscapeList_str != undefined) {
ignoreEscapeList_str = _ignoreEscapeList_str;
}
}
function toString() {
var _local5 = [];
for (var _local6 in this) {
if ((((((_local6 != "onLoad") && (_local6 != "toString")) && (_local6 != "parent")) && (_local6 != "tracking")) && (_local6 != "escapeAICCvs_bln")) && (_local6 != "ignoreEscapeList_str")) {
if ((!escapeAICCvs_bln) && ((_local6 == "version") || (_local6 == "session_id"))) {
_local5.push((_local6 + "=") + this[_local6]);
} else if (ignoreEscapeList_str != "") {
var _local4 = "";
var _local2 = 1;
while (_local2 < (this[_local6].length + 1)) {
var _local3 = this[_local6].substring(_local2 - 1, _local2);
if (ignoreEscapeList_str.indexOf(_local3) > -1) {
_local4 = _local4 + _local3;
} else {
_local4 = _local4 + escape(_local3);
}
_local2++;
}
_local5.push((_local6 + "=") + _local4);
} else {
_local5.push((_local6 + "=") + escape(this[_local6]));
}
}
}
return(_local5.join("&"));
}
var ignoreEscapeList_str = "";
}
Symbol 94 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.Breeze] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.Breeze extends MMQuizzingV3.MMQuizClasses.lms.AICC
{
var setObjectReference, setURL, isInitialized, AICCbuild, __set__initialized_bln, lmsQueue, formatDate, return_str;
function Breeze (_adapterObject, launchURL) {
super();
if (_adapterObject != undefined) {
setObjectReference(_adapterObject);
}
if (launchURL != undefined) {
setURL(launchURL);
}
}
function sendExitData() {
if (isInitialized()) {
AICCbuild("exitAU", "");
}
}
function setInitialized(value_bln) {
__set__initialized_bln(value_bln);
}
function flushData() {
lmsQueue.flushQueue();
}
function setSlideView(slideNumber_int) {
var _local2 = slideView_ary.length;
slideView_ary[_local2] = new Array();
slideView_ary[_local2].interactionID_str = "breeze-slide-" + slideNumber_int;
slideView_ary[_local2].objectiveID_str = "0";
slideView_ary[_local2].type_str = "slide-view";
slideView_ary[_local2].correctResponse_str = slideNumber_int;
slideView_ary[_local2].studentResponse_str = slideNumber_int;
slideView_ary[_local2].result_str = "correct";
slideView_ary[_local2].weight_int = 1;
slideView_ary[_local2].latency_str = "00:00:00";
slideView_ary[_local2].date_str = formatDate();
slideView_ary[_local2].time_str = "00:00:00";
}
function sendSlideView(slideNumber_int) {
if (isInitialized()) {
if ((slideNumber_int != undefined) && (slideNumber_int != "")) {
setSlideView(slideNumber_int);
}
var _local2 = "";
_local2 = "\"course_id\",\"student_id\",\"date\",\"time\",\"interaction_id\",\"objective_id\",\"type_interaction\",\"correct_response\",\"student_response\",\"result\",\"weighting\",\"latency\"" + return_str;
for (var _local3 in slideView_ary) {
_local2 = ((((((((((((((((((((((((((((((((_local2 + "\"0\",") + "\"0\",") + "\"") + slideView_ary[_local3].date_str) + "\",") + "\"") + slideView_ary[_local3].time_str) + "\",") + "\"") + slideView_ary[_local3].interactionID_str) + "\",") + "\"") + slideView_ary[_local3].objectiveID_str) + "\",") + "\"") + slideView_ary[_local3].type_str) + "\",") + "\"") + slideView_ary[_local3].correctResponse_str) + "\",") + "\"") + slideView_ary[_local3].studentResponse_str) + "\",") + "\"") + slideView_ary[_local3].result_str) + "\",") + "\"") + slideView_ary[_local3].weight_int) + "\",") + "\"") + slideView_ary[_local3].latency_str) + "\"") + return_str;
}
AICCbuild("putInteractions", _local2);
slideView_ary = [];
}
}
var slideView_ary = [];
}
Symbol 95 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.SCORM_1_3] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.SCORM_1_3 extends MMQuizzingV3.MMQuizClasses.lms.TrackingAdapter
{
var setLessonDataTracked, setObjectReference, LMSLastError, trackingResponse, objAPI_obj, scorm_lc, timer_int, isInitialized, isTrackingDataLoaded, trim, LMSLastError_int, LMSLastError_str, LMSLastErrorCmd_str, setScore, setLessonLocation, setLessonStatus, setTimeInSession, setLessonData, core_score_children, getSuccessStatus, getLessonStatus, getLessonLocation, getTimeInSession, getLessonData, __set__initialized_bln, __get__finished_bln, escapeJS, interaction_ary, isInteractionDataTracked, interactions_children, interactions_count, lmsQueue, getShowErrors, formatNum;
function SCORM_1_3 (_adapterObject, typeEnvironment_int, sendLessonData_bln) {
super();
if (sendLessonData_bln != undefined) {
setLessonDataTracked(sendLessonData_bln);
}
if (_adapterObject != undefined) {
setObjectReference(_adapterObject);
}
init();
LMSLastError = new Object();
trackingResponse = new MMQuizzingV3.MMQuizClasses.lms.Response();
if ((typeEnvironment_int != undefined) && (typeEnvironment_int == 0)) {
objAPI_str = _adapterObject + ".";
objAPI_obj = _adapterObject;
} else {
var thisObj_obj = this;
scorm_lc = new LocalConnection();
scorm_lc.connect("lc_name");
scorm_lc.methodToExecute = function (result_str) {
var _local3 = result_str.split("|");
var _local2 = unescape(_local3[0]);
var _local4 = unescape(_local3[1]);
thisObj_obj[_local2] = _local4;
var _local1 = 0;
while (_local1 < thisObj_obj.callToJS_array.length) {
if (thisObj_obj.callToJS_array[_local1] == _local2) {
thisObj_obj.callToJS_array.splice(_local1, 1);
break;
}
_local1++;
}
if (_local2 == "LMSLastError_str") {
thisObj_obj.addToErrorArray(thisObj_obj.LMSLastError_int, thisObj_obj.LMSLastError_str, thisObj_obj.LMSLastErrorCmd_str);
}
thisObj_obj.lmsQueue.removeFromQueue();
};
}
}
function init() {
timer_int = int(getTimer() / 1000);
}
function initialize() {
if (!isInitialized()) {
SCORMbuild("Initialize", "", "", objAPI_str + "initialized_bln");
}
}
function getTrackingData() {
if (!isTrackingDataLoaded()) {
getTrackingDataCore();
SCORMbuild("GetValue", "cmi.launch_data", "", objAPI_str + "vendor_data");
SCORMbuild("GetValue", "cmi.objectives._count", "", objAPI_str + "objectives_count");
if (waitForData_var == undefined) {
waitForData_var = setInterval(waitForData, 100, this, getTimer() + (waitForData_int * 1000));
}
}
}
function waitForData(this_obj) {
if ((this_obj.callToJS_array.length == 0) || ((timer_int != undefined) && (getTimer() > timer_int))) {
clearInterval(this_obj.waitForData_var);
this_obj.waitForData_var = undefined;
this_obj.setTrackingDataLoaded(true);
}
}
function getTrackingDataCore() {
SCORMbuild("GetValue", "cmi.location", "", objAPI_str + "lesson_location");
SCORMbuild("GetValue", "cmi.score._children", "", objAPI_str + "core_score_children", "getTrackingDataScoreValues");
if (objAPI_str == "") {
trackingResponse.waitForResponse("core_score_children", undefined, this, "getTrackingDataString", "cmi.score.", "core_score_children", "score_");
}
SCORMbuild("GetValue", "cmi.suspend_data", "", objAPI_str + "lesson_data");
SCORMbuild("GetValue", "cmi.interactions._children", "", objAPI_str + "interactions_children");
SCORMbuild("GetValue", "cmi.interactions._count", "", objAPI_str + "interactions_count");
if (waitForData_var == undefined) {
waitForData_var = setInterval(waitForData, 100, this, getTimer() + (waitForData_int * 1000));
}
}
function getTrackingDataString(data_str, value_str, additionalValue_var) {
value_str = this[value_str];
var _local3 = value_str.split(",");
for (var _local6 in _local3) {
var _local2 = trim(_local3[_local6]);
if (_local2 != "") {
if (additionalValue_var == undefined) {
SCORMbuild("GetValue", data_str + _local2, "", objAPI_str + _local2);
} else {
SCORMbuild("GetValue", data_str + _local2, "", (objAPI_str + additionalValue_var) + _local2);
}
}
}
}
function getTrackingDataScoreValues(value_str) {
if ((value_str != undefined) && (value_str.indexOf(",") == -1)) {
value_str = this[value_str];
}
var _local3 = value_str.split(",");
for (var _local4 in _local3) {
var _local2 = trim(_local3[_local4]);
SCORMbuild("GetValue", "cmi.score." + _local2, "", (objAPI_str + "score_") + _local2);
}
}
function getTrackingDataObjectives(value_str) {
var _local3 = this[value_str];
var _local2 = 0;
while (_local2 <= _local3) {
_local2++;
}
SCORMbuild("GetValue", "");
}
function getTrackingDataError(command_str) {
LMSLastError_int = undefined;
LMSLastError.error = undefined;
LMSLastError_str = undefined;
LMSLastErrorCmd_str = command_str;
SCORMbuild("GetLastError", "", "", objAPI_str + "LMSLastError_int");
SCORMbuild("GetErrorString", "LMSLastError_int", "", objAPI_str + "LMSLastError_str");
}
function setTrackingDataString(dataModel_str, dataValue_str, additionalValue_var) {
var _local2 = "";
dataValue_str = dataValue_str.split(",");
for (var _local6 in dataValue_str) {
if (additionalValue_var == undefined) {
_local2 = this[dataValue_str[_local6]];
} else {
_local2 = this[additionalValue_var + dataValue_str[_local6]];
}
if ((_local2 != undefined) && (_local2 != "")) {
SCORMbuild("SetValue", dataModel_str + dataValue_str[_local6], _local2, "");
}
}
}
function setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _suspendData_str) {
if (_scoreAsPercent_bln == true) {
if ((((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) && (!isNaN(Math.round((_scoreRaw_int / _scoreMax_int) * 100)))) && (_scoreMax_int != 0)) {
setScore(Math.round((_scoreRaw_int / _scoreMax_int) * 100), 0, 100);
} else {
setScore(Math.round(_scoreRaw_int));
}
} else if (((_scoreRaw_int != undefined) && (_scoreMin_int != undefined)) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, _scoreMin_int, _scoreMax_int);
} else if ((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, 0, _scoreMax_int);
} else if (_scoreRaw_int != undefined) {
setScore(_scoreRaw_int);
} else {
setScore();
}
if (_location_str != undefined) {
setLessonLocation(_location_str);
}
setLessonStatus(_statusCompletion_str, _statusSuccess_str);
setTimeInSession(_time_str);
if (_suspendData_str != undefined) {
setLessonData(_suspendData_str);
}
}
function sendTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _suspendData_str) {
var _local2 = "";
var _local3 = "";
setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _suspendData_str);
setTrackingDataString("cmi.score.", core_score_children, "score_");
if (getSuccessStatus() != undefined) {
SCORMbuild("SetValue", "cmi.success_status", getSuccessStatus(), "");
}
SCORMbuild("SetValue", "cmi.completion_status", getLessonStatus(), "");
SCORMbuild("SetValue", "cmi.location", getLessonLocation(), "");
SCORMbuild("SetValue", "cmi.session_time", getTimeInSession(), "");
if (getLessonData() != "") {
SCORMbuild("SetValue", "cmi.suspend_data", escape(getLessonData()), "");
}
}
function flush() {
SCORMbuild("Commit", "", "", "");
}
function set finished_bln(value_bln) {
if (value_bln.toLowerCase() == "true") {
value_bln = true;
} else if (value_bln.toLowerCase() == "false") {
value_bln = false;
}
__set__initialized_bln(!value_bln);
//return(__get__finished_bln());
}
function finish() {
SCORMbuild("Commit", "", "", "");
SCORMbuild("Terminate", "", "", objAPI_str + "finished_bln");
}
function setTrackingComplete() {
finish();
}
function AICCTokenToSCORMToken(list_str, token_str) {
var _local2 = list_str.split(",");
var _local3 = token_str.substr(0, 1).toLowerCase();
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local3 == _local2[_local1].substr(0, 1)) {
return(_local2[_local1]);
}
_local1++;
}
return(token_str);
}
function normalizeStatus(status_str) {
return(AICCTokenToSCORMToken("completed,incomplete,not attempted,failed,passed", status_str));
}
function normalizeInteractionType(type_str) {
var _local2 = type_str;
if (_local2.toLowerCase() == "long-fill-in") {
_local2 = "long-fill-in";
} else {
_local2 = AICCTokenToSCORMToken("true-false,choice,fill-in,matching,performance,sequencing,likert,numeric", _local2);
}
if ((_local2 == "") || (_local2 == undefined)) {
_local2 = "other";
}
return(_local2);
}
function normalizeInteractionResult(result_str) {
var _local2 = AICCTokenToSCORMToken("correct,wrong,unanticipated,neutral", result_str);
_local2 = ((_local2 == "wrong") ? "incorrect" : (_local2));
return(_local2);
}
function normalizeRespose(response_str) {
return(AICCTokenToSCORMToken("true,false", response_str));
}
function isTokenSupported(list_str, token_str) {
var _local3 = list_str.split(",");
var _local4 = token_str.toLowerCase();
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local4 == trim(_local3[_local2])) {
return(true);
}
_local2++;
}
return(false);
}
function checkInteractionResponse(response_str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < response_str.length) {
if ((response_str.substr(_local2, 1) == ".") || (response_str.substr(_local2, 1) == ",")) {
if ((response_str.substr(_local2 - 1, 1) != "[") && (response_str.substr(_local2 + 1, 1) != "]")) {
_local4 = _local4 + (("[" + response_str.substr(_local2, 1)) + "]");
} else {
_local4 = _local4 + response_str.substr(_local2, 1);
}
} else {
_local4 = _local4 + response_str.substr(_local2, 1);
}
_local2++;
}
_local4 = ((_local4 == "") ? "0" : (escapeJS(_local4)));
return(_local4);
}
function setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
var _local2 = interaction_ary.length;
interaction_ary[_local2] = new Array();
interaction_ary[_local2].interactionID_str = interactionID_str;
interaction_ary[_local2].objectiveID_str = objectiveID_str;
interaction_ary[_local2].type_str = normalizeInteractionType(type_str);
interaction_ary[_local2].correctResponse_str = checkInteractionResponse(correctResponse_str);
interaction_ary[_local2].studentResponse_str = checkInteractionResponse(studentResponse_str);
interaction_ary[_local2].result_str = normalizeInteractionResult(result_str);
interaction_ary[_local2].weight_int = weight_int;
interaction_ary[_local2].latency_str = formatTime(latency_str);
if ((date_str == undefined) || (date_str == "")) {
date_str = formatDate();
} else {
date_str = formatDate(date_str);
}
interaction_ary[_local2].date_str = date_str;
if ((time_str == undefined) || (time_str == "")) {
time_str = formatTimestamp(0);
} else {
time_str = formatTimestamp(time_str);
}
interaction_ary[_local2].time_str = time_str;
}
function sendInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
if (isInteractionDataTracked()) {
if ((interactionID_str != undefined) && (interactionID_str != "")) {
setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str);
}
var _local2 = 0;
while (_local2 < interaction_ary.length) {
if (isTokenSupported(interactions_children, "id") && (interaction_ary[_local2].interactionID_str != undefined)) {
SCORMbuild("SetValue", ("cmi.interactions." + interactions_count.toString()) + ".id", interaction_ary[_local2].interactionID_str, "");
}
if (isTokenSupported(interactions_children, "timestamp") && (interaction_ary[_local2].time_str != undefined)) {
SCORMbuild("SetValue", ("cmi.interactions." + interactions_count.toString()) + ".timestamp", interaction_ary[_local2].time_str, "");
}
if (isTokenSupported(interactions_children, "type") && (interaction_ary[_local2].type_str != undefined)) {
SCORMbuild("SetValue", ("cmi.interactions." + interactions_count.toString()) + ".type", interaction_ary[_local2].type_str, "");
}
if (isTokenSupported(interactions_children, "correct_responses") && (interaction_ary[_local2].correctResponse_str != undefined)) {
SCORMbuild("SetValue", ("cmi.interactions." + interactions_count.toString()) + ".correct_responses.0.pattern", interaction_ary[_local2].correctResponse_str, "");
}
if (isTokenSupported(interactions_children, "weighting") && (interaction_ary[_local2].weight_int != undefined)) {
SCORMbuild("SetValue", ("cmi.interactions." + interactions_count.toString()) + ".weighting", interaction_ary[_local2].weight_int, "");
}
if (isTokenSupported(interactions_children, "learner_response") && (interaction_ary[_local2].studentResponse_str != undefined)) {
SCORMbuild("SetValue", ("cmi.interactions." + interactions_count.toString()) + ".learner_response", interaction_ary[_local2].studentResponse_str, "");
}
if (isTokenSupported(interactions_children, "result") && (interaction_ary[_local2].result_str != undefined)) {
SCORMbuild("SetValue", ("cmi.interactions." + interactions_count.toString()) + ".result", interaction_ary[_local2].result_str, "");
}
if (isTokenSupported(interactions_children, "latency") && (interaction_ary[_local2].latency_str != undefined)) {
SCORMbuild("SetValue", ("cmi.interactions." + interactions_count.toString()) + ".latency", interaction_ary[_local2].latency_str, "");
}
interactions_count++;
_local2++;
}
interaction_ary = [];
}
}
function SCORMbuild(function_str, property_str, value_str, variable_str, functionToCall_str) {
var _local2 = new Object();
_local2.function_str = function_str;
_local2.property_str = property_str;
_local2.value_str = value_str;
_local2.variable_str = variable_str;
_local2.functionToCall_str = functionToCall_str;
lmsQueue.addToQueue(this, "callJS", _local2, true);
if ((((getShowErrors() == 1) && (function_str.substr(0, 14) != "GetErrorString")) && (function_str.substr(0, 12) != "GetLastError")) && ((function_str.substr(0, 8) == "GetValue") || (function_str.substr(0, 8) == "SetValue"))) {
getTrackingDataError((function_str + ":") + property_str);
}
}
function watchForLMSResponse(variable_str, oldValue, newValue, referenceObject) {
referenceObject.objAPI_obj.unwatch(variable_str);
if ((variable_str.indexOf("initialized_bln") > -1) || (variable_str.indexOf("finished_bln") > -1)) {
newValue = unescape(newValue).toLowerCase();
} else {
newValue = unescape(newValue);
}
referenceObject[variable_str] = newValue;
var _local2 = 0;
while (_local2 < referenceObject.callToJS_array.length) {
if (referenceObject.callToJS_array[_local2] == ((this + ".") + variable_str)) {
referenceObject.callToJS_array.splice(_local2, 1);
break;
}
_local2++;
}
if (variable_str == "core_score_children") {
referenceObject.getTrackingDataScoreValues(newValue);
}
referenceObject.lmsQueue.removeFromQueue();
}
function callJS(parameter_obj) {
if (((parameter_obj.function_str == "GetErrorString") && (LMSLastError_int == 0)) || ((parameter_obj.function_str != "Initialize") && (!isInitialized()))) {
lmsQueue.removeFromQueue();
} else {
var _local5 = parameter_obj.function_str;
if (_local5 == "GetErrorString") {
var _local6 = LMSLastError_int;
} else {
var _local6 = parameter_obj.property_str;
}
var _local3 = parameter_obj.value_str;
var _local2 = parameter_obj.variable_str;
if (objAPI_str == "") {
_local2 = (((_local2 == undefined) || (_local2 == "")) ? (objAPI_str + "tempVar") : (_local2));
callToJS_array.push(_local2);
var _local7 = ((((((("javascript:dataFromFlash('" + _local5) + "', '") + _local6) + "', '") + _local3) + "', '") + _local2) + "');";
getURL (_local7);
} else {
_local2 = (((_local2 == undefined) || (_local2 == "")) ? (objAPI_str + "tempVar") : (_local2));
_local3 = (((_local3 == undefined) || (_local3 == "")) ? "''" : (_local3));
Set(_local2, undefined);
callToJS_array.push(_local2);
var _local8 = _local2.substr(_local2.lastIndexOf(".") + 1);
objAPI_obj.watch(_local8, watchForLMSResponse, this);
fscommand (_local5, (((_local6 + "|") + _local3) + "|") + _local2);
}
}
}
function formatTimestamp(time_var) {
return((formatDate() + "T") + formatTime(time_var, undefined, undefined, 2));
}
function formatTime(time_var, minutes_str, seconds_str, typeFormat_int) {
var _local5;
var _local2;
var _local6;
_local5 = "0";
if (time_var == undefined) {
var _local7 = new Date();
_local2 = _local7.getHours();
minutes_str = _local7.getMinutes();
seconds_str = _local7.getSeconds();
} else if ((typeof(time_var) == "string") && (time_var.indexOf(":") > -1)) {
var _local7 = time_var.split(":");
_local2 = _local7[0];
minutes_str = _local7[1];
seconds_str = _local7[2];
} else {
_local5 = "0";
seconds_str = "0";
minutes_str = "0";
_local2 = "0";
seconds_str = int(time_var);
if (seconds_str > 59) {
minutes_str = int(seconds_str / 60);
seconds_str = seconds_str - (minutes_str * 60);
}
if (minutes_str > 59) {
_local2 = int(minutes_str / 60);
minutes_str = minutes_str - (_local2 * 60);
}
if (_local2 > 23) {
_local5 = int(_local2 / 24);
_local2 = _local2 - (_local5 * 24);
}
}
if ((typeFormat_int == undefined) || (typeFormat_int == 1)) {
_local6 = "P";
if (_local5 != "0") {
_local6 = _local6 + (_local5 + "D");
}
_local6 = _local6 + (((((("T" + _local2) + "H") + minutes_str) + "M") + seconds_str) + "S");
} else {
_local6 = (((formatNum(_local2, 2) + ":") + formatNum(minutes_str, 2)) + ":") + formatNum(seconds_str, 2);
}
return(_local6);
}
function formatDate(date_var, day_str, year_str) {
if (date_var == undefined) {
var _local3 = new Date();
date_var = formatNum(_local3.getMonth() + 1, 2);
day_str = formatNum(_local3.getDate(), 2);
year_str = _local3.getFullYear();
} else if ((typeof(date_var) == "string") && (date_var.indexOf("/") > -1)) {
var _local3 = date_var.split("/");
date_var = formatNum(_local3[0], 2);
day_str = formatNum(_local3[1], 2);
year_str = formatNum(_local3[2], 4);
}
var _local6 = (((year_str + "-") + date_var) + "-") + day_str;
return(_local6);
}
var version = "1.2";
var callToJS_array = [];
var waitForData_var = undefined;
var waitForData_int = 30;
var objAPI_str = "";
}
Symbol 96 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.SCORM_1_2] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.SCORM_1_2 extends MMQuizzingV3.MMQuizClasses.lms.TrackingAdapter
{
var setLessonDataTracked, setObjectReference, LMSLastError, trackingResponse, objAPI_obj, scorm_lc, timer_int, isInitialized, isTrackingDataLoaded, trim, LMSLastError_int, LMSLastError_str, LMSLastErrorCmd_str, addToErrorArray, setScore, setLessonLocation, setLessonStatus, getLessonStatus, setTimeInSession, setLessonData, core_score_children, getSuccessStatus, getLessonLocation, getTimeInSession, getLessonData, __set__initialized_bln, __get__finished_bln, interaction_ary, escapeJS, formatTime, formatDate, isInteractionDataTracked, interactions_children, interactions_count, lmsQueue, getShowErrors;
function SCORM_1_2 (_adapterObject, typeEnvironment_int, sendLessonData_bln) {
super();
if (sendLessonData_bln != undefined) {
setLessonDataTracked(sendLessonData_bln);
}
if (_adapterObject != undefined) {
setObjectReference(_adapterObject);
}
init();
LMSLastError = new Object();
trackingResponse = new MMQuizzingV3.MMQuizClasses.lms.Response();
if ((typeEnvironment_int != undefined) && (typeEnvironment_int == 0)) {
objAPI_str = _adapterObject + ".";
objAPI_obj = _adapterObject;
} else {
var thisObj_obj = this;
scorm_lc = new LocalConnection();
scorm_lc.connect("lc_name");
scorm_lc.methodToExecute = function (result_str) {
var _local3 = result_str.split("|");
var _local2 = unescape(_local3[0]);
var _local4 = unescape(_local3[1]);
thisObj_obj[_local2] = _local4;
var _local1 = 0;
while (_local1 < thisObj_obj.callToJS_array.length) {
if (thisObj_obj.callToJS_array[_local1] == _local2) {
thisObj_obj.callToJS_array.splice(_local1, 1);
break;
}
_local1++;
}
if (_local2 == "LMSLastError_str") {
thisObj_obj.addToErrorArray(thisObj_obj.LMSLastError_int, thisObj_obj.LMSLastError_str, thisObj_obj.LMSLastErrorCmd_str);
}
thisObj_obj.lmsQueue.removeFromQueue();
};
}
}
function init() {
timer_int = int(getTimer() / 1000);
}
function initialize() {
if (!isInitialized()) {
SCORMbuild("LMSInitialize", "", "", objAPI_str + "initialized_bln");
}
}
function getTrackingData() {
if (!isTrackingDataLoaded()) {
getTrackingDataCore();
SCORMbuild("LMSGetValue", "cmi.launch_data", "", objAPI_str + "vendor_data");
SCORMbuild("LMSGetValue", "cmi.objectives._count", "", objAPI_str + "objectives_count");
if (waitForData_var == undefined) {
waitForData_var = setInterval(waitForData, 100, this, getTimer() + (waitForData_int * 1000));
}
}
}
function waitForData(this_obj, timer_int) {
if ((this_obj.callToJS_array.length == 0) || ((timer_int != undefined) && (getTimer() > timer_int))) {
clearInterval(this_obj.waitForData_var);
this_obj.waitForData_var = undefined;
this_obj.setTrackingDataLoaded(true);
}
}
function getTrackingDataCore() {
SCORMbuild("LMSGetValue", "cmi.core._children", "", objAPI_str + "core_children", "getTrackingDataCoreValues");
SCORMbuild("LMSGetValue", "cmi.suspend_data", "", objAPI_str + "lesson_data");
SCORMbuild("LMSGetValue", "cmi.interactions._children", "", objAPI_str + "interactions_children");
SCORMbuild("LMSGetValue", "cmi.interactions._count", "", objAPI_str + "interactions_count");
if (objAPI_str == "") {
trackingResponse.waitForResponse("core_children", undefined, this, "getTrackingDataCoreValues", "core_children");
}
if (waitForData_var == undefined) {
waitForData_var = setInterval(waitForData, 100, this, getTimer() + (waitForData_int * 1000));
}
}
function getTrackingDataCoreValues(value_str) {
if (value_str == "") {
}
if ((value_str != undefined) && (value_str.indexOf(",") == -1)) {
value_str = this[value_str];
}
var _local3 = value_str.split(",");
for (var _local5 in _local3) {
var _local2 = trim(_local3[_local5]);
if (((((((((_local2 != "session_time") && (_local2 != "exit")) && (_local2 != "student_id")) && (_local2 != "student_name")) && (_local2 != "credit")) && (_local2 != "lesson_status")) && (_local2 != "entry")) && (_local2 != "total_time")) && (_local2 != "lesson_mode")) {
if (_local2 == "score") {
SCORMbuild("LMSGetValue", "cmi.core.score._children", "", objAPI_str + "core_score_children", "getTrackingDataScoreValues");
if (objAPI_str == "") {
trackingResponse.waitForResponse("core_score_children", undefined, this, "getTrackingDataString", "cmi.core.score.", "core_score_children", "score_");
}
} else {
SCORMbuild("LMSGetValue", "cmi.core." + _local2, "", objAPI_str + _local2);
}
}
}
}
function getTrackingDataScoreValues(value_str) {
if ((value_str != undefined) && (value_str.indexOf(",") == -1)) {
value_str = this[value_str];
}
var _local3 = value_str.split(",");
for (var _local4 in _local3) {
var _local2 = trim(_local3[_local4]);
SCORMbuild("LMSGetValue", "cmi.core.score." + _local2, "", (objAPI_str + "score_") + _local2);
}
}
function getTrackingDataString(data_str, value_str, additionalValue_var) {
value_str = this[value_str];
var _local3 = value_str.split(",");
for (var _local6 in _local3) {
var _local2 = trim(_local3[_local6]);
if (_local2 != "") {
if (additionalValue_var == undefined) {
SCORMbuild("LMSGetValue", data_str + _local2, "", objAPI_str + _local2);
} else {
SCORMbuild("LMSGetValue", data_str + _local2, "", (objAPI_str + additionalValue_var) + _local2);
}
}
}
}
function getTrackingDataObjectives(value_str) {
var _local3 = this[value_str];
var _local2 = 0;
while (_local2 <= _local3) {
_local2++;
}
SCORMbuild("LMSGetValue", "");
}
function getTrackingDataError(command_str) {
LMSLastError_int = undefined;
LMSLastError.error = undefined;
LMSLastError_str = undefined;
LMSLastErrorCmd_str = command_str;
SCORMbuild("LMSGetLastError", "", "", objAPI_str + "LMSLastError_int");
SCORMbuild("LMSGetErrorString", "LMSLastError_int", "", objAPI_str + "LMSLastError_str");
}
function getTrackingDataErrorString() {
if (LMSLastError_int != 0) {
SCORMbuild("LMSGetErrorString", "", "", objAPI_str + "LMSLastError_str", "getTrackingDataErrorStringResult");
if (objAPI_str == "") {
trackingResponse.waitForResponse("LMSLastError_str", undefined, this, "getTrackingDataErrorStringResult");
}
} else {
LMSLastError_str = "";
}
}
function getTrackingDataErrorStringResult() {
addToErrorArray(LMSLastError_int, LMSLastError_str, LMSLastErrorCmd_str);
}
function setTrackingDataString(dataModel_str, dataValue_str, additionalValue_var) {
var _local2 = "";
dataValue_str = dataValue_str.split(",");
for (var _local6 in dataValue_str) {
if (additionalValue_var == undefined) {
_local2 = this[dataValue_str[_local6]];
} else {
_local2 = this[additionalValue_var + dataValue_str[_local6]];
}
if ((_local2 != undefined) && (_local2 != "")) {
SCORMbuild("LMSSetValue", dataModel_str + dataValue_str[_local6], _local2, "");
}
}
}
function setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _suspendData_str) {
if (_scoreAsPercent_bln == true) {
if ((((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) && (!isNaN(Math.round((_scoreRaw_int / _scoreMax_int) * 100)))) && (_scoreMax_int != 0)) {
setScore(Math.round((_scoreRaw_int / _scoreMax_int) * 100), 0, 100);
} else {
setScore(Math.round(_scoreRaw_int));
}
} else if (((_scoreRaw_int != undefined) && (_scoreMin_int != undefined)) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, _scoreMin_int, _scoreMax_int);
} else if ((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, 0, _scoreMax_int);
} else if (_scoreRaw_int != undefined) {
setScore(_scoreRaw_int);
} else {
setScore();
}
if (_location_str != undefined) {
setLessonLocation(_location_str);
}
if (_statusPreference_bln != undefined) {
if ((_statusPreference_bln == true) && (_statusCompletion_str != undefined)) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
if (_statusCompletion_str != undefined) {
setLessonStatus(_statusCompletion_str, _statusSuccess_str);
}
}
} else if (_statusCompletion_str != undefined) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
setLessonStatus(_statusSuccess_str);
}
setLessonStatus(getLessonStatus());
setTimeInSession(_time_str);
if (_suspendData_str != undefined) {
setLessonData(_suspendData_str);
}
}
function sendTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _suspendData_str) {
var _local2 = "";
setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _suspendData_str);
setTrackingDataString("cmi.core.score.", core_score_children, "score_");
if (_statusPreference_bln != undefined) {
if (_statusPreference_bln == true) {
_local2 = getLessonStatus();
} else if (getSuccessStatus() != undefined) {
_local2 = getSuccessStatus();
} else {
_local2 = getLessonStatus();
}
} else {
_local2 = getLessonStatus();
}
SCORMbuild("LMSSetValue", "cmi.core.lesson_status", normalizeStatus(_local2), "");
SCORMbuild("LMSSetValue", "cmi.core.lesson_location", getLessonLocation(), "");
SCORMbuild("LMSSetValue", "cmi.core.session_time", getTimeInSession(), "");
if (getLessonData() != "") {
SCORMbuild("LMSSetValue", "cmi.suspend_data", escape(getLessonData()), "");
}
}
function flush() {
SCORMbuild("LMSCommit", "", "", "");
}
function set finished_bln(value_bln) {
if (value_bln.toLowerCase() == "true") {
value_bln = true;
} else if (value_bln.toLowerCase() == "false") {
value_bln = false;
}
__set__initialized_bln(!value_bln);
//return(__get__finished_bln());
}
function finish() {
SCORMbuild("LMSCommit", "", "", "");
SCORMbuild("LMSFinish", "", "", objAPI_str + "finished_bln");
}
function setTrackingComplete() {
finish();
}
function AICCTokenToSCORMToken(list_str, token_str) {
var _local2 = list_str.split(",");
var _local3 = token_str.substr(0, 1).toLowerCase();
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local3 == _local2[_local1].substr(0, 1)) {
return(_local2[_local1]);
}
_local1++;
}
return(token_str);
}
function normalizeStatus(status_str) {
return(AICCTokenToSCORMToken("completed,incomplete,not attempted,failed,passed", status_str));
}
function normalizeInteractionType(type_str) {
if (type_str.toLowerCase() == "long-fill-in") {
return("fill-in");
}
return(AICCTokenToSCORMToken("true-false,choice,fill-in,matching,performance,sequencing,likert,numeric", type_str));
}
function normalizeInteractionResult(result_str) {
return(AICCTokenToSCORMToken("correct,wrong,unanticipated,neutral", result_str));
}
function isTokenSupported(list_str, token_str) {
var _local3 = list_str.split(",");
var _local4 = token_str.toLowerCase();
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local4 == trim(_local3[_local2])) {
return(true);
}
_local2++;
}
return(false);
}
function setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
var _local2 = interaction_ary.length;
interaction_ary[_local2] = new Array();
interaction_ary[_local2].interactionID_str = interactionID_str;
interaction_ary[_local2].objectiveID_str = objectiveID_str;
interaction_ary[_local2].type_str = normalizeInteractionType(type_str);
interaction_ary[_local2].correctResponse_str = ((correctResponse_str == "") ? "0" : (escapeJS(correctResponse_str)));
interaction_ary[_local2].studentResponse_str = ((studentResponse_str == "") ? "0" : (escapeJS(studentResponse_str)));
interaction_ary[_local2].result_str = normalizeInteractionResult(result_str);
interaction_ary[_local2].weight_int = weight_int;
interaction_ary[_local2].latency_str = formatTime(latency_str);
if ((date_str == undefined) || (date_str == "")) {
date_str = formatDate();
}
interaction_ary[_local2].date_str = date_str;
if ((time_str == undefined) || (time_str == "")) {
time_str = "00:00:00";
} else {
time_str = formatTime(time_str);
}
interaction_ary[_local2].time_str = time_str;
}
function sendInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
if (isInteractionDataTracked()) {
if ((interactionID_str != undefined) && (interactionID_str != "")) {
setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str);
}
var _local2 = 0;
while (_local2 < interaction_ary.length) {
if (isTokenSupported(interactions_children, "id") && (interaction_ary[_local2].interactionID_str != undefined)) {
SCORMbuild("LMSSetValue", ("cmi.interactions." + interactions_count.toString()) + ".id", interaction_ary[_local2].interactionID_str, "");
}
if (isTokenSupported(interactions_children, "time") && (interaction_ary[_local2].time_str != undefined)) {
SCORMbuild("LMSSetValue", ("cmi.interactions." + interactions_count.toString()) + ".time", interaction_ary[_local2].time_str, "");
}
if (isTokenSupported(interactions_children, "type") && (interaction_ary[_local2].type_str != undefined)) {
SCORMbuild("LMSSetValue", ("cmi.interactions." + interactions_count.toString()) + ".type", interaction_ary[_local2].type_str, "");
}
if (isTokenSupported(interactions_children, "correct_responses") && (interaction_ary[_local2].correctResponse_str != undefined)) {
SCORMbuild("LMSSetValue", ("cmi.interactions." + interactions_count.toString()) + ".correct_responses.0.pattern", interaction_ary[_local2].correctResponse_str, "");
}
if (isTokenSupported(interactions_children, "weighting") && (interaction_ary[_local2].weight_int != undefined)) {
SCORMbuild("LMSSetValue", ("cmi.interactions." + interactions_count.toString()) + ".weighting", interaction_ary[_local2].weight_int, "");
}
if (isTokenSupported(interactions_children, "student_response") && (interaction_ary[_local2].studentResponse_str != undefined)) {
SCORMbuild("LMSSetValue", ("cmi.interactions." + interactions_count.toString()) + ".student_response", interaction_ary[_local2].studentResponse_str, "");
}
if (isTokenSupported(interactions_children, "result") && (interaction_ary[_local2].result_str != undefined)) {
SCORMbuild("LMSSetValue", ("cmi.interactions." + interactions_count.toString()) + ".result", interaction_ary[_local2].result_str, "");
}
if (isTokenSupported(interactions_children, "latency") && (interaction_ary[_local2].latency_str != undefined)) {
SCORMbuild("LMSSetValue", ("cmi.interactions." + interactions_count.toString()) + ".latency", interaction_ary[_local2].latency_str, "");
}
interactions_count++;
_local2++;
}
interaction_ary = [];
}
}
function SCORMbuild(function_str, property_str, value_str, variable_str, functionToCall_str) {
var _local2 = new Object();
_local2.function_str = function_str;
_local2.property_str = property_str;
_local2.value_str = value_str;
_local2.variable_str = variable_str;
_local2.functionToCall_str = functionToCall_str;
lmsQueue.addToQueue(this, "callJS", _local2, true);
if ((((getShowErrors() == 1) && (function_str.substr(0, 18) != "LMSLastErrorString")) && (function_str.substr(0, 15) != "LMSGetLastError")) && ((function_str.substr(0, 11) == "LMSGetValue") || (function_str.substr(0, 11) == "LMSSetValue"))) {
getTrackingDataError((function_str + ":") + property_str);
}
}
function watchForLMSResponse(variable_str, oldValue, newValue, referenceObject) {
referenceObject.objAPI_obj.unwatch(variable_str);
if ((variable_str.indexOf("initialized_bln") > -1) || (variable_str.indexOf("finished_bln") > -1)) {
newValue = unescape(newValue).toLowerCase();
} else {
newValue = unescape(newValue);
}
referenceObject[variable_str] = newValue;
var _local2 = 0;
while (_local2 < referenceObject.callToJS_array.length) {
if (referenceObject.callToJS_array[_local2] == ((this + ".") + variable_str)) {
referenceObject.callToJS_array.splice(_local2, 1);
break;
}
_local2++;
}
if (variable_str == "core_children") {
referenceObject.getTrackingDataCoreValues(newValue);
}
if (variable_str == "core_score_children") {
referenceObject.getTrackingDataScoreValues(newValue);
}
if (variable_str == "LMSLastError_str") {
referenceObject.getTrackingDataErrorStringResult();
}
referenceObject.lmsQueue.removeFromQueue();
}
function callJS(parameter_obj) {
if (((parameter_obj.function_str == "LMSGetErrorString") && (LMSLastError_int == 0)) || ((parameter_obj.function_str != "LMSInitialize") && (!isInitialized()))) {
lmsQueue.removeFromQueue();
} else {
var _local5 = parameter_obj.function_str;
if (_local5 == "LMSGetErrorString") {
var _local6 = LMSLastError_int;
} else {
var _local6 = parameter_obj.property_str;
}
var _local3 = parameter_obj.value_str;
var _local2 = parameter_obj.variable_str;
if (objAPI_str == "") {
_local2 = (((_local2 == undefined) || (_local2 == "")) ? (objAPI_str + "tempVar") : (_local2));
callToJS_array.push(_local2);
_local3 = (((_local3 == undefined) || (_local3 == "")) ? "\"\"" : (("'" + _local3) + "'"));
var _local7 = ((((((("javascript:dataFromFlash('" + _local5) + "', '") + _local6) + "', ") + _local3) + ", '") + _local2) + "');";
getURL (_local7);
} else {
_local2 = (((_local2 == undefined) || (_local2 == "")) ? (objAPI_str + "tempVar") : (_local2));
_local3 = (((_local3 == undefined) || (_local3 == "")) ? "''" : (_local3));
Set(_local2, undefined);
callToJS_array.push(_local2);
var _local8 = _local2.substr(_local2.lastIndexOf(".") + 1);
objAPI_obj.watch(_local8, watchForLMSResponse, this);
fscommand (_local5, (((_local6 + "|") + _local3) + "|") + _local2);
}
}
}
var version = "1.2";
var callToJS_array = [];
var waitForData_var = undefined;
var waitForData_int = 30;
var objAPI_str = "";
}
Symbol 97 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.QuizState] Frame 0
class MMQuizzingV3.MMQuizClasses.QuizState extends Object implements MMQuizzingV3.MMSlideClasses.IQuizState
{
var _to64, _from64, _state, _esc, _fromEsc;
function QuizState () {
super();
var _local3;
_to64 = new Array();
_from64 = new Array();
_state = "";
_local3 = 0;
while (_local3 < _b64Alphabet.length) {
_to64[_local3] = _b64Alphabet.charAt(_local3);
_from64[_b64Alphabet.charCodeAt(_local3)] = _local3;
_local3++;
}
_esc = new Array();
_fromEsc = new Array();
_local3 = 0;
while (_local3 < _escAlphabet.length) {
_esc[_local3] = _escAlphabet.charAt(_local3);
_fromEsc[_escAlphabet.charAt(_local3)] = _local3 + 1;
_local3++;
}
}
function toString() {
return(_state);
}
function fromString(theString) {
_state = theString;
_curReadPos = 0;
}
function writeNumber(num) {
var _local2;
var _local4;
var _local6;
num = Math.floor(num);
if (num > _mask[_mask.length - 1]) {
_state = _state.concat(_doubleEsc);
writeNumber(num / (_mask[_mask.length - 1] + 1));
writeNumber(num & _mask[_mask.length - 1]);
} else {
_local2 = 0;
while (_local2 < _esc.length) {
if ((num & _mask[_local2]) == num) {
if (_local2 > 0) {
_state = _state.concat(_esc[_local2 - 1]);
}
_local4 = 0;
var _local3 = 0;
while (_local3 <= _local2) {
_local6 = (num >> _local4) & 63;
_state = _state.concat(_to64[_local6]);
_local4 = _local4 + 6;
_local3++;
}
break;
}
_local2++;
}
}
}
function readNumber() {
var _local7 = _state.charAt(_curReadPos);
var _local8 = _state.charCodeAt(_curReadPos++);
var _local5;
var _local2;
var _local4;
var _local6 = 0;
var _local3;
if (_local7 == _doubleEsc) {
var _local10 = readNumber();
var _local9 = readNumber();
return((_local10 * (_mask[_mask.length - 1] + 1)) + _local9);
}
_local5 = _fromEsc[_local7];
if ((_local5 == 0) || (_local5 == undefined)) {
_local6 = _from64[_local8];
} else {
_local3 = 0;
_local2 = 0;
while (_local2 <= _local5) {
_local4 = _from64[_state.charCodeAt(_curReadPos++)];
_local6 = _local6 | (_local4 << _local3);
_local3 = _local3 + 6;
_local2++;
}
}
return(_local6);
}
function writeBoolean(theBool) {
_state = _state.concat((theBool ? "1" : "0"));
}
function readBoolean() {
return(_state.charAt(_curReadPos++) == "1");
}
function writeString(theString) {
var _local2 = theString;
writeNumber(_local2.length);
_state = _state.concat(_local2);
}
function readString() {
var _local2 = readNumber();
var _local3 = _state.substr(_curReadPos, _local2);
_curReadPos = _curReadPos + _local2;
return(_local3);
}
function writeAnswerType(theString) {
var _local2;
switch (theString) {
case "FillInTheBlankAnswer" :
_local2 = 1;
break;
case "LikertAnswer" :
_local2 = 2;
break;
case "MatchAnswer" :
_local2 = 3;
break;
case "MultipleChoiceAnswer" :
_local2 = 4;
break;
case "MultipleChoiceMultipleAnswer" :
_local2 = 5;
break;
case "rdInteractionAnswer" :
_local2 = 6;
break;
case "MatchingListAnswer" :
_local2 = 7;
break;
case "SequenceAnswer" :
_local2 = 8;
break;
case "SequenceListAnswer" :
_local2 = 9;
break;
case "HotSpot" :
_local2 = 10;
break;
default :
_local2 = 0;
}
writeNumber(_local2);
}
function readAnswerType() {
var _local3 = readNumber();
var _local2 = "";
switch (_local3) {
case 1 :
_local2 = "FillInTheBlankAnswer";
break;
case 2 :
_local2 = "LikertAnswer";
break;
case 3 :
_local2 = "MatchAnswer";
break;
case 4 :
_local2 = "MultipleChoiceAnswer";
break;
case 5 :
_local2 = "MultipleChoiceMultipleAnswer";
break;
case 6 :
_local2 = "rdInteractionAnswer";
break;
case 7 :
_local2 = "MatchingListAnswer";
break;
case 8 :
_local2 = "SequenceAnswer";
break;
case 9 :
_local2 = "SequenceListAnswer";
break;
case 10 :
_local2 = "HotSpot";
break;
default :
_local2 = "";
}
return(_local2);
}
function getReadPos() {
return(_curReadPos);
}
function setReadPos(newPos) {
_curReadPos = newPos;
}
function getWritePos() {
return(_curReadPos);
}
function setWritePos(newPos) {
_curReadPos = newPos;
}
function getData() {
return(toString());
}
function setData(newData) {
fromString(newData);
}
var _curReadPos = 0;
var _b64Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-";
var _escAlphabet = "$.!*+";
var _doubleEsc = "~";
var _mask = [63, 4095, 262143, 16777215, 1073741823];
}
Symbol 98 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.QuestionScore] Frame 0
class MMQuizzingV3.MMQuizClasses.QuestionScore extends Object implements MMQuizzingV3.MMSlideClasses.IQuestionScore
{
var _answerScores, _slideNum, _startTime, _endTime, _interactionType, _objectiveID, _weighting, _wasJudged, _interactionID;
function QuestionScore () {
super();
_numTries = 0;
_answerScores = [];
}
function get slideNum() {
return(_slideNum);
}
function set slideNum(num) {
_slideNum = num;
//return(slideNum);
}
function get startTime() {
return(_startTime);
}
function set startTime(time) {
_startTime = time;
//return(startTime);
}
function get endTime() {
return(_endTime);
}
function set endTime(time) {
_endTime = time;
//return(endTime);
}
function get pausedMsecs() {
return(_pausedMsecs);
}
function set pausedMsecs(msecs) {
_pausedMsecs = msecs;
//return(pausedMsecs);
}
function get interactionType() {
return(_interactionType);
}
function set interactionType(theType) {
_interactionType = theType;
//return(interactionType);
}
function get objectiveID() {
return(_objectiveID);
}
function set objectiveID(id) {
_objectiveID = id;
//return(objectiveID);
}
function get questionNumInQuiz() {
return(_questionNumInQuiz);
}
function set questionNumInQuiz(num) {
_questionNumInQuiz = num;
//return(questionNumInQuiz);
}
function get latency() {
var _local3;
var _local2;
_local3 = (endTime.getTime() - startTime.getTime()) - pausedMsecs;
_local2 = _local3 / 1000;
return(_local2);
}
function get answerScores() {
return(_answerScores);
}
function set answerScores(scores) {
_answerScores = scores;
//return(answerScores);
}
function get answersIncomplete() {
return(_answersIncomplete);
}
function set answersIncomplete(incomplete) {
_answersIncomplete = incomplete;
//return(answersIncomplete);
}
function spacesToUnderscores(s) {
var _local3 = "";
var _local2 = 0;
while (_local2 < s.length) {
var _local1 = s.charAt(_local2);
if (_local1 == " ") {
_local1 = "_";
}
_local3 = _local3.concat(_local1);
_local2++;
}
return(_local3);
}
function escapeCommasAndSemiColons(s) {
var _local1 = "";
var _local2 = 0;
var _local5 = 0;
var _local3;
_local2 = 0;
while (_local2 < s.length) {
_local3 = s.charAt(_local2);
if ((_local3 == ";") || (_local3 == ",")) {
_local1 = _local1 + "\\";
}
_local1 = _local1 + _local3;
_local2++;
}
return(_local1);
}
function answersAsString(whichProp, forReview) {
var _local7 = "";
var _local3 = null;
var _local2;
_local7 = "";
var _local6 = ",";
for (var _local8 in answerScores) {
_local2 = "";
_local3 = answerScores[_local8];
switch (_local3.__get__answerType()) {
case "MultipleChoiceAnswer" :
case "MultipleChoiceMultipleAnswer" :
case "HotSpot" :
if (_local3[whichProp] == "1") {
if ((!forReview) && (interactionType == "true-false")) {
if (_local3.__get__isTrueAnswer()) {
_local2 = "true";
} else {
_local2 = "false";
}
} else if ((_local3.__get__answerID_for_shuffle() == "-1") || (forReview)) {
_local2 = _local3.answerID;
} else {
_local2 = _local3.answerID_for_shuffle;
}
}
break;
case "LikertAnswer" :
_local2 = spacesToUnderscores(_local3[whichProp]);
_local6 = ";";
break;
case "rdInteractionAnswer" :
case "FillInTheBlankAnswer" :
_local2 = _local3[whichProp];
if (!forReview) {
_local2 = escapeCommasAndSemiColons(_local2);
}
_local6 = ",";
break;
case "SequenceAnswer" :
_local2 = _local3[whichProp];
if (!forReview) {
_local2 = escapeCommasAndSemiColons(_local2);
}
_local6 = ",";
break;
case "MatchAnswer" :
default :
if (forReview) {
if (_local3[whichProp].length == 0) {
_local2 = " ";
} else {
_local2 = _local3[whichProp];
}
} else {
_local2 = _local3.answerID;
_local2 = _local2.concat(".", _local3[whichProp]);
}
}
if (_local2.length > 0) {
if (_local7.length > 0) {
_local7 = _local7 + _local6;
}
_local7 = _local7 + _local2;
}
}
return(_local7);
}
function get correctAnswersAsString() {
return(answersAsString("correctAnswer", false));
}
function get chosenAnswersAsString() {
return(answersAsString("chosenAnswer", false));
}
function get correctAnswersForReview() {
return(answersAsString("correctAnswer", true));
}
function get chosenAnswersForReview() {
return(answersAsString("chosenAnswer", true));
}
function get answeredCorrectly() {
return(_answeredCorrectly);
}
function set answeredCorrectly(isCorrect) {
_answeredCorrectly = isCorrect;
//return(answeredCorrectly);
}
function get isCorrectAsString() {
if (answeredCorrectly) {
return("C");
}
return("W");
}
function get numTries() {
return(_numTries);
}
function set numTries(tries) {
_numTries = tries;
//return(numTries);
}
function get weighting() {
return(_weighting);
}
function set weighting(wt) {
_weighting = wt;
//return(weighting);
}
function addLeadingZero(n) {
if (n < 10) {
return("0" + String(n));
}
return(String(n));
}
function get latencyAsString() {
var _local2 = (((addLeadingZero(Math.round(latency / 3600)) + ":") + addLeadingZero(Math.round((latency % 3600) / 60))) + ":") + addLeadingZero(Math.round(latency) % 60);
return(_local2);
}
function get latencyAsSeconds() {
return(latency);
}
function get curDateAsString() {
var _local2 = new Date();
var _local3 = (((addLeadingZero(_local2.getMonth() + 1) + "/") + addLeadingZero(_local2.getDate())) + "/") + _local2.getFullYear();
return(_local3);
}
function get curDateAsString2() {
var _local2 = new Date();
var _local3 = (((_local2.getFullYear() + "/") + addLeadingZero(_local2.getMonth() + 1)) + "/") + addLeadingZero(_local2.getDate());
return(_local3);
}
function get curTimeAsString() {
var _local2 = new Date();
var _local3 = (((addLeadingZero(_local2.getHours()) + ":") + addLeadingZero(_local2.getMinutes())) + ":") + addLeadingZero(_local2.getSeconds());
return(_local3);
}
function get curTimeAsSecondsSinceMidnight() {
var _local1 = new Date();
return(((_local1.getHours() * 3600) + (_local1.getMinutes() * 60)) + _local1.getSeconds());
}
function get score() {
if (answeredCorrectly && (wasJudged)) {
return(weighting);
}
return(0);
}
function get wasJudged() {
return(_wasJudged);
}
function set wasJudged(judged) {
_wasJudged = judged;
//return(wasJudged);
}
function saveState(myState) {
myState.writeNumber(_slideNum);
myState.writeNumber(_questionNumInQuiz);
myState.writeNumber(_startTime.getTime());
myState.writeBoolean(_wasJudged);
myState.writeBoolean(_answeredCorrectly);
myState.writeBoolean(_answersIncomplete);
myState.writeNumber(_numTries);
myState.writeNumber(_weighting);
myState.writeNumber(answerScores.length);
myState.writeString(interactionType);
if (((answerOrderArrayAsString == undefined) || (answerOrderArrayAsString == null)) || (answerOrderArrayAsString == "")) {
myState.writeString("nil");
} else {
myState.writeString(answerOrderArrayAsString);
}
if (((hotSpotNamesArrayAsString == undefined) || (hotSpotNamesArrayAsString == null)) || (hotSpotNamesArrayAsString == "")) {
myState.writeString("nil");
} else {
myState.writeString(hotSpotNamesArrayAsString);
}
if (((hotSpot_xchordsAsString == undefined) || (hotSpot_xchordsAsString == null)) || (hotSpot_xchordsAsString == "")) {
myState.writeString("nil");
} else {
myState.writeString(hotSpot_xchordsAsString);
}
if (((hotSpot_ychordsAsString == undefined) || (hotSpot_ychordsAsString == null)) || (hotSpot_ychordsAsString == "")) {
myState.writeString("nil");
} else {
myState.writeString(hotSpot_ychordsAsString);
}
var _local2 = 0;
while (_local2 < answerScores.length) {
myState.writeString(answerScores[_local2].answerID);
myState.writeString(answerScores[_local2].chosenAnswer);
myState.writeString(answerScores[_local2].correctAnswer);
myState.writeAnswerType(answerScores[_local2].answerType);
_local2++;
}
}
function restoreState(myState) {
_slideNum = myState.readNumber();
_questionNumInQuiz = myState.readNumber();
if ((_startTime == undefined) || (_startTime == null)) {
_startTime = new Date();
}
_startTime.setTime(myState.readNumber());
_wasJudged = myState.readBoolean();
_answeredCorrectly = myState.readBoolean();
_answersIncomplete = myState.readBoolean();
_numTries = myState.readNumber();
_weighting = myState.readNumber();
var _local5 = myState.readNumber();
interactionType = (myState.readString());
answerOrderArrayAsString = myState.readString();
hotSpotNamesArrayAsString = myState.readString();
hotSpot_xchordsAsString = myState.readString();
hotSpot_ychordsAsString = myState.readString();
if (answerOrderArrayAsString == "nil") {
answerOrderArrayAsString = "";
}
if (hotSpotNamesArrayAsString == "nil") {
hotSpotNamesArrayAsString = "";
}
if (hotSpot_xchordsAsString == "nil") {
hotSpot_xchordsAsString = "";
}
if (hotSpot_ychordsAsString == "nil") {
hotSpot_ychordsAsString = "";
}
var _local4 = 0;
while (_local4 < _local5) {
var _local2 = new MMQuizzingV3.MMQuizClasses.AnswerScore();
_local2.__set__answerID(myState.readString());
_local2.__set__chosenAnswer(myState.readString());
_local2.__set__correctAnswer(myState.readString());
_local2.__set__answerType(myState.readAnswerType());
answerScores.push(_local2);
_local4++;
}
}
function get interactionID() {
return(_interactionID);
}
function set interactionID(id) {
_interactionID = id;
//return(interactionID);
}
function getSlideNum() {
return(slideNum);
}
function setSlideNum(num) {
slideNum = (num);
}
function getStartTime() {
return(startTime);
}
function setStartTime(time) {
startTime = (time);
}
function getEndTime() {
return(endTime);
}
function setEndTime(time) {
endTime = (time);
}
function getInteractionType() {
return(interactionType);
}
function setInteractionType(intType) {
interactionType = (intType);
}
function getObjectiveID() {
return(objectiveID);
}
function setObjectiveID(id) {
objectiveID = (id);
}
function getInteractionID() {
return(interactionID);
}
function setInteractionID(id) {
interactionID = (id);
}
function getWeighting() {
return(weighting);
}
function setWeighting(wt) {
weighting = (wt);
}
function getAnswerScores() {
return(answerScores);
}
function setAnswerScores(scores) {
answerScores = (scores);
}
function getNumTries() {
return(numTries);
}
function setNumTries(num) {
numTries = (num);
}
function getAnswersIncomplete() {
return(answersIncomplete);
}
function setAnswersIncomplete(incomplete) {
answersIncomplete = (incomplete);
}
function getAnsweredCorrectly() {
return(answeredCorrectly);
}
function setAnsweredCorrectly(correct) {
answeredCorrectly = (correct);
}
function getPausedMsecs() {
return(pausedMsecs);
}
function setPausedMsecs(msecs) {
pausedMsecs = (msecs);
}
function getQuestionNumInQuiz() {
return(questionNumInQuiz);
}
function setQuestionNumInQuiz(num) {
questionNumInQuiz = (num);
}
function getWasJudged() {
return(wasJudged);
}
function setWasJudged(judged) {
wasJudged = (judged);
}
function resetScore() {
_answerScores = [];
_numTries = 0;
_startTime = null;
_endTime = null;
_answersIncomplete = false;
_answeredCorrectly = false;
_pausedMsecs = 0;
_wasJudged = false;
answerOrderArrayAsString = "";
hotSpotNamesArrayAsString = "";
hotSpot_xchordsAsString = "";
hotSpot_ychordsAsString = "";
}
var _numTries = 0;
var _answersIncomplete = true;
var _answeredCorrectly = false;
var _pausedMsecs = 0;
var _questionNumInQuiz = -1;
var answerOrderArrayAsString = "";
var hotSpotNamesArrayAsString = "";
var hotSpot_xchordsAsString = "";
var hotSpot_ychordsAsString = "";
}
Symbol 99 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.AnswerScore] Frame 0
class MMQuizzingV3.MMQuizClasses.AnswerScore extends Object
{
var _answerType, _answerID, _chosenAnswer, _correctAnswer;
function AnswerScore () {
super();
_answerID_for_shuffle = "-1";
}
function get answerType() {
return(_answerType);
}
function set answerType(theType) {
_answerType = theType;
//return(answerType);
}
function get answerID() {
return(_answerID);
}
function set answerID(theID) {
_answerID = theID;
//return(answerID);
}
function get chosenAnswer() {
return(_chosenAnswer);
}
function set chosenAnswer(theChosenAnswer) {
_chosenAnswer = theChosenAnswer;
//return(chosenAnswer);
}
function get correctAnswer() {
return(_correctAnswer);
}
function set correctAnswer(theCorrectAnswer) {
_correctAnswer = theCorrectAnswer;
//return(correctAnswer);
}
function get isTrueAnswer() {
return(_isTrueAnswer);
}
function set isTrueAnswer(isTrue) {
_isTrueAnswer = isTrue;
//return(isTrueAnswer);
}
function copy() {
var _local2 = new MMQuizzingV3.MMQuizClasses.AnswerScore();
_local2._answerType = answerType;
_local2._answerID = answerID;
_local2._chosenAnswer = chosenAnswer;
_local2._correctAnswer = correctAnswer;
_local2._isTrueAnswer = isTrueAnswer;
_local2._answerID_for_shuffle = answerID_for_shuffle;
return(_local2);
}
function get answerID_for_shuffle() {
return(_answerID_for_shuffle);
}
function set answerID_for_shuffle(theID) {
_answerID_for_shuffle = theID;
//return(answerID_for_shuffle);
}
var _isTrueAnswer = false;
var _answerID_for_shuffle = "-1";
}
Symbol 100 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.ScoreDisplay] Frame 0
class MMQuizzingV3.MMQuizClasses.ScoreDisplay extends mx.core.UIComponent
{
var _quizController, _score, _scoreLbl, _maxScore, _maxScoreLbl, _numQuestions, _numQuestionsLbl, _numRetries, _numQuizAttempts, _numQuizAttemptsLbl, _percentCorrect, _percentCorrectLbl, _numQuestionsCorrect, _numQuestionsCorrectLbl, _feedback, _feedbackLbl, _parent;
function ScoreDisplay () {
super();
isConstructed = true;
}
function set quizController(theController) {
_quizController = theController;
//return(quizController);
}
function get quizController() {
return(_quizController);
}
function set score(newScore) {
var _local2 = this;
_score = newScore;
if (_local2._scoreMC && (_local2._scoreMC._valueMC)) {
_local2._scoreMC._valueMC.score = _score;
}
if (_scoreLbl) {
_scoreLbl.text = newScore;
}
//return(score);
}
function get score() {
return(_score);
}
function set maxScore(newMaxScore) {
var _local2 = this;
_maxScore = newMaxScore;
if (_local2._maxScoreMC && (_local2._maxScoreMC._valueMC)) {
_local2._maxScoreMC._valueMC.maxScore = _maxScore;
}
if (_maxScoreLbl) {
_maxScoreLbl.text = newMaxScore;
}
//return(maxScore);
}
function get maxScore() {
return(_maxScore);
}
function set numQuestions(newNumQuestions) {
var _local2 = this;
_numQuestions = newNumQuestions;
if (_local2._numQuestionsMC && (_local2._numQuestionsMC._valueMC)) {
_local2._numQuestionsMC._valueMC.numQuestions = _numQuestions;
}
if (_numQuestionsLbl) {
_numQuestionsLbl.text = newNumQuestions;
}
//return(numQuestions);
}
function get numQuestions() {
return(_numQuestions);
}
function set numRetries(newNumRetries) {
var _local2 = this;
_numRetries = newNumRetries;
if (_local2._numRetriesMC && (_local2._numRetriesMC._valueMC)) {
_local2._numRetriesMC._valueMC.numRetries = _numRetries;
}
//return(numRetries);
}
function get numRetries() {
return(_numRetries);
}
function set numQuizAttempts(newNumQuizAttempts) {
var _local2 = this;
_numQuizAttempts = newNumQuizAttempts;
if (_local2._numQuizAttemptsMC && (_local2._numQuizAttemptsMC._valueMC)) {
_local2._numQuizAttemptsMC._valueMC.numQuizAttempts = _numQuizAttempts;
}
if (_numQuizAttemptsLbl) {
_numQuizAttemptsLbl.text = newNumQuizAttempts;
}
//return(numQuizAttempts);
}
function get numQuizAttempts() {
return(_numQuizAttempts);
}
function set percentCorrect(newPercentCorrect) {
var _local2 = this;
_percentCorrect = newPercentCorrect;
if (_local2._percentCorrectMC && (_local2._percentCorrectMC._valueMC)) {
_local2._percentCorrectMC._valueMC.percentCorrect = _percentCorrect;
}
if (_percentCorrectLbl) {
_percentCorrectLbl.text = newPercentCorrect;
}
//return(percentCorrect);
}
function get percentCorrect() {
return(_percentCorrect);
}
function set numQuestionsCorrect(newNumQuestionsCorrect) {
var _local2 = this;
_numQuestionsCorrect = newNumQuestionsCorrect;
if (_local2._numQuestionsCorrectMC && (_local2._numQuestionsCorrectMC._valueMC)) {
_local2._numQuestionsCorrectMC._valueMC.numQuestionsCorrect = _numQuestionsCorrect;
}
if (_numQuestionsCorrectLbl) {
_numQuestionsCorrectLbl.text = newNumQuestionsCorrect;
}
//return(numQuestionsCorrect);
}
function get numQuestionsCorrect() {
return(_numQuestionsCorrect);
}
function set feedback(newFeedback) {
var _local2 = this;
_feedback = newFeedback;
if (_local2._feedbackMC && (_local2._feedbackMC._valueMC)) {
_local2._feedbackMC._valueMC.feedback = _feedback;
}
if (_feedbackLbl) {
_feedbackLbl.text = newFeedback;
}
//return(feedback);
}
function get feedback() {
return(_feedback);
}
function setAccessibilityNone(o) {
if (o) {
var _local2 = new Object();
o._accProps = _local2;
o._accProps.silent = true;
o._accProps.forceSimple = true;
o._accProps.name = "";
o.tabEnabled = false;
o.tabChildren = false;
o.focusEnabled = false;
o.tabIndex = undefined;
}
}
function setChildAccessibilityNone(o) {
for (var _local3 in o) {
if (o[_local3]._name.length > 0) {
setAccessibilityNone(o[_local3]);
}
}
}
function setAccessibilityNonLeafNode(o, setChildNone) {
if (setChildNone) {
setChildAccessibilityNone(o);
}
var _local3 = new Object();
o._accProps = _local3;
o._accProps.silent = false;
o._accProps.forceSimple = false;
o._accProps.name = "";
o.tabEnabled = false;
o.tabIndex = _curTabIndex++;
o.tabChildren = true;
o.focusEnabled = false;
}
function setAccessibilityLeafNode(o, theName) {
if (o) {
setChildAccessibilityNone(o);
var _local3 = new Object();
o._accProps = _local3;
o._accProps.silent = false;
o._accProps.forceSimple = true;
o._accProps.name = theName;
o.tabChildren = false;
o.tabEnabled = true;
o.focusEnabled = true;
}
}
function setDocAccessibility() {
var _local2 = _parent;
setChildAccessibilityNone(_local2);
var _local3 = new Object();
_local2._accProps = _local3;
_local2._accProps.silent = false;
_local2._accProps.forceSimple = false;
_local2._accProps.name = "";
_local2.tabEnabled = false;
_local2.tabChildren = true;
_local2.focusEnabled = false;
}
function setPlaybarButtonAccessibility(b) {
b._accProps.silent = false;
b._accProps.forceSimple = true;
b.tabIndex = _curTabIndex++;
b.focusEnabled = true;
b.tabChildren = false;
}
function setPlaybarAccessibility() {
var _local2 = _parent._parent.playbar_mc;
if (_local2) {
setAccessibilityNonLeafNode(_local2, false);
setAccessibilityNone(_local2.progressbar_mc);
setPlaybarButtonAccessibility(_local2.pbc_Rewind2);
setPlaybarButtonAccessibility(_local2.pbc_Back3);
setPlaybarButtonAccessibility(_local2.pbc_Play4);
setPlaybarButtonAccessibility(_local2.pbc_Pause5);
setPlaybarButtonAccessibility(_local2.pbc_Forward6);
setPlaybarButtonAccessibility(_local2.pbc_Exit7);
setPlaybarButtonAccessibility(_local2.pbc_Information8);
}
}
function setAccessibility() {
return(undefined);
}
function reviewAnswers() {
quizController.__get__playbackController().reviewAnswersForCurrentQuiz();
}
function doContinue() {
quizController.__get__playbackController().gotoNextSlide();
}
function init() {
super.init();
}
var _curTabIndex = 57344;
var isConstructed = false;
}
Symbol 101 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.QuizProgress] Frame 0
class MMQuizzingV3.MMQuizClasses.QuizProgress extends mx.core.UIComponent
{
function QuizProgress () {
super();
}
function init() {
super.init();
}
var questionNum = 0;
var numQuestions = 0;
}
Symbol 102 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.Question] Frame 0
class MMQuizzingV3.MMQuizClasses.Question extends mx.core.UIComponent
{
var _hotSpotNamesArray, _hotSpotPositionsArray, m_Qslide, _answers, _questionScore, _submitbutton, _clearbutton, _parent, _incorrectFeedback, _state, _shuffleAnswers, tabEnabled, tabChildren, focusEnabled, doLater, dispatchEvent, _visible, RandomAnswers_array, AnswersOrder_array, _timerProgressID, _timerID, getNextHighestDepth, createEmptyMovieClip, attachMovie, _xmouse, _ymouse, _url, onEnterFrame;
function Question () {
super();
isConstructed = true;
_hotSpotNamesArray = new Array();
_hotSpotPositionsArray = new Array();
m_Qslide = null;
}
function get quizID() {
return(quizController.__get__quizParams().quizID);
}
function get slide() {
return(_slide);
}
function set slide(si) {
_slide = si;
//return(slide);
}
function get questionNumInQuiz() {
return(_questionNumInQuiz);
}
function get answers() {
return(_answers);
}
function set questionNumInQuiz(num) {
_questionNumInQuiz = num;
//return(questionNumInQuiz);
}
function get isAnyHotSpotAnimationOrphan() {
var _local3 = true;
var _local2 = 0;
while (_local2 < _hotSpotPositionsArray.length) {
_local3 = true;
for (var _local4 in _answers) {
if (_answers[_local4].hitTest(_hotSpotPositionsArray[_local2].xcord, _hotSpotPositionsArray[_local2].ycord)) {
_local3 = false;
break;
}
}
if (_local3) {
return(true);
}
_local2++;
}
return(false);
}
function get answeredCorrectly() {
if (isSurvey) {
return(true);
}
if (_answers.length == 0) {
return(false);
}
if (isHotSpotQuestion && (isAnyHotSpotAnimationOrphan)) {
return(false);
}
for (var _local2 in _answers) {
if (!_answers[_local2].answeredCorrectly) {
return(false);
}
}
return(true);
}
function get answersIncomplete() {
for (var _local2 in _answers) {
if (mustAnswerAll) {
if (!_answers[_local2].answered) {
return(true);
}
} else if (_answers[_local2].answered) {
return(false);
}
}
return(!mustAnswerAll);
}
function get numTries() {
if (_questionScore) {
return(_questionScore.__get__numTries());
}
return(_numTries);
}
function set numTries(tries) {
if (_questionScore) {
_questionScore.__set__numTries(tries);
}
_numTries = tries;
if (tries >= _numQuestionAttemptsAllowed) {
disableAnswers();
if (_submitbutton != undefined) {
_submitbutton.enabled = false;
}
if (_clearbutton != undefined) {
_clearbutton.enabled = false;
}
}
//return(numTries);
}
function get questionScore() {
if (_questionScore) {
return(_questionScore);
}
return(quizController.getQuestionScore(questionNumInQuiz));
}
function set questionScore(qs) {
_questionScore = qs;
//return(questionScore);
}
function get lastFeedbackShown() {
return(_lastFeedbackShown);
}
function get correctFeedback() {
if (_parent._correctFeedback) {
return(_parent.correctFeedback);
}
return(_correctFeedback);
}
function getIncorrectFeedback(index) {
if (index >= _numIncorrectFeedback) {
return(null);
}
if (_parent._incorrectFeedback[index]) {
return(_parent._incorrectFeedback[index]);
}
return(_incorrectFeedback[index]);
}
function get incompleteFeedback() {
if (_parent._incompleteFeedback) {
return(_parent._incompleteFeedback);
}
return(_incompleteFeedback);
}
function get retryFeedback() {
if (_parent.retryFeedback) {
return(_parent._retryFeedback);
}
return(_retryFeedback);
}
function get hint() {
if (_parent._hint) {
return(_parent._hint);
}
return(_hint);
}
function get surveyFeedback() {
if (_parent._surveyFeedback) {
return(_parent._surveyFeedback);
}
if (isSurvey && (!_surveyFeedback)) {
return(correctFeedback);
}
return(_surveyFeedback);
}
function get timeoutFeedback() {
if (_parent._timeoutFeedback) {
return(_parent._timeoutFeedback);
}
return(_timeoutFeedback);
}
function get numQuestionAttemptsAllowed() {
if (_numQuestionAttemptsAllowed > 0) {
return(_numQuestionAttemptsAllowed);
}
}
function set numQuestionAttemptsAllowed(numAllowed) {
_numQuestionAttemptsAllowed = numAllowed;
//return(numQuestionAttemptsAllowed);
}
function get showingModalFeedback() {
return(_lastFeedbackShown && (_lastFeedbackShown.isModal));
}
function get chosenAnswerFeedback() {
for (var _local2 in _answers) {
if (_answers[_local2].feedback && (_answers[_local2].answered)) {
return(_answers[_local2].feedback);
}
}
return(null);
}
function get chosenAnswerRetryFeedback() {
for (var _local2 in _answers) {
if (_answers[_local2].retryFeedback && (_answers[_local2].answered)) {
return(_answers[_local2].retryFeedback);
}
}
}
function get state() {
return(_state);
}
function set state(newState) {
_state = newState;
//return(state);
}
function get quizController() {
return(_quizController);
}
function set quizController(qc) {
_quizController = qc;
//return(quizController);
}
function get inReviewMode() {
return(_inReviewMode);
}
function get eachAnswerIsSeparateInteraction() {
return(_eachAnswerIsSeparateInteraction);
}
function set eachAnswerIsSeparateInteraction(theBool) {
_eachAnswerIsSeparateInteraction = theBool;
//return(eachAnswerIsSeparateInteraction);
}
function get previousQuestionScore() {
return(_previousQuestionScore);
}
function set previousQuestionScore(qs) {
_previousQuestionScore = qs;
//return(previousQuestionScore);
}
function get shuffleAnswers() {
return(_shuffleAnswers);
}
function init() {
_answers = [];
state = ("init");
_questionScore = new MMQuizzingV3.MMQuizClasses.QuestionScore();
super.init();
tabEnabled = false;
tabChildren = true;
focusEnabled = true;
if (useHint) {
doLater(this, "showHint");
}
_incorrectFeedback = new Array(_numIncorrectFeedback);
}
function showHint() {
if (hint && (state != "ended")) {
hint.__set__visible(true);
dispatchEvent({type:"showHint", target:this});
}
}
function hideHint() {
if (hint) {
hint.__set__visible(false);
dispatchEvent({type:"hideHint", target:this});
}
}
function autoJudge() {
numTries = (numQuestionAttemptsAllowed - 1);
judge(true, true);
}
function updateTimerProgress() {
if (_timerBar) {
var _local4 = new Date();
var _local5 = questionScore.__get__startTime();
var _local3 = timeLimitMSecs - (_local4.getTime() - _local5.getTime());
var _local2 = new Date();
_local2.setTime(_local3);
_timerBar.updateProgress(_local2, _local3 / timeLimitMSecs);
}
}
function enableDragAnswers(enable) {
var _local4 = this;
var _local2 = 0;
while (_local2 < 9) {
var _local3 = _local4["choice" + _local2];
if (_local3._name.length > 0) {
_local3.enabled = enable;
}
_local2++;
}
}
function enableAnswers() {
for (var _local3 in _answers) {
var _local2 = _answers[_local3];
_local2.enabled = true;
_local2.clearAnswer();
}
enableDragAnswers(true);
}
function disableAnswers() {
for (var _local3 in _answers) {
var _local2 = _answers[_local3];
_local2.enabled = false;
}
enableDragAnswers(false);
}
function setAnswerInteractionIDs() {
if (eachAnswerIsSeparateInteraction) {
for (var _local3 in _answers) {
var _local2 = _answers[_local3];
_local2.objectiveID = questionScore.objectiveID;
_local2.interactionID = questionScore.__get__interactionID().concat("_", String(_local3));
}
}
}
function setVisible() {
_visible = true;
doLater(this, "setAccessibility");
}
function resetPreviousAnswerOrder() {
if (_previousQuestionScore && (state == "playing")) {
if (_previousQuestionScore.answerOrderArrayAsString != "") {
ShulffleAnswers(_previousQuestionScore.answerOrderArrayAsString);
disableAnswers();
}
}
}
function resetPreviousAnswers() {
trace("resetPreviousAnswers----- numTries = " + numTries);
setAnswerInteractionIDs();
if (_previousQuestionScore && (state == "playing")) {
for (var _local5 in _previousQuestionScore.__get__answerScores()) {
var _local3 = _previousQuestionScore.__get__answerScores()[_local5];
for (var _local4 in _answers) {
var _local2 = _answers[_local4];
if (_local2.answerID == _local3.__get__answerID()) {
_local2.setFromAnswerScore(_local3);
}
}
}
numTries = (_previousQuestionScore.numTries);
questionScore.__set__wasJudged(_previousQuestionScore.wasJudged);
questionScore.__set__startTime(_previousQuestionScore.startTime);
questionScore.__set__weighting(_previousQuestionScore.weighting);
} else {
questionScore.__set__questionNumInQuiz(questionNumInQuiz);
}
if (numTries == 0) {
if (_submitbutton != undefined) {
_submitbutton.enabled = true;
}
if (_clearbutton != undefined) {
_clearbutton.enabled = true;
}
enableAnswers();
}
if (_inReviewMode) {
disableAnswers();
if (_submitbutton != undefined) {
_submitbutton.enabled = false;
}
if (_clearbutton != undefined) {
_clearbutton.enabled = false;
}
}
MMQuizzingV3.MMQuizClasses.PlaybackController.doActionLater(this, "setVisible", null, 0, 0, 150, 150);
_startingQuestion = false;
}
function updateQuizProgressIndicator() {
if (((state == "playing") && (quizController.__get__quizProgressIndicator())) && (this == quizController.__get__firstQuestionOnCurrentSlide())) {
quizController.__get__quizProgressIndicator().questionNum = 1 + questionNumInQuiz;
quizController.__get__quizProgressIndicator().numQuestions = quizController.numQuestions;
}
}
function setAccessibilityNone(o) {
if (o) {
var _local2 = new Object();
o._accProps = _local2;
o._accProps.silent = true;
o._accProps.forceSimple = true;
o._accProps.name = "";
o.tabEnabled = false;
o.tabChildren = false;
o.focusEnabled = false;
o.tabIndex = undefined;
}
}
function setChildAccessibilityNone(o) {
var _local2;
for (var _local4 in o) {
_local2 = o[_local4];
if (_local2._name.length > 0) {
setAccessibilityNone(_local2);
}
}
}
function setAccessibilityNonLeafNode(o, setChildNone) {
if (setChildNone) {
setChildAccessibilityNone(o);
}
var _local3 = new Object();
o._accProps = _local3;
o._accProps.silent = false;
o._accProps.forceSimple = false;
o._accProps.name = "";
o.tabEnabled = false;
o.tabIndex = _curTabIndex++;
o.tabChildren = true;
o.focusEnabled = false;
}
function setAccessibilityLeafNode(o, theName) {
if (o) {
setChildAccessibilityNone(o);
var _local3 = new Object();
o._accProps = _local3;
o._accProps.silent = false;
o._accProps.forceSimple = true;
o._accProps.name = theName;
o.tabChildren = false;
o.tabIndex = _curTabIndex++;
o.tabEnabled = true;
o.focusEnabled = true;
}
}
function setAccessibilityTextInput(o, theName) {
var _local4 = new Object();
o._accProps = _local4;
o._accProps.silent = false;
o._accProps.forceSimple = true;
o._accProps.name = theName;
o.tabEnabled = false;
o.tabChildren = true;
var _local3;
if (o.label != undefined) {
_local3 = o.label;
} else {
_local3 = o.m_label;
}
_local3.tabEnabled = true;
_local3.tabChildren = false;
_local3.tabIndex = _curTabIndex++;
_local3.focusEnabled = true;
}
function setAccessibilityComboBox(o, theName) {
setAccessibilityNonLeafNode(o, false);
}
function setMatchingAccessibility() {
var _local2 = null;
var _local9;
var _local5 = this;
setAccessibilityLeafNode(_local5._col1TextMC, _local5._col1TextMC._accText);
if (shuffleAnswers && (_answers[0].className == "MatchAnswer")) {
var _local4 = new Array();
for (_local9 in _answers) {
_local4.push({answer:_answers[_local9], ycord:_answers[_local9]._y});
}
_local4.sortOn("ycord", Array.NUMERIC);
}
var _local3;
var _local8;
_local8 = ((shuffleAnswers && (_answers[0].className == "MatchAnswer")) ? (_local4.length) : 9);
_local3 = 0;
while (_local3 < _local8) {
_local2 = ((shuffleAnswers && (_answers[0].className == "MatchAnswer")) ? (_local4[_local3].answer) : (_local5["drag" + _local3]));
if (_local2._name.length > 0) {
if (_local2.enabled and (_local2._choiceEntry != undefined)) {
setAccessibilityNonLeafNode(_local2, true);
setAccessibilityTextInput(_local2._choiceEntry, _local2._accText);
} else {
setAccessibilityLeafNode(_local2, _local2._accText);
setChildAccessibilityNone(_local2);
}
}
_local3++;
}
setAccessibilityLeafNode(_local5.col2TextMC, _local5.col2TextMC._accText);
_local3 = 0;
while (_local3 < 9) {
_local2 = _local5["choice" + _local3];
if (_local2._name.length > 0) {
if (_local2.className == "MatchingListAnswer") {
setAccessibilityNonLeafNode(_local2, true);
setAccessibilityComboBox(_local2._comboBox, _local2._accText);
} else {
_local2._focusrect = true;
setAccessibilityLeafNode(_local2, _local2._accText);
}
}
_local3++;
}
if (_local4) {
}
}
function setMultipleChoiceAccessibility() {
var _local3 = null;
var _local5 = this;
MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswerAccImpl.enableAccessibility();
MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswerAccImpl.enableAccessibility();
var _local4;
var _local2 = 0;
while (_local2 < _answers.length) {
_local3 = _answers[_local2];
if (_local3._name.length > 0) {
_local4 = _local5[_local3.ans_to_attach];
setAccessibilityLeafNode(_local3, _local4._accText);
}
_local2++;
}
}
function setFillInAccessibility() {
var _local2 = null;
var _local6;
mx.accessibility.ComboBoxAccImpl.enableAccessibility();
_local2 = null;
var _local5 = this;
var _local4 = _local5._completionPhraseMC;
if (_local4._name.length > 0) {
setAccessibilityLeafNode(_local4, _local4._accText);
}
var _local3 = 0;
while (_local3 < _answers.length) {
_local2 = _answers[_local3];
if (_local2._name.length > 0) {
setAccessibilityNonLeafNode(_local2, true);
if (_local2._textInput) {
setAccessibilityTextInput(_local2._textInput, _local2._textInput.text);
} else if (_local2._comboBox) {
setAccessibilityComboBox(_local2._comboBox, _local2._accText);
}
}
_local3++;
}
}
function setLikertAccessibility() {
var _local3 = null;
var _local5 = null;
var _local8 = this;
var _local7 = "";
var _local6 = 0;
while (_local6 < _answers.length) {
_local3 = _answers[_local6];
if (_local3._name.length > 0) {
setAccessibilityNonLeafNode(_local3, true);
_local7 = _local3._accText;
var _local2 = 1;
while (_local2 < 10) {
var _local4 = _local2 - 1;
_local5 = _local3["radioButton_mc" + _local2];
if (_local5 != undefined) {
if (_local4 == 0) {
setAccessibilityLeafNode(_local5, (_local7 + " ") + _local3.allAnswers[_local4]);
} else {
setAccessibilityLeafNode(_local5, _local3.allAnswers[_local4]);
}
}
_local2++;
}
}
_local6++;
}
}
function setSequenceAccessibility() {
var _local2 = null;
var _local5;
_local2 = null;
var _local4 = this;
var _local6;
var _local3 = 0;
while (_local3 < _answers.length) {
_local2 = _answers[_local3];
if (_local2._name.length > 0) {
setAccessibilityNonLeafNode(_local2, true);
if (_local2._comboBox) {
setAccessibilityComboBox(_local2._comboBox, _local2._accText);
}
}
_local3++;
}
}
function setAnswersAccessibility() {
var _local2 = questionScore;
switch (_local2.__get__interactionType()) {
case "true-false" :
case "choice" :
setMultipleChoiceAccessibility();
break;
case "likert" :
setLikertAccessibility();
break;
case "fill-in" :
case "long-fill-in" :
setFillInAccessibility();
break;
case "matching" :
setMatchingAccessibility();
break;
case "sequencing" :
setSequenceAccessibility();
}
}
static function compareButtonTabOrder(elt1, elt2) {
var _local2 = elt1.getBounds(elt1._parent);
var _local1 = elt2.getBounds(elt2._parent);
if ((_local2.ymin + 10) < _local1.ymin) {
return(-1);
}
if ((_local1.ymin + 10) < _local2.ymin) {
return(1);
}
if (_local2.xmin < _local1.xmin) {
return(-1);
}
if (_local1.xmin < _local2.xmin) {
return(1);
}
return(0);
}
function setAdvanceButtonAccessibility(o, theName) {
if (o) {
var _local3 = new Object();
o._accProps = _local3;
o._accProps.silent = false;
o._accProps.forceSimple = true;
o._accProps.name = theName;
o.tabChildren = false;
o.tabIndex = _curTabIndex++;
o.tabEnabled = true;
o.focusEnabled = true;
}
}
function setButtonsAccessibility() {
var _local5 = this;
var _local3;
mx.accessibility.ButtonAccImpl.enableAccessibility();
var _local4 = [];
if (_local5._clearbutton) {
_local4.push(_local5._clearbutton);
}
if (_local5._backbutton) {
_local4.push(_local5._backbutton);
}
if (_local5._nextbutton) {
_local4.push(_local5._nextbutton);
}
if (_local5._submitbutton) {
_local4.push(_local5._submitbutton);
}
_local4.sort(compareButtonTabOrder);
_local3 = 0;
while (_local3 < _local4.length) {
var _local2 = _local4[_local3];
if ((((_local2.className == "SubmitButton") || (_local2.className == "ClearButton")) || (_local2.className == "SkipButton")) || (_local2.className == "BackButton")) {
_local2.gotoAndPlay(5);
if (_local2.enabled) {
setAdvanceButtonAccessibility(_local2, _local2._accText);
} else {
setAccessibilityNone(_local2);
}
} else {
setAccessibilityNonLeafNode(_local2, true);
setAccessibilityLeafNode(_local2._butIcon, _local2._accText);
}
_local3++;
}
}
function setPlaybarButtonAccessibility(b) {
if (b) {
b._accProps.silent = false;
b._accProps.forceSimple = true;
b.tabIndex = _curTabIndex++;
b.focusEnabled = true;
b.tabChildren = false;
}
}
function get swfPlaybar() {
var _local2 = _parent;
var _local3 = null;
while (_local2) {
_local3 = _local2.cpPbcBar_mc.pbcBar_mc;
if (_local3 != undefined) {
return(_local3);
}
_local2 = _local2._parent;
}
return(null);
}
function get bmpPlaybar() {
var _local2 = _parent;
var _local3 = null;
while (_local2) {
_local3 = _local2.playbar_mc;
if (_local3 != undefined) {
return(_local3);
}
_local2 = _local2._parent;
}
return(null);
}
function setBmpPlaybarAccessibility() {
var _local2 = bmpPlaybar;
if (_local2) {
setAccessibilityNonLeafNode(_local2, false);
setAccessibilityNone(_local2.progressbar_mc);
setPlaybarButtonAccessibility(_local2.pbc_Rewind2);
setPlaybarButtonAccessibility(_local2.pbc_Back3);
setPlaybarButtonAccessibility(_local2.pbc_Play4);
setPlaybarButtonAccessibility(_local2.pbc_Pause5);
setPlaybarButtonAccessibility(_local2.pbc_Forward6);
setPlaybarButtonAccessibility(_local2.pbc_Exit7);
setPlaybarButtonAccessibility(_local2.pbc_Information8);
}
}
function setSwfPlaybarAccessibility() {
var _local2 = swfPlaybar;
if (_local2) {
setAccessibilityNonLeafNode(_local2._parent, false);
setAccessibilityNonLeafNode(_local2, false);
setPlaybarButtonAccessibility(_local2.pbcRewind_mc.btn_mc);
setPlaybarButtonAccessibility(_local2.pbcPlay_mc.btn_mc);
setPlaybarButtonAccessibility(_local2.pbcPause_mc.btn_mc);
setPlaybarButtonAccessibility(_local2.pbcBack_mc.btn_mc);
setPlaybarButtonAccessibility(_local2.pbcForward_mc.btn_mc);
setPlaybarButtonAccessibility(_local2.pbcAudioOff_mc.btn_mc);
setPlaybarButtonAccessibility(_local2.pbcAudioOn_mc.btn_mc);
setPlaybarButtonAccessibility(_local2.pbcCC_mc.btn_mc);
setPlaybarButtonAccessibility(_local2.pbcExit_mc.btn_mc);
setPlaybarButtonAccessibility(_local2.pbcInfo_mc.btn_mc);
}
}
function setProgressAccessibility() {
var _local2;
if (quizController.__get__playbackController().__get__currentSlideContainer().m_isRandomQuestionSlide == true) {
_local2 = _parent._progressMC;
} else {
_local2 = quizController.__get__playbackController().__get__currentSlideContainer()._progressMC;
}
if (_local2) {
setAccessibilityLeafNode(_local2, _local2.m_progressTextField.text);
}
}
function setDocAccessibility() {
var _local2 = _parent;
setChildAccessibilityNone(_local2);
var _local3 = new Object();
_local2._accProps = _local3;
_local2._accProps.silent = false;
_local2._accProps.forceSimple = false;
_local2._accProps.name = "";
_local2.tabEnabled = false;
_local2.tabChildren = true;
_local2.focusEnabled = false;
}
function answersOverridesAccessibility() {
for (var _local3 in _answers) {
var _local2 = _answers[_local3];
if ((_local2.overrideAccessibility == undefined) || (_local2.overrideAccessibility == false)) {
return(false);
}
}
return(true);
}
function setReviewFeedbackAccessibility() {
_reviewFeedback.onSetFocus = undefined;
if (_inReviewMode) {
if (((_reviewFeedback != undefined) && (_reviewFeedback != null)) && (_reviewFeedback._visible)) {
if (_reviewFeedback._correctDisplay._visible) {
setAccessibilityLeafNode(_reviewFeedback, _reviewFeedback._correctDisplay._accText);
} else if (_reviewFeedback._incorrectDisplay._visible) {
var _local2 = "";
_local2 = _local2.concat(_reviewFeedback._incorrectDisplay._accTextChosen, _reviewFeedback.__get__chosenAnswersAsString(), _reviewFeedback._incorrectDisplay._accTextCorrect, _reviewFeedback.__get__correctAnswersAsString());
setAccessibilityLeafNode(_reviewFeedback, _local2);
} else if (_reviewFeedback._incompleteDisplay._visible) {
setAccessibilityLeafNode(_reviewFeedback, _reviewFeedback._incompleteDisplay._accText);
}
}
}
}
function setContainerAccessibility() {
var _local2 = quizController.__get__playbackController().__get__currentSlideContainer().m_isRandomQuestionSlide;
if (_local2) {
setAccessibilityNonLeafNode(_parent._parent, true);
setAccessibilityNonLeafNode(_parent, true);
} else {
setAccessibilityNonLeafNode(_parent._parent, true);
setAccessibilityNonLeafNode(quizController.__get__playbackController().__get__currentSlideContainer(), true);
setDocAccessibility();
}
}
function setAccessibility() {
if (answersOverridesAccessibility()) {
return(undefined);
}
_curTabIndex = 57344;
var _local2 = this;
setContainerAccessibility();
setAccessibilityNonLeafNode(this, true);
setAccessibilityLeafNode(_local2._titleMC, _local2._titleMC._accText);
setAccessibilityLeafNode(_local2._questionTextMC, _local2._questionTextMC._accText);
setAnswersAccessibility();
setButtonsAccessibility();
setProgressAccessibility();
if ((_parent._parent.playbar_mc != undefined) || (_parent._parent._parent.playbar_mc != undefined)) {
setBmpPlaybarAccessibility();
} else {
setSwfPlaybarAccessibility();
}
setReviewFeedbackAccessibility();
Accessibility.updateProperties();
}
function setAccessibilityModal(modalText) {
_curTabIndex = 57344;
var _local2 = this;
setContainerAccessibility();
setAccessibilityNonLeafNode(this, true);
setAccessibilityLeafNode(_local2._titleMC, modalText);
setAccessibilityLeafNode(_local2._questionTextMC, modalText);
Accessibility.updateProperties();
}
function hideQuestionTextSubclips() {
var _local2 = this;
for (var _local3 in _local2._questionTextMC) {
if (typeof(_local2[_local3] == "movieclip")) {
_local2[_local3]._visible = false;
}
}
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * (max - min)) + min;
return(_local1);
}
function randomizeArray(input_array) {
var _local2;
var _local4 = input_array.length;
var _local3;
var _local5;
_local2 = 0;
while (_local2 < _local4) {
RandomAnswers_array[_local2] = input_array[_local2];
_local2++;
}
_local2 = _local4;
while (_local2 > 1) {
_local3 = randRange(0, _local2);
if (_local3 != _local2) {
_local5 = RandomAnswers_array[_local3];
RandomAnswers_array[_local3] = RandomAnswers_array[_local2 - 1];
RandomAnswers_array[_local2 - 1] = _local5;
}
_local2--;
}
}
function ShulffleAnswers(ansOrderString) {
var _local5 = this;
var _local4 = questionScore.__get__interactionType();
if (!((_local4 == "choice") || (_local4 == "sequencing"))) {
return(undefined);
}
RandomAnswers_array = new Array();
if (ansOrderString != undefined) {
RandomAnswers_array = ansOrderString.split(";");
} else {
randomizeArray(AnswersOrder_array);
}
var _local2 = 0;
for (var _local3 in _answers) {
_answers[_local3].ans_to_attach = RandomAnswers_array[_local2];
_answers[_local3].ansToAttachOnClear = RandomAnswers_array[_local2];
_local2++;
}
if (!_local5.showAsCombo) {
for (var _local3 in _answers) {
_answers[_local3].setupAnswerText();
_answers[_local3].initAnswerScore();
}
} else {
for (var _local3 in _answers) {
_answers[_local3].allAnswers = RandomAnswers_array;
_answers[_local3].setupComboText();
}
}
}
function ShulffleMatchingQuestion() {
RandomAnswers_array = new Array();
if (_answers[0].className == "MatchAnswer") {
randomizeArray(_answers);
var _local2 = new Array(9);
var _local3 = new Array(9);
for (var _local4 in _answers) {
_local2[_local4] = RandomAnswers_array[_local4]._x;
_local3[_local4] = RandomAnswers_array[_local4]._y;
}
for (var _local4 in _answers) {
_answers[_local4]._x = _local2[_local4];
_answers[_local4]._y = _local3[_local4];
}
} else {
randomizeArray(_answers[0].allAnswers);
for (var _local4 in _answers) {
_answers[_local4].allAnswers = RandomAnswers_array;
_answers[_local4].setupComboText();
}
}
delete RandomAnswers_array;
}
function ShulffleFillInQuestion() {
RandomAnswers_array = new Array();
for (var _local2 in _answers) {
if (!_answers[_local2].showChoicesAsList) {
continue;
}
RandomAnswers_array = [];
randomizeArray(_answers[_local2].allAnswers);
_answers[_local2].allAnswers = RandomAnswers_array;
_answers[_local2].setupComboText();
}
}
function DoAnswerShulffling() {
var _local3 = questionScore;
var _local2;
_local2 = _local3.interactionType;
if ((!answerShuffled) && (shuffleAnswers || (_local2 == "sequencing"))) {
switch (_local2) {
case "choice" :
case "sequencing" :
ShulffleAnswers();
break;
case "matching" :
ShulffleMatchingQuestion();
case "fill-in" :
ShulffleFillInQuestion();
}
answerShuffled = true;
}
}
function startQuestion(revMode, prevQuestionScore) {
DoAnswerShulffling();
if (isHotSpotQuestion) {
hotSpotEnterFrame();
}
if ((_state == "init") || (state == "ended")) {
_startingQuestion = true;
state = ("playing");
_inReviewMode = revMode;
if (_lastFeedbackShown) {
_lastFeedbackShown.__set__visible(false);
}
if (!_questionScore) {
_questionScore = new MMQuizzingV3.MMQuizClasses.QuestionScore();
}
_questionScore.__set__questionNumInQuiz(questionNumInQuiz);
if (prevQuestionScore) {
_numTries = prevQuestionScore.numTries;
_questionScore.__set__weighting(prevQuestionScore.weighting);
_questionScore.__set__objectiveID(prevQuestionScore.objectiveID);
_questionScore.__set__interactionID(prevQuestionScore.interactionID);
_questionScore.__set__interactionType(prevQuestionScore.interactionType);
} else {
_numTries = 0;
}
if ((timeLimitMSecs > 0) && (!_inReviewMode)) {
if (_timerBar) {
var _local7 = new Date();
_local7.setTime(timeLimitMSecs);
_timerBar.updateProgress(_local7, 1);
_timerProgressID = setInterval(function (question) {
question.updateTimerProgress();
}, 250, this);
}
_timerID = setInterval(function (question) {
question.autoJudge();
}, timeLimitMSecs, this);
}
dispatchEvent({type:"questionStarted", target:this});
_previousQuestionScore = prevQuestionScore;
if (_inReviewMode) {
if (_reviewFeedback) {
if (prevQuestionScore && (prevQuestionScore.__get__numTries() > 0)) {
_reviewFeedback.__set__correctAnswersAsString(prevQuestionScore.correctAnswersForReview);
_reviewFeedback.__set__chosenAnswersAsString(prevQuestionScore.chosenAnswersForReview);
_reviewFeedback.answeredCorrectly = prevQuestionScore.answeredCorrectly;
_reviewFeedback.answersIncomplete = prevQuestionScore.answersIncomplete;
if ((!prevQuestionScore.__get__answeredCorrectly()) and isHotSpotQuestion) {
var _local2 = 0;
while (_local2 < _answers.length) {
var _local4 = "hotspotReviewAnimation" + _local2;
this[_local4]._visible = true;
_local2++;
}
}
} else {
_reviewFeedback.answersIncomplete = true;
}
_reviewFeedback.showFeedbackAndDoAction();
}
} else if (!_previousQuestionScore) {
var _local8 = new Date();
_questionScore.__set__startTime(_local8);
}
if (!_inReviewMode) {
_reviewFeedback.__set__visible(false);
}
if (((!_inReviewMode) and isHotSpotQuestion) and (_previousQuestionScore.hotSpotNamesArrayAsString == "")) {
var _local3;
for (var _local6 in this) {
_local3 = this[_local6];
if ((typeof(_local3) == "movieclip") && (_local6.indexOf("hotSpotAnimation") == 0)) {
_local3.removeMovieClip();
}
}
_hotSpotNamesArray = [];
_hotSpotPositionsArray = [];
}
if (shuffleAnswers) {
doLater(this, "resetPreviousAnswerOrder");
}
doLater(this, "resetPreviousAnswers");
if (isHotSpotQuestion) {
doLater(this, "restoreHotSpotInfo");
}
doLater(this, "updateQuizProgressIndicator");
}
}
function pauseQuestion() {
if (_state == "playing") {
state = ("paused");
if (_timerID) {
clearInterval(_timerID);
}
if (_timerProgressID) {
clearInterval(_timerProgressID);
}
var _local2 = new Date();
_timeBeforePause = _questionScore.__get__startTime().getMilliseconds() - _local2.getMilliseconds();
questionScore.pausedMsecs = questionScore.pausedMsecs + _timeBeforePause;
timeLimitMSecs = timeLimitMSecs - _timeBeforePause;
_timeBeforePause = 0;
dispatchEvent({type:"questionPaused", target:this});
}
}
function resumeQuestion() {
if (_state == "paused") {
state = ("playing");
if ((!_inReviewMode) && (timeLimitMSecs > 0)) {
_timerID = setInterval(function (question) {
question.autoJudge();
}, timeLimitMSecs, this);
if (_timerBar) {
var _local2 = new Date();
_local2.setTime(timeLimitMSecs);
_timerBar.updateProgress(_local2, 1);
_timerProgressID = setInterval(function (question) {
question.updateTimerProgress();
}, 250, this);
}
}
dispatchEvent({type:"questionResumed", target:this});
}
}
function adjustMatchAnswersAfterShuffle() {
trace("adjustMatchAnswersAfterShuffle");
var _local3 = new Array();
for (var _local6 in _answers) {
_local3.push({answer:_answers[_local6], ycord:_answers[_local6]._y});
}
_local3.sortOn("ycord", Array.NUMERIC);
var _local2 = 0;
while (_local2 < _local3.length) {
_answers[_local2] = _local3[_local2].answer;
_local2++;
}
}
function endQuestion(wasJudged) {
if (_startingQuestion) {
return(undefined);
}
if (((_state == "playing") || (_state == "paused")) && (shuffleAnswers && (_answers[0].className == "MatchAnswer"))) {
adjustMatchAnswersAfterShuffle();
}
if ((_state == "playing") || (_state == "paused")) {
_state = "ended";
if (_timerID) {
clearInterval(_timerID);
}
if (_timerProgressID) {
clearInterval(_timerProgressID);
}
var _local6 = new Date();
_questionScore.__set__endTime(_local6);
if (numTries > 0) {
_questionScore.__set__answerScores([]);
}
for (var _local4 in _answers) {
var _local2 = _answers[_local4].answerScore.copy();
if ((_local2.__get__answerID() != undefined) && (_local2.__get__answerID().length > 0)) {
_questionScore.__get__answerScores().push(_local2);
}
}
questionScore.__set__answersIncomplete(answersIncomplete);
questionScore.__set__answeredCorrectly(answeredCorrectly);
if (wasJudged) {
questionScore.__set__wasJudged(wasJudged);
} else if (previousQuestionScore) {
questionScore.__set__wasJudged(previousQuestionScore.wasJudged);
} else {
questionScore.__set__wasJudged(false);
}
dispatchEvent({type:"questionEnded", target:this});
questionScore.__set__slideNum(slide.slideNum);
if (quizController) {
quizController.saveQuestionScore(this);
}
trace("isTracked = " + isTracked);
if ((wasJudged && (isTracked)) && (!_inReviewMode)) {
if (eachAnswerIsSeparateInteraction) {
for (var _local4 in _answers) {
var _local3 = _answers[_local4].getQuestionScore();
if (_local3) {
quizController.sendInteractionData(_local3);
}
}
} else {
quizController.sendInteractionData(quizController.getQuestionScore(questionNumInQuiz));
}
}
if (wasJudged && (quizController.__get__playbackController().__get__sendCourseDataWithInteractionData())) {
if (quizController.__get__playbackController().__get__isTracked() && (quizController.__get__playbackController().__get__preferredLMSType().toUpperCase() != "EMAIL")) {
quizController.__get__playbackController().sendCourseData(true);
} else {
quizController.__get__playbackController().sendCourseData(false);
}
}
}
}
function showFeedbackAndDoAction(feedback) {
hideLastFeedback(true);
dispatchEvent({type:"showFeedback", target:this});
_lastFeedbackShown = feedback;
feedback.showFeedbackAndDoAction();
}
function hideLastFeedback(doAction) {
dispatchEvent({type:"hideFeedback", target:_lastFeedbackShown});
if (_lastFeedbackShown) {
setAccessibility();
_lastFeedbackShown.hideFeedback(doAction);
_lastFeedbackShown = null;
}
hideHint();
}
function getFeedbackToShow(treatIncompleteAsIncorrect, showTimeoutFeedback) {
if (showTimeoutFeedback && (timeoutFeedback)) {
return(timeoutFeedback);
}
if ((answersIncomplete && (!treatIncompleteAsIncorrect)) && (incompleteFeedback)) {
return(incompleteFeedback);
}
if ((numTries < numQuestionAttemptsAllowed) && (chosenAnswerRetryFeedback)) {
return(chosenAnswerRetryFeedback);
}
if (chosenAnswerFeedback) {
return(chosenAnswerFeedback);
}
if (answeredCorrectly) {
return(correctFeedback);
}
if (retryFeedback && (numTries < numQuestionAttemptsAllowed)) {
return(retryFeedback);
}
if ((answersIncomplete && (treatIncompleteAsIncorrect)) || (numTries >= numQuestionAttemptsAllowed)) {
return(getIncorrectFeedback(_numIncorrectFeedback - 1));
}
if (numTries <= _numIncorrectFeedback) {
return(getIncorrectFeedback(numTries - 1));
}
return(null);
}
function saveAnswerOrder() {
var _local2 = 0;
var _local4;
_local4 = questionScore.interactionType;
if ((_local4 == "choice") || (_local4 == "sequencing")) {
for (var _local3 in _answers) {
if (_local2 == 0) {
_questionScore.answerOrderArrayAsString = _answers[_local3].ans_to_attach;
} else {
_questionScore.answerOrderArrayAsString = _questionScore.answerOrderArrayAsString.concat(";", _answers[_local3].ans_to_attach);
}
_local2++;
}
}
}
function restoreHotSpotInfo() {
if (_hotSpotPositionsArray.length > 0) {
return(undefined);
}
if (_previousQuestionScore && (state == "playing")) {
if (_previousQuestionScore.hotSpotNamesArrayAsString != "") {
_hotSpotNamesArray = _previousQuestionScore.hotSpotNamesArrayAsString.split(";");
}
var _local6;
var _local9;
_local6 = _previousQuestionScore.hotSpot_xchordsAsString.split(";");
_local9 = _previousQuestionScore.hotSpot_ychordsAsString.split(";");
if (_local6.length != _local9.length) {
return(undefined);
}
_hotSpotPositionsArray = [];
var _local4 = 0;
while (_local4 < _local6.length) {
_hotSpotPositionsArray.push({xcord:_local6[_local4], ycord:_local9[_local4]});
_local4++;
}
}
var _local4 = 0;
while (_local4 < _hotSpotNamesArray.length) {
var _local2 = this;
var _local5 = ("hotSpotAnimation" + _local2.commonQuestionCounter) + getNextHighestDepth();
var _local3;
if (_local2.isLinked) {
_local3 = createEmptyMovieClip(_local5, getNextHighestDepth());
_local3.loadMovie(getLoadBase() + _local2.animationName);
} else {
_local3 = attachMovie(_local2.animationName, _local5, getNextHighestDepth());
}
_local3._x = _hotSpotPositionsArray[_local4].xcord - (_local2.animWidth / 2);
_local3._y = _hotSpotPositionsArray[_local4].ycord - (_local2.animHeight / 2);
_local4++;
}
}
function saveHotSpotInfo() {
var _local2 = 0;
var _local5;
_local5 = questionScore.interactionType;
_local2 = 0;
while (_local2 < _hotSpotPositionsArray.length) {
var _local3;
var _local4;
if (_local2 == 0) {
_questionScore.hotSpotNamesArrayAsString = _hotSpotNamesArray[_local2];
_local3 = _hotSpotPositionsArray[_local2].xcord.toString();
_local4 = _hotSpotPositionsArray[_local2].ycord.toString();
_questionScore.hotSpot_xchordsAsString = _local3;
_questionScore.hotSpot_ychordsAsString = _local4;
} else {
_questionScore.hotSpotNamesArrayAsString = _questionScore.hotSpotNamesArrayAsString.concat(";", _hotSpotNamesArray[_local2]);
_local3 = _hotSpotPositionsArray[_local2].xcord.toString();
_local4 = _hotSpotPositionsArray[_local2].ycord.toString();
_questionScore.hotSpot_xchordsAsString = _questionScore.hotSpot_xchordsAsString.concat(";", _local3);
_questionScore.hotSpot_ychordsAsString = _questionScore.hotSpot_ychordsAsString.concat(";", _local4);
}
_local2++;
}
}
function judge(treatIncompleteAsIncorrect, showTimeoutFeedback) {
saveAnswerOrder();
if (isHotSpotQuestion) {
saveHotSpotInfo();
}
hideLastFeedback(false);
if (isSurvey) {
if (answersIncomplete) {
if (incompleteFeedback) {
showFeedbackAndDoAction(incompleteFeedback);
} else if (surveyFeedback) {
showFeedbackAndDoAction(surveyFeedback);
} else {
quizController.doDefaultAction(this);
}
} else {
numTries = (numTries + 1);
endQuestion(true);
if (chosenAnswerFeedback) {
showFeedbackAndDoAction(chosenAnswerFeedback);
} else if (surveyFeedback) {
showFeedbackAndDoAction(surveyFeedback);
} else {
quizController.doDefaultAction(this);
}
}
} else if (numTries < _numQuestionAttemptsAllowed) {
dispatchEvent({type:"judge", target:this});
if ((answersIncomplete && (!treatIncompleteAsIncorrect)) && (incompleteFeedback)) {
showFeedbackAndDoAction(incompleteFeedback);
} else {
numTries = (numTries + 1);
if ((numTries >= numQuestionAttemptsAllowed) || (answeredCorrectly)) {
endQuestion(true);
}
var _local2 = getFeedbackToShow(treatIncompleteAsIncorrect, showTimeoutFeedback);
if (_local2) {
showFeedbackAndDoAction(_local2);
} else if (quizController) {
quizController.doDefaultAction(this);
}
}
}
}
function registerIncorrectFeedback(index, f) {
if (index < _numIncorrectFeedback) {
_incorrectFeedback[index] = f;
}
}
function registerAnswer(ans) {
_answers.push(ans);
}
function registerSubmitButton(theButton) {
_submitbutton = theButton;
}
function registerClearButton(theButton) {
_clearbutton = theButton;
}
function clearAnswers() {
if (numTries < _numQuestionAttemptsAllowed) {
for (var _local2 in _answers) {
_answers[_local2].clearAnswer();
}
}
_hotSpotNamesArray.splice(0, _hotSpotNamesArray.length);
}
function leaveSlide() {
_visible = false;
dispatchEvent({type:"leaveSlide", target:this});
}
function get playSoundFunc() {
var _local2 = this;
while (_local2) {
if (_local2.g_playSoundFile) {
return(_local2.g_playSoundFile);
}
_local2 = _local2._parent;
}
return(null);
}
function playAudioID(id, callback) {
var _local2 = playSoundFunc;
if (_local2) {
return(_local2(id, callback));
}
if (callback) {
callback();
}
}
function setRandomQuestionData(rqObjectiveID, rqIsTracked, rqWeighting) {
questionScore.__set__objectiveID(rqObjectiveID);
questionScore.__set__weighting(rqWeighting);
isTracked = rqIsTracked;
}
function Submit(bOk) {
var _local2 = this;
if (((((_submitbutton != undefined) and _submitbutton.hitTest(_xmouse, _ymouse)) or ((_clearbutton != undefined) and _clearbutton.hitTest(_xmouse, _ymouse))) or ((_local2._backbutton != undefined) and _local2._backbutton.hitTest(_xmouse, _ymouse))) or ((_local2._nextbutton != undefined) and _local2._nextbutton.hitTest(_xmouse, _ymouse))) {
return(undefined);
}
if (((state == "playing") and (_submitbutton != undefined)) and _submitbutton.enabled) {
showOrHideHotSpot(_xmouse, _ymouse);
}
}
function getLoadBase() {
if (__loadbase == undefined) {
var _local2 = _url.indexOf("?");
if (_local2 > 0) {
__loadbase = _url.substring(0, Math.max(_url.lastIndexOf("/", _local2), _url.lastIndexOf("\\", _local2)) + 1);
} else {
__loadbase = _url.substring(0, Math.max(_url.lastIndexOf("/"), _url.lastIndexOf("\\")) + 1);
}
}
return(__loadbase);
}
function showOrHideHotSpot(hotspotX, hotspotY) {
var _local7 = this;
if ((_submitbutton != undefined) and (!_submitbutton.enabled)) {
return(undefined);
}
var _local2 = 0;
while (_local2 < _hotSpotNamesArray.length) {
var _local6 = this[_hotSpotNamesArray[_local2]];
var _local3 = _local6.getBounds(_level0);
if (((hotspotX >= _local3.xMin) && (hotspotX <= _local3.xMax)) && ((hotspotY >= _local3.yMin) && (hotspotY <= _local3.yMax))) {
var _local10 = this[_hotSpotNamesArray[_local2]];
_local10.removeMovieClip();
_hotSpotNamesArray.splice(_local2, 1);
_hotSpotPositionsArray.splice(_local2, 1);
for (var _local9 in _answers) {
if (_answers[_local9].hitTest(hotspotX, hotspotY)) {
_answers[_local9].answerScore.chosenAnswer = "0";
}
}
return(undefined);
}
_local2++;
}
var _local8 = false;
for (var _local9 in _answers) {
if (_answers[_local9].hitTest(hotspotX, hotspotY)) {
_answers[_local9].answerScore.chosenAnswer = "1";
_local8 = true;
}
}
if (_local7.clickOnlyOnHotSpots and (!_local8)) {
return(undefined);
}
var _local11 = ("hotSpotAnimation" + _local7.commonQuestionCounter) + getNextHighestDepth();
if (_local7.isLinked) {
var _local10 = createEmptyMovieClip(_local11, getNextHighestDepth());
_local10.loadMovie(getLoadBase() + _local7.animationName);
} else {
var _local10 = attachMovie(_local7.animationName, _local11, getNextHighestDepth());
}
_local10._x = hotspotX - (_local7.animWidth / 2);
_local10._y = hotspotY - (_local7.animHeight / 2);
if (_hotSpotNamesArray.length == 0) {
_hotSpotPositionsArray.splice(0, _hotSpotPositionsArray.length);
}
_hotSpotNamesArray.push(_local11);
_hotSpotPositionsArray.push({xcord:hotspotX, ycord:hotspotY});
}
function get SlideReference() {
var _local2 = _parent;
return(_local2);
}
function hotSpotEnterFrame() {
if ((m_Qslide == null) || (m_Movie == null)) {
m_Qslide = SlideReference;
if (m_Qslide.className == "rdQSlide") {
m_Movie = m_Qslide._parent.movie;
} else if (m_Qslide._parent._parent.movie != undefined) {
m_Movie = m_Qslide._parent._parent.movie;
}
}
var _local2 = m_Movie;
if ((!m_Qslide._visible) && (_visible)) {
_visible = m_Qslide._visible;
if (_visible && (!inReviewMode)) {
_local2.m_clickHandler_mc.SpriteLoaded(this);
}
return(undefined);
}
if (!m_Qslide._visible) {
return(undefined);
}
if (!_visible) {
_visible = m_Qslide._visible;
if (_visible && (!inReviewMode)) {
_local2.m_clickHandler_mc.SpriteLoaded(this);
}
}
if (_visible && (inReviewMode)) {
_local2.m_clickHandler_mc.SpriteUnloaded(this);
}
}
function onLoad() {
if (isHotSpotQuestion) {
onEnterFrame = hotSpotEnterFrame;
}
}
static var symbolName = "Question";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.Question);
var className = "Question";
var isTracked = true;
var isSurvey = false;
var useHint = false;
var questionText = "";
var timeLimitMSecs = 0;
var mustAnswerAll = false;
var _numQuestionAttemptsAllowed = 1;
var _lastFeedbackShown = null;
var _timeBeforePause = 0;
var _correctFeedback = null;
var _numIncorrectFeedback = 0;
var _incompleteFeedback = null;
var _retryFeedback = null;
var _surveyFeedback = null;
var _timeoutFeedback = null;
var _hint = null;
var _reviewFeedback = null;
var _timerBar = null;
var _slide = null;
var _questionNumInQuiz = -1;
var _quizController = null;
var _previousQuestionScore = null;
var _inReviewMode = false;
var _eachAnswerIsSeparateInteraction = false;
var _numTries = 0;
var _curTabIndex = 57344;
var _startingQuestion = false;
var answerShuffled = false;
var max_y = Number.MIN_VALUE;
var min_y = Number.MAX_VALUE;
var shiftAnsOrder_array = new Array();
var temp_array = new Array();
var CurrentAnsOrder_array = new Array();
var isHotSpotQuestion = false;
var m_isRegistered = false;
var m_Movie = null;
var isConstructed = false;
var __loadbase = undefined;
}
Symbol 103 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.Feedback] Frame 0
class MMQuizzingV3.MMQuizClasses.Feedback extends mx.core.UIComponent
{
var _parent, _accText, __set__visible, focusEnabled, tabEnabled, hitArea_mc, createEmptyObject, getBounds, _width, _height, dispatchEvent, _name, __get__visible, doLater, hitTest, addEventListener, createObject, removeEventListener;
function Feedback () {
super();
}
function get question() {
var _local2 = _parent;
while (_local2) {
if (_local2.className == "Question") {
return(MMQuizzingV3.MMQuizClasses.Question(_local2));
}
if ((_local2._question.className = "Question")) {
return(MMQuizzingV3.MMQuizClasses.Question(_local2._question));
}
_local2 = _local2._parent;
}
return(null);
}
function get playbackController() {
if (question && (question.__get__quizController())) {
return(question.__get__quizController().__get__playbackController());
}
return(null);
}
function get onlyDoAction() {
if ((question && (question.isSurvey)) || (_accText == "")) {
return(true);
}
return(_onlyDoAction);
}
function set onlyDoAction(doAction) {
_onlyDoAction = doAction;
//return(onlyDoAction);
}
function init() {
super.init();
__set__visible(false);
focusEnabled = true;
tabEnabled = false;
setHitArea();
}
function size(Void) {
super.size();
}
function setHitArea() {
if (hitArea_mc == undefined) {
if (typeof(mx.core.UIObject.safeCreateEmptyObject) == "function") {
mx.core.UIObject.safeCreateEmptyObject(this, "hitArea_mc", 100);
} else {
createEmptyObject("hitArea_mc", 100);
}
}
var _local3 = getBounds(this);
var _local2 = hitArea_mc;
_local2.clear();
_local2._x = _local3.xMin;
_local2._y = _local3.yMin;
_local2.beginFill(16777215);
_local2.drawRect(0, 0, _width, _height);
_local2.endFill();
_local2._alpha = 0;
_local2.setVisible(true);
}
function doAction() {
if (actionType != "") {
question.__get__quizController().doAction(actionType, actionArg1, actionArg2);
}
}
function playAudio(callback) {
var _local2 = question;
if (_local2) {
return(_local2.playAudioID(String(audioClipID), callback));
}
}
static function createDelegate(p_obj, p_func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = p_obj;
_local2.func = p_func;
return(_local2);
}
function showFeedbackAndDoAction() {
if (onlyDoAction) {
Selection.setFocus(null);
playAudio(createDelegate(this, doAction));
} else {
playAudio(null);
dispatchEvent({type:"feedbackStarted", target:this});
__set__visible(true);
Selection.setFocus(null);
if (isModal && ((actionType != "") || (_name == "_incompleteFeedback"))) {
showModally();
}
setAccessibility();
}
}
function hideFeedback(doAction) {
if (__get__visible()) {
dispatchEvent({type:"feedbackFinished", target:this});
__set__visible(false);
if (isModal) {
hideModally();
}
if (doAction) {
doLater(this, "doAction");
}
}
}
function onPress() {
super.onPress();
if (((__get__visible() && (isModal)) && (question.__get__lastFeedbackShown() == this)) && ((modalDismissClick == "anywhere") || (modalDismissClick == "onSelf"))) {
question.hideLastFeedback(true);
}
}
function mouseDownOutside(eventObject) {
if (((__get__visible() && (isModal)) && (question.__get__lastFeedbackShown() == this)) && (modalDismissClick == "anywhere")) {
question.hideLastFeedback(true);
}
}
function onMouseDown(Void) {
super.onMouseDown;
if ((question.__get__showingModalFeedback() && (question.__get__lastFeedbackShown() == this)) && (hitTest(_root._xmouse, _root._ymouse, false))) {
onPress();
}
}
function setAccessibility() {
var _local2 = this;
question.setAccessibilityModal(_accText);
}
function showModally() {
Selection.setFocus(null);
var _local6;
_local6 = modalDismissClick == "anywhere";
if (_local6) {
addEventListener("mouseDownOutside", this);
}
if (mx.managers.PopUpManager.mixins == undefined) {
mx.managers.PopUpManager.mixins = new mx.managers.PopUpManager();
}
var _local3;
_local3 = this;
_local3.setDepthTo(mx.managers.DepthManager.kTopmost);
_local3.popUp = true;
var _local5 = playbackController.__get__currentSlideContainer();
var _local4 = null;
if (_local5.m_isRandomQuestionSlide == true) {
_local4 = _local5.m_qSlide_mc;
} else {
_local4 = _local5;
}
if ((_local4 != null) && (_local4 != undefined)) {
_modalParentMC = _local4;
} else {
return(undefined);
}
if (_root.focusManager != undefined) {
createObject(mx.managers.FocusManager.symbolName, "focusManager", -1);
}
mx.managers.PopUpManager.createModalWindow(_modalParentMC, this, _local6);
Key.addListener(this);
Selection.setFocus(null);
_local3 = this;
if (_local3.modalWindow != undefined) {
_local3.modalWindow.useHandCursor = true;
_local3.modalWindow._x = _modalParentMC._x;
_local3.modalWindow._y = _modalParentMC._y;
_local3.modalWindow._width = _modalParentMC._width;
_local3.modalWindow._height = _modalParentMC._height;
}
}
function onKeyDown(eventObject) {
var _local2 = Key.getCode();
if (_name == "_incompleteFeedback") {
if (_local2 == 32) {
onPress();
Key.removeListener(this);
}
return(undefined);
}
if ((Key.getCode() == 32) || (Key.getCode() == 13)) {
onPress();
Key.removeListener(this);
}
}
function hideModally() {
var _local2 = this;
if (_local2.modalWindow != undefined) {
if (typeof(mx.core.UIObject.safeDestroyObject) == "function") {
mx.core.UIObject.safeDestroyObject(_modalParentMC, _local2.modalWindow._name);
} else {
_modalParentMC.destroyObject(_local2.modalWindow._name);
}
}
__set__visible(false);
if (modalDismissClick == "anywhere") {
removeEventListener("mouseDownOutside", this);
}
Selection.setFocus(null);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
static var symbolName = "Feedback";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.Feedback);
var className = "Feedback";
var isModal = true;
var _onlyDoAction = false;
var actionType = "default";
var actionArg1 = "";
var actionArg2 = "";
var audioClipID = "";
var _modalParentMC = null;
var modalDismissClick = "anywhere";
}
Symbol 104 MovieClip [__Packages.mx.managers.PopUpManager] Frame 0
class mx.managers.PopUpManager
{
var popUp, setSize, move, modalWindow, _parent, _name, _visible, owner;
function PopUpManager () {
}
static function createModalWindow(parent, o, broadcastOutsideEvents) {
var _local2 = parent.createChildAtDepth("Modal", mx.managers.DepthManager.kTopmost);
_local2.setDepthBelow(o);
o.modalID = _local2._name;
_local2._alpha = _global.style.modalTransparency;
_local2.tabEnabled = false;
if (broadcastOutsideEvents) {
_local2.onPress = mixins.onPress;
} else {
_local2.onPress = mixins.nullFunction;
}
_local2.onRelease = mixins.nullFunction;
_local2.resize = mixins.resize;
mx.managers.SystemManager.init();
mx.managers.SystemManager.addEventListener("resize", _local2);
_local2.resize();
_local2.useHandCursor = false;
_local2.popUp = o;
o.modalWindow = _local2;
o.deletePopUp = mixins.deletePopUp;
o.setVisible = mixins.setVisible;
o.getVisible = mixins.getVisible;
o.addProperty("visible", o.getVisible, o.setVisible);
}
static function createPopUp(parent, className, modal, initobj, broadcastOutsideEvents) {
if (mixins == undefined) {
mixins = new mx.managers.PopUpManager();
}
if (broadcastOutsideEvents == undefined) {
broadcastOutsideEvents = false;
}
var _local5 = parent._root;
if (_local5 == undefined) {
_local5 = _root;
}
while (parent != _local5) {
parent = parent._parent;
}
initobj.popUp = true;
var _local4 = parent.createClassChildAtDepth(className, ((broadcastOutsideEvents || (modal)) ? (mx.managers.DepthManager.kTopmost) : (mx.managers.DepthManager.kTop)), initobj);
var _local2 = _root;
var _local6 = _local2.focusManager != undefined;
while (_local2._parent != undefined) {
_local2 = _local2._parent._root;
if (_local2.focusManager != undefined) {
_local6 = true;
break;
}
}
if (_local6) {
_local4.createObject("FocusManager", "focusManager", -1);
if (_local4._visible == false) {
mx.managers.SystemManager.deactivate(_local4);
}
}
if (modal) {
createModalWindow(parent, _local4, broadcastOutsideEvents);
} else {
if (broadcastOutsideEvents) {
_local4.mouseListener = new Object();
_local4.mouseListener.owner = _local4;
_local4.mouseListener.onMouseDown = mixins.onMouseDown;
Mouse.addListener(_local4.mouseListener);
}
_local4.deletePopUp = mixins.deletePopUp;
}
return(_local4);
}
function onPress(Void) {
var _local3 = popUp._root;
if (_local3 == undefined) {
_local3 = _root;
}
if (popUp.hitTest(_local3._xmouse, _local3._ymouse, false)) {
return(undefined);
}
popUp.dispatchEvent({type:"mouseDownOutside"});
}
function nullFunction(Void) {
}
function resize(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
setSize(_local2.width, _local2.height);
move(_local2.x, _local2.y);
}
function deletePopUp(Void) {
if (modalWindow != undefined) {
_parent.destroyObject(modalWindow._name);
}
_parent.destroyObject(_name);
}
function setVisible(v, noEvent) {
super.setVisible(v, noEvent);
modalWindow._visible = v;
}
function getVisible(Void) {
return(_visible);
}
function onMouseDown(Void) {
var _local3 = owner._root;
if (_local3 == undefined) {
_local3 = _root;
}
var _local4 = new Object();
_local4.x = _local3._xmouse;
_local4.y = _local3._ymouse;
_local3.localToGlobal(_local4);
if (owner.hitTest(_local4.x, _local4.y, false)) {
} else {
owner.mouseDownOutsideHandler(owner);
}
}
static var version = "2.0.2.126";
static var mixins = undefined;
}
Symbol 105 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 106 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 107 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 108 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = mx.controls.SimpleButton(_local2);
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 109 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.Hint] Frame 0
class MMQuizzingV3.MMQuizClasses.Hint extends MMQuizzingV3.MMQuizClasses.Feedback
{
var useHandCursor, isModal;
function Hint () {
super();
}
function init() {
useHandCursor = false;
isModal = false;
super.init();
}
function size(Void) {
super.size();
}
static var symbolName = "Hint";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.Hint);
var className = "Hint";
}
Symbol 110 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.ReviewFeedback] Frame 0
class MMQuizzingV3.MMQuizClasses.ReviewFeedback extends MMQuizzingV3.MMQuizClasses.Feedback
{
var _incorrectDisplay, _correctDisplay, _incompleteDisplay, __get__question, dispatchEvent, __set__visible, doLater, useHandCursor, isModal;
function ReviewFeedback () {
super();
}
function set fontSize(fs) {
if (fs < 8) {
_fontSize = 8;
} else {
_fontSize = fs;
}
//return(fontSize);
}
function get fontSize() {
return(_fontSize);
}
function set correctAnswersAsString(theAnswers) {
_correctAnswersAsString = theAnswers;
if (_incorrectDisplay._correctTextArea) {
_incorrectDisplay._correctTextArea.text = theAnswers;
}
//return(correctAnswersAsString);
}
function get correctAnswersAsString() {
return(_correctAnswersAsString);
}
function set chosenAnswersAsString(theAnswers) {
_chosenAnswersAsString = theAnswers;
if (_incorrectDisplay._chosenTextArea) {
_incorrectDisplay._chosenTextArea.text = theAnswers;
}
//return(chosenAnswersAsString);
}
function get chosenAnswersAsString() {
return(_chosenAnswersAsString);
}
function setCorrectDisplay() {
if (answersIncomplete) {
_correctDisplay._visible = false;
_incorrectDisplay._visible = false;
_incompleteDisplay._visible = true;
} else if (__get__question() && (__get__question().isSurvey)) {
_correctDisplay._visible = false;
_incorrectDisplay._visible = false;
_incompleteDisplay._visible = false;
} else if (answeredCorrectly) {
_correctDisplay._visible = true;
_incorrectDisplay._visible = false;
_incompleteDisplay._visible = false;
} else {
_correctDisplay._visible = false;
_incorrectDisplay._visible = true;
_incompleteDisplay._visible = false;
}
_incorrectDisplay._correctTextArea.setStyle("fontFamily", fontFamily);
_incorrectDisplay._correctTextArea.setStyle("fontSize", fontSize);
_incorrectDisplay._chosenTextArea.setStyle("fontFamily", fontFamily);
_incorrectDisplay._chosenTextArea.setStyle("fontSize", fontSize);
if (__get__question().__get__inReviewMode()) {
__get__question().setAccessibility();
}
}
function setAccessibility() {
}
function showFeedbackAndDoAction() {
dispatchEvent({type:"feedbackStarted", target:this});
__set__visible(true);
doLater(this, "setCorrectDisplay");
}
function init() {
super.init();
useHandCursor = false;
isModal = false;
_correctDisplay._visible = false;
_incorrectDisplay._visible = false;
_incompleteDisplay._visible = false;
}
var _correctAnswersAsString = "";
var _chosenAnswersAsString = "";
var answeredCorrectly = false;
var answersIncomplete = true;
var _fontSize = 18;
var fontFamily = "_sans";
}
Symbol 111 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.TimerBar] Frame 0
class MMQuizzingV3.MMQuizClasses.TimerBar extends mx.core.UIComponent
{
var _label, _bar;
function TimerBar () {
super();
}
function formatTime(nNumber) {
var _local1 = "00" + nNumber;
return(_local1.substr(-2));
}
function updateProgress(timeToDisplay, fractionRemaining) {
var _local3 = timeToDisplay.getSeconds();
var _local4 = timeToDisplay.getMinutes();
var _local2 = "";
_local2 = _local2.concat(formatTime(_local4), ":", formatTime(_local3));
_label.__set__text(_local2);
_bar._x = -(fractionRemaining * _bar._width);
}
function init() {
super.init();
}
static var symbolName = "TimerBar";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.TimerBar);
var className = "TimerBar";
}
Symbol 112 MovieClip [__Packages.mx.controls.Label] Frame 0
class mx.controls.Label extends mx.core.UIObject
{
var _xscale, _yscale, labelField, tabEnabled, tabChildren, useHandCursor, _color, initText, __autoSize, _getTextFormat, __width, setSize, _x, __height, getStyle;
function Label () {
super();
}
function init(Void) {
super.init();
_xscale = (_yscale = 100);
labelField.selectable = false;
labelField.styleName = this;
tabEnabled = false;
tabChildren = false;
useHandCursor = false;
_color = mx.core.UIObject.textColorList;
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(labelField.html);
}
function setHtml(value) {
if (value != labelField.html) {
labelField.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
var _local2 = labelField;
if (_local2.html == true) {
return(_local2.htmlText);
}
return(_local2.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = labelField;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
adjustForAutoSize();
}
}
function get autoSize() {
return(__autoSize);
}
function set autoSize(v) {
if (_global.isLivePreview == true) {
v = "none";
}
__autoSize = v;
if (!initializing) {
draw();
}
//return(autoSize);
}
function draw(Void) {
var _local2 = labelField;
if (initializing) {
var _local4 = text;
initializing = false;
setText(_local4);
delete initText;
}
if (_local2.html) {
var _local4 = _local2.htmlText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
if (_local2.html) {
_local2.htmlText = _local4;
}
adjustForAutoSize();
}
function adjustForAutoSize() {
var _local2 = labelField;
var _local3 = __autoSize;
if ((_local3 != undefined) && (_local3 != "none")) {
_local2._height = _local2.textHeight + 3;
var _local4 = __width;
setSize(_local2.textWidth + 4, _local2._height);
if (_local3 == "right") {
_x = _x + (_local4 - __width);
} else if (_local3 == "center") {
_x = _x + ((_local4 - __width) / 2);
} else if (_local3 == "left") {
_x = _x + 0;
}
} else {
_local2._x = 0;
_local2._width = __width;
_local2._height = __height;
}
}
function size(Void) {
var _local2 = labelField;
_local2._width = __width;
_local2._height = __height;
}
function setEnabled(enable) {
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
labelField.textColor = col;
}
function get styleSheet() {
return(labelField.styleSheet);
}
function set styleSheet(v) {
labelField.styleSheet = v;
//return(styleSheet);
}
static var symbolName = "Label";
static var symbolOwner = Object(mx.controls.Label);
var className = "Label";
static var version = "2.0.2.126";
var initializing = true;
var clipParameters = {text:1, html:1, autoSize:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Label.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 113 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.QuestionButton] Frame 0
class MMQuizzingV3.MMQuizClasses.QuestionButton extends captivate.monalisa.rdItem
{
var m_mustBeReady, myListener, _parent, pThis, gotoAndPlay, enabled, _visible;
function QuestionButton () {
super();
m_mustBeReady = false;
myListener = new Object();
myListener.pThis = this;
myListener.onKeyDown = CheckKeyDown;
}
function onLoad() {
m_Qslide = SlideReference;
super.onLoad();
}
function get MovieReference() {
if (m_Qslide.className == "rdQSlide") {
return(m_Qslide._parent.movie);
}
return(m_Qslide._parent._parent.movie);
}
function get SlideReference() {
var _local2 = _parent;
if (_local2.className == "rdQSlide") {
return(captivate.monalisa.rdQSlide(_local2));
}
if (_local2._parent.className == "rdQSlide") {
return(captivate.monalisa.rdQSlide(_local2._parent));
}
if (_local2._parent.className == "rdQPSlide") {
return(_local2._parent);
}
return(null);
}
function onKillFocus(newFocus) {
Key.removeListener(myListener);
}
function onSetFocus(oldFocus) {
Key.addListener(myListener);
}
function CheckKeyDown() {
var _local2;
_local2 = Key.getCode();
if ((_local2 == 32) || (_local2 == 13)) {
pThis.doRelease();
}
}
function doRelease(Void) {
}
function onPress() {
DoCheck();
}
function onRelease() {
DoCheck();
}
function onReleaseOutside() {
m_isInside = false;
DoCheck();
}
function DoCheck() {
if (IsMouseInside()) {
if (m_Movie.m_clickHandler_mc.IsMouseDown()) {
gotoAndPlay(15);
} else {
gotoAndPlay(10);
}
} else {
gotoAndPlay(5);
}
}
function onRollOver() {
m_isInside = true;
DoCheck();
super.onRollOver();
}
function onRollOut() {
m_isInside = false;
DoCheck();
super.onRollOut();
}
function IsMouseInside() {
if (m_isInside) {
return(true);
}
return(false);
}
function get question() {
var _local2 = _parent;
while (_local2) {
if (_local2.className == "Question") {
return(MMQuizzingV3.MMQuizClasses.Question(_local2));
}
if (_local2._question.className == "Question") {
return(MMQuizzingV3.MMQuizClasses.Question(_local2._question));
}
_local2 = _local2._parent;
}
return(null);
}
function SetEnabled() {
if (question.__get__inReviewMode() && (hideButtonInReview)) {
enabled = false;
} else {
enabled = true;
}
}
function SetVisible(setVisible) {
_visible = setVisible;
if (setVisible && ((!_parent.inReviewMode) || (!hideButtonInReview))) {
m_Movie.m_keyHandler.SpriteLoaded(this);
}
}
function onEnterFrame() {
if ((m_Qslide == null) || (m_Qslide == undefined)) {
m_Qslide = SlideReference;
}
if ((m_Movie == null) || (m_Movie == undefined)) {
m_Movie = MovieReference;
}
var _local2 = m_Qslide.isSlideActive(true);
if ((!_local2) && (_visible)) {
SetVisible(false);
return(undefined);
}
if (!_local2) {
return(undefined);
}
if (!_visible) {
SetVisible(m_Qslide._visible);
SetEnabled();
}
if (hideButtonInReview && (question.__get__inReviewMode())) {
enabled = false;
m_Movie.m_keyHandler.SpriteUnloaded(this);
}
}
var m_isInside = false;
var hideButtonInReview = true;
var m_Qslide = null;
var allowmouseclick = false;
var m_Movie = null;
}
Symbol 114 MovieClip [__Packages.captivate.monalisa.rdQSlide] Frame 0
class captivate.monalisa.rdQSlide extends captivate.monalisa.rdSlide
{
var m_isQuizSlide, isSlideActive, _currentframe, _name, m_movie, _question, m_isPlaying, gotoAndStop, AddNoSkipFrame, transitInStarted, _parent, playOnFrame, transitInDur, transitInObj, transitInPaused, _visible, transitType, transitOutStarted, transitOutBetween, transitOutDur, stopOnFrame, transitOutObj, transitOutType, transitOutPaused;
function rdQSlide () {
super();
myTrace("rdQSlide -----");
m_isQuizSlide = true;
return;
}
function showSlide() {
myTrace("1111 showSlide");
_progressMC.setProgressText(m_currentQuesNumber, m_totalQuestions);
super.showSlide();
}
function onEnterFrame() {
if (!isSlideActive()) {
return(undefined);
}
applyTransition();
if (m_submitOnFrame == _currentframe) {
if (m_quizPaused == false) {
myTrace("4444 onEnterFrame");
var _local2;
var _local4 = _name;
var _local3 = parseInt(_local4.substr(5));
_local2 = m_movie.m_quizPlaybackController.getSlide(_local3);
var _local5 = m_movie.m_quizPlaybackController.quizControllerForSlide(_local2);
_local5.startQuestion(_question);
m_quizPaused = true;
pauseSlide();
}
} else if ((_currentframe < m_submitOnFrame) && (m_quizPaused)) {
myTrace("5555 onEnterFrame");
m_quizPaused = false;
}
}
function submit(question) {
myTrace("6666 submit");
m_attempts = question.numTries;
m_objectiveId = question.__get__questionScore().objectiveID;
m_interactionId = question.__get__questionScore().interactionID;
m_interactionType = question.__get__questionScore().interactionType;
m_correctResponse = question.__get__questionScore().correctAnswersAsString;
m_chosenResponse = question.__get__questionScore().chosenAnswersAsString;
m_weighting = question.__get__questionScore().weighting;
m_correct = question.__get__questionScore().answeredCorrectly;
m_attemptsAllowed = question.numQuestionAttemptsAllowed;
if (m_correct == true) {
succeeded(this);
} else if (m_attempts >= m_attemptsAllowed) {
failed(this);
}
}
function hideSlide() {
myTrace("7777 hideSlide");
super.hideSlide();
}
function isPlaying() {
return(m_isPlaying);
}
function rewindSlide() {
myTrace("8888 rewindSlide");
gotoAndStop(1);
}
function startSlide() {
myTrace("9999 startSlide m_isPlaying = " + m_isPlaying);
super.startSlide();
}
function gotoFrame(frame, playSlide) {
myTrace("111111 gotoFrame frame = " + frame);
super.gotoFrame(frame, playSlide);
}
function slideCompleted() {
myTrace("121212 slideCompleted");
super.slideCompleted();
}
function pauseSlide() {
myTrace("131313 pauseSlide");
super.pauseSlide();
}
function playerPauseSlide() {
myTrace("141414 playerPauseSlide");
super.playerPauseSlide();
}
function playerResumeSlide() {
myTrace("151515 playerResumeSlide");
super.playerResumeSlide();
}
function resumeSlide() {
myTrace("161616 resumeSlide");
var _local4;
var _local6 = _name;
var _local5 = parseInt(_local6.substr(5));
_local4 = m_movie.m_quizPlaybackController.getSlide(_local5);
var _local7 = m_movie.m_quizPlaybackController.quizControllerForSlide(_local4);
var _local3 = _local7.slideAfter(_local4);
if ((_local3 && (_local3.__get__slideNum() != (_local5 + 1))) && (_local3.__get__slideNum() != _local5)) {
m_movie.m_quizPlaybackController.gotoNextSlide();
} else if (m_movie.m_quizPlaybackController.allowedToGoToSlide(_local4, (_local3 ? (_local3) : (_local4))) == "") {
super.resumeSlide();
}
}
function Initialize() {
AddNoSkipFrame(m_submitOnFrame);
}
function previousSlide() {
myTrace("171717 previousSlide");
m_movie.m_quizPlaybackController.gotoPrevSlide();
}
function nextSlide() {
if ((m_movie.m_currSlideIndex + 1) >= m_movie.m_slideData_array.length) {
myTrace("nextSlide playerResumeMovie");
m_movie.playerResumeMovie();
} else {
myTrace("nextSlide gotoNextSlide");
m_movie.m_quizPlaybackController.gotoNextSlide();
}
}
function reviewAnswers() {
m_movie.m_quizPlaybackController.reviewAnswersForCurrentQuiz();
}
function sendEmail() {
m_movie.m_quizPlaybackController.sendEmailResults();
}
function g_playSoundFile(id, callback) {
if (callback) {
callback();
}
return(true);
}
function myTrace(str) {
}
function applyTransition() {
var _local4;
if (transitInStarted && (_parent.movie.m_paused)) {
var _local3;
_local3 = (_parent.movie.m_currFrame - playOnFrame) / _parent.movie.m_fps;
if ((_local3 < transitInDur) && (_local3 > 0)) {
transitInObj.setPosition(_local3);
}
}
if (((_parent.movie.m_currFrame > (playOnFrame + ((_parent.movie.m_fps * transitInDur) / 1000))) || (_parent.movie.m_currFrame < playOnFrame)) && (transitInStarted)) {
transitInStarted = false;
if (transitInObj.progress < 1) {
transitInObj.fforward();
transitInObj.cleanUp();
transitInPaused = null;
}
if (_parent.movie.m_currFrame < playOnFrame) {
_visible = false;
}
}
if (transitInStarted == false) {
if ((_parent.movie.m_currFrame >= playOnFrame) && (_parent.movie.m_currFrame < (playOnFrame + ((_parent.movie.m_fps * transitInDur) / 1000)))) {
var _local2 = {};
if (transitType == 1) {
_local2.type = captivate.monalisa.transitions.BlindsExtended;
}
if (transitType == 2) {
_local2.type = captivate.monalisa.transitions.FadeExtended;
}
if (transitType == 3) {
_local2.type = captivate.monalisa.transitions.FlyExtended;
}
if (transitType == 4) {
_local2.type = captivate.monalisa.transitions.IrisExtended;
}
if (transitType == 5) {
_local2.type = captivate.monalisa.transitions.PhotoExtended;
}
if (transitType == 6) {
_local2.type = captivate.monalisa.transitions.PixelDissolveExtended;
}
if (transitType == 7) {
_local2.type = captivate.monalisa.transitions.RotateExtended;
_local2.degrees = 90;
_local2.ccw = true;
}
if (transitType == 8) {
_local2.type = captivate.monalisa.transitions.SqueezeExtended;
}
if (transitType == 9) {
_local2.type = captivate.monalisa.transitions.WipeExtended;
}
if (transitType == 10) {
_local2.type = captivate.monalisa.transitions.ZoomExtended;
}
_local2.duration = transitInDur / 1000;
transitInObj = mx.transitions.TransitionManager.start(this, _local2);
transitInPaused = false;
transitInStarted = true;
}
}
if (_parent.movie.m_paused && (transitInPaused == false)) {
transitInPaused = true;
transitInObj.pause();
} else if ((!_parent.movie.m_paused) && (transitInPaused == true)) {
transitInPaused = false;
transitInObj.resume();
}
if (transitOutStarted && (_parent.movie.m_paused)) {
if (transitOutBetween == true) {
var _local3 = ((_parent.movie.m_currFrame - (stopOnFrame + ((transitOutDur / 1000) * _parent.movie.m_fps))) / _parent.movie.m_fps) + (transitOutDur / 1000);
if ((_local3 < transitOutDur) && (_local3 > 0)) {
transitOutObj.setPosition(_local3);
}
} else {
var _local3 = ((_parent.movie.m_currFrame - stopOnFrame) / _parent.movie.m_fps) + (transitOutDur / 1000);
if ((_local3 < transitOutDur) && (_local3 > 0)) {
transitOutObj.setPosition(_local3);
}
}
}
if (transitOutStarted == false) {
_local4 = false;
if (transitOutBetween == true) {
if ((_parent.movie.m_currFrame >= (stopOnFrame - ((_parent.movie.m_fps * transitOutDur) / 2000))) && (_parent.movie.m_currFrame < stopOnFrame)) {
_local4 = true;
}
} else if ((_parent.movie.m_currFrame >= (stopOnFrame - ((_parent.movie.m_fps * transitOutDur) / 1000))) && (_parent.movie.m_currFrame < stopOnFrame)) {
_local4 = true;
}
if (_local4 == true) {
var _local2 = {};
if (transitOutType == 1) {
_local2.type = captivate.monalisa.transitions.BlindsExtended;
}
if (transitOutType == 2) {
_local2.type = captivate.monalisa.transitions.FadeExtended;
}
if (transitOutType == 3) {
_local2.type = captivate.monalisa.transitions.FlyExtended;
}
if (transitOutType == 4) {
_local2.type = captivate.monalisa.transitions.IrisExtended;
}
if (transitOutType == 5) {
_local2.type = captivate.monalisa.transitions.PhotoExtended;
}
if (transitOutType == 6) {
_local2.type = captivate.monalisa.transitions.PixelDissolveExtended;
}
if (transitOutType == 7) {
_local2.type = captivate.monalisa.transitions.RotateExtended;
}
if (transitOutType == 8) {
_local2.type = captivate.monalisa.transitions.SqueezeExtended;
}
if (transitOutType == 9) {
_local2.type = captivate.monalisa.transitions.WipeExtended;
}
if (transitOutType == 10) {
_local2.type = captivate.monalisa.transitions.ZoomExtended;
}
_local2.direction = 1;
_local2.duration = transitOutDur / 1000;
transitOutObj = mx.transitions.TransitionManager.start(this, _local2);
transitOutPaused = false;
transitOutStarted = true;
}
}
if (_parent.movie.m_paused && (transitOutPaused == false)) {
transitOutPaused = true;
transitOutObj.pause();
} else if ((!_parent.movie.m_paused) && (transitOutPaused == true)) {
transitOutPaused = false;
transitOutObj.resume();
}
_local4 = false;
if (transitOutBetween == true) {
if (((_parent.movie.m_currFrame > (stopOnFrame + ((transitOutDur / 1000) * _parent.movie.m_fps))) || (_parent.movie.m_currFrame < (stopOnFrame - ((_parent.movie.m_fps * transitOutDur) / 2000)))) && (transitOutStarted)) {
_local4 = true;
}
} else if (((_parent.movie.m_currFrame > stopOnFrame) || (_parent.movie.m_currFrame < (stopOnFrame - ((_parent.movie.m_fps * transitOutDur) / 1000)))) && (transitOutStarted)) {
_local4 = true;
}
if (_local4 == true) {
transitOutStarted = false;
if (transitOutObj.progress < 1) {
transitOutObj.rewind();
transitOutObj.cleanUp();
transitOutPaused = null;
}
}
}
var className = "rdQSlide";
var m_submitOnFrame = 25;
var m_quizPaused = false;
var m_attempts = 0;
var m_attemptsAllowed = 0;
var m_objectiveId = "";
var m_interactionId = "";
var m_interactionType = "";
var m_correctResponse = "";
var m_chosenResponse = "";
var m_weighting = 0;
var m_correct = false;
var succeeded = null;
var failed = null;
var m_currentQuesNumber = 1;
var m_totalQuestions = 1;
var _progressMC = null;
}
Symbol 115 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.SubmitButton] Frame 0
class MMQuizzingV3.MMQuizClasses.SubmitButton extends MMQuizzingV3.MMQuizClasses.QuestionButton
{
var __get__question, allowmouseclick;
function SubmitButton () {
super();
}
function init() {
__get__question().registerSubmitButton(this);
}
function onRelease(Void) {
if (allowmouseclick) {
doRelease();
}
}
function doRelease(Void) {
super.onRelease();
__get__question().judge(false, false);
}
function Submit(bOk) {
if (bOk) {
doRelease();
}
}
static var symbolName = "SubmitButton";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.SubmitButton);
var className = "SubmitButton";
}
Symbol 116 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.ClearButton] Frame 0
class MMQuizzingV3.MMQuizClasses.ClearButton extends MMQuizzingV3.MMQuizClasses.QuestionButton
{
var __get__question, allowmouseclick;
function ClearButton () {
super();
}
function init() {
__get__question().registerClearButton(this);
}
function onRelease(Void) {
if (allowmouseclick) {
doRelease();
}
}
function doRelease(Void) {
super.onRelease();
__get__question().clearAnswers();
Selection.setFocus(null);
}
function Submit(bOk) {
if (bOk) {
doRelease();
}
}
static var symbolName = "ClearButton";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.ClearButton);
var className = "ClearButton";
}
Symbol 117 MovieClip [__Packages.mx.accessibility.AccImpl] Frame 0
class mx.accessibility.AccImpl extends Object
{
var master, stub, ROLE;
function AccImpl (m) {
super();
master = m;
stub = false;
}
function get_accRole(childId) {
return(ROLE);
}
var STATE_SYSTEM_NORMAL = 0;
}
Symbol 118 MovieClip [__Packages.mx.accessibility.SimpleButtonAccImpl] Frame 0
class mx.accessibility.SimpleButtonAccImpl extends mx.accessibility.AccImpl
{
var master, _accImpl, _onRelease, _setLabel;
function SimpleButtonAccImpl (m) {
super(m);
master._onRelease = master.onRelease;
master.onRelease = onRelease;
master._setLabel = master.setLabel;
master.setLabel = setLabel;
}
static function enableAccessibility() {
}
function createAccessibilityImplementation() {
_accImpl = new mx.accessibility.SimpleButtonAccImpl(this);
}
function get_accName(childId) {
var _local2 = master.getLabel();
return(((_local2 != "") ? (_local2) : undefined));
}
function get_accState(childId) {
if (master.getState()) {
return(STATE_SYSTEM_PRESSED);
}
return(0);
}
function get_accDefaultAction(childId) {
return("Press");
}
function accDoDefaultAction(childId) {
master.onPress();
master.onRelease();
}
function onRelease() {
_onRelease();
Accessibility.sendEvent(MovieClip(this), 0, _accImpl.EVENT_OBJECT_STATECHANGE, true);
}
function setLabel(label) {
_setLabel(label);
Accessibility.sendEvent(MovieClip(this), 0, _accImpl.EVENT_OBJECT_NAMECHANGE);
}
static function hookAccessibility() {
mx.controls.SimpleButton.prototype.createAccessibilityImplementation = mx.accessibility.SimpleButtonAccImpl.prototype.createAccessibilityImplementation;
return(true);
}
var ROLE = 43;
var EVENT_OBJECT_NAMECHANGE = 32780;
var EVENT_OBJECT_STATECHANGE = 32778;
var STATE_SYSTEM_PRESSED = 8;
var owner = mx.controls.SimpleButton;
static var accessibilityHooked = hookAccessibility();
}
Symbol 119 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local11 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local9 = (__width - borderW) - borderW;
var _local10 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local11 = Math.min(_local9 - _local7, _local15 + 5);
_local3._width = _local11;
_local8 = Math.min(_local10, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local9 - _local11) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local9 - _local11) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local11;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local10 - _local6) / 2;
_local4 = (_local10 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local11 = Math.min(_local9, _local15 + 5);
_local3._width = _local11;
_local8 = Math.min(_local10 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local9 - _local11) / 2;
_local2._x = (_local9 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local10 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local10 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.126";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 120 MovieClip [__Packages.mx.accessibility.ButtonAccImpl] Frame 0
class mx.accessibility.ButtonAccImpl extends mx.accessibility.SimpleButtonAccImpl
{
var _accImpl;
function ButtonAccImpl (master) {
super(master);
}
static function enableAccessibility() {
}
function createAccessibilityImplementation() {
_accImpl = new mx.accessibility.ButtonAccImpl(this);
}
static function hookAccessibility() {
mx.controls.Button.prototype.createAccessibilityImplementation = mx.accessibility.ButtonAccImpl.prototype.createAccessibilityImplementation;
return(true);
}
var owner = mx.controls.Button;
static var accessibilityHooked = hookAccessibility();
}
Symbol 121 MovieClip [__Packages.mx.controls.CheckBox] Frame 0
class mx.controls.CheckBox extends mx.controls.Button
{
var _getTextFormat, labelPath, iconName;
function CheckBox () {
super();
}
function onRelease() {
super.onRelease();
}
function init() {
super.init();
}
function size() {
super.size();
}
function get emphasized() {
return(undefined);
}
function calcPreferredHeight() {
var _local5 = _getTextFormat();
var _local3 = _local5.getTextExtent2(labelPath.text).height;
var _local4 = iconName._height;
var _local2 = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
_local2 = Math.max(_local3, _local4);
} else {
_local2 = _local3 + _local4;
}
return(Math.max(14, _local2));
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "CheckBox";
static var symbolOwner = mx.controls.CheckBox;
static var version = "2.0.2.126";
var className = "CheckBox";
var ignoreClassStyleDeclaration = {Button:1};
var btnOffset = 0;
var __toggle = true;
var __selected = false;
var __labelPlacement = "right";
var __label = "CheckBox";
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "CheckFalseUp";
var falseDownIcon = "CheckFalseDown";
var falseOverIcon = "CheckFalseOver";
var falseDisabledIcon = "CheckFalseDisabled";
var trueUpIcon = "CheckTrueUp";
var trueDownIcon = "CheckTrueDown";
var trueOverIcon = "CheckTrueOver";
var trueDisabledIcon = "CheckTrueDisabled";
var clipParameters = {label:1, labelPlacement:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
var centerContent = false;
var borderW = 0;
}
Symbol 122 MovieClip [__Packages.mx.accessibility.CheckBoxAccImpl] Frame 0
class mx.accessibility.CheckBoxAccImpl extends mx.accessibility.ButtonAccImpl
{
var _accImpl, master, STATE_SYSTEM_NORMAL;
function CheckBoxAccImpl (master) {
super(master);
}
static function enableAccessibility() {
}
function createAccessibilityImplementation() {
_accImpl = new mx.accessibility.CheckBoxAccImpl(this);
}
function get_accState(childId) {
if (master.getState()) {
return(STATE_SYSTEM_CHECKED);
}
return(STATE_SYSTEM_NORMAL);
}
function get_accDefaultAction(childId) {
if (master.getState()) {
return("Check");
}
return("UnCheck");
}
static function hookAccessibility() {
mx.controls.CheckBox.prototype.createAccessibilityImplementation = mx.accessibility.CheckBoxAccImpl.prototype.createAccessibilityImplementation;
return(true);
}
var ROLE = 44;
var STATE_SYSTEM_CHECKED = 16;
var owner = mx.controls.CheckBox;
static var accessibilityHooked = hookAccessibility();
}
Symbol 123 MovieClip [__Packages.mx.controls.RadioButton] Frame 0
class mx.controls.RadioButton extends mx.controls.Button
{
var setToggle, __value, selected, releaseFocus, phase, dispatchEvent, _parent, __data, setState, __state, getFocusManager;
function RadioButton () {
super();
}
function init(Void) {
setToggle(__toggle);
__value = this;
super.init();
}
function size(Void) {
super.size();
}
function onRelease() {
if (selected) {
return(undefined);
}
releaseFocus();
phase = "up";
setSelected(true);
dispatchEvent({type:"click"});
_parent[__groupName].dispatchEvent({type:"click"});
}
function setData(val) {
__data = val;
}
function set data(val) {
__data = val;
//return(data);
}
function getData(val) {
return(__data);
}
function get data() {
return(__data);
}
function onUnload() {
if (_parent[__groupName].selectedRadio == this) {
_parent[__groupName].selectedRadio = undefined;
}
_parent[__groupName].radioList[indexNumber] = null;
delete _parent[__groupName].radioList[indexNumber];
}
function setSelected(val) {
var _local2 = _parent[__groupName];
var _local5 = _local2.selectedRadio.__width;
var _local4 = _local2.selectedRadio.__height;
if (val) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
} else if (_local2.selectedRadio == this) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = undefined;
}
setState(val);
}
function deleteGroupObj(groupName) {
delete _parent[groupName];
}
function getGroupName() {
return(__groupName);
}
function get groupName() {
return(__groupName);
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
delete _parent[__groupName].radioList[__data];
addToGroup(groupName);
__groupName = groupName;
}
function set groupName(groupName) {
setGroupName(groupName);
//return(this.groupName);
}
function addToGroup(groupName) {
if ((groupName == "") || (groupName == undefined)) {
return(undefined);
}
var _local2 = _parent[groupName];
if (_local2 == undefined) {
_local2 = (_parent[groupName] = new mx.controls.RadioButtonGroup());
_local2.__groupName = groupName;
}
_local2.addInstance(this);
if (__state) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
}
}
function get emphasized() {
return(undefined);
}
function keyDown(e) {
switch (e.code) {
case 40 :
setNext();
break;
case 38 :
setPrev();
break;
case 37 :
setPrev();
break;
case 39 :
setNext();
}
}
function setNext() {
var _local2 = _parent[groupName];
if ((_local2.selectedRadio.indexNumber + 1) == _local2.radioList.length) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : -1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 + _local3] != undefined) && (_local2.radioList[_local4 + _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 + _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function setPrev() {
var _local2 = _parent[groupName];
if (_local2.selectedRadio.indexNumber == 0) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : 1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 - _local3] != undefined) && (_local2.radioList[_local4 - _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 - _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "RadioButton";
static var symbolOwner = mx.controls.RadioButton;
static var version = "2.0.2.126";
var className = "RadioButton";
var btnOffset = 0;
var __toggle = true;
var __label = "Radio Button";
var __labelPlacement = "right";
var ignoreClassStyleDeclaration = {Button:1};
var __groupName = "radioGroup";
var indexNumber = 0;
var offset = false;
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "RadioFalseUp";
var falseDownIcon = "RadioFalseDown";
var falseOverIcon = "RadioFalseOver";
var falseDisabledIcon = "RadioFalseDisabled";
var trueUpIcon = "RadioTrueUp";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "RadioTrueDisabled";
var centerContent = false;
var borderW = 0;
var clipParameters = {labelPlacement:1, data:1, label:1, groupName:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.RadioButton.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
}
Symbol 124 MovieClip [__Packages.mx.controls.RadioButtonGroup] Frame 0
class mx.controls.RadioButtonGroup
{
var radioList, __groupName, selectedRadio;
function RadioButtonGroup () {
init();
mx.events.UIEventDispatcher.initialize(this);
}
function init(Void) {
radioList = new Array();
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
}
function getGroupName() {
return(__groupName);
}
function addInstance(instance) {
instance.indexNumber = indexNumber++;
radioList.push(instance);
}
function getValue() {
if (selectedRadio.data == "") {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function getLabelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function setLabelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
}
function setEnabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
}
function setSize(val, val1) {
for (var _local3 in radioList) {
radioList[_local3].setSize(val, val1);
}
}
function getEnabled() {
for (var _local4 in radioList) {
var _local2 = radioList[_local4].enabled;
var _local3 = t + (_local2 + 0);
}
if (_local3 == radioList.length) {
return(true);
}
if (_local3 == 0) {
return(false);
}
}
function setStyle(name, val) {
for (var _local4 in radioList) {
radioList[_local4].setStyle(name, val);
}
}
function setInstance(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
}
function getInstance() {
return(selectedRadio);
}
function setValue(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio.hitArea_mc._height = selectedRadio.__height;
selectedRadio.hitArea_mc._width = selectedRadio.__width;
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
selectedRadio.hitArea_mc._height = (selectedRadio.hitArea_mc._width = 0);
}
}
function set groupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return;
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
//return(this.groupName);
}
function get groupName() {
return(__groupName);
}
function set selectedData(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
}
//return(selectedData);
}
function get selectedData() {
if ((selectedRadio.data == "") || (selectedRadio.data == undefined)) {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function get selection() {
return(selectedRadio);
}
function set selection(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
//return(selection);
}
function set labelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
//return(labelPlacement);
}
function get labelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function set enabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
//return(enabled);
}
function get enabled() {
var _local2 = 0;
for (var _local3 in radioList) {
_local2 = _local2 + radioList[_local3].enabled;
}
if (_local2 == 0) {
return(false);
}
if (_local2 == radioList.length) {
return(true);
}
}
static var symbolName = "RadioButtonGroup";
static var symbolOwner = mx.controls.RadioButtonGroup;
static var version = "2.0.2.126";
var className = "RadioButtonGroup";
var indexNumber = 0;
}
Symbol 125 MovieClip [__Packages.mx.accessibility.RadioButtonAccImpl] Frame 0
class mx.accessibility.RadioButtonAccImpl extends mx.accessibility.CheckBoxAccImpl
{
var _accImpl;
function RadioButtonAccImpl (master) {
super(master);
}
static function enableAccessibility() {
}
function createAccessibilityImplementation() {
_accImpl = new mx.accessibility.RadioButtonAccImpl(this);
}
static function hookAccessibility() {
mx.controls.RadioButton.prototype.createAccessibilityImplementation = mx.accessibility.RadioButtonAccImpl.prototype.createAccessibilityImplementation;
return(true);
}
var ROLE = 45;
var owner = mx.controls.RadioButton;
static var accessibilityHooked = hookAccessibility();
}
Symbol 126 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer] Frame 0
class MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer extends mx.controls.RadioButton
{
var _parent, selected, _answerScore, ans_to_attach, answerholder_mc, getNextHighestDepth, ansTextAttached, _rbIcon, setGroupName, doLater, setStyle, dispatchEvent, enabled, iconName, hitArea_mc, createEmptyObject, getBounds, __get__groupName, _accImpl;
function MultipleChoiceAnswer () {
super();
}
function get question() {
var _local2 = _parent;
while (_local2) {
if (_local2.className == "Question") {
return(MMQuizzingV3.MMQuizClasses.Question(_local2));
}
if ((_local2._question.className = "Question")) {
return(MMQuizzingV3.MMQuizClasses.Question(_local2._question));
}
_local2 = _local2._parent;
}
return(null);
}
function get answered() {
return(selected);
}
function get answeredCorrectly() {
return(selected == isCorrect);
}
function get chosenAnswer() {
if (selected) {
return("1");
}
return("0");
}
function get correctAnswer() {
if (isCorrect) {
return("1");
}
return("0");
}
function get answerScore() {
return(_answerScore);
}
function get feedback() {
if (_feedback && (((_feedback._accText.length > 0) || (Number(_feedback.audioClipID) != -1)) || (_feedback.actionType != ""))) {
return(_feedback);
}
return(null);
}
function set feedback(theFeedback) {
_feedback = theFeedback;
//return(feedback);
}
function get retryFeedback() {
if (_retryFeedback && (_retryFeedback._accText.length > 0)) {
return(_retryFeedback);
}
return(null);
}
function set retryFeedback(theFeedback) {
_retryFeedback = theFeedback;
//return(retryFeedback);
}
function setFromAnswerScore(answerScore) {
if (answerScore.__get__chosenAnswer() == "1") {
super.setSelected(true);
} else {
super.setSelected(false);
}
}
function setInvisible() {
var _local2 = this;
_parent[_local2.ans_to_attach]._visible = false;
}
function setupAnswerText() {
var _local3 = this;
var _local2;
_local2 = _parent[ans_to_attach];
isCorrect = _local2.isCorrect;
feedback = (_local2.feedback);
answerholder_mc.attachMovie(ans_to_attach, ans_to_attach + "_mc", getNextHighestDepth());
ansTextAttached = ans_to_attach;
}
function initAnswerScore() {
if ((answerID != undefined) && (answerID.length > 0)) {
_answerScore = new MMQuizzingV3.MMQuizClasses.AnswerScore();
_answerScore.__set__answerType(className);
_answerScore.__set__answerID(answerID);
_answerScore.__set__isTrueAnswer(isTrueAnswer);
if (isCorrect) {
_answerScore.__set__correctAnswer("1");
} else {
_answerScore.__set__correctAnswer("0");
}
_answerScore.__set__chosenAnswer("0");
var _local2;
_local2 = _parent[ans_to_attach];
if (question.__get__shuffleAnswers()) {
_answerScore.__set__answerID_for_shuffle(_local2.answerID);
} else {
_answerScore.__set__answerID_for_shuffle("-1");
}
}
}
function init() {
_rbIcon._visible = false;
super.init();
setGroupName("answerGroup");
question.registerAnswer(this);
doLater(this, "setInvisible");
doLater(this, "checkShuffling");
setStyle("themeColor", "0x34A901");
}
function checkShuffling() {
if ((!question.__get__shuffleAnswers()) || (question.__get__questionScore().__get__interactionType() == "true-false")) {
setupAnswerText();
doLater(this, "initAnswerScore");
}
}
function size() {
super.size();
}
function setStateVar(state) {
super.setStateVar(state);
if (selected) {
_answerScore.__set__chosenAnswer("1");
} else {
_answerScore.__set__chosenAnswer("0");
}
}
function answerChosen() {
dispatchEvent({type:"chooseAnswer", target:this});
if (answeredCorrectly) {
dispatchEvent({type:"chooseCorrectAnswer", target:this});
} else {
dispatchEvent({type:"chooseIncorrectAnswer", target:this});
}
}
function setSelected(val) {
if (enabled) {
super.setSelected(val);
doLater(this, "drawMouseOverHilite");
answerChosen();
}
}
function clearAnswer() {
setSelected(false);
}
function setView(offset) {
var _local2 = iconName;
_local2._x = _rbIcon._x - 2;
_local2._y = _rbIcon._y - 2;
if ((_rbIcon._width > 0) && (_rbIcon._height > 0)) {
_local2.setSize(_rbIcon._width, _rbIcon._height);
}
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local3 = getBounds(this);
var _local2 = hitArea_mc;
_local2.clear();
_local2._x = _local3.xMin;
_local2._y = _local3.yMin;
var _local5 = _local3.yMax - _local3.yMin;
var _local4 = _local3.xMax - _local3.xMin;
_local2.beginFill(mouseOverHiliteColor);
_local2.drawRect(0, 0, _local4, _local5);
_local2.endFill();
_local2._alpha = 0;
_local2.setVisible(true);
}
function setLabel(label) {
super.setLabel("");
}
function drawMouseOverHilite() {
if (useWholeButtonHilite) {
var _local2 = hitArea_mc;
_local2._alpha = mouseOverHiliteAlpha;
}
}
function eraseMouseOverHilite() {
if (useWholeButtonHilite) {
var _local2 = hitArea_mc;
_local2._alpha = 0;
}
}
function onRollOver(Void) {
super.onRollOver();
drawMouseOverHilite();
}
function onRollOut(Void) {
super.onRollOut();
eraseMouseOverHilite();
}
function setNext() {
var _local3 = _parent[__get__groupName()];
super.setNext();
Selection.setFocus(_local3.selectedRadio);
}
function setPrev() {
var _local3 = _parent[__get__groupName()];
super.setPrev();
Selection.setFocus(_local3.selectedRadio);
}
function createAccessibilityImplementation() {
_accImpl = new MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswerAccImpl(this);
}
static var symbolName = "MultipleChoiceAnswer";
static var symbolOwner = MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer;
var className = "MultipleChoiceAnswer";
var isCorrect = false;
var isTrueAnswer = false;
var useWholeButtonHilite = false;
var mouseOverHiliteColor = 7712491;
var mouseOverHiliteAlpha = 50;
var answerID = "";
var _feedback = null;
var _retryFeedback = null;
}
Symbol 127 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswerAccImpl] Frame 0
class MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswerAccImpl extends mx.accessibility.RadioButtonAccImpl
{
var _accImpl;
function MultipleChoiceAnswerAccImpl (master) {
super(master);
}
static function enableAccessibility() {
}
function createAccessibilityImplementation() {
_accImpl = new MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswerAccImpl(this);
}
static function hookAccessibility() {
return(true);
}
var ROLE = 45;
var owner = MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer;
static var accessibilityHooked = hookAccessibility();
}
Symbol 128 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswer] Frame 0
class MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswer extends mx.controls.CheckBox
{
var _parent, ans_to_attach, answerholder_mc, getNextHighestDepth, ansTextAttached, _answerScore, _cbIcon, doLater, setStyle, selected, dispatchEvent, enabled, iconName, hitArea_mc, createEmptyObject, getBounds, _accImpl;
function MultipleChoiceMultipleAnswer () {
super();
}
function get question() {
return(MMQuizzingV3.MMQuizClasses.Question(_parent));
}
function setInvisible() {
var _local2 = this;
_parent[_local2.ans_to_attach]._visible = false;
}
function setupAnswerText() {
var _local3 = this;
var _local2;
_local2 = _parent[ans_to_attach];
isCorrect = _local2.isCorrect;
answerholder_mc.attachMovie(ans_to_attach, ans_to_attach + "_mc", getNextHighestDepth());
ansTextAttached = ans_to_attach;
}
function initAnswerScore() {
_answerScore = new MMQuizzingV3.MMQuizClasses.AnswerScore();
_answerScore.__set__answerType(className);
_answerScore.__set__answerID(answerID);
if (isCorrect) {
_answerScore.__set__correctAnswer("1");
} else {
_answerScore.__set__correctAnswer("0");
}
_answerScore.__set__chosenAnswer("0");
var _local2;
_local2 = _parent[ans_to_attach];
if (question.__get__shuffleAnswers()) {
_answerScore.__set__answerID_for_shuffle(_local2.answerID);
} else {
_answerScore.__set__answerID_for_shuffle("-1");
}
}
function init() {
_cbIcon._visible = false;
super.init();
question.registerAnswer(this);
doLater(this, "setInvisible");
doLater(this, "checkShuffling");
setStyle("themeColor", "0x34A901");
}
function checkShuffling() {
if (!question.__get__shuffleAnswers()) {
setupAnswerText();
doLater(this, "initAnswerScore");
}
}
function size() {
super.size();
}
function setStateVar(state) {
super.setStateVar(state);
if (selected) {
_answerScore.__set__chosenAnswer("1");
} else {
_answerScore.__set__chosenAnswer("0");
}
}
function answerChosen() {
dispatchEvent({type:"chooseAnswer", target:this});
if (answeredCorrectly) {
dispatchEvent({type:"chooseCorrectAnswer", target:this});
} else {
dispatchEvent({type:"chooseIncorrectAnswer", target:this});
}
}
function setSelected(val) {
if (enabled) {
super.setSelected(val);
doLater(this, "drawMouseOverHilite");
answerChosen();
}
}
function get answered() {
return(selected);
}
function get answeredCorrectly() {
return(selected == isCorrect);
}
function get chosenAnswer() {
if (selected) {
return(answerID);
}
return("");
}
function get correctAnswer() {
if (isCorrect) {
return("1");
}
return("");
}
function get answerScore() {
return(_answerScore);
}
function get retryFeedback() {
if (_retryFeedback) {
return(_retryFeedback);
}
return(null);
}
function set retryFeedback(theFeedback) {
_retryFeedback = theFeedback;
//return(retryFeedback);
}
function clearAnswer() {
setSelected(false);
}
function setFromAnswerScore(answerScore) {
if (answerScore.__get__chosenAnswer() == "1") {
super.setSelected(true);
} else {
super.setSelected(false);
}
}
function setView(offset) {
var _local2 = iconName;
_local2._x = _cbIcon._x;
_local2._y = _cbIcon._y;
if ((_cbIcon._width > 0) && (_cbIcon._height > 0)) {
_local2.setSize(_cbIcon._width, _cbIcon._height);
}
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local3 = getBounds(this);
var _local2 = hitArea_mc;
_local2.clear();
_local2._x = _local3.xMin;
_local2._y = _local3.yMin;
var _local5 = _local3.yMax - _local3.yMin;
var _local4 = _local3.xMax - _local3.xMin;
_local2.beginFill(mouseOverHiliteColor);
_local2.drawRect(0, 0, _local4, _local5);
_local2.endFill();
_local2._alpha = 0;
_local2.setVisible(true);
}
function setLabel(label) {
super.setLabel("");
}
function drawMouseOverHilite() {
if (useWholeButtonHilite) {
var _local2 = hitArea_mc;
_local2._alpha = mouseOverHiliteAlpha;
}
}
function eraseMouseOverHilite() {
if (useWholeButtonHilite) {
var _local2 = hitArea_mc;
_local2._alpha = 0;
}
}
function onRollOver(Void) {
super.onRollOver();
drawMouseOverHilite();
}
function onRollOut(Void) {
super.onRollOut();
eraseMouseOverHilite();
}
function createAccessibilityImplementation() {
_accImpl = new MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswerAccImpl(this);
}
static var symbolName = "MultipleChoiceMultipleAnswer";
static var symbolOwner = MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswer;
var className = "MultipleChoiceMultipleAnswer";
var isCorrect = false;
var useWholeButtonHilite = false;
var mouseOverHiliteColor = 7712491;
var mouseOverHiliteAlpha = 50;
var answerID = "";
var _retryFeedback = null;
}
Symbol 129 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswerAccImpl] Frame 0
class MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswerAccImpl extends mx.accessibility.CheckBoxAccImpl
{
var _accImpl;
function MultipleChoiceMultipleAnswerAccImpl (master) {
super(master);
}
static function enableAccessibility() {
}
function createAccessibilityImplementation() {
_accImpl = new MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswerAccImpl(this);
}
static function hookAccessibility() {
return(true);
}
var ROLE = 44;
var STATE_SYSTEM_CHECKED = 16;
var owner = MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswer;
static var accessibilityHooked = hookAccessibility();
}
Symbol 130 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0
class mx.controls.listclasses.DataSelector extends Object
{
var __vPosition, setVPosition, __dataProvider, enabled, lastSelID, lastSelected, selected, invUpdateControl, invalidate, multipleSelection, updateControl, __rowCount, rows;
function DataSelector () {
super();
}
static function Initialize(obj) {
var _local3 = mixinProps;
var _local4 = _local3.length;
obj = obj.prototype;
var _local1 = 0;
while (_local1 < _local4) {
obj[_local3[_local1]] = mixins[_local3[_local1]];
_local1++;
}
mixins.createProp(obj, "dataProvider", true);
mixins.createProp(obj, "length", false);
mixins.createProp(obj, "value", false);
mixins.createProp(obj, "selectedIndex", true);
mixins.createProp(obj, "selectedIndices", true);
mixins.createProp(obj, "selectedItems", false);
mixins.createProp(obj, "selectedItem", true);
return(true);
}
function createProp(obj, propName, setter) {
var p = (propName.charAt(0).toUpperCase() + propName.substr(1));
var _local2 = null;
var _local3 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local2 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(propName, _local3, _local2);
}
function setDataProvider(dP) {
if (__vPosition != 0) {
setVPosition(0);
}
clearSelected();
__dataProvider.removeEventListener(this);
__dataProvider = dP;
dP.addEventListener("modelChanged", this);
dP.addView(this);
modelChanged({eventName:"updateAll"});
}
function getDataProvider(Void) {
return(__dataProvider);
}
function addItemAt(index, label, data) {
if ((index < 0) || (!enabled)) {
return(undefined);
}
var _local2 = __dataProvider;
if (_local2 == undefined) {
_local2 = (__dataProvider = new Array());
_local2.addEventListener("modelChanged", this);
index = 0;
}
if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) {
_local2.addItemAt(index, label);
} else {
_local2.addItemAt(index, {label:label, data:data});
}
}
function addItem(label, data) {
addItemAt(__dataProvider.length, label, data);
}
function removeItemAt(index) {
return(__dataProvider.removeItemAt(index));
}
function removeAll(Void) {
__dataProvider.removeAll();
}
function replaceItemAt(index, newLabel, newData) {
if (typeof(newLabel) == "object") {
__dataProvider.replaceItemAt(index, newLabel);
} else {
__dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
}
}
function sortItemsBy(fieldName, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItemsBy(fieldName, order);
}
function sortItems(compareFunc, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItems(compareFunc, order);
}
function getLength(Void) {
return(__dataProvider.length);
}
function getItemAt(index) {
return(__dataProvider.getItemAt(index));
}
function modelChanged(eventObj) {
var _local3 = eventObj.firstItem;
var _local6 = eventObj.lastItem;
var _local7 = eventObj.eventName;
if (_local7 == undefined) {
_local7 = eventObj.event;
_local3 = eventObj.firstRow;
_local6 = eventObj.lastRow;
if (_local7 == "addRows") {
_local7 = (eventObj.eventName = "addItems");
} else if (_local7 == "deleteRows") {
_local7 = (eventObj.eventName = "removeItems");
} else if (_local7 == "updateRows") {
_local7 = (eventObj.eventName = "updateItems");
}
}
if (_local7 == "addItems") {
for (var _local2 in selected) {
var _local5 = selected[_local2];
if ((_local5 != undefined) && (_local5 >= _local3)) {
selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1);
}
}
} else if (_local7 == "removeItems") {
if (__dataProvider.length == 0) {
delete selected;
} else {
var _local9 = eventObj.removedIDs;
var _local10 = _local9.length;
var _local2 = 0;
while (_local2 < _local10) {
var _local4 = _local9[_local2];
if (selected[_local4] != undefined) {
delete selected[_local4];
}
_local2++;
}
for (_local2 in selected) {
if (selected[_local2] >= _local3) {
selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1);
}
}
}
} else if (_local7 == "sort") {
if (typeof(__dataProvider.getItemAt(0)) != "object") {
delete selected;
} else {
var _local10 = __dataProvider.length;
var _local2 = 0;
while (_local2 < _local10) {
if (isSelected(_local2)) {
var _local4 = __dataProvider.getItemID(_local2);
if (_local4 == lastSelID) {
lastSelected = _local2;
}
selected[_local4] = _local2;
}
_local2++;
}
}
} else if (_local7 == "filterModel") {
setVPosition(0);
}
invUpdateControl = true;
invalidate();
}
function getValue(Void) {
var _local2 = getSelectedItem();
if (typeof(_local2) != "object") {
return(_local2);
}
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
}
function getSelectedIndex(Void) {
for (var _local3 in selected) {
var _local2 = selected[_local3];
if (_local2 != undefined) {
return(_local2);
}
}
}
function setSelectedIndex(index) {
if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) {
delete selected;
selectItem(index, true);
lastSelected = index;
invUpdateControl = true;
invalidate();
} else if (index == undefined) {
clearSelected();
}
}
function getSelectedIndices(Void) {
var _local2 = new Array();
for (var _local3 in selected) {
_local2.push(selected[_local3]);
}
_local2.reverse();
return(((_local2.length > 0) ? (_local2) : undefined));
}
function setSelectedIndices(indexArray) {
if (multipleSelection != true) {
return(undefined);
}
delete selected;
var _local3 = 0;
while (_local3 < indexArray.length) {
var _local2 = indexArray[_local3];
if ((_local2 >= 0) && (_local2 < __dataProvider.length)) {
selectItem(_local2, true);
}
_local3++;
}
invUpdateControl = true;
updateControl();
}
function getSelectedItems(Void) {
var _local3 = getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
}
function getSelectedItem(Void) {
return(__dataProvider.getItemAt(getSelectedIndex()));
}
function selectItem(index, selectedFlag) {
if (selected == undefined) {
selected = new Object();
}
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (selectedFlag && (!isSelected(index))) {
selected[_local2] = index;
} else if (!selectedFlag) {
delete selected[_local2];
}
}
function isSelected(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(false);
}
return(selected[_local2] != undefined);
}
function clearSelected(transition) {
var _local3 = 0;
for (var _local4 in selected) {
var _local2 = selected[_local4];
if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0));
}
_local3++;
}
delete selected;
}
static var mixins = new mx.controls.listclasses.DataSelector();
static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"];
}
Symbol 131 MovieClip [__Packages.mx.controls.ComboBase] Frame 0
class mx.controls.ComboBase extends mx.core.UIComponent
{
var getValue, tabEnabled, tabChildren, boundingBox_mc, downArrow_mc, createClassObject, onDownArrow, border_mc, __border, text_mc, focusTextField, __width, __height, getFocusManager, __get__height, height, _parent;
function ComboBase () {
super();
getValue = _getValue;
}
function init() {
super.init();
tabEnabled = !_editable;
tabChildren = _editable;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren() {
var _local3 = new Object();
_local3.styleName = this;
if (downArrow_mc == undefined) {
_local3.falseUpSkin = downArrowUpName;
_local3.falseOverSkin = downArrowOverName;
_local3.falseDownSkin = downArrowDownName;
_local3.falseDisabledSkin = downArrowDisabledName;
_local3.validateNow = true;
_local3.tabEnabled = false;
createClassObject(mx.controls.SimpleButton, "downArrow_mc", 19, _local3);
downArrow_mc.buttonDownHandler = onDownArrow;
downArrow_mc.useHandCursor = false;
downArrow_mc.onPressWas = downArrow_mc.onPress;
downArrow_mc.onPress = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = true;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onPressWas();
};
downArrow_mc.onDragOutWas = downArrow_mc.onDragOut;
downArrow_mc.onDragOut = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = false;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOutWas();
};
downArrow_mc.onDragOverWas = downArrow_mc.onDragOver;
downArrow_mc.onDragOver = function () {
this.trackAsMenu = this.trackAsMenuWas;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOverWas();
};
}
if (border_mc == undefined) {
_local3.tabEnabled = false;
createClassObject(_global.styles.rectBorderClass, "border_mc", 17, _local3);
border_mc.move(0, 0);
__border = border_mc;
}
_local3.borderStyle = "none";
_local3.readOnly = !_editable;
_local3.tabEnabled = _editable;
if (text_mc == undefined) {
createClassObject(mx.controls.TextInput, "text_mc", 18, _local3);
text_mc.move(0, 0);
text_mc.addEnterEvents();
text_mc.enterHandler = _enterHandler;
text_mc.changeHandler = _changeHandler;
text_mc.oldOnSetFocus = text_mc.onSetFocus;
text_mc.onSetFocus = function () {
this.oldOnSetFocus();
this._parent.onSetFocus();
};
text_mc.__set__restrict("^\x1B");
text_mc.oldOnKillFocus = text_mc.onKillFocus;
text_mc.onKillFocus = function (n) {
this.oldOnKillFocus(n);
this._parent.onKillFocus(n);
};
text_mc.drawFocus = function (b) {
this._parent.drawFocus(b);
};
delete text_mc.borderStyle;
}
focusTextField = text_mc;
text_mc.owner = this;
layoutChildren(__width, __height);
}
function onKillFocus() {
super.onKillFocus();
Key.removeListener(text_mc);
getFocusManager().defaultPushButtonEnabled = true;
}
function onSetFocus() {
super.onSetFocus();
getFocusManager().defaultPushButtonEnabled = false;
Key.addListener(text_mc);
}
function setFocus() {
if (_editable) {
Selection.setFocus(text_mc);
} else {
Selection.setFocus(this);
}
}
function setSize(w, h, noEvent) {
super.setSize(w, ((h == undefined) ? (__get__height()) : (h)), noEvent);
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
downArrow_mc.enabled = enabledFlag;
text_mc.enabled = enabledFlag;
}
function setEditable(e) {
_editable = e;
if (wrapDownArrowButton == false) {
if (e) {
border_mc.borderStyle = "inset";
text_mc.borderStyle = "inset";
symbolName = "ComboBox";
invalidateStyle();
} else {
border_mc.borderStyle = "comboNonEdit";
text_mc.borderStyle = "dropDown";
symbolName = "DropDown";
invalidateStyle();
}
}
tabEnabled = !e;
tabChildren = e;
text_mc.tabEnabled = e;
if (e) {
delete text_mc.onPress;
delete text_mc.onRelease;
delete text_mc.onReleaseOutside;
delete text_mc.onDragOut;
delete text_mc.onDragOver;
delete text_mc.onRollOver;
delete text_mc.onRollOut;
} else {
text_mc.onPress = function () {
this._parent.downArrow_mc.onPress();
};
text_mc.onRelease = function () {
this._parent.downArrow_mc.onRelease();
};
text_mc.onReleaseOutside = function () {
this._parent.downArrow_mc.onReleaseOutside();
};
text_mc.onDragOut = function () {
this._parent.downArrow_mc.onDragOut();
};
text_mc.onDragOver = function () {
this._parent.downArrow_mc.onDragOver();
};
text_mc.onRollOver = function () {
this._parent.downArrow_mc.onRollOver();
};
text_mc.onRollOut = function () {
this._parent.downArrow_mc.onRollOut();
};
text_mc.useHandCursor = false;
}
}
function get editable() {
return(_editable);
}
function set editable(e) {
setEditable(e);
//return(editable);
}
function _getValue() {
return((_editable ? (text_mc.getText()) : (DSgetValue())));
}
function draw() {
downArrow_mc.draw();
border_mc.draw();
}
function size() {
layoutChildren(__width, __height);
}
function setTheme(t) {
downArrowUpName = (t + "downArrow") + "Up_mc";
downArrowDownName = (t + "downArrow") + "Down_mc";
downArrowDisabledName = (t + "downArrow") + "Disabled_mc";
}
function get text() {
return(text_mc.getText());
}
function set text(t) {
setText(t);
//return(text);
}
function setText(t) {
text_mc.setText(t);
}
function get textField() {
return(text_mc);
}
function get restrict() {
return(text_mc.__get__restrict());
}
function set restrict(w) {
text_mc.__set__restrict(w);
//return(restrict);
}
function invalidateStyle() {
downArrow_mc.invalidateStyle();
text_mc.invalidateStyle();
border_mc.invalidateStyle();
}
function layoutChildren(w, h) {
if (downArrow_mc == undefined) {
return(undefined);
}
if (wrapDownArrowButton) {
var _local2 = border_mc.__get__borderMetrics();
downArrow_mc._width = (downArrow_mc._height = (h - _local2.top) - _local2.bottom);
downArrow_mc.move((w - downArrow_mc._width) - _local2.right, _local2.top);
border_mc.setSize(w, h);
text_mc.setSize(w - downArrow_mc._width, h);
} else {
downArrow_mc.move(w - downArrow_mc._width, 0);
border_mc.setSize(w - downArrow_mc.width, h);
text_mc.setSize(w - downArrow_mc._width, h);
downArrow_mc._height = height;
}
}
function _changeHandler(obj) {
}
function _enterHandler(obj) {
var _local2 = _parent;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function get tabIndex() {
return(text_mc.__get__tabIndex());
}
function set tabIndex(w) {
text_mc.__set__tabIndex(w);
//return(tabIndex);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase);
static var symbolName = "ComboBase";
static var symbolOwner = mx.controls.ComboBase;
static var version = "2.0.2.126";
var _editable = false;
var downArrowUpName = "ScrollDownArrowUp";
var downArrowDownName = "ScrollDownArrowDown";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDisabledName = "ScrollDownArrowDisabled";
var wrapDownArrowButton = true;
var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue;
var multipleSelection = false;
}
Symbol 132 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.126";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 133 MovieClip [__Packages.mx.accessibility.ComboBaseAccImpl] Frame 0
class mx.accessibility.ComboBaseAccImpl extends mx.accessibility.AccImpl
{
var _accImpl, master, _setSelectedIndex, _setText;
function ComboBaseAccImpl (master) {
super(master);
master._setSelectedIndex = master.setSelectedIndex;
master.setSelectedIndex = setSelectedIndex;
master._setText = master.setText;
master.setText = setText;
}
static function enableAccessibility() {
}
function createAccessibilityImplementation() {
_accImpl = new mx.accessibility.ComboBaseAccImpl(this);
}
function get_accRole(childId) {
var _local2 = ((childId == 0) ? (ROLE) : (ROLE_SYSTEM_LISTITEM));
return(_local2);
}
function getChildIdArray() {
var _local4 = new Array();
var _local2 = 0;
while (_local2 < master.getLength()) {
var _local3 = _local2 + 1;
_local4[_local2] = _local3;
_local2++;
}
return(_local4);
}
function get_accValue(childId) {
if (childId != 0) {
var _local2 = master.getItemAt(childId - 1);
if (typeof(_local2) != "object") {
return(_local2);
}
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
}
return(master.getValue());
}
function get_accSelection() {
var _local2 = new Array();
_local2.push(master.getSelectedIndex() + 1);
return(_local2);
}
function setSelectedIndex(v) {
var _local2 = _setSelectedIndex(v);
Accessibility.sendEvent(MovieClip(this), v + 1, _accImpl.EVENT_OBJECT_SELECTION);
Accessibility.sendEvent(MovieClip(this), 0, _accImpl.EVENT_OBJECT_VALUECHANGE);
return(_local2);
}
function setText(t) {
var _local2 = _setText(t);
Accessibility.sendEvent(MovieClip(this), 0, _accImpl.EVENT_OBJECT_VALUECHANGE, true);
return(_local2);
}
static function hookAccessibility() {
mx.controls.ComboBase.prototype.createAccessibilityImplementation = mx.accessibility.ComboBaseAccImpl.prototype.createAccessibilityImplementation;
return(true);
}
var ROLE = 46;
var ROLE_SYSTEM_LISTITEM = 34;
var EVENT_OBJECT_VALUECHANGE = 32782;
var EVENT_OBJECT_SELECTION = 32774;
var owner = mx.controls.ComboBase;
static var accessibilityHooked = hookAccessibility();
}
Symbol 134 MovieClip [__Packages.mx.controls.ComboBox] Frame 0
class mx.controls.ComboBox extends mx.controls.ComboBase
{
var __set__editable, editable, __labels, data, __dropdownWidth, __width, _editable, selectedIndex, __dropdown, dataProvider, __labelFunction, createObject, border_mc, mask, text_mc, dispatchValueChangedEvent, getValue, length, selectedItem, _y, isPressed, owner, __set__visible, height, localToGlobal, __selectedIndexOnDropdown, __initialSelectedIndexOnDropdown, __get__height, getStyle, _parent, width, __dataProvider, selected, dispatchEvent;
function ComboBox () {
super();
}
function init() {
super.init();
}
function createChildren() {
super.createChildren();
__set__editable(editable);
if (__labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
dropdownWidth = (((typeof(__dropdownWidth) == "number") ? (__dropdownWidth) : (__width)));
if (!_editable) {
selectedIndex = 0;
}
initializing = false;
}
function onKillFocus(n) {
if (_showingDropdown && (n != null)) {
displayDropdown(false);
}
super.onKillFocus();
}
function getDropdown() {
if (initializing) {
return(undefined);
}
if (!hasDropdown()) {
var _local3 = new Object();
_local3.styleName = this;
if (dropdownBorderStyle != undefined) {
_local3.borderStyle = dropdownBorderStyle;
}
_local3._visible = false;
__dropdown = mx.managers.PopUpManager.createPopUp(this, mx.controls.List, false, _local3, true);
__dropdown.scroller.mask.removeMovieClip();
if (dataProvider == undefined) {
dataProvider = new Array();
}
__dropdown.setDataProvider(dataProvider);
__dropdown.selectMultiple = false;
__dropdown.rowCount = __rowCount;
__dropdown.selectedIndex = selectedIndex;
__dropdown.vScrollPolicy = "auto";
__dropdown.labelField = __labelField;
__dropdown.labelFunction = __labelFunction;
__dropdown.owner = this;
__dropdown.changeHandler = _changeHandler;
__dropdown.scrollHandler = _scrollHandler;
__dropdown.itemRollOverHandler = _itemRollOverHandler;
__dropdown.itemRollOutHandler = _itemRollOutHandler;
__dropdown.resizeHandler = _resizeHandler;
__dropdown.mouseDownOutsideHandler = function (eventObj) {
var _local3 = this.owner;
var _local4 = new Object();
_local4.x = _local3._root._xmouse;
_local4.y = _local3._root._ymouse;
_local3._root.localToGlobal(_local4);
if (_local3.hitTest(_local4.x, _local4.y, false)) {
} else if ((!this.wrapDownArrowButton) && (this.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false))) {
} else {
_local3.displayDropdown(false);
}
};
__dropdown.onTweenUpdate = function (v) {
this._y = v;
};
__dropdown.setSize(__dropdownWidth, __dropdown.height);
createObject("BoundingBox", "mask", 20);
mask._y = border_mc.height;
mask._width = __dropdownWidth;
mask._height = __dropdown.height;
mask._visible = false;
__dropdown.setMask(mask);
}
return(__dropdown);
}
function setSize(w, h, noEvent) {
super.setSize(w, h, noEvent);
__dropdownWidth = w;
__dropdown.rowHeight = h;
__dropdown.setSize(__dropdownWidth, __dropdown.height);
}
function setEditable(e) {
super.setEditable(e);
if (e) {
text_mc.setText("");
} else {
text_mc.setText(selectedLabel);
}
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function getLabelField() {
return(__labelField);
}
function get labelField() {
return(getLabelField());
}
function setLabelField(s) {
__dropdown.labelField = (__labelField = s);
text_mc.setText(selectedLabel);
}
function set labelField(s) {
setLabelField(s);
//return(labelField);
}
function getLabelFunction() {
return(__labelFunction);
}
function get labelFunction() {
return(getLabelFunction());
}
function set labelFunction(f) {
__dropdown.labelFunction = (__labelFunction = f);
text_mc.setText(selectedLabel);
//return(labelFunction);
}
function setSelectedItem(v) {
super.setSelectedItem(v);
__dropdown.selectedItem = v;
text_mc.setText(selectedLabel);
}
function setSelectedIndex(v) {
super.setSelectedIndex(v);
__dropdown.selectedIndex = v;
if (v != undefined) {
text_mc.setText(selectedLabel);
}
dispatchValueChangedEvent(getValue());
}
function setRowCount(count) {
if (isNaN(count)) {
return(undefined);
}
__rowCount = count;
__dropdown.setRowCount(count);
}
function get rowCount() {
return(Math.max(1, Math.min(length, __rowCount)));
}
function set rowCount(v) {
setRowCount(v);
//return(rowCount);
}
function setDropdownWidth(w) {
__dropdownWidth = w;
__dropdown.setSize(w, __dropdown.height);
}
function get dropdownWidth() {
return(__dropdownWidth);
}
function set dropdownWidth(v) {
setDropdownWidth(v);
//return(dropdownWidth);
}
function get dropdown() {
return(getDropdown());
}
function setDataProvider(dp) {
super.setDataProvider(dp);
__dropdown.setDataProvider(dp);
if (!_editable) {
selectedIndex = 0;
}
}
function open() {
displayDropdown(true);
}
function close() {
displayDropdown(false);
}
function get selectedLabel() {
var _local2 = selectedItem;
if (_local2 == undefined) {
return("");
}
if (labelFunction != undefined) {
return(labelFunction(_local2));
}
if (typeof(_local2) != "object") {
return(_local2);
}
if (_local2[labelField] != undefined) {
return(_local2[labelField]);
}
if (_local2.label != undefined) {
return(_local2.label);
}
var _local3 = " ";
for (var _local4 in _local2) {
if (_local4 != "__ID__") {
_local3 = (_local2[_local4] + ", ") + _local3;
}
}
_local3 = _local3.substring(0, _local3.length - 3);
return(_local3);
}
function hasDropdown() {
return((__dropdown != undefined) && (__dropdown.valueOf() != undefined));
}
function tweenEndShow(value) {
_y = value;
isPressed = true;
owner.dispatchEvent({type:"open", target:owner});
}
function tweenEndHide(value) {
_y = value;
__set__visible(false);
owner.dispatchEvent({type:"close", target:owner});
}
function displayDropdown(show) {
if (show == _showingDropdown) {
return(undefined);
}
var _local3 = new Object();
_local3.x = 0;
_local3.y = height;
localToGlobal(_local3);
if (show) {
__selectedIndexOnDropdown = selectedIndex;
__initialSelectedIndexOnDropdown = selectedIndex;
getDropdown();
var _local2 = __dropdown;
_local2.isPressed = true;
_local2.rowCount = rowCount;
_local2.visible = show;
_local2._parent.globalToLocal(_local3);
_local2.onTweenEnd = tweenEndShow;
var _local5;
var _local8;
if ((_local3.y + _local2.height) > Stage.height) {
_local5 = _local3.y - __get__height();
_local8 = _local5 - _local2.height;
mask._y = -_local2.height;
} else {
_local5 = _local3.y - _local2.height;
_local8 = _local3.y;
mask._y = border_mc.height;
}
var _local6 = _local2.selectedIndex;
if (_local6 == undefined) {
_local6 = 0;
}
var _local4 = _local2.vPosition;
_local4 = _local6 - 1;
_local4 = Math.min(Math.max(_local4, 0), _local2.length - _local2.rowCount);
_local2.vPosition = _local4;
_local2.move(_local3.x, _local5);
_local2.tween = new mx.effects.Tween(__dropdown, _local5, _local8, getStyle("openDuration"));
} else {
__dropdown._parent.globalToLocal(_local3);
delete __dropdown.dragScrolling;
__dropdown.onTweenEnd = tweenEndHide;
__dropdown.tween = new mx.effects.Tween(__dropdown, __dropdown._y, _local3.y - __dropdown.height, getStyle("openDuration"));
if (__initialSelectedIndexOnDropdown != selectedIndex) {
dispatchChangeEvent(undefined, __initialSelectedIndexOnDropdown, selectedIndex);
}
}
var _local9 = getStyle("openEasing");
if (_local9 != undefined) {
__dropdown.tween.easingEquation = _local9;
}
_showingDropdown = show;
}
function onDownArrow() {
_parent.displayDropdown(!_parent._showingDropdown);
}
function keyDown(e) {
if (e.ctrlKey && (e.code == 40)) {
displayDropdown(true);
} else if (e.ctrlKey && (e.code == 38)) {
displayDropdown(false);
dispatchChangeEvent(undefined, __selectedIndexOnDropdown, selectedIndex);
} else if (e.code == 27) {
displayDropdown(false);
} else if (e.code == 13) {
if (_showingDropdown) {
selectedIndex = __dropdown.selectedIndex;
displayDropdown(false);
}
} else if (((((!_editable) || (e.code == 38)) || (e.code == 40)) || (e.code == 33)) || (e.code == 34)) {
selectedIndex = 0 + selectedIndex;
bInKeyDown = true;
var _local3 = dropdown;
_local3.keyDown(e);
bInKeyDown = false;
selectedIndex = __dropdown.selectedIndex;
}
}
function invalidateStyle(styleProp) {
__dropdown.invalidateStyle(styleProp);
super.invalidateStyle(styleProp);
}
function changeTextStyleInChildren(styleProp) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeTextStyleInChildren(styleProp);
super.changeTextStyleInChildren(styleProp);
}
function changeColorStyleInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeColorStyleInChildren(sheetName, styleProp, newValue);
super.changeColorStyleInChildren(sheetName, styleProp, newValue);
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
super.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
}
function onUnload() {
__dropdown.removeMovieClip();
}
function _resizeHandler() {
var _local2 = owner;
_local2.mask._width = width;
_local2.mask._height = height;
}
function _changeHandler(obj) {
var _local2 = owner;
var _local3 = _local2.selectedIndex;
obj.target = _local2;
if (this == owner.text_mc) {
_local2.selectedIndex = undefined;
_local2.dispatchChangeEvent(obj, -1, -2);
} else {
_local2.selectedIndex = selectedIndex;
if (!_local2._showingDropdown) {
_local2.dispatchChangeEvent(obj, _local3, _local2.selectedIndex);
} else if (!_local2.bInKeyDown) {
_local2.displayDropdown(false);
}
}
}
function _scrollHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOverHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOutHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
if (0 == __dataProvider.length) {
text_mc.setText("");
delete selected;
} else if ((__dataProvider.length == ((eventObj.lastItem - eventObj.firstItem) + 1)) && (eventObj.eventName == "addItems")) {
selectedIndex = 0;
}
}
function dispatchChangeEvent(obj, prevValue, newValue) {
var _local2;
if (prevValue != newValue) {
if ((obj != undefined) && (obj.type == "change")) {
_local2 = obj;
} else {
_local2 = {type:"change"};
}
dispatchEvent(_local2);
}
}
static var symbolName = "ComboBox";
static var symbolOwner = mx.controls.ComboBox;
static var version = "2.0.2.126";
var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters);
var className = "ComboBox";
var _showingDropdown = false;
var __rowCount = 5;
var dropdownBorderStyle = undefined;
var initializing = true;
var __labelField = "label";
var bInKeyDown = false;
}
Symbol 135 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0
class mx.controls.listclasses.DataProvider extends Object
{
var length, splice, dispatchEvent, sortOn, reverse, sort;
function DataProvider (obj) {
super();
}
static function Initialize(obj) {
var _local4 = mixinProps;
var _local6 = _local4.length;
obj = obj.prototype;
var _local3 = 0;
while (_local3 < _local6) {
obj[_local4[_local3]] = mixins[_local4[_local3]];
_global.ASSetPropFlags(obj, _local4[_local3], 1);
_local3++;
}
mx.events.EventDispatcher.initialize(obj);
_global.ASSetPropFlags(obj, "addEventListener", 1);
_global.ASSetPropFlags(obj, "removeEventListener", 1);
_global.ASSetPropFlags(obj, "dispatchEvent", 1);
_global.ASSetPropFlags(obj, "dispatchQueue", 1);
Object.prototype.LargestID = 0;
Object.prototype.getID = function () {
if (this.__ID__ == undefined) {
this.__ID__ = Object.prototype.LargestID++;
_global.ASSetPropFlags(this, "__ID__", 1);
}
return(this.__ID__);
};
_global.ASSetPropFlags(Object.prototype, "LargestID", 1);
_global.ASSetPropFlags(Object.prototype, "getID", 1);
return(true);
}
function addItemAt(index, value) {
if (index < length) {
splice(index, 0, value);
} else if (index > length) {
trace("Cannot add an item past the end of the DataProvider");
return(undefined);
}
this[index] = value;
updateViews("addItems", index, index);
}
function addItem(value) {
addItemAt(length, value);
}
function addItemsAt(index, newItems) {
index = Math.min(length, index);
newItems.unshift(index, 0);
splice.apply(this, newItems);
newItems.splice(0, 2);
updateViews("addItems", index, (index + newItems.length) - 1);
}
function removeItemsAt(index, len) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < len) {
_local3.push(getItemID(index + _local2));
_local2++;
}
var _local6 = splice(index, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3});
}
function removeItemAt(index) {
var _local2 = this[index];
removeItemsAt(index, 1);
return(_local2);
}
function removeAll(Void) {
splice(0);
updateViews("removeItems", 0, length - 1);
}
function replaceItemAt(index, itemObj) {
if ((index < 0) || (index >= length)) {
return(undefined);
}
var _local3 = getItemID(index);
this[index] = itemObj;
this[index].__ID__ = _local3;
updateViews("updateItems", index, index);
}
function getItemAt(index) {
return(this[index]);
}
function getItemID(index) {
var _local2 = this[index];
if ((typeof(_local2) != "object") && (_local2 != undefined)) {
return(index);
}
return(_local2.getID());
}
function sortItemsBy(fieldName, order) {
if (typeof(order) == "string") {
sortOn(fieldName);
if (order.toUpperCase() == "DESC") {
reverse();
}
} else {
sortOn(fieldName, order);
}
updateViews("sort");
}
function sortItems(compareFunc, optionFlags) {
sort(compareFunc, optionFlags);
updateViews("sort");
}
function editField(index, fieldName, newData) {
this[index][fieldName] = newData;
dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:index, lastItem:index, fieldName:fieldName});
}
function getEditingData(index, fieldName) {
return(this[index][fieldName]);
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"];
static var evtDipatcher = mx.events.EventDispatcher;
static var mixins = new mx.controls.listclasses.DataProvider();
}
Symbol 136 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0
class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView
{
var invLayoutContent, rows, topRowZ, listContent, __dataProvider, __vPosition, tW, layoutX, layoutY, tH, invRowHeight, invalidate, __height, invUpdateControl, __cellRenderer, __labelFunction, __iconField, __iconFunction, getLength, baseRowZ, lastPosition, propertyTable, isSelected, wasKeySelected, changeFlag, clearSelected, selectItem, lastSelected, dispatchEvent, dragScrolling, _ymouse, scrollInterval, isPressed, onMouseUp, getSelectedIndex, enabled, tabEnabled, tabChildren, createEmptyMovieClip, border_mc;
function ScrollSelectList () {
super();
}
function layoutContent(x, y, w, h) {
delete invLayoutContent;
var _local4 = Math.ceil(h / __rowHeight);
roundUp = (h % __rowHeight) != 0;
var _local12 = _local4 - __rowCount;
if (_local12 < 0) {
var _local3 = _local4;
while (_local3 < __rowCount) {
rows[_local3].removeMovieClip();
delete rows[_local3];
_local3++;
}
topRowZ = topRowZ + _local12;
} else if (_local12 > 0) {
if (rows == undefined) {
rows = new Array();
}
var _local3 = __rowCount;
while (_local3 < _local4) {
var _local2 = (rows[_local3] = listContent.createObject(__rowRenderer, "listRow" + (topRowZ++), topRowZ, {owner:this, styleName:this, rowIndex:_local3}));
_local2._x = x;
_local2._y = Math.round((_local3 * __rowHeight) + y);
_local2.setSize(w, __rowHeight);
_local2.drawRow(__dataProvider.getItemAt(__vPosition + _local3), getStateAt(__vPosition + _local3));
_local2.lastY = _local2._y;
_local3++;
}
}
if (w != tW) {
var _local11 = ((_local12 > 0) ? (__rowCount) : (_local4));
var _local3 = 0;
while (_local3 < _local11) {
rows[_local3].setSize(w, __rowHeight);
_local3++;
}
}
if ((layoutX != x) || (layoutY != y)) {
var _local3 = 0;
while (_local3 < _local4) {
rows[_local3]._x = x;
rows[_local3]._y = Math.round((_local3 * __rowHeight) + y);
_local3++;
}
}
__rowCount = _local4;
layoutX = x;
layoutY = y;
tW = w;
tH = h;
}
function getRowHeight(Void) {
return(__rowHeight);
}
function setRowHeight(v) {
__rowHeight = v;
invRowHeight = true;
invalidate();
}
function get rowHeight() {
return(getRowHeight());
}
function set rowHeight(w) {
setRowHeight(w);
//return(rowHeight);
}
function setRowCount(v) {
__rowCount = v;
}
function getRowCount(Void) {
var _local2 = ((__rowCount == 0) ? (Math.ceil(__height / __rowHeight)) : (__rowCount));
return(_local2);
}
function get rowCount() {
return(getRowCount());
}
function set rowCount(w) {
setRowCount(w);
//return(rowCount);
}
function setEnabled(v) {
super.setEnabled(v);
invUpdateControl = true;
invalidate();
}
function setCellRenderer(cR) {
__cellRenderer = cR;
var _local2 = 0;
while (_local2 < rows.length) {
rows[_local2].setCellRenderer(true);
_local2++;
}
invUpdateControl = true;
invalidate();
}
function set cellRenderer(cR) {
setCellRenderer(cR);
//return(cellRenderer);
}
function get cellRenderer() {
return(__cellRenderer);
}
function set labelField(field) {
setLabelField(field);
//return(labelField);
}
function setLabelField(field) {
__labelField = field;
invUpdateControl = true;
invalidate();
}
function get labelField() {
return(__labelField);
}
function set labelFunction(func) {
setLabelFunction(func);
//return(labelFunction);
}
function setLabelFunction(func) {
__labelFunction = func;
invUpdateControl = true;
invalidate();
}
function get labelFunction() {
return(__labelFunction);
}
function set iconField(field) {
setIconField(field);
//return(iconField);
}
function setIconField(field) {
__iconField = field;
invUpdateControl = true;
invalidate();
}
function get iconField() {
return(__iconField);
}
function set iconFunction(func) {
setIconFunction(func);
//return(iconFunction);
}
function setIconFunction(func) {
__iconFunction = func;
invUpdateControl = true;
invalidate();
}
function get iconFunction() {
return(__iconFunction);
}
function setVPosition(pos) {
if (pos < 0) {
return(undefined);
}
if ((pos > 0) && (pos > ((getLength() - __rowCount) + roundUp))) {
return(undefined);
}
var _local8 = pos - __vPosition;
if (_local8 == 0) {
return(undefined);
}
__vPosition = pos;
var _local10 = _local8 > 0;
_local8 = Math.abs(_local8);
if (_local8 >= __rowCount) {
updateControl();
} else {
var _local4 = new Array();
var _local9 = __rowCount - _local8;
var _local12 = _local8 * __rowHeight;
var _local11 = _local9 * __rowHeight;
var _local6 = (_local10 ? 1 : -1);
var _local3 = 0;
while (_local3 < __rowCount) {
if (((_local3 < _local8) && (_local10)) || ((_local3 >= _local9) && (!_local10))) {
rows[_local3]._y = rows[_local3]._y + Math.round(_local6 * _local11);
var _local5 = _local3 + (_local6 * _local9);
var _local7 = __vPosition + _local5;
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
_local4[_local5].drawRow(__dataProvider.getItemAt(_local7), getStateAt(_local7), false);
} else {
rows[_local3]._y = rows[_local3]._y - Math.round(_local6 * _local12);
var _local5 = _local3 - (_local6 * _local8);
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
}
_local3++;
}
rows = _local4;
_local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].swapDepths(baseRowZ + _local3);
_local3++;
}
}
lastPosition = pos;
super.setVPosition(pos);
}
function setPropertiesAt(index, obj) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (propertyTable == undefined) {
propertyTable = new Object();
}
propertyTable[_local2] = obj;
rows[index - __vPosition].drawRow(__dataProvider.getItemAt(index), getStateAt(index));
}
function getPropertiesAt(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getPropertiesOf(obj) {
var _local2 = obj.getID();
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getStyle(styleProp) {
var _local2 = super.getStyle(styleProp);
var _local3 = mx.styles.StyleManager.colorNames[_local2];
if (_local3 != undefined) {
_local2 = _local3;
}
return(_local2);
}
function updateControl(Void) {
var _local2 = 0;
while (_local2 < __rowCount) {
rows[_local2].drawRow(__dataProvider.getItemAt(_local2 + __vPosition), getStateAt(_local2 + __vPosition));
_local2++;
}
delete invUpdateControl;
}
function getStateAt(index) {
return((isSelected(index) ? "selected" : "normal"));
}
function selectRow(rowIndex, transition, allowChangeEvent) {
if (!selectable) {
return(undefined);
}
var _local3 = __vPosition + rowIndex;
var _local8 = __dataProvider.getItemAt(_local3);
var _local5 = rows[rowIndex];
if (_local8 == undefined) {
return(undefined);
}
if (transition == undefined) {
transition = true;
}
if (allowChangeEvent == undefined) {
allowChangeEvent = wasKeySelected;
}
changeFlag = true;
if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
clearSelected(transition);
selectItem(_local3, true);
lastSelected = _local3;
_local5.drawRow(_local5.item, getStateAt(_local3), transition);
} else if (Key.isDown(16) && (multipleSelection)) {
if (lastSelected == undefined) {
lastSelected = _local3;
}
var _local4 = ((lastSelected < _local3) ? 1 : -1);
clearSelected(false);
var _local2 = lastSelected;
while (_local2 != _local3) {
selectItem(_local2, true);
if ((_local2 >= __vPosition) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "selected", false);
}
_local2 = _local2 + _local4;
}
selectItem(_local3, true);
_local5.drawRow(_local5.item, "selected", transition);
} else if (Key.isDown(17)) {
var _local7 = isSelected(_local3);
if ((!multipleSelection) || (wasKeySelected)) {
clearSelected(transition);
}
if (!((!multipleSelection) && (_local7))) {
selectItem(_local3, !_local7);
var _local9 = ((!_local7) ? "selected" : "normal");
_local5.drawRow(_local5.item, _local9, transition);
}
lastSelected = _local3;
}
if (allowChangeEvent) {
dispatchEvent({type:"change"});
}
delete wasKeySelected;
}
function dragScroll(Void) {
clearInterval(dragScrolling);
if (_ymouse < 0) {
setVPosition(__vPosition - 1);
selectRow(0, false);
var _local2 = Math.min((-_ymouse) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else if (_ymouse > __height) {
var _local3 = __vPosition;
setVPosition(__vPosition + 1);
if (_local3 != __vPosition) {
selectRow((__rowCount - 1) - roundUp, false);
}
var _local2 = Math.min((_ymouse - __height) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else {
dragScrolling = setInterval(this, "dragScroll", 15);
}
updateAfterEvent();
}
function __onMouseUp(Void) {
clearInterval(dragScrolling);
delete dragScrolling;
delete dragScrolling;
delete isPressed;
delete onMouseUp;
if (!selectable) {
return(undefined);
}
if (changeFlag) {
dispatchEvent({type:"change"});
}
delete changeFlag;
}
function moveSelBy(incr) {
if (!selectable) {
setVPosition(__vPosition + incr);
return(undefined);
}
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = -1;
}
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < __vPosition) || (_local3 >= (__vPosition + __rowCount))) {
setVPosition(_local3);
}
if ((_local2 >= ((__vPosition + __rowCount) - roundUp)) || (_local2 < __vPosition)) {
setVPosition(__vPosition + incr);
}
wasKeySelected = true;
selectRow(_local2 - __vPosition, false);
}
function keyDown(e) {
if (selectable) {
if (findInputText()) {
return(undefined);
}
}
if (e.code == 40) {
moveSelBy(1);
} else if (e.code == 38) {
moveSelBy(-1);
} else if (e.code == 34) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((__rowCount - 1) - roundUp);
} else if (e.code == 33) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((1 - __rowCount) + roundUp);
} else if (e.code == 36) {
moveSelBy(-__dataProvider.length);
} else if (e.code == 35) {
moveSelBy(__dataProvider.length);
}
}
function findInputText(Void) {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
findString(String.fromCharCode(_local2));
return(true);
}
}
function findString(str) {
if (__dataProvider.length == 0) {
return(undefined);
}
var _local4 = getSelectedIndex();
if (_local4 == undefined) {
_local4 = 0;
}
var _local6 = 0;
var _local3 = _local4 + 1;
while (_local3 != _local4) {
var _local2 = __dataProvider.getItemAt(_local3);
if (_local2 instanceof XMLNode) {
_local2 = _local2.attributes[__labelField];
} else if (typeof(_local2) != "string") {
_local2 = String(_local2[__labelField]);
}
_local2 = _local2.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
_local6 = _local3 - _local4;
break;
}
if (_local3 >= (getLength() - 1)) {
_local3 = -1;
}
_local3++;
}
if (_local6 != 0) {
moveSelBy(_local6);
}
}
function onRowPress(rowIndex) {
if (!enabled) {
return(undefined);
}
isPressed = true;
dragScrolling = setInterval(this, "dragScroll", 15);
onMouseUp = __onMouseUp;
if (!selectable) {
return(undefined);
}
selectRow(rowIndex);
}
function onRowRelease(rowIndex) {
}
function onRowRollOver(rowIndex) {
if (!enabled) {
return(undefined);
}
var _local2 = rows[rowIndex].item;
if (getStyle("useRollOver") && (_local2 != undefined)) {
rows[rowIndex].drawRow(_local2, "highlighted", false);
}
dispatchEvent({type:"itemRollOver", index:rowIndex + __vPosition});
}
function onRowRollOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (getStyle("useRollOver")) {
rows[rowIndex].drawRow(rows[rowIndex].item, getStateAt(rowIndex + __vPosition), false);
}
dispatchEvent({type:"itemRollOut", index:rowIndex + __vPosition});
}
function onRowDragOver(rowIndex) {
if (((!enabled) || (isPressed != true)) || (!selectable)) {
return(undefined);
}
if (dropEnabled) {
} else if (dragScrolling) {
selectRow(rowIndex, false);
} else {
onMouseUp = __onMouseUp;
onRowPress(rowIndex);
}
}
function onRowDragOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (dragEnabled) {
} else {
onRowRollOut(rowIndex);
}
}
function init(Void) {
super.init();
tabEnabled = true;
tabChildren = false;
if (__dataProvider == undefined) {
__dataProvider = new Array();
__dataProvider.addEventListener("modelChanged", this);
}
baseRowZ = (topRowZ = 10);
}
function createChildren(Void) {
super.createChildren();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
invLayoutContent = true;
invalidate();
}
function draw(Void) {
if (invRowHeight) {
delete invRowHeight;
__rowCount = 0;
listContent.removeMovieClip();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
}
if (invUpdateControl) {
updateControl();
}
border_mc.draw();
}
function invalidateStyle(propName) {
if (isRowStyle[propName]) {
invUpdateControl = true;
invalidate();
} else {
var _local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].invalidateStyle(propName);
_local3++;
}
}
super.invalidateStyle(propName);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList);
static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array);
var CONTENTDEPTH = 100;
var __hPosition = 0;
var __rowRenderer = "SelectableRow";
var __rowHeight = 22;
var __rowCount = 0;
var __labelField = "label";
var minScrollInterval = 30;
var dropEnabled = false;
var dragEnabled = false;
var className = "ScrollSelectList";
var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true};
var roundUp = 0;
var selectable = true;
var multipleSelection = false;
}
Symbol 137 MovieClip [__Packages.mx.controls.List] Frame 0
class mx.controls.List extends mx.controls.listclasses.ScrollSelectList
{
var border_mc, __labels, setDataProvider, roundUp, __get__rowCount, __dataProvider, __maxHPosition, invScrollProps, invalidate, __vPosition, getViewMetrics, setSize, __width, __rowHeight, totalWidth, totalHeight, displayWidth, __hScrollPolicy, vScroller, __hPosition, listContent, data, mask_mc, __height, __rowCount, invRowHeight, invLayoutContent, setScrollProperties, oldVWidth;
function List () {
super();
}
function setEnabled(v) {
super.setEnabled(v);
border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor");
border_mc.invalidate();
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function setVPosition(pos) {
pos = Math.min((__dataProvider.length - __get__rowCount()) + roundUp, pos);
pos = Math.max(0, pos);
super.setVPosition(pos);
}
function setHPosition(pos) {
pos = Math.max(Math.min(__maxHPosition, pos), 0);
super.setHPosition(pos);
hScroll(pos);
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
invScrollProps = true;
invalidate();
}
function setHScrollPolicy(policy) {
if ((policy.toLowerCase() == "auto") && (!autoHScrollAble)) {
return(undefined);
}
super.setHScrollPolicy(policy);
if (policy == "off") {
setHPosition(0);
setVPosition(Math.min((__dataProvider.length - __get__rowCount()) + roundUp, __vPosition));
}
}
function setRowCount(rC) {
if (isNaN(rC)) {
return(undefined);
}
var _local2 = getViewMetrics();
setSize(__width, ((__rowHeight * rC) + _local2.top) + _local2.bottom);
}
function layoutContent(x, y, tW, tH, dW, dH) {
totalWidth = tW;
totalHeight = tH;
displayWidth = dW;
var _local4 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (Math.max(tW, dW)) : (dW));
super.layoutContent(x, y, _local4, dH);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
var _local3 = eventObj.eventName;
if ((((_local3 == "addItems") || (_local3 == "removeItems")) || (_local3 == "updateAll")) || (_local3 == "filterModel")) {
invScrollProps = true;
invalidate("invScrollProps");
}
}
function onScroll(eventObj) {
var _local3 = eventObj.target;
if (_local3 == vScroller) {
setVPosition(_local3.scrollPosition);
} else {
hScroll(_local3.scrollPosition);
}
super.onScroll(eventObj);
}
function hScroll(pos) {
__hPosition = pos;
listContent._x = -pos;
}
function init(Void) {
super.init();
if (labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
__maxHPosition = 0;
}
function createChildren(Void) {
super.createChildren();
listContent.setMask(MovieClip(mask_mc));
border_mc.move(0, 0);
border_mc.setSize(__width, __height);
}
function getRowCount(Void) {
var _local2 = getViewMetrics();
return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount)));
}
function size(Void) {
super.size();
configureScrolling();
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
function draw(Void) {
if (invRowHeight) {
invScrollProps = true;
super.draw();
listContent.setMask(MovieClip(mask_mc));
invLayoutContent = true;
}
if (invScrollProps) {
configureScrolling();
delete invScrollProps;
}
if (invLayoutContent) {
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
super.draw();
}
function configureScrolling(Void) {
var _local2 = __dataProvider.length;
if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) {
setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition)));
}
var _local3 = getViewMetrics();
var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right));
if (_local2 == undefined) {
_local2 = 0;
}
setScrollProperties(_local4, 1, _local2, __rowHeight);
if (oldVWidth != _local4) {
invLayoutContent = true;
}
oldVWidth = _local4;
}
static var symbolOwner = mx.controls.List;
static var symbolName = "List";
var className = "List";
static var version = "2.0.2.126";
var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1};
var scrollDepth = 1;
var __vScrollPolicy = "on";
var autoHScrollAble = false;
}
Symbol 138 MovieClip [__Packages.mx.effects.Tween] Frame 0
class mx.effects.Tween extends Object
{
static var IntervalToken;
var arrayMode, listener, initVal, endVal, startTime, updateFunc, endFunc, ID;
function Tween (listenerObj, init, end, dur) {
super();
if (listenerObj == undefined) {
return;
}
if (typeof(init) != "number") {
arrayMode = true;
}
listener = listenerObj;
initVal = init;
endVal = end;
if (dur != undefined) {
duration = dur;
}
startTime = getTimer();
if (duration == 0) {
endTween();
} else {
AddTween(this);
}
}
static function AddTween(tween) {
tween.ID = ActiveTweens.length;
ActiveTweens.push(tween);
if (IntervalToken == undefined) {
Dispatcher.DispatchTweens = DispatchTweens;
IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval);
}
}
static function RemoveTweenAt(index) {
var _local2 = ActiveTweens;
if (((index >= _local2.length) || (index < 0)) || (index == undefined)) {
return(undefined);
}
_local2.splice(index, 1);
var _local4 = _local2.length;
var _local1 = index;
while (_local1 < _local4) {
_local2[_local1].ID--;
_local1++;
}
if (_local4 == 0) {
clearInterval(IntervalToken);
delete IntervalToken;
}
}
static function DispatchTweens(Void) {
var _local2 = ActiveTweens;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
updateAfterEvent();
}
function doInterval() {
var _local2 = getTimer() - startTime;
var _local3 = getCurVal(_local2);
if (_local2 >= duration) {
endTween();
} else if (updateFunc != undefined) {
listener[updateFunc](_local3);
} else {
listener.onTweenUpdate(_local3);
}
}
function getCurVal(curTime) {
if (arrayMode) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < initVal.length) {
_local3[_local2] = easingEquation(curTime, initVal[_local2], endVal[_local2] - initVal[_local2], duration);
_local2++;
}
return(_local3);
}
return(easingEquation(curTime, initVal, endVal - initVal, duration));
}
function endTween() {
if (endFunc != undefined) {
listener[endFunc](endVal);
} else {
listener.onTweenEnd(endVal);
}
RemoveTweenAt(ID);
}
function setTweenHandlers(update, end) {
updateFunc = update;
endFunc = end;
}
function easingEquation(t, b, c, d) {
return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b);
}
static var ActiveTweens = new Array();
static var Interval = 10;
static var Dispatcher = new Object();
var duration = 3000;
}
Symbol 139 MovieClip [__Packages.mx.accessibility.ComboBoxAccImpl] Frame 0
class mx.accessibility.ComboBoxAccImpl extends mx.accessibility.ComboBaseAccImpl
{
var _accImpl, _setSelectedItem;
function ComboBoxAccImpl (master) {
super(master);
master._setSelectedItem = master.setSelectedItem;
master.setSelectedItem = setSelectedItem;
}
static function enableAccessibility() {
mx.accessibility.ListAccImpl.enableAccessibility();
}
function createAccessibilityImplementation() {
_accImpl = new mx.accessibility.ComboBoxAccImpl(this);
}
function setSelectedItem(v) {
var _local2 = _setSelectedItem(v);
Accessibility.sendEvent(MovieClip(this), 0, _accImpl.EVENT_OBJECT_VALUECHANGE, true);
return(_local2);
}
static function hookAccessibility() {
mx.controls.ComboBox.prototype.createAccessibilityImplementation = mx.accessibility.ComboBoxAccImpl.prototype.createAccessibilityImplementation;
return(true);
}
var owner = mx.controls.ComboBox;
static var accessibilityHooked = hookAccessibility();
}
Symbol 140 MovieClip [__Packages.mx.accessibility.ScrollSelectListAccImpl] Frame 0
class mx.accessibility.ScrollSelectListAccImpl extends mx.accessibility.AccImpl
{
var master, children, _accImpl, STATE_SYSTEM_NORMAL, _selectRow, __vPosition, multipleSelection, isSelected, enabled, _addItemAt, _removeItemAt, _removeAll;
function ScrollSelectListAccImpl (m) {
super(m);
master._accProps = new Object();
children = new Array();
master._selectRow = master.selectRow;
master.selectRow = selectRow;
master._removeAll = master.removeAll;
master.removeAll = removeAll;
master._removeItemAt = master.removeItemAt;
master.removeItemAt = removeItemAt;
master._addItemAt = master.addItemAt;
master.addItemAt = addItemAt;
}
static function enableAccessibility() {
}
function createAccessibilityImplementation() {
_accImpl = new mx.accessibility.ScrollSelectListAccImpl(this);
}
function get_accRole(childId) {
var _local2 = ((childId == 0) ? (ROLE) : (ROLE_SYSTEM_LISTITEM));
return(_local2);
}
function getChildIdArray() {
var _local4 = new Array();
var _local2 = 0;
while (_local2 < master.getLength()) {
var _local3 = _local2 + 1;
children[_local3] = _local2;
_local4[_local2] = _local3;
_local2++;
}
return(_local4);
}
function get_accName(childId) {
if (childId == 0) {
return(undefined);
}
var _local3 = childId - 1;
var _local2 = master.getItemAt(_local3);
if (typeof(_local2) == "string") {
return(_local2);
}
return(_local2.label);
}
function get_accState(childId) {
var _local2 = (master.enabled ? (STATE_SYSTEM_NORMAL) : (STATE_SYSTEM_UNAVAILABLE));
if (childId == 0) {
return(_local2);
}
var _local3 = childId - 1;
if ((_local3 < master.__vPosition) || (_local3 >= (master.__vPosition + master.__rowCount))) {
_local2 = (_local2 | STATE_SYSTEM_OFFSCREEN) | STATE_SYSTEM_INVISIBLE;
}
var _local4 = (master.isSelected(_local3) ? ((STATE_SYSTEM_SELECTED | STATE_SYSTEM_SELECTABLE) | _local2) : (STATE_SYSTEM_SELECTABLE | _local2));
return(_local4);
}
function accLocation(childId) {
var _local2 = childId - 1;
if ((_local2 < master.__vPosition) || (_local2 >= (master.__vPosition + master.__rowCount))) {
} else {
var _local3 = master.listContent["listRow" + (master.baseRowZ + (_local2 - master.__vPosition))];
return(_local3);
}
}
function get_accFocus() {
var _local2 = master.getSelectedIndex();
if (_local2 != undefined) {
return(_local2 + 1);
}
return(0);
}
function get_accSelection() {
var _local4 = new Array();
var _local3 = master.getSelectedIndices();
if (_local3 != undefined) {
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(_local3[_local2] + 1);
_local2++;
}
} else {
var _local5 = master.getSelectedIndex();
if (_local5 != undefined) {
_local4.push(_local5 + 1);
}
}
return(_local4);
}
function selectRow(rowIndex) {
var _local5 = _selectRow(rowIndex);
var _local3 = __vPosition + rowIndex;
var _local2 = _local3 + 1;
if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
Accessibility.sendEvent(MovieClip(this), _local2, _accImpl.EVENT_OBJECT_SELECTION);
} else if (Key.isDown(16) && (multipleSelection)) {
Accessibility.sendEvent(MovieClip(this), 0, _accImpl.EVENT_OBJECT_SELECTIONWITHIN);
} else if (Key.isDown(17) && (multipleSelection)) {
var _local4 = isSelected(_local3);
if (_local4) {
Accessibility.sendEvent(MovieClip(this), _local2, _accImpl.EVENT_OBJECT_SELECTIONADD);
} else {
Accessibility.sendEvent(MovieClip(this), _local2, _accImpl.EVENT_OBJECT_SELECTIONREMOVE);
}
}
return(_local5);
}
function addItemAt(index, label, data) {
if ((index < 0) || (!enabled)) {
return(undefined);
}
_addItemAt(index, label, data);
_accImpl.children[index + 1] = index;
}
function removeItemAt(index) {
_removeItemAt(index);
delete _accImpl.children[index + 1];
}
function removeAll(Void) {
_removeAll();
_accImpl.children = new Array();
}
static function hookAccessibility() {
mx.controls.listclasses.ScrollSelectList.prototype.createAccessibilityImplementation = mx.accessibility.ScrollSelectListAccImpl.prototype.createAccessibilityImplementation;
return(true);
}
var owner = mx.controls.listclasses.ScrollSelectList;
var ROLE = 33;
var ROLE_SYSTEM_LISTITEM = 34;
var EVENT_OBJECT_SELECTION = 32774;
var EVENT_OBJECT_SELECTIONADD = 32775;
var EVENT_OBJECT_SELECTIONREMOVE = 32776;
var EVENT_OBJECT_SELECTIONWITHIN = 32777;
var STATE_SYSTEM_UNAVAILABLE = 1;
var STATE_SYSTEM_SELECTED = 2;
var STATE_SYSTEM_INVISIBLE = 32768;
var STATE_SYSTEM_OFFSCREEN = 65536;
var STATE_SYSTEM_SELECTABLE = 2097152;
static var accessibilityHooked = hookAccessibility();
}
Symbol 141 MovieClip [__Packages.mx.accessibility.ListAccImpl] Frame 0
class mx.accessibility.ListAccImpl extends mx.accessibility.ScrollSelectListAccImpl
{
var _accImpl;
function ListAccImpl (master) {
super(master);
}
static function enableAccessibility() {
}
function createAccessibilityImplementation() {
_accImpl = new mx.accessibility.ListAccImpl(this);
}
static function hookAccessibility() {
mx.controls.List.prototype.createAccessibilityImplementation = mx.accessibility.ListAccImpl.prototype.createAccessibilityImplementation;
return(true);
}
var owner = mx.controls.List;
static var accessibilityHooked = hookAccessibility();
}
Symbol 142 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.SkipButton] Frame 0
class MMQuizzingV3.MMQuizClasses.SkipButton extends MMQuizzingV3.MMQuizClasses.QuestionButton
{
var hideButtonInReview, allowmouseclick, _parent;
function SkipButton () {
super();
hideButtonInReview = false;
}
function onRelease(Void) {
if (allowmouseclick) {
doRelease();
}
}
function doRelease(Void) {
super.onRelease();
if (_parent._parent.m_isQuestionPoolSlide == true) {
_parent._parent.m_cpSlideHolder.nextSlide(0);
} else {
_parent._parent.gotoFrame(_parent._parent.stopOnFrame, true);
_parent._parent.nextSlide(0);
}
}
function Submit(bOk) {
if (bOk) {
doRelease();
}
}
static var symbolName = "SkipButton";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.SkipButton);
var className = "SkipButton";
}
Symbol 143 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.ReviewSlideButtons] Frame 0
class MMQuizzingV3.MMQuizClasses.ReviewSlideButtons extends MMQuizzingV3.MMQuizClasses.QuestionButton
{
var allowmouseclick, _name, _parent;
function ReviewSlideButtons () {
super();
}
function onRelease(Void) {
if (allowmouseclick) {
doRelease();
}
}
function doRelease(Void) {
super.onRelease();
trace("this._name " + _name);
if (_name == "_nextBtn") {
_parent.resumeSlide();
} else if (_name == "_emailBtn") {
_parent.sendEmail(0);
} else if (_name == "_reviewBtn") {
_parent.reviewAnswers(0);
}
}
function Submit(bOk) {
if (bOk) {
doRelease();
}
}
static var symbolName = "ReviewSlideButtons";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.ReviewSlideButtons);
var className = "ReviewSlideButtons";
}
Symbol 144 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.BackButton] Frame 0
class MMQuizzingV3.MMQuizClasses.BackButton extends MMQuizzingV3.MMQuizClasses.QuestionButton
{
var hideButtonInReview, allowmouseclick, _parent;
function BackButton () {
super();
hideButtonInReview = false;
}
function onRelease(Void) {
if (allowmouseclick) {
doRelease();
}
}
function doRelease(Void) {
super.onRelease();
if (_parent._parent.m_isQuestionPoolSlide == true) {
_parent._parent.m_cpSlideHolder.previousSlide(0);
} else {
_parent._parent.previousSlide(0);
}
}
function Submit(bOk) {
if (bOk) {
doRelease();
}
}
static var symbolName = "BackButton";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.BackButton);
var className = "BackButton";
}
Symbol 145 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.SeqDragText] Frame 0
class MMQuizzingV3.MMQuizClasses.SeqDragText extends mx.core.UIComponent
{
var _parent, myColor, prevColor, enabled, origX, _x, origY, _y, _alpha, staticMC, duplicateMovieClip, move, hitArea_mc, createEmptyObject;
function SeqDragText () {
super();
}
function get sequenceAnswer() {
if (_parent.className == "SequenceAnswer") {
return(MMQuizzingV3.MMQuizClasses.SequenceAnswer(_parent));
}
return(null);
}
function get question() {
var _local2 = _parent;
while (_local2) {
if (_local2.className == "Question") {
return(MMQuizzingV3.MMQuizClasses.Question(_local2));
}
if (_local2._question.className == "Question") {
return(MMQuizzingV3.MMQuizClasses.Question(_local2._question));
}
_local2 = _local2._parent;
}
return(null);
}
function init() {
super.init();
setHitArea();
setHitAreaColor();
}
function onLoad() {
var _local2 = this;
_parent.answerScore.chosenAnswer = _local2.myText;
sequenceAnswer.__set__chosenAnswer(_local2.myText);
}
function setHitAreaColor() {
myColor = new Color(_parent.bg_name);
myColor.setRGB(16776960);
_parent.bg_name._visible = false;
}
function onRollOver() {
var _local2 = this;
if (!_parent.enabled) {
return(undefined);
}
prevColor = myColor.getRGB();
_parent.bg_name._visible = true;
myColor.setRGB(14803425);
var _local3;
}
function onRollOut() {
if (!_parent.enabled) {
return(undefined);
}
_parent.bg_name._visible = false;
var _local2 = this;
myColor.setRGB(prevColor);
}
function onPress() {
if (enabled && (!question.__get__inReviewMode())) {
super.onPress();
origX = _x;
origY = _y;
origAlpha = _alpha;
staticMC = duplicateMovieClip("_staticMC", 1600);
staticMC.startDrag();
}
}
function onRelease() {
if (enabled && (!question.__get__inReviewMode())) {
super.onRelease();
staticMC.stopDrag();
clearInterval(intervalID);
intervalID = 0;
staticMC.removeMovieClip();
move(origX, origY);
sequenceAnswer.reArrangeAnswers();
}
}
function onReleaseOutside() {
onRelease();
}
function setHitArea() {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
var _local3 = _parent.getBounds(this);
_local2._x = _local3.xMin;
_local2._y = _local3.yMin;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, -10, _local3.xMax - _local3.xMin, (_local3.yMax - _local3.yMin) - 4);
_local2.endFill();
_local2._alpha = 0;
_local2._visible = true;
}
static var symbolName = "SeqDragText";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.SeqDragText);
var className = "SeqDragText";
var origAlpha = 0;
var intervalID = 0;
}
Symbol 146 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.SequenceAnswer] Frame 0
class MMQuizzingV3.MMQuizClasses.SequenceAnswer extends mx.core.UIComponent
{
var _parent, doLater, _y, ans_to_attach, ansToAttachOnClear, ansTextAttached, useHandCursor, _answerScore, _chosenAnswer, attachMovie, getNextHighestDepth, _name;
function SequenceAnswer () {
super();
}
function get question() {
return(MMQuizzingV3.MMQuizClasses.Question(_parent));
}
function get answered() {
return(true);
}
function get answeredCorrectly() {
var _local2 = this;
if (_local2.correct_Answer == _local2.ansTextAttached) {
return(true);
}
return(false);
}
function init() {
super.init();
doLater(this, "setInvisible");
question.registerAnswer(this);
}
function onLoad() {
if (_y > question.max_y) {
question.max_y = _y;
}
if (_y < question.min_y) {
question.min_y = _y;
}
}
function clearAnswer() {
ans_to_attach = ansToAttachOnClear;
var _local2 = ansTextAttached + "_mc";
this[_local2].removeMovieClip();
setupAnswerText();
}
function setEnabled(enabled) {
var _local2 = ansTextAttached + "_mc";
this[_local2].enabled = enabled;
useHandCursor = enabled;
}
function initAnswerScore() {
if (!_answerScore) {
_answerScore = new MMQuizzingV3.MMQuizClasses.AnswerScore();
_answerScore.__set__answerType(className);
_answerScore.__set__answerID(answerID);
}
_answerScore.__set__correctAnswer(correctAnswer);
_answerScore.__set__chosenAnswer(chosenAnswer);
}
function setAnswerScore() {
_answerScore.__set__correctAnswer(correctAnswer);
}
function get answerScore() {
return(_answerScore);
}
function get chosenAnswer() {
return(_chosenAnswer);
}
function set chosenAnswer(newText) {
_chosenAnswer = newText;
//return(chosenAnswer);
}
function get correctAnswer() {
var _local2 = this;
var _local3 = "-1";
return(_local2.correctAnswerText);
}
function setInvisible() {
var _local2 = this;
_parent[_local2.ans_to_attach]._visible = false;
}
function setupAnswerText() {
var _local3 = this;
var _local2 = ansTextAttached + "_mc";
if (this[_local2] != undefined) {
this[_local2].removeMovieClip();
}
attachMovie(ans_to_attach, ans_to_attach + "_mc", getNextHighestDepth());
ansTextAttached = _local3.ans_to_attach;
question.CurrentAnsOrder_array[_name] = ansTextAttached;
}
function shiftArray(topToBottom) {
var _local4 = question.shiftAnsOrder_array.length;
var _local2;
if (topToBottom) {
_local2 = 0;
while (_local2 < _local4) {
if (question.shiftAnsOrder_array[_local2] == ansTextAttached) {
break;
}
_local2++;
}
question.temp_array = question.shiftAnsOrder_array.slice(_local2, _local4);
var _local5 = question.temp_array.shift();
question.temp_array.push(_local5);
var _local3 = 0;
while (_local3 < question.temp_array.length) {
question.shiftAnsOrder_array[_local2 + _local3] = question.temp_array[_local3];
_local3++;
}
} else {
_local2 = _local4 - 1;
while (_local2 > -1) {
if (question.shiftAnsOrder_array[_local2] == ansTextAttached) {
break;
}
_local2--;
}
question.temp_array = question.shiftAnsOrder_array.slice(0, _local2 + 1);
var _local6 = question.temp_array.pop();
question.temp_array.unshift(_local6);
var _local3 = 0;
while (_local3 < question.temp_array.length) {
question.shiftAnsOrder_array[_local3] = question.temp_array[_local3];
_local3++;
}
}
}
function shiftAnswers(topToBottom) {
var _local3 = 0;
for (var _local6 in question.CurrentAnsOrder_array) {
question.shiftAnsOrder_array[_local3] = question.CurrentAnsOrder_array[_local6];
_local3++;
}
shiftArray(topToBottom);
var _local7 = question.shiftAnsOrder_array.length;
_local3 = _local7 - 1;
for (var _local5 in question.__get__answers()) {
question.__get__answers()[_local5].ans_to_attach = question.shiftAnsOrder_array[_local3--];
}
var _local2;
var _local4;
for (var _local5 in question.__get__answers()) {
_local2 = question.__get__answers()[_local5];
_local4 = _local2.ansTextAttached + "_mc";
_local2[_local4].removeMovieClip();
_local2.setupAnswerText();
}
}
function reArrangeAnswers() {
var _local7;
var _local21;
var _local22;
var _local20 = this;
if ((_root._ymouse > (question.max_y + 15)) || (_root._ymouse < (question.min_y - 5))) {
var _local19 = _root._ymouse > (question.max_y + 15);
shiftAnswers(_local19);
return(undefined);
}
trace("do shifting");
var _local5 = -1;
var _local6 = -1;
var _local4 = question.__get__answers();
var _local3 = 0;
while (_local3 < _local4.length) {
_local7 = _local4[_local3];
if (_local7 == this) {
_local5 = _local3;
}
if (_local7.hitTest(_root._xmouse, _root._ymouse)) {
_local6 = _local3;
}
_local3++;
}
if ((_local5 == -1) || (_local6 == -1)) {
return(undefined);
}
if (_local5 == _local6) {
return(undefined);
}
trace(((" shift_start " + _local5) + " shift_end ") + _local6);
var _local14 = _local5 - _local6;
if ((_local14 == 1) || (_local14 == -1)) {
trace("doing swap");
var _local12 = _local4[_local5];
var _local13 = _local4[_local6];
var _local17 = _local12.ansTextAttached;
var _local15 = _local13.ansTextAttached;
_local12.ans_to_attach = _local15;
_local13.ans_to_attach = _local17;
_local12.setupAnswerText();
_local13.setupAnswerText();
return(undefined);
}
var _local8 = new Array();
if (_local5 < _local6) {
var _local9 = _local5;
while (_local9 <= _local6) {
_local8.push(_local4[_local9].ansTextAttached);
_local9++;
}
var _local16 = _local8.shift();
_local8.push(_local16);
var _local11 = 0;
var _local10;
_local9 = _local5;
while (_local9 <= _local6) {
_local7 = _local4[_local9];
_local7.ans_to_attach = _local8[_local11++];
_local10 = _local7.ansTextAttached + "_mc";
_local7[_local10].removeMovieClip();
_local7.setupAnswerText();
_local9++;
}
} else if (_local5 > _local6) {
var _local9 = _local6;
while (_local9 <= _local5) {
_local8.push(_local4[_local9].ansTextAttached);
_local9++;
}
var _local18 = _local8.pop();
_local8.unshift(_local18);
var _local11 = 0;
_local9 = _local6;
while (_local9 <= _local5) {
_local7 = _local4[_local9];
_local7.ans_to_attach = _local8[_local11++];
var _local10 = _local7.ansTextAttached + "_mc";
_local7[_local10].removeMovieClip();
_local7.setupAnswerText();
_local9++;
}
}
}
static var symbolName = "SequenceAnswer";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.SequenceAnswer);
var className = "SequenceAnswer";
var answerID = "";
}
Symbol 147 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.DragText] Frame 0
class MMQuizzingV3.MMQuizClasses.DragText extends mx.core.UIComponent
{
var _parent, enabled, origX, _x, origY, _y, _alpha, staticMC, duplicateMovieClip, getNextHighestDepth, startDrag, stopDrag, move, dropTarget, hitArea_mc, createEmptyObject, getBounds, lineStyle, moveTo, lineTo, clear;
function DragText () {
super();
}
function get matchAnswer() {
if (_parent.className == "MatchAnswer") {
return(MMQuizzingV3.MMQuizClasses.MatchAnswer(_parent));
}
return(null);
}
function get question() {
var _local2 = _parent;
while (_local2) {
if (_local2.className == "Question") {
return(MMQuizzingV3.MMQuizClasses.Question(_local2));
}
if (_local2._question.className == "Question") {
return(MMQuizzingV3.MMQuizClasses.Question(_local2._question));
}
_local2 = _local2._parent;
}
return(null);
}
function init() {
super.init();
setHitArea();
}
function onPress() {
if (enabled && (!question.__get__inReviewMode())) {
super.onPress();
origX = _x;
origY = _y;
origAlpha = _alpha;
staticMC = duplicateMovieClip("_staticMC", getNextHighestDepth());
startDrag();
clearInterval(intervalID);
intervalID = setInterval(doDragging, 100, this);
}
}
function onRelease() {
if (enabled && (!question.__get__inReviewMode())) {
super.onRelease();
stopDrag();
clearInterval(intervalID);
intervalID = 0;
staticMC.removeMovieClip();
move(origX, origY);
if (matchAnswer) {
matchAnswer.dragRelease(dropTarget);
} else {
dropTarget.__get__matchAnswer().dragRelease(this);
}
if (dropTarget) {
dropTarget.eraseHilite();
dropTarget = null;
}
}
}
function onReleaseOutside() {
onRelease();
}
static function doDragging(draggedObj) {
var _local4 = new Array();
var _local11 = draggedObj.__get__question();
for (var _local13 in _local11) {
var _local2 = _local11[_local13];
if (_local2.hitTest(draggedObj)) {
if (_local2.className == "DragText") {
if (draggedObj.__get__matchAnswer() != null) {
_local4.push(_local2);
}
} else if (_local2.className == "MatchAnswer") {
var _local5 = MMQuizzingV3.MMQuizClasses.MatchAnswer(_local2);
if (_local5._choiceEntry.hitTest(draggedObj) || (_local5._dragText.hitTest(draggedObj))) {
if (draggedObj.__get__matchAnswer() == null) {
_local4.push(_local2._dragText);
}
}
}
}
}
if (draggedObj.dropTarget) {
draggedObj.dropTarget.eraseHilite();
draggedObj.dropTarget = null;
}
if (_local4.length > 0) {
var _local12 = null;
var _local10 = Infinity;
for (var _local14 in _local4) {
var _local8 = MMQuizzingV3.MMQuizClasses.DragText(_local4[_local14]);
var _local3 = _local8.getBounds(draggedObj);
var _local7 = ((_local3.xMin + _local3.xMax) / 2) - draggedObj._xmouse;
var _local6 = ((_local3.yMin + _local3.yMax) / 2) - draggedObj._ymouse;
var _local9 = (_local7 * _local7) + (_local6 * _local6);
if (_local9 < _local10) {
_local10 = _local9;
_local12 = _local8;
}
}
if (_local12) {
draggedObj.dropTarget = _local12;
draggedObj.dropTarget.drawHilite();
}
}
}
function setHitArea() {
if (hitArea_mc == undefined) {
if (typeof(mx.core.UIObject.safeCreateEmptyObject) == "function") {
mx.core.UIObject.safeCreateEmptyObject(this, "hitArea_mc", 200);
} else {
createEmptyObject("hitArea_mc", 200);
}
}
var _local2 = hitArea_mc;
var _local3 = getBounds(this);
_local2._x = _local3.xMin;
_local2._y = _local3.yMin;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, _local3.xMax - _local3.xMin, _local3.yMax - _local3.yMin);
_local2.endFill();
_local2._alpha = 0;
_local2._visible = true;
}
function drawHilite() {
if (drawHiliteAlpha) {
origAlpha = _alpha;
_alpha = hiliteAlpha;
}
if (drawHiliteOutline) {
var _local2 = getBounds(this);
lineStyle(3, hiliteColor);
moveTo(_local2.xMin, _local2.yMin);
lineTo(_local2.xMax, _local2.yMin);
lineTo(_local2.xMax, _local2.yMax);
lineTo(_local2.xMin, _local2.yMax);
lineTo(_local2.xMin, _local2.yMin);
}
}
function eraseHilite() {
if (drawHiliteAlpha) {
_alpha = origAlpha;
}
if (drawHiliteOutline) {
clear();
}
}
static var symbolName = "DragText";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.DragText);
var className = "DragText";
var drawHiliteOutline = false;
var drawHiliteAlpha = true;
var hiliteColor = 7712491;
var hiliteAlpha = 50;
var choiceID = "";
var origAlpha = 0;
var intervalID = 0;
}
Symbol 148 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.MatchAnswer] Frame 0
class MMQuizzingV3.MMQuizClasses.MatchAnswer extends mx.core.UIComponent
{
var _parent, _choiceEntry, _correctAnswer, _dragText, _prevChoice, doLater, clear, lineStyle, moveTo, lineTo, getBounds, _answerScore, dispatchEvent;
function MatchAnswer () {
super();
}
function get question() {
return(MMQuizzingV3.MMQuizClasses.Question(_parent));
}
function get chosenAnswer() {
return(_choiceEntry.__get__text());
}
function get correctAnswer() {
return(_correctAnswer);
}
function set correctAnswer(answer) {
var _local2 = answer.length - 1;
while (answer.charAt(_local2) == " ") {
_local2--;
}
_correctAnswer = answer.substr(0, _local2 + 1);
//return(correctAnswer);
}
function get answered() {
return(_choiceEntry.__get__length() > 0);
}
function get answeredCorrectly() {
return(_choiceEntry.__get__text() == correctAnswer);
}
function setEnabled(enabled) {
_choiceEntry.enabled = enabled;
_dragText.enabled = enabled;
super.setEnabled(enabled);
}
function get choiceEntry() {
return(_choiceEntry);
}
function init() {
_prevChoice = "";
super.init();
doLater(this, "setupTextInput");
question.registerAnswer(this);
doLater(this, "initAnswerScore");
}
function setupTextInput() {
_choiceEntry.setStyle("fontFamily", textInputFontFamily);
_choiceEntry.setStyle("fontSize", textInputFontSize);
_choiceEntry.setStyle("backgroundColor", textInputBackgroundColor);
_choiceEntry.setStyle("borderWidth", textInputBorderWidth);
_choiceEntry.useHandCursor = false;
_choiceEntry.tabEnabled = true;
_choiceEntry.focusEnabled = true;
_choiceEntry.__set__restrict("A-Z a-z 0-9");
_choiceEntry.addEventListener("change", this);
_choiceEntry.addEventListener("enter", this);
_choiceEntry.__set__maxChars(1);
_dragText.tabEnabled = false;
_dragText.focusEnabled = false;
}
function cleanupTextInput() {
if (_choiceEntry.__get__text().length > 1) {
if (_choiceEntry.__get__text().charAt(0) == _prevChoice) {
_choiceEntry.__set__text(_choiceEntry.__get__text().charAt(1));
} else {
_choiceEntry.__set__text(_choiceEntry.__get__text().charAt(0));
}
}
answerChosen();
}
function change(evObj) {
cleanupTextInput();
}
function enter(evObj) {
cleanupTextInput();
}
function dragRelease(dropTarget) {
if (dropTarget) {
var _local3 = this;
_local3._choiceEntry.text = dropTarget.choiceID;
dropTarget.eraseHilite();
dropTarget = null;
}
answerChosen();
}
function clearAnswer() {
_choiceEntry.__set__text("");
_prevChoice = "";
clear();
}
function setFocus() {
_choiceEntry.setFocus();
}
function findMatchingTarget(choiceID) {
if (choiceID.length != 1) {
return(null);
}
for (var _local3 in question) {
if (question[_local3].choiceID == choiceID) {
return(question[_local3]);
}
}
return(null);
}
function connectRectsWithLine(sourceBounds, destBounds) {
clear();
lineStyle(lineWidth, lineColor, 100);
moveTo(sourceBounds.xMax, (sourceBounds.yMax + sourceBounds.yMin) / 2);
lineTo(destBounds.xMin - 4, (destBounds.yMax + destBounds.yMin) / 2);
}
function drawTargetLink() {
clear();
var _local4;
_local4 = findMatchingTarget(_choiceEntry.__get__text());
if (_local4) {
var _local3 = getBounds(this);
var _local2 = _local4.getBounds(this);
if (_local3.xMin < _local2.xMin) {
connectRectsWithLine(_local3, _local2);
} else {
connectRectsWithLine(_local2, _local3);
}
}
}
function answerChosen() {
_prevChoice = _choiceEntry.text;
_answerScore.__set__chosenAnswer(_choiceEntry.text);
drawTargetLink();
dispatchEvent({type:"chooseAnswer", target:this});
if (answeredCorrectly) {
dispatchEvent({type:"chooseCorrectAnswer", target:this});
} else {
dispatchEvent({type:"chooseIncorrectAnswer", target:this});
}
}
function get answerScore() {
return(_answerScore);
}
function get retryFeedback() {
if (_retryFeedback) {
return(_retryFeedback);
}
return(null);
}
function set retryFeedback(theFeedback) {
_retryFeedback = theFeedback;
//return(retryFeedback);
}
function setFromAnswerScore(answerScore) {
_choiceEntry.__set__text(answerScore.chosenAnswer);
answerChosen();
}
function initAnswerScore() {
_answerScore = new MMQuizzingV3.MMQuizClasses.AnswerScore();
_answerScore.__set__answerType(className);
_answerScore.__set__answerID(answerID);
_answerScore.__set__correctAnswer(_correctAnswer);
_answerScore.__set__chosenAnswer("");
}
static var symbolName = "MatchAnswer";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.MatchAnswer);
var className = "MatchAnswer";
var textInputFontFamily = "Verdana";
var textInputFontSize = 12;
var textInputBackgroundColor = 16777215;
var textInputBorderWidth = 2;
var lineColor = 7829367;
var lineWidth = 2;
var answerID = "";
var _retryFeedback = null;
}
Symbol 149 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.QuestionMark] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.QuestionMark extends MMQuizzingV3.MMQuizClasses.lms.TrackingAdapter
{
var setObjectReference, resetTimer, __set__initialized_bln, isInitialized, setInitialized, interaction_ary, escapeJS, formatTime, isInteractionDataTracked, isTrackingDataLoaded, setTrackingDataLoaded, setScore, setLessonLocation, setLessonStatus, getLessonStatus, setTimeInSession, setLessonData, trim, setStatusType, getStatusType, getSuccessStatus, getScoreRaw, formatNum;
function QuestionMark (_adapterObject) {
super();
if (_adapterObject != undefined) {
setObjectReference(_adapterObject);
}
resetTimer();
}
function startDev() {
__set__initialized_bln(true);
}
function initialize() {
if (isInitialized()) {
} else {
setInitialized(true);
fscommand ("CMIInitialize");
}
return(isInitialized());
}
function flush() {
sendTrackingData();
}
function finish() {
sendTrackingData();
sendExitData();
}
function setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
var _local2 = interaction_ary.length;
interaction_ary[_local2] = new Array();
interaction_ary[_local2].interactionID_str = interactionID_str;
interaction_ary[_local2].objectiveID_str = objectiveID_str;
interaction_ary[_local2].type_str = type_str;
interaction_ary[_local2].correctResponse_str = escapeJS(correctResponse_str);
interaction_ary[_local2].studentResponse_str = escapeJS(studentResponse_str);
interaction_ary[_local2].result_str = result_str;
interaction_ary[_local2].weight_int = weight_int;
interaction_ary[_local2].latency_str = latency_str;
if ((date_str == undefined) || (date_str == "")) {
date_str = formatDate();
}
interaction_ary[_local2].date_str = date_str;
var _local5 = formatTime(latency_str);
interaction_ary[_local2].latency_str = _local5;
if ((time_str == undefined) || (time_str == "")) {
time_str = "00:00:00";
} else {
time_str = formatTime(time_str);
}
interaction_ary[_local2].time_str = time_str;
}
function sendInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
if (isInteractionDataTracked() && (isInitialized())) {
if ((interactionID_str != undefined) && (interactionID_str != "")) {
setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str);
}
var _local2 = "";
_local2 = "";
for (var _local3 in interaction_ary) {
_local2 = ((((((((((((((((((interaction_ary[_local3].date_str + ";") + interaction_ary[_local3].time_str) + ";") + interaction_ary[_local3].interactionID_str) + ";") + interaction_ary[_local3].objectiveID_str) + ";") + interaction_ary[_local3].type_str) + ";") + interaction_ary[_local3].correctResponse_str) + ";") + interaction_ary[_local3].studentResponse_str) + ";") + interaction_ary[_local3].result_str) + ";") + interaction_ary[_local3].weight_int) + ";") + interaction_ary[_local3].latency_str) + ";";
}
fscommand ("MM_cmiSendInteractionInfo", _local2);
interaction_ary = [];
}
}
function getTrackingData() {
if ((!isTrackingDataLoaded()) && (isInitialized())) {
setTrackingDataLoaded(true);
}
}
function getTrackingDataCore() {
if (isInitialized()) {
getTrackingData();
}
}
function setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str) {
if (_scoreAsPercent_bln == true) {
if ((((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) && (!isNaN(Math.round((_scoreRaw_int / _scoreMax_int) * 100)))) && (_scoreMax_int != 0)) {
setScore(Math.round((_scoreRaw_int / _scoreMax_int) * 100));
} else {
setScore(Math.round(_scoreRaw_int));
}
} else if (((_scoreRaw_int != undefined) && (_scoreMin_int != undefined)) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, _scoreMin_int, _scoreMax_int);
} else if ((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, 0, _scoreMax_int);
} else if (_scoreRaw_int != undefined) {
setScore(_scoreRaw_int);
}
if (_location_str != undefined) {
setLessonLocation(_location_str);
}
if (_statusPreference_bln != undefined) {
if ((_statusPreference_bln == true) && (_statusCompletion_str != undefined)) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
if (_statusCompletion_str != undefined) {
setLessonStatus(_statusCompletion_str, _statusSuccess_str);
}
}
} else if (_statusCompletion_str != undefined) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
setLessonStatus(_statusSuccess_str);
}
setLessonStatus(getLessonStatus());
setTimeInSession(_time_str);
if (_resumeData_str != undefined) {
setLessonData(_resumeData_str);
}
}
function isPassed(list_str, token_str) {
var _local3 = list_str.split(",");
var _local4 = token_str.substr(0, 1).toLowerCase();
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local4 == trim(_local3[_local2]).substr(0, 1)) {
return(true);
}
_local2++;
}
return(false);
}
function sendTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str) {
if (isInitialized()) {
if (_statusPreference_bln || (_statusPreference_bln == undefined)) {
setStatusType(1);
} else {
setStatusType(2);
}
setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str);
}
}
function doExit() {
fscommand ("CMISetSessionTime", getTimer() - startTime());
if (getStatusType() == 1) {
if (isPassed("passed,completed,1", getSuccessStatus())) {
fscommand ("CMISetPassed");
} else {
fscommand ("CMISetFailed");
}
} else if (isPassed("passed,completed,1", getLessonStatus())) {
fscommand ("CMISetCompleted");
}
fscommand ("CMISetScore", getScoreRaw());
fscommand ("CMIExitAU");
}
function sendExitData() {
if (isInitialized()) {
doExit();
setInitialized(false);
}
}
function setTrackingComplete() {
if (isInitialized()) {
doExit();
setInitialized(false);
}
}
function formatDate(date_var, day_str, year_str) {
var _local4;
var _local7;
if (date_var == undefined) {
var _local2 = new Date();
_local4 = formatNum(_local2.getMonth() + 1, 2);
day_str = formatNum(_local2.getDate(), 2);
year_str = _local2.getFullYear();
} else if ((typeof(date_var) == "string") && (date_var.indexOf("/") > -1)) {
var _local2 = date_var.split("/");
_local4 = formatNum(_local2[0], 2);
day_str = formatNum(_local2[1], 2);
year_str = formatNum(_local2[2], 4);
}
_local7 = (((year_str + "/") + _local4) + "/") + day_str;
return(_local7);
}
var startTime = getTimer();
}
Symbol 150 MovieClip [__Packages.captivate.monalisa.rdRandomQSlide] Frame 0
class captivate.monalisa.rdRandomQSlide extends captivate.monalisa.rdSlide
{
var m_isQuizSlide, m_isHidden, m_movie, _visible, _name, _question, m_isPlaying, gotoAndStop, m_stopped, m_paused, m_playerPaused, syncSubMovieClips, _currentframe, AddNoSkipFrame;
function rdRandomQSlide () {
super();
myTrace("rdRandomQSlide -----");
m_isQuizSlide = true;
m_isRandomQuestionSlide = true;
return;
}
function showSlide() {
myTrace("1111 showSlide");
if (m_isHidden) {
if ((m_qSlide_mc == null) || (m_qSlide_mc == undefined)) {
if (m_movie.m_currSlide.className == "rdRandomSlideData") {
myTrace("m_movie.m_currSlide.m_playOnFrame = " + m_movie.m_currSlide.m_playOnFrame);
m_qSlide_mc = captivate.monalisa.rdRandomSlideData(m_movie.m_currSlide).m_qSlide_mc;
myTrace("m_rqWeighting = " + m_rqWeighting);
m_qSlide_mc._question.setRandomQuestionData(m_rqObjectiveID, m_rqIsTracked, m_rqWeighting);
m_qSlide_mc.m_cpSlideHolder = this;
}
}
if (m_qSlide_mc != null) {
m_qSlide_mc.showSlide();
_visible = true;
m_isHidden = false;
}
}
Initialize();
}
function onEnterFrame() {
}
function onQSlideEnterFrame(qslide_mc) {
if (qslide_mc.m_submitOnFrame == qslide_mc._currentframe) {
if (m_quizPaused == false) {
myTrace("4444 onQSlideEnterFrame");
var _local3;
var _local5 = _name;
var _local4 = parseInt(_local5.substr(5));
_local3 = m_movie.m_quizPlaybackController.getSlide(_local4);
var _local6 = m_movie.m_quizPlaybackController.quizControllerForSlide(_local3);
_local6.startQuestion(_question);
m_quizPaused = true;
myTrace("calling pause Slide");
pauseSlide();
}
} else if ((qslide_mc._currentframe < qslide_mc.m_submitOnFrame) && (m_quizPaused)) {
myTrace("5555 onQSlideEnterFrame");
m_quizPaused = false;
}
}
function submit(question) {
myTrace("6666 submit");
m_attempts = question.numTries;
m_objectiveId = question.__get__questionScore().objectiveID;
m_interactionId = question.__get__questionScore().interactionID;
m_interactionType = question.__get__questionScore().interactionType;
m_correctResponse = question.__get__questionScore().correctAnswersAsString;
m_chosenResponse = question.__get__questionScore().chosenAnswersAsString;
m_weighting = question.__get__questionScore().weighting;
m_correct = question.__get__questionScore().answeredCorrectly;
m_attemptsAllowed = question.numQuestionAttemptsAllowed;
if (m_correct == true) {
succeeded(this);
} else if (m_attempts >= m_attemptsAllowed) {
failed(this);
}
}
function getCurrentFrame() {
return(m_qSlide_mc._currentframe);
}
function hideSlide() {
myTrace("7777 hideSlide");
if (!m_isHidden) {
_visible = false;
m_isHidden = true;
onLeaveSlide();
m_qSlide_mc.hideSlide();
}
}
function isPlaying() {
return(m_isPlaying);
}
function rewindSlide() {
myTrace("8888 rewindSlide");
gotoAndStop(1);
m_qSlide_mc.rewindSlide();
}
function startSlide() {
myTrace("9999 startSlide m_isPlaying = " + m_isPlaying);
if (!m_isPlaying) {
onEnterSlide();
m_stopped = false;
m_qSlide_mc.startSlide();
}
}
function onEnterSlide() {
if (!m_isPlaying) {
if (m_movie.m_quizPlaybackController) {
var _local2;
var _local4 = _name;
var _local3 = parseInt(_local4.substr(5));
_local2 = m_movie.m_quizPlaybackController.getSlide(_local3);
m_movie.m_quizPlaybackController.enterSlide(_local2);
}
m_isPlaying = true;
}
}
function onLeaveSlide() {
myTrace("101010 onLeaveSlide");
if (m_isPlaying) {
m_isPlaying = false;
}
m_qSlide_mc.onLeaveSlide();
}
function gotoFrame(frame, playSlide) {
myTrace("111111 gotoFrame frame = " + frame);
myTrace((((((_name + "::goToFrame:frame=") + frame) + ", playSlide=") + playSlide) + ", m_isPlaying=") + m_isPlaying);
if (!m_isPlaying) {
onEnterSlide();
}
m_stopped = !playSlide;
m_qSlide_mc.gotoFrame(frame, playSlide);
}
function slideCompleted() {
myTrace("121212 slideCompleted");
super.slideCompleted();
m_qSlide_mc.slideCompleted();
}
function pauseSlide() {
myTrace("131313 pauseSlide");
m_paused = true;
m_movie.pauseMovie();
m_qSlide_mc.pauseSlide();
}
function playerPauseSlide() {
myTrace("141414 playerPauseSlide");
m_playerPaused = true;
m_qSlide_mc.playerPauseSlide();
}
function playerResumeSlide() {
myTrace("151515 playerResumeSlide");
m_playerPaused = false;
m_qSlide_mc.playerResumeSlide();
}
function resumeSlide() {
myTrace("161616 resumeSlide");
var _local3;
var _local5 = _name;
var _local4 = parseInt(_local5.substr(5));
_local3 = m_movie.m_quizPlaybackController.getSlide(_local4);
var _local6 = m_movie.m_quizPlaybackController.quizControllerForSlide(_local3);
var _local2 = _local6.slideAfter(_local3);
if ((_local2 && (_local2.__get__slideNum() != (_local4 + 1))) && (_local2.__get__slideNum() != _local4)) {
m_movie.m_quizPlaybackController.gotoNextSlide();
} else if (m_movie.m_quizPlaybackController.allowedToGoToSlide(_local3, (_local2 ? (_local2) : (_local3))) == "") {
m_paused = false;
m_movie.resumeMovie();
syncSubMovieClips(_currentframe, true);
m_qSlide_mc.resumeSlide();
}
}
function Initialize() {
myTrace((("randomqslide init::" + m_qSlide_mc) + " submit @ ") + m_qSlide_mc.m_submitOnFrame);
if ((m_qSlide_mc != null) && (m_qSlide_mc != undefined)) {
AddNoSkipFrame(m_qSlide_mc.m_submitOnFrame);
}
}
function previousSlide() {
myTrace("171717 previousSlide");
m_movie.m_quizPlaybackController.gotoPrevSlide();
}
function nextSlide() {
myTrace((("m_currSlideIndex = " + m_movie.m_currSlideIndex) + " m_slideData_array.length = ") + m_movie.m_slideData_array.length);
if ((m_movie.m_currSlideIndex + 1) >= m_movie.m_slideData_array.length) {
myTrace("nextSlide playerResumeMovie");
m_movie.playerResumeMovie();
} else {
myTrace("nextSlide gotoNextSlide");
m_movie.m_quizPlaybackController.gotoNextSlide();
}
}
function reviewAnswers() {
m_movie.m_quizPlaybackController.reviewAnswersForCurrentQuiz();
}
function sendEmail() {
m_movie.m_quizPlaybackController.sendEmailResults();
}
function g_playSoundFile(id, callback) {
if (callback) {
callback();
}
return(true);
}
function myTrace(str) {
}
var m_submitOnFrame = 25;
var m_quizPaused = false;
var m_attempts = 0;
var m_attemptsAllowed = 0;
var m_objectiveId = "";
var m_interactionId = "";
var m_interactionType = "";
var m_correctResponse = "";
var m_chosenResponse = "";
var m_weighting = 0;
var m_correct = false;
var succeeded = null;
var failed = null;
var m_currentQuesNumber = 1;
var m_totalQuestions = 1;
var m_isRandomQuestionSlide = true;
var m_qSlide_mc = null;
var m_rqQuestionNumInQuiz = 1;
var m_rqIsTracked = true;
var m_rqIsSurvey = false;
var m_rqObjectiveID = 0;
var m_rqInteractionID = 0;
var m_rqWeighting = 0;
}
Symbol 151 MovieClip [__Packages.captivate.monalisa.rdQuizPlaybackController] Frame 0
class captivate.monalisa.rdQuizPlaybackController extends MMQuizzingV3.MMQuizClasses.PlaybackController
{
var needToLoadExternalTrackingSWF, needToSkipExternalTrackingSWF, _pollLMSLoadExternalTrackingSWFTimeoutSecs, _loadingResumeData, m_rdMovie, completionValueToSend, __set__sendScoreAsPercent, __set__preferredLMSType, __set__emailAddress, __set__AuthorwareDelimeter, __set__trackingLevel, trackingCharsToNotUrlEncode, trackingUrlEncodeVersionAndSession, trackingSendResumeData, _slides, getSlide, _quizParams, __get__currentSlide, _gotoSlide, turnOffTracking, __get__slides, dispatchEvent, onCurrentSlideLoaded;
function rdQuizPlaybackController () {
super();
}
function init() {
super.init();
needToLoadExternalTrackingSWF = true;
if (needToSkipExternalTrackingSWF) {
_pollLMSLoadExternalTrackingSWFTimeoutSecs = 0.5;
}
}
function findSlideByID(p_id) {
return(super.getSlide(Number(p_id)));
}
function get loadingResumeData() {
return(_loadingResumeData);
}
function set loadingResumeData(loading) {
if (_loadingResumeData && (!loading)) {
m_rdMovie.m_movie_mc.rdcmndResume = 1;
}
_loadingResumeData = loading;
//return(loadingResumeData);
}
function setMovie(_movie) {
m_rdMovie = _movie;
}
function setIsTrackedFlag(val) {
if (val) {
isTrackedFlag = true;
} else {
isTrackedFlag = false;
}
}
function setSendCompletionFlag(val) {
if (val) {
completionValueToSend = "completion";
} else {
completionValueToSend = "passed";
}
}
function setSendScoreAsPercent(val) {
if (val) {
__set__sendScoreAsPercent(true);
} else {
__set__sendScoreAsPercent(false);
}
}
function setLmsType(val) {
switch (val) {
case 1 :
__set__preferredLMSType("SCORM");
break;
case 2 :
__set__preferredLMSType("Authorware");
break;
case 3 :
__set__preferredLMSType("AICC");
break;
case 4 :
__set__preferredLMSType("Questionmark");
break;
case 5 :
__set__preferredLMSType("email");
break;
case 6 :
__set__preferredLMSType("AICC");
break;
default :
__set__preferredLMSType("");
}
}
function setEmailAddress(addr) {
__set__emailAddress(addr);
}
function setAuthorwareDelimeter(val) {
__set__AuthorwareDelimeter(val);
}
function setTrackingLevel(val) {
switch (val) {
case 0 :
__set__trackingLevel("interactions");
break;
case 2 :
__set__trackingLevel("score");
}
}
function setTrackingCharsToNotUrlEncode(escapeChars) {
trackingCharsToNotUrlEncode = escapeChars;
}
function setTrackingUrlEncodeVersionAndSession(encode) {
if (encode) {
trackingUrlEncodeVersionAndSession = true;
} else {
trackingUrlEncodeVersionAndSession = false;
}
}
function setTrackingSendResumeData(send) {
if (send) {
trackingSendResumeData = true;
} else {
trackingSendResumeData = false;
}
}
function addSlideInfo(slideNumber, firstFrameNum, lastFrameNum) {
var _local2 = new MMQuizzingV3.MMQuizClasses.SlideInfo();
_local2.__set__slideNum(slideNumber);
_local2.__set__firstFrameNum(firstFrameNum);
_local2.__set__lastFrameNum(lastFrameNum);
_local2.__set__questionsOnSlide([]);
if ((_slides == null) || (_slides == undefined)) {
_slides = new Array();
}
_slides.push(_local2);
var _local3 = _slides.length;
}
function updateSlideInfo(slideNumber, firstFrameNum, lastFrameNum, selectedPoolName, selectedQSlideIndex) {
var _local2 = getSlide(slideNumber);
_local2.__set__firstFrameNum(firstFrameNum);
_local2.__set__lastFrameNum(lastFrameNum);
_local2.__set__selectedPoolName(selectedPoolName);
_local2.__set__selectedQSlideIndex(selectedQSlideIndex);
}
function addQuizParams(q) {
_quizParams = new Array();
_quizParams.push(q);
}
function _gotoFrame(frameNum) {
m_rdMovie.gotoFrame(frameNum, true);
}
function get currentSlideContainer() {
return(m_rdMovie.m_currSlide.m_rdSlide_mc);
}
function findSlideContainer(slideNum) {
return(m_rdMovie.getSlide(slideNum).m_rdSlide_mc);
}
function getTrackingAdapterReference() {
return(m_rdMovie.m_movie_mc);
}
function enterSlide(toSlide) {
if (toSlide != __get__currentSlide()) {
_gotoSlide(toSlide, true, false);
}
}
function showUI(part, show) {
if (part == "playbar") {
if (show) {
m_rdMovie.m_movie_mc.rdcmndHidePlaybar = 0;
} else {
m_rdMovie.m_movie_mc.rdcmndHidePlaybar = 1;
}
m_rdMovie.m_disableInteractions = !show;
return(true);
}
return(false);
}
function setPlaying(playing) {
if (playing) {
m_rdMovie.m_movie_mc.rdcmndPause = 0;
m_rdMovie.m_movie_mc.rdcmndResume = 1;
} else {
m_rdMovie.m_movie_mc.rdcmndResume = 0;
m_rdMovie.m_movie_mc.rdcmndPause = 1;
}
}
function getCurrentFrame() {
return(m_rdMovie.m_movie_mc.rdinfoCurrentFrame);
}
function getNumFrames() {
return(m_rdMovie.m_movie_mc.rdinfoFrameCount);
}
function getFPS() {
return(m_rdMovie.m_movie_mc.rdinfoFPS);
}
function doFinalExit() {
turnOffTracking();
if (m_rdMovie.m_movie_mc.rdIsPreview) {
fscommand ("quit");
} else {
super.doFinalExit();
}
}
function isReady() {
return(m_rdMovie.isReady());
}
function isPlaying() {
if (m_rdMovie.m_movie_mc.rdcmndPause == 1) {
return(false);
}
if (m_rdMovie.m_movie_mc.rdcmndResume == 1) {
return(true);
}
return(m_rdMovie.m_paused == false);
}
function getScrubDuration(slideIndex) {
var _local2 = __get__slides()[slideIndex];
var _local3 = (_local2.__get__lastFrameNum() - _local2.__get__firstFrameNum()) + 1;
return((_local3 * 1000) / getFPS());
}
function getScrubStart(slideIndex) {
var _local2 = __get__slides()[slideIndex];
var _local3 = _local2.__get__firstFrameNum() - 1;
return((_local3 * 1000) / getFPS());
}
function getScrubPosition() {
var _local2 = m_rdMovie.m_movie_mc.rdcmndGotoFrameAndResume;
if (_local2 == -1) {
_local2 = m_rdMovie.m_movie_mc.rdcmndGotoFrame;
}
if (_local2 == -1) {
_local2 = m_rdMovie.m_movie_mc.rdinfocurrFrame;
}
var _local3 = __get__slides()[__get__currentSlide().__get__slideNum()];
_local2 = Math.min(Math.max(_local3.__get__firstFrameNum(), _local2), _local3.__get__lastFrameNum());
_local2 = _local2 - _local3.__get__firstFrameNum();
return((_local2 * 1000) / getFPS());
}
function gotoScrubPosition(position) {
var _local3 = __get__slides()[__get__currentSlide().__get__slideNum()];
var _local2 = _local3.__get__firstFrameNum() + Math.round((position * getFPS()) / 1000);
_local2 = Math.min(Math.max(_local3.__get__firstFrameNum(), _local2), _local3.__get__lastFrameNum());
if (isPlaying()) {
m_rdMovie.m_movie_mc.rdcmndGotoFrameAndResume = _local2;
} else {
m_rdMovie.m_movie_mc.rdcmndGotoFrame = _local2;
}
}
function onSlideChanged(i) {
super.onSlideChanged(i);
if (((m_rdMovie && (m_rdMovie.m_currSlide)) && (m_rdMovie.m_currSlide.m_rdSlide_mc)) && (m_rdMovie.m_currSlide.m_rdSlide_mc.m_isQuizSlide == true)) {
dispatchEvent({type:"quizSlideReached", target:this, slideNum:i, fromHB:false});
}
onCurrentSlideLoaded();
}
function setSize(w, h) {
var _local4;
var _local5;
if (typeof(w) == "string") {
w = parseInt(w);
}
if (typeof(h) == "string") {
h = parseInt(h);
}
if (w == undefined) {
_local4 = undefined;
} else if (!isNaN(w)) {
_local4 = Math.floor(w);
}
if (h == undefined) {
_local5 = undefined;
} else if (!isNaN(h)) {
_local5 = Math.floor(h);
}
if ((_local4 != undefined) && (_local5 != undefined)) {
m_rdMovie.size(_local4, _local5);
}
}
function getSupportsSyncPlayback() {
return(true);
}
function hasProperty(prop) {
if ((prop == "autoPlay") || (prop == "auto-play")) {
if (m_rdMovie.m_movie_mc.rdinfoHasPlaybar) {
return(false);
}
return(true);
}
return(super.hasProperty(prop));
}
function setPlayAndScrub(p_playing, p_position) {
return(false);
}
var isTrackedFlag = false;
}
Symbol 152 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.ContinueButton] Frame 0
class MMQuizzingV3.MMQuizClasses.ContinueButton extends mx.controls.Button
{
var _parent, useHandCursor, _butIcon, enabled, _hint, __set__visible, addEventListener, doLater, setState, getState, refresh, _butText, attachMovie, getSkinIDName, calcSize, getStyle, __get__x, __get__y, hitArea_mc, createEmptyObject, getBounds;
function ContinueButton () {
super();
}
function get question() {
var _local2 = _parent;
while (_local2) {
if (_local2.className == "Question") {
return(MMQuizzingV3.MMQuizClasses.Question(_local2));
}
if ((_local2._question.className = "Question")) {
return(MMQuizzingV3.MMQuizClasses.Question(_local2._question));
}
_local2 = _local2._parent;
}
return(null);
}
function hideButton() {
useHandCursor = true;
_butIcon.visible = false;
if (question.__get__inReviewMode() && (hideButtonInReview)) {
enabled = false;
}
}
function init() {
if (_hint) {
_hint._visible = false;
}
super.init();
var _local3 = this;
__set__visible(true);
addEventListener("click", this);
doLater(this, "hideButton");
}
function createChildren() {
super.createChildren();
}
function uirChanged(p_uir) {
if (!isNaN(p_uir.color.glow)) {
mouseOverHiliteColor = p_uir.color.glow;
}
drawHA();
}
function size() {
super.size();
setState(getState());
refresh();
}
function setLabel(label) {
super.setLabel("");
}
function setSkin(tag, linkageName, initObj) {
var _local2;
var _local3;
_local3 = _butText;
if (typeof(mx.managers.DepthManager.safeSetDepthTo) == "function") {
mx.managers.DepthManager.safeSetDepthTo(_local3, mx.managers.DepthManager.kTopmost);
} else {
_local3.setDepthTo(mx.managers.DepthManager.kTopmost);
}
if (initObj == undefined) {
initObj = {styleName:this};
}
_local2 = attachMovie(linkageName, getSkinIDName(tag), tag - 1000, initObj);
calcSize(tag, _local2);
_local2.move(_butIcon._x, _butIcon._y, false);
_local2.setSize(_butIcon._width, _butIcon._height, true);
return(_local2);
}
function adjustFocusRect() {
var _local2 = getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = _parent.focus_mc;
_local3.setSize(_butIcon.width + 4, _butIcon.height + 4, 0, 100, _local2);
_local3.move((__get__x() + _butIcon.x) - 2, (__get__y() + _butIcon.y) - 2);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
if (typeof(mx.core.UIObject.safeCreateEmptyObject) == "function") {
mx.core.UIObject.safeCreateEmptyObject(this, "hitArea_mc", 100);
} else {
createEmptyObject("hitArea_mc", 100);
}
}
drawHA();
}
function drawHA() {
var _local3 = getBounds(_butIcon);
var _local2 = hitArea_mc;
_local2.clear();
_local2._x = _butIcon._x;
_local2._y = _butIcon._y;
_local2.beginFill(mouseOverHiliteColor);
drawRoundRect(_local2, 0, 0, _local3.xmax, _local3.ymax, 5);
_local2.endFill();
_local2._alpha = 0;
_local2.setVisible(true);
}
static function drawRoundRect(mc, x, y, w, h, r) {
var _local10 = 0.292893218813452;
var _local9 = 0.585786437626905;
var _local3 = x + w;
var _local1 = y + h;
var _local8 = r * _local10;
var _local7 = r * _local9;
mc.moveTo(_local3, _local1 - r);
mc.lineTo(_local3, _local1 - r);
mc.curveTo(_local3, _local1 - _local7, _local3 - _local8, _local1 - _local8);
mc.curveTo(_local3 - _local7, _local1, _local3 - r, _local1);
mc.lineTo(x + r, _local1);
mc.curveTo(x + _local7, _local1, x + _local8, _local1 - _local8);
mc.curveTo(x, _local1 - _local7, x, _local1 - r);
mc.lineTo(x, y + r);
mc.curveTo(x, y + _local7, x + _local8, y + _local8);
mc.curveTo(x + _local7, y, x + r, y);
mc.lineTo(_local3 - r, y);
mc.curveTo(_local3 - _local7, y, _local3 - _local8, y + _local8);
mc.curveTo(_local3, y + _local7, _local3, y + r);
mc.lineTo(_local3, _local1 - r);
}
function drawMouseOverHilite() {
if (useWholeButtonHilite) {
var _local2 = hitArea_mc;
_local2._alpha = mouseOverHiliteAlpha;
_local2.visible = true;
}
}
function eraseMouseOverHilite() {
if (useWholeButtonHilite) {
var _local2 = hitArea_mc;
_local2._alpha = 0;
}
}
function onRollOver(Void) {
super.onRollOver();
drawMouseOverHilite();
if (_hint) {
if (hitArea_mc.hitTest(_root._xmouse, _root._ymouse)) {
_hint._visible = true;
} else {
_hint._visible = false;
}
}
}
function click(ev) {
if (_hint) {
_hint._visible = false;
}
}
function onRelease() {
if (_hint) {
_hint._visible = false;
}
}
function onRollOut(Void) {
super.onRollOut();
eraseMouseOverHilite();
if (_hint) {
_hint._visible = false;
}
}
function keyDown(e) {
if (!question.__get__showingModalFeedback()) {
super.keyDown(e);
}
}
function keyUp(e) {
if (!question.__get__showingModalFeedback()) {
super.keyUp(e);
}
}
static var symbolName = "ContinueButton";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.ContinueButton);
var className = "ContinueButton";
var useWholeButtonHilite = true;
var mouseOverHiliteColor = 3527476;
var mouseOverHiliteAlpha = 50;
var hideButtonInReview = true;
}
Symbol 153 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.NextButton] Frame 0
class MMQuizzingV3.MMQuizClasses.NextButton extends MMQuizzingV3.MMQuizClasses.ContinueButton
{
var _parent;
function NextButton () {
super();
}
function init() {
super.init();
}
function size() {
super.size();
}
function onPress(Void) {
_parent.doContinue();
}
static var symbolName = "NextButton";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.NextButton);
var className = "NextButton";
}
Symbol 154 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.rdInteractionAnswer] Frame 0
class MMQuizzingV3.MMQuizClasses.rdInteractionAnswer extends mx.core.UIComponent
{
var _parent, answerText, _enabled, dispatchEvent;
function rdInteractionAnswer () {
super();
}
function get question() {
return(MMQuizzingV3.MMQuizClasses.Question(_parent));
}
function get chosenAnswer() {
if (!answered) {
return("");
}
return(answerText);
}
function get correctAnswer() {
var _local3 = "";
if (correctAnswers.length > 0) {
_local3 = correctAnswers[0];
}
var _local2 = 1;
while (_local2 < correctAnswers.length) {
_local3 = _local3.concat(",", correctAnswers[_local2]);
_local2++;
}
return(_local3);
}
function get correctAnswersAsString() {
return(correctAnswer);
}
function init() {
correctAnswers = [];
_enabled = true;
super.init();
question.registerAnswer(this);
initAnswerScore();
}
function clearAnswer() {
}
function submit(ansText, isCorrect) {
answerText = ansText;
answeredCorrectly = isCorrect;
answered = true;
answerChosen();
}
function setEnabled(enabled) {
_enabled = enabled;
}
function isEnabed() {
return(_enabled);
}
function answerChosen() {
initAnswerScore();
_answerScore.__set__chosenAnswer(chosenAnswer);
dispatchEvent({type:"chooseAnswer", target:this});
if (answeredCorrectly) {
dispatchEvent({type:"chooseCorrectAnswer", target:this});
} else {
dispatchEvent({type:"chooseIncorrectAnswer", target:this});
}
}
function get answerScore() {
return(_answerScore);
}
function setFromAnswerScore(theAnswerScore) {
}
function initAnswerScore() {
if (!_answerScore) {
_answerScore = new MMQuizzingV3.MMQuizClasses.AnswerScore();
}
_answerScore.__set__answerType(className);
_answerScore.__set__answerID(answerID);
_answerScore.__set__correctAnswer(correctAnswer);
_answerScore.__set__chosenAnswer("");
clearAnswer();
}
static var symbolName = "rdInteractionAnswer";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.rdInteractionAnswer);
var className = "rdInteractionAnswer";
var answerID = "";
var answered = false;
var answeredCorrectly = false;
var correctAnswers = null;
var overrideAccessibility = true;
var _answerScore = null;
}
Symbol 155 MovieClip [__Packages.captivate.monalisa.rdQuizScoreDisplay] Frame 0
class captivate.monalisa.rdQuizScoreDisplay extends MMQuizzingV3.MMQuizClasses.ScoreDisplay
{
var m_nextAvailableDepth, m_useBorders, m_yOffset, m_scoreTextFormat, m_scoreTextFieldX, m_scoreTextFieldY, m_useScoreTextField, m_maxScoreTextFormat, m_maxScoreTextFieldX, m_maxScoreTextFieldY, m_useMaxScoreTextField, m_numQuestionsTextFormat, m_numQuestionsTextFieldX, m_numQuestionsTextFieldY, m_useNumQuestionsTextField, m_numRetriesTextFormat, m_numRetriesTextFieldX, m_numRetriesTextFieldY, m_useNumRetiresTextField, m_numQuizAttemptsTextFormat, m_numQuizAttemptsTextFieldX, m_numQuizAttemptsTextFieldY, m_useQuizAttemptsTextField, m_percentCorrectTextFormat, m_percentCorrectTextFieldX, m_percentCorrectTextFieldY, m_usePercentCorrectTextField, m_numQuestionsCorrectTextFormat, m_numQuestionsCorrectTextFieldX, m_numQuestionsCorrectTextFieldY, m_useNumQuestionsCorrectTextField, m_feedbackTextFormat, m_feedbackTextFieldX, m_feedbackTextFieldY, m_useFeedbackTextField, createTextField, m_scoreTextField, m_maxScoreTextField, m_numQuestionsTextField, m_numRetriesTextField, m_numQuizAttemptsTextField, m_percentCorrectTextField, m_numQuestionsCorrectTextField, m_feedbackTextField, _score, __get__score, _maxScore, __get__maxScore, _numQuestions, __get__numQuestions, _numRetries, __get__numRetries, _numQuizAttempts, __get__numQuizAttempts, _percentCorrect, __get__percentCorrect, _numQuestionsCorrect, __get__numQuestionsCorrect, __get__feedback, _curTabIndex, setDocAccessibility, setAccessibilityNonLeafNode, __get__quizController, setAccessibilityLeafNode;
function rdQuizScoreDisplay () {
super();
m_nextAvailableDepth = 0;
m_useBorders = false;
m_yOffset = (m_useBorders ? 2 : 3);
m_scoreTextFormat = new TextFormat();
m_scoreTextFieldX = 0;
m_scoreTextFieldY = 0;
m_useScoreTextField = false;
m_maxScoreTextFormat = new TextFormat();
m_maxScoreTextFieldX = 0;
m_maxScoreTextFieldY = 0;
m_useMaxScoreTextField = false;
m_numQuestionsTextFormat = new TextFormat();
m_numQuestionsTextFieldX = 0;
m_numQuestionsTextFieldY = 0;
m_useNumQuestionsTextField = false;
m_numRetriesTextFormat = new TextFormat();
m_numRetriesTextFieldX = 0;
m_numRetriesTextFieldY = 0;
m_useNumRetiresTextField = false;
m_numQuizAttemptsTextFormat = new TextFormat();
m_numQuizAttemptsTextFieldX = 0;
m_numQuizAttemptsTextFieldY = 0;
m_useQuizAttemptsTextField = false;
m_percentCorrectTextFormat = new TextFormat();
m_percentCorrectTextFieldX = 0;
m_percentCorrectTextFieldY = 0;
m_usePercentCorrectTextField = false;
m_numQuestionsCorrectTextFormat = new TextFormat();
m_numQuestionsCorrectTextFieldX = 0;
m_numQuestionsCorrectTextFieldY = 0;
m_useNumQuestionsCorrectTextField = false;
m_feedbackTextFormat = new TextFormat();
m_feedbackTextFieldX = 0;
m_feedbackTextFieldY = 0;
m_useFeedbackTextField = false;
}
function init() {
var initInterval = setInterval(function (sd) {
if ((sd.m_scoreTextFormat != null) && (sd.m_scoreTextFormat != undefined)) {
sd.internalInit();
clearInterval(initInterval);
}
}, 10, this);
}
function internalInit() {
super.init();
if (((m_scoreTextFormat != null) && (m_scoreTextFormat != undefined)) && (m_useScoreTextField)) {
createTextField("m_scoreTextField", getNextDepth(), m_scoreTextFieldX, m_scoreTextFieldY + m_yOffset, 100, 100);
myTrace("internalInit() - m_scoreTextFormat.size=" + m_scoreTextFormat.size);
m_scoreTextField.multiline = false;
m_scoreTextField.autoSize = "left";
m_scoreTextField.border = m_useBorders;
m_scoreTextField.setNewTextFormat(m_scoreTextFormat);
}
if (((m_maxScoreTextFormat != null) && (m_maxScoreTextFormat != undefined)) && (m_useMaxScoreTextField)) {
createTextField("m_maxScoreTextField", getNextDepth(), m_maxScoreTextFieldX, m_maxScoreTextFieldY + m_yOffset, 100, 100);
m_maxScoreTextField.multiline = false;
m_maxScoreTextField.autoSize = "left";
m_maxScoreTextField.border = m_useBorders;
m_maxScoreTextField.setNewTextFormat(m_maxScoreTextFormat);
}
if (((m_numQuestionsTextFormat != null) && (m_numQuestionsTextFormat != undefined)) && (m_useNumQuestionsTextField)) {
createTextField("m_numQuestionsTextField", getNextDepth(), m_numQuestionsTextFieldX, m_numQuestionsTextFieldY + m_yOffset, 100, 100);
m_numQuestionsTextField.multiline = false;
m_numQuestionsTextField.autoSize = "left";
m_numQuestionsTextField.border = m_useBorders;
m_numQuestionsTextField.setNewTextFormat(m_numQuestionsTextFormat);
}
if (((m_numRetriesTextFormat != null) && (m_numRetriesTextFormat != undefined)) && (m_useNumRetiresTextField)) {
createTextField("m_numRetriesTextField", getNextDepth(), m_numRetriesTextFieldX, m_numRetriesTextFieldY + m_yOffset, 100, 100);
m_numRetriesTextField.multiline = false;
m_numRetriesTextField.autoSize = "left";
m_numRetriesTextField.border = m_useBorders;
m_numRetriesTextField.setNewTextFormat(m_numRetriesTextFormat);
}
if (((m_numQuizAttemptsTextFormat != null) && (m_numQuizAttemptsTextFormat != undefined)) && (m_useQuizAttemptsTextField)) {
createTextField("m_numQuizAttemptsTextField", getNextDepth(), m_numQuizAttemptsTextFieldX, m_numQuizAttemptsTextFieldY + m_yOffset, 100, 100);
m_numQuizAttemptsTextField.multiline = false;
m_numQuizAttemptsTextField.autoSize = "left";
m_numQuizAttemptsTextField.border = m_useBorders;
m_numQuizAttemptsTextField.setNewTextFormat(m_numQuizAttemptsTextFormat);
}
if (((m_percentCorrectTextFormat != null) && (m_percentCorrectTextFormat != undefined)) && (m_usePercentCorrectTextField)) {
createTextField("m_percentCorrectTextField", getNextDepth(), m_percentCorrectTextFieldX, m_percentCorrectTextFieldY + m_yOffset, 100, 100);
m_percentCorrectTextField.multiline = false;
m_percentCorrectTextField.autoSize = "left";
m_percentCorrectTextField.border = m_useBorders;
m_percentCorrectTextField.setNewTextFormat(m_percentCorrectTextFormat);
}
if (((m_numQuestionsCorrectTextFormat != null) && (m_numQuestionsCorrectTextFormat != undefined)) && (m_useNumQuestionsCorrectTextField)) {
createTextField("m_numQuestionsCorrectTextField", getNextDepth(), m_numQuestionsCorrectTextFieldX, m_numQuestionsCorrectTextFieldY + m_yOffset, 100, 100);
m_numQuestionsCorrectTextField.multiline = false;
m_numQuestionsCorrectTextField.autoSize = "left";
m_numQuestionsCorrectTextField.border = m_useBorders;
m_numQuestionsCorrectTextField.setNewTextFormat(m_numQuestionsCorrectTextFormat);
}
if (((m_feedbackTextFormat != null) && (m_feedbackTextFormat != undefined)) && (m_useFeedbackTextField)) {
createTextField("m_feedbackTextField", getNextDepth(), m_feedbackTextFieldX, m_feedbackTextFieldY + m_yOffset, 100, 100);
myTrace("internalInit() - m_feedbackTextFormat.size=" + m_feedbackTextFormat.size);
m_feedbackTextField.multiline = false;
m_feedbackTextField.autoSize = "left";
m_feedbackTextField.border = m_useBorders;
m_feedbackTextField.setNewTextFormat(m_feedbackTextFormat);
}
}
function getNextDepth() {
m_nextAvailableDepth++;
return(m_nextAvailableDepth);
}
function set score(newScore) {
_score = newScore;
if ((m_scoreTextField != null) && (m_scoreTextField != undefined)) {
m_scoreTextField.text = String(_score);
}
//return(__get__score());
}
function set maxScore(newMaxScore) {
_maxScore = newMaxScore;
if ((m_maxScoreTextField != null) && (m_maxScoreTextField != undefined)) {
m_maxScoreTextField.text = String(_maxScore);
}
//return(__get__maxScore());
}
function set numQuestions(newNumQuestions) {
_numQuestions = newNumQuestions;
if ((m_numQuestionsTextField != null) && (m_numQuestionsTextField != undefined)) {
m_numQuestionsTextField.text = String(_numQuestions);
}
//return(__get__numQuestions());
}
function set numRetries(newNumRetries) {
_numRetries = newNumRetries;
if ((m_numRetriesTextField != null) && (m_numRetriesTextField != undefined)) {
m_numRetriesTextField.text = String(_numRetries);
}
//return(__get__numRetries());
}
function set numQuizAttempts(newNumQuizAttempts) {
_numQuizAttempts = newNumQuizAttempts;
if ((m_numQuizAttemptsTextField != null) && (m_numQuizAttemptsTextField != undefined)) {
m_numQuizAttemptsTextField.text = String(_numQuizAttempts);
}
//return(__get__numQuizAttempts());
}
function set percentCorrect(newPercentCorrect) {
_percentCorrect = newPercentCorrect;
if ((m_percentCorrectTextField != null) && (m_percentCorrectTextField != undefined)) {
m_percentCorrectTextField.text = String(_percentCorrect);
}
//return(__get__percentCorrect());
}
function set numQuestionsCorrect(newNumQuestionsCorrect) {
_numQuestionsCorrect = newNumQuestionsCorrect;
if ((m_numQuestionsCorrectTextField != null) && (m_numQuestionsCorrectTextField != undefined)) {
m_numQuestionsCorrectTextField.text = String(_numQuestionsCorrect);
}
//return(__get__numQuestionsCorrect());
}
function set feedback(newFeedback) {
if ((m_feedbackTextField != null) && (m_feedbackTextField != undefined)) {
m_feedbackTextField.text = String(newFeedback);
}
//return(__get__feedback());
}
function setAdvanceButtonAccessibility(o, theName) {
if (o) {
var _local3 = new Object();
o._accProps = _local3;
o._accProps.silent = false;
o._accProps.forceSimple = true;
o._accProps.name = theName;
o.tabChildren = false;
o.tabIndex = _curTabIndex++;
o.tabEnabled = true;
o.focusEnabled = true;
}
}
function setAccessibility() {
var _local2 = this;
_curTabIndex = 57344;
setDocAccessibility();
setAccessibilityNonLeafNode(__get__quizController().__get__playbackController().__get__currentSlideContainer(), true);
setAccessibilityNonLeafNode(this, true);
if (_local2._cp_scoreLbl) {
setAccessibilityLeafNode(_local2._cp_scoreLbl, _local2._cp_scoreLbl._accText);
setAccessibilityLeafNode(_local2.m_scoreTextField, _local2.m_scoreTextField.text);
}
if (_local2._cp_maxScoreLbl) {
setAccessibilityLeafNode(_local2._cp_maxScoreLbl, _local2._cp_maxScoreLbl._accText);
setAccessibilityLeafNode(_local2.m_maxScoreTextField, _local2.m_maxScoreTextField.text);
}
if (_local2._cp_numQuestionsCorrectLbl) {
setAccessibilityLeafNode(_local2._cp_numQuestionsCorrectLbl, _local2._cp_numQuestionsCorrectLbl._accText);
setAccessibilityLeafNode(_local2.m_numQuestionsCorrectTextField, _local2.m_numQuestionsCorrectTextField.text);
}
if (_local2._cp_numQuestionsLbl) {
setAccessibilityLeafNode(_local2._cp_numQuestionsLbl, _local2._cp_numQuestionsLbl._accText);
setAccessibilityLeafNode(_local2.m_numQuestionsTextField, _local2.m_numQuestionsTextField.text);
}
if (_local2._cp_percentCorrectLbl) {
setAccessibilityLeafNode(_local2._cp_percentCorrectLbl, _local2._cp_percentCorrectLbl._accText);
setAccessibilityLeafNode(_local2.m_percentCorrectTextField, _local2.m_percentCorrectTextField.text);
}
if (_local2._cp_numQuizAttemptsLbl) {
setAccessibilityLeafNode(_local2._cp_numQuizAttemptsLbl, _local2._cp_numQuizAttemptsLbl._accText);
setAccessibilityLeafNode(_local2.m_numQuizAttemptsTextField, _local2.m_numQuizAttemptsTextField.text);
}
if (_local2.m_feedbackTextField) {
setAccessibilityLeafNode(_local2.m_feedbackTextField, _local2.m_feedbackTextField.text);
}
_local2.ButtonAccImpl.enableAccessibility();
if (_local2._parent._nextBtn) {
setAdvanceButtonAccessibility(_local2._parent._nextBtn, _local2._parent._nextBtn._accText);
}
if (_local2._parent._reviewBtn) {
setAdvanceButtonAccessibility(_local2._parent._reviewBtn, _local2._parent._reviewBtn._accText);
}
if (_local2._parent._emailBtn) {
setAdvanceButtonAccessibility(_local2._parent._emailBtn, _local2._parent._emailBtn._accText);
}
Accessibility.updateProperties();
}
function myTrace(msg) {
}
}
Symbol 156 MovieClip [__Packages.captivate.monalisa.rdQuizFeedback] Frame 0
class captivate.monalisa.rdQuizFeedback extends MMQuizzingV3.MMQuizClasses.Feedback
{
var m_soundID, m_failureLevel, addEventListener, _parent, _onlyDoAction;
function rdQuizFeedback () {
super();
m_soundID = -1;
m_failureLevel = -1;
}
function init() {
var initInterval = setInterval(function (rdQuizFeedbackObj) {
if (rdQuizFeedbackObj.m_failureLevel != undefined) {
rdQuizFeedbackObj.internalInit();
clearInterval(initInterval);
}
}, 10, this);
}
function internalInit() {
super.init();
addEventListener("feedbackStarted", this);
if (m_failureLevel >= 0) {
_parent.registerIncorrectFeedback(m_failureLevel, this);
}
}
function feedbackStarted() {
if (m_soundID > -1) {
if (_parent._parent.m_isQuestionPoolSlide == true) {
_parent._parent.m_movie.m_soundHandler.StartItemSound(m_soundID, 0, _parent._parent.m_isQuestionPoolSlide, _parent._parent._parent);
} else {
_parent._parent.m_movie.m_soundHandler.StartItemSound(m_soundID, 0);
}
}
}
function get onlyDoAction() {
return(_onlyDoAction);
}
function set onlyDoAction(doAction) {
_onlyDoAction = doAction;
//return(onlyDoAction);
}
}
Symbol 157 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.lms.EMail] Frame 0
class MMQuizzingV3.MMQuizClasses.lms.EMail extends MMQuizzingV3.MMQuizClasses.lms.TrackingAdapter
{
var setObjectReference, resetTimer, setInitialized, isInitialized, interaction_ary, escapeJS, formatTime, formatDate, isTrackingDataLoaded, setTrackingDataLoaded, setScore, setLessonLocation, setLessonStatus, timer_str, setTimeInSession, setLessonData, getLessonStatus, isRDPreview, isInteractionDataTracked, emailInterval_var, getTimeInSession, getScoreMin, getScoreMax, getScoreRaw, getScore, getLessonLocation;
function EMail (_adapterObject, emailTo) {
super();
if (_adapterObject != undefined) {
setObjectReference(_adapterObject);
}
emailTo_str = emailTo;
resetTimer();
}
function initialize() {
setInitialized(true);
return(isInitialized());
}
function flush() {
sendEMail();
}
function finish() {
if (isInitialized() || (emailModified_bln)) {
}
setInitialized(false);
}
function setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
var _local2 = interaction_ary.length;
interaction_ary[_local2] = new Array();
interaction_ary[_local2].interactionID_str = interactionID_str;
interaction_ary[_local2].objectiveID_str = objectiveID_str;
interaction_ary[_local2].type_str = type_str;
interaction_ary[_local2].correctResponse_str = escapeJS(correctResponse_str);
interaction_ary[_local2].studentResponse_str = escapeJS(studentResponse_str);
interaction_ary[_local2].result_str = result_str;
interaction_ary[_local2].weight_int = weight_int;
interaction_ary[_local2].latency_str = formatTime(latency_str);
if ((date_str == undefined) || (date_str == "")) {
date_str = formatDate();
}
interaction_ary[_local2].date_str = date_str;
if ((time_str == undefined) || (time_str == "")) {
time_str = formatTime(0);
} else {
time_str = formatTime(time_str);
}
interaction_ary[_local2].time_str = time_str;
}
function sendInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str) {
if ((interactionID_str != undefined) && (interactionID_str != "")) {
setInteractionData(interactionID_str, objectiveID_str, type_str, correctResponse_str, studentResponse_str, result_str, weight_int, latency_str, date_str, time_str);
emailModified_bln = true;
}
}
function getTrackingData() {
if (!isTrackingDataLoaded()) {
setTrackingDataLoaded(true);
}
}
function getTrackingDataCore() {
getTrackingData();
}
function setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str) {
if (_scoreAsPercent_bln == true) {
if ((((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) && (!isNaN(Math.round((_scoreRaw_int / _scoreMax_int) * 100)))) && (_scoreMax_int != 0)) {
setScore(Math.round((_scoreRaw_int / _scoreMax_int) * 100));
} else {
setScore(Math.round(_scoreRaw_int));
}
} else if (((_scoreRaw_int != undefined) && (_scoreMin_int != undefined)) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, _scoreMin_int, _scoreMax_int);
} else if ((_scoreRaw_int != undefined) && (_scoreMax_int != undefined)) {
setScore(_scoreRaw_int, 0, _scoreMax_int);
} else if (_scoreRaw_int != undefined) {
setScore(_scoreRaw_int);
} else {
setScore();
}
if ((_location_str != undefined) && (_location_str != "")) {
setLessonLocation(_location_str);
}
if (_statusPreference_bln != undefined) {
if ((_statusPreference_bln == true) && (_statusCompletion_str != undefined)) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
setLessonStatus(_statusSuccess_str);
}
} else if (_statusCompletion_str != undefined) {
setLessonStatus(_statusCompletion_str);
} else if (_statusSuccess_str != undefined) {
setLessonStatus(_statusSuccess_str);
}
if (((_time_str != undefined) && (_time_str != "")) || (timer_str == undefined)) {
setTimeInSession(_time_str);
} else {
setTimeInSession();
}
if ((_resumeData_str != undefined) && (_resumeData_str != "")) {
setLessonData(_resumeData_str);
}
setLessonStatus(getLessonStatus());
}
function sendTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str) {
var _local2 = "";
setTrackingData(_scoreRaw_int, _scoreMin_int, _scoreMax_int, _scoreAsPercent_bln, _location_str, _statusCompletion_str, _statusSuccess_str, _statusPreference_bln, _time_str, _resumeData_str);
if (_scoreAsPercent_bln) {
scoreAsPercent_bln = true;
}
emailModified_bln = true;
}
function sendExitData() {
finish();
}
function setTrackingComplete() {
finish();
}
function sendEMail() {
var _local4 = "";
var _local5 = "";
var _local3 = return_str;
if (isRDPreview || (_root.FlashPlayer)) {
_local4 = (((emailTo_str + "?subject=") + buildEMailSubject()) + "&body=") + buildEMailBodyCore(_local3);
_local5 = buildEMailBodyInteractionHeader(_local3) + escape(_local3);
_local5 = _local5 + buildEMailBodyInteraction(_local3);
if ((_local4.length + _local5.length) < 2000) {
}
fscommand ("execfile", "mailto:" + _local4);
} else {
_local3 = "|";
if (isInteractionDataTracked() && (interaction_ary.length > 0)) {
getURL ((((((("javascript:padMail('" + emailTo_str) + ";','") + buildEMailSubject()) + "','") + buildEMailBodyCore(_local3)) + buildEMailBodyInteractionHeader(_local3)) + "');");
emailInterval_var = setInterval(loadInteractionData, emailInterval_int * 1000, this, 0, _local3);
} else {
getURL (((((("javascript:padMail('" + emailTo_str) + "','") + buildEMailSubject()) + "','") + buildEMailBodyCore(_local3)) + "');");
emailInterval_var = setInterval(submitEMail, emailInterval_int * 1000, this);
}
}
emailModified_bln = false;
}
function buildEMailSubject() {
return(escape("Results: " + formatDate()));
}
function buildEMailBodyCore(emailBodyDelimiter_str) {
emailBodyDelimiter_str = ((emailBodyDelimiter_str == undefined) ? (return_str) : (emailBodyDelimiter_str));
var _local3 = "Core Data" + emailBodyDelimiter_str;
_local3 = _local3 + ((("\"Status\",\"Location\"," + (scoreAsPercent_bln ? "\"Score\"," : "\"Raw Score\",\"Max Score\",\"Min Score\",")) + "\"Time\"") + emailBodyDelimiter_str);
_local3 = _local3 + (((((((((((("\"" + getLessonStatus()) + "\",") + "\"") + getLessonLocation()) + "\",") + "\"") + (scoreAsPercent_bln ? (getScore()) : ((((getScoreRaw() + "\",\"") + getScoreMax()) + "\",\"") + getScoreMin()))) + "\",\"") + getTimeInSession()) + "\"") + emailBodyDelimiter_str) + emailBodyDelimiter_str);
return(escape(_local3));
}
function buildEMailBodyInteractionHeader(emailBodyDelimiter_str) {
var _local2 = "";
if (isInteractionDataTracked() && (interaction_ary.length > 0)) {
emailBodyDelimiter_str = ((emailBodyDelimiter_str == undefined) ? (return_str) : (emailBodyDelimiter_str));
_local2 = _local2 + ("Interaction Data" + emailBodyDelimiter_str);
_local2 = _local2 + "\"Date\",\"Time\",\"Interaction ID\",\"Objective ID\",\"Interaction Type\",\"Correct Response\",\"Student Response\",\"Result\",\"Weight\",\"Latency\"";
}
return(escape(_local2));
}
function buildEMailBodyInteraction(emailBodyDelimiter_str) {
emailBodyDelimiter_str = ((emailBodyDelimiter_str == undefined) ? (return_str) : (emailBodyDelimiter_str));
var _local3 = "";
if (isInteractionDataTracked() && (interaction_ary.length > 0)) {
var _local2 = 0;
while (_local2 < interaction_ary.length) {
_local3 = _local3 + (buildEMailInteractionData(_local2, this) + escape(emailBodyDelimiter_str));
_local2++;
}
}
return(_local3);
}
function buildEMailInteractionData(interaction_int, this_obj) {
this_obj = ((this_obj == undefined) ? this : (this_obj));
var _local4 = "";
if (interaction_int < this_obj.interaction_ary.length) {
_local4 = _local4 + ((((((((((((((((((((((((((((("\"" + this_obj.interaction_ary[interaction_int].date_str) + "\",") + "\"") + this_obj.interaction_ary[interaction_int].time_str) + "\",") + "\"") + this_obj.interaction_ary[interaction_int].interactionID_str) + "\",") + "\"") + this_obj.interaction_ary[interaction_int].objectiveID_str) + "\",") + "\"") + this_obj.interaction_ary[interaction_int].type_str) + "\",") + "\"") + this_obj.interaction_ary[interaction_int].correctResponse_str) + "\",") + "\"") + this_obj.interaction_ary[interaction_int].studentResponse_str) + "\",") + "\"") + this_obj.interaction_ary[interaction_int].result_str) + "\",") + "\"") + this_obj.interaction_ary[interaction_int].weight_int) + "\",") + "\"") + this_obj.interaction_ary[interaction_int].latency_str) + "\"");
}
return(_local4);
}
function submitEMail(this_obj) {
clearInterval(this_obj.emailInterval_var);
getURL ("javascript:sendMail()");
}
function loadInteractionData(this_obj, interaction_int, emailBodyDelimiter_str) {
clearInterval(this_obj.emailInterval_var);
var _local2 = "";
if (interaction_int < this_obj.interaction_ary.length) {
_local2 = _local2 + this_obj.buildEMailInteractionData(interaction_int, this_obj);
getURL (("javascript:appendEmailBody('" + _local2) + "');");
interaction_int++;
this_obj.emailInterval_var = setInterval(this_obj.loadInteractionData, this_obj.emailInterval_int * 1000, this_obj, interaction_int, emailBodyDelimiter_str);
} else {
this_obj.emailInterval_var = setInterval(this_obj.submitEMail, this_obj.emailInterval_int * 1000, this_obj);
}
}
var emailTo_str = "";
var emailBody_str = "";
var emailSubject_str = "";
var return_str = newline;
var scoreAsPercent_bln = false;
var emailModified_bln = false;
var emailInterval_int = 0.1;
}
Symbol 158 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.LikertAnswer] Frame 0
class MMQuizzingV3.MMQuizClasses.LikertAnswer extends mx.core.UIComponent
{
var _dataExt, allAnswers, _parent, radioGroup, tabChildren, tabEnabled, focusEnabled, doLater, _answerScore, dispatchEvent;
function LikertAnswer () {
super();
init();
}
function get responseCount() {
return(_responseCount);
}
function set responseCount(theCount) {
_responseCount = theCount;
var _local2;
var _local3;
_local2 = 8;
while (_local2 > 0) {
_local3 = this["radioButton_mc" + _local2];
if (_local2 > theCount) {
_local3.removeMovieClip();
} else {
_local3.setGroupName("radioGroup");
_local3.setGroupName("radioGroup");
}
_local2--;
}
//return(responseCount);
}
function get dataExt() {
return(_dataExt);
}
function set dataExt(data) {
_dataExt = data;
var _local5 = null;
var _local3;
var _local2;
allAnswers = [];
_local5 = new XML(data);
_local3 = _local5.firstChild.firstChild;
while (_local3 != null) {
_local2 = _local3.firstChild;
while (_local2 != null) {
if (_local2.attributes.id == "10064") {
var _local4 = _local2.attributes.value;
allAnswers.push(_local4);
}
_local2 = _local2.nextSibling;
}
_local3 = _local3.nextSibling;
}
//return(dataExt);
}
function get question() {
return(MMQuizzingV3.MMQuizClasses.Question(_parent));
}
function get chosenAnswerID() {
var _local4 = mx.controls.RadioButton(radioGroup.selectedRadio);
if (_local4 == null) {
return(-1);
}
var _local2 = _local4._name;
if (_local2 == null) {
return(-1);
}
var _local5;
var _local3;
_local3 = "radioButton_mc";
_local5 = _local2.lastIndexOf(_local3);
_local5 = _local5 + _local3.length;
_local2 = _local2.substring(_local5, _local2.length);
return(Number(_local2));
}
function get chosenAnswer() {
var _local2 = chosenAnswerID - 1;
if (_local2 >= 0) {
return(allAnswers[_local2]);
}
return("");
}
function get correctAnswer() {
return(chosenAnswer());
}
function get answered() {
return((radioGroup.selectedRadio != null) && (radioGroup.selectedRadio != undefined));
}
function get answeredCorrectly() {
return(true);
}
function setEnabled(enabled) {
radioGroup.setEnabled(enabled);
}
function init() {
if (!_inited) {
super.init();
question.registerAnswer(this);
tabChildren = true;
tabEnabled = false;
focusEnabled = false;
doLater(this, "initAnswerScore");
_inited = true;
}
}
function clearAnswer() {
for (var _local2 in radioGroup.radioList) {
radioGroup.radioList[_local2].setSelected(false);
}
}
function answerChosen() {
_answerScore.__set__chosenAnswer(chosenAnswer);
_answerScore.__set__correctAnswer(chosenAnswer);
dispatchEvent({type:"chooseAnswer", target:this});
if (answeredCorrectly) {
dispatchEvent({type:"chooseCorrectAnswer", target:this});
} else {
dispatchEvent({type:"chooseIncorrectAnswer", target:this});
}
}
function click(evObj) {
answerChosen();
}
function get answerScore() {
return(_answerScore);
}
function get retryFeedback() {
if (_retryFeedback) {
return(_retryFeedback);
}
return(null);
}
function set retryFeedback(theFeedback) {
_retryFeedback = theFeedback;
//return(retryFeedback);
}
function setFromAnswerScore(answerScore) {
var _local5 = -1;
for (_local5 in allAnswers) {
if (allAnswers[_local5] == answerScore.__get__chosenAnswer()) {
for (var _local6 in radioGroup.radioList) {
var _local2 = radioGroup.radioList[_local6]._name;
var _local3 = "radioButton_mc";
var _local4 = _local2.lastIndexOf(_local3) + _local3.length;
_local2 = _local2.substring(_local4, _local2.length);
if ((Number(_local2) - 1) == _local5) {
radioGroup.radioList[_local6].setSelected(true);
answerChosen();
return(undefined);
}
}
}
}
}
function getQuestionScore() {
var _local2 = new MMQuizzingV3.MMQuizClasses.QuestionScore();
_local2.__set__slideNum(question.__get__questionScore().slideNum);
_local2.__set__startTime(question.__get__questionScore().startTime);
_local2.__set__endTime(question.__get__questionScore().endTime);
_local2.__set__interactionType(interactionType);
_local2.__set__objectiveID(objectiveID);
_local2.__set__interactionID(interactionID);
_local2.__set__weighting(weighting);
_local2.__set__answerScores([]);
_local2.__get__answerScores().push(answerScore.copy());
_local2.__set__numTries(question.__get__questionScore().numTries);
_local2.__set__answersIncomplete(!answered);
_local2.__set__pausedMsecs(question.__get__questionScore().pausedMsecs);
_local2.__set__questionNumInQuiz(question.__get__questionScore().questionNumInQuiz);
_local2.__set__wasJudged(question.__get__questionScore().wasJudged);
_local2.__set__answeredCorrectly(true);
return(_local2);
}
function initAnswerScore() {
_answerScore = new MMQuizzingV3.MMQuizClasses.AnswerScore();
_answerScore.__set__answerType(className);
_answerScore.__set__answerID(answerID);
_answerScore.__set__correctAnswer(correctAnswer);
_answerScore.__set__chosenAnswer("");
for (var _local3 in radioGroup.radioList) {
var _local2 = mx.controls.RadioButton(radioGroup.radioList[_local3]);
_local2.useHandCursor = true;
_local2.addEventListener("click", this);
radioGroup.radioList[_local3].useHandCursor = true;
}
clearAnswer();
}
static var symbolName = "LikertAnswer";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.LikertAnswer);
var className = "LikertAnswer";
var answerID = "";
var interactionType = "likert";
var interactionID = "";
var objectiveID = "";
var weighting = 0;
var _responseCount = 0;
var _retryFeedback = null;
var _inited = false;
}
Symbol 159 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.ReviewButton] Frame 0
class MMQuizzingV3.MMQuizClasses.ReviewButton extends MMQuizzingV3.MMQuizClasses.ContinueButton
{
var _parent;
function ReviewButton () {
super();
}
function init() {
super.init();
}
function size() {
super.size();
}
function onPress(Void) {
_parent.reviewAnswers();
}
static var symbolName = "ReviewButton";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.ReviewButton);
var className = "ReviewButton";
}
Symbol 160 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.SequenceListAnswer] Frame 0
class MMQuizzingV3.MMQuizClasses.SequenceListAnswer extends mx.core.UIComponent
{
var _dataExt, _parent, _comboBox, _lockroot, doLater, _answerScore, dispatchEvent;
function SequenceListAnswer () {
super();
}
function set fontSize(fs) {
if (fs < 8) {
_fontSize = 8;
} else {
_fontSize = fs;
}
//return(fontSize);
}
function get fontSize() {
return(_fontSize);
}
function get dataExt() {
return(_dataExt);
}
function set dataExt(data) {
_dataExt = data;
var _local2 = null;
var _local6;
var _local5;
var _local4 = false;
allAnswers = [];
_local2 = new XML(data);
//return(dataExt);
}
function get question() {
return(MMQuizzingV3.MMQuizClasses.Question(_parent));
}
function get chosenAnswer() {
return(text);
}
function get text() {
return(ignoreSpaces(_comboBox.__get__text()));
}
function set text(newText) {
_comboBox.__set__text(newText);
//return(text);
}
function get answered() {
return(text.length > 0);
}
function ignoreSpaces(s) {
var _local1;
var _local3;
var _local4;
_local1 = 0;
while (s.charAt(_local1) == " ") {
_local1++;
}
_local3 = s.length - 1;
while (s.charAt(_local3) == " ") {
_local3--;
}
_local4 = (_local3 - _local1) + 1;
s = s.substr(_local1, _local4);
return(s);
}
function get answeredCorrectly() {
var _local2 = text;
var _local3;
_local2 = _local2.toUpperCase();
_local3 = correctAnswerText.toUpperCase();
if (_local2 == _local3) {
return(true);
}
return(false);
}
function setEnabled(enabled) {
super.setEnabled(enabled);
_comboBox.enabled = enabled;
}
function init() {
super.init();
question.registerAnswer(this);
_lockroot = true;
doLater(this, "initAnswerScore");
var _local3 = this;
allAnswers = question.RandomAnswers_array;
}
function clearAnswer() {
_comboBox.selectedIndex = null;
_comboBox.__set__text("");
_comboBox.selectedItem = null;
}
function answerChosen() {
_answerScore.__set__chosenAnswer(text);
dispatchEvent({type:"chooseAnswer", target:this});
if (answeredCorrectly) {
dispatchEvent({type:"chooseCorrectAnswer", target:this});
} else {
dispatchEvent({type:"chooseIncorrectAnswer", target:this});
}
}
function change(evObj) {
answerChosen();
}
function enter(evObj) {
_comboBox.open();
answerChosen();
}
function close(evObj) {
answerChosen();
}
function get answerScore() {
return(_answerScore);
}
function get retryFeedback() {
if (_retryFeedback) {
return(_retryFeedback);
}
return(null);
}
function set retryFeedback(theFeedback) {
_retryFeedback = theFeedback;
//return(retryFeedback);
}
function setFromAnswerScore(answerScore) {
var _local6 = _comboBox.enabled;
_comboBox.enabled = true;
if (_comboBox.__get__editable()) {
_comboBox.__set__text(answerScore.chosenAnswer);
} else {
var _local3 = -1;
var _local2;
var _local4;
_local3 = 0;
while (_local3 < _comboBox.length) {
_local2 = _comboBox.getItemAt(_local3);
if (_local2.label != undefined) {
_local4 = _local2.label;
} else if (_local2 != undefined) {
_local4 = _local2;
} else {
_local4 = "";
}
if (_local4 == answerScore.__get__chosenAnswer()) {
break;
}
_local3++;
}
if ((_local3 != -1) && (_local3 < _comboBox.length)) {
_comboBox.selectedIndex = _local3;
}
}
_comboBox.enabled = _local6;
answerChosen();
}
function initAnswerScore() {
_answerScore = new MMQuizzingV3.MMQuizClasses.AnswerScore();
_answerScore.__set__answerType(className);
_answerScore.__set__answerID(answerID);
_answerScore.__set__correctAnswer(correctAnswerText);
_answerScore.__set__chosenAnswer("");
}
function setupComboText() {
trace("allAnswers " + allAnswers);
_comboBox.__set__visible(true);
for (var _local2 in allAnswers) {
_comboBox.addItemAt(0, allAnswers[_local2]);
}
_comboBox.selectedIndex = null;
_comboBox.__set__text("");
_comboBox.addEventListener("change", this);
_comboBox.addEventListener("enter", this);
_comboBox.addEventListener("close", this);
_comboBox.setStyle("fontSize", fontSize);
_comboBox.setStyle("fontFamily", "Verdana");
_comboBox.__set__editable(false);
}
static var symbolName = "SequenceListAnswer";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.SequenceListAnswer);
var className = "SequenceListAnswer";
var answerID = "";
var correctAnswerText = "";
var allAnswers = new Array();
var _fontSize = 12;
var _retryFeedback = null;
}
Symbol 161 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.FillInTheBlankAnswer] Frame 0
class MMQuizzingV3.MMQuizClasses.FillInTheBlankAnswer extends mx.core.UIComponent
{
var _dataExt, allAnswers, correctAnswers, showChoicesAsList, _parent, _comboBox, _textInput, ignoreCase, _lockroot, doLater, _answerScore, dispatchEvent;
function FillInTheBlankAnswer () {
super();
}
function set fontSize(fs) {
if (fs < 8) {
_fontSize = 8;
} else {
_fontSize = fs;
}
//return(fontSize);
}
function get fontSize() {
return(_fontSize);
}
function get dataExt() {
return(_dataExt);
}
function set dataExt(data) {
_dataExt = data;
var _local6 = null;
var _local5;
var _local2;
var _local4 = false;
allAnswers = [];
correctAnswers = [];
_local6 = new XML(data);
_local5 = _local6.firstChild.firstChild;
while (_local5 != null) {
_local2 = _local5.firstChild;
while (_local2 != null) {
if (_local2.attributes.id == "10179") {
var _local3 = ignoreSpaces(_local2.attributes.value);
allAnswers.push(_local3);
correctAnswers.push(_local3);
}
if (_local2.attributes.id == "10176") {
var _local3 = ignoreSpaces(_local2.attributes.value);
allAnswers.push(_local3);
if (_local4 || (!showChoicesAsList)) {
correctAnswers.push(_local3);
}
}
if (_local2.attributes.id == "10088") {
if (_local2.attributes.value == "1") {
_local4 = true;
} else {
_local4 = false;
}
}
_local2 = _local2.nextSibling;
}
_local5 = _local5.nextSibling;
}
//return(dataExt);
}
function get question() {
return(MMQuizzingV3.MMQuizClasses.Question(_parent));
}
function get chosenAnswer() {
return(text);
}
function get correctAnswer() {
var _local3 = "";
if (correctAnswers.length > 0) {
_local3 = correctAnswers[0];
}
var _local2 = 1;
while (_local2 < correctAnswers.length) {
_local3 = _local3.concat(";", correctAnswers[_local2]);
_local2++;
}
return(_local3);
}
function get text() {
if (showChoicesAsList) {
return(ignoreSpaces(_comboBox.__get__text()));
}
return(ignoreSpaces(_textInput.__get__text()));
}
function set text(newText) {
if (showChoicesAsList) {
_comboBox.__set__text(newText);
} else {
_textInput.__set__text(newText);
}
//return(text);
}
function get answered() {
return(text.length > 0);
}
function ignoreSpaces(s) {
var _local1;
var _local3;
var _local4;
_local1 = 0;
while (s.charAt(_local1) == " ") {
_local1++;
}
_local3 = s.length - 1;
while (s.charAt(_local3) == " ") {
_local3--;
}
_local4 = (_local3 - _local1) + 1;
s = s.substr(_local1, _local4);
return(s);
}
function get answeredCorrectly() {
var _local3 = text;
var _local2;
for (var _local4 in correctAnswers) {
_local2 = correctAnswers[_local4];
if (ignoreCase) {
_local3 = _local3.toUpperCase();
_local2 = _local2.toUpperCase();
}
if (_local3 == _local2) {
return(true);
}
}
return(false);
}
function setEnabled(enabled) {
super.setEnabled(enabled);
if (showChoicesAsList) {
_comboBox.enabled = enabled;
} else {
_textInput.enabled = true;
_textInput.__set__editable(enabled);
}
}
function init() {
super.init();
question.registerAnswer(this);
_lockroot = true;
doLater(this, "initAnswerScore");
}
function clearAnswer() {
if (showChoicesAsList) {
_comboBox.selectedIndex = null;
_comboBox.__set__text("");
_comboBox.selectedItem = null;
} else {
_textInput.__set__text("");
}
}
function answerChosen() {
_answerScore.__set__chosenAnswer(text);
dispatchEvent({type:"chooseAnswer", target:this});
if (answeredCorrectly) {
dispatchEvent({type:"chooseCorrectAnswer", target:this});
} else {
dispatchEvent({type:"chooseIncorrectAnswer", target:this});
}
}
function change(evObj) {
answerChosen();
}
function enter(evObj) {
answerChosen();
}
function close(evObj) {
answerChosen();
}
function get answerScore() {
return(_answerScore);
}
function get retryFeedback() {
if (_retryFeedback) {
return(_retryFeedback);
}
return(null);
}
function set retryFeedback(theFeedback) {
_retryFeedback = theFeedback;
//return(retryFeedback);
}
function setFromAnswerScore(answerScore) {
if (showChoicesAsList) {
if (_comboBox.__get__editable()) {
_comboBox.__set__text(answerScore.chosenAnswer);
} else {
var _local3 = -1;
var _local2;
var _local4;
_local3 = 0;
while (_local3 < _comboBox.length) {
_local2 = _comboBox.getItemAt(_local3);
if (_local2.label != undefined) {
_local4 = _local2.label;
} else if (_local2 != undefined) {
_local4 = _local2;
} else {
_local4 = "";
}
if (_local4 == answerScore.__get__chosenAnswer()) {
break;
}
_local3++;
}
if ((_local3 != -1) && (_local3 < _comboBox.length)) {
_comboBox.selectedIndex = _local3;
}
}
} else {
_textInput.__set__text(answerScore.chosenAnswer);
}
answerChosen();
}
function initAnswerScore() {
_answerScore = new MMQuizzingV3.MMQuizClasses.AnswerScore();
_answerScore.__set__answerType(className);
_answerScore.__set__answerID(answerID);
_answerScore.__set__correctAnswer(correctAnswer);
_answerScore.__set__chosenAnswer("");
if (showChoicesAsList) {
_comboBox.__set__visible(true);
if (_textInput) {
_textInput.__set__visible(false);
}
if (!question.__get__shuffleAnswers()) {
setupComboText();
}
} else {
if (_comboBox) {
_comboBox.__set__visible(false);
}
_textInput.__set__visible(true);
_textInput.addEventListener("change", this);
_textInput.addEventListener("enter", this);
_textInput.setStyle("fontSize", fontSize);
}
}
function setupComboText() {
trace("allAnswers " + allAnswers);
for (var _local2 in allAnswers) {
_comboBox.addItemAt(0, allAnswers[_local2]);
}
_comboBox.selectedIndex = null;
_comboBox.__set__text("");
_comboBox.addEventListener("change", this);
_comboBox.addEventListener("enter", this);
_comboBox.addEventListener("close", this);
_comboBox.setStyle("fontSize", fontSize);
_comboBox.__set__editable(false);
_comboBox.setStyle("fontFamily", "Verdana");
}
static var symbolName = "FillInTheBlankAnswer";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.FillInTheBlankAnswer);
var className = "FillInTheBlankAnswer";
var answerID = "";
var _fontSize = 12;
var _retryFeedback = null;
}
Symbol 162 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.HotSpot] Frame 0
class MMQuizzingV3.MMQuizClasses.HotSpot extends mx.core.UIComponent
{
var onRelease, _answerScore, _parent, hitTest, doLater, _visible, dispatchEvent, _x, _width, _y, _height;
function HotSpot () {
super();
m_Qslide = SlideReference;
onRelease = function () {
};
}
function initAnswerScore() {
_answerScore = new MMQuizzingV3.MMQuizClasses.AnswerScore();
_answerScore.__set__answerType(className);
_answerScore.__set__answerID(answerID);
if (isCorrect) {
_answerScore.__set__correctAnswer("1");
} else {
_answerScore.__set__correctAnswer("0");
}
_answerScore.__set__chosenAnswer("0");
}
function get question() {
return(MMQuizzingV3.MMQuizClasses.Question(_parent));
}
function get answered() {
if (_parent._hotSpotPositionsArray.length == 0) {
return(false);
}
return(true);
}
function get answeredCorrectly() {
var _local5 = this;
var _local3 = _parent._hotSpotPositionsArray;
var _local4 = false;
var _local2 = 0;
while (_local2 < _local3.length) {
if (hitTest(_local3[_local2].xcord, _local3[_local2].ycord)) {
_local4 = true;
}
_local2++;
}
if ((_local5.isCorrect and _local4) or ((!_local5.isCorrect) and (!_local4))) {
_answerScore.__set__chosenAnswer("1");
return(true);
}
_answerScore.__set__chosenAnswer("0");
return(false);
}
function get chosenAnswer() {
trace("pani answer choosen");
if (answeredCorrectly) {
return(answerID);
}
return("0");
}
function get correctAnswer() {
trace("pani answer correct");
if (isCorrect) {
return("1");
}
return("0");
}
function get answerScore() {
return(_answerScore);
}
function init() {
super.init();
question.registerAnswer(this);
doLater(this, "initAnswerScore");
_visible = false;
}
function clearAnswer() {
var _local3 = _parent._hotSpotNamesArray;
var _local2 = 0;
while (_local2 < _parent._hotSpotNamesArray.length) {
_parent[_local3[_local2]].removeMovieClip();
_local2++;
}
}
function answerChosen() {
dispatchEvent({type:"chooseAnswer", target:this});
if (answeredCorrectly) {
dispatchEvent({type:"chooseCorrectAnswer", target:this});
} else {
dispatchEvent({type:"chooseIncorrectAnswer", target:this});
}
}
function change(evObj) {
answerChosen();
}
function enter(evObj) {
answerChosen();
}
function close(evObj) {
answerChosen();
}
function get retryFeedback() {
if (_retryFeedback) {
return(_retryFeedback);
}
return(null);
}
function set retryFeedback(theFeedback) {
_retryFeedback = theFeedback;
//return(retryFeedback);
}
function Submit(bOk) {
var _local3 = (_width / 2) + _x;
var _local2 = (_height / 2) + _y;
_parent.showOrHideHotSpot(_local3, _local2);
}
function get SlideReference() {
var _local2 = _parent._parent;
return(_local2);
}
function onEnterFrame() {
if ((m_Qslide == null) || (m_Movie == null)) {
m_Qslide = SlideReference;
if (m_Qslide.className == "rdQSlide") {
m_Movie = m_Qslide._parent.movie;
} else if (m_Qslide._parent._parent.movie != undefined) {
m_Movie = m_Qslide._parent._parent.movie;
}
}
if ((!m_Qslide._visible) && (_visible)) {
_visible = m_Qslide._visible;
if (_visible && (!question.__get__inReviewMode())) {
m_Movie.m_keyHandler.SpriteLoaded(this);
}
return(undefined);
}
if (!m_Qslide._visible) {
return(undefined);
}
if (!_visible) {
_visible = m_Qslide._visible;
if (_visible && (!question.__get__inReviewMode())) {
m_Movie.m_keyHandler.SpriteLoaded(this);
}
}
if (_visible && (question.__get__inReviewMode())) {
m_Movie.m_keyHandler.SpriteUnloaded(this);
}
}
static var symbolName = "HotSpotAnswer";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.HotSpot);
var className = "HotSpot";
var interactionType = "hotspot";
var _retryFeedback = null;
var m_isRegistered = false;
var isCorrect = false;
var answerID = "";
var m_Qslide = null;
var m_Movie = null;
}
Symbol 163 MovieClip [__Packages.MMQuizzingV3.MMQuizClasses.MatchingListAnswer] Frame 0
class MMQuizzingV3.MMQuizClasses.MatchingListAnswer extends mx.core.UIComponent
{
var _dataExt, allAnswers, _parent, _comboBox, _lockroot, doLater, _answerScore, dispatchEvent;
function MatchingListAnswer () {
super();
}
function set fontSize(fs) {
if (fs < 8) {
_fontSize = 8;
} else {
_fontSize = fs;
}
//return(fontSize);
}
function get fontSize() {
return(_fontSize);
}
function get dataExt() {
return(_dataExt);
}
function set dataExt(data) {
_dataExt = data;
var _local2 = null;
var _local6;
var _local5;
var _local4 = false;
allAnswers = [];
_local2 = new XML(data);
//return(dataExt);
}
function get question() {
return(MMQuizzingV3.MMQuizClasses.Question(_parent));
}
function get chosenAnswer() {
return(text);
}
function get text() {
return(ignoreSpaces(_comboBox.__get__text()));
}
function set text(newText) {
_comboBox.__set__text(newText);
//return(text);
}
function get answered() {
return(text.length > 0);
}
function ignoreSpaces(s) {
var _local1;
var _local3;
var _local4;
_local1 = 0;
while (s.charAt(_local1) == " ") {
_local1++;
}
_local3 = s.length - 1;
while (s.charAt(_local3) == " ") {
_local3--;
}
_local4 = (_local3 - _local1) + 1;
s = s.substr(_local1, _local4);
return(s);
}
function get answeredCorrectly() {
var _local2 = text;
var _local3;
_local2 = _local2.toUpperCase();
_local3 = correctAnswer.toUpperCase();
if (_local2 == _local3) {
return(true);
}
return(false);
}
function setEnabled(enabled) {
super.setEnabled(enabled);
_comboBox.enabled = enabled;
}
function init() {
super.init();
question.registerAnswer(this);
_lockroot = true;
doLater(this, "initAnswerScore");
}
function clearAnswer() {
_comboBox.selectedIndex = null;
_comboBox.__set__text("");
_comboBox.selectedItem = null;
}
function answerChosen() {
_answerScore.__set__chosenAnswer(text);
dispatchEvent({type:"chooseAnswer", target:this});
if (answeredCorrectly) {
dispatchEvent({type:"chooseCorrectAnswer", target:this});
} else {
dispatchEvent({type:"chooseIncorrectAnswer", target:this});
}
}
function change(evObj) {
answerChosen();
}
function enter(evObj) {
answerChosen();
}
function close(evObj) {
answerChosen();
}
function get answerScore() {
return(_answerScore);
}
function get retryFeedback() {
if (_retryFeedback) {
return(_retryFeedback);
}
return(null);
}
function set retryFeedback(theFeedback) {
_retryFeedback = theFeedback;
//return(retryFeedback);
}
function setFromAnswerScore(answerScore) {
if (_comboBox.__get__editable()) {
_comboBox.__set__text(answerScore.chosenAnswer);
} else {
var _local3 = -1;
var _local2;
var _local4;
_local3 = 0;
while (_local3 < _comboBox.length) {
_local2 = _comboBox.getItemAt(_local3);
if (_local2.label != undefined) {
_local4 = _local2.label;
} else if (_local2 != undefined) {
_local4 = _local2;
} else {
_local4 = "";
}
if (_local4 == answerScore.__get__chosenAnswer()) {
break;
}
_local3++;
}
if ((_local3 != -1) && (_local3 < _comboBox.length)) {
_comboBox.selectedIndex = _local3;
}
}
answerChosen();
}
function initAnswerScore() {
_answerScore = new MMQuizzingV3.MMQuizClasses.AnswerScore();
_answerScore.__set__answerType(className);
_answerScore.__set__answerID(answerID);
_answerScore.__set__correctAnswer(correctAnswer);
_answerScore.__set__chosenAnswer("");
if (!question.__get__shuffleAnswers()) {
setupComboText();
}
}
function setupComboText() {
_comboBox.__set__visible(true);
for (var _local2 in allAnswers) {
_comboBox.addItemAt(0, allAnswers[_local2]);
}
_comboBox.selectedIndex = null;
_comboBox.__set__text("");
_comboBox.addEventListener("change", this);
_comboBox.addEventListener("enter", this);
_comboBox.addEventListener("close", this);
_comboBox.setStyle("fontSize", fontSize);
_comboBox.setStyle("fontFamily", "Verdana");
_comboBox.__set__editable(false);
}
static var symbolName = "MatchingListAnswer";
static var symbolOwner = Object(MMQuizzingV3.MMQuizClasses.MatchingListAnswer);
var className = "MatchingListAnswer";
var answerID = "";
var correctAnswer = "";
var _fontSize = 12;
var _retryFeedback = null;
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 3
stop();
Symbol 174 MovieClip [19b420a2_1] Frame 1
#initclip 167
Object.registerClass("19b420a2_1", captivate.monalisa.rdButton);
#endinitclip
var useHandCursor = 0;
var registerOnFrame = 1;
var m_submitOnFrame = 46;
var m_useClickhandler = true;
var bDoubleClick = false;
var nDoubleClickTime = 500;
var m_done = false;
var m_attempts = 0;
var m_resumeAfterFeedback = true;
var m_continueAftersucceeded = true;
var m_continueAfterfailed = true;
var m_maxAttempts = -1;
var bClickSound = true;
var m_canResubmit = false;
function inEffect(sprite_mc, currentFrame, totalEffectFrames) {
var _local1 = ((currentFrame + 1) * sprite_mc.m_alpha) / totalEffectFrames;
sprite_mc._alpha = _local1;
}
function outEffect(sprite_mc, currentFrame, totalEffectFrames) {
var _local1 = (((totalEffectFrames - currentFrame) - 1) * sprite_mc.m_alpha) / totalEffectFrames;
sprite_mc._alpha = _local1;
}
var m_inEffectFrames = 0;
var m_outEffectFrames = 0;
var inBegin = 1;
var inEnd = 1;
var outBegin = 91;
var outEnd = 91;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 0;
var m_soundIdx = -1;
_accProps = new Object();
_accProps.name = "START ";
Accessibility.updateProperties();
Symbol 174 MovieClip [19b420a2_1] Frame 6
stop();
Symbol 174 MovieClip [19b420a2_1] Frame 11
stop();
Symbol 174 MovieClip [19b420a2_1] Frame 16
stop();
Symbol 185 MovieClip Frame 1
name = "Memory";
Symbol 185 MovieClip Frame 17
stop();
Symbol 178 MovieClip Frame 1
var textlen = "11";
Set("0/letter:text", "n");
Symbol 178 MovieClip Frame 2
Set("1/letter:text", "e");
Symbol 178 MovieClip Frame 3
Set("2/letter:text", "w");
Symbol 178 MovieClip Frame 4
Set("3/letter:text", "f");
Symbol 178 MovieClip Frame 5
Set("4/letter:text", "a");
Symbol 178 MovieClip Frame 6
Set("5/letter:text", "g");
Symbol 178 MovieClip Frame 7
Set("6/letter:text", " ");
Symbol 178 MovieClip Frame 8
Set("7/letter:text", "t");
Symbol 178 MovieClip Frame 9
Set("8/letter:text", "e");
Symbol 178 MovieClip Frame 10
Set("9/letter:text", "s");
Symbol 178 MovieClip Frame 11
Set("10/letter:text", "t");
Symbol 178 MovieClip Frame 28
stop();
Symbol 178 MovieClip Frame 29
stop();
Symbol 186 MovieClip [19b420a2_2] Frame 1
#initclip 168
Object.registerClass("19b420a2_2", captivate.monalisa.rdSwf);
#endinitclip
var nTotalFrames = 29;
var nEnterFrame = 1;
var nExitFrame = 91;
var m_playThis = 0;
var m_loop = false;
var m_sync = false;
var nPlayMovieClipFromFrame = 0;
var nPlayMovieClipToFrame = 29;
var m_isGlobal = false;
var m_swfwidth = 164;
stop();
var m_swfheight = 36;
var m_mustBeReady = false;
var m_slideFrame = 0;
function inEffect(sprite_mc, currentFrame, totalEffectFrames) {
var _local1 = ((currentFrame + 1) * sprite_mc.m_alpha) / totalEffectFrames;
sprite_mc._alpha = _local1;
}
function outEffect(sprite_mc, currentFrame, totalEffectFrames) {
var _local1 = (((totalEffectFrames - currentFrame) - 1) * sprite_mc.m_alpha) / totalEffectFrames;
sprite_mc._alpha = _local1;
}
var m_inEffectFrames = 15;
var m_outEffectFrames = 15;
var inBegin = 1;
var inEnd = 16;
var outBegin = 76;
var outEnd = 91;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 0;
var m_soundIdx = -1;
Symbol 188 MovieClip [19b420a2_3] Frame 1
#initclip 169
Object.registerClass("19b420a2_3", captivate.monalisa.rdItem);
#endinitclip
function inEffect(sprite_mc, currentFrame, totalEffectFrames) {
var _local1 = ((currentFrame + 1) * sprite_mc.m_alpha) / totalEffectFrames;
sprite_mc._alpha = _local1;
}
function outEffect(sprite_mc, currentFrame, totalEffectFrames) {
var _local1 = (((totalEffectFrames - currentFrame) - 1) * sprite_mc.m_alpha) / totalEffectFrames;
sprite_mc._alpha = _local1;
}
var m_inEffectFrames = 15;
var m_outEffectFrames = 15;
var inBegin = 1;
var inEnd = 16;
var outBegin = 76;
var outEnd = 91;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 0;
var m_soundIdx = -1;
Symbol 191 MovieClip [19b420a2_4] Frame 1
#initclip 170
Object.registerClass("19b420a2_4", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 191 MovieClip [19b420a2_4] Frame 91
stop();
Symbol 164 MovieClip [19b420a2_5] Frame 1
#initclip 171
Object.registerClass("19b420a2_5", captivate.monalisa.rdSlide);
#endinitclip
var m_projectSlideIndex = 0;
var m_Sub_mc_array = new Array("s0_i1_ta_mc");
Symbol 164 MovieClip [19b420a2_5] Frame 91
stop();
Symbol 244 MovieClip [Defaults] Frame 1
#initclip 221
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 246 MovieClip [UIObjectExtensions] Frame 1
#initclip 222
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 248 MovieClip [UIObject] Frame 1
#initclip 223
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 250 MovieClip [Border] Frame 1
#initclip 224
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 252 MovieClip [RectBorder] Frame 1
#initclip 225
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 255 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 257 MovieClip Frame 1
#initclip 226
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 262 MovieClip [FocusRect] Frame 1
#initclip 227
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 264 MovieClip [FocusManager] Frame 1
#initclip 228
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 266 MovieClip [UIComponentExtensions] Frame 1
#initclip 229
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 268 MovieClip [UIComponent] Frame 1
#initclip 230
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 270 MovieClip [TextInput] Frame 1
#initclip 231
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 274 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 277 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 282 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 285 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 291 MovieClip [SimpleButton] Frame 1
#initclip 232
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 293 MovieClip [ButtonSkin] Frame 1
#initclip 233
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 295 MovieClip [Button] Frame 1
#initclip 234
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 291 MovieClip [SimpleButton] in Symbol 295 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 297 MovieClip [CustomBorder] Frame 1
#initclip 235
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 312 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 315 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 331 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 334 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 346 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 386 MovieClip [BtnDownArrow] Frame 1
#initclip 236
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 388 MovieClip [BtnUpArrow] Frame 1
#initclip 237
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 392 MovieClip [HScrollBar] Frame 1
#initclip 238
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 295 MovieClip [Button] in Symbol 392 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 291 MovieClip [SimpleButton] in Symbol 392 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 394 MovieClip [VScrollBar] Frame 1
#initclip 239
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 295 MovieClip [Button] in Symbol 394 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 291 MovieClip [SimpleButton] in Symbol 394 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 396 MovieClip [View] Frame 1
#initclip 240
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 398 MovieClip [ScrollView] Frame 1
#initclip 241
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 392 MovieClip [HScrollBar] in Symbol 398 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 394 MovieClip [VScrollBar] in Symbol 398 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 400 MovieClip [TextArea] Frame 1
#initclip 242
Object.registerClass("TextArea", mx.controls.TextArea);
#endinitclip
stop();
Symbol 407 MovieClip [RadioThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 413 MovieClip [RadioThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 425 MovieClip [RadioButtonAssets] Frame 1
#initclip 243
mx.controls.RadioButton.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local5 = _local2._width + 4;
var _local6 = _local2._height + 4;
_local4.setSize(_local5, _local6, 8, 100, _local3);
var _local8 = _local2._x;
var _local7 = _local2._y;
_local4.move((this.x - 2) + _local8, (this.y + _local7) - 2);
};
#endinitclip
Symbol 427 MovieClip [RadioButton] Frame 1
#initclip 244
Object.registerClass("RadioButton", mx.controls.RadioButton);
#endinitclip
stop();
Instance of Symbol 295 MovieClip [Button] "foo" in Symbol 427 MovieClip [RadioButton] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 429 MovieClip [ComboBase] Frame 1
#initclip 245
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 291 MovieClip [SimpleButton] in Symbol 429 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 270 MovieClip [TextInput] in Symbol 429 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 431 MovieClip [DataProvider] Frame 1
#initclip 246
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 433 MovieClip [DataSelector] Frame 1
#initclip 247
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 435 MovieClip [SelectableRow] Frame 1
#initclip 248
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 437 MovieClip [ScrollSelectList] Frame 1
#initclip 249
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 439 MovieClip [List] Frame 1
#initclip 250
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 448 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 251
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 451 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 457 MovieClip [ComboAssets] Frame 1
#initclip 252
mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp";
mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown";
mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver";
mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled";
mx.controls.ComboBox.prototype.wrapDownArrowButton = false;
mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid";
mx.controls.ComboBox.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, {bl:0, tl:0, tr:5, br:5}, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
#endinitclip
Symbol 459 MovieClip [ComboBox] Frame 1
#initclip 253
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 439 MovieClip [List] in Symbol 459 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 465 MovieClip [CheckThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 484 MovieClip [CheckBoxAssets] Frame 1
#initclip 254
mx.controls.CheckBox.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local8 = _local2._width + 4;
var _local5 = _local2._height + 4;
_local4.setSize(_local8, _local5, 0, 100, _local3);
var _local7 = _local2._x;
var _local6 = _local2._y;
_local4.move((this.x - 2) + _local7, (this.y + _local6) - 2);
};
#endinitclip
Symbol 486 MovieClip [CheckBox] Frame 1
#initclip 255
Object.registerClass("CheckBox", mx.controls.CheckBox);
#endinitclip
stop();
Instance of Symbol 295 MovieClip [Button] in Symbol 486 MovieClip [CheckBox] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 488 MovieClip [Modal] Frame 1
#initclip 256
mx.skins.SkinElement.registerElement("Modal");
#endinitclip
Symbol 499 MovieClip [TitleBackground] Frame 1
#initclip 257
_global.mx.skins.TitleBackground = function () {
this.constructObject();
};
_global.mx.skins.TitleBackground.prototype = new mx.skins.CustomBorder();
_global.mx.skins.TitleBackground.prototype.className = "TitleBackground";
_global.mx.skins.TitleBackground.symbolName = "TitleBackground";
_global.mx.skins.TitleBackground.symbolOwner = _global.mx.skins.TitleBackground;
_global.mx.skins.TitleBackground.prototype.leftSkin = "TitleLeft";
_global.mx.skins.TitleBackground.prototype.middleSkin = "TitleMiddle";
_global.mx.skins.TitleBackground.prototype.rightSkin = "TitleRight";
_global.mx.skins.SkinElement.registerElement("TitleBackground", _global.mx.skins.TitleBackground);
_global.mx.skins.SkinElement.registerElement("TitleLeft");
_global.mx.skins.SkinElement.registerElement("TitleMiddle");
_global.mx.skins.SkinElement.registerElement("TitleRight");
_global.mx.skins.TitleBackground.prototype.init = function () {
super.init();
};
#endinitclip
Symbol 513 MovieClip [WindowAssets] Frame 1
#initclip 258
mx.containers.Window.prototype.titleStyleDeclaration = "windowStyles";
#endinitclip
Symbol 515 MovieClip [Window] Frame 1
#initclip 259
Object.registerClass("Window", mx.containers.Window);
#endinitclip
stop();
Instance of Symbol 291 MovieClip [SimpleButton] in Symbol 515 MovieClip [Window] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 517 MovieClip [AlertAssets] Frame 1
#initclip 260
mx.controls.Alert.titleStyleDeclaration = "windowStyles";
#endinitclip
Symbol 519 MovieClip [Alert] Frame 1
#initclip 261
Object.registerClass("Alert", mx.controls.Alert);
#endinitclip
stop();
Instance of Symbol 515 MovieClip [Window] in Symbol 519 MovieClip [Alert] Frame 2
//component parameters
onClipEvent (initialize) {
closeButton = false;
contentPath = "";
title = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
skinCloseDisabled = "CloseButtonDisabled";
skinCloseDown = "CloseButtonDown";
skinCloseOver = "CloseButtonOver";
skinCloseUp = "CloseButtonUp";
skinTitleBackground = "TitleBackground";
titleStyleDeclaration = "";
}
Instance of Symbol 400 MovieClip [TextArea] in Symbol 519 MovieClip [Alert] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "null";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 295 MovieClip [Button] in Symbol 519 MovieClip [Alert] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 530 MovieClip Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 532 MovieClip Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 534 MovieClip Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.126";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 536 MovieClip Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 538 MovieClip Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 540 MovieClip Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 542 MovieClip Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 544 MovieClip Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 546 MovieClip Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 548 MovieClip Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 550 MovieClip Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 552 MovieClip Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 554 MovieClip Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 556 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.126";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 558 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 560 MovieClip Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 562 MovieClip Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 564 MovieClip Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 566 MovieClip Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 568 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 570 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 572 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 574 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 576 MovieClip Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.126";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 578 MovieClip Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local5 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local5 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = createObject("HScrollBar", "hSB", 1001);
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local5)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local5, 0, colCount - _local5);
viewableColumns = _local5;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local4 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local4 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = createObject("VScrollBar", "vSB", 1002);
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local4 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local4, 0, (rwCount - _local4) + _local8);
viewableRows = _local4;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = createObject("FHScrollBar", "hSB", 1001);
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.126";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 580 MovieClip Frame 0
class mx.controls.TextArea extends mx.core.ScrollView
{
var label, invalidate, initText, dispatchValueChangedEvent, getHPosition, setHPosition, getVPosition, setVPosition, _color, focusTextField, tfx, tfy, tfw, tfh, doLater, _vpos, _hpos, hookedV, vScroller, hookedH, hScroller, getViewMetrics, __get__width, __get__height, hScrollPolicy, vScrollPolicy, getStyle, getFocusManager, addEventListener, removeEventListener, _getTextFormat;
function TextArea () {
super();
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(x) {
label.maxChars = x;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(s) {
label.restrict = ((s == "") ? null : (s));
//return(restrict);
}
function get wordWrap() {
return(label.wordWrap);
}
function set wordWrap(s) {
label.wordWrap = s;
invalidate();
//return(wordWrap);
}
function get editable() {
return(__editable);
}
function set editable(x) {
__editable = x;
label.type = (x ? "input" : "dynamic");
//return(editable);
}
function get password() {
return(label.password);
}
function set password(s) {
label.password = s;
//return(password);
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
var _local2 = label;
if (_local2.html == true) {
return(_local2.htmlText);
}
return(_local2.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
invalidate();
}
dispatchValueChangedEvent(t);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
label.hscroll = pos;
label.background = false;
//return(hPosition);
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
label.scroll = pos + 1;
label.background = false;
//return(vPosition);
}
function get maxVPosition() {
var _local2 = label.maxscroll - 1;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
var _local2 = label.maxhscroll;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function init(Void) {
super.init();
label.styleName = this;
_color = mx.core.UIObject.textColorList;
focusTextField = label;
label.owner = this;
label.onSetFocus = function (x) {
this._parent.onSetFocus(x);
};
label.onKillFocus = function (x) {
this._parent.onKillFocus(x);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = function () {
this.owner.adjustScrollBars();
this.owner.dispatchEvent({type:"change"});
this.owner.dispatchValueChangedEvent(this.owner.text);
};
label.onScroller = function () {
this.owner.hPosition = this.hscroll;
this.owner.vPosition = this.scroll - 1;
};
if (text == undefined) {
text = ("");
}
}
function createChildren(Void) {
super.createChildren();
label.autoSize = "none";
}
function layoutContent(x, y, totalW, totalH, displayW, displayH) {
var _local2 = label;
if ((((tfx != x) || (tfy != y)) || (tfw != displayW)) || (tfh != displayH)) {
tfx = x;
tfy = y;
tfw = displayW;
tfh = displayH;
_local2.move(tfx, tfy);
_local2.setSize(tfw, tfh);
doLater(this, "adjustScrollBars");
}
}
function scrollChanged(Void) {
var _local2 = Selection;
if (_local2.lastBeginIndex != undefined) {
restoreSelection();
}
label.background = false;
}
function onScroll(docObj) {
var _local3 = label;
super.onScroll(docObj);
_local3.hscroll = hPosition + 0;
_local3.scroll = vPosition + 1;
_vpos = _local3.scroll;
_hpos = _local3.hscroll;
_local3.background = false;
if (hookedV != true) {
vScroller.addEventListener("scrollChanged", this);
hookedV = true;
}
if (hookedH != true) {
hScroller.addEventListener("scrollChanged", this);
hookedH = true;
}
}
function size(Void) {
var _local3 = getViewMetrics();
var _local7 = _local3.left + _local3.right;
var _local4 = _local3.top + _local3.bottom;
var _local6 = _local3.left;
var _local5 = _local3.top;
tfx = _local6;
tfy = _local5;
tfw = __get__width() - _local7;
tfh = __get__height() - _local4;
super.size();
label.move(tfx, tfy);
label.setSize(tfw, tfh);
if (__get__height() <= 40) {
hScrollPolicy = "off";
vScrollPolicy = "off";
}
doLater(this, "adjustScrollBars");
}
function setEnabled(enable) {
vScroller.enabled = enable;
hScroller.enabled = enable;
label.type = (((editable == false) || (enable == false)) ? "dynamic" : "input");
label.selectable = enable;
var _local3 = getStyle((enable ? "color" : "disabledColor"));
if (_local3 == undefined) {
_local3 = (enable ? 0 : 8947848);
}
setColor(_local3);
}
function setColor(col) {
label.textColor = col;
}
function setFocus(Void) {
Selection.setFocus(label);
}
function onSetFocus(x) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
getFocusManager().defaultPushButtonEnabled = false;
addEventListener("keyDown", this);
super.onSetFocus(x);
}
function onKillFocus(x) {
getFocusManager().defaultPushButtonEnabled = true;
removeEventListener("keyDown", this);
super.onKillFocus(x);
}
function restoreSelection(x) {
var _local2 = Selection;
Selection.setSelection(_local2.lastBeginIndex, _local2.lastEndIndex);
label.scroll = _vpos;
label.hscroll = _hpos;
}
function getLineOffsets(Void) {
var _local16 = _getTextFormat();
var _local18 = _local16.getTextExtent2(label.text);
var _local5 = _root._getTextExtent;
_local5.setNewTextFormat(_local16);
var _local14 = label.wordWrap;
var _local9 = 0;
var _local7 = (label._width - 2) - 2;
var _local12 = new Array();
var _local17 = new String(label.text);
var _local15 = _local17.split("\r");
var _local11 = 0;
while (_local11 < _local15.length) {
_local12.push(_local9);
var _local4 = _local15[_local11];
_local5.text = _local4;
var _local13 = Math.ceil(_local5.textWidth / _local7);
var _local10 = Math.floor(_local4.length / _local13);
var _local3;
while (_local14 && (_local5.textWidth > _local7)) {
_local3 = _local4.indexOf(" ", _local10);
var _local6;
if (_local3 == -1) {
_local3 = _local4.lastIndexOf(" ");
if (_local3 == -1) {
_local3 = _local10;
}
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
if (_local5.textWidth > _local7) {
while (_local5.textWidth > _local7) {
var _local8 = _local3;
_local3 = _local4.lastIndexOf(" ", _local3 - 1);
if (_local3 == -1) {
_local3 = _local8 - 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
} else if (_local5.textWidth < _local7) {
var _local8 = _local3;
while (_local5.textWidth < _local7) {
_local8 = _local3;
_local3 = _local4.indexOf(" ", _local3 + 1);
if (_local3 == -1) {
if (_local4.indexOf(" ", 0) != -1) {
break;
}
_local3 = _local8 + 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
_local3 = _local8;
}
_local9 = _local9 + _local3;
_local12.push(_local9 + 1);
_local4 = _local4.substr(_local3);
if (_local4.charAt(0) == " ") {
_local4 = _local4.substr(1, _local4.length - 1);
_local9 = _local9 + 1;
}
_local5.text = _local4;
}
_local9 = _local9 + (_local4.length + 1);
_local11++;
}
return(_local12);
}
function keyDown(e) {
var _local5 = e.code;
if (_local5 == 34) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = Math.min(label.bottomScroll + 1, label.maxscroll);
if (_local2 == label.maxscroll) {
var _local4 = label.length;
Selection.setSelection(_local4, _local4);
} else {
label.scroll = _local2;
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
}
} else if (_local5 == 33) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = label.scroll - 1;
if (_local2 < 1) {
Selection.setSelection(0, 0);
} else {
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
label.scroll = Math.max(_local2 - _local6, 1);
}
}
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = true;
_local2.wordWrap = wordWrap == true;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = ((editable == true) ? "input" : "dynamic");
size();
_local2.background = false;
}
function adjustScrollBars() {
var _local2 = label;
var _local4 = (_local2.bottomScroll - _local2.scroll) + 1;
var _local3 = (_local4 + _local2.maxscroll) - 1;
if (_local3 < 1) {
_local3 = 1;
}
var _local5 = 0;
if ((_local2.textWidth + 5) > _local2._width) {
if (!_local2.wordWrap) {
_local5 = _local2._width + _local2.maxhscroll;
}
} else {
_local2.hscroll = 0;
_local2.background = false;
}
if ((_local2.height / _local4) != Math.round(_local2.height / _local4)) {
_local3--;
}
setScrollProperties(_local5, 1, _local3, _local2.height / _local4);
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
super.setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding);
if (vScroller == undefined) {
hookedV = false;
}
if (hScroller == undefined) {
hookedH = false;
}
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
function get styleSheet() {
return(label.styleSheet);
}
function set styleSheet(v) {
label.styleSheet = v;
//return(styleSheet);
}
static var symbolName = "TextArea";
static var symbolOwner = mx.controls.TextArea;
static var version = "2.0.2.126";
var className = "TextArea";
var initializing = true;
var clipParameters = {text:1, wordWrap:1, editable:1, maxChars:1, restrict:1, html:1, password:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextArea.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var __vScrollPolicy = "auto";
var __hScrollPolicy = "auto";
var __editable = true;
}
Symbol 582 MovieClip Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local8 = false;
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
_local8 = true;
}
if (_local8) {
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 584 MovieClip Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.2.126";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 586 MovieClip Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
ymin = _ymin;
ymax = _ymax;
datamin = _datamin;
datamax = _datamax;
}
function dragThumb(Void) {
scrollMove = _ymouse - lastY;
scrollMove = scrollMove + _y;
if (scrollMove < ymin) {
scrollMove = ymin;
} else if (scrollMove > ymax) {
scrollMove = ymax;
}
_parent.isScrolling = true;
_y = scrollMove;
var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin;
_parent.scrollPosition = _local2;
_parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
_parent.isScrolling = false;
_parent.dispatchScrollEvent("ThumbPosition");
_parent.dispatchScrollChangedEvent();
delete onMouseMove;
}
function onPress(Void) {
_parent.pressFocus();
lastY = _ymouse;
onMouseMove = dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
super.draw();
if (grip_mc == undefined) {
setSkin(3, gripSkin);
}
}
function size() {
super.size();
grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 588 MovieClip Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
_scrollPosition = pos;
if (isScrolling != true) {
pos = Math.min(pos, maxPos);
pos = Math.max(pos, minPos);
var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top;
scrollThumb_mc.move(0, _local3);
}
//return(scrollPosition);
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
super.init();
_scrollPosition = 0;
tabEnabled = false;
focusEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (scrollTrack_mc == undefined) {
setSkin(skinIDTrack, scrollTrackName);
}
scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (upArrow_mc == undefined) {
_local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = onUpArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _local2.height;
_minWidth = _local2.width;
if (downArrow_mc == undefined) {
_local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = onDownArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
if (skinID == skinIDUpArrow) {
o.falseUpSkin = upArrowUpName;
o.falseDownSkin = upArrowDownName;
o.falseOverSkin = upArrowOverName;
} else {
o.falseUpSkin = downArrowUpName;
o.falseDownSkin = downArrowDownName;
o.falseOverSkin = downArrowOverName;
}
var _local3 = createObject(linkageName, id, skinID, o);
this[id].visible = false;
this[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = new Object();
_local2.validateNow = true;
_local2.tabEnabled = false;
_local2.leftSkin = thumbTopName;
_local2.middleSkin = thumbMiddleName;
_local2.rightSkin = thumbBottomName;
_local2.gripSkin = thumbGripName;
createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local4;
var _local2 = scrollTrack_mc;
pageSize = pSize;
largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
minPos = Math.max(mnPos, 0);
maxPos = Math.max(mxPos, 0);
_scrollPosition = Math.max(minPos, _scrollPosition);
_scrollPosition = Math.min(maxPos, _scrollPosition);
if (((maxPos - minPos) > 0) && (enabled)) {
var _local5 = _scrollPosition;
if (!initializing) {
upArrow_mc.enabled = true;
downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = startTrackScroller);
_local2.onRelease = releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = stopScrolling);
_local2.onReleaseOutside = releaseScrolling;
_local2.useHandCursor = false;
if (scrollThumb_mc == undefined) {
createThumb();
}
var _local3 = scrollThumb_mc;
if (scrollTrackOverName.length > 0) {
_local2.onRollOver = trackOver;
_local2.onRollOut = trackOut;
}
_local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height;
if (_local4 < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
_local4 = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local4);
}
_local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos);
_local5 = Math.min(_local5, maxPos);
scrollPosition = (Math.max(_local5, minPos));
} else {
scrollThumb_mc.__set__visible(false);
if (!initializing) {
upArrow_mc.enabled = false;
downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (initializing) {
scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function draw(Void) {
if (initializing) {
initializing = false;
scrollTrack_mc.visible = true;
upArrow_mc.__set__visible(true);
downArrow_mc.__set__visible(true);
}
size();
}
function size(Void) {
if (_height == 1) {
return(undefined);
}
if (upArrow_mc == undefined) {
return(undefined);
}
var _local3 = upArrow_mc.__get__height();
var _local2 = downArrow_mc.__get__height();
upArrow_mc.move(0, 0);
var _local4 = scrollTrack_mc;
_local4._y = _local3;
_local4._height = (virtualHeight - _local3) - _local2;
downArrow_mc.move(0, virtualHeight - _local2);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
if (k == 36) {
if (scrollPosition != 0) {
scrollPosition = (0);
dispatchScrollEvent(minMode);
}
return(true);
}
if (k == 35) {
if (scrollPosition < maxPos) {
scrollPosition = (maxPos);
dispatchScrollEvent(maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local3 = smallScroll;
if (inc != "Line") {
_local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll));
}
var _local2 = _scrollPosition + (mode * _local3);
if (_local2 > maxPos) {
_local2 = maxPos;
} else if (_local2 < minPos) {
_local2 = minPos;
}
if (scrollPosition != _local2) {
scrollPosition = (_local2);
var _local4 = ((mode < 0) ? (minusMode) : (plusMode));
dispatchScrollEvent(inc + _local4);
}
}
function startTrackScroller(Void) {
_parent.pressFocus();
if (_parent.scrollTrackDownName.length > 0) {
if (_parent.scrollTrackDown_mc == undefined) {
_parent.setSkin(skinIDTrackDown, scrollTrackDownName);
} else {
_parent.scrollTrackDown_mc.visible = true;
}
}
_parent.trackScroller();
_parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
clearInterval(scrolling);
if (inc == "Page") {
trackScroller();
} else {
scrollIt(inc, mode);
}
scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode);
}
function trackScroller(Void) {
if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) {
scrollIt("Page", 1);
} else if (scrollThumb_mc._y > _ymouse) {
scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
_parent.releaseFocus();
stopScrolling();
_parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
if (_parent.scrollTrackOverName.length > 0) {
if (_parent.scrollTrackOver_mc == undefined) {
_parent.setSkin(skinIDTrackOver, scrollTrackOverName);
} else {
_parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 590 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt;
function HScrollBar () {
super();
}
function getMinWidth(Void) {
return(_minHeight);
}
function getMinHeight(Void) {
return(_minWidth);
}
function init(Void) {
super.init();
_xscale = -100;
_rotation = -90;
}
function get virtualHeight() {
return(__width);
}
function isScrollBarKey(k) {
if (k == 37) {
scrollIt("Line", -1);
return(true);
}
if (k == 39) {
scrollIt("Line", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "HScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 592 MovieClip Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.126";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 594 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 596 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var scrollIt;
function VScrollBar () {
super();
}
function init(Void) {
super.init();
}
function isScrollBarKey(k) {
if (k == 38) {
scrollIt("Line", -1);
return(true);
}
if (k == 40) {
scrollIt("Line", 1);
return(true);
}
if (k == 33) {
scrollIt("Page", -1);
return(true);
}
if (k == 34) {
scrollIt("Page", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "VScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 598 MovieClip Frame 0
class mx.controls.RadioButton extends mx.controls.Button
{
var setToggle, __value, selected, releaseFocus, phase, dispatchEvent, _parent, __data, setState, __state, getFocusManager;
function RadioButton () {
super();
}
function init(Void) {
setToggle(__toggle);
__value = this;
super.init();
}
function size(Void) {
super.size();
}
function onRelease() {
if (selected) {
return(undefined);
}
releaseFocus();
phase = "up";
setSelected(true);
dispatchEvent({type:"click"});
_parent[__groupName].dispatchEvent({type:"click"});
}
function setData(val) {
__data = val;
}
function set data(val) {
__data = val;
//return(data);
}
function getData(val) {
return(__data);
}
function get data() {
return(__data);
}
function onUnload() {
if (_parent[__groupName].selectedRadio == this) {
_parent[__groupName].selectedRadio = undefined;
}
_parent[__groupName].radioList[indexNumber] = null;
delete _parent[__groupName].radioList[indexNumber];
}
function setSelected(val) {
var _local2 = _parent[__groupName];
var _local4 = _local2.selectedRadio.__width;
var _local5 = _local2.selectedRadio.__height;
if (val) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
} else if (_local2.selectedRadio == this) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = undefined;
}
setState(val);
}
function deleteGroupObj(groupName) {
delete _parent[groupName];
}
function getGroupName() {
return(__groupName);
}
function get groupName() {
return(__groupName);
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
delete _parent[__groupName].radioList[__data];
addToGroup(groupName);
__groupName = groupName;
}
function set groupName(groupName) {
setGroupName(groupName);
//return(this.groupName);
}
function addToGroup(groupName) {
if ((groupName == "") || (groupName == undefined)) {
return(undefined);
}
var _local2 = _parent[groupName];
if (_local2 == undefined) {
_local2 = (_parent[groupName] = new mx.controls.RadioButtonGroup());
_local2.__groupName = groupName;
}
_local2.addInstance(this);
if (__state) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
}
}
function get emphasized() {
return(undefined);
}
function keyDown(e) {
switch (e.code) {
case 40 :
setNext();
break;
case 38 :
setPrev();
break;
case 37 :
setPrev();
break;
case 39 :
setNext();
}
}
function setNext() {
var _local2 = _parent[groupName];
if ((_local2.selectedRadio.indexNumber + 1) == _local2.radioList.length) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : -1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 + _local3] != undefined) && (_local2.radioList[_local4 + _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 + _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function setPrev() {
var _local2 = _parent[groupName];
if (_local2.selectedRadio.indexNumber == 0) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : 1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 - _local3] != undefined) && (_local2.radioList[_local4 - _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 - _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "RadioButton";
static var symbolOwner = mx.controls.RadioButton;
static var version = "2.0.2.126";
var className = "RadioButton";
var btnOffset = 0;
var __toggle = true;
var __label = "Radio Button";
var __labelPlacement = "right";
var ignoreClassStyleDeclaration = {Button:1};
var __groupName = "radioGroup";
var indexNumber = 0;
var offset = false;
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "RadioFalseUp";
var falseDownIcon = "RadioFalseDown";
var falseOverIcon = "RadioFalseOver";
var falseDisabledIcon = "RadioFalseDisabled";
var trueUpIcon = "RadioTrueUp";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "RadioTrueDisabled";
var centerContent = false;
var borderW = 0;
var clipParameters = {labelPlacement:1, data:1, label:1, groupName:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.RadioButton.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
}
Symbol 600 MovieClip Frame 0
class mx.controls.RadioButtonGroup
{
var radioList, __groupName, selectedRadio;
function RadioButtonGroup () {
init();
mx.events.UIEventDispatcher.initialize(this);
}
function init(Void) {
radioList = new Array();
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
}
function getGroupName() {
return(__groupName);
}
function addInstance(instance) {
instance.indexNumber = indexNumber++;
radioList.push(instance);
}
function getValue() {
if (selectedRadio.data == "") {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function getLabelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function setLabelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
}
function setEnabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
}
function setSize(val, val1) {
for (var _local3 in radioList) {
radioList[_local3].setSize(val, val1);
}
}
function getEnabled() {
for (var _local4 in radioList) {
var _local2 = radioList[_local4].enabled;
var _local3 = t + (_local2 + 0);
}
if (_local3 == radioList.length) {
return(true);
}
if (_local3 == 0) {
return(false);
}
}
function setStyle(name, val) {
for (var _local4 in radioList) {
radioList[_local4].setStyle(name, val);
}
}
function setInstance(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
}
function getInstance() {
return(selectedRadio);
}
function setValue(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio.hitArea_mc._height = selectedRadio.__height;
selectedRadio.hitArea_mc._width = selectedRadio.__width;
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
selectedRadio.hitArea_mc._height = (selectedRadio.hitArea_mc._width = 0);
}
}
function set groupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return;
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
//return(this.groupName);
}
function get groupName() {
return(__groupName);
}
function set selectedData(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
}
//return(selectedData);
}
function get selectedData() {
if ((selectedRadio.data == "") || (selectedRadio.data == undefined)) {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function get selection() {
return(selectedRadio);
}
function set selection(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
//return(selection);
}
function set labelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
//return(labelPlacement);
}
function get labelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function set enabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
//return(enabled);
}
function get enabled() {
var _local2 = 0;
for (var _local3 in radioList) {
_local2 = _local2 + radioList[_local3].enabled;
}
if (_local2 == 0) {
return(false);
}
if (_local2 == radioList.length) {
return(true);
}
}
static var symbolName = "RadioButtonGroup";
static var symbolOwner = mx.controls.RadioButtonGroup;
static var version = "2.0.2.126";
var className = "RadioButtonGroup";
var indexNumber = 0;
}
Symbol 602 MovieClip Frame 0
class mx.controls.listclasses.DataSelector extends Object
{
var __vPosition, setVPosition, __dataProvider, enabled, lastSelID, lastSelected, selected, invUpdateControl, invalidate, multipleSelection, updateControl, __rowCount, rows;
function DataSelector () {
super();
}
static function Initialize(obj) {
var _local3 = mixinProps;
var _local4 = _local3.length;
obj = obj.prototype;
var _local1 = 0;
while (_local1 < _local4) {
obj[_local3[_local1]] = mixins[_local3[_local1]];
_local1++;
}
mixins.createProp(obj, "dataProvider", true);
mixins.createProp(obj, "length", false);
mixins.createProp(obj, "value", false);
mixins.createProp(obj, "selectedIndex", true);
mixins.createProp(obj, "selectedIndices", true);
mixins.createProp(obj, "selectedItems", false);
mixins.createProp(obj, "selectedItem", true);
return(true);
}
function createProp(obj, propName, setter) {
var p = (propName.charAt(0).toUpperCase() + propName.substr(1));
var _local2 = null;
var _local4 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local2 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(propName, _local4, _local2);
}
function setDataProvider(dP) {
if (__vPosition != 0) {
setVPosition(0);
}
clearSelected();
__dataProvider.removeEventListener(this);
__dataProvider = dP;
dP.addEventListener("modelChanged", this);
dP.addView(this);
modelChanged({eventName:"updateAll"});
}
function getDataProvider(Void) {
return(__dataProvider);
}
function addItemAt(index, label, data) {
if ((index < 0) || (!enabled)) {
return(undefined);
}
var _local2 = __dataProvider;
if (_local2 == undefined) {
_local2 = (__dataProvider = new Array());
_local2.addEventListener("modelChanged", this);
index = 0;
}
if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) {
_local2.addItemAt(index, label);
} else {
_local2.addItemAt(index, {label:label, data:data});
}
}
function addItem(label, data) {
addItemAt(__dataProvider.length, label, data);
}
function removeItemAt(index) {
return(__dataProvider.removeItemAt(index));
}
function removeAll(Void) {
__dataProvider.removeAll();
}
function replaceItemAt(index, newLabel, newData) {
if (typeof(newLabel) == "object") {
__dataProvider.replaceItemAt(index, newLabel);
} else {
__dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
}
}
function sortItemsBy(fieldName, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItemsBy(fieldName, order);
}
function sortItems(compareFunc, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItems(compareFunc, order);
}
function getLength(Void) {
return(__dataProvider.length);
}
function getItemAt(index) {
return(__dataProvider.getItemAt(index));
}
function modelChanged(eventObj) {
var _local3 = eventObj.firstItem;
var _local6 = eventObj.lastItem;
var _local7 = eventObj.eventName;
if (_local7 == undefined) {
_local7 = eventObj.event;
_local3 = eventObj.firstRow;
_local6 = eventObj.lastRow;
if (_local7 == "addRows") {
_local7 = (eventObj.eventName = "addItems");
} else if (_local7 == "deleteRows") {
_local7 = (eventObj.eventName = "removeItems");
} else if (_local7 == "updateRows") {
_local7 = (eventObj.eventName = "updateItems");
}
}
if (_local7 == "addItems") {
for (var _local2 in selected) {
var _local5 = selected[_local2];
if ((_local5 != undefined) && (_local5 >= _local3)) {
selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1);
}
}
} else if (_local7 == "removeItems") {
if (__dataProvider.length == 0) {
delete selected;
} else {
var _local9 = eventObj.removedIDs;
var _local10 = _local9.length;
var _local2 = 0;
while (_local2 < _local10) {
var _local4 = _local9[_local2];
if (selected[_local4] != undefined) {
delete selected[_local4];
}
_local2++;
}
for (_local2 in selected) {
if (selected[_local2] >= _local3) {
selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1);
}
}
}
} else if (_local7 == "sort") {
if (typeof(__dataProvider.getItemAt(0)) != "object") {
delete selected;
} else {
var _local10 = __dataProvider.length;
var _local2 = 0;
while (_local2 < _local10) {
if (isSelected(_local2)) {
var _local4 = __dataProvider.getItemID(_local2);
if (_local4 == lastSelID) {
lastSelected = _local2;
}
selected[_local4] = _local2;
}
_local2++;
}
}
} else if (_local7 == "filterModel") {
setVPosition(0);
}
invUpdateControl = true;
invalidate();
}
function getValue(Void) {
var _local2 = getSelectedItem();
if (typeof(_local2) != "object") {
return(_local2);
}
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
}
function getSelectedIndex(Void) {
for (var _local3 in selected) {
var _local2 = selected[_local3];
if (_local2 != undefined) {
return(_local2);
}
}
}
function setSelectedIndex(index) {
if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) {
delete selected;
selectItem(index, true);
lastSelected = index;
invUpdateControl = true;
invalidate();
} else if (index == undefined) {
clearSelected();
}
}
function getSelectedIndices(Void) {
var _local2 = new Array();
for (var _local3 in selected) {
_local2.push(selected[_local3]);
}
_local2.reverse();
return(((_local2.length > 0) ? (_local2) : undefined));
}
function setSelectedIndices(indexArray) {
if (multipleSelection != true) {
return(undefined);
}
delete selected;
var _local3 = 0;
while (_local3 < indexArray.length) {
var _local2 = indexArray[_local3];
if ((_local2 >= 0) && (_local2 < __dataProvider.length)) {
selectItem(_local2, true);
}
_local3++;
}
invUpdateControl = true;
updateControl();
}
function getSelectedItems(Void) {
var _local3 = getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
}
function getSelectedItem(Void) {
return(__dataProvider.getItemAt(getSelectedIndex()));
}
function selectItem(index, selectedFlag) {
if (selected == undefined) {
selected = new Object();
}
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (selectedFlag && (!isSelected(index))) {
selected[_local2] = index;
} else if (!selectedFlag) {
delete selected[_local2];
}
}
function isSelected(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(false);
}
return(selected[_local2] != undefined);
}
function clearSelected(transition) {
var _local3 = 0;
for (var _local4 in selected) {
var _local2 = selected[_local4];
if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0));
}
_local3++;
}
delete selected;
}
static var mixins = new mx.controls.listclasses.DataSelector();
static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"];
}
Symbol 604 MovieClip Frame 0
class mx.controls.ComboBase extends mx.core.UIComponent
{
var getValue, tabEnabled, tabChildren, boundingBox_mc, downArrow_mc, createClassObject, onDownArrow, border_mc, __border, text_mc, focusTextField, __width, __height, getFocusManager, __get__height, height, _parent;
function ComboBase () {
super();
getValue = _getValue;
}
function init() {
super.init();
tabEnabled = !_editable;
tabChildren = _editable;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren() {
var _local3 = new Object();
_local3.styleName = this;
if (downArrow_mc == undefined) {
_local3.falseUpSkin = downArrowUpName;
_local3.falseOverSkin = downArrowOverName;
_local3.falseDownSkin = downArrowDownName;
_local3.falseDisabledSkin = downArrowDisabledName;
_local3.validateNow = true;
_local3.tabEnabled = false;
createClassObject(mx.controls.SimpleButton, "downArrow_mc", 19, _local3);
downArrow_mc.buttonDownHandler = onDownArrow;
downArrow_mc.useHandCursor = false;
downArrow_mc.onPressWas = downArrow_mc.onPress;
downArrow_mc.onPress = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = true;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onPressWas();
};
downArrow_mc.onDragOutWas = downArrow_mc.onDragOut;
downArrow_mc.onDragOut = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = false;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOutWas();
};
downArrow_mc.onDragOverWas = downArrow_mc.onDragOver;
downArrow_mc.onDragOver = function () {
this.trackAsMenu = this.trackAsMenuWas;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOverWas();
};
}
if (border_mc == undefined) {
_local3.tabEnabled = false;
createClassObject(_global.styles.rectBorderClass, "border_mc", 17, _local3);
border_mc.move(0, 0);
__border = border_mc;
}
_local3.borderStyle = "none";
_local3.readOnly = !_editable;
_local3.tabEnabled = _editable;
if (text_mc == undefined) {
createClassObject(mx.controls.TextInput, "text_mc", 18, _local3);
text_mc.move(0, 0);
text_mc.addEnterEvents();
text_mc.enterHandler = _enterHandler;
text_mc.changeHandler = _changeHandler;
text_mc.oldOnSetFocus = text_mc.onSetFocus;
text_mc.onSetFocus = function () {
this.oldOnSetFocus();
this._parent.onSetFocus();
};
text_mc.__set__restrict("^\x1B");
text_mc.oldOnKillFocus = text_mc.onKillFocus;
text_mc.onKillFocus = function (n) {
this.oldOnKillFocus(n);
this._parent.onKillFocus(n);
};
text_mc.drawFocus = function (b) {
this._parent.drawFocus(b);
};
delete text_mc.borderStyle;
}
focusTextField = text_mc;
text_mc.owner = this;
layoutChildren(__width, __height);
}
function onKillFocus() {
super.onKillFocus();
Key.removeListener(text_mc);
getFocusManager().defaultPushButtonEnabled = true;
}
function onSetFocus() {
super.onSetFocus();
getFocusManager().defaultPushButtonEnabled = false;
Key.addListener(text_mc);
}
function setFocus() {
if (_editable) {
Selection.setFocus(text_mc);
} else {
Selection.setFocus(this);
}
}
function setSize(w, h, noEvent) {
super.setSize(w, ((h == undefined) ? (__get__height()) : (h)), noEvent);
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
downArrow_mc.enabled = enabledFlag;
text_mc.enabled = enabledFlag;
}
function setEditable(e) {
_editable = e;
if (wrapDownArrowButton == false) {
if (e) {
border_mc.borderStyle = "inset";
text_mc.borderStyle = "inset";
symbolName = "ComboBox";
invalidateStyle();
} else {
border_mc.borderStyle = "comboNonEdit";
text_mc.borderStyle = "dropDown";
symbolName = "DropDown";
invalidateStyle();
}
}
tabEnabled = !e;
tabChildren = e;
text_mc.tabEnabled = e;
if (e) {
delete text_mc.onPress;
delete text_mc.onRelease;
delete text_mc.onReleaseOutside;
delete text_mc.onDragOut;
delete text_mc.onDragOver;
delete text_mc.onRollOver;
delete text_mc.onRollOut;
} else {
text_mc.onPress = function () {
this._parent.downArrow_mc.onPress();
};
text_mc.onRelease = function () {
this._parent.downArrow_mc.onRelease();
};
text_mc.onReleaseOutside = function () {
this._parent.downArrow_mc.onReleaseOutside();
};
text_mc.onDragOut = function () {
this._parent.downArrow_mc.onDragOut();
};
text_mc.onDragOver = function () {
this._parent.downArrow_mc.onDragOver();
};
text_mc.onRollOver = function () {
this._parent.downArrow_mc.onRollOver();
};
text_mc.onRollOut = function () {
this._parent.downArrow_mc.onRollOut();
};
text_mc.useHandCursor = false;
}
}
function get editable() {
return(_editable);
}
function set editable(e) {
setEditable(e);
//return(editable);
}
function _getValue() {
return((_editable ? (text_mc.getText()) : (DSgetValue())));
}
function draw() {
downArrow_mc.draw();
border_mc.draw();
}
function size() {
layoutChildren(__width, __height);
}
function setTheme(t) {
downArrowUpName = (t + "downArrow") + "Up_mc";
downArrowDownName = (t + "downArrow") + "Down_mc";
downArrowDisabledName = (t + "downArrow") + "Disabled_mc";
}
function get text() {
return(text_mc.getText());
}
function set text(t) {
setText(t);
//return(text);
}
function setText(t) {
text_mc.setText(t);
}
function get textField() {
return(text_mc);
}
function get restrict() {
return(text_mc.__get__restrict());
}
function set restrict(w) {
text_mc.__set__restrict(w);
//return(restrict);
}
function invalidateStyle() {
downArrow_mc.invalidateStyle();
text_mc.invalidateStyle();
border_mc.invalidateStyle();
}
function layoutChildren(w, h) {
if (downArrow_mc == undefined) {
return(undefined);
}
if (wrapDownArrowButton) {
var _local2 = border_mc.__get__borderMetrics();
downArrow_mc._width = (downArrow_mc._height = (h - _local2.top) - _local2.bottom);
downArrow_mc.move((w - downArrow_mc._width) - _local2.right, _local2.top);
border_mc.setSize(w, h);
text_mc.setSize(w - downArrow_mc._width, h);
} else {
downArrow_mc.move(w - downArrow_mc._width, 0);
border_mc.setSize(w - downArrow_mc.width, h);
text_mc.setSize(w - downArrow_mc._width, h);
downArrow_mc._height = height;
}
}
function _changeHandler(obj) {
}
function _enterHandler(obj) {
var _local2 = _parent;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function get tabIndex() {
return(text_mc.__get__tabIndex());
}
function set tabIndex(w) {
text_mc.__set__tabIndex(w);
//return(tabIndex);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase);
static var symbolName = "ComboBase";
static var symbolOwner = mx.controls.ComboBase;
static var version = "2.0.2.126";
var _editable = false;
var downArrowUpName = "ScrollDownArrowUp";
var downArrowDownName = "ScrollDownArrowDown";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDisabledName = "ScrollDownArrowDisabled";
var wrapDownArrowButton = true;
var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue;
var multipleSelection = false;
}
Symbol 606 MovieClip Frame 0
class mx.controls.ComboBox extends mx.controls.ComboBase
{
var __set__editable, editable, __labels, data, __dropdownWidth, __width, _editable, selectedIndex, __dropdown, dataProvider, __labelFunction, createObject, border_mc, mask, text_mc, dispatchValueChangedEvent, getValue, length, selectedItem, _y, isPressed, owner, __set__visible, height, localToGlobal, __selectedIndexOnDropdown, __initialSelectedIndexOnDropdown, __get__height, getStyle, _parent, width, __dataProvider, selected, dispatchEvent;
function ComboBox () {
super();
}
function init() {
super.init();
}
function createChildren() {
super.createChildren();
__set__editable(editable);
if (__labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
dropdownWidth = (((typeof(__dropdownWidth) == "number") ? (__dropdownWidth) : (__width)));
if (!_editable) {
selectedIndex = 0;
}
initializing = false;
}
function onKillFocus(n) {
if (_showingDropdown && (n != null)) {
displayDropdown(false);
}
super.onKillFocus();
}
function getDropdown() {
if (initializing) {
return(undefined);
}
if (!hasDropdown()) {
var _local3 = new Object();
_local3.styleName = this;
if (dropdownBorderStyle != undefined) {
_local3.borderStyle = dropdownBorderStyle;
}
_local3._visible = false;
__dropdown = mx.managers.PopUpManager.createPopUp(this, mx.controls.List, false, _local3, true);
__dropdown.scroller.mask.removeMovieClip();
if (dataProvider == undefined) {
dataProvider = new Array();
}
__dropdown.setDataProvider(dataProvider);
__dropdown.selectMultiple = false;
__dropdown.rowCount = __rowCount;
__dropdown.selectedIndex = selectedIndex;
__dropdown.vScrollPolicy = "auto";
__dropdown.labelField = __labelField;
__dropdown.labelFunction = __labelFunction;
__dropdown.owner = this;
__dropdown.changeHandler = _changeHandler;
__dropdown.scrollHandler = _scrollHandler;
__dropdown.itemRollOverHandler = _itemRollOverHandler;
__dropdown.itemRollOutHandler = _itemRollOutHandler;
__dropdown.resizeHandler = _resizeHandler;
__dropdown.mouseDownOutsideHandler = function (eventObj) {
var _local3 = this.owner;
var _local4 = new Object();
_local4.x = _local3._root._xmouse;
_local4.y = _local3._root._ymouse;
_local3._root.localToGlobal(_local4);
if (_local3.hitTest(_local4.x, _local4.y, false)) {
} else if ((!this.wrapDownArrowButton) && (this.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false))) {
} else {
_local3.displayDropdown(false);
}
};
__dropdown.onTweenUpdate = function (v) {
this._y = v;
};
__dropdown.setSize(__dropdownWidth, __dropdown.height);
createObject("BoundingBox", "mask", 20);
mask._y = border_mc.height;
mask._width = __dropdownWidth;
mask._height = __dropdown.height;
mask._visible = false;
__dropdown.setMask(mask);
}
return(__dropdown);
}
function setSize(w, h, noEvent) {
super.setSize(w, h, noEvent);
__dropdownWidth = w;
__dropdown.rowHeight = h;
__dropdown.setSize(__dropdownWidth, __dropdown.height);
}
function setEditable(e) {
super.setEditable(e);
if (e) {
text_mc.setText("");
} else {
text_mc.setText(selectedLabel);
}
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function getLabelField() {
return(__labelField);
}
function get labelField() {
return(getLabelField());
}
function setLabelField(s) {
__dropdown.labelField = (__labelField = s);
text_mc.setText(selectedLabel);
}
function set labelField(s) {
setLabelField(s);
//return(labelField);
}
function getLabelFunction() {
return(__labelFunction);
}
function get labelFunction() {
return(getLabelFunction());
}
function set labelFunction(f) {
__dropdown.labelFunction = (__labelFunction = f);
text_mc.setText(selectedLabel);
//return(labelFunction);
}
function setSelectedItem(v) {
super.setSelectedItem(v);
__dropdown.selectedItem = v;
text_mc.setText(selectedLabel);
}
function setSelectedIndex(v) {
super.setSelectedIndex(v);
__dropdown.selectedIndex = v;
if (v != undefined) {
text_mc.setText(selectedLabel);
}
dispatchValueChangedEvent(getValue());
}
function setRowCount(count) {
if (isNaN(count)) {
return(undefined);
}
__rowCount = count;
__dropdown.setRowCount(count);
}
function get rowCount() {
return(Math.max(1, Math.min(length, __rowCount)));
}
function set rowCount(v) {
setRowCount(v);
//return(rowCount);
}
function setDropdownWidth(w) {
__dropdownWidth = w;
__dropdown.setSize(w, __dropdown.height);
}
function get dropdownWidth() {
return(__dropdownWidth);
}
function set dropdownWidth(v) {
setDropdownWidth(v);
//return(dropdownWidth);
}
function get dropdown() {
return(getDropdown());
}
function setDataProvider(dp) {
super.setDataProvider(dp);
__dropdown.setDataProvider(dp);
if (!_editable) {
selectedIndex = 0;
}
}
function open() {
displayDropdown(true);
}
function close() {
displayDropdown(false);
}
function get selectedLabel() {
var _local2 = selectedItem;
if (_local2 == undefined) {
return("");
}
if (labelFunction != undefined) {
return(labelFunction(_local2));
}
if (typeof(_local2) != "object") {
return(_local2);
}
if (_local2[labelField] != undefined) {
return(_local2[labelField]);
}
if (_local2.label != undefined) {
return(_local2.label);
}
var _local3 = " ";
for (var _local4 in _local2) {
if (_local4 != "__ID__") {
_local3 = (_local2[_local4] + ", ") + _local3;
}
}
_local3 = _local3.substring(0, _local3.length - 3);
return(_local3);
}
function hasDropdown() {
return((__dropdown != undefined) && (__dropdown.valueOf() != undefined));
}
function tweenEndShow(value) {
_y = value;
isPressed = true;
owner.dispatchEvent({type:"open", target:owner});
}
function tweenEndHide(value) {
_y = value;
__set__visible(false);
owner.dispatchEvent({type:"close", target:owner});
}
function displayDropdown(show) {
if (show == _showingDropdown) {
return(undefined);
}
var _local3 = new Object();
_local3.x = 0;
_local3.y = height;
localToGlobal(_local3);
if (show) {
__selectedIndexOnDropdown = selectedIndex;
__initialSelectedIndexOnDropdown = selectedIndex;
getDropdown();
var _local2 = __dropdown;
_local2.isPressed = true;
_local2.rowCount = rowCount;
_local2.visible = show;
_local2._parent.globalToLocal(_local3);
_local2.onTweenEnd = tweenEndShow;
var _local5;
var _local8;
if ((_local3.y + _local2.height) > Stage.height) {
_local5 = _local3.y - __get__height();
_local8 = _local5 - _local2.height;
mask._y = -_local2.height;
} else {
_local5 = _local3.y - _local2.height;
_local8 = _local3.y;
mask._y = border_mc.height;
}
var _local6 = _local2.selectedIndex;
if (_local6 == undefined) {
_local6 = 0;
}
var _local4 = _local2.vPosition;
_local4 = _local6 - 1;
_local4 = Math.min(Math.max(_local4, 0), _local2.length - _local2.rowCount);
_local2.vPosition = _local4;
_local2.move(_local3.x, _local5);
_local2.tween = new mx.effects.Tween(__dropdown, _local5, _local8, getStyle("openDuration"));
} else {
__dropdown._parent.globalToLocal(_local3);
delete __dropdown.dragScrolling;
__dropdown.onTweenEnd = tweenEndHide;
__dropdown.tween = new mx.effects.Tween(__dropdown, __dropdown._y, _local3.y - __dropdown.height, getStyle("openDuration"));
if (__initialSelectedIndexOnDropdown != selectedIndex) {
dispatchChangeEvent(undefined, __initialSelectedIndexOnDropdown, selectedIndex);
}
}
var _local9 = getStyle("openEasing");
if (_local9 != undefined) {
__dropdown.tween.easingEquation = _local9;
}
_showingDropdown = show;
}
function onDownArrow() {
_parent.displayDropdown(!_parent._showingDropdown);
}
function keyDown(e) {
if (e.ctrlKey && (e.code == 40)) {
displayDropdown(true);
} else if (e.ctrlKey && (e.code == 38)) {
displayDropdown(false);
dispatchChangeEvent(undefined, __selectedIndexOnDropdown, selectedIndex);
} else if (e.code == 27) {
displayDropdown(false);
} else if (e.code == 13) {
if (_showingDropdown) {
selectedIndex = __dropdown.selectedIndex;
displayDropdown(false);
}
} else if (((((!_editable) || (e.code == 38)) || (e.code == 40)) || (e.code == 33)) || (e.code == 34)) {
selectedIndex = 0 + selectedIndex;
bInKeyDown = true;
var _local3 = dropdown;
_local3.keyDown(e);
bInKeyDown = false;
selectedIndex = __dropdown.selectedIndex;
}
}
function invalidateStyle(styleProp) {
__dropdown.invalidateStyle(styleProp);
super.invalidateStyle(styleProp);
}
function changeTextStyleInChildren(styleProp) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeTextStyleInChildren(styleProp);
super.changeTextStyleInChildren(styleProp);
}
function changeColorStyleInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeColorStyleInChildren(sheetName, styleProp, newValue);
super.changeColorStyleInChildren(sheetName, styleProp, newValue);
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
super.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
}
function onUnload() {
__dropdown.removeMovieClip();
}
function _resizeHandler() {
var _local2 = owner;
_local2.mask._width = width;
_local2.mask._height = height;
}
function _changeHandler(obj) {
var _local2 = owner;
var _local3 = _local2.selectedIndex;
obj.target = _local2;
if (this == owner.text_mc) {
_local2.selectedIndex = undefined;
_local2.dispatchChangeEvent(obj, -1, -2);
} else {
_local2.selectedIndex = selectedIndex;
if (!_local2._showingDropdown) {
_local2.dispatchChangeEvent(obj, _local3, _local2.selectedIndex);
} else if (!_local2.bInKeyDown) {
_local2.displayDropdown(false);
}
}
}
function _scrollHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOverHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOutHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
if (0 == __dataProvider.length) {
text_mc.setText("");
delete selected;
} else if ((__dataProvider.length == ((eventObj.lastItem - eventObj.firstItem) + 1)) && (eventObj.eventName == "addItems")) {
selectedIndex = 0;
}
}
function dispatchChangeEvent(obj, prevValue, newValue) {
var _local2;
if (prevValue != newValue) {
if ((obj != undefined) && (obj.type == "change")) {
_local2 = obj;
} else {
_local2 = {type:"change"};
}
dispatchEvent(_local2);
}
}
static var symbolName = "ComboBox";
static var symbolOwner = mx.controls.ComboBox;
static var version = "2.0.2.126";
var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters);
var className = "ComboBox";
var _showingDropdown = false;
var __rowCount = 5;
var dropdownBorderStyle = undefined;
var initializing = true;
var __labelField = "label";
var bInKeyDown = false;
}
Symbol 608 MovieClip Frame 0
class mx.managers.PopUpManager
{
var popUp, setSize, move, modalWindow, _parent, _name, _visible, owner;
function PopUpManager () {
}
static function createModalWindow(parent, o, broadcastOutsideEvents) {
var _local2 = parent.createChildAtDepth("Modal", mx.managers.DepthManager.kTopmost);
_local2.setDepthBelow(o);
o.modalID = _local2._name;
_local2._alpha = _global.style.modalTransparency;
_local2.tabEnabled = false;
if (broadcastOutsideEvents) {
_local2.onPress = mixins.onPress;
} else {
_local2.onPress = mixins.nullFunction;
}
_local2.onRelease = mixins.nullFunction;
_local2.resize = mixins.resize;
mx.managers.SystemManager.init();
mx.managers.SystemManager.addEventListener("resize", _local2);
_local2.resize();
_local2.useHandCursor = false;
_local2.popUp = o;
o.modalWindow = _local2;
o.deletePopUp = mixins.deletePopUp;
o.setVisible = mixins.setVisible;
o.getVisible = mixins.getVisible;
o.addProperty("visible", o.getVisible, o.setVisible);
}
static function createPopUp(parent, className, modal, initobj, broadcastOutsideEvents) {
if (mixins == undefined) {
mixins = new mx.managers.PopUpManager();
}
if (broadcastOutsideEvents == undefined) {
broadcastOutsideEvents = false;
}
var _local5 = parent._root;
if (_local5 == undefined) {
_local5 = _root;
}
while (parent != _local5) {
parent = parent._parent;
}
initobj.popUp = true;
var _local4 = parent.createClassChildAtDepth(className, ((broadcastOutsideEvents || (modal)) ? (mx.managers.DepthManager.kTopmost) : (mx.managers.DepthManager.kTop)), initobj);
var _local2 = _root;
var _local6 = _local2.focusManager != undefined;
while (_local2._parent != undefined) {
_local2 = _local2._parent._root;
if (_local2.focusManager != undefined) {
_local6 = true;
break;
}
}
if (_local6) {
_local4.createObject("FocusManager", "focusManager", -1);
if (_local4._visible == false) {
mx.managers.SystemManager.deactivate(_local4);
}
}
if (modal) {
createModalWindow(parent, _local4, broadcastOutsideEvents);
} else {
if (broadcastOutsideEvents) {
_local4.mouseListener = new Object();
_local4.mouseListener.owner = _local4;
_local4.mouseListener.onMouseDown = mixins.onMouseDown;
Mouse.addListener(_local4.mouseListener);
}
_local4.deletePopUp = mixins.deletePopUp;
}
return(_local4);
}
function onPress(Void) {
var _local3 = popUp._root;
if (_local3 == undefined) {
_local3 = _root;
}
if (popUp.hitTest(_local3._xmouse, _local3._ymouse, false)) {
return(undefined);
}
popUp.dispatchEvent({type:"mouseDownOutside"});
}
function nullFunction(Void) {
}
function resize(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
setSize(_local2.width, _local2.height);
move(_local2.x, _local2.y);
}
function deletePopUp(Void) {
if (modalWindow != undefined) {
_parent.destroyObject(modalWindow._name);
}
_parent.destroyObject(_name);
}
function setVisible(v, noEvent) {
super.setVisible(v, noEvent);
modalWindow._visible = v;
}
function getVisible(Void) {
return(_visible);
}
function onMouseDown(Void) {
var _local3 = owner._root;
if (_local3 == undefined) {
_local3 = _root;
}
var _local4 = new Object();
_local4.x = _local3._xmouse;
_local4.y = _local3._ymouse;
_local3.localToGlobal(_local4);
if (owner.hitTest(_local4.x, _local4.y, false)) {
} else {
owner.mouseDownOutsideHandler(owner);
}
}
static var version = "2.0.2.126";
static var mixins = undefined;
}
Symbol 610 MovieClip Frame 0
class mx.controls.listclasses.DataProvider extends Object
{
var length, splice, dispatchEvent, sortOn, reverse, sort;
function DataProvider (obj) {
super();
}
static function Initialize(obj) {
var _local4 = mixinProps;
var _local6 = _local4.length;
obj = obj.prototype;
var _local3 = 0;
while (_local3 < _local6) {
obj[_local4[_local3]] = mixins[_local4[_local3]];
_global.ASSetPropFlags(obj, _local4[_local3], 1);
_local3++;
}
mx.events.EventDispatcher.initialize(obj);
_global.ASSetPropFlags(obj, "addEventListener", 1);
_global.ASSetPropFlags(obj, "removeEventListener", 1);
_global.ASSetPropFlags(obj, "dispatchEvent", 1);
_global.ASSetPropFlags(obj, "dispatchQueue", 1);
Object.prototype.LargestID = 0;
Object.prototype.getID = function () {
if (this.__ID__ == undefined) {
this.__ID__ = Object.prototype.LargestID++;
_global.ASSetPropFlags(this, "__ID__", 1);
}
return(this.__ID__);
};
_global.ASSetPropFlags(Object.prototype, "LargestID", 1);
_global.ASSetPropFlags(Object.prototype, "getID", 1);
return(true);
}
function addItemAt(index, value) {
if (index < length) {
splice(index, 0, value);
} else if (index > length) {
trace("Cannot add an item past the end of the DataProvider");
return(undefined);
}
this[index] = value;
updateViews("addItems", index, index);
}
function addItem(value) {
addItemAt(length, value);
}
function addItemsAt(index, newItems) {
index = Math.min(length, index);
newItems.unshift(index, 0);
splice.apply(this, newItems);
newItems.splice(0, 2);
updateViews("addItems", index, (index + newItems.length) - 1);
}
function removeItemsAt(index, len) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < len) {
_local3.push(getItemID(index + _local2));
_local2++;
}
var _local6 = splice(index, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3});
}
function removeItemAt(index) {
var _local2 = this[index];
removeItemsAt(index, 1);
return(_local2);
}
function removeAll(Void) {
splice(0);
updateViews("removeItems", 0, length - 1);
}
function replaceItemAt(index, itemObj) {
if ((index < 0) || (index >= length)) {
return(undefined);
}
var _local3 = getItemID(index);
this[index] = itemObj;
this[index].__ID__ = _local3;
updateViews("updateItems", index, index);
}
function getItemAt(index) {
return(this[index]);
}
function getItemID(index) {
var _local2 = this[index];
if ((typeof(_local2) != "object") && (_local2 != undefined)) {
return(index);
}
return(_local2.getID());
}
function sortItemsBy(fieldName, order) {
if (typeof(order) == "string") {
sortOn(fieldName);
if (order.toUpperCase() == "DESC") {
reverse();
}
} else {
sortOn(fieldName, order);
}
updateViews("sort");
}
function sortItems(compareFunc, optionFlags) {
sort(compareFunc, optionFlags);
updateViews("sort");
}
function editField(index, fieldName, newData) {
this[index][fieldName] = newData;
dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:index, lastItem:index, fieldName:fieldName});
}
function getEditingData(index, fieldName) {
return(this[index][fieldName]);
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"];
static var evtDipatcher = mx.events.EventDispatcher;
static var mixins = new mx.controls.listclasses.DataProvider();
}
Symbol 612 MovieClip Frame 0
class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView
{
var invLayoutContent, rows, topRowZ, listContent, __dataProvider, __vPosition, tW, layoutX, layoutY, tH, invRowHeight, invalidate, __height, invUpdateControl, __cellRenderer, __labelFunction, __iconField, __iconFunction, getLength, baseRowZ, lastPosition, propertyTable, isSelected, wasKeySelected, changeFlag, clearSelected, selectItem, lastSelected, dispatchEvent, dragScrolling, _ymouse, scrollInterval, isPressed, onMouseUp, getSelectedIndex, enabled, tabEnabled, tabChildren, createEmptyMovieClip, border_mc;
function ScrollSelectList () {
super();
}
function layoutContent(x, y, w, h) {
delete invLayoutContent;
var _local4 = Math.ceil(h / __rowHeight);
roundUp = (h % __rowHeight) != 0;
var _local12 = _local4 - __rowCount;
if (_local12 < 0) {
var _local3 = _local4;
while (_local3 < __rowCount) {
rows[_local3].removeMovieClip();
delete rows[_local3];
_local3++;
}
topRowZ = topRowZ + _local12;
} else if (_local12 > 0) {
if (rows == undefined) {
rows = new Array();
}
var _local3 = __rowCount;
while (_local3 < _local4) {
var _local2 = (rows[_local3] = listContent.createObject(__rowRenderer, "listRow" + (topRowZ++), topRowZ, {owner:this, styleName:this, rowIndex:_local3}));
_local2._x = x;
_local2._y = Math.round((_local3 * __rowHeight) + y);
_local2.setSize(w, __rowHeight);
_local2.drawRow(__dataProvider.getItemAt(__vPosition + _local3), getStateAt(__vPosition + _local3));
_local2.lastY = _local2._y;
_local3++;
}
}
if (w != tW) {
var _local11 = ((_local12 > 0) ? (__rowCount) : (_local4));
var _local3 = 0;
while (_local3 < _local11) {
rows[_local3].setSize(w, __rowHeight);
_local3++;
}
}
if ((layoutX != x) || (layoutY != y)) {
var _local3 = 0;
while (_local3 < _local4) {
rows[_local3]._x = x;
rows[_local3]._y = Math.round((_local3 * __rowHeight) + y);
_local3++;
}
}
__rowCount = _local4;
layoutX = x;
layoutY = y;
tW = w;
tH = h;
}
function getRowHeight(Void) {
return(__rowHeight);
}
function setRowHeight(v) {
__rowHeight = v;
invRowHeight = true;
invalidate();
}
function get rowHeight() {
return(getRowHeight());
}
function set rowHeight(w) {
setRowHeight(w);
//return(rowHeight);
}
function setRowCount(v) {
__rowCount = v;
}
function getRowCount(Void) {
var _local2 = ((__rowCount == 0) ? (Math.ceil(__height / __rowHeight)) : (__rowCount));
return(_local2);
}
function get rowCount() {
return(getRowCount());
}
function set rowCount(w) {
setRowCount(w);
//return(rowCount);
}
function setEnabled(v) {
super.setEnabled(v);
invUpdateControl = true;
invalidate();
}
function setCellRenderer(cR) {
__cellRenderer = cR;
var _local2 = 0;
while (_local2 < rows.length) {
rows[_local2].setCellRenderer(true);
_local2++;
}
invUpdateControl = true;
invalidate();
}
function set cellRenderer(cR) {
setCellRenderer(cR);
//return(cellRenderer);
}
function get cellRenderer() {
return(__cellRenderer);
}
function set labelField(field) {
setLabelField(field);
//return(labelField);
}
function setLabelField(field) {
__labelField = field;
invUpdateControl = true;
invalidate();
}
function get labelField() {
return(__labelField);
}
function set labelFunction(func) {
setLabelFunction(func);
//return(labelFunction);
}
function setLabelFunction(func) {
__labelFunction = func;
invUpdateControl = true;
invalidate();
}
function get labelFunction() {
return(__labelFunction);
}
function set iconField(field) {
setIconField(field);
//return(iconField);
}
function setIconField(field) {
__iconField = field;
invUpdateControl = true;
invalidate();
}
function get iconField() {
return(__iconField);
}
function set iconFunction(func) {
setIconFunction(func);
//return(iconFunction);
}
function setIconFunction(func) {
__iconFunction = func;
invUpdateControl = true;
invalidate();
}
function get iconFunction() {
return(__iconFunction);
}
function setVPosition(pos) {
if (pos < 0) {
return(undefined);
}
if ((pos > 0) && (pos > ((getLength() - __rowCount) + roundUp))) {
return(undefined);
}
var _local8 = pos - __vPosition;
if (_local8 == 0) {
return(undefined);
}
__vPosition = pos;
var _local10 = _local8 > 0;
_local8 = Math.abs(_local8);
if (_local8 >= __rowCount) {
updateControl();
} else {
var _local4 = new Array();
var _local9 = __rowCount - _local8;
var _local12 = _local8 * __rowHeight;
var _local11 = _local9 * __rowHeight;
var _local6 = (_local10 ? 1 : -1);
var _local3 = 0;
while (_local3 < __rowCount) {
if (((_local3 < _local8) && (_local10)) || ((_local3 >= _local9) && (!_local10))) {
rows[_local3]._y = rows[_local3]._y + Math.round(_local6 * _local11);
var _local5 = _local3 + (_local6 * _local9);
var _local7 = __vPosition + _local5;
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
_local4[_local5].drawRow(__dataProvider.getItemAt(_local7), getStateAt(_local7), false);
} else {
rows[_local3]._y = rows[_local3]._y - Math.round(_local6 * _local12);
var _local5 = _local3 - (_local6 * _local8);
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
}
_local3++;
}
rows = _local4;
_local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].swapDepths(baseRowZ + _local3);
_local3++;
}
}
lastPosition = pos;
super.setVPosition(pos);
}
function setPropertiesAt(index, obj) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (propertyTable == undefined) {
propertyTable = new Object();
}
propertyTable[_local2] = obj;
rows[index - __vPosition].drawRow(__dataProvider.getItemAt(index), getStateAt(index));
}
function getPropertiesAt(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getPropertiesOf(obj) {
var _local2 = obj.getID();
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getStyle(styleProp) {
var _local2 = super.getStyle(styleProp);
var _local3 = mx.styles.StyleManager.colorNames[_local2];
if (_local3 != undefined) {
_local2 = _local3;
}
return(_local2);
}
function updateControl(Void) {
var _local2 = 0;
while (_local2 < __rowCount) {
rows[_local2].drawRow(__dataProvider.getItemAt(_local2 + __vPosition), getStateAt(_local2 + __vPosition));
_local2++;
}
delete invUpdateControl;
}
function getStateAt(index) {
return((isSelected(index) ? "selected" : "normal"));
}
function selectRow(rowIndex, transition, allowChangeEvent) {
if (!selectable) {
return(undefined);
}
var _local3 = __vPosition + rowIndex;
var _local8 = __dataProvider.getItemAt(_local3);
var _local5 = rows[rowIndex];
if (_local8 == undefined) {
return(undefined);
}
if (transition == undefined) {
transition = true;
}
if (allowChangeEvent == undefined) {
allowChangeEvent = wasKeySelected;
}
changeFlag = true;
if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
clearSelected(transition);
selectItem(_local3, true);
lastSelected = _local3;
_local5.drawRow(_local5.item, getStateAt(_local3), transition);
} else if (Key.isDown(16) && (multipleSelection)) {
if (lastSelected == undefined) {
lastSelected = _local3;
}
var _local4 = ((lastSelected < _local3) ? 1 : -1);
clearSelected(false);
var _local2 = lastSelected;
while (_local2 != _local3) {
selectItem(_local2, true);
if ((_local2 >= __vPosition) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "selected", false);
}
_local2 = _local2 + _local4;
}
selectItem(_local3, true);
_local5.drawRow(_local5.item, "selected", transition);
} else if (Key.isDown(17)) {
var _local7 = isSelected(_local3);
if ((!multipleSelection) || (wasKeySelected)) {
clearSelected(transition);
}
if (!((!multipleSelection) && (_local7))) {
selectItem(_local3, !_local7);
var _local9 = ((!_local7) ? "selected" : "normal");
_local5.drawRow(_local5.item, _local9, transition);
}
lastSelected = _local3;
}
if (allowChangeEvent) {
dispatchEvent({type:"change"});
}
delete wasKeySelected;
}
function dragScroll(Void) {
clearInterval(dragScrolling);
if (_ymouse < 0) {
setVPosition(__vPosition - 1);
selectRow(0, false);
var _local2 = Math.min((-_ymouse) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else if (_ymouse > __height) {
var _local3 = __vPosition;
setVPosition(__vPosition + 1);
if (_local3 != __vPosition) {
selectRow((__rowCount - 1) - roundUp, false);
}
var _local2 = Math.min((_ymouse - __height) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else {
dragScrolling = setInterval(this, "dragScroll", 15);
}
updateAfterEvent();
}
function __onMouseUp(Void) {
clearInterval(dragScrolling);
delete dragScrolling;
delete dragScrolling;
delete isPressed;
delete onMouseUp;
if (!selectable) {
return(undefined);
}
if (changeFlag) {
dispatchEvent({type:"change"});
}
delete changeFlag;
}
function moveSelBy(incr) {
if (!selectable) {
setVPosition(__vPosition + incr);
return(undefined);
}
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = -1;
}
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < __vPosition) || (_local3 >= (__vPosition + __rowCount))) {
setVPosition(_local3);
}
if ((_local2 >= ((__vPosition + __rowCount) - roundUp)) || (_local2 < __vPosition)) {
setVPosition(__vPosition + incr);
}
wasKeySelected = true;
selectRow(_local2 - __vPosition, false);
}
function keyDown(e) {
if (selectable) {
if (findInputText()) {
return(undefined);
}
}
if (e.code == 40) {
moveSelBy(1);
} else if (e.code == 38) {
moveSelBy(-1);
} else if (e.code == 34) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((__rowCount - 1) - roundUp);
} else if (e.code == 33) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((1 - __rowCount) + roundUp);
} else if (e.code == 36) {
moveSelBy(-__dataProvider.length);
} else if (e.code == 35) {
moveSelBy(__dataProvider.length);
}
}
function findInputText(Void) {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
findString(String.fromCharCode(_local2));
return(true);
}
}
function findString(str) {
if (__dataProvider.length == 0) {
return(undefined);
}
var _local4 = getSelectedIndex();
if (_local4 == undefined) {
_local4 = 0;
}
var _local6 = 0;
var _local3 = _local4 + 1;
while (_local3 != _local4) {
var _local2 = __dataProvider.getItemAt(_local3);
if (_local2 instanceof XMLNode) {
_local2 = _local2.attributes[__labelField];
} else if (typeof(_local2) != "string") {
_local2 = String(_local2[__labelField]);
}
_local2 = _local2.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
_local6 = _local3 - _local4;
break;
}
if (_local3 >= (getLength() - 1)) {
_local3 = -1;
}
_local3++;
}
if (_local6 != 0) {
moveSelBy(_local6);
}
}
function onRowPress(rowIndex) {
if (!enabled) {
return(undefined);
}
isPressed = true;
dragScrolling = setInterval(this, "dragScroll", 15);
onMouseUp = __onMouseUp;
if (!selectable) {
return(undefined);
}
selectRow(rowIndex);
}
function onRowRelease(rowIndex) {
}
function onRowRollOver(rowIndex) {
if (!enabled) {
return(undefined);
}
var _local2 = rows[rowIndex].item;
if (getStyle("useRollOver") && (_local2 != undefined)) {
rows[rowIndex].drawRow(_local2, "highlighted", false);
}
dispatchEvent({type:"itemRollOver", index:rowIndex + __vPosition});
}
function onRowRollOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (getStyle("useRollOver")) {
rows[rowIndex].drawRow(rows[rowIndex].item, getStateAt(rowIndex + __vPosition), false);
}
dispatchEvent({type:"itemRollOut", index:rowIndex + __vPosition});
}
function onRowDragOver(rowIndex) {
if (((!enabled) || (isPressed != true)) || (!selectable)) {
return(undefined);
}
if (dropEnabled) {
} else if (dragScrolling) {
selectRow(rowIndex, false);
} else {
onMouseUp = __onMouseUp;
onRowPress(rowIndex);
}
}
function onRowDragOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (dragEnabled) {
} else {
onRowRollOut(rowIndex);
}
}
function init(Void) {
super.init();
tabEnabled = true;
tabChildren = false;
if (__dataProvider == undefined) {
__dataProvider = new Array();
__dataProvider.addEventListener("modelChanged", this);
}
baseRowZ = (topRowZ = 10);
}
function createChildren(Void) {
super.createChildren();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
invLayoutContent = true;
invalidate();
}
function draw(Void) {
if (invRowHeight) {
delete invRowHeight;
__rowCount = 0;
listContent.removeMovieClip();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
}
if (invUpdateControl) {
updateControl();
}
border_mc.draw();
}
function invalidateStyle(propName) {
if (isRowStyle[propName]) {
invUpdateControl = true;
invalidate();
} else {
var _local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].invalidateStyle(propName);
_local3++;
}
}
super.invalidateStyle(propName);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList);
static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array);
var CONTENTDEPTH = 100;
var __hPosition = 0;
var __rowRenderer = "SelectableRow";
var __rowHeight = 22;
var __rowCount = 0;
var __labelField = "label";
var minScrollInterval = 30;
var dropEnabled = false;
var dragEnabled = false;
var className = "ScrollSelectList";
var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true};
var roundUp = 0;
var selectable = true;
var multipleSelection = false;
}
Symbol 614 MovieClip Frame 0
class mx.controls.List extends mx.controls.listclasses.ScrollSelectList
{
var border_mc, __labels, setDataProvider, roundUp, __get__rowCount, __dataProvider, __maxHPosition, invScrollProps, invalidate, __vPosition, getViewMetrics, setSize, __width, __rowHeight, totalWidth, totalHeight, displayWidth, __hScrollPolicy, vScroller, __hPosition, listContent, data, mask_mc, __height, __rowCount, invRowHeight, invLayoutContent, setScrollProperties, oldVWidth;
function List () {
super();
}
function setEnabled(v) {
super.setEnabled(v);
border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor");
border_mc.invalidate();
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function setVPosition(pos) {
pos = Math.min((__dataProvider.length - __get__rowCount()) + roundUp, pos);
pos = Math.max(0, pos);
super.setVPosition(pos);
}
function setHPosition(pos) {
pos = Math.max(Math.min(__maxHPosition, pos), 0);
super.setHPosition(pos);
hScroll(pos);
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
invScrollProps = true;
invalidate();
}
function setHScrollPolicy(policy) {
if ((policy.toLowerCase() == "auto") && (!autoHScrollAble)) {
return(undefined);
}
super.setHScrollPolicy(policy);
if (policy == "off") {
setHPosition(0);
setVPosition(Math.min((__dataProvider.length - __get__rowCount()) + roundUp, __vPosition));
}
}
function setRowCount(rC) {
if (isNaN(rC)) {
return(undefined);
}
var _local2 = getViewMetrics();
setSize(__width, ((__rowHeight * rC) + _local2.top) + _local2.bottom);
}
function layoutContent(x, y, tW, tH, dW, dH) {
totalWidth = tW;
totalHeight = tH;
displayWidth = dW;
var _local4 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (Math.max(tW, dW)) : (dW));
super.layoutContent(x, y, _local4, dH);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
var _local3 = eventObj.eventName;
if ((((_local3 == "addItems") || (_local3 == "removeItems")) || (_local3 == "updateAll")) || (_local3 == "filterModel")) {
invScrollProps = true;
invalidate("invScrollProps");
}
}
function onScroll(eventObj) {
var _local3 = eventObj.target;
if (_local3 == vScroller) {
setVPosition(_local3.scrollPosition);
} else {
hScroll(_local3.scrollPosition);
}
super.onScroll(eventObj);
}
function hScroll(pos) {
__hPosition = pos;
listContent._x = -pos;
}
function init(Void) {
super.init();
if (labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
__maxHPosition = 0;
}
function createChildren(Void) {
super.createChildren();
listContent.setMask(mask_mc);
border_mc.move(0, 0);
border_mc.setSize(__width, __height);
}
function getRowCount(Void) {
var _local2 = getViewMetrics();
return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount)));
}
function size(Void) {
super.size();
configureScrolling();
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
function draw(Void) {
if (invRowHeight) {
invScrollProps = true;
super.draw();
listContent.setMask(mask_mc);
invLayoutContent = true;
}
if (invScrollProps) {
configureScrolling();
delete invScrollProps;
}
if (invLayoutContent) {
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
super.draw();
}
function configureScrolling(Void) {
var _local2 = __dataProvider.length;
if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) {
setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition)));
}
var _local3 = getViewMetrics();
var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right));
if (_local2 == undefined) {
_local2 = 0;
}
setScrollProperties(_local4, 1, _local2, __rowHeight);
if (oldVWidth != _local4) {
invLayoutContent = true;
}
oldVWidth = _local4;
}
static var symbolOwner = mx.controls.List;
static var symbolName = "List";
var className = "List";
static var version = "2.0.2.126";
var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1};
var scrollDepth = 1;
var __vScrollPolicy = "on";
var autoHScrollAble = false;
}
Symbol 616 MovieClip Frame 0
class mx.effects.Tween extends Object
{
static var IntervalToken;
var arrayMode, listener, initVal, endVal, startTime, updateFunc, endFunc, ID;
function Tween (listenerObj, init, end, dur) {
super();
if (listenerObj == undefined) {
return;
}
if (typeof(init) != "number") {
arrayMode = true;
}
listener = listenerObj;
initVal = init;
endVal = end;
if (dur != undefined) {
duration = dur;
}
startTime = getTimer();
if (duration == 0) {
endTween();
} else {
AddTween(this);
}
}
static function AddTween(tween) {
tween.ID = ActiveTweens.length;
ActiveTweens.push(tween);
if (IntervalToken == undefined) {
Dispatcher.DispatchTweens = DispatchTweens;
IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval);
}
}
static function RemoveTweenAt(index) {
var _local2 = ActiveTweens;
if (((index >= _local2.length) || (index < 0)) || (index == undefined)) {
return(undefined);
}
_local2.splice(index, 1);
var _local4 = _local2.length;
var _local1 = index;
while (_local1 < _local4) {
_local2[_local1].ID--;
_local1++;
}
if (_local4 == 0) {
clearInterval(IntervalToken);
delete IntervalToken;
}
}
static function DispatchTweens(Void) {
var _local2 = ActiveTweens;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
updateAfterEvent();
}
function doInterval() {
var _local2 = getTimer() - startTime;
var _local3 = getCurVal(_local2);
if (_local2 >= duration) {
endTween();
} else if (updateFunc != undefined) {
listener[updateFunc](_local3);
} else {
listener.onTweenUpdate(_local3);
}
}
function getCurVal(curTime) {
if (arrayMode) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < initVal.length) {
_local3[_local2] = easingEquation(curTime, initVal[_local2], endVal[_local2] - initVal[_local2], duration);
_local2++;
}
return(_local3);
}
return(easingEquation(curTime, initVal, endVal - initVal, duration));
}
function endTween() {
if (endFunc != undefined) {
listener[endFunc](endVal);
} else {
listener.onTweenEnd(endVal);
}
RemoveTweenAt(ID);
}
function setTweenHandlers(update, end) {
updateFunc = update;
endFunc = end;
}
function easingEquation(t, b, c, d) {
return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b);
}
static var ActiveTweens = new Array();
static var Interval = 10;
static var Dispatcher = new Object();
var duration = 3000;
}
Symbol 618 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0
class mx.controls.listclasses.SelectableRow extends mx.core.UIComponent
{
var __height, cell, owner, rowIndex, icon_mc, createObject, __width, backGround, highlight, highlightColor, createLabel, createClassObject, listOwner, tabEnabled, item, createEmptyMovieClip, drawRect, isChangedToSelected, bGTween, grandOwner;
function SelectableRow () {
super();
}
function setValue(itmObj, state) {
var _local7 = __height;
var _local2 = cell;
var _local5 = owner;
var _local8 = itemToString(itmObj);
if (_local2.getValue() != _local8) {
_local2.setValue(_local8, itmObj, state);
}
var _local4 = _local5.getPropertiesAt(rowIndex + _local5.__vPosition).icon;
if (_local4 == undefined) {
_local4 = _local5.__iconFunction(itmObj);
if (_local4 == undefined) {
_local4 = itmObj[_local5.__iconField];
if (_local4 == undefined) {
_local4 = _local5.getStyle("defaultIcon");
}
}
}
var _local3 = icon_mc;
if ((_local4 != undefined) && (itmObj != undefined)) {
_local3 = createObject(_local4, "icon_mc", 20);
_local3._x = 2;
_local3._y = (_local7 - _local3._height) / 2;
_local2._x = 4 + _local3._width;
} else {
_local3.removeMovieClip();
_local2._x = 2;
}
var _local9 = ((_local3 == undefined) ? 0 : (_local3._width));
_local2.setSize(__width - _local9, Math.min(_local7, _local2.getPreferredHeight()));
_local2._y = (_local7 - _local2._height) / 2;
}
function size(Void) {
var _local3 = backGround;
var _local2 = cell;
var _local4 = __height;
var _local5 = __width;
var _local6 = ((icon_mc == undefined) ? 0 : (icon_mc._width));
_local2.setSize(_local5 - _local6, Math.min(_local4, _local2.getPreferredHeight()));
_local2._y = (_local4 - _local2._height) / 2;
icon_mc._y = (_local4 - icon_mc._height) / 2;
_local3._x = 0;
_local3._width = _local5;
_local3._height = _local4;
drawRowFill(_local3, normalColor);
drawRowFill(highlight, highlightColor);
}
function setCellRenderer(forceSizing) {
var _local3 = owner.__cellRenderer;
var _local4;
if (cell != undefined) {
_local4 = cell._x;
cell.removeMovieClip();
cell.removeTextField();
}
var _local2;
if (_local3 == undefined) {
_local2 = (cell = createLabel("cll", 0, {styleName:this}));
_local2.styleName = owner;
_local2.selectable = false;
_local2.tabEnabled = false;
_local2.background = false;
_local2.border = false;
} else if (typeof(_local3) == "string") {
_local2 = (cell = createObject(_local3, "cll", 0, {styleName:this}));
} else {
_local2 = (cell = createClassObject(_local3, "cll", 0, {styleName:this}));
}
_local2.owner = this;
_local2.listOwner = owner;
_local2.getCellIndex = getCellIndex;
_local2.getDataLabel = getDataLabel;
if (_local4 != undefined) {
_local2._x = _local4;
}
if (forceSizing) {
size();
}
}
function getCellIndex(Void) {
return({columnIndex:0, itemIndex:owner.rowIndex + listOwner.__vPosition});
}
function getDataLabel() {
return(listOwner.labelField);
}
function init(Void) {
super.init();
tabEnabled = false;
}
function createChildren(Void) {
setCellRenderer(false);
setupBG();
setState(state, false);
}
function drawRow(itmObj, state, transition) {
item = itmObj;
setState(state, transition);
setValue(itmObj, state, transition);
}
function itemToString(itmObj) {
if (itmObj == undefined) {
return(" ");
}
var _local2 = owner.__labelFunction(itmObj);
if (_local2 == undefined) {
_local2 = ((itmObj instanceof XMLNode) ? (itmObj.attributes[owner.__labelField]) : (itmObj[owner.__labelField]));
if (_local2 == undefined) {
_local2 = " ";
if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
}
}
return(_local2);
}
function setupBG(Void) {
var _local2 = (backGround = createEmptyMovieClip("bG_mc", LOWEST_DEPTH));
drawRowFill(_local2, normalColor);
highlight = createEmptyMovieClip("tran_mc", LOWEST_DEPTH + 10);
_local2.owner = this;
_local2.grandOwner = owner;
_local2.onPress = bGOnPress;
_local2.onRelease = bGOnRelease;
_local2.onRollOver = bGOnRollOver;
_local2.onRollOut = bGOnRollOut;
_local2.onDragOver = bGOnDragOver;
_local2.onDragOut = bGOnDragOut;
_local2.useHandCursor = false;
_local2.trackAsMenu = true;
_local2.drawRect = drawRect;
highlight.drawRect = drawRect;
}
function drawRowFill(mc, newClr) {
mc.clear();
mc.beginFill(newClr);
mc.drawRect(1, 0, __width, __height);
mc.endFill();
mc._width = __width;
mc._height = __height;
}
function setState(newState, transition) {
var _local2 = highlight;
var _local8 = backGround;
var _local4 = __height;
var _local3 = owner;
if (!_local3.enabled) {
if ((newState == "selected") || (state == "selected")) {
highlightColor = _local3.getStyle("selectionDisabledColor");
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local2._y = 0;
_local2._height = _local4;
} else {
_local2._visible = false;
normalColor = _local3.getStyle("backgroundDisabledColor");
drawRowFill(_local8, normalColor);
}
cell.__enabled = false;
cell.setColor(_local3.getStyle("disabledColor"));
} else {
cell.__enabled = true;
if (transition && ((newState == state) || ((newState == "highlighted") && (state == "selected")))) {
isChangedToSelected = true;
return(undefined);
}
var _local6 = _local3.getStyle("selectionDuration");
var _local7 = 0;
if (isChangedToSelected && (newState == "selected")) {
transition = false;
}
var _local10 = transition && (_local6 != 0);
if (newState == "normal") {
_local7 = _local3.getStyle("color");
normalColor = getNormalColor();
drawRowFill(_local8, normalColor);
if (_local10) {
_local6 = _local6 / 2;
_local2._height = _local4;
_local2._width = __width;
_local2._y = 0;
bGTween = new mx.effects.Tween(this, _local4 + 2, _local4 * 0.2, _local6, 5);
} else {
_local2._visible = false;
}
delete isChangedToSelected;
} else {
highlightColor = _local3.getStyle(((newState == "highlighted") ? "rollOverColor" : "selectionColor"));
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local7 = _local3.getStyle(((newState == "highlighted") ? "textRollOverColor" : "textSelectedColor"));
if (_local10) {
_local2._height = _local4 * 0.5;
_local2._y = (_local4 - _local2._height) / 2;
bGTween = new mx.effects.Tween(this, _local2._height, _local4 + 2, _local6, 5);
var _local9 = _local3.getStyle("selectionEasing");
if (_local9 != undefined) {
bGTween.easingEquation = _local9;
}
} else {
_local2._y = 0;
_local2._height = _local4;
}
}
cell.setColor(_local7);
}
state = newState;
}
function onTweenUpdate(val) {
highlight._height = val;
highlight._y = (__height - val) / 2;
}
function onTweenEnd(val) {
onTweenUpdate(val);
highlight._visible = state != "normal";
}
function getNormalColor(Void) {
var _local3;
var _local2 = owner;
if (!owner.enabled) {
_local3 = _local2.getStyle("backgroundDisabledColor");
} else {
var _local5 = rowIndex + _local2.__vPosition;
if (rowIndex == undefined) {
_local3 = _local2.getPropertiesOf(item).backgroundColor;
} else {
_local3 = _local2.getPropertiesAt(_local5).backgroundColor;
}
if (_local3 == undefined) {
var _local4 = _local2.getStyle("alternatingRowColors");
if (_local4 == undefined) {
_local3 = _local2.getStyle("backgroundColor");
} else {
_local3 = _local4[_local5 % _local4.length];
}
}
}
return(_local3);
}
function invalidateStyle(propName) {
cell.invalidateStyle(propName);
super.invalidateStyle(propName);
}
function bGOnPress(Void) {
grandOwner.pressFocus();
grandOwner.onRowPress(owner.rowIndex);
}
function bGOnRelease(Void) {
grandOwner.releaseFocus();
grandOwner.onRowRelease(owner.rowIndex);
}
function bGOnRollOver(Void) {
grandOwner.onRowRollOver(owner.rowIndex);
}
function bGOnRollOut(Void) {
grandOwner.onRowRollOut(owner.rowIndex);
}
function bGOnDragOver(Void) {
grandOwner.onRowDragOver(owner.rowIndex);
}
function bGOnDragOut(Void) {
grandOwner.onRowDragOut(owner.rowIndex);
}
static var LOWEST_DEPTH = -16384;
var state = "normal";
var disabledColor = 15263976;
var normalColor = 16777215;
}
Symbol 620 MovieClip Frame 0
class mx.controls.CheckBox extends mx.controls.Button
{
var _getTextFormat, labelPath, iconName;
function CheckBox () {
super();
}
function onRelease() {
super.onRelease();
}
function init() {
super.init();
}
function size() {
super.size();
}
function get emphasized() {
return(undefined);
}
function calcPreferredHeight() {
var _local5 = _getTextFormat();
var _local3 = _local5.getTextExtent2(labelPath.text).height;
var _local4 = iconName._height;
var _local2 = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
_local2 = Math.max(_local3, _local4);
} else {
_local2 = _local3 + _local4;
}
return(Math.max(14, _local2));
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "CheckBox";
static var symbolOwner = mx.controls.CheckBox;
static var version = "2.0.2.126";
var className = "CheckBox";
var ignoreClassStyleDeclaration = {Button:1};
var btnOffset = 0;
var __toggle = true;
var __selected = false;
var __labelPlacement = "right";
var __label = "CheckBox";
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "CheckFalseUp";
var falseDownIcon = "CheckFalseDown";
var falseOverIcon = "CheckFalseOver";
var falseDisabledIcon = "CheckFalseDisabled";
var trueUpIcon = "CheckTrueUp";
var trueDownIcon = "CheckTrueDown";
var trueOverIcon = "CheckTrueOver";
var trueDisabledIcon = "CheckTrueDisabled";
var clipParameters = {label:1, labelPlacement:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
var centerContent = false;
var borderW = 0;
}
Symbol 622 MovieClip [__Packages.mx.containers.Window] Frame 0
class mx.containers.Window extends mx.core.ScrollView
{
var destroyChildAt, __contentPath, boundingBox_mc, _parent, modalWindow, swapDepths, regX, _xmouse, regY, _ymouse, onMouseMove, move, back_mc, createClassObject, depth, titleStyleDeclaration, button_mc, validateNow, redraw, invalidate, _title, _child0, border_mc, __get__width, __get__height, size, vScroller, hScroller, closeButton, dispatchEvent;
function Window () {
super();
}
function set contentPath(scrollableContent) {
if (!initializing) {
if (scrollableContent == undefined) {
destroyChildAt(0);
} else {
if (this[mx.core.View.childNameBase + 0] != undefined) {
destroyChildAt(0);
}
createChild(scrollableContent, "content", {styleName:this});
}
}
__contentPath = scrollableContent;
//return(contentPath);
}
function get contentPath() {
return(__contentPath);
}
function init(Void) {
super.init();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function delegateClick(obj) {
_parent.dispatchEvent({type:"click"});
}
function startDragging(Void) {
if (modalWindow == undefined) {
var _local2 = _parent.createChildAtDepth("BoundingBox", mx.managers.DepthManager.kTop, {_visible:false});
swapDepths(_local2);
_local2.removeMovieClip();
}
regX = _xmouse;
regY = _ymouse;
onMouseMove = dragTracking;
}
function stopDragging(Void) {
delete onMouseMove;
}
function dragTracking() {
var _local5 = _parent._xmouse - regX;
var _local4 = _parent._ymouse - regY;
var _local3 = 5;
var _local2 = mx.managers.SystemManager.__get__screen();
if (_local5 < ((_local2.x - regX) + _local3)) {
_local5 = (_local2.x - regX) + _local3;
}
if (_local5 > ((_local2.width + _local2.x) - (regX + _local3))) {
_local5 = (_local2.width + _local2.x) - (regX + _local3);
}
if (_local4 < ((_local2.y - regY) + _local3)) {
_local4 = (_local2.y - regY) + _local3;
}
if (_local4 > ((_local2.height + _local2.y) - (regY + _local3))) {
_local4 = (_local2.height + _local2.y) - (regY + _local3);
}
move(_local5, _local4);
updateAfterEvent();
}
function createChildren(Void) {
super.createChildren();
if (back_mc == undefined) {
createClassObject(mx.core.UIObject, "back_mc", 1);
back_mc.createObject(skinTitleBackground, "back_mc", 0);
}
back_mc.visible = false;
depth = 3;
var _local6 = new Object();
back_mc.useHandCursor = false;
back_mc.onPress = function () {
if (this._parent.enabled) {
this._parent.startDragging();
}
};
back_mc.onDragOut = (back_mc.onRollOut = (back_mc.onReleaseOutside = (back_mc.onRelease = function () {
var _local2 = this._parent;
_local2.stopDragging();
})));
back_mc.tabEnabled = false;
if (back_mc.title_mc == undefined) {
back_mc.createLabel("title_mc", 1, title);
var _local4 = back_mc.title_mc;
if (titleStyleDeclaration == undefined) {
_local4.fontSize = 10;
_local4.color = 16777215 /* 0xFFFFFF */;
_local4.fontWeight = "bold";
} else {
_local4.styleName = titleStyleDeclaration;
}
_local4.invalidateStyle();
} else {
back_mc.title_mc.text = title;
}
var _local3 = new Object();
_local3.falseUpSkin = skinCloseUp;
_local3.falseOverSkin = skinCloseOver;
_local3.falseDownSkin = skinCloseDown;
_local3.falseDisabledSkin = skinCloseDisabled;
_local3.tabEnabled = false;
createClassObject(mx.controls.SimpleButton, "button_mc", 2, _local3);
button_mc.clickHandler = delegateClick;
button_mc.__set__visible(false);
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function get title() {
return(_title);
}
function set title(s) {
_title = s;
back_mc.title_mc.text = s;
if (!initializing) {
draw();
}
//return(title);
}
function setEnabled(enable) {
super.setEnabled(enable);
button_mc.enabled = enable;
_child0.enabled = enable;
}
function getComponentCount(Void) {
return(1);
}
function getComponentRect(container) {
if (container == 1) {
var _local3 = border_mc.__get__borderMetrics();
var _local2 = new Object();
_local2.x = _local3.left;
_local2.y = _local3.top + back_mc.height;
_local2.width = (__get__width() - _local2.x) - _local3.right;
_local2.height = (__get__height() - _local2.y) - _local3.bottom;
return(_local2);
}
return(undefined);
}
function draw(Void) {
if (initializing) {
initializing = false;
if (__contentPath != undefined) {
contentPath = (__contentPath);
}
_child0.visible = true;
border_mc.__set__visible(true);
back_mc.visible = true;
}
size();
}
function getViewMetrics(Void) {
var _local3 = super.getViewMetrics();
_local3.top = _local3.top + back_mc.height;
return(_local3);
}
function doLayout(Void) {
super.doLayout();
var _local3 = border_mc.__get__borderMetrics();
_local3.right = _local3.right + ((vScroller.__get__visible() == true) ? (vScroller.__get__width()) : 0);
_local3.bottom = _local3.bottom + ((hScroller.__get__visible() == true) ? (hScroller.__get__height()) : 0);
var _local4 = _local3.left;
var _local6 = _local3.top;
back_mc.move(_local4, _local6);
back_mc.back_mc.setSize((__get__width() - _local4) - _local3.right, back_mc.height);
_child0.move(_local4, _local6 + back_mc.height);
if (_child0.size != mx.core.UIObject.prototype.size) {
_child0.setSize((__get__width() - _local4) - _local3.right, ((__get__height() - _local6) - back_mc.height) - _local3.bottom);
}
button_mc.__set__visible(closeButton == true);
button_mc.move(((__get__width() - _local4) - _local4) - button_mc.__get__width(), ((back_mc.height - button_mc.__get__height()) / 2) + _local6);
var _local7 = back_mc.title_mc.textHeight;
var _local5 = ((back_mc.height - _local7) - 4) / 2;
back_mc.title_mc.move(_local5, _local5 - 1);
back_mc.title_mc.setSize((__get__width() - _local5) - _local5, _local7 + 4);
}
function createChild(id, name, props) {
loadingChild = true;
var _local3 = super.createChild(id, name, props);
loadingChild = false;
return(_local3);
}
function childLoaded(obj) {
super.childLoaded(obj);
if (loadingChild) {
dispatchEvent({type:"complete", current:obj.getBytesLoaded(), total:obj.getBytesTotal()});
}
}
static var symbolName = "Window";
static var symbolOwner = mx.containers.Window;
static var version = "2.0.2.126";
var className = "Window";
static var skinIDBorder = 0;
static var skinIDTitleBackground = 1;
static var skinIDForm = 2;
var idNames = new Array("border_mc", "back_mc", "content");
var skinTitleBackground = "TitleBackground";
var skinCloseUp = "CloseButtonUp";
var skinCloseOver = "CloseButtonOver";
var skinCloseDown = "CloseButtonDown";
var skinCloseDisabled = "CloseButtonDisabled";
var clipParameters = {title:1, contentPath:1, closeButton:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.containers.Window.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var initializing = true;
var loadingChild = false;
}
Symbol 624 MovieClip [__Packages.mx.controls.Alert] Frame 0
class mx.controls.Alert extends mx.containers.Window
{
static var style, titleStyleDeclaration, messageStyleDeclaration;
var __set__visible, styleName, __set__contentPath, initializing, parent, __get__width, __get__height, move, _child0, __width, width, __height, height, border_mc, back_mc, invalidate;
function Alert () {
super();
}
static function show(text, title, flags, parent, listener, icon, defButton) {
var _local2 = new Object();
var _local6 = ((flags & NONMODAL) ? false : true);
if (parent == undefined) {
parent = (_local2.parent = _root);
} else {
_local2.parent = parent;
}
_local2.okButton = ((flags & OK) ? true : false);
_local2.cancelButton = ((flags & CANCEL) ? true : false);
_local2.yesButton = ((flags & YES) ? true : false);
_local2.noButton = ((flags & NO) ? true : false);
_local2.defButton = defButton;
if ((((_local2.okButton == false) && (_local2.cancelButton == false)) && (_local2.yesButton == false)) && (_local2.noButton == false)) {
_local2.okButton = true;
_local2.defButton = OK;
}
_local2.title = title;
_local2.text = text;
_local2.icon = icon;
_local2.style = style;
_local2.skinTitleBackground = titleBackground;
_local2.titleStyleDeclaration = titleStyleDeclaration;
_local2.validateNow = true;
var _local4 = mx.managers.PopUpManager.createPopUp(parent, mx.controls.Alert, _local6, _local2);
if (_local4 == undefined) {
trace("Failed to create a new alert, probably because there is no Alert in the Library");
}
_local4.addEventListener("click", listener);
return(_local4);
}
function init(Void) {
super.init();
__set__visible(false);
}
function createChildren(Void) {
if (messageStyleDeclaration != undefined) {
styleName = messageStyleDeclaration;
}
var _local3 = mx.controls.alertClasses.AlertForm;
__set__contentPath(_local3);
super.createChildren();
}
function getViewMetrics(Void) {
var _local2 = super.getViewMetrics();
return(_local2);
}
function doLayout(Void) {
super.doLayout();
}
function draw(Void) {
var _local9 = initializing;
super.draw();
if (_local9) {
var _local5 = new Object();
_local5.x = parent._x;
_local5.y = parent._y;
parent.localToGlobal(_local5);
var _local7 = parent.width;
var _local8 = parent.height;
if (((parent == _root) && (parent._parent == undefined)) || (_local7 == undefined)) {
var _local6 = mx.managers.SystemManager.__get__screen();
_local7 = _local6.width;
_local8 = _local6.height;
_local5.x = _local6.x;
_local5.y = _local6.y;
}
if (_global.isLivePreview) {
return(undefined);
}
_local5.x = _local5.x + ((_local7 - __get__width()) / 2);
_local5.y = _local5.y + ((_local8 - __get__height()) / 2);
parent.globalToLocal(_local5);
move(_local5.x, _local5.y);
if (_child0.defButtonName != undefined) {
_child0[_child0.defButtonName].setFocus();
} else {
_child0.buttons[0].setFocus();
}
}
}
function size(Void) {
if (_global.isLivePreview) {
__width = width;
__height = height;
} else {
var _local4 = _child0.getSize();
if (isNaN(_local4.width) || (_local4.width < 20)) {
_local4.width = 96;
}
if (isNaN(_local4.height) || (_local4.height < 20)) {
_local4.height = 66;
}
var _local5 = border_mc.__get__borderMetrics();
if (!allowSize) {
__width = _local4.width + (2 * _local5.left);
__height = ((_local4.height + _local5.top) + _local5.bottom) + back_mc.height;
allowSize = false;
}
}
super.size();
}
function setSize(w, h) {
__width = w;
__height = h;
initializing = (allowSize = true);
invalidate();
}
static var symbolOwner = mx.containers.Window;
static var version = "2.0.2.126";
static var buttonWidth = 50;
static var buttonHeight = 22;
static var okLabel = "OK";
static var yesLabel = "Yes";
static var noLabel = "No";
static var cancelLabel = "Cancel";
static var buttonUp = "ButtonSkin";
static var buttonDown = "ButtonSkin";
static var buttonOver = "ButtonSkin";
static var titleBackground = "TitleBackground";
static var buttonUpEmphasized = "ButtonSkin";
static var buttonOverEmphasized = "ButtonSkin";
static var buttonDownEmphasized = "ButtonSkin";
var className = "Alert";
var allowSize = false;
static var NONMODAL = 32768;
static var YES = 1;
static var NO = 2;
static var OK = 4;
static var CANCEL = 8;
static var P = _root;
}
Symbol 626 MovieClip [__Packages.mx.controls.alertClasses.AlertForm] Frame 0
class mx.controls.alertClasses.AlertForm extends mx.core.UIComponent
{
var _parent, tabChildren, tabEnabled, text_mc, createClassObject, textMeasure_mc, createTextField, icon_mc, setSkin, buttons, doLater, createClassChildAtDepth, extent, __get__height, __get__width, detail;
function AlertForm () {
super();
}
function init(Void) {
super.init();
}
function setDefaultButton() {
_parent.focusManager.defaultPushButton = this[defButtonName];
}
function createChildren(Void) {
tabChildren = true;
tabEnabled = false;
if (text_mc == undefined) {
createClassObject(mx.controls.TextArea, "text_mc", 0, {styleName:this, borderStyle:"none", readOnly:true});
}
text_mc.tabEnabled = false;
text_mc.tabChildren = false;
text_mc.hScrollPolicy = "off";
text_mc.vScrollPolicy = "off";
text_mc.label.selectable = false;
if (textMeasure_mc == undefined) {
createTextField("textMeasure_mc", -1, 0, 0, 0, 0);
}
textMeasure_mc._visible = false;
textMeasure_mc.multiline = true;
textMeasure_mc.wordWrap = true;
textMeasure_mc.autoSize = "left";
if ((icon_mc == undefined) && (_parent.icon != undefined)) {
setSkin(1, _parent.icon);
}
buttons = new Array();
var _local2 = _parent.defButton;
if (_parent.okButton) {
createButton("okButton", mx.controls.Alert.okLabel, mx.controls.Alert.OK);
if (_local2 == mx.controls.Alert.OK) {
defButtonName = "okButton";
}
}
if (_parent.yesButton) {
createButton("yesButton", mx.controls.Alert.yesLabel, mx.controls.Alert.YES);
if (_local2 == mx.controls.Alert.YES) {
defButtonName = "yesButton";
}
}
if (_parent.noButton) {
createButton("noButton", mx.controls.Alert.noLabel, mx.controls.Alert.NO);
if (_local2 == mx.controls.Alert.NO) {
defButtonName = "noButton";
}
}
if (_parent.cancelButton) {
createButton("cancelButton", mx.controls.Alert.cancelLabel, mx.controls.Alert.CANCEL);
if (_local2 == mx.controls.Alert.CANCEL) {
defButtonName = "cancelButton";
}
}
if (defButtonName != undefined) {
this[defButtonName].emphasized = true;
this[defButtonName].redraw(true);
doLater(this, "setDefaultButton");
}
}
function createButton(name, title, detail) {
var _local3 = mx.controls.Alert.buttonStyleDeclaration;
var _local2 = createClassChildAtDepth(mx.controls.Button, mx.managers.DepthManager.kTop, {falseUpSkin:mx.controls.Alert.buttonUp, falseDownSkin:mx.controls.Alert.buttonDown, falseOverSkin:mx.controls.Alert.buttonOver, falseOverSkinEmphasized:mx.controls.Alert.buttonOverEmphasized, falseUpSkinEmphasized:mx.controls.Alert.buttonUpEmphasized, falseDownSkinEmphasized:mx.controls.Alert.buttonDownEmphasized, styleName:((_local3 == undefined) ? this : (mx.controls.Alert.buttonStyleDeclaration)), validateNow:true});
_local2.setLabel(title);
_local2.setSize(mx.controls.Alert.buttonWidth, mx.controls.Alert.buttonHeight);
buttons.push(_local2);
_local2.clickHandler = onClick;
_local2.detail = detail;
this[name] = _local2;
}
function getSize(Void) {
var _local2 = new Object();
_local2.height = buttons[0].height + 24;
var _local8 = _parent.back_mc.title_mc._getTextFormat();
extent = _local8.getTextExtent2(_parent.title);
_local2.width = Math.max(Math.max(2, buttons.length) * (buttons[0].width + 8), (extent.width + 4) + 8);
var _local7 = text_mc._getTextFormat();
extent = _local7.getTextExtent2(_parent.text);
textMeasure_mc._width = 2 * _local2.width;
textMeasure_mc.setNewTextFormat(text_mc._getTextFormat());
textMeasure_mc.text = _parent.text;
_local2.height = _local2.height + (textMeasure_mc.textHeight + 8);
var _local4 = Math.ceil(textMeasure_mc.textHeight / extent.height);
if (_local4 > 1) {
extent.width = 2 * _local2.width;
text_mc.__set__wordWrap(true);
}
var _local3 = Math.min((extent.width + 4) + 8, 2 * _local2.width);
var _local6 = _local2.width;
_local2.width = Math.max(_local3, _local2.width) + 8;
if (icon_mc != undefined) {
extent.width = extent.width + (icon_mc.width + 8);
_local3 = Math.min((extent.width + 4) + 8, 2 * _local6);
_local2.width = Math.max(_local3, _local2.width) + 8;
var _local5 = icon_mc.height - (_local4 * (extent.height + 4));
if (_local5 > 0) {
_local2.height = _local2.height + _local5;
}
}
return(_local2);
}
function draw(Void) {
size();
_parent.visible = true;
}
function size(Void) {
var _local4 = (__get__height() - buttons[0].height) - 8;
var _local3 = (buttons.length * (buttons[0].width + 8)) - 8;
_local3 = (__get__width() - _local3) / 2;
var _local2 = 0;
while (_local2 < buttons.length) {
buttons[_local2].move(_local3, _local4);
buttons[_local2].tabIndex = _local2 + 1;
_local3 = _local3 + (buttons[_local2].width + 8);
_local2++;
}
_local4 = _local4 - 8;
_local3 = Math.max(((__get__width() - extent.width) - 4) / 2, 8);
if (icon_mc != undefined) {
icon_mc.move(_local3, ((__get__height() - buttons[0].height) - icon_mc.height) / 2);
_local3 = _local3 + (icon_mc.width + 8);
}
text_mc.move(_local3, 8);
text_mc.setSize((__get__width() - _local3) - 8, _local4 - 8);
if (_parent.text == undefined) {
text_mc.__set__text("");
} else {
text_mc.__set__text(_parent.text);
}
}
function onClick(evt) {
var _local2 = _parent._parent;
_local2.__set__visible(false);
_local2.dispatchEvent({type:"click", detail:detail});
_local2.deletePopUp();
}
static var symbolOwner = mx.core.UIComponent;
var idNames = ["text_mc", "icon_mc"];
var defButtonName = undefined;
}
Instance of Symbol 295 MovieClip [Button] "button_mc" in Symbol 240 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 486 MovieClip [CheckBox] "checkbox_mc" in Symbol 240 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 459 MovieClip [ComboBox] "combobox_mc" in Symbol 240 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 427 MovieClip [RadioButton] "radiobutton_mc" in Symbol 240 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 400 MovieClip [TextArea] "textarea_mc" in Symbol 240 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 270 MovieClip [TextInput] "textinput_mc" in Symbol 240 MovieClip Frame 1
/* no clip actions */
Symbol 194 MovieClip [correctFeedback_1] Frame 1
#initclip 275
Object.registerClass("correctFeedback_1", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = true;
var _accText = "Correct - Click anywhere to continue";
Symbol 199 MovieClip [incorrectFeedback_1_0] Frame 1
#initclip 274
Object.registerClass("incorrectFeedback_1_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 204 MovieClip [incompleteFeedback_1] Frame 1
#initclip 276
Object.registerClass("incompleteFeedback_1", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 210 MovieClip Frame 1
var _accText = "Multiple choice";
Symbol 213 MovieClip Frame 1
var _accText = "Are you a newfag?";
Symbol 217 MovieClip [Q_1answerText_0] Frame 1
#initclip 262
Object.registerClass("Q_1answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "Yes";
Symbol 216 MovieClip [q1_answer_0_mc] Frame 1
#initclip 263
Object.registerClass("q1_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswer);
#endinitclip
var ans_to_attach = "Q_1answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = true;
Symbol 223 MovieClip [Q_1answerText_1] Frame 1
#initclip 264
Object.registerClass("Q_1answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "No";
Symbol 222 MovieClip [q1_answer_1_mc] Frame 1
#initclip 265
Object.registerClass("q1_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswer);
#endinitclip
var ans_to_attach = "Q_1answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 229 MovieClip [Q_1answerText_2] Frame 1
#initclip 266
Object.registerClass("Q_1answerText_2", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "C";
var feedback = this._parent.answer_fb_2_mc;
var _accText = "Desu desu desu desu";
Symbol 228 MovieClip [q1_answer_2_mc] Frame 1
#initclip 267
Object.registerClass("q1_answer_2_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswer);
#endinitclip
var ans_to_attach = "Q_1answerText_2";
var useHandCursor = true;
var answerID = "C";
var isTrueAnswer = false;
Symbol 235 MovieClip [Q_1answerText_3] Frame 1
#initclip 268
Object.registerClass("Q_1answerText_3", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "D";
var feedback = this._parent.answer_fb_3_mc;
var _accText = "tits or gtfo";
Symbol 234 MovieClip [q1_answer_3_mc] Frame 1
#initclip 269
Object.registerClass("q1_answer_3_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceMultipleAnswer);
#endinitclip
var ans_to_attach = "Q_1answerText_3";
var useHandCursor = true;
var answerID = "D";
var isTrueAnswer = false;
Symbol 635 MovieClip [_submitbutton] Frame 1
#initclip 270
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 635 MovieClip [_submitbutton] Frame 6
stop();
Symbol 635 MovieClip [_submitbutton] Frame 11
stop();
Symbol 635 MovieClip [_submitbutton] Frame 16
stop();
Symbol 645 MovieClip [_nextbutton] Frame 1
#initclip 271
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 645 MovieClip [_nextbutton] Frame 6
stop();
Symbol 645 MovieClip [_nextbutton] Frame 11
stop();
Symbol 645 MovieClip [_nextbutton] Frame 16
stop();
Symbol 655 MovieClip [_backbutton] Frame 1
#initclip 272
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 655 MovieClip [_backbutton] Frame 6
stop();
Symbol 655 MovieClip [_backbutton] Frame 11
stop();
Symbol 655 MovieClip [_backbutton] Frame 16
stop();
Symbol 665 MovieClip [_clearbutton] Frame 1
#initclip 273
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 665 MovieClip [_clearbutton] Frame 6
stop();
Symbol 665 MovieClip [_clearbutton] Frame 11
stop();
Symbol 665 MovieClip [_clearbutton] Frame 16
stop();
Symbol 667 MovieClip [timeoutFeedback] Frame 1
#initclip 277
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 209 MovieClip [question_1] Frame 1
#initclip 278
Object.registerClass("question_1", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "Are you a newfag?";
this.questionNumInQuiz = 0;
this.isTracked = true;
this.isSurvey = true;
this._numIncorrectFeedback = 1232184 /* 0x12CD38 */;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction10119";
questionScore.weighting = 0;
questionScore.interactionType = "choice";
var AnswersOrder_array = new Array("Q_1answerText_0", "Q_1answerText_1", "Q_1answerText_2", "Q_1answerText_3");
this._shuffleAnswers = true;
Symbol 669 MovieClip [progressInd] Frame 1
#initclip 279
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 670 MovieClip [19b420a2_6] Frame 1
#initclip 280
Object.registerClass("19b420a2_6", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 670 MovieClip [19b420a2_6] Frame 91
stop();
Symbol 192 MovieClip [slide1__question_mc] Frame 1
#initclip 281
Object.registerClass("slide1__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 1;
this.m_currentQuesNumber = 1;
this.m_totalQuestions = 12;
Symbol 192 MovieClip [slide1__question_mc] Frame 90
stop();
Symbol 673 MovieClip [correctFeedback_2] Frame 1
#initclip 291
Object.registerClass("correctFeedback_2", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = true;
var _accText = "Correct - Click anywhere to continue";
Symbol 678 MovieClip [incorrectFeedback_2_0] Frame 1
#initclip 290
Object.registerClass("incorrectFeedback_2_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 683 MovieClip [incompleteFeedback_2] Frame 1
#initclip 292
Object.registerClass("incompleteFeedback_2", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 689 MovieClip Frame 1
var _accText = "True/False";
Symbol 691 MovieClip Frame 1
var _accText = "Girls on the interbutt?";
Symbol 694 MovieClip [Q_2answerText_0] Frame 1
#initclip 282
Object.registerClass("Q_2answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "True";
Symbol 693 MovieClip [q2_answer_0_mc] Frame 1
#initclip 283
Object.registerClass("q2_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_2answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = true;
Symbol 700 MovieClip [Q_2answerText_1] Frame 1
#initclip 284
Object.registerClass("Q_2answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "False";
Symbol 699 MovieClip [q2_answer_1_mc] Frame 1
#initclip 285
Object.registerClass("q2_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_2answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 713 MovieClip [_submitbutton] Frame 1
#initclip 286
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 713 MovieClip [_submitbutton] Frame 6
stop();
Symbol 713 MovieClip [_submitbutton] Frame 11
stop();
Symbol 713 MovieClip [_submitbutton] Frame 16
stop();
Symbol 723 MovieClip [_nextbutton] Frame 1
#initclip 287
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 723 MovieClip [_nextbutton] Frame 6
stop();
Symbol 723 MovieClip [_nextbutton] Frame 11
stop();
Symbol 723 MovieClip [_nextbutton] Frame 16
stop();
Symbol 733 MovieClip [_backbutton] Frame 1
#initclip 288
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 733 MovieClip [_backbutton] Frame 6
stop();
Symbol 733 MovieClip [_backbutton] Frame 11
stop();
Symbol 733 MovieClip [_backbutton] Frame 16
stop();
Symbol 743 MovieClip [_clearbutton] Frame 1
#initclip 289
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 743 MovieClip [_clearbutton] Frame 6
stop();
Symbol 743 MovieClip [_clearbutton] Frame 11
stop();
Symbol 743 MovieClip [_clearbutton] Frame 16
stop();
Symbol 745 MovieClip [timeoutFeedback] Frame 1
#initclip 293
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 688 MovieClip [question_2] Frame 1
#initclip 294
Object.registerClass("question_2", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "Girls on the interbutt?";
this.questionNumInQuiz = 1;
this.isTracked = true;
this.isSurvey = true;
this._numIncorrectFeedback = 1232184 /* 0x12CD38 */;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction10309";
questionScore.weighting = 0;
questionScore.interactionType = "true-false";
var AnswersOrder_array = new Array("Q_2answerText_0", "Q_2answerText_1");
this._shuffleAnswers = false;
Symbol 747 MovieClip [progressInd] Frame 1
#initclip 295
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 748 MovieClip [19b420a2_7] Frame 1
#initclip 296
Object.registerClass("19b420a2_7", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 748 MovieClip [19b420a2_7] Frame 91
stop();
Symbol 671 MovieClip [slide2__question_mc] Frame 1
#initclip 297
Object.registerClass("slide2__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 2;
this.m_currentQuesNumber = 2;
this.m_totalQuestions = 12;
Symbol 671 MovieClip [slide2__question_mc] Frame 90
stop();
Symbol 751 MovieClip [correctFeedback_3] Frame 1
#initclip 309
Object.registerClass("correctFeedback_3", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = true;
var _accText = "Correct - Click anywhere to continue";
Symbol 756 MovieClip [incorrectFeedback_3_0] Frame 1
#initclip 308
Object.registerClass("incorrectFeedback_3_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 761 MovieClip [incompleteFeedback_3] Frame 1
#initclip 310
Object.registerClass("incompleteFeedback_3", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 767 MovieClip Frame 1
var _accText = "Multiple choice";
Symbol 769 MovieClip Frame 1
var _accText = "Mootle is a faggot.";
Symbol 772 MovieClip [Q_3answerText_0] Frame 1
#initclip 298
Object.registerClass("Q_3answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "Sure is.";
Symbol 771 MovieClip [q3_answer_0_mc] Frame 1
#initclip 299
Object.registerClass("q3_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_3answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = false;
Symbol 778 MovieClip [Q_3answerText_1] Frame 1
#initclip 300
Object.registerClass("Q_3answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "FUCK YOU";
Symbol 777 MovieClip [q3_answer_1_mc] Frame 1
#initclip 301
Object.registerClass("q3_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_3answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 784 MovieClip [Q_3answerText_2] Frame 1
#initclip 302
Object.registerClass("Q_3answerText_2", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "C";
var feedback = this._parent.answer_fb_2_mc;
var _accText = "b&";
Symbol 783 MovieClip [q3_answer_2_mc] Frame 1
#initclip 303
Object.registerClass("q3_answer_2_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_3answerText_2";
var useHandCursor = true;
var answerID = "C";
var isTrueAnswer = false;
Symbol 797 MovieClip [_submitbutton] Frame 1
#initclip 304
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 797 MovieClip [_submitbutton] Frame 6
stop();
Symbol 797 MovieClip [_submitbutton] Frame 11
stop();
Symbol 797 MovieClip [_submitbutton] Frame 16
stop();
Symbol 807 MovieClip [_nextbutton] Frame 1
#initclip 305
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 807 MovieClip [_nextbutton] Frame 6
stop();
Symbol 807 MovieClip [_nextbutton] Frame 11
stop();
Symbol 807 MovieClip [_nextbutton] Frame 16
stop();
Symbol 817 MovieClip [_backbutton] Frame 1
#initclip 306
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 817 MovieClip [_backbutton] Frame 6
stop();
Symbol 817 MovieClip [_backbutton] Frame 11
stop();
Symbol 817 MovieClip [_backbutton] Frame 16
stop();
Symbol 827 MovieClip [_clearbutton] Frame 1
#initclip 307
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 827 MovieClip [_clearbutton] Frame 6
stop();
Symbol 827 MovieClip [_clearbutton] Frame 11
stop();
Symbol 827 MovieClip [_clearbutton] Frame 16
stop();
Symbol 829 MovieClip [timeoutFeedback] Frame 1
#initclip 311
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 766 MovieClip [question_3] Frame 1
#initclip 312
Object.registerClass("question_3", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "Mootle is a faggot.";
this.questionNumInQuiz = 2;
this.isTracked = true;
this.isSurvey = true;
this._numIncorrectFeedback = 1232184 /* 0x12CD38 */;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction10372";
questionScore.weighting = 0;
questionScore.interactionType = "choice";
var AnswersOrder_array = new Array("Q_3answerText_0", "Q_3answerText_1", "Q_3answerText_2");
this._shuffleAnswers = false;
Symbol 831 MovieClip [progressInd] Frame 1
#initclip 313
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 832 MovieClip [19b420a2_8] Frame 1
#initclip 314
Object.registerClass("19b420a2_8", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 832 MovieClip [19b420a2_8] Frame 91
stop();
Symbol 749 MovieClip [slide3__question_mc] Frame 1
#initclip 315
Object.registerClass("slide3__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 3;
this.m_currentQuesNumber = 3;
this.m_totalQuestions = 12;
Symbol 749 MovieClip [slide3__question_mc] Frame 90
stop();
Symbol 835 MovieClip [correctFeedback_4] Frame 1
#initclip 326
Object.registerClass("correctFeedback_4", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Correct - Click anywhere to continue";
Symbol 840 MovieClip [incorrectFeedback_4_0] Frame 1
#initclip 325
Object.registerClass("incorrectFeedback_4_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 845 MovieClip [incompleteFeedback_4] Frame 1
#initclip 327
Object.registerClass("incompleteFeedback_4", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 851 MovieClip Frame 1
var _accText = "True/False";
Symbol 853 MovieClip Frame 1
var _accText = "Bring back snacks.";
Symbol 856 MovieClip [Q_4answerText_0] Frame 1
#initclip 316
Object.registerClass("Q_4answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "True";
Symbol 855 MovieClip [q4_answer_0_mc] Frame 1
#initclip 317
Object.registerClass("q4_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_4answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = true;
Symbol 862 MovieClip [Q_4answerText_1] Frame 1
#initclip 318
Object.registerClass("Q_4answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "False";
Symbol 861 MovieClip [q4_answer_1_mc] Frame 1
#initclip 319
Object.registerClass("q4_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_4answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 868 MovieClip Frame 1
var _accText = "You did not answer this question completely";
Symbol 870 MovieClip Frame 1
var _accText = "You answered this correctly!";
Symbol 872 MovieClip Frame 1
var _accTextChosen = "Your answer:";
var _accTextCorrect = "The correct answer is:";
Symbol 867 MovieClip [reviewFeedback] Frame 1
#initclip 320
Object.registerClass("reviewFeedback", MMQuizzingV3.MMQuizClasses.ReviewFeedback);
#endinitclip
Symbol 887 MovieClip [_submitbutton] Frame 1
#initclip 321
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 887 MovieClip [_submitbutton] Frame 6
stop();
Symbol 887 MovieClip [_submitbutton] Frame 11
stop();
Symbol 887 MovieClip [_submitbutton] Frame 16
stop();
Symbol 897 MovieClip [_nextbutton] Frame 1
#initclip 322
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 897 MovieClip [_nextbutton] Frame 6
stop();
Symbol 897 MovieClip [_nextbutton] Frame 11
stop();
Symbol 897 MovieClip [_nextbutton] Frame 16
stop();
Symbol 907 MovieClip [_backbutton] Frame 1
#initclip 323
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 907 MovieClip [_backbutton] Frame 6
stop();
Symbol 907 MovieClip [_backbutton] Frame 11
stop();
Symbol 907 MovieClip [_backbutton] Frame 16
stop();
Symbol 917 MovieClip [_clearbutton] Frame 1
#initclip 324
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 917 MovieClip [_clearbutton] Frame 6
stop();
Symbol 917 MovieClip [_clearbutton] Frame 11
stop();
Symbol 917 MovieClip [_clearbutton] Frame 16
stop();
Symbol 919 MovieClip [timeoutFeedback] Frame 1
#initclip 328
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 850 MovieClip [question_4] Frame 1
#initclip 329
Object.registerClass("question_4", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "Bring back snacks.";
this.questionNumInQuiz = 3;
this.isTracked = true;
this.isSurvey = false;
this._numIncorrectFeedback = 1;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction10439";
questionScore.weighting = 10;
questionScore.interactionType = "true-false";
var AnswersOrder_array = new Array("Q_4answerText_0", "Q_4answerText_1");
this._shuffleAnswers = false;
Symbol 921 MovieClip [progressInd] Frame 1
#initclip 330
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 922 MovieClip [19b420a2_9] Frame 1
#initclip 331
Object.registerClass("19b420a2_9", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 922 MovieClip [19b420a2_9] Frame 91
stop();
Symbol 833 MovieClip [slide4__question_mc] Frame 1
#initclip 332
Object.registerClass("slide4__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 4;
this.m_currentQuesNumber = 4;
this.m_totalQuestions = 12;
Symbol 833 MovieClip [slide4__question_mc] Frame 90
stop();
Symbol 925 MovieClip [correctFeedback_5] Frame 1
#initclip 342
Object.registerClass("correctFeedback_5", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = true;
var _accText = "Correct - Click anywhere to continue";
Symbol 930 MovieClip [incorrectFeedback_5_0] Frame 1
#initclip 341
Object.registerClass("incorrectFeedback_5_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 935 MovieClip [incompleteFeedback_5] Frame 1
#initclip 343
Object.registerClass("incompleteFeedback_5", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 941 MovieClip Frame 1
var _accText = "True/False";
Symbol 943 MovieClip Frame 1
var _accText = "Tits or gtfo";
Symbol 946 MovieClip [Q_5answerText_0] Frame 1
#initclip 333
Object.registerClass("Q_5answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "True";
Symbol 945 MovieClip [q5_answer_0_mc] Frame 1
#initclip 334
Object.registerClass("q5_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_5answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = true;
Symbol 952 MovieClip [Q_5answerText_1] Frame 1
#initclip 335
Object.registerClass("Q_5answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "False";
Symbol 951 MovieClip [q5_answer_1_mc] Frame 1
#initclip 336
Object.registerClass("q5_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_5answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 965 MovieClip [_submitbutton] Frame 1
#initclip 337
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 965 MovieClip [_submitbutton] Frame 6
stop();
Symbol 965 MovieClip [_submitbutton] Frame 11
stop();
Symbol 965 MovieClip [_submitbutton] Frame 16
stop();
Symbol 975 MovieClip [_nextbutton] Frame 1
#initclip 338
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 975 MovieClip [_nextbutton] Frame 6
stop();
Symbol 975 MovieClip [_nextbutton] Frame 11
stop();
Symbol 975 MovieClip [_nextbutton] Frame 16
stop();
Symbol 985 MovieClip [_backbutton] Frame 1
#initclip 339
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 985 MovieClip [_backbutton] Frame 6
stop();
Symbol 985 MovieClip [_backbutton] Frame 11
stop();
Symbol 985 MovieClip [_backbutton] Frame 16
stop();
Symbol 995 MovieClip [_clearbutton] Frame 1
#initclip 340
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 995 MovieClip [_clearbutton] Frame 6
stop();
Symbol 995 MovieClip [_clearbutton] Frame 11
stop();
Symbol 995 MovieClip [_clearbutton] Frame 16
stop();
Symbol 997 MovieClip [timeoutFeedback] Frame 1
#initclip 344
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 940 MovieClip [question_5] Frame 1
#initclip 345
Object.registerClass("question_5", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "Tits or gtfo";
this.questionNumInQuiz = 4;
this.isTracked = true;
this.isSurvey = true;
this._numIncorrectFeedback = 1232184 /* 0x12CD38 */;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction10717";
questionScore.weighting = 0;
questionScore.interactionType = "true-false";
var AnswersOrder_array = new Array("Q_5answerText_0", "Q_5answerText_1");
this._shuffleAnswers = false;
Symbol 999 MovieClip [progressInd] Frame 1
#initclip 346
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 1000 MovieClip [19b420a2_10] Frame 1
#initclip 347
Object.registerClass("19b420a2_10", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 1000 MovieClip [19b420a2_10] Frame 91
stop();
Symbol 923 MovieClip [slide5__question_mc] Frame 1
#initclip 348
Object.registerClass("slide5__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 5;
this.m_currentQuesNumber = 5;
this.m_totalQuestions = 12;
Symbol 923 MovieClip [slide5__question_mc] Frame 90
stop();
Symbol 1003 MovieClip [correctFeedback_6] Frame 1
#initclip 358
Object.registerClass("correctFeedback_6", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = true;
var _accText = "Correct - Click anywhere to continue";
Symbol 1008 MovieClip [incorrectFeedback_6_0] Frame 1
#initclip 357
Object.registerClass("incorrectFeedback_6_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 1013 MovieClip [incompleteFeedback_6] Frame 1
#initclip 359
Object.registerClass("incompleteFeedback_6", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 1019 MovieClip Frame 1
var _accText = "True/False";
Symbol 1021 MovieClip Frame 1
var _accText = "sage goes in the subject line";
Symbol 1024 MovieClip [Q_6answerText_0] Frame 1
#initclip 349
Object.registerClass("Q_6answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "True";
Symbol 1023 MovieClip [q6_answer_0_mc] Frame 1
#initclip 350
Object.registerClass("q6_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_6answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = true;
Symbol 1030 MovieClip [Q_6answerText_1] Frame 1
#initclip 351
Object.registerClass("Q_6answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "False";
Symbol 1029 MovieClip [q6_answer_1_mc] Frame 1
#initclip 352
Object.registerClass("q6_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_6answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 1043 MovieClip [_submitbutton] Frame 1
#initclip 353
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 1043 MovieClip [_submitbutton] Frame 6
stop();
Symbol 1043 MovieClip [_submitbutton] Frame 11
stop();
Symbol 1043 MovieClip [_submitbutton] Frame 16
stop();
Symbol 1053 MovieClip [_nextbutton] Frame 1
#initclip 354
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 1053 MovieClip [_nextbutton] Frame 6
stop();
Symbol 1053 MovieClip [_nextbutton] Frame 11
stop();
Symbol 1053 MovieClip [_nextbutton] Frame 16
stop();
Symbol 1063 MovieClip [_backbutton] Frame 1
#initclip 355
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 1063 MovieClip [_backbutton] Frame 6
stop();
Symbol 1063 MovieClip [_backbutton] Frame 11
stop();
Symbol 1063 MovieClip [_backbutton] Frame 16
stop();
Symbol 1073 MovieClip [_clearbutton] Frame 1
#initclip 356
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 1073 MovieClip [_clearbutton] Frame 6
stop();
Symbol 1073 MovieClip [_clearbutton] Frame 11
stop();
Symbol 1073 MovieClip [_clearbutton] Frame 16
stop();
Symbol 1075 MovieClip [timeoutFeedback] Frame 1
#initclip 360
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 1018 MovieClip [question_6] Frame 1
#initclip 361
Object.registerClass("question_6", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "sage goes in the subject line";
this.questionNumInQuiz = 5;
this.isTracked = true;
this.isSurvey = true;
this._numIncorrectFeedback = 1232184 /* 0x12CD38 */;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction10780";
questionScore.weighting = 0;
questionScore.interactionType = "true-false";
var AnswersOrder_array = new Array("Q_6answerText_0", "Q_6answerText_1");
this._shuffleAnswers = false;
Symbol 1077 MovieClip [progressInd] Frame 1
#initclip 362
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 1078 MovieClip [19b420a2_11] Frame 1
#initclip 363
Object.registerClass("19b420a2_11", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 1078 MovieClip [19b420a2_11] Frame 91
stop();
Symbol 1001 MovieClip [slide6__question_mc] Frame 1
#initclip 364
Object.registerClass("slide6__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 6;
this.m_currentQuesNumber = 6;
this.m_totalQuestions = 12;
Symbol 1001 MovieClip [slide6__question_mc] Frame 90
stop();
Symbol 1081 MovieClip [correctFeedback_7] Frame 1
#initclip 374
Object.registerClass("correctFeedback_7", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = true;
var _accText = "Correct - Click anywhere to continue";
Symbol 1086 MovieClip [incorrectFeedback_7_0] Frame 1
#initclip 373
Object.registerClass("incorrectFeedback_7_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 1091 MovieClip [incompleteFeedback_7] Frame 1
#initclip 375
Object.registerClass("incompleteFeedback_7", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 1097 MovieClip Frame 1
var _accText = "True/False";
Symbol 1099 MovieClip Frame 1
var _accText = "EFG is funny";
Symbol 1102 MovieClip [Q_7answerText_0] Frame 1
#initclip 365
Object.registerClass("Q_7answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "True";
Symbol 1101 MovieClip [q7_answer_0_mc] Frame 1
#initclip 366
Object.registerClass("q7_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_7answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = true;
Symbol 1108 MovieClip [Q_7answerText_1] Frame 1
#initclip 367
Object.registerClass("Q_7answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "False";
Symbol 1107 MovieClip [q7_answer_1_mc] Frame 1
#initclip 368
Object.registerClass("q7_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_7answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 1121 MovieClip [_submitbutton] Frame 1
#initclip 369
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 1121 MovieClip [_submitbutton] Frame 6
stop();
Symbol 1121 MovieClip [_submitbutton] Frame 11
stop();
Symbol 1121 MovieClip [_submitbutton] Frame 16
stop();
Symbol 1131 MovieClip [_nextbutton] Frame 1
#initclip 370
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 1131 MovieClip [_nextbutton] Frame 6
stop();
Symbol 1131 MovieClip [_nextbutton] Frame 11
stop();
Symbol 1131 MovieClip [_nextbutton] Frame 16
stop();
Symbol 1141 MovieClip [_backbutton] Frame 1
#initclip 371
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 1141 MovieClip [_backbutton] Frame 6
stop();
Symbol 1141 MovieClip [_backbutton] Frame 11
stop();
Symbol 1141 MovieClip [_backbutton] Frame 16
stop();
Symbol 1151 MovieClip [_clearbutton] Frame 1
#initclip 372
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 1151 MovieClip [_clearbutton] Frame 6
stop();
Symbol 1151 MovieClip [_clearbutton] Frame 11
stop();
Symbol 1151 MovieClip [_clearbutton] Frame 16
stop();
Symbol 1153 MovieClip [timeoutFeedback] Frame 1
#initclip 376
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 1096 MovieClip [question_7] Frame 1
#initclip 377
Object.registerClass("question_7", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "EFG is funny";
this.questionNumInQuiz = 6;
this.isTracked = true;
this.isSurvey = true;
this._numIncorrectFeedback = 1232184 /* 0x12CD38 */;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction10843";
questionScore.weighting = 0;
questionScore.interactionType = "true-false";
var AnswersOrder_array = new Array("Q_7answerText_0", "Q_7answerText_1");
this._shuffleAnswers = false;
Symbol 1155 MovieClip [progressInd] Frame 1
#initclip 378
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 1156 MovieClip [19b420a2_12] Frame 1
#initclip 379
Object.registerClass("19b420a2_12", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 1156 MovieClip [19b420a2_12] Frame 91
stop();
Symbol 1079 MovieClip [slide7__question_mc] Frame 1
#initclip 380
Object.registerClass("slide7__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 7;
this.m_currentQuesNumber = 7;
this.m_totalQuestions = 12;
Symbol 1079 MovieClip [slide7__question_mc] Frame 90
stop();
Symbol 1159 MovieClip [correctFeedback_8] Frame 1
#initclip 391
Object.registerClass("correctFeedback_8", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Correct - Click anywhere to continue";
Symbol 1164 MovieClip [incorrectFeedback_8_0] Frame 1
#initclip 390
Object.registerClass("incorrectFeedback_8_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 1169 MovieClip [incompleteFeedback_8] Frame 1
#initclip 392
Object.registerClass("incompleteFeedback_8", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 1175 MovieClip Frame 1
var _accText = "True/False";
Symbol 1177 MovieClip Frame 1
var _accText = "Count threads are fun (expample if /b/ can count to 10 ill post cp)";
Symbol 1180 MovieClip [Q_8answerText_0] Frame 1
#initclip 381
Object.registerClass("Q_8answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "True";
Symbol 1179 MovieClip [q8_answer_0_mc] Frame 1
#initclip 382
Object.registerClass("q8_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_8answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = true;
Symbol 1186 MovieClip [Q_8answerText_1] Frame 1
#initclip 383
Object.registerClass("Q_8answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "False";
Symbol 1185 MovieClip [q8_answer_1_mc] Frame 1
#initclip 384
Object.registerClass("q8_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_8answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 1192 MovieClip Frame 1
var _accText = "You did not answer this question completely";
Symbol 1194 MovieClip Frame 1
var _accText = "You answered this correctly!";
Symbol 1196 MovieClip Frame 1
var _accTextChosen = "Your answer:";
var _accTextCorrect = "The correct answer is:";
Symbol 1191 MovieClip [reviewFeedback] Frame 1
#initclip 385
Object.registerClass("reviewFeedback", MMQuizzingV3.MMQuizClasses.ReviewFeedback);
#endinitclip
Symbol 1211 MovieClip [_submitbutton] Frame 1
#initclip 386
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 1211 MovieClip [_submitbutton] Frame 6
stop();
Symbol 1211 MovieClip [_submitbutton] Frame 11
stop();
Symbol 1211 MovieClip [_submitbutton] Frame 16
stop();
Symbol 1221 MovieClip [_nextbutton] Frame 1
#initclip 387
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 1221 MovieClip [_nextbutton] Frame 6
stop();
Symbol 1221 MovieClip [_nextbutton] Frame 11
stop();
Symbol 1221 MovieClip [_nextbutton] Frame 16
stop();
Symbol 1231 MovieClip [_backbutton] Frame 1
#initclip 388
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 1231 MovieClip [_backbutton] Frame 6
stop();
Symbol 1231 MovieClip [_backbutton] Frame 11
stop();
Symbol 1231 MovieClip [_backbutton] Frame 16
stop();
Symbol 1241 MovieClip [_clearbutton] Frame 1
#initclip 389
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 1241 MovieClip [_clearbutton] Frame 6
stop();
Symbol 1241 MovieClip [_clearbutton] Frame 11
stop();
Symbol 1241 MovieClip [_clearbutton] Frame 16
stop();
Symbol 1243 MovieClip [timeoutFeedback] Frame 1
#initclip 393
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 1174 MovieClip [question_8] Frame 1
#initclip 394
Object.registerClass("question_8", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "Count threads are fun (expample if /b/ can count to 10 ill post cp)";
this.questionNumInQuiz = 7;
this.isTracked = true;
this.isSurvey = false;
this._numIncorrectFeedback = 1;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction10906";
questionScore.weighting = 10;
questionScore.interactionType = "true-false";
var AnswersOrder_array = new Array("Q_8answerText_0", "Q_8answerText_1");
this._shuffleAnswers = false;
Symbol 1245 MovieClip [progressInd] Frame 1
#initclip 395
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 1246 MovieClip [19b420a2_13] Frame 1
#initclip 396
Object.registerClass("19b420a2_13", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 1246 MovieClip [19b420a2_13] Frame 91
stop();
Symbol 1157 MovieClip [slide8__question_mc] Frame 1
#initclip 397
Object.registerClass("slide8__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 8;
this.m_currentQuesNumber = 8;
this.m_totalQuestions = 12;
Symbol 1157 MovieClip [slide8__question_mc] Frame 90
stop();
Symbol 1249 MovieClip [correctFeedback_9] Frame 1
#initclip 408
Object.registerClass("correctFeedback_9", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Correct - Click anywhere to continue";
Symbol 1254 MovieClip [incorrectFeedback_9_0] Frame 1
#initclip 407
Object.registerClass("incorrectFeedback_9_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 1259 MovieClip [incompleteFeedback_9] Frame 1
#initclip 409
Object.registerClass("incompleteFeedback_9", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 1265 MovieClip Frame 1
var _accText = "True/False";
Symbol 1267 MovieClip Frame 1
var _accText = "Snacks is back?";
Symbol 1270 MovieClip [Q_9answerText_0] Frame 1
#initclip 398
Object.registerClass("Q_9answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "True";
Symbol 1269 MovieClip [q9_answer_0_mc] Frame 1
#initclip 399
Object.registerClass("q9_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_9answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = true;
Symbol 1276 MovieClip [Q_9answerText_1] Frame 1
#initclip 400
Object.registerClass("Q_9answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "False";
Symbol 1275 MovieClip [q9_answer_1_mc] Frame 1
#initclip 401
Object.registerClass("q9_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_9answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 1282 MovieClip Frame 1
var _accText = "You did not answer this question completely";
Symbol 1284 MovieClip Frame 1
var _accText = "You answered this correctly!";
Symbol 1286 MovieClip Frame 1
var _accTextChosen = "Your answer:";
var _accTextCorrect = "The correct answer is:";
Symbol 1281 MovieClip [reviewFeedback] Frame 1
#initclip 402
Object.registerClass("reviewFeedback", MMQuizzingV3.MMQuizClasses.ReviewFeedback);
#endinitclip
Symbol 1301 MovieClip [_submitbutton] Frame 1
#initclip 403
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 1301 MovieClip [_submitbutton] Frame 6
stop();
Symbol 1301 MovieClip [_submitbutton] Frame 11
stop();
Symbol 1301 MovieClip [_submitbutton] Frame 16
stop();
Symbol 1311 MovieClip [_nextbutton] Frame 1
#initclip 404
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 1311 MovieClip [_nextbutton] Frame 6
stop();
Symbol 1311 MovieClip [_nextbutton] Frame 11
stop();
Symbol 1311 MovieClip [_nextbutton] Frame 16
stop();
Symbol 1321 MovieClip [_backbutton] Frame 1
#initclip 405
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 1321 MovieClip [_backbutton] Frame 6
stop();
Symbol 1321 MovieClip [_backbutton] Frame 11
stop();
Symbol 1321 MovieClip [_backbutton] Frame 16
stop();
Symbol 1331 MovieClip [_clearbutton] Frame 1
#initclip 406
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 1331 MovieClip [_clearbutton] Frame 6
stop();
Symbol 1331 MovieClip [_clearbutton] Frame 11
stop();
Symbol 1331 MovieClip [_clearbutton] Frame 16
stop();
Symbol 1333 MovieClip [timeoutFeedback] Frame 1
#initclip 410
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 1264 MovieClip [question_9] Frame 1
#initclip 411
Object.registerClass("question_9", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "Snacks is back?";
this.questionNumInQuiz = 8;
this.isTracked = true;
this.isSurvey = false;
this._numIncorrectFeedback = 1;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction10969";
questionScore.weighting = 10;
questionScore.interactionType = "true-false";
var AnswersOrder_array = new Array("Q_9answerText_0", "Q_9answerText_1");
this._shuffleAnswers = false;
Symbol 1335 MovieClip [progressInd] Frame 1
#initclip 412
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 1336 MovieClip [19b420a2_14] Frame 1
#initclip 413
Object.registerClass("19b420a2_14", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 1336 MovieClip [19b420a2_14] Frame 91
stop();
Symbol 1247 MovieClip [slide9__question_mc] Frame 1
#initclip 414
Object.registerClass("slide9__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 9;
this.m_currentQuesNumber = 9;
this.m_totalQuestions = 12;
Symbol 1247 MovieClip [slide9__question_mc] Frame 90
stop();
Symbol 1339 MovieClip [correctFeedback_10] Frame 1
#initclip 425
Object.registerClass("correctFeedback_10", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Correct - Click anywhere to continue";
Symbol 1344 MovieClip [incorrectFeedback_10_0] Frame 1
#initclip 424
Object.registerClass("incorrectFeedback_10_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 1349 MovieClip [incompleteFeedback_10] Frame 1
#initclip 426
Object.registerClass("incompleteFeedback_10", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 1355 MovieClip Frame 1
var _accText = "Multiple choice";
Symbol 1357 MovieClip Frame 1
var _accText = "Last question....is this quiz a failure?";
Symbol 1360 MovieClip [Q_10answerText_0] Frame 1
#initclip 415
Object.registerClass("Q_10answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "Very much";
Symbol 1359 MovieClip [q10_answer_0_mc] Frame 1
#initclip 416
Object.registerClass("q10_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_10answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = false;
Symbol 1366 MovieClip [Q_10answerText_1] Frame 1
#initclip 417
Object.registerClass("Q_10answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "No, it's win.";
Symbol 1365 MovieClip [q10_answer_1_mc] Frame 1
#initclip 418
Object.registerClass("q10_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_10answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 1372 MovieClip Frame 1
var _accText = "You did not answer this question completely";
Symbol 1374 MovieClip Frame 1
var _accText = "You answered this correctly!";
Symbol 1376 MovieClip Frame 1
var _accTextChosen = "Your answer:";
var _accTextCorrect = "The correct answer is:";
Symbol 1371 MovieClip [reviewFeedback] Frame 1
#initclip 419
Object.registerClass("reviewFeedback", MMQuizzingV3.MMQuizClasses.ReviewFeedback);
#endinitclip
Symbol 1391 MovieClip [_submitbutton] Frame 1
#initclip 420
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 1391 MovieClip [_submitbutton] Frame 6
stop();
Symbol 1391 MovieClip [_submitbutton] Frame 11
stop();
Symbol 1391 MovieClip [_submitbutton] Frame 16
stop();
Symbol 1401 MovieClip [_nextbutton] Frame 1
#initclip 421
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 1401 MovieClip [_nextbutton] Frame 6
stop();
Symbol 1401 MovieClip [_nextbutton] Frame 11
stop();
Symbol 1401 MovieClip [_nextbutton] Frame 16
stop();
Symbol 1411 MovieClip [_backbutton] Frame 1
#initclip 422
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 1411 MovieClip [_backbutton] Frame 6
stop();
Symbol 1411 MovieClip [_backbutton] Frame 11
stop();
Symbol 1411 MovieClip [_backbutton] Frame 16
stop();
Symbol 1421 MovieClip [_clearbutton] Frame 1
#initclip 423
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 1421 MovieClip [_clearbutton] Frame 6
stop();
Symbol 1421 MovieClip [_clearbutton] Frame 11
stop();
Symbol 1421 MovieClip [_clearbutton] Frame 16
stop();
Symbol 1423 MovieClip [timeoutFeedback] Frame 1
#initclip 427
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 1354 MovieClip [question_10] Frame 1
#initclip 428
Object.registerClass("question_10", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "Last question....is this quiz a failure?";
this.questionNumInQuiz = 9;
this.isTracked = true;
this.isSurvey = false;
this._numIncorrectFeedback = 1;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction11032";
questionScore.weighting = 10;
questionScore.interactionType = "choice";
var AnswersOrder_array = new Array("Q_10answerText_0", "Q_10answerText_1");
this._shuffleAnswers = false;
Symbol 1425 MovieClip [progressInd] Frame 1
#initclip 429
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 1426 MovieClip [19b420a2_15] Frame 1
#initclip 430
Object.registerClass("19b420a2_15", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 1426 MovieClip [19b420a2_15] Frame 91
stop();
Symbol 1337 MovieClip [slide10__question_mc] Frame 1
#initclip 431
Object.registerClass("slide10__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 10;
this.m_currentQuesNumber = 10;
this.m_totalQuestions = 12;
Symbol 1337 MovieClip [slide10__question_mc] Frame 90
stop();
Symbol 1429 MovieClip [correctFeedback_11] Frame 1
#initclip 441
Object.registerClass("correctFeedback_11", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = true;
var _accText = "Correct - Click anywhere to continue";
Symbol 1434 MovieClip [incorrectFeedback_11_0] Frame 1
#initclip 440
Object.registerClass("incorrectFeedback_11_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 1439 MovieClip [incompleteFeedback_11] Frame 1
#initclip 442
Object.registerClass("incompleteFeedback_11", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 1445 MovieClip Frame 1
var _accText = "True/False";
Symbol 1447 MovieClip Frame 1
var _accText = "A cat is fine too";
Symbol 1450 MovieClip [Q_11answerText_0] Frame 1
#initclip 432
Object.registerClass("Q_11answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "True";
Symbol 1449 MovieClip [q11_answer_0_mc] Frame 1
#initclip 433
Object.registerClass("q11_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_11answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = true;
Symbol 1456 MovieClip [Q_11answerText_1] Frame 1
#initclip 434
Object.registerClass("Q_11answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "False";
Symbol 1455 MovieClip [q11_answer_1_mc] Frame 1
#initclip 435
Object.registerClass("q11_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_11answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 1469 MovieClip [_submitbutton] Frame 1
#initclip 436
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 1469 MovieClip [_submitbutton] Frame 6
stop();
Symbol 1469 MovieClip [_submitbutton] Frame 11
stop();
Symbol 1469 MovieClip [_submitbutton] Frame 16
stop();
Symbol 1479 MovieClip [_nextbutton] Frame 1
#initclip 437
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 1479 MovieClip [_nextbutton] Frame 6
stop();
Symbol 1479 MovieClip [_nextbutton] Frame 11
stop();
Symbol 1479 MovieClip [_nextbutton] Frame 16
stop();
Symbol 1489 MovieClip [_backbutton] Frame 1
#initclip 438
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 1489 MovieClip [_backbutton] Frame 6
stop();
Symbol 1489 MovieClip [_backbutton] Frame 11
stop();
Symbol 1489 MovieClip [_backbutton] Frame 16
stop();
Symbol 1499 MovieClip [_clearbutton] Frame 1
#initclip 439
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 1499 MovieClip [_clearbutton] Frame 6
stop();
Symbol 1499 MovieClip [_clearbutton] Frame 11
stop();
Symbol 1499 MovieClip [_clearbutton] Frame 16
stop();
Symbol 1501 MovieClip [timeoutFeedback] Frame 1
#initclip 443
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 1444 MovieClip [question_11] Frame 1
#initclip 444
Object.registerClass("question_11", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "A cat is fine too";
this.questionNumInQuiz = 10;
this.isTracked = true;
this.isSurvey = true;
this._numIncorrectFeedback = 1232184 /* 0x12CD38 */;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction10502";
questionScore.weighting = 0;
questionScore.interactionType = "true-false";
var AnswersOrder_array = new Array("Q_11answerText_0", "Q_11answerText_1");
this._shuffleAnswers = false;
Symbol 1503 MovieClip [progressInd] Frame 1
#initclip 445
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 1504 MovieClip [19b420a2_16] Frame 1
#initclip 446
Object.registerClass("19b420a2_16", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 1504 MovieClip [19b420a2_16] Frame 91
stop();
Symbol 1427 MovieClip [slide11__question_mc] Frame 1
#initclip 447
Object.registerClass("slide11__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 11;
this.m_currentQuesNumber = 11;
this.m_totalQuestions = 12;
Symbol 1427 MovieClip [slide11__question_mc] Frame 90
stop();
Symbol 1507 MovieClip [correctFeedback_12] Frame 1
#initclip 461
Object.registerClass("correctFeedback_12", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = true;
var _accText = "Correct - Click anywhere to continue";
Symbol 1512 MovieClip [incorrectFeedback_12_0] Frame 1
#initclip 460
Object.registerClass("incorrectFeedback_12_0", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "Incorrect - Click anywhere to continue";
var m_failureLevel = 0;
Symbol 1517 MovieClip [incompleteFeedback_12] Frame 1
#initclip 462
Object.registerClass("incompleteFeedback_12", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "You must answer the question before continuing";
Symbol 1523 MovieClip Frame 1
var _accText = "Multiple choice";
Symbol 1525 MovieClip Frame 1
var _accText = "rule 34 is";
Symbol 1528 MovieClip [Q_12answerText_0] Frame 1
#initclip 448
Object.registerClass("Q_12answerText_0", mx.core.UIComponent);
#endinitclip
var isCorrect = true;
var answerID = "A";
var feedback = this._parent.answer_fb_0_mc;
var _accText = "No girls on the internet";
Symbol 1527 MovieClip [q12_answer_0_mc] Frame 1
#initclip 449
Object.registerClass("q12_answer_0_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_12answerText_0";
var useHandCursor = true;
var answerID = "A";
var isTrueAnswer = false;
Symbol 1534 MovieClip [Q_12answerText_1] Frame 1
#initclip 450
Object.registerClass("Q_12answerText_1", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "B";
var feedback = this._parent.answer_fb_1_mc;
var _accText = "There is porn of it.";
Symbol 1533 MovieClip [q12_answer_1_mc] Frame 1
#initclip 451
Object.registerClass("q12_answer_1_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_12answerText_1";
var useHandCursor = true;
var answerID = "B";
var isTrueAnswer = false;
Symbol 1540 MovieClip [Q_12answerText_2] Frame 1
#initclip 452
Object.registerClass("Q_12answerText_2", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "C";
var feedback = this._parent.answer_fb_2_mc;
var _accText = "Needs more desu";
Symbol 1539 MovieClip [q12_answer_2_mc] Frame 1
#initclip 453
Object.registerClass("q12_answer_2_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_12answerText_2";
var useHandCursor = true;
var answerID = "C";
var isTrueAnswer = false;
Symbol 1546 MovieClip [Q_12answerText_3] Frame 1
#initclip 454
Object.registerClass("Q_12answerText_3", mx.core.UIComponent);
#endinitclip
var isCorrect = false;
var answerID = "D";
var feedback = this._parent.answer_fb_3_mc;
var _accText = "Fuck...";
Symbol 1545 MovieClip [q12_answer_3_mc] Frame 1
#initclip 455
Object.registerClass("q12_answer_3_mc", MMQuizzingV3.MMQuizClasses.MultipleChoiceAnswer);
#endinitclip
var ans_to_attach = "Q_12answerText_3";
var useHandCursor = true;
var answerID = "D";
var isTrueAnswer = false;
Symbol 1559 MovieClip [_submitbutton] Frame 1
#initclip 456
Object.registerClass("_submitbutton", MMQuizzingV3.MMQuizClasses.SubmitButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Submit";
Symbol 1559 MovieClip [_submitbutton] Frame 6
stop();
Symbol 1559 MovieClip [_submitbutton] Frame 11
stop();
Symbol 1559 MovieClip [_submitbutton] Frame 16
stop();
Symbol 1569 MovieClip [_nextbutton] Frame 1
#initclip 457
Object.registerClass("_nextbutton", MMQuizzingV3.MMQuizClasses.SkipButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Skip";
Symbol 1569 MovieClip [_nextbutton] Frame 6
stop();
Symbol 1569 MovieClip [_nextbutton] Frame 11
stop();
Symbol 1569 MovieClip [_nextbutton] Frame 16
stop();
Symbol 1579 MovieClip [_backbutton] Frame 1
#initclip 458
Object.registerClass("_backbutton", MMQuizzingV3.MMQuizClasses.BackButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Back";
Symbol 1579 MovieClip [_backbutton] Frame 6
stop();
Symbol 1579 MovieClip [_backbutton] Frame 11
stop();
Symbol 1579 MovieClip [_backbutton] Frame 16
stop();
Symbol 1589 MovieClip [_clearbutton] Frame 1
#initclip 459
Object.registerClass("_clearbutton", MMQuizzingV3.MMQuizClasses.ClearButton);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Clear";
Symbol 1589 MovieClip [_clearbutton] Frame 6
stop();
Symbol 1589 MovieClip [_clearbutton] Frame 11
stop();
Symbol 1589 MovieClip [_clearbutton] Frame 16
stop();
Symbol 1591 MovieClip [timeoutFeedback] Frame 1
#initclip 463
Object.registerClass("timeoutFeedback", captivate.monalisa.rdQuizFeedback);
#endinitclip
var useHandCursor = false;
var isModal = true;
var actionType = "submit";
var modalDismissClick = "anywhere";
var actionArg1 = this.question;
var onlyDoAction = false;
var _accText = "The time to answer this question has expired.";
var m_soundID = 8;
Symbol 1522 MovieClip [question_12] Frame 1
#initclip 464
Object.registerClass("question_12", MMQuizzingV3.MMQuizClasses.Question);
#endinitclip
this.numQuestionAttemptsAllowed = 1;
this.questionText = "rule 34 is";
this.questionNumInQuiz = 11;
this.isTracked = true;
this.isSurvey = true;
this._numIncorrectFeedback = 1232184 /* 0x12CD38 */;
questionScore.objectiveID = "Quiz10031";
questionScore.interactionID = "Interaction10584";
questionScore.weighting = 0;
questionScore.interactionType = "choice";
var AnswersOrder_array = new Array("Q_12answerText_0", "Q_12answerText_1", "Q_12answerText_2", "Q_12answerText_3");
this._shuffleAnswers = false;
Symbol 1593 MovieClip [progressInd] Frame 1
#initclip 465
Object.registerClass("progressInd", captivate.monalisa.rdProgressInd);
#endinitclip
m_progressTextFormat.font = "Arial";
m_progressTextFormat.size = 16;
m_progressTextFormat.color = 0;
m_progressTextFormat.bold = false;
m_progressTextFormat.italic = false;
this.m_progressText = "Question %d of %d";
this.m_width = 182;
this.m_height = 21;
this.m_progressIndType = 0;
Symbol 1594 MovieClip [19b420a2_17] Frame 1
#initclip 466
Object.registerClass("19b420a2_17", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 1594 MovieClip [19b420a2_17] Frame 91
stop();
Symbol 1505 MovieClip [slide12__question_mc] Frame 1
#initclip 467
Object.registerClass("slide12__question_mc", captivate.monalisa.rdQSlide);
#endinitclip
this.m_submitOnFrame = 45;
function succeeded(slide) {
slide.nextSlide();
}
function failed(slide) {
slide.nextSlide();
}
var m_projectSlideIndex = 12;
this.m_currentQuesNumber = 12;
this.m_totalQuestions = 12;
Symbol 1505 MovieClip [slide12__question_mc] Frame 90
stop();
Symbol 1631 MovieClip [_nextBtn] Frame 1
#initclip 468
Object.registerClass("_nextBtn", MMQuizzingV3.MMQuizClasses.ReviewSlideButtons);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Continue";
Symbol 1631 MovieClip [_nextBtn] Frame 6
stop();
Symbol 1631 MovieClip [_nextBtn] Frame 11
stop();
Symbol 1631 MovieClip [_nextBtn] Frame 16
stop();
Symbol 1642 MovieClip [_reviewBtn] Frame 1
#initclip 469
Object.registerClass("_reviewBtn", MMQuizzingV3.MMQuizClasses.ReviewSlideButtons);
#endinitclip
var allowmouseclick = 1;
var useHandCursor = 1;
var _accText = "Review Quiz";
Symbol 1642 MovieClip [_reviewBtn] Frame 6
stop();
Symbol 1642 MovieClip [_reviewBtn] Frame 11
stop();
Symbol 1642 MovieClip [_reviewBtn] Frame 16
stop();
Symbol 1644 MovieClip Frame 1
var _accText = "Your Score:";
Symbol 1645 MovieClip Frame 1
var _accText = "Max Score:";
Symbol 1646 MovieClip Frame 1
var _accText = "Accuracy:";
Symbol 1647 MovieClip Frame 1
var _accText = "Number of Questions:";
Symbol 1648 MovieClip Frame 1
var _accText = "Number of Quiz Attempts:";
Symbol 1649 MovieClip Frame 1
var _accText = "Questions Correct:";
Symbol 1597 MovieClip [scoring_1] Frame 1
#initclip 470
Object.registerClass("scoring_1", captivate.monalisa.rdQuizScoreDisplay);
#endinitclip
m_scoreTextFormat.font = "Arial";
m_scoreTextFormat.size = 12;
m_scoreTextFormat.color = 0;
m_scoreTextFormat.bold = true;
m_scoreTextFormat.italic = false;
this.m_scoreTextFieldX = 315;
this.m_scoreTextFieldY = 40;
this.m_useScoreTextField = true;
m_maxScoreTextFormat.font = "Arial";
m_maxScoreTextFormat.size = 12;
m_maxScoreTextFormat.color = 0;
m_maxScoreTextFormat.bold = true;
m_maxScoreTextFormat.italic = false;
this.m_maxScoreTextFieldX = 315;
this.m_maxScoreTextFieldY = 85;
this.m_useMaxScoreTextField = true;
m_numQuestionsCorrectTextFormat.font = "Arial";
m_numQuestionsCorrectTextFormat.size = 12;
m_numQuestionsCorrectTextFormat.color = 0;
m_numQuestionsCorrectTextFormat.bold = true;
m_numQuestionsCorrectTextFormat.italic = false;
this.m_numQuestionsCorrectTextFieldX = 315;
this.m_numQuestionsCorrectTextFieldY = 130;
this.m_useNumQuestionsCorrectTextField = true;
m_numQuestionsTextFormat.font = "Arial";
m_numQuestionsTextFormat.size = 12;
m_numQuestionsTextFormat.color = 0;
m_numQuestionsTextFormat.bold = true;
m_numQuestionsTextFormat.italic = false;
this.m_numQuestionsTextFieldX = 315;
this.m_numQuestionsTextFieldY = 175;
this.m_useNumQuestionsTextField = true;
m_percentCorrectTextFormat.font = "Arial";
m_percentCorrectTextFormat.size = 12;
m_percentCorrectTextFormat.color = 0;
m_percentCorrectTextFormat.bold = true;
m_percentCorrectTextFormat.italic = false;
this.m_percentCorrectTextFieldX = 315;
this.m_percentCorrectTextFieldY = 220;
this.m_usePercentCorrectTextField = true;
m_numQuizAttemptsTextFormat.font = "Arial";
m_numQuizAttemptsTextFormat.size = 12;
m_numQuizAttemptsTextFormat.color = 0;
m_numQuizAttemptsTextFormat.bold = true;
m_numQuizAttemptsTextFormat.italic = false;
this.m_numQuizAttemptsTextFieldX = 315;
this.m_numQuizAttemptsTextFieldY = 265;
this.m_useQuizAttemptsTextField = true;
m_feedbackTextFormat.font = "Arial";
m_feedbackTextFormat.size = 12;
m_feedbackTextFormat.color = 0;
m_feedbackTextFormat.bold = false;
m_feedbackTextFormat.italic = false;
this.m_feedbackTextFieldX = 60;
this.m_feedbackTextFieldY = 330;
this.m_useFeedbackTextField = true;
Symbol 1651 MovieClip [19b420a2_18] Frame 1
#initclip 471
Object.registerClass("19b420a2_18", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 1651 MovieClip [19b420a2_18] Frame 91
stop();
Symbol 1595 MovieClip [slide13_scoring_mc] Frame 1
#initclip 472
Object.registerClass("slide13_scoring_mc", captivate.monalisa.rdQSlide);
#endinitclip
var m_projectSlideIndex = 13;
this.m_submitOnFrame = 45;
Symbol 1595 MovieClip [slide13_scoring_mc] Frame 91
stop();
Symbol 1661 MovieClip Frame 53
stop();
Symbol 1654 MovieClip Frame 1
var textlen = "21";
Set("0/letter:text", "P");
Symbol 1654 MovieClip Frame 2
Set("1/letter:text", "o");
Symbol 1654 MovieClip Frame 3
Set("2/letter:text", "s");
Symbol 1654 MovieClip Frame 4
Set("3/letter:text", "t");
Symbol 1654 MovieClip Frame 5
Set("4/letter:text", " ");
Symbol 1654 MovieClip Frame 6
Set("5/letter:text", "s");
Symbol 1654 MovieClip Frame 7
Set("6/letter:text", "c");
Symbol 1654 MovieClip Frame 8
Set("7/letter:text", "o");
Symbol 1654 MovieClip Frame 9
Set("8/letter:text", "r");
Symbol 1654 MovieClip Frame 10
Set("9/letter:text", "e");
Symbol 1654 MovieClip Frame 11
Set("10/letter:text", " ");
Symbol 1654 MovieClip Frame 12
Set("11/letter:text", "o");
Symbol 1654 MovieClip Frame 13
Set("12/letter:text", "n");
Symbol 1654 MovieClip Frame 14
Set("13/letter:text", " ");
Symbol 1654 MovieClip Frame 15
Set("14/letter:text", "t");
Symbol 1654 MovieClip Frame 16
Set("15/letter:text", "h");
Symbol 1654 MovieClip Frame 17
Set("16/letter:text", "r");
Symbol 1654 MovieClip Frame 18
Set("17/letter:text", "e");
Symbol 1654 MovieClip Frame 19
Set("18/letter:text", "a");
Symbol 1654 MovieClip Frame 20
Set("19/letter:text", "d");
Symbol 1654 MovieClip Frame 21
Set("20/letter:text", ".");
Symbol 1654 MovieClip Frame 74
stop();
Symbol 1654 MovieClip Frame 75
stop();
Symbol 1662 MovieClip [19b420a2_19] Frame 1
#initclip 473
Object.registerClass("19b420a2_19", captivate.monalisa.rdSwf);
#endinitclip
var nTotalFrames = 75;
var nEnterFrame = 1;
var nExitFrame = 91;
var m_playThis = 0;
var m_loop = false;
var m_sync = false;
var nPlayMovieClipFromFrame = 0;
var nPlayMovieClipToFrame = 75;
var m_isGlobal = false;
var m_swfwidth = 306;
stop();
var m_swfheight = 36;
var m_mustBeReady = false;
var m_slideFrame = 0;
function inEffect(sprite_mc, currentFrame, totalEffectFrames) {
var _local1 = ((currentFrame + 1) * sprite_mc.m_alpha) / totalEffectFrames;
sprite_mc._alpha = _local1;
}
function outEffect(sprite_mc, currentFrame, totalEffectFrames) {
var _local1 = (((totalEffectFrames - currentFrame) - 1) * sprite_mc.m_alpha) / totalEffectFrames;
sprite_mc._alpha = _local1;
}
var m_inEffectFrames = 15;
var m_outEffectFrames = 15;
var inBegin = 1;
var inEnd = 16;
var outBegin = 76;
var outEnd = 91;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 14;
var m_soundIdx = -1;
Symbol 1664 MovieClip [19b420a2_20] Frame 1
#initclip 474
Object.registerClass("19b420a2_20", captivate.monalisa.rdCCMovieClip);
#endinitclip
var fps = 30;
var frameOffset = 0;
Symbol 1664 MovieClip [19b420a2_20] Frame 91
stop();
Symbol 1652 MovieClip [19b420a2_21] Frame 1
#initclip 475
Object.registerClass("19b420a2_21", captivate.monalisa.rdSlide);
#endinitclip
var m_projectSlideIndex = 14;
var m_Sub_mc_array = new Array("s14_i0_ta_mc");
Symbol 1652 MovieClip [19b420a2_21] Frame 91
stop();