Frame 1
var rdinfoFrameCount = 1290;
var rdinfoFrameCount = 1290;
var rdinfoSlidesInProject = 3;
var rdinfoFPS = 30;
var rdinfocurrFrame = 1;
var rdinfoCurrentFrame = 1;
var rdinfoCurrentSlide = 1;
var rdinfoCurrentSlideInProject = 1;
var rdinfoSlideCount = 3;
var rdIsMainMovie = 1;
var rdIsPreview = 0;
var rdcmndGotoFrame = -1;
var rdcmndResume = 0;
var rdcmndPause = 0;
var rdcmndPrevious = 0;
var rdcmndNext = 0;
var _quality = "best";
var CaptivateVersion = "1.0.0";
function isWaiting() {
if (waitCount) {
return(true);
}
return(false);
}
function incrementWait() {
if (waitCount) {
waitCount++;
} else {
waitCount = 1;
}
}
function decrementWait() {
if (waitCount) {
waitCount--;
}
}
function setExpired() {
expired = true;
}
function isExpired() {
if (expired == true) {
return(true);
}
return(false);
}
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 rdMovie(this);
var pacemaker = new rdPacemaker(movie);
movie.SetPacemaker(pacemaker);
movie.setSize(720, 540);
movie.SetFps(30);
movie.m_fps = 30;
function toberemoved() {
}
var index = 0;
var slideTransition = new rdSlideTransition(0, 0, 0, 0);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(0, 0, 1140, 1140, 1140);
movie.addSlide(index, slideData);
var index = 1;
var slideTransition = new rdSlideTransition(0, 0, 0, 1140);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(1140, 1140, 1260, 1260, 120);
movie.addSlide(index, slideData);
var index = 2;
var slideTransition = new rdSlideTransition(0, 0, 0, 1260);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(1260, 1260, 1290, 1292, 30);
movie.addSlide(index, slideData);
var index = 3;
var slideTransition = new rdSlideTransition(0, 0, 0, 0);
movie.addSlideTransition(index, slideTransition);
var endSwfAction = 0;
movie.m_soundHandler.AddItemSound("03s2CA3", 0, 38, 0, 38, 1, 0);
_accProps = new Object();
_accProps.name = "Sans titrequimarcheavecstar ";
Accessibility.updateProperties();
Frame 37
stop();
Symbol 260 MovieClip [__Packages.rdExpire] Frame 0
class rdExpire extends MovieClip
{
function rdExpire () {
super();
}
function onLoad() {
var _local2 = this;
var _local1 = new Date();
var _local3 = new Date();
_local1.setFullYear(_local2.year);
_local1.setMonth(_local2.month);
_local1.setDate(_local2.day);
if (_local1.getTime() < _local3.getTime()) {
_local2._parent.incrementWait();
_local2._parent.setExpired();
} else {
_local2._visible = false;
}
}
}
Symbol 259 MovieClip [__Packages.rdPreloader] Frame 0
class rdPreloader extends MovieClip
{
function rdPreloader () {
super();
}
function done() {
var _local1 = this;
_local1._visible = false;
_local1.m_done = true;
_local1._parent.decrementWait();
}
function onEnterFrame() {
var _local1 = this;
if (typeof(_local1._parent.isExpired) == "function") {
if (_local1._parent.isExpired()) {
_local1._visible = false;
return;
}
} else if (_local1.m_done) {
} else {
if (!_local1.m_doneInit) {
_local1._parent.incrementWait();
_local1.m_startTime = getTimer();
if (typeof(_local1.loading_sub_mc.initialize) == "function") {
_local1.loading_sub_mc.initialize(_local1.m_movieWidth, _local1.m_movieHeight);
}
_local1.m_doneInit = true;
}
switch (_local1.m_loadType) {
case loadTypeBytes :
default :
var totalBytes = _local1._parent.getBytesTotal();
var loadedBytes = _local1._parent.getBytesLoaded();
if (typeof(_local1.loading_sub_mc.onProgress) == "function") {
_local1.loading_sub_mc.onProgress(loadedBytes, totalBytes);
}
if (_local1._parent._framesloaded >= _local1._parent._totalframes) {
if (typeof(_local1.loading_sub_mc.isDone) != "function") {
_local1.done();
}
}
// unexpected jump
case loadTypeTime :
}
var _local3 = getTimer();
var _local2 = _local3 - _local1.m_startTime;
if (typeof(_local1.loading_sub_mc.onProgress) == "function") {
_local1.loading_sub_mc.onProgress(_local2, _local1.m_loadingTime);
}
if (_local2 >= _local1.m_loadingTime) {
if (typeof(_local1.loading_sub_mc.isDone) != "function") {
_local1.done();
}
}
if ((typeof(_local1.loading_sub_mc.isDone) == "function") && (!_local1.m_done)) {
if (_local1.loading_sub_mc.isDone()) {
_local1.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;
var m_loadType = 1;
var m_loadingTime = 5000;
}
Symbol 258 MovieClip [__Packages.rdPassword] Frame 0
class rdPassword extends MovieClip
{
var pThis;
function rdPassword () {
super();
}
function rdPreloader() {
}
function done() {
var _local1 = this;
Key.removeListener(_local1.myListener);
_local1._visible = false;
_local1.m_done = true;
_local1._parent.decrementWait();
_local1._parent.play();
}
function Submit() {
var _local1 = this;
if (_local1.input_txt == _local1.m_password) {
_local1.done();
} else {
(_local1.gotoAndStop(2));// not popped
}
}
function CheckKeyDown() {
if (Key.isDown(13)) {
pThis.Submit();
}
}
function initialize() {
var _local1 = this;
_local1._parent.incrementWait();
var _local2 = _local1._target;
_local2 = _local2 + "/password_editField";
Selection.setFocus(_local2);
_local1.myListener = new Object();
_local1.myListener.pThis = _local1;
_local1.myListener.onKeyDown = _local1.CheckKeyDown;
Key.addListener(_local1.myListener);
}
function onEnterFrame() {
var _local1 = this;
if (_local1._parent.isExpired()) {
_local1._visible = false;
} else if (_local1.m_done) {
} else if (!_local1.m_doneInit) {
_local1.initialize();
_local1.m_doneInit = true;
}
}
var m_doneInit = false;
var m_done = false;
}
Symbol 252 MovieClip Frame 1
function initialize(movieWidth, movieHeight) {
}
function onProgress(loadedBytes, totalBytes) {
var _local1 = Math.round((loadedBytes / totalBytes) * 100);
if (_local1 > 60) {
this.done = true;
}
percent_txt = _local1 + "%";
}
function isDone() {
if (this.done) {
return(true);
}
return(false);
}
Symbol 251 MovieClip [6999728_13] Frame 1
#initclip 4
Object.registerClass("6999728_13", rdPreloader);
#endinitclip
var m_movieWidth = 720;
var m_movieHeight = 540;
var m_loadType = 2;
var m_loadingTime = 5000;
Symbol 1 MovieClip [__Packages.rdSlideData] Frame 0
class rdSlideData
{
function rdSlideData (showOnFrame, playOnFrame, stopOnFrame, hideOnFrame, frameCount) {
var _local1 = this;
_local1.m_showOnFrame = showOnFrame;
_local1.m_playOnFrame = playOnFrame;
_local1.m_stopOnFrame = stopOnFrame;
_local1.m_hideOnFrame = hideOnFrame;
_local1.m_frameCount = frameCount;
}
var m_rdSlide_mc = null;
}
Symbol 2 MovieClip [__Packages.rdBase] Frame 0
class 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.rdSlide] Frame 0
class rdSlide extends rdBase
{
var m_NoSkipFramesArray, _currentframe, gotoAndStop, 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.stop();
if (_local1.m_movie == undefined) {
_local1.m_movie = _local1._parent.movie;
_local1.m_movie.slideLoaded(_local1);
_local1.Initialize();
_local1.m_left = 0;
_local1.m_top = 0;
}
}
function getCurrentFrame() {
return(_currentframe);
}
function itemLoaded(item) {
item.setSlide(this);
}
function onEnterFrame() {
var _local1 = this;
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;
}
}
function hideSlide() {
var _local1 = this;
if (!_local1.m_isHidden) {
_local1._visible = false;
_local1.gotoAndStop(1);
_local1.m_isHidden = true;
_local1.onLeaveSlide();
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "movieclip") {
_local1[_local2].m_doOnceInvisible = true;
}
}
}
}
function isPlaying() {
return(m_isPlaying);
}
function rewindSlide() {
gotoAndStop(1);
}
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;
if (_local1.m_isPlaying) {
_local1.m_isPlaying = false;
}
if ((!_local1.m_isQuizSlide) && (_local1.m_movie.m_quizPlaybackController)) {
var slideName = _local1._name;
var slideNo = parseInt(slideName.substr(5));
var _local2 = _local1.m_movie.m_quizPlaybackController.getSlide(slideNo);
var _local3 = _local1.m_movie.m_quizPlaybackController.quizControllerForSlide(_local2);
var next_slide = _local3.slideAfter(_local2);
_local3.leaveCurrentSlide(next_slide);
}
}
function startSlide() {
var _local1 = this;
if (!_local1.m_isPlaying) {
_local1.onEnterSlide();
_local1.m_stopped = false;
_local1.gotoAndPlay(2);
}
}
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);
}
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;
if (_local1.m_isPlaying) {
_local1.m_playerPaused = true;
_local1.stop();
_local1.syncSubMovieClips(_local1._currentframe, false);
}
}
function playerResumeSlide() {
var _local1 = this;
if (_local1.m_playerPaused) {
_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;
_local2 = 0;
while (_local2 < _local3.m_NoSkipFramesArray.length) {
var _local1 = _local3.m_NoSkipFramesArray[_local2] - _local3._currentframe;
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);
}
}
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 deb = "";
var m_index = 0;
var m_isQuizSlide = false;
var m_soundIdx = -1;
}
Symbol 4 MovieClip [__Packages.rdMovie] Frame 0
class rdMovie
{
var m_width, m_height, m_slideData_array, m_slideTrans_array;
function rdMovie (movie_mc) {
var _local1 = this;
_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.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 rdKeyHandler();
_local1.m_soundHandler = new rdSoundHandler(_local1);
_local1.m_slideTrans_array = new Array();
_local1.m_slideData_array = new Array();
}
function isReady() {
return(m_state != stateStart);
}
function setQuizPlaybackController(quizPlaybackController) {
m_quizPlaybackController = quizPlaybackController;
}
function setSize(width, height) {
m_width = width;
m_height = height;
}
function setCurrSlide(index) {
var _local1 = this;
var _local3 = index;
var oldCurr = _local1.m_currSlide;
var _local2 = _local1.m_nextSlide;
var oldCurrIndex = _local1.m_currSlideIndex;
if (_local3 < 0) {
_local3 = 0;
}
if (_local3 != _local1.m_currSlideIndex) {
_local1.m_clickHandler_mc.clearSprites(_local3);
_local1.m_keyHandler.clearSprites(_local3);
}
_local1.m_currSlideIndex = _local3;
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 (oldCurrIndex >= 0) {
switch (_local1.m_currSlideIndex - oldCurrIndex) {
case 0 :
oldCurr = null;
_local2 = null;
break;
case 1 :
_local2 = null;
break;
case -1 :
oldCurr = null;
}
if (oldCurr) {
_local1.doHide(oldCurr);
}
if (_local2) {
_local1.doHide(_local2);
}
}
if (oldCurrIndex != _local1.m_currSlideIndex) {
if (_local1.m_quizPlaybackController) {
_local1.m_quizPlaybackController.onSlideChanged(_local1.m_currSlideIndex);
}
}
}
function setCurrTrans(index) {
var _local1 = this;
if (_local1.m_currTransIndex != index) {
if (_local1.m_currTrans != null) {
_local1.m_currTrans.endPlay();
}
}
_local1.m_currTransIndex = index;
if (_local1.m_slideTrans_array.length >= (_local1.m_currTransIndex + 1)) {
_local1.m_currTrans = _local1.m_slideTrans_array[_local1.m_currTransIndex];
} else {
_local1.m_currTrans = null;
}
if (_local1.m_slideTrans_array.length >= (_local1.m_currTransIndex + 2)) {
_local1.m_nextTrans = _local1.m_slideTrans_array[_local1.m_currTransIndex + 1];
} else {
_local1.m_nextTrans = null;
}
}
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_state = stateWait;
return(undefined);
}
}
if (m_currTrans) {
doPlayTrans();
if (m_currFrame >= m_currTrans.m_endOnFrame) {
setCurrTrans(m_currTransIndex + 1);
doPlayTrans();
}
}
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_stopOnFrame) {
}
if (m_currFrame == m_currSlide.m_hideOnFrame) {
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)) {
ok = true;
} else {
gotoSlide(i);
return(undefined);
}
}
i++;
}
if (!ok) {
m_movie_mc.rdcmndPause = 1;
return(undefined);
}
}
m_currSlide.m_rdSlide_mc.hideSlide();
setCurrSlide(newSlide);
doPlay();
return(undefined);
}
}
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);
}
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;
}
}
function movieonEnterFrame() {
var _local1 = this;
_local1.m_soundHandler.SyncSounds();
if (_local1.m_movie_mc.isWaiting()) {
} else {
_local1.checkPreviewCommands();
_local1.m_keyHandler.DoCheckAllKeys();
if (_local1.m_paused) {
_local1.debState();
} else {
switch (_local1.m_state) {
case stateStart :
_local1.m_currSlideIndex = -1;
_local1.m_currTransIndex = -1;
_local1.setCurrSlide(0);
_local1.setCurrTrans(0);
_local1.m_movie_mc.rdcmndGotoFrame = -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);
_local1.m_soundHandler.DoDeleteAllSounds();
_local1.playerResumeMovie();
break;
case 2 :
_local1.m_movie_mc.rdcmndExit = 1;
}
}
switch (_local1.m_state) {
case stateSlide :
_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)) {
_local1.m_quizPlaybackController.onScrubChanged();
}
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";
break;
case stateTrans :
_local1 = _local1 + " stateTrans";
break;
case stateSlide :
_local1 = _local1 + " stateSlide";
break;
case stateWait :
_local1 = _local1 + " stateWait";
break;
case stateDone :
_local1 = _local1 + " stateDone";
}
if (_local2.m_currSlide) {
if (_local2.m_currSlide.m_rdSlide_mc) {
_local1 = _local1 + (" slide frame=" + _local2.m_currSlide.m_rdSlide_mc.getCurrentFrame());
_local1 = _local1 + (" slide start frame=" + _local2.m_currSlide.m_playOnFrame);
} else {
_local1 = _local1 + "no mc";
}
} else {
_local1 = _local1 + "no m_currSlide";
}
if (_local2.m_paused) {
_local1 = _local1 + " paused ";
}
}
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() {
var _local1 = this;
if (_local1.m_currTrans) {
if ((_local1.m_currFrame >= _local1.m_currTrans.m_startOnFrame) && (_local1.m_currFrame <= _local1.m_currTrans.m_endOnFrame)) {
if ((_local1.m_currTrans.m_nextSlide != null) && (_local1.m_currTrans.m_nextSlide.m_rdSlide_mc == null)) {
_local1.m_state = stateWait;
} else {
_local1.m_currTrans.playTransiton(_local1.m_currFrame - _local1.m_currTrans.m_startOnFrame);
}
}
}
}
function addSlideTransition(index, slideTrans) {
var _local1 = index;
var _local2 = this;
slideTrans.m_index = _local1;
_local2.m_slideTrans_array[_local1] = slideTrans;
if (_local1 > 0) {
_local2.m_slideTrans_array[_local1].m_prevSlide = _local2.m_slideData_array[_local1 - 1];
}
}
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));
_local2.m_slideData_array[_local1].m_rdSlide_mc = _local3;
_local3.m_frameCount = _local2.m_slideData_array[_local1].m_frameCount;
_local3.m_index = _local1;
_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];
}
function slideCompleted(slide) {
}
function prevSlide() {
var _local1 = this;
_local1.gotoSlide(_local1.m_currSlideIndex - 1);
_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);
}
_local1.m_soundHandler.ResetSounds(true);
}
function previousSlide() {
var _local1 = this;
_local1.gotoSlide(_local1.GetPlayingSlideIndex() - 1);
_local1.m_soundHandler.ResetSounds(true);
}
function gotoSlide(index) {
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);
if (errStr == "") {
_local1.m_quizPlaybackController._gotoSlide(_local3, true);
_local1.gotoFrame(_local1.m_slideData_array[_local2].m_playOnFrame + 1, true);
} else {
return;
}
} else {
_local1.gotoFrame(_local1.m_slideData_array[_local2].m_playOnFrame + 1, true);
}
_local1.playerResumeMovie();
}
function rewindMovie() {
}
function doResumeMovie() {
var _local1 = this;
_local1.m_paused = false;
_local1.syncSubMovieClips(_local1.m_currFrame, true);
_local1.m_pacemaker.start(_local1.m_fps, _local1.m_currFrame)();
_local1.m_movie_mc.rdcmndPause = 0;
_local1.m_soundHandler.ResumeAllSounds();
if (_local1.m_quizPlaybackController) {
_local1.m_quizPlaybackController.onPlayStateChanged();
}
}
function doPauseMovie() {
var _local1 = this;
_local1.m_paused = true;
_local1.syncSubMovieClips(_local1.m_currFrame, false);
if (_local1.m_quizPlaybackController) {
_local1.m_quizPlaybackController.onPlayStateChanged();
}
}
function pauseMovie() {
doPauseMovie();
}
function playerPauseMovie() {
var _local1 = this;
if (_local1.m_currSlide) {
if (_local1.m_currSlide.m_rdSlide_mc) {
_local1.m_currSlide.m_rdSlide_mc.playerPauseSlide();
}
}
if (_local1.m_nextSlide) {
if (_local1.m_nextSlide.m_rdSlide_mc) {
_local1.m_nextSlide.m_rdSlide_mc.playerPauseSlide();
}
}
_local1.m_soundHandler.PauseAllSounds();
_local1.doPauseMovie();
}
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();
}
}
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;
if (_local1.m_movie_mc.rdcmndPrevious == 1) {
_local1.m_movie_mc.rdcmndPrevious = 0;
_local1.prevSlide();
}
if (_local1.m_movie_mc.rdcmndNextSlide == 1) {
_local1.m_movie_mc.rdcmndNextSlide = 0;
_local1.nextSlide();
}
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;
_local1.playerResumeMovie();
}
if (_local1.m_movie_mc.rdcmndRewindAndStop == 1) {
_local1.m_movie_mc.rdcmndRewindAndStop = 0;
_local1.gotoFrame(1, false);
_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;
_local1.gotoFrame(1, true);
_local1.playerResumeMovie();
_local1.m_soundHandler.ResetSounds(false);
}
if (_local1.m_movie_mc.rdcmndGotoFrame >= 0) {
var _local2 = _local1.m_movie_mc.rdcmndGotoFrame;
_local1.m_movie_mc.rdcmndGotoFrame = -1;
_local1.gotoFrame(_local2, false);
_local1.m_movie_mc.rdinfocurrFrame = _local1.m_currFrame;
_local1.playerPauseMovie();
_local1.m_soundHandler.DeleteNonBackgroundSound();
}
if (_local1.m_movie_mc.rdcmndGotoFrameAndResume >= 0) {
var _local2 = _local1.m_movie_mc.rdcmndGotoFrameAndResume;
_local1.m_movie_mc.rdcmndGotoFrameAndResume = -1;
_local1.gotoFrame(_local2, true);
_local1.m_movie_mc.rdinfocurrFrame = _local1.m_currFrame;
}
if (_local1.m_movie_mc.rdcmndExit == 1) {
_local1.m_movie_mc.rdcmndExit = 0;
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();
}
}
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 (_local2.m_currTrans) {
if ((_local2.m_currFrame >= _local2.m_currTrans.m_startOnFrame) && (_local2.m_currFrame <= _local2.m_currTrans.m_endOnFrame)) {
_local3 = false;
}
}
if (_local3) {
_local1.m_rdSlide_mc._alpha = 100;
}
} 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 gotoFrame(frame, playSlide) {
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;
}
} else {
_local1.doGotoFrame(frame, playSlide);
}
}
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_hideOnFrame)) {
return(_local1);
}
_local1++;
}
return(-1);
}
function doGotoFrame(frame, playSlide) {
var _local1 = this;
if (frame < 1) {
frame = 1;
}
if (frame > _local1.m_movie_mc.rdinfoFrameCount) {
frame = _local1.m_movie_mc.rdinfoFrameCount;
}
_local1.m_state = stateSlide;
if (_local1.m_currFrame == frame) {
} else {
var _local2;
var n;
_local1.m_currFrame = frame;
_local1.m_movie_mc.rdinfocurrFrame = _local1.m_currFrame;
_local2 = 0;
while (_local2 < _local1.m_slideTrans_array.length) {
var _local3 = _local1.m_slideTrans_array[_local2];
if (_local1.m_currFrame <= _local3.m_endOnFrame) {
_local1.setCurrTrans(_local2);
break;
}
_local2++;
}
_local2 = _local1.getSlideIndexFromFrame(frame);
if (_local2 != _local1.m_currSlideIndex) {
_local1.setCurrSlide(_local2);
}
if (_local2 >= 0) {
_local1.showHidePlayGoto(_local1.m_currSlide, playSlide);
_local1.showHidePlayGoto(_local1.m_nextSlide, playSlide);
}
if (_local1.m_paused && (playSlide)) {
_local1.playerResumeMovie();
} else if ((!_local1.m_paused) && (!playSlide)) {
_local1.playerPauseMovie();
}
_local1.syncSubMovieClips(frame, playSlide);
_local1.doPlay();
if (_local1.m_quizPlaybackController) {
_local1.m_quizPlaybackController.onScrubChanged();
}
}
}
function syncSubMovieClips(nFrame, doPlay) {
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);
}
}
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);
}
}
} 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);
}
}
}
}
function ReplayFrame() {
doGotoFrame(m_currFrame - 1, true);
}
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++;
}
}
}
var m_movie_mc = null;
var m_paused = false;
var m_loop = false;
var m_clickHandler_mc = null;
var m_keyHandler = null;
var m_soundHandler = null;
var m_quizPlaybackController = null;
var m_currSlide = null;
var m_nextSlide = null;
var m_currSlideIndex = 0;
var m_currTransIndex = 0;
var m_currTrans = null;
var m_nextTrans = null;
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;
}
Symbol 5 MovieClip [__Packages.rdClickHandler] Frame 0
class 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;
if (typeof(_local1._parent.playbar_mc) == "movieclip") {
if (_local1._parent.playbar_mc.hitTest(_local1._parent._xmouse, _local1._parent._ymouse, true)) {
return(true);
}
}
if (typeof(_local1._parent.info_mc) == "movieclip") {
if (_local1._parent.info_mc.hitTest(_local1._parent._xmouse, _local1._parent._ymouse, true)) {
return(true);
}
}
return(false);
}
function CheckSpriteClick(x1, y1, x2, y2, bSound) {
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 6 MovieClip [__Packages.rdKeyHandler] Frame 0
class 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) {
var _local1 = Key.isDown(nKey);
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() {
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 (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) {
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].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].Submit(false);
_local1.nLastSubmitTime = _local3;
}
return;
}
_local2++;
}
}
}
}
}
var arr_Sprite = new Array();
var nLastSubmitTime = 0;
}
Symbol 7 MovieClip [__Packages.rdSoundHandler] Frame 0
class rdSoundHandler
{
var SoundObjArr;
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.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();
}
function DoAddSound(Name, StartFrame, StopFrame, FadeIn, FadeOut, Loop, Lower, IsBkGround) {
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;
}
function DoDeleteSound(nIndex) {
var _local1 = this;
var _local2 = nIndex;
if (typeof(_local1.SoundObjArr[_local2]) == "object") {
_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++;
}
_local1 = 0;
while (_local1 < _local2.NameArr.length) {
var this_sound = _local2.SoundObjArr[_local1];
if ((_local3 >= _local2.StartArr[_local1]) && (_local3 < _local2.StopArr[_local1])) {
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(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 _local2 = this;
var _local3 = nIndex;
var _local1;
if (typeof(_local2.SoundObjArr[_local3]) == "object") {
_local1 = _local2.SoundObjArr[_local3];
} else {
var strMcName = (("sound" + _local3) + "_mc");
var new_mc = _local2.rdMovie_obj.m_movie_mc.createEmptyMovieClip(strMcName, _local2.m_newMovieDepth);
_local2.m_newMovieDepth++;
_local1 = new Sound(new_mc);
_local1._mc = new_mc;
_local1.strName = _local2.NameArr[_local3];
_local1.attachSound(_local1.strName);
_local2.SoundObjArr[_local3] = _local1;
}
if (_local2.LoopArr[_local3] > 1) {
nOffset = ((nOffset * 1000) % _local1.duration) / 1000;
}
if (_local2.BackgroundArr[_local3] == 1) {
nOffset = 0;
}
_local1.start(nOffset, 1);
_local2.nNumberCurrentlyPlaying++;
return(_local1);
}
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) {
var _local2 = this;
var _local1 = _local2.itmNameArr.length;
_local2.itmNameArr[_local1] = Name;
_local2.itmStartArr[_local1] = startFrame;
_local2.itmStopArr[_local1] = stopFrame;
_local2.itmFadeInArr[_local1] = FadeIn;
_local2.itmFadeOutArr[_local1] = FadeOut;
_local2.itmLoopArr[_local1] = Loop;
_local2.itmLowerArr[_local1] = Lower;
_local2.itmFrameCounterArr[_local1] = -1;
}
function StartItemSound(nIndex, nOffset) {
var _local2 = this;
var _local3 = nIndex;
if (_local2.rdMovie_obj.m_state == rdMovie.stateDone) {
return(null);
}
var _local1;
if (typeof(_local2.itmSoundObjArr[_local3]) == "object") {
_local1 = _local2.itmSoundObjArr[_local3];
if (_local2.itmFrameCounterArr[_local3] > -1) {
_local1.stop(_local1.strName);
}
} else {
var strMcName = (("item_sound" + _local3) + "_mc");
var new_mc = _local2.rdMovie_obj.m_movie_mc.createEmptyMovieClip(strMcName, _local2.m_newMovieDepth);
_local2.m_newMovieDepth++;
_local1 = new Sound(new_mc);
_local1._mc = new_mc;
_local1.strName = _local2.itmNameArr[_local3];
_local1.attachSound(_local1.strName);
_local2.itmSoundObjArr[_local3] = _local1;
}
_local2.itmFrameCounterArr[_local3] = nOffset;
_local1.start(nOffset, 1);
if (_local2.itmStartArr[_local3] < _local2.itmFadeInArr[_local3]) {
_local1.setVolume(25);
}
return(_local1);
}
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(nVolume);
} else {
_local2.DoDeleteItemSound(_local1);
}
}
_local1++;
}
}
}
function DoDeleteItemSound(nIndex) {
var _local1 = nIndex;
var _local2 = this;
_local2.itmFrameCounterArr[_local1] = -1;
if (typeof(_local2.itmSoundObjArr[_local1]) == "object") {
_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++;
}
}
}
Symbol 8 MovieClip [__Packages.rdSlideTransition] Frame 0
class rdSlideTransition
{
var m_frameCount;
function rdSlideTransition (overlap, outFrameCount, inFrameCount, startOnFrame) {
var _local1 = this;
var _local2 = outFrameCount;
var _local3 = inFrameCount;
if ((_local2 <= 0) || (_local3 <= 0)) {
overlap = 0;
}
if (overlap) {
_local1.m_overlap = true;
if (_local2 > _local3) {
_local1.m_frameCount = _local2;
} else {
_local1.m_frameCount = _local3;
}
} else {
_local1.m_overlap = false;
_local1.m_frameCount = _local3 + _local2;
}
_local1.m_outFrameCount = _local2;
_local1.m_inFrameCount = _local3;
_local1.m_startOnFrame = startOnFrame;
_local1.m_endOnFrame = startOnFrame + _local1.m_frameCount;
}
function endPlay() {
var _local1 = this;
if (_local1.m_customTranstiton_mc && (_local1.m_prepared)) {
_local1.m_customTranstiton_mc.endPlay();
_local1.m_prepared = false;
}
}
function callCustomTransition() {
var _local1 = this;
if (_local1.m_customTranstiton_mc) {
if (!_local1.m_initializedCustomTransition) {
if ((_local1.m_nextSlide != null) && (_local1.m_nextSlide.m_rdSlide_mc == null)) {
return(undefined);
}
_local1.m_customTranstiton_mc.Initialize(_local1.m_prevSlide.m_rdSlide_mc, _local1.m_nextSlide.m_rdSlide_mc, _local1.m_overlap, _local1.m_frameCount);
_local1.m_initializedCustomTransition = true;
}
if (!_local1.m_prepared) {
_local1.m_prepared = true;
_local1.m_customTranstiton_mc.beginPlay();
}
_local1.m_customTranstiton_mc.playTransiton(_local1.m_currentFrame + 1);
return(true);
}
return(false);
return(undefined);
}
function playTransiton(currentFrame) {
var _local1 = this;
var _local3 = currentFrame;
if (_local1.m_frameCount <= 0) {
} else {
_local1.m_currentFrame = _local3;
if (_local1.callCustomTransition()) {
} else if (_local1.m_overlap) {
var _local2 = (100 * _local3) / _local1.m_frameCount;
if (_local3 == 1) {
_local2 = 0;
}
if (_local3 >= _local1.m_frameCount) {
_local2 = 100;
}
var alphaPrev = 100;
if (_local1.m_prevSlide) {
_local1.m_prevSlide.m_rdSlide_mc._alpha = alphaPrev;
}
if (_local1.m_nextSlide) {
_local1.m_nextSlide.m_rdSlide_mc._alpha = _local2;
}
return;
}
}
}
function getFrameCount() {
return(m_frameCount);
}
var m_prevSlide = null;
var m_nextSlide = null;
var m_currentFrame = 0;
var m_customTranstiton_mc = null;
var m_initializedCustomTransition = null;
var m_prepared = false;
}
Symbol 9 MovieClip [__Packages.rdCustomTransiton] Frame 0
class rdCustomTransiton extends MovieClip
{
var m_nextrdSlide, m_previousrdSlide;
function rdCustomTransiton () {
super();
}
function getMovieWidth() {
var _local1 = m_nextrdSlide;
if (_local1 == null) {
_local1 = m_previousrdSlide;
}
if (_local1 == null) {
return(0);
}
return(_local1.m_movie.m_width);
}
function getMovieHeight() {
var _local1 = m_nextrdSlide;
if (_local1 == null) {
_local1 = m_previousrdSlide;
}
if (_local1 == null) {
return(0);
}
return(_local1.m_movie.m_height);
}
function Initialize(previousrdSlide, nextrdSlide, overlap, frameCount) {
var _local2 = nextrdSlide;
var _local3 = this;
_local3.m_previousrdSlide = previousrdSlide;
_local3.m_nextrdSlide = _local2;
_local3.m_overlap = overlap;
_local3.m_frameCount = frameCount;
_root.deba("Init" + _local3.m_nextrdSlide._name);
var _local1 = "rdCustomTransition:Initialize previousrdSlide=";
if (previousrdSlide) {
_local1 = _local1 + previousrdSlide._name;
} else {
_local1 = _local1 + "null";
}
_local1 = _local1 + " nextrdSlide=";
if (_local2) {
_local1 = _local1 + _local2._name;
_local1 = _local1 + (" width=" + _local2._width);
_local1 = _local1 + (" height=" + _local2._height);
} else {
_local1 = _local1 + "null";
}
_local1 = _local1 + (" overlap=" + overlap);
_local1 = _local1 + (" frameCount=" + frameCount);
}
function playTransiton(currentFrame) {
_root.deba("transition not implemented");
}
function beginPlay() {
_root.deba("beginPlay");
}
function endPlay() {
_root.deba("endPlay");
}
}
Symbol 10 MovieClip [__Packages.rdPacemaker] Frame 0
class 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 11 MovieClip [__Packages.rdItem] Frame 0
class rdItem extends rdBase
{
var _parent;
function rdItem () {
super();
}
function setSlide(slide) {
m_slide = slide;
}
function onLoad() {
var _local1 = this;
_local1._parent.itemLoaded(_local1);
var _local2 = true;
if (_local1.isStatic) {
if (_local1._parent.m_index > _local1.parentSlideIndex) {
_local2 = false;
}
}
if ((_local1.inEnd == 1) && (_local1.m_mustBeReady)) {
_local2 = false;
}
if (_local2) {
_local1._visible = false;
} else {
_local1.SetVisible(true);
}
}
function getParentCurrFrame() {
return(_parent._currentframe);
}
function SetVisible(setVisible) {
var _local1 = this;
_local1._visible = setVisible;
if (setVisible && (_local1.m_soundIdx > -1)) {
_local1.m_slide.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0);
}
}
function onEnterFrame() {
var _local1 = this;
if (!_local1._parent._visible) {
if (_local1.m_doOnceInvisible && (_local1.m_mustBeReady)) {
_local1.m_doOnceInvisible = false;
// unexpected jump
}
} else {
if (!_local1.initialized) {
_local1.Initialize();
_local1.initialized = true;
}
if (_local1.isStatic) {
var _local2 = true;
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;
}
return;
}
} 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._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;
}
}
}
}
}
var inEffect = null;
var outEffect = null;
var initialized = false;
var m_slide = null;
var m_mustBeReady = true;
}
Symbol 12 MovieClip [__Packages.rdSwf] Frame 0
class rdSwf extends rdItem
{
var stop;
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 _local2 = _local1.m_swf_mc.getIFlashPaper().setSize(_local1.m_swfwidth, _local1.m_swfheight);
if (_local2) {
_local1.m_init_swf_mc = true;
}
}
}
}
}
if (_local1.m_sync) {
var _local3 = (_local1.getParentCurrFrame() - _local1.nEnterFrame) + 2;
_local1.doSync(_local3, 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.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) {
if (_local1.m_playThis) {
_local1.play();
}
_local1.m_swf_mc.play();
} else {
if (_local1.m_playThis) {
_local1.stop();
}
_local1.m_swf_mc.stop();
}
}
}
function gotoFrame(frame, doPlay) {
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() {
var _local1 = this;
if (_local1.m_isGlobal) {
return(_local1._parent.movie.m_currFrame);
}
return(_local1._parent._currentframe);
}
var m_isPlaying = false;
var m_init_swf_mc = false;
var m_passedFirstFrame = false;
}
Symbol 13 MovieClip [__Packages.rdProgressbar] Frame 0
class rdProgressbar extends MovieClip
{
var _parent;
function rdProgressbar () {
super();
}
function onRelease() {
_parent.m_bMouseDown = false;
}
function onReleaseOutside() {
_parent.m_bMouseDown = false;
}
function onPress() {
_parent.m_bMouseDown = true;
}
}
Symbol 14 MovieClip [__Packages.rdRollover] Frame 0
class rdRollover extends rdBase
{
var _visible;
function rdRollover () {
super();
}
function setSlide(slide) {
m_slide = slide;
}
function onLoad() {
var _local1 = this;
_local1._visible = false;
_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) {
_local1.m_slide.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;
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;
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 15 MovieClip [__Packages.rdFeedback] Frame 0
class rdFeedback extends rdBase
{
var currFrame, outEnd;
function rdFeedback () {
super();
}
function SetPendingResume(mc) {
m_pendingResume = mc;
}
function showFeedback() {
var _local1 = this;
_local1.currFrame = 0;
if (_local1.m_soundIdx > -1) {
_local1.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0);
}
}
function hideFeedback() {
currFrame = outEnd + 10;
}
function setMovie(movie) {
m_movie = movie;
}
function onLoad() {
var _local1 = this;
_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_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 16 MovieClip [__Packages.rdInteraction] Frame 0
class rdInteraction extends 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_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_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_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_slide.m_movie.m_keyHandler.SpriteUnloaded(_local1);
}
}
}
function SetVisible(setVisible) {
super.SetVisible(setVisible);
if (setVisible) {
}
m_done = false;
}
function onEnterFrame() {
var _local1 = this;
if (_local1._visible) {
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;
}
}
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.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 17 MovieClip [__Packages.rdButton] Frame 0
class rdButton extends 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.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");
}
}
var m_isDown = false;
}
Symbol 18 MovieClip [__Packages.rdPlaybar] Frame 0
class rdPlaybar extends MovieClip
{
var _parent;
function rdPlaybar () {
super();
}
function onLoad() {
var _local1 = this;
_local1.tabChildren = true;
_local1.tabEnabled = false;
if (_local1._parent.isWaiting()) {
_local1._visible = false;
}
}
function onEnterFrame() {
var _local1 = this;
if (_local1._parent.isWaiting()) {
_local1._visible = false;
} else {
if ((!_local1._parent.rdcmndHidePlaybar) && (!_local1._visible)) {
_local1._visible = true;
} else if (_local1._parent.rdcmndHidePlaybar && (_local1._visible)) {
_local1._visible = false;
}
if (_local1.m_movie == undefined) {
_local1.m_movie = _local1._parent.movie;
}
_local1.UpdatePosition();
_local1.CheckTracking();
}
}
function UpdatePosition() {
var _local1 = this;
var _local2 = (_local1.m_movie.m_currFrame * _local1.m_progressBarLength) / _local1._parent.rdinfoFrameCount;
_local1.progressbar_mc.thumb_mc._x = _local2;
_local1.deb++;
_local1.tip_mc._x = _local2;
}
function GetFrameTipString() {
var _local2 = _parent.rdinfoCurrentSlide + 1;
var _local1 = _parent.rdinfoSlideCount;
return((_local2 + "/") + _local1);
}
function CheckTracking() {
var _local1 = this;
if (_local1.m_bMouseDown) {
_local1.tip_mc.tiptext = _local1.GetFrameTipString();
if (!_local1.tip_mc.bPlaced) {
_local1.tip_mc.bPlaced = true;
if (_local1.m_bTipOnTop) {
_local1.tip_mc._y = (-_local1.tip_mc._height) - 2;
} else {
_local1.tip_mc._y = _local1.progressbar_mc.thumb_mc._height + 2;
}
}
if (!_local1.tip_mc._visible) {
_local1.tip_mc._visible = true;
_local1.tip_mc._alpha = 255;
}
var _local2 = _local1._xmouse;
_local2 = _local2 - (_local1.progressbar_mc.thumb_mc._width / 2);
if (_local2 < 0) {
_local2 = 0;
}
if (_local2 > _local1.m_progressBarLength) {
_local2 = _local1.m_progressBarLength;
}
_local1._parent.rdcmndGotoFrame = Math.round(((_local1._parent.rdinfoFrameCount * _local2) / _local1.m_progressBarLength) + 1);
} else if (_local1.tip_mc._visible) {
_local1.tip_mc._visible = false;
}
}
var m_movie = null;
var deb = 0;
}
Symbol 19 MovieClip [__Packages.rdSwfSlide] Frame 0
class rdSwfSlide extends 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 20 MovieClip [__Packages.rdRolloverArea] Frame 0
class rdRolloverArea extends rdItem
{
function rdRolloverArea () {
super();
}
function onRollOut() {
m_rolloverItem.hideRollover();
}
function onRollOver() {
m_rolloverItem.showRollover();
}
var m_rolloverItem = null;
}
Symbol 21 MovieClip [__Packages.rdTextEntry] Frame 0
class rdTextEntry extends rdInteraction
{
var _target, strInputFocus, _parent;
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 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++;
}
}
}
var deb = 0;
}
Symbol 23 MovieClip [6999728_0] Frame 1
#initclip 26
Object.registerClass("6999728_0", rdClickHandler);
#endinitclip
Symbol 27 MovieClip Frame 0
class rdSlideData
{
function rdSlideData (showOnFrame, playOnFrame, stopOnFrame, hideOnFrame, frameCount) {
var _local1 = this;
_local1.m_showOnFrame = showOnFrame;
_local1.m_playOnFrame = playOnFrame;
_local1.m_stopOnFrame = stopOnFrame;
_local1.m_hideOnFrame = hideOnFrame;
_local1.m_frameCount = frameCount;
}
var m_rdSlide_mc = null;
}
Symbol 29 MovieClip Frame 0
class 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 31 MovieClip Frame 0
class rdSlide extends rdBase
{
var m_NoSkipFramesArray, _currentframe, gotoAndStop, 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.stop();
if (_local1.m_movie == undefined) {
_local1.m_movie = _local1._parent.movie;
_local1.m_movie.slideLoaded(_local1);
_local1.Initialize();
_local1.m_left = 0;
_local1.m_top = 0;
}
}
function getCurrentFrame() {
return(_currentframe);
}
function itemLoaded(item) {
item.setSlide(this);
}
function onEnterFrame() {
var _local1 = this;
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;
}
}
function hideSlide() {
var _local1 = this;
if (!_local1.m_isHidden) {
_local1._visible = false;
_local1.gotoAndStop(1);
_local1.m_isHidden = true;
_local1.onLeaveSlide();
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "movieclip") {
_local1[_local2].m_doOnceInvisible = true;
}
}
}
}
function isPlaying() {
return(m_isPlaying);
}
function rewindSlide() {
gotoAndStop(1);
}
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;
if (_local1.m_isPlaying) {
_local1.m_isPlaying = false;
}
if ((!_local1.m_isQuizSlide) && (_local1.m_movie.m_quizPlaybackController)) {
var slideName = _local1._name;
var slideNo = parseInt(slideName.substr(5));
var _local2 = _local1.m_movie.m_quizPlaybackController.getSlide(slideNo);
var _local3 = _local1.m_movie.m_quizPlaybackController.quizControllerForSlide(_local2);
var next_slide = _local3.slideAfter(_local2);
_local3.leaveCurrentSlide(next_slide);
}
}
function startSlide() {
var _local1 = this;
if (!_local1.m_isPlaying) {
_local1.onEnterSlide();
_local1.m_stopped = false;
_local1.gotoAndPlay(2);
}
}
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);
}
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;
if (_local1.m_isPlaying) {
_local1.m_playerPaused = true;
_local1.stop();
_local1.syncSubMovieClips(_local1._currentframe, false);
}
}
function playerResumeSlide() {
var _local1 = this;
if (_local1.m_playerPaused) {
_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;
_local2 = 0;
while (_local2 < _local3.m_NoSkipFramesArray.length) {
var _local1 = _local3.m_NoSkipFramesArray[_local2] - _local3._currentframe;
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);
}
}
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 deb = "";
var m_index = 0;
var m_isQuizSlide = false;
var m_soundIdx = -1;
}
Symbol 33 MovieClip Frame 0
class rdMovie
{
var m_width, m_height, m_slideData_array, m_slideTrans_array;
function rdMovie (movie_mc) {
var _local1 = this;
_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.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 rdKeyHandler();
_local1.m_soundHandler = new rdSoundHandler(_local1);
_local1.m_slideTrans_array = new Array();
_local1.m_slideData_array = new Array();
}
function isReady() {
return(m_state != stateStart);
}
function setQuizPlaybackController(quizPlaybackController) {
m_quizPlaybackController = quizPlaybackController;
}
function setSize(width, height) {
m_width = width;
m_height = height;
}
function setCurrSlide(index) {
var _local1 = this;
var _local3 = index;
var oldCurr = _local1.m_currSlide;
var _local2 = _local1.m_nextSlide;
var oldCurrIndex = _local1.m_currSlideIndex;
if (_local3 < 0) {
_local3 = 0;
}
if (_local3 != _local1.m_currSlideIndex) {
_local1.m_clickHandler_mc.clearSprites(_local3);
_local1.m_keyHandler.clearSprites(_local3);
}
_local1.m_currSlideIndex = _local3;
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 (oldCurrIndex >= 0) {
switch (_local1.m_currSlideIndex - oldCurrIndex) {
case 0 :
oldCurr = null;
_local2 = null;
break;
case 1 :
_local2 = null;
break;
case -1 :
oldCurr = null;
}
if (oldCurr) {
_local1.doHide(oldCurr);
}
if (_local2) {
_local1.doHide(_local2);
}
}
if (oldCurrIndex != _local1.m_currSlideIndex) {
if (_local1.m_quizPlaybackController) {
_local1.m_quizPlaybackController.onSlideChanged(_local1.m_currSlideIndex);
}
}
}
function setCurrTrans(index) {
var _local1 = this;
if (_local1.m_currTransIndex != index) {
if (_local1.m_currTrans != null) {
_local1.m_currTrans.endPlay();
}
}
_local1.m_currTransIndex = index;
if (_local1.m_slideTrans_array.length >= (_local1.m_currTransIndex + 1)) {
_local1.m_currTrans = _local1.m_slideTrans_array[_local1.m_currTransIndex];
} else {
_local1.m_currTrans = null;
}
if (_local1.m_slideTrans_array.length >= (_local1.m_currTransIndex + 2)) {
_local1.m_nextTrans = _local1.m_slideTrans_array[_local1.m_currTransIndex + 1];
} else {
_local1.m_nextTrans = null;
}
}
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_state = stateWait;
return(undefined);
}
}
if (m_currTrans) {
doPlayTrans();
if (m_currFrame >= m_currTrans.m_endOnFrame) {
setCurrTrans(m_currTransIndex + 1);
doPlayTrans();
}
}
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_stopOnFrame) {
}
if (m_currFrame == m_currSlide.m_hideOnFrame) {
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)) {
ok = true;
} else {
gotoSlide(i);
return(undefined);
}
}
i++;
}
if (!ok) {
m_movie_mc.rdcmndPause = 1;
return(undefined);
}
}
m_currSlide.m_rdSlide_mc.hideSlide();
setCurrSlide(newSlide);
doPlay();
return(undefined);
}
}
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);
}
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;
}
}
function movieonEnterFrame() {
var _local1 = this;
_local1.m_soundHandler.SyncSounds();
if (_local1.m_movie_mc.isWaiting()) {
} else {
_local1.checkPreviewCommands();
_local1.m_keyHandler.DoCheckAllKeys();
if (_local1.m_paused) {
_local1.debState();
} else {
switch (_local1.m_state) {
case stateStart :
_local1.m_currSlideIndex = -1;
_local1.m_currTransIndex = -1;
_local1.setCurrSlide(0);
_local1.setCurrTrans(0);
_local1.m_movie_mc.rdcmndGotoFrame = -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);
_local1.m_soundHandler.DoDeleteAllSounds();
_local1.playerResumeMovie();
break;
case 2 :
_local1.m_movie_mc.rdcmndExit = 1;
}
}
switch (_local1.m_state) {
case stateSlide :
_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)) {
_local1.m_quizPlaybackController.onScrubChanged();
}
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";
break;
case stateTrans :
_local1 = _local1 + " stateTrans";
break;
case stateSlide :
_local1 = _local1 + " stateSlide";
break;
case stateWait :
_local1 = _local1 + " stateWait";
break;
case stateDone :
_local1 = _local1 + " stateDone";
}
if (_local2.m_currSlide) {
if (_local2.m_currSlide.m_rdSlide_mc) {
_local1 = _local1 + (" slide frame=" + _local2.m_currSlide.m_rdSlide_mc.getCurrentFrame());
_local1 = _local1 + (" slide start frame=" + _local2.m_currSlide.m_playOnFrame);
} else {
_local1 = _local1 + "no mc";
}
} else {
_local1 = _local1 + "no m_currSlide";
}
if (_local2.m_paused) {
_local1 = _local1 + " paused ";
}
}
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() {
var _local1 = this;
if (_local1.m_currTrans) {
if ((_local1.m_currFrame >= _local1.m_currTrans.m_startOnFrame) && (_local1.m_currFrame <= _local1.m_currTrans.m_endOnFrame)) {
if ((_local1.m_currTrans.m_nextSlide != null) && (_local1.m_currTrans.m_nextSlide.m_rdSlide_mc == null)) {
_local1.m_state = stateWait;
} else {
_local1.m_currTrans.playTransiton(_local1.m_currFrame - _local1.m_currTrans.m_startOnFrame);
}
}
}
}
function addSlideTransition(index, slideTrans) {
var _local1 = index;
var _local2 = this;
slideTrans.m_index = _local1;
_local2.m_slideTrans_array[_local1] = slideTrans;
if (_local1 > 0) {
_local2.m_slideTrans_array[_local1].m_prevSlide = _local2.m_slideData_array[_local1 - 1];
}
}
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));
_local2.m_slideData_array[_local1].m_rdSlide_mc = _local3;
_local3.m_frameCount = _local2.m_slideData_array[_local1].m_frameCount;
_local3.m_index = _local1;
_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];
}
function slideCompleted(slide) {
}
function prevSlide() {
var _local1 = this;
_local1.gotoSlide(_local1.m_currSlideIndex - 1);
_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);
}
_local1.m_soundHandler.ResetSounds(true);
}
function previousSlide() {
var _local1 = this;
_local1.gotoSlide(_local1.GetPlayingSlideIndex() - 1);
_local1.m_soundHandler.ResetSounds(true);
}
function gotoSlide(index) {
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);
if (errStr == "") {
_local1.m_quizPlaybackController._gotoSlide(_local3, true);
_local1.gotoFrame(_local1.m_slideData_array[_local2].m_playOnFrame + 1, true);
} else {
return;
}
} else {
_local1.gotoFrame(_local1.m_slideData_array[_local2].m_playOnFrame + 1, true);
}
_local1.playerResumeMovie();
}
function rewindMovie() {
}
function doResumeMovie() {
var _local1 = this;
_local1.m_paused = false;
_local1.syncSubMovieClips(_local1.m_currFrame, true);
_local1.m_pacemaker.start(_local1.m_fps, _local1.m_currFrame)();
_local1.m_movie_mc.rdcmndPause = 0;
_local1.m_soundHandler.ResumeAllSounds();
if (_local1.m_quizPlaybackController) {
_local1.m_quizPlaybackController.onPlayStateChanged();
}
}
function doPauseMovie() {
var _local1 = this;
_local1.m_paused = true;
_local1.syncSubMovieClips(_local1.m_currFrame, false);
if (_local1.m_quizPlaybackController) {
_local1.m_quizPlaybackController.onPlayStateChanged();
}
}
function pauseMovie() {
doPauseMovie();
}
function playerPauseMovie() {
var _local1 = this;
if (_local1.m_currSlide) {
if (_local1.m_currSlide.m_rdSlide_mc) {
_local1.m_currSlide.m_rdSlide_mc.playerPauseSlide();
}
}
if (_local1.m_nextSlide) {
if (_local1.m_nextSlide.m_rdSlide_mc) {
_local1.m_nextSlide.m_rdSlide_mc.playerPauseSlide();
}
}
_local1.m_soundHandler.PauseAllSounds();
_local1.doPauseMovie();
}
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();
}
}
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;
if (_local1.m_movie_mc.rdcmndPrevious == 1) {
_local1.m_movie_mc.rdcmndPrevious = 0;
_local1.prevSlide();
}
if (_local1.m_movie_mc.rdcmndNextSlide == 1) {
_local1.m_movie_mc.rdcmndNextSlide = 0;
_local1.nextSlide();
}
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;
_local1.playerResumeMovie();
}
if (_local1.m_movie_mc.rdcmndRewindAndStop == 1) {
_local1.m_movie_mc.rdcmndRewindAndStop = 0;
_local1.gotoFrame(1, false);
_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;
_local1.gotoFrame(1, true);
_local1.playerResumeMovie();
_local1.m_soundHandler.ResetSounds(false);
}
if (_local1.m_movie_mc.rdcmndGotoFrame >= 0) {
var _local2 = _local1.m_movie_mc.rdcmndGotoFrame;
_local1.m_movie_mc.rdcmndGotoFrame = -1;
_local1.gotoFrame(_local2, false);
_local1.m_movie_mc.rdinfocurrFrame = _local1.m_currFrame;
_local1.playerPauseMovie();
_local1.m_soundHandler.DeleteNonBackgroundSound();
}
if (_local1.m_movie_mc.rdcmndGotoFrameAndResume >= 0) {
var _local2 = _local1.m_movie_mc.rdcmndGotoFrameAndResume;
_local1.m_movie_mc.rdcmndGotoFrameAndResume = -1;
_local1.gotoFrame(_local2, true);
_local1.m_movie_mc.rdinfocurrFrame = _local1.m_currFrame;
}
if (_local1.m_movie_mc.rdcmndExit == 1) {
_local1.m_movie_mc.rdcmndExit = 0;
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();
}
}
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 (_local2.m_currTrans) {
if ((_local2.m_currFrame >= _local2.m_currTrans.m_startOnFrame) && (_local2.m_currFrame <= _local2.m_currTrans.m_endOnFrame)) {
_local3 = false;
}
}
if (_local3) {
_local1.m_rdSlide_mc._alpha = 100;
}
} 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 gotoFrame(frame, playSlide) {
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;
}
} else {
_local1.doGotoFrame(frame, playSlide);
}
}
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_hideOnFrame)) {
return(_local1);
}
_local1++;
}
return(-1);
}
function doGotoFrame(frame, playSlide) {
var _local1 = this;
if (frame < 1) {
frame = 1;
}
if (frame > _local1.m_movie_mc.rdinfoFrameCount) {
frame = _local1.m_movie_mc.rdinfoFrameCount;
}
_local1.m_state = stateSlide;
if (_local1.m_currFrame == frame) {
} else {
var _local2;
var n;
_local1.m_currFrame = frame;
_local1.m_movie_mc.rdinfocurrFrame = _local1.m_currFrame;
_local2 = 0;
while (_local2 < _local1.m_slideTrans_array.length) {
var _local3 = _local1.m_slideTrans_array[_local2];
if (_local1.m_currFrame <= _local3.m_endOnFrame) {
_local1.setCurrTrans(_local2);
break;
}
_local2++;
}
_local2 = _local1.getSlideIndexFromFrame(frame);
if (_local2 != _local1.m_currSlideIndex) {
_local1.setCurrSlide(_local2);
}
if (_local2 >= 0) {
_local1.showHidePlayGoto(_local1.m_currSlide, playSlide);
_local1.showHidePlayGoto(_local1.m_nextSlide, playSlide);
}
if (_local1.m_paused && (playSlide)) {
_local1.playerResumeMovie();
} else if ((!_local1.m_paused) && (!playSlide)) {
_local1.playerPauseMovie();
}
_local1.syncSubMovieClips(frame, playSlide);
_local1.doPlay();
if (_local1.m_quizPlaybackController) {
_local1.m_quizPlaybackController.onScrubChanged();
}
}
}
function syncSubMovieClips(nFrame, doPlay) {
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);
}
}
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);
}
}
} 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);
}
}
}
}
function ReplayFrame() {
doGotoFrame(m_currFrame - 1, true);
}
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++;
}
}
}
var m_movie_mc = null;
var m_paused = false;
var m_loop = false;
var m_clickHandler_mc = null;
var m_keyHandler = null;
var m_soundHandler = null;
var m_quizPlaybackController = null;
var m_currSlide = null;
var m_nextSlide = null;
var m_currSlideIndex = 0;
var m_currTransIndex = 0;
var m_currTrans = null;
var m_nextTrans = null;
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;
}
Symbol 35 MovieClip Frame 0
class 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;
if (typeof(_local1._parent.playbar_mc) == "movieclip") {
if (_local1._parent.playbar_mc.hitTest(_local1._parent._xmouse, _local1._parent._ymouse, true)) {
return(true);
}
}
if (typeof(_local1._parent.info_mc) == "movieclip") {
if (_local1._parent.info_mc.hitTest(_local1._parent._xmouse, _local1._parent._ymouse, true)) {
return(true);
}
}
return(false);
}
function CheckSpriteClick(x1, y1, x2, y2, bSound) {
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 37 MovieClip Frame 0
class 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) {
var _local1 = Key.isDown(nKey);
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() {
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 (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) {
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].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].Submit(false);
_local1.nLastSubmitTime = _local3;
}
return;
}
_local2++;
}
}
}
}
}
var arr_Sprite = new Array();
var nLastSubmitTime = 0;
}
Symbol 39 MovieClip Frame 0
class rdSoundHandler
{
var SoundObjArr;
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.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();
}
function DoAddSound(Name, StartFrame, StopFrame, FadeIn, FadeOut, Loop, Lower, IsBkGround) {
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;
}
function DoDeleteSound(nIndex) {
var _local1 = this;
var _local2 = nIndex;
if (typeof(_local1.SoundObjArr[_local2]) == "object") {
_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++;
}
_local1 = 0;
while (_local1 < _local2.NameArr.length) {
var this_sound = _local2.SoundObjArr[_local1];
if ((_local3 >= _local2.StartArr[_local1]) && (_local3 < _local2.StopArr[_local1])) {
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(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 _local2 = this;
var _local3 = nIndex;
var _local1;
if (typeof(_local2.SoundObjArr[_local3]) == "object") {
_local1 = _local2.SoundObjArr[_local3];
} else {
var strMcName = (("sound" + _local3) + "_mc");
var new_mc = _local2.rdMovie_obj.m_movie_mc.createEmptyMovieClip(strMcName, _local2.m_newMovieDepth);
_local2.m_newMovieDepth++;
_local1 = new Sound(new_mc);
_local1._mc = new_mc;
_local1.strName = _local2.NameArr[_local3];
_local1.attachSound(_local1.strName);
_local2.SoundObjArr[_local3] = _local1;
}
if (_local2.LoopArr[_local3] > 1) {
nOffset = ((nOffset * 1000) % _local1.duration) / 1000;
}
if (_local2.BackgroundArr[_local3] == 1) {
nOffset = 0;
}
_local1.start(nOffset, 1);
_local2.nNumberCurrentlyPlaying++;
return(_local1);
}
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) {
var _local2 = this;
var _local1 = _local2.itmNameArr.length;
_local2.itmNameArr[_local1] = Name;
_local2.itmStartArr[_local1] = startFrame;
_local2.itmStopArr[_local1] = stopFrame;
_local2.itmFadeInArr[_local1] = FadeIn;
_local2.itmFadeOutArr[_local1] = FadeOut;
_local2.itmLoopArr[_local1] = Loop;
_local2.itmLowerArr[_local1] = Lower;
_local2.itmFrameCounterArr[_local1] = -1;
}
function StartItemSound(nIndex, nOffset) {
var _local2 = this;
var _local3 = nIndex;
if (_local2.rdMovie_obj.m_state == rdMovie.stateDone) {
return(null);
}
var _local1;
if (typeof(_local2.itmSoundObjArr[_local3]) == "object") {
_local1 = _local2.itmSoundObjArr[_local3];
if (_local2.itmFrameCounterArr[_local3] > -1) {
_local1.stop(_local1.strName);
}
} else {
var strMcName = (("item_sound" + _local3) + "_mc");
var new_mc = _local2.rdMovie_obj.m_movie_mc.createEmptyMovieClip(strMcName, _local2.m_newMovieDepth);
_local2.m_newMovieDepth++;
_local1 = new Sound(new_mc);
_local1._mc = new_mc;
_local1.strName = _local2.itmNameArr[_local3];
_local1.attachSound(_local1.strName);
_local2.itmSoundObjArr[_local3] = _local1;
}
_local2.itmFrameCounterArr[_local3] = nOffset;
_local1.start(nOffset, 1);
if (_local2.itmStartArr[_local3] < _local2.itmFadeInArr[_local3]) {
_local1.setVolume(25);
}
return(_local1);
}
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(nVolume);
} else {
_local2.DoDeleteItemSound(_local1);
}
}
_local1++;
}
}
}
function DoDeleteItemSound(nIndex) {
var _local1 = nIndex;
var _local2 = this;
_local2.itmFrameCounterArr[_local1] = -1;
if (typeof(_local2.itmSoundObjArr[_local1]) == "object") {
_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++;
}
}
}
Symbol 41 MovieClip Frame 0
class rdSlideTransition
{
var m_frameCount;
function rdSlideTransition (overlap, outFrameCount, inFrameCount, startOnFrame) {
var _local1 = this;
var _local2 = outFrameCount;
var _local3 = inFrameCount;
if ((_local2 <= 0) || (_local3 <= 0)) {
overlap = 0;
}
if (overlap) {
_local1.m_overlap = true;
if (_local2 > _local3) {
_local1.m_frameCount = _local2;
} else {
_local1.m_frameCount = _local3;
}
} else {
_local1.m_overlap = false;
_local1.m_frameCount = _local3 + _local2;
}
_local1.m_outFrameCount = _local2;
_local1.m_inFrameCount = _local3;
_local1.m_startOnFrame = startOnFrame;
_local1.m_endOnFrame = startOnFrame + _local1.m_frameCount;
}
function endPlay() {
var _local1 = this;
if (_local1.m_customTranstiton_mc && (_local1.m_prepared)) {
_local1.m_customTranstiton_mc.endPlay();
_local1.m_prepared = false;
}
}
function callCustomTransition() {
var _local1 = this;
if (_local1.m_customTranstiton_mc) {
if (!_local1.m_initializedCustomTransition) {
if ((_local1.m_nextSlide != null) && (_local1.m_nextSlide.m_rdSlide_mc == null)) {
return(undefined);
}
_local1.m_customTranstiton_mc.Initialize(_local1.m_prevSlide.m_rdSlide_mc, _local1.m_nextSlide.m_rdSlide_mc, _local1.m_overlap, _local1.m_frameCount);
_local1.m_initializedCustomTransition = true;
}
if (!_local1.m_prepared) {
_local1.m_prepared = true;
_local1.m_customTranstiton_mc.beginPlay();
}
_local1.m_customTranstiton_mc.playTransiton(_local1.m_currentFrame + 1);
return(true);
}
return(false);
return(undefined);
}
function playTransiton(currentFrame) {
var _local1 = this;
var _local3 = currentFrame;
if (_local1.m_frameCount <= 0) {
} else {
_local1.m_currentFrame = _local3;
if (_local1.callCustomTransition()) {
} else if (_local1.m_overlap) {
var _local2 = (100 * _local3) / _local1.m_frameCount;
if (_local3 == 1) {
_local2 = 0;
}
if (_local3 >= _local1.m_frameCount) {
_local2 = 100;
}
var alphaPrev = 100;
if (_local1.m_prevSlide) {
_local1.m_prevSlide.m_rdSlide_mc._alpha = alphaPrev;
}
if (_local1.m_nextSlide) {
_local1.m_nextSlide.m_rdSlide_mc._alpha = _local2;
}
return;
}
}
}
function getFrameCount() {
return(m_frameCount);
}
var m_prevSlide = null;
var m_nextSlide = null;
var m_currentFrame = 0;
var m_customTranstiton_mc = null;
var m_initializedCustomTransition = null;
var m_prepared = false;
}
Symbol 43 MovieClip Frame 0
class rdCustomTransiton extends MovieClip
{
var m_nextrdSlide, m_previousrdSlide;
function rdCustomTransiton () {
super();
}
function getMovieWidth() {
var _local1 = m_nextrdSlide;
if (_local1 == null) {
_local1 = m_previousrdSlide;
}
if (_local1 == null) {
return(0);
}
return(_local1.m_movie.m_width);
}
function getMovieHeight() {
var _local1 = m_nextrdSlide;
if (_local1 == null) {
_local1 = m_previousrdSlide;
}
if (_local1 == null) {
return(0);
}
return(_local1.m_movie.m_height);
}
function Initialize(previousrdSlide, nextrdSlide, overlap, frameCount) {
var _local2 = nextrdSlide;
var _local3 = this;
_local3.m_previousrdSlide = previousrdSlide;
_local3.m_nextrdSlide = _local2;
_local3.m_overlap = overlap;
_local3.m_frameCount = frameCount;
_root.deba("Init" + _local3.m_nextrdSlide._name);
var _local1 = "rdCustomTransition:Initialize previousrdSlide=";
if (previousrdSlide) {
_local1 = _local1 + previousrdSlide._name;
} else {
_local1 = _local1 + "null";
}
_local1 = _local1 + " nextrdSlide=";
if (_local2) {
_local1 = _local1 + _local2._name;
_local1 = _local1 + (" width=" + _local2._width);
_local1 = _local1 + (" height=" + _local2._height);
} else {
_local1 = _local1 + "null";
}
_local1 = _local1 + (" overlap=" + overlap);
_local1 = _local1 + (" frameCount=" + frameCount);
}
function playTransiton(currentFrame) {
_root.deba("transition not implemented");
}
function beginPlay() {
_root.deba("beginPlay");
}
function endPlay() {
_root.deba("endPlay");
}
}
Symbol 45 MovieClip Frame 0
class 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 47 MovieClip Frame 0
class rdItem extends rdBase
{
var _parent;
function rdItem () {
super();
}
function setSlide(slide) {
m_slide = slide;
}
function onLoad() {
var _local1 = this;
_local1._parent.itemLoaded(_local1);
var _local2 = true;
if (_local1.isStatic) {
if (_local1._parent.m_index > _local1.parentSlideIndex) {
_local2 = false;
}
}
if ((_local1.inEnd == 1) && (_local1.m_mustBeReady)) {
_local2 = false;
}
if (_local2) {
_local1._visible = false;
} else {
_local1.SetVisible(true);
}
}
function getParentCurrFrame() {
return(_parent._currentframe);
}
function SetVisible(setVisible) {
var _local1 = this;
_local1._visible = setVisible;
if (setVisible && (_local1.m_soundIdx > -1)) {
_local1.m_slide.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0);
}
}
function onEnterFrame() {
var _local1 = this;
if (!_local1._parent._visible) {
if (_local1.m_doOnceInvisible && (_local1.m_mustBeReady)) {
_local1.m_doOnceInvisible = false;
// unexpected jump
}
} else {
if (!_local1.initialized) {
_local1.Initialize();
_local1.initialized = true;
}
if (_local1.isStatic) {
var _local2 = true;
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;
}
return;
}
} 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._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;
}
}
}
}
}
var inEffect = null;
var outEffect = null;
var initialized = false;
var m_slide = null;
var m_mustBeReady = true;
}
Symbol 49 MovieClip Frame 0
class rdSwf extends rdItem
{
var stop;
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 _local2 = _local1.m_swf_mc.getIFlashPaper().setSize(_local1.m_swfwidth, _local1.m_swfheight);
if (_local2) {
_local1.m_init_swf_mc = true;
}
}
}
}
}
if (_local1.m_sync) {
var _local3 = (_local1.getParentCurrFrame() - _local1.nEnterFrame) + 2;
_local1.doSync(_local3, 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.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) {
if (_local1.m_playThis) {
_local1.play();
}
_local1.m_swf_mc.play();
} else {
if (_local1.m_playThis) {
_local1.stop();
}
_local1.m_swf_mc.stop();
}
}
}
function gotoFrame(frame, doPlay) {
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() {
var _local1 = this;
if (_local1.m_isGlobal) {
return(_local1._parent.movie.m_currFrame);
}
return(_local1._parent._currentframe);
}
var m_isPlaying = false;
var m_init_swf_mc = false;
var m_passedFirstFrame = false;
}
Symbol 51 MovieClip Frame 0
class rdProgressbar extends MovieClip
{
var _parent;
function rdProgressbar () {
super();
}
function onRelease() {
_parent.m_bMouseDown = false;
}
function onReleaseOutside() {
_parent.m_bMouseDown = false;
}
function onPress() {
_parent.m_bMouseDown = true;
}
}
Symbol 53 MovieClip Frame 0
class rdRollover extends rdBase
{
var _visible;
function rdRollover () {
super();
}
function setSlide(slide) {
m_slide = slide;
}
function onLoad() {
var _local1 = this;
_local1._visible = false;
_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) {
_local1.m_slide.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;
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;
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 55 MovieClip Frame 0
class rdFeedback extends rdBase
{
var currFrame, outEnd;
function rdFeedback () {
super();
}
function SetPendingResume(mc) {
m_pendingResume = mc;
}
function showFeedback() {
var _local1 = this;
_local1.currFrame = 0;
if (_local1.m_soundIdx > -1) {
_local1.m_movie.m_soundHandler.StartItemSound(_local1.m_soundIdx, 0);
}
}
function hideFeedback() {
currFrame = outEnd + 10;
}
function setMovie(movie) {
m_movie = movie;
}
function onLoad() {
var _local1 = this;
_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_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 57 MovieClip Frame 0
class rdInteraction extends 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_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_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_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_slide.m_movie.m_keyHandler.SpriteUnloaded(_local1);
}
}
}
function SetVisible(setVisible) {
super.SetVisible(setVisible);
if (setVisible) {
}
m_done = false;
}
function onEnterFrame() {
var _local1 = this;
if (_local1._visible) {
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;
}
}
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.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 59 MovieClip Frame 0
class rdButton extends 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.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");
}
}
var m_isDown = false;
}
Symbol 61 MovieClip Frame 0
class rdPlaybar extends MovieClip
{
var _parent;
function rdPlaybar () {
super();
}
function onLoad() {
var _local1 = this;
_local1.tabChildren = true;
_local1.tabEnabled = false;
if (_local1._parent.isWaiting()) {
_local1._visible = false;
}
}
function onEnterFrame() {
var _local1 = this;
if (_local1._parent.isWaiting()) {
_local1._visible = false;
} else {
if ((!_local1._parent.rdcmndHidePlaybar) && (!_local1._visible)) {
_local1._visible = true;
} else if (_local1._parent.rdcmndHidePlaybar && (_local1._visible)) {
_local1._visible = false;
}
if (_local1.m_movie == undefined) {
_local1.m_movie = _local1._parent.movie;
}
_local1.UpdatePosition();
_local1.CheckTracking();
}
}
function UpdatePosition() {
var _local1 = this;
var _local2 = (_local1.m_movie.m_currFrame * _local1.m_progressBarLength) / _local1._parent.rdinfoFrameCount;
_local1.progressbar_mc.thumb_mc._x = _local2;
_local1.deb++;
_local1.tip_mc._x = _local2;
}
function GetFrameTipString() {
var _local2 = _parent.rdinfoCurrentSlide + 1;
var _local1 = _parent.rdinfoSlideCount;
return((_local2 + "/") + _local1);
}
function CheckTracking() {
var _local1 = this;
if (_local1.m_bMouseDown) {
_local1.tip_mc.tiptext = _local1.GetFrameTipString();
if (!_local1.tip_mc.bPlaced) {
_local1.tip_mc.bPlaced = true;
if (_local1.m_bTipOnTop) {
_local1.tip_mc._y = (-_local1.tip_mc._height) - 2;
} else {
_local1.tip_mc._y = _local1.progressbar_mc.thumb_mc._height + 2;
}
}
if (!_local1.tip_mc._visible) {
_local1.tip_mc._visible = true;
_local1.tip_mc._alpha = 255;
}
var _local2 = _local1._xmouse;
_local2 = _local2 - (_local1.progressbar_mc.thumb_mc._width / 2);
if (_local2 < 0) {
_local2 = 0;
}
if (_local2 > _local1.m_progressBarLength) {
_local2 = _local1.m_progressBarLength;
}
_local1._parent.rdcmndGotoFrame = Math.round(((_local1._parent.rdinfoFrameCount * _local2) / _local1.m_progressBarLength) + 1);
} else if (_local1.tip_mc._visible) {
_local1.tip_mc._visible = false;
}
}
var m_movie = null;
var deb = 0;
}
Symbol 63 MovieClip Frame 0
class rdSwfSlide extends 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 65 MovieClip Frame 0
class rdRolloverArea extends rdItem
{
function rdRolloverArea () {
super();
}
function onRollOut() {
m_rolloverItem.hideRollover();
}
function onRollOver() {
m_rolloverItem.showRollover();
}
var m_rolloverItem = null;
}
Symbol 67 MovieClip Frame 0
class rdTextEntry extends rdInteraction
{
var _target, strInputFocus, _parent;
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 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++;
}
}
}
var deb = 0;
}
Symbol 70 MovieClip [3d8aab5_0] Frame 1
#initclip 48
Object.registerClass("3d8aab5_0", rdClickHandler);
#endinitclip
Symbol 75 MovieClip [3d8aab5_1] Frame 1
#initclip 49
Object.registerClass("3d8aab5_1", rdSlide);
#endinitclip
var m_projectSlideIndex = 0;
Symbol 75 MovieClip [3d8aab5_1] Frame 61
stop();
Symbol 80 Button
on (release) {
_parent.rdcmndRewindAndPlay = 1;
}
Symbol 85 Button
on (release) {
_parent.rdcmndPrevious = 1;
}
Symbol 90 Button
on (release) {
_parent.rdcmndResume = 1;
}
Symbol 95 Button
on (release) {
_parent.rdcmndPause = 1;
}
Symbol 100 Button
on (release) {
_parent.rdcmndNextSlide = 1;
}
Symbol 105 Button
on (release) {
_parent.rdcmndInfo = 1;
}
Symbol 111 MovieClip [3d8aab5_19] Frame 1
#initclip 50
Object.registerClass("3d8aab5_19", rdPlaybar);
#endinitclip
pbc_Rembobiner2.tabEnabled = true;
pbc_Rembobiner2._accProps = new Object();
pbc_Rembobiner2._accProps.name = "Rembobiner ";
pbc_Retour3.tabEnabled = true;
pbc_Retour3._accProps = new Object();
pbc_Retour3._accProps.name = "Retour ";
pbc_Lecture4.tabEnabled = true;
pbc_Lecture4._accProps = new Object();
pbc_Lecture4._accProps.name = "Lecture ";
pbc_Pause5.tabEnabled = true;
pbc_Pause5._accProps = new Object();
pbc_Pause5._accProps.name = "Pause ";
pbc_Avancer6.tabEnabled = true;
pbc_Avancer6._accProps = new Object();
pbc_Avancer6._accProps.name = "Avancer ";
pbc_Informations8.tabEnabled = true;
pbc_Informations8._accProps = new Object();
pbc_Informations8._accProps.name = "Informations ";
var m_progressBarLength = 0;
var m_bTipOnTop = true;
Symbol 121 Button
on (release) {
if (website != "") {
var url = website;
if (url.indexOf("://", 0) == -1) {
url = "http://" + website;
}
if (website != "") {
getURL (url, "_blank");
}
}
}
Symbol 122 Button
on (release) {
if (email != "") {
getURL ("mailto:" + email, "_blank");
}
}
Symbol 123 Button
on (release) {
getURL ("http://www.macromedia.com/software/captivate", "_blank");
}
Symbol 125 Button
on (release) {
gotoAndStop (1);
}
Symbol 128 MovieClip Frame 1
function playInfo() {
gotoAndPlay (2);
}
author = "";
company = "";
stop();
var author = "";
var company = "";
var email = "";
var website = "";
var copyright = "";
_accProps = new Object();
_accProps.name = "Informations Macromedia Captivate Movie Created by Macromedia Captivate Movie.";
Accessibility.updateProperties();
Symbol 128 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 128 MovieClip Frame 3
stop();
Symbol 132 MovieClip [3d8aab5_2] Frame 1
#initclip 51
Object.registerClass("3d8aab5_2", rdSlide);
#endinitclip
var m_projectSlideIndex = 1;
Symbol 132 MovieClip [3d8aab5_2] Frame 61
stop();
Symbol 136 MovieClip [3d8aab5_3] Frame 1
#initclip 52
Object.registerClass("3d8aab5_3", rdSlide);
#endinitclip
var m_projectSlideIndex = 2;
Symbol 136 MovieClip [3d8aab5_3] Frame 61
stop();
Symbol 140 MovieClip [3d8aab5_4] Frame 1
#initclip 53
Object.registerClass("3d8aab5_4", rdSlide);
#endinitclip
var m_projectSlideIndex = 3;
Symbol 140 MovieClip [3d8aab5_4] Frame 61
stop();
Symbol 144 MovieClip [3d8aab5_5] Frame 1
#initclip 54
Object.registerClass("3d8aab5_5", rdSlide);
#endinitclip
var m_projectSlideIndex = 4;
Symbol 144 MovieClip [3d8aab5_5] Frame 61
stop();
Symbol 148 MovieClip [3d8aab5_6] Frame 1
#initclip 55
Object.registerClass("3d8aab5_6", rdSlide);
#endinitclip
var m_projectSlideIndex = 5;
Symbol 148 MovieClip [3d8aab5_6] Frame 61
stop();
Symbol 152 MovieClip [3d8aab5_7] Frame 1
#initclip 56
Object.registerClass("3d8aab5_7", rdSlide);
#endinitclip
var m_projectSlideIndex = 6;
Symbol 152 MovieClip [3d8aab5_7] Frame 61
stop();
Symbol 156 MovieClip [3d8aab5_8] Frame 1
#initclip 57
Object.registerClass("3d8aab5_8", rdSlide);
#endinitclip
var m_projectSlideIndex = 7;
Symbol 156 MovieClip [3d8aab5_8] Frame 61
stop();
Symbol 160 MovieClip [3d8aab5_9] Frame 1
#initclip 58
Object.registerClass("3d8aab5_9", rdSlide);
#endinitclip
var m_projectSlideIndex = 8;
Symbol 160 MovieClip [3d8aab5_9] Frame 61
stop();
Symbol 164 MovieClip [3d8aab5_10] Frame 1
#initclip 59
Object.registerClass("3d8aab5_10", rdSlide);
#endinitclip
var m_projectSlideIndex = 9;
Symbol 164 MovieClip [3d8aab5_10] Frame 61
stop();
Symbol 168 MovieClip [3d8aab5_11] Frame 1
#initclip 60
Object.registerClass("3d8aab5_11", rdSlide);
#endinitclip
var m_projectSlideIndex = 10;
Symbol 168 MovieClip [3d8aab5_11] Frame 61
stop();
Symbol 172 MovieClip [3d8aab5_12] Frame 1
#initclip 61
Object.registerClass("3d8aab5_12", rdSlide);
#endinitclip
var m_projectSlideIndex = 11;
Symbol 172 MovieClip [3d8aab5_12] Frame 61
stop();
Symbol 176 MovieClip [3d8aab5_13] Frame 1
#initclip 62
Object.registerClass("3d8aab5_13", rdSlide);
#endinitclip
var m_projectSlideIndex = 12;
Symbol 176 MovieClip [3d8aab5_13] Frame 61
stop();
Symbol 180 MovieClip [3d8aab5_14] Frame 1
#initclip 63
Object.registerClass("3d8aab5_14", rdSlide);
#endinitclip
var m_projectSlideIndex = 13;
Symbol 180 MovieClip [3d8aab5_14] Frame 61
stop();
Symbol 184 MovieClip [3d8aab5_15] Frame 1
#initclip 64
Object.registerClass("3d8aab5_15", rdSlide);
#endinitclip
var m_projectSlideIndex = 14;
Symbol 184 MovieClip [3d8aab5_15] Frame 61
stop();
Symbol 188 MovieClip [3d8aab5_16] Frame 1
#initclip 65
Object.registerClass("3d8aab5_16", rdSlide);
#endinitclip
var m_projectSlideIndex = 15;
Symbol 188 MovieClip [3d8aab5_16] Frame 61
stop();
Symbol 192 MovieClip [3d8aab5_17] Frame 1
#initclip 66
Object.registerClass("3d8aab5_17", rdSlide);
#endinitclip
var m_projectSlideIndex = 16;
Symbol 192 MovieClip [3d8aab5_17] Frame 61
stop();
Symbol 196 MovieClip [3d8aab5_18] Frame 1
#initclip 67
Object.registerClass("3d8aab5_18", rdSlide);
#endinitclip
var m_projectSlideIndex = 17;
Symbol 196 MovieClip [3d8aab5_18] Frame 61
stop();
Symbol 25 MovieClip Frame 1
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 rdMovie(this);
var pacemaker = new rdPacemaker(movie);
movie.SetPacemaker(pacemaker);
movie.setSize(720, 540);
movie.SetFps(30);
movie.m_fps = 30;
function toberemoved() {
}
var index = 0;
var slideTransition = new rdSlideTransition(0, 0, 0, 0);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(0, 0, 60, 60, 60);
movie.addSlide(index, slideData);
var index = 1;
var slideTransition = new rdSlideTransition(0, 0, 0, 60);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(60, 60, 120, 120, 60);
movie.addSlide(index, slideData);
var index = 2;
var slideTransition = new rdSlideTransition(0, 0, 0, 120);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(120, 120, 180, 180, 60);
movie.addSlide(index, slideData);
var index = 3;
var slideTransition = new rdSlideTransition(0, 0, 0, 180);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(180, 180, 240, 240, 60);
movie.addSlide(index, slideData);
var index = 4;
var slideTransition = new rdSlideTransition(0, 0, 0, 240);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(240, 240, 300, 300, 60);
movie.addSlide(index, slideData);
var index = 5;
var slideTransition = new rdSlideTransition(0, 0, 0, 300);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(300, 300, 360, 360, 60);
movie.addSlide(index, slideData);
var index = 6;
var slideTransition = new rdSlideTransition(0, 0, 0, 360);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(360, 360, 420, 420, 60);
movie.addSlide(index, slideData);
var index = 7;
var slideTransition = new rdSlideTransition(0, 0, 0, 420);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(420, 420, 480, 480, 60);
movie.addSlide(index, slideData);
var index = 8;
var slideTransition = new rdSlideTransition(0, 0, 0, 480);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(480, 480, 540, 540, 60);
movie.addSlide(index, slideData);
var index = 9;
var slideTransition = new rdSlideTransition(0, 0, 0, 540);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(540, 540, 600, 600, 60);
movie.addSlide(index, slideData);
var index = 10;
var slideTransition = new rdSlideTransition(0, 0, 0, 600);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(600, 600, 660, 660, 60);
movie.addSlide(index, slideData);
var index = 11;
var slideTransition = new rdSlideTransition(0, 0, 0, 660);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(660, 660, 720, 720, 60);
movie.addSlide(index, slideData);
var index = 12;
var slideTransition = new rdSlideTransition(0, 0, 0, 720);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(720, 720, 780, 780, 60);
movie.addSlide(index, slideData);
var index = 13;
var slideTransition = new rdSlideTransition(0, 0, 0, 780);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(780, 780, 840, 840, 60);
movie.addSlide(index, slideData);
var index = 14;
var slideTransition = new rdSlideTransition(0, 0, 0, 840);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(840, 840, 900, 900, 60);
movie.addSlide(index, slideData);
var index = 15;
var slideTransition = new rdSlideTransition(0, 0, 0, 900);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(900, 900, 960, 960, 60);
movie.addSlide(index, slideData);
var index = 16;
var slideTransition = new rdSlideTransition(0, 0, 0, 960);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(960, 960, 1020, 1020, 60);
movie.addSlide(index, slideData);
var index = 17;
var slideTransition = new rdSlideTransition(0, 0, 0, 1020);
movie.addSlideTransition(index, slideTransition);
var slideData = new rdSlideData(1020, 1020, 1080, 1082, 60);
movie.addSlide(index, slideData);
var index = 18;
var slideTransition = new rdSlideTransition(0, 0, 0, 0);
movie.addSlideTransition(index, slideTransition);
var endSwfAction = 0;
movie.m_soundHandler.DoAddSound("sel18C3", 1, 1081, 1, 1081, 1, 0, 1);
_accProps = new Object();
_accProps.name = "Macromedia Captivate Movie ";
Accessibility.updateProperties();
var rdinfoFrameCount = 1080;
var rdinfoFrameCount = 1080;
var rdinfoSlidesInProject = 18;
var rdinfoFPS = 30;
var rdinfocurrFrame = 1;
var rdinfoCurrentFrame = 1;
var rdinfoCurrentSlide = 1;
var rdinfoCurrentSlideInProject = 1;
var rdinfoSlideCount = 18;
var rdIsMainMovie = 1;
var rdIsPreview = 0;
var rdcmndGotoFrame = -1;
var rdcmndResume = 0;
var rdcmndPause = 0;
var rdcmndPrevious = 0;
var rdcmndNext = 0;
var _quality = "best";
var CaptivateVersion = "1.0.0";
function isWaiting() {
if (waitCount) {
return(true);
}
return(false);
}
function incrementWait() {
if (waitCount) {
waitCount++;
} else {
waitCount = 1;
}
}
function decrementWait() {
if (waitCount) {
waitCount--;
}
}
function setExpired() {
expired = true;
}
function isExpired() {
if (expired == true) {
return(true);
}
return(false);
}
Symbol 25 MovieClip Frame 66
stop();
stop();
Symbol 197 MovieClip [6999728_1] Frame 1
#initclip 68
Object.registerClass("6999728_1", rdSwf);
#endinitclip
var nTotalFrames = 66;
var nEnterFrame = 1;
var nExitFrame = 1111;
var m_playThis = 0;
var m_loop = false;
var m_sync = false;
var nPlayMovieClipFromFrame = 0;
var nPlayMovieClipToFrame = 66;
var m_isGlobal = false;
var m_swfwidth = 720;
stop();
var m_swfheight = 540;
var m_mustBeReady = true;
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 = 1126;
var outEnd = 1141;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 0;
var m_soundIdx = -1;
Symbol 24 MovieClip [6999728_2] Frame 1
#initclip 69
Object.registerClass("6999728_2", rdSlide);
#endinitclip
var m_projectSlideIndex = 0;
var m_Sub_mc_array = new Array("s0_i0_swf_mc");
Symbol 24 MovieClip [6999728_2] Frame 1141
stop();
Symbol 201 MovieClip [6999728_3] Frame 1
#initclip 70
Object.registerClass("6999728_3", 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 = 0;
var m_outEffectFrames = 0;
var inBegin = 1;
var inEnd = 1;
var outBegin = 121;
var outEnd = 121;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 1;
var m_soundIdx = -1;
Symbol 204 MovieClip Frame 1
var textlen = "26";
Set("0/letter:text", "E");
Symbol 204 MovieClip Frame 2
Set("2/letter:text", "n");
var 2.line = 1;
Symbol 204 MovieClip Frame 3
Set("4/letter:text", "j");
var 4.line = 2;
Symbol 204 MovieClip Frame 4
Set("6/letter:text", "o");
var 6.line = 3;
Symbol 204 MovieClip Frame 5
Set("8/letter:text", "y");
var 8.line = 4;
Symbol 204 MovieClip Frame 6
Set("11/letter:text", "y");
var 11.line = 6;
Symbol 204 MovieClip Frame 7
Set("13/letter:text", "o");
var 13.line = 7;
Symbol 204 MovieClip Frame 8
Set("15/letter:text", "u");
var 15.line = 8;
Symbol 204 MovieClip Frame 9
Set("17/letter:text", "r");
var 17.line = 9;
Symbol 204 MovieClip Frame 10
Set("19/letter:text", "s");
var 19.line = 10;
Symbol 204 MovieClip Frame 11
Set("21/letter:text", "e");
var 21.line = 11;
Symbol 204 MovieClip Frame 12
Set("23/letter:text", "l");
var 23.line = 12;
Symbol 204 MovieClip Frame 13
Set("25/letter:text", "f");
var 25.line = 13;
Symbol 204 MovieClip Frame 45
stop();
Symbol 204 MovieClip Frame 46
stop();
Symbol 211 MovieClip [6999728_4] Frame 1
#initclip 71
Object.registerClass("6999728_4", rdSwf);
#endinitclip
var nTotalFrames = 46;
var nEnterFrame = 1;
var nExitFrame = 121;
var m_playThis = 0;
var m_loop = false;
var m_sync = false;
var nPlayMovieClipFromFrame = 0;
var nPlayMovieClipToFrame = 46;
var m_isGlobal = false;
var m_swfwidth = 28;
stop();
var m_swfheight = 462;
var m_mustBeReady = 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 = 121;
var outEnd = 121;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 1;
var m_soundIdx = -1;
Symbol 213 MovieClip Frame 1
var textlen = "24";
Set("0/letter:text", "C");
Symbol 213 MovieClip Frame 2
Set("2/letter:text", "u");
var 2.line = 1;
Symbol 213 MovieClip Frame 3
Set("4/letter:text", "m");
var 4.line = 2;
Symbol 213 MovieClip Frame 4
Set("7/letter:text", "o");
var 7.line = 4;
Symbol 213 MovieClip Frame 5
Set("9/letter:text", "n");
var 9.line = 5;
Symbol 213 MovieClip Frame 6
Set("12/letter:text", "m");
var 12.line = 7;
Symbol 213 MovieClip Frame 7
Set("14/letter:text", "y");
var 14.line = 8;
Symbol 213 MovieClip Frame 8
Set("17/letter:text", "f");
var 17.line = 10;
Symbol 213 MovieClip Frame 9
Set("19/letter:text", "a");
var 19.line = 11;
Symbol 213 MovieClip Frame 10
Set("21/letter:text", "c");
var 21.line = 12;
Symbol 213 MovieClip Frame 11
Set("23/letter:text", "e");
var 23.line = 13;
Symbol 213 MovieClip Frame 43
stop();
Symbol 213 MovieClip Frame 44
stop();
Symbol 220 MovieClip [6999728_5] Frame 1
#initclip 72
Object.registerClass("6999728_5", rdSwf);
#endinitclip
var nTotalFrames = 44;
var nEnterFrame = 1;
var nExitFrame = 121;
var m_playThis = 0;
var m_loop = false;
var m_sync = false;
var nPlayMovieClipFromFrame = 0;
var nPlayMovieClipToFrame = 44;
var m_isGlobal = false;
var m_swfwidth = 30;
stop();
var m_swfheight = 462;
var m_mustBeReady = 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 = 121;
var outEnd = 121;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 1;
var m_soundIdx = -1;
Symbol 222 MovieClip [6999728_6] Frame 1
#initclip 73
Object.registerClass("6999728_6", 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 = 0;
var m_outEffectFrames = 0;
var inBegin = 1;
var inEnd = 1;
var outBegin = 121;
var outEnd = 121;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 1;
var m_soundIdx = -1;
Symbol 225 MovieClip [6999728_7] Frame 1
#initclip 74
Object.registerClass("6999728_7", rdRolloverArea);
#endinitclip
var m_rolloverItem = _parent.s1_i5ro_image_mc;
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 = 121;
var outEnd = 121;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 1;
var m_soundIdx = -1;
Symbol 229 MovieClip [6999728_8] Frame 1
#initclip 75
Object.registerClass("6999728_8", rdRollover);
#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 = 6;
var m_outEffectFrames = 12;
var inBegin = 1;
var inEnd = 7;
var outBegin = 79;
var outEnd = 91;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 1;
var m_soundIdx = 0;
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 3
stop();
Symbol 233 MovieClip [6999728_9] Frame 1
#initclip 76
Object.registerClass("6999728_9", rdButton);
#endinitclip
var useHandCursor = 0;
var _focusrect = 0;
var tabEnabled = 0;
var registerOnFrame = 1;
var m_submitOnFrame = 119;
var m_useClickhandler = true;
var bDoubleClick = false;
var nDoubleClickTime = 500;
var m_done = false;
var m_attempts = 0;
var m_resumeAfterFeedback = true;
function succeeded(slide) {
slide.nextSlide();
}
var m_continueAftersucceeded = false;
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 = 15;
var m_outEffectFrames = 15;
var inBegin = 1;
var inEnd = 16;
var outBegin = 106;
var outEnd = 121;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 1;
var m_soundIdx = -1;
_accProps = new Object();
_accProps.name = "Click Box ";
Accessibility.updateProperties();
Symbol 233 MovieClip [6999728_9] Frame 6
stop();
Symbol 233 MovieClip [6999728_9] Frame 11
stop();
Symbol 233 MovieClip [6999728_9] Frame 16
stop();
Symbol 241 MovieClip Frame 13
stop();
Symbol 247 MovieClip Frame 1
x = random("2");
y = random("2");
ymove = random("10");
xmove = random("10");
if (x == "1") {
xmove = xmove * (-"1");
}
if (y == "1") {
ymove = ymove * (-"1");
}
setProperty("stern", _x , getProperty("stern", _x) + xmove);
setProperty("stern", _y , getProperty("stern", _y) + ymove);
if (letter:text eq " ") {
setProperty("stern", _visible , "0");
}
setProperty("letter", _visible , "0");
Symbol 247 MovieClip Frame 10
setProperty("letter", _visible , "1");
Symbol 247 MovieClip Frame 15
stop();
Symbol 238 MovieClip Frame 1
var textlen = "1";
Set("0/letter:text", ".");
Symbol 238 MovieClip Frame 16
stop();
Symbol 238 MovieClip Frame 17
stop();
Symbol 248 MovieClip [6999728_10] Frame 1
#initclip 77
Object.registerClass("6999728_10", rdSwf);
#endinitclip
var nTotalFrames = 17;
var nEnterFrame = 61;
var nExitFrame = 121;
var m_playThis = 0;
var m_loop = false;
var m_sync = false;
var nPlayMovieClipFromFrame = 0;
var nPlayMovieClipToFrame = 17;
var m_isGlobal = false;
var m_swfwidth = 17;
stop();
var m_swfheight = 36;
var m_mustBeReady = 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 = 61;
var inEnd = 61;
var outBegin = 121;
var outEnd = 121;
var m_alpha = 100;
var isStatic = false;
var parentSlideIndex = 1;
var m_soundIdx = -1;
Symbol 199 MovieClip [6999728_11] Frame 1
#initclip 78
Object.registerClass("6999728_11", rdSlide);
#endinitclip
var m_projectSlideIndex = 1;
var m_Sub_mc_array = new Array("s1_i1_ta_mc", "s1_i2_ta_mc", "s1_i8_ta_mc");
Symbol 199 MovieClip [6999728_11] Frame 121
stop();
Symbol 250 MovieClip [6999728_12] Frame 1
#initclip 79
Object.registerClass("6999728_12", rdSlide);
#endinitclip
var m_projectSlideIndex = 2;
Symbol 250 MovieClip [6999728_12] Frame 31
stop();