Frame 1
function getFlashPlayerInfo() {
var ver = System.capabilities.version.split(" ", 2);
var pl = ver[0];
var version = ver[1].split(",", 4);
var info = new Object();
info.platform = ver[0];
info.majorVersion = parseInt(version[0]);
info.minorVersion = parseInt(version[1]);
info.revision = parseInt(version[2]);
info.build = parseInt(version[3]);
return(info);
}
function showFlashVersionWarning(mc, w, h, logo, url) {
mc.beginFill(16777215);
mc.moveTo(0, 0);
mc.lineTo(w, 0);
mc.lineTo(w, h);
mc.lineTo(0, h);
mc.endFill();
var logo = mc.attachMovie(logo, "logo", 9999);
logo._x = (w - logo._width) * 0.5;
logo._y = (h - logo._height) * 0.5;
logo.onRelease = function () {
getURL(url, "_blank");
};
mc.createTextField("tf", 10000, (w - 174) * 0.5, (logo._y + logo._height) + 10, 174, 80);
var tf = mc.tf;
var fmt = new TextFormat();
fmt.font = "Verdana";
fmt.size = 12;
fmt.align = "center";
tf.multiline = true;
tf.selectable = false;
tf.html = true;
tf.wordWrap = true;
tf.htmlText = ("This presentation requires <b>Flash Player 8 or higher</b> to be installed. <br><br><font color=\"#0000ff\"><u><a href=\"" + url) + "\" target=\"_blank\">Click here to install</a></u>";
tf.setTextFormat(fmt);
}
this._highquality = 2;
if (this.allowedDomain != undefined) {
System.security.allowDomain("*", allowedDomain);
} else {
System.security.allowDomain("*");
}
if (getFlashPlayerInfo().majorVersion < 8) {
showFlashVersionWarning(this, 720, 576, "versionWarningAsset", "http://www.adobe.com/go/getflashplayer");
stop();
} else if (g_initialization == undefined) {
g_initialization = true;
g_preloaderMovie = this.sprPreloader;
g_preloaderMovie.startPreloader(this);
gotoAndPlay(2);
}
Frame 2
if (g_initialization) {
g_playerCore = this.attachMovie("coreAsset", "playerCoreMC", this.getNextHighestDepth());
this.getPlayerResourceLoader = function () {
return(g_playerCore);
};
gotoAndPlay(3);
}
Frame 3
function getDomainName(url) {
var startPos = (url.indexOf("//") + 2);
if (startPos != 1) {
var endPos = url.indexOf("/", startPos);
if (endPos == (-1)) {
endPos = url.length;
}
return(url.substr(startPos, endPos - startPos));
}
return(undefined);
}
function domainsAreSimilar(domain1, domain2) {
if (domain1 and domain2) {
domain1 = domain1.toLowerCase();
domain2 = domain2.toLowerCase();
if (domain1 == domain2) {
return(true);
}
var l1 = domain1.length;
var l2 = domain2.length;
if (l1 < l2) {
return(("." + domain1) == domain2.substr((l2 - l1) - 1, l1 + 1));
}
if (l2 < l1) {
return(("." + domain2) == domain1.substr((l1 - l2) - 1, l2 + 1));
}
return(false);
}
return(false);
}
function checkDomains(domainList) {
var arr = domainList.split(";");
var thisDomain = getDomainName(this._url);
for (var i in arr) {
var domain = arr[i];
if ((domain != "") and domainsAreSimilar(thisDomain, domain)) {
return(true);
}
}
return(false);
}
if (g_initialization) {
var restrictedDomain = "";
if ((restrictedDomain == "") or checkDomains(restrictedDomain)) {
var s = "";
s = s + "<?xml version=\"1.0\"?>\r\n<presentation title=\"\" width=\"720.0000000\" height=\"540.0000000\" thmbWidth=\"100.0000000\" thmbHeight=\"75.0000000\" frameRate=\"24.0000000\" looping=\"0\">\n<presenters/>\n<references/>\n<soundAssets>\n<soundAsset id=\"sndAsset0\" src=\"spr123_1350312\" embedded=\"1\"/>\n</soundAssets>\n<backgroundSound soundAssetId=\"\" looping=\"0\"/>\n<settings>\n<navigation>\n<keyboard enabled=\"1\"/>\n<mouse enabled=\"1\" target=\"step\"/>\n</navigation>\n<skin/>\n<colorScheme>\n<primaryColor>0.5686482;0.5208360;-0.0894842;0.0000000;0.0000000;0.1655884;0.6967325;0.1376791;0.0000000;0.0000000;0.3927516;0.2936727;0.3135757;0.0000000;0.0000000;0.0000000;0.0000000;0.0000000;1.0000000;0.0000000;</primaryColor>\n</colorScheme>\n<appearance fullScreen=\"0\"/>\n<playback autoStart=\"1\"/>\n</settings>\n<slides embedded=\"1\">\n<slide index=\"0\" title=\"\" titleNormalized=\"\" src=\"spr0_1350312\" autoChange=\"1\" thumbnailSrc=\"spr124_1350312\" framesCount=\"4273\" hasEmbeddedFlashClip=\"0\" hidden=\"0\" level=\"0\" presenterIndex=\"\">\n<sounds>\n<sound id=\"sound0\" soundAssetId=\"sndAsset0\"/>\n</sounds>\n<transitionEffect name=\"\" duration=\"0.0000000\" soundId=\"\" looped=\"0\"/>\n<soundCommands>\n<playSound frameIndex=\"0\" soundId=\"sound0\" slides=\"1\" repeat=\"1\"/>\n</soundCommands>\n<animationSteps>\n<step start=\"0\" end=\"4272\" playTime=\"178.0000000\" pauseTime=\"0.0000000\"/>\n</animationSteps>\n<backgroundSound soundId=\"\"/>\n<notes/>\n<notesNormalized/>\n<presenterVideo src=\"\"/>\n</slide>\n</slides>\n</presentation>\r\n";
g_playerCore.createEmbeddedPlayer("skinAsset", s, this);
}
g_preloaderMovie.setPlayerCore(g_playerCore.getPlayer(), g_playerCore);
}
g_initialization = false;
Frame 4
getPlayerResourceLoader().thumbnailIsAvailable(0);
getPlayerResourceLoader().slideIsAvailable(0);
this.stop();
stop();
Symbol 68 MovieClip [__Packages.cpslabs.ui.CComponent] Frame 0
class cpslabs.ui.CComponent
{
var m_parent, m_mc, m_componentBroadcaster, m_tooltip, m_tooltipParams;
function CComponent (parent, name, depth) {
if (parent) {
m_parent = parent;
if (depth == undefined) {
depth = parent.getNextHighestDepth();
}
m_mc = parent.createEmptyMovieClip(((name != undefined) ? (name) : ("m" + depth)), depth);
m_mc.tabEnabled = false;
}
m_componentBroadcaster = new cpslabs.utils.CMessageBroadcaster();
}
function setMovieClip(mc) {
m_mc = mc;
m_parent = mc._parent;
}
function get parent() {
return(m_parent);
}
function set id(componentId) {
m_id = componentId;
//return(id);
}
function get id() {
return(m_id);
}
function addListener(eventName, l, fn) {
m_componentBroadcaster.addListener(eventName, l, fn);
}
function removeListener(eventName, l, fn) {
return(m_componentBroadcaster.removeListener(eventName, l, fn));
}
function get movieClip() {
return(m_mc);
}
function set visible(v) {
if (movieClip._visible != v) {
movieClip._visible = v;
if (v) {
onShow();
} else {
onHide();
}
}
//return(visible);
}
function get visible() {
return(movieClip._visible);
}
function set enabled(e) {
if (m_enabled != e) {
m_enabled = e;
if (e) {
onEnable();
} else {
onDisable();
}
}
//return(enabled);
}
function get enabled() {
return(m_enabled);
}
function get width() {
return(getWidth());
}
function get height() {
return(getHeight());
}
function set width(w) {
var _local2 = new Object();
_local2.width = w;
_local2.height = height;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
w = _local2.width;
var _local3 = _local2.height;
if ((w != width) || (_local3 != height)) {
resize(w, _local3);
onResize(w, _local3);
broadcastMessage("resize", this, w, _local3);
}
//return(width);
}
function set height(h) {
var _local2 = new Object();
var _local5 = width;
var _local6 = height;
_local2.width = _local5;
_local2.height = h;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
var _local4 = _local2.width;
h = _local2.height;
if ((_local4 != _local5) || (h != _local6)) {
resize(_local4, h);
onResize(_local4, h);
broadcastMessage("resize", this, _local4, h);
}
//return(height);
}
function get x() {
return(movieClip._x);
}
function get y() {
return(movieClip._y);
}
function set x(x0) {
movieClip._x = x0;
onMove(x0, y);
//return(x);
}
function set y(y0) {
movieClip._y = y0;
onMove(x, y0);
//return(y);
}
function get alpha() {
return(movieClip._alpha);
}
function set alpha(a) {
movieClip._alpha = a;
//return(alpha);
}
function get autoUpdate() {
return(m_autoUpdate);
}
function set autoUpdate(enableAutoUpdate) {
m_autoUpdate = enableAutoUpdate;
if (enableAutoUpdate && (m_needUpdate)) {
update();
m_needUpdate = false;
}
//return(autoUpdate);
}
function remove() {
m_mc.removeMovieClip();
delete m_mc;
}
function getWidth() {
return(movieClip._width);
}
function getHeight() {
return(movieClip._height);
}
function onEnable() {
}
function onDisable() {
}
function onShow() {
}
function onHide() {
}
function onMove(newX, newY) {
}
function broadcastMessage(eventName) {
m_componentBroadcaster.broadcastMessage.apply(m_componentBroadcaster, arguments);
}
function invalidate() {
m_needUpdate = true;
if (m_autoUpdate) {
update();
m_needUpdate = false;
}
}
function update() {
}
function onResizing(newSize) {
}
function resize(w, h) {
var _local2 = movieClip;
_local2._width = w;
_local2._height = h;
}
function onResize(w, h) {
}
function initMouseEvents(mc, listener, handleMouseMove) {
if (!mc) {
mc = movieClip;
}
if (listener == undefined) {
listener = this;
}
var thisPtr = this;
mc.onRollOver = function () {
listener.onRollOver(thisPtr);
};
mc.onRollOut = function () {
listener.onRollOut(thisPtr);
};
mc.onPress = function () {
listener.onPress(thisPtr);
};
mc.onRelease = function () {
listener.onRelease(thisPtr);
};
mc.onReleaseOutside = function () {
listener.onReleaseOutside(thisPtr);
};
mc.onDragOver = function () {
listener.onDragOver(thisPtr);
};
mc.onDragOut = function () {
listener.onDragOut(thisPtr);
};
if (handleMouseMove) {
mc.onMouseMove = function () {
listener.onMouseMove(thisPtr);
};
}
}
function removeMouseEvents(mc) {
if (!mc) {
mc = movieClip;
}
delete mc.onRelease;
delete mc.onReleaseOutside;
delete mc.onPress;
delete mc.onRollOver;
delete mc.onRollOut;
delete mc.onDragOver;
delete mc.onDragOut;
delete mc.onMouseMove;
}
function init() {
}
function addTooltip(tooltip, tooltipParams) {
tooltipParams = (tooltipParams ? (tooltipParams) : (new Object()));
m_tooltip = tooltip;
m_tooltipParams = tooltipParams;
var rollOverHandler = movieClip.onRollOver;
var rollOutHandler = movieClip.onRollOut;
var pressHandler = movieClip.onPress;
var _local3 = this;
movieClip.onRollOver = function () {
for (var _local1 in tooltipParams) {
tooltip[_local1] = tooltipParams[_local1];
}
tooltip.show();
if (rollOverHandler) {
rollOverHandler();
}
};
movieClip.onRollOut = function () {
tooltip.hide();
if (rollOutHandler) {
rollOutHandler();
}
};
movieClip.onPress = function () {
tooltip.hide();
if (pressHandler) {
pressHandler();
}
};
}
function get tooltip() {
return(m_tooltip);
}
function get tooltipParams() {
return(m_tooltipParams);
}
var m_enabled = true;
var m_id = "";
var m_needUpdate = false;
var m_autoUpdate = true;
}
Symbol 69 MovieClip [__Packages.cpslabs.utils.CMessageBroadcaster] Frame 0
class cpslabs.utils.CMessageBroadcaster
{
var m_events, m_id;
function CMessageBroadcaster () {
m_events = new Object();
}
function get id() {
return(m_id);
}
function set id(objectId) {
m_id = objectId;
//return(id);
}
function addListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
_local2 = new Array();
m_events[eventName] = _local2;
}
var _local3 = new Object();
_local3.handler = handler;
_local3.listener = listener;
_local2.push(_local3);
}
function removeListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
return(false);
}
if (listener == undefined) {
delete m_events[eventName];
return(true);
}
if (handler == undefined) {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if (_local4.listener == listener) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
} else {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if ((_local4.listener == listener) && (_local4.handler == handler)) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
}
return(false);
}
function broadcastMessage(eventName) {
var _local5 = m_events[eventName];
if (_local5 && (_local5.length > 0)) {
var _local6 = _local5.length;
arguments.shift();
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = _local5[_local3];
_local4.handler.apply(_local4.listener, arguments);
_local3++;
}
}
}
}
Symbol 70 MovieClip [__Packages.cpslabs.ITooltip] Frame 0
interface cpslabs.ITooltip
{
}
Symbol 71 MovieClip [__Packages.cpslabs.ui.CMovieClip] Frame 0
class cpslabs.ui.CMovieClip extends cpslabs.ui.CComponent
{
var m_source, m_content, invalidate, __get__movieClip;
function CMovieClip (parent, name, depth) {
super(parent, name, depth);
}
function set source(src) {
if (m_source != src) {
if (m_content) {
m_content.removeMovieClip();
delete m_content;
}
m_source = src;
attachMovie(src);
invalidate();
}
//return(source);
}
function get source() {
return(m_source);
}
function get content() {
return(m_content);
}
function createEmptyMovieClip(name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().createEmptyMovieClip(((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function attachMovie(assetName, name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().attachMovie(assetName, ((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function resize(w, h) {
var _local2 = __get__movieClip();
if (m_content) {
_local2 = m_content;
}
_local2._width = w;
_local2._height = h;
}
function getWidth() {
return((m_content ? (m_content._width) : (__get__movieClip()._width)));
}
function getHeight() {
return((m_content ? (m_content._height) : (__get__movieClip()._height)));
}
}
Symbol 72 MovieClip [__Packages.fsplayer.api.IPlayerListener] Frame 0
interface fsplayer.api.IPlayerListener
{
}
Symbol 73 MovieClip [__Packages.fsplayer.api.IPlayer] Frame 0
interface fsplayer.api.IPlayer
{
}
Symbol 74 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackController] Frame 0
interface fsplayer.api.IPresentationPlaybackController
{
}
Symbol 75 MovieClip [__Packages.fsplayer.api.IPlaybackListener] Frame 0
interface fsplayer.api.IPlaybackListener
{
}
Symbol 76 MovieClip [__Packages.fsplayer.api.ISoundController] Frame 0
interface fsplayer.api.ISoundController
{
}
Symbol 77 MovieClip [__Packages.fsplayer.api.ISoundListener] Frame 0
interface fsplayer.api.ISoundListener
{
}
Symbol 78 MovieClip [__Packages.fsplayer.api.IPresentationInfo] Frame 0
interface fsplayer.api.IPresentationInfo
{
}
Symbol 79 MovieClip [__Packages.fsplayer.api.ISlidesCollection] Frame 0
interface fsplayer.api.ISlidesCollection
{
}
Symbol 80 MovieClip [__Packages.fsplayer.api.ISlideInfo] Frame 0
interface fsplayer.api.ISlideInfo
{
}
Symbol 81 MovieClip [__Packages.fsplayer.api.IAnimationSteps] Frame 0
interface fsplayer.api.IAnimationSteps
{
}
Symbol 82 MovieClip [__Packages.fsplayer.api.IAnimationStep] Frame 0
interface fsplayer.api.IAnimationStep
{
}
Symbol 83 MovieClip [__Packages.fsplayer.api.ISlideResources] Frame 0
interface fsplayer.api.ISlideResources
{
}
Symbol 84 MovieClip [__Packages.fsplayer.api.IPresenterVideo] Frame 0
interface fsplayer.api.IPresenterVideo
{
}
Symbol 85 MovieClip [__Packages.fsplayer.api.IThumbnailsCollection] Frame 0
interface fsplayer.api.IThumbnailsCollection
{
}
Symbol 86 MovieClip [__Packages.fsplayer.api.ISlideThumbnail] Frame 0
interface fsplayer.api.ISlideThumbnail
{
}
Symbol 87 MovieClip [__Packages.fsplayer.api.ISlideThumbnailLoadingListener] Frame 0
interface fsplayer.api.ISlideThumbnailLoadingListener
{
}
Symbol 88 MovieClip [__Packages.fsplayer.api.IPresenterInfo] Frame 0
interface fsplayer.api.IPresenterInfo
{
}
Symbol 89 MovieClip [__Packages.fsplayer.api.IPresenterPhoto] Frame 0
interface fsplayer.api.IPresenterPhoto
{
}
Symbol 90 MovieClip [__Packages.fsplayer.api.IPresenterPhotoLoadingListener] Frame 0
interface fsplayer.api.IPresenterPhotoLoadingListener
{
}
Symbol 91 MovieClip [__Packages.fsplayer.api.ICompanyInfo] Frame 0
interface fsplayer.api.ICompanyInfo
{
}
Symbol 92 MovieClip [__Packages.fsplayer.api.ICompanyLogo] Frame 0
interface fsplayer.api.ICompanyLogo
{
}
Symbol 93 MovieClip [__Packages.fsplayer.api.ICompanyLogoLoadingListener] Frame 0
interface fsplayer.api.ICompanyLogoLoadingListener
{
}
Symbol 94 MovieClip [__Packages.fsplayer.api.IReferencesCollection] Frame 0
interface fsplayer.api.IReferencesCollection
{
}
Symbol 95 MovieClip [__Packages.fsplayer.api.IReferenceInfo] Frame 0
interface fsplayer.api.IReferenceInfo
{
}
Symbol 96 MovieClip [__Packages.fsplayer.api.IPresentersCollection] Frame 0
interface fsplayer.api.IPresentersCollection
{
}
Symbol 97 MovieClip [__Packages.fsplayer.ui.skins.ISkin] Frame 0
interface fsplayer.ui.skins.ISkin
{
}
Symbol 98 MovieClip [__Packages.fsplayer.ui.skins.ISlideShowWindow] Frame 0
interface fsplayer.ui.skins.ISlideShowWindow
{
}
Symbol 99 MovieClip [__Packages.fsplayer.ui.skins.ISkinListener] Frame 0
interface fsplayer.ui.skins.ISkinListener
{
}
Symbol 100 MovieClip [__Packages.com.flashspring.preloaders.COnlinePreloader] Frame 0
class com.flashspring.preloaders.COnlinePreloader extends cpslabs.ui.CMovieClip implements fsplayer.api.IPlayerListener, fsplayer.api.IPlaybackListener
{
var m_petals, m_shadows, m_petalBases, m_indicators, m_colorIndicators, m_masks, m_mc, __get__movieClip, __set__visible, m_interval, m_skinBase, m_player, m_playbackController, broadcastMessage;
function COnlinePreloader (parent, name, depth) {
super(parent, name, depth);
m_petals = new Array();
m_shadows = new Array();
m_petalBases = new Array();
m_indicators = new Array();
m_colorIndicators = new Array();
m_masks = new Array();
var _local3 = 0;
while (_local3 < INDICATORS_COUNT) {
var _local4;
var _local5 = m_mc.createEmptyMovieClip("petal" + String(_local3), m_mc.getNextHighestDepth());
_local5._alpha = 0;
_local5.blendMode = "layer";
m_petals.push(_local5);
_local4 = m_petals[_local3];
_local5 = _local4.attachMovie("pshadow" + String(_local3), "pshadow" + String(_local3), _local4.getNextHighestDepth());
_local5._alpha = 25;
m_shadows.push(_local5);
_local4 = m_petals[_local3];
_local5 = _local4.createEmptyMovieClip("petal_base" + String(_local3), _local4.getNextHighestDepth());
_local5.blendMode = "layer";
m_petalBases.push(_local5);
_local4 = m_petalBases[_local3];
_local5 = _local4.attachMovie("bwpart" + String(_local3), "bwpart" + String(_local3), _local4.getNextHighestDepth());
m_indicators.push(_local5);
_local4 = m_petalBases[_local3];
_local5 = _local4.attachMovie("cpart" + String(_local3), "cpart" + String(_local3), _local4.getNextHighestDepth());
_local5._alpha = 0;
m_colorIndicators.push(_local5);
m_masks[_local3] = new Array();
var _local6 = 0;
while (_local6 < MASKS_COUNT) {
_local4 = m_petalBases[_local3];
var _local7 = _local4.attachMovie("pmask" + String(_local6), "pmask" + String(_local6), _local4.getNextHighestDepth());
_local7._alpha = 0;
m_masks[_local3].push(_local7);
_local6++;
}
_local3++;
}
__get__movieClip().onEnterFrame = function () {
this._x = (Stage.width - com.flashspring.preloaders.COnlinePreloader.MC_WIDTH) / 2;
this._y = (Stage.height - com.flashspring.preloaders.COnlinePreloader.MC_HEIGHT) / 2;
};
__set__visible(false);
}
function start(mc) {
stop();
__set__visible(true);
__get__movieClip()._alpha = 0;
var _local2 = this;
m_oldProgress = 0;
m_loadingStartTime = getTimer();
m_oldTick = m_loadingStartTime;
m_interval = setInterval(this, "update", 40, mc);
}
function setPlayerCore(player, skinBase) {
player.addListener(this);
m_skinBase = skinBase;
m_skinBase._visible = false;
if (player.isInitialized()) {
onPlayerInit(player);
}
}
function onPlayerInit(player) {
player.removeListener(this);
m_player = player;
m_playbackController = player.getPlaybackController();
m_playbackController.addListener(this);
}
function onPausePlayback() {
}
function onStartPlayback() {
}
function onAnimationStepChanged(stepIndex) {
}
function onSlidePositionChanged(position) {
}
function onCurrentSlideIndexChanged(slideIndex) {
}
function onSlideLoadingComplete(slideIndex) {
m_playbackController.removeListener(this);
stop();
m_skinBase._visible = true;
broadcastMessage("stop", this);
}
function onPresentationPlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function update(mc) {
var _local3 = (getTimer() - m_loadingStartTime) * 0.001;
if (_local3 > SHOW_DELAY) {
if (__get__movieClip()._alpha < 100) {
__get__movieClip()._alpha = Math.min(100, 100 * ((_local3 - SHOW_DELAY) / SHOW_TIME));
}
}
var _local2 = ((mc.getBytesTotal() > 0) ? (mc.getBytesLoaded() / mc.getBytesTotal()) : 0);
if ((_local2 - m_oldProgress) > 0.01) {
drawMask(_local2);
m_oldProgress = _local2;
updateAfterEvent();
}
updateIndicator();
}
function stop() {
if (m_interval != undefined) {
clearInterval(m_interval);
m_interval = undefined;
}
}
function updateIndicator() {
var _local6 = getTimer();
var _local5 = (_local6 - m_oldTick) * 0.001;
if (_local5 == 0) {
return(undefined);
}
m_oldTick = _local6;
m_phase = m_phase + _local5;
if (m_phase >= INDICATOR_PERIOD) {
m_phase = m_phase - INDICATOR_PERIOD;
}
var _local4 = Math.min(100, Math.max(1, (100 * _local5) / FADE_OUT_SPEED));
var _local2 = 0;
while (_local2 < INDICATORS_COUNT) {
var _local3 = m_petals[_local2];
_local3._alpha = Math.max(0, _local3._alpha - _local4);
_local2++;
}
var _local7 = int((m_phase * INDICATORS_COUNT) / INDICATOR_PERIOD);
m_petals[_local7]._alpha = BWPART_MAX_ALPHA;
}
function drawMask(progress) {
var _local2 = 0;
while (_local2 < INDICATORS_COUNT) {
var _local3 = m_colorIndicators[_local2];
_local3._alpha = 100;
_local3.setMask(m_masks[_local2][Number(Math.floor(progress * 10))]);
_local2++;
}
}
var INDICATORS_COUNT = 7;
var MASKS_COUNT = 10;
static var BWPART_MAX_ALPHA = 100;
static var INDICATOR_PERIOD = 0.7;
static var FADE_OUT_SPEED = 0.7;
static var SHOW_DELAY = 0.5;
static var SHOW_TIME = 0.5;
static var MC_WIDTH = 75;
static var MC_HEIGHT = 50;
var m_oldProgress = 0;
var m_phase = 0;
var m_oldTick = 0;
var m_loadingStartTime = 0;
}
Symbol 1 MovieClip [sprPreloader] Frame 1
this._lockroot = true;
function startPreloader(mc) {
preloader.start(mc);
}
function setPlayerCore(pc, skinBase) {
preloader.setPlayerCore(pc, skinBase);
}
function stopPreloader() {
preloader.stop();
}
var preloader = (new com.flashspring.preloaders.COnlinePreloader(this));
Symbol 1 MovieClip [sprPreloader] Frame 2
this._lockroot = false;
Symbol 108 MovieClip [__Packages.fsplayer.api.IPlayer] Frame 0
interface fsplayer.api.IPlayer
{
}
Symbol 109 MovieClip [__Packages.fsplayer.api.IPlayerListener] Frame 0
interface fsplayer.api.IPlayerListener
{
}
Symbol 110 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackController] Frame 0
interface fsplayer.api.IPresentationPlaybackController
{
}
Symbol 111 MovieClip [__Packages.fsplayer.api.IPlaybackListener] Frame 0
interface fsplayer.api.IPlaybackListener
{
}
Symbol 112 MovieClip [__Packages.fsplayer.api.ISoundController] Frame 0
interface fsplayer.api.ISoundController
{
}
Symbol 113 MovieClip [__Packages.fsplayer.api.ISoundListener] Frame 0
interface fsplayer.api.ISoundListener
{
}
Symbol 114 MovieClip [__Packages.fsplayer.api.IPresentationInfo] Frame 0
interface fsplayer.api.IPresentationInfo
{
}
Symbol 115 MovieClip [__Packages.fsplayer.api.ISlidesCollection] Frame 0
interface fsplayer.api.ISlidesCollection
{
}
Symbol 116 MovieClip [__Packages.fsplayer.api.ISlideInfo] Frame 0
interface fsplayer.api.ISlideInfo
{
}
Symbol 117 MovieClip [__Packages.fsplayer.api.IAnimationSteps] Frame 0
interface fsplayer.api.IAnimationSteps
{
}
Symbol 118 MovieClip [__Packages.fsplayer.api.IAnimationStep] Frame 0
interface fsplayer.api.IAnimationStep
{
}
Symbol 119 MovieClip [__Packages.fsplayer.api.ISlideResources] Frame 0
interface fsplayer.api.ISlideResources
{
}
Symbol 120 MovieClip [__Packages.fsplayer.api.IPresenterVideo] Frame 0
interface fsplayer.api.IPresenterVideo
{
}
Symbol 121 MovieClip [__Packages.fsplayer.api.IThumbnailsCollection] Frame 0
interface fsplayer.api.IThumbnailsCollection
{
}
Symbol 122 MovieClip [__Packages.fsplayer.api.ISlideThumbnail] Frame 0
interface fsplayer.api.ISlideThumbnail
{
}
Symbol 123 MovieClip [__Packages.fsplayer.api.ISlideThumbnailLoadingListener] Frame 0
interface fsplayer.api.ISlideThumbnailLoadingListener
{
}
Symbol 124 MovieClip [__Packages.fsplayer.api.IPresenterInfo] Frame 0
interface fsplayer.api.IPresenterInfo
{
}
Symbol 125 MovieClip [__Packages.fsplayer.api.IPresenterPhoto] Frame 0
interface fsplayer.api.IPresenterPhoto
{
}
Symbol 126 MovieClip [__Packages.fsplayer.api.IPresenterPhotoLoadingListener] Frame 0
interface fsplayer.api.IPresenterPhotoLoadingListener
{
}
Symbol 127 MovieClip [__Packages.fsplayer.api.ICompanyInfo] Frame 0
interface fsplayer.api.ICompanyInfo
{
}
Symbol 128 MovieClip [__Packages.fsplayer.api.ICompanyLogo] Frame 0
interface fsplayer.api.ICompanyLogo
{
}
Symbol 129 MovieClip [__Packages.fsplayer.api.ICompanyLogoLoadingListener] Frame 0
interface fsplayer.api.ICompanyLogoLoadingListener
{
}
Symbol 130 MovieClip [__Packages.fsplayer.api.IReferencesCollection] Frame 0
interface fsplayer.api.IReferencesCollection
{
}
Symbol 131 MovieClip [__Packages.fsplayer.api.IReferenceInfo] Frame 0
interface fsplayer.api.IReferenceInfo
{
}
Symbol 132 MovieClip [__Packages.fsplayer.api.IPresentersCollection] Frame 0
interface fsplayer.api.IPresentersCollection
{
}
Symbol 133 MovieClip [__Packages.fsplayer.ui.skins.ISkin] Frame 0
interface fsplayer.ui.skins.ISkin
{
}
Symbol 134 MovieClip [__Packages.fsplayer.ui.skins.ISlideShowWindow] Frame 0
interface fsplayer.ui.skins.ISlideShowWindow
{
}
Symbol 135 MovieClip [__Packages.fsplayer.ui.skins.ISkinListener] Frame 0
interface fsplayer.ui.skins.ISkinListener
{
}
Symbol 136 MovieClip [__Packages.fsplayer.ui.skins.asset.ISkinAssetLoadingListener] Frame 0
interface fsplayer.ui.skins.asset.ISkinAssetLoadingListener
{
}
Symbol 137 MovieClip [__Packages.fsplayer.ui.skins.asset.ISkinAsset] Frame 0
interface fsplayer.ui.skins.asset.ISkinAsset
{
}
Symbol 138 MovieClip [__Packages.fsplayer.core.IPlayerEnvironment] Frame 0
interface fsplayer.core.IPlayerEnvironment
{
}
Symbol 139 MovieClip [__Packages.fsplayer.core.IPlayerCore] Frame 0
interface fsplayer.core.IPlayerCore
{
}
Symbol 140 MovieClip [__Packages.fsplayer.res.video.IVideoClipEx] Frame 0
interface fsplayer.res.video.IVideoClipEx
{
}
Symbol 141 MovieClip [__Packages.fsplayer.res.video.IVideoClipListenerEx] Frame 0
interface fsplayer.res.video.IVideoClipListenerEx
{
}
Symbol 142 MovieClip [__Packages.quizmaker.api.IQuizApi] Frame 0
interface quizmaker.api.IQuizApi
{
}
Symbol 143 MovieClip [__Packages.quizmaker.api.ISlidesCollection] Frame 0
interface quizmaker.api.ISlidesCollection
{
}
Symbol 144 MovieClip [__Packages.quizmaker.api.ISlide] Frame 0
interface quizmaker.api.ISlide
{
}
Symbol 145 MovieClip [__Packages.quizmaker.api.ISettings] Frame 0
interface quizmaker.api.ISettings
{
}
Symbol 146 MovieClip [__Packages.quizmaker.api.IUserInfo] Frame 0
interface quizmaker.api.IUserInfo
{
}
Symbol 147 MovieClip [__Packages.quizmaker.api.IFontManager] Frame 0
interface quizmaker.api.IFontManager
{
}
Symbol 148 MovieClip [__Packages.quizmaker.api.IMessagesManager] Frame 0
interface quizmaker.api.IMessagesManager
{
}
Symbol 149 MovieClip [__Packages.quizmaker.api.IResultsInfo] Frame 0
interface quizmaker.api.IResultsInfo
{
}
Symbol 150 MovieClip [__Packages.quizmaker.api.IResultScore] Frame 0
interface quizmaker.api.IResultScore
{
}
Symbol 151 MovieClip [__Packages.quizmaker.api.ISkin] Frame 0
interface quizmaker.api.ISkin
{
}
Symbol 152 MovieClip [__Packages.quizmaker.api.IQuestion] Frame 0
interface quizmaker.api.IQuestion extends quizmaker.api.ISlide
{
}
Symbol 153 MovieClip [__Packages.quizmaker.api.IImageAssetLoadListener] Frame 0
interface quizmaker.api.IImageAssetLoadListener
{
}
Symbol 154 MovieClip [__Packages.quizmaker.api.IQuizApiListener] Frame 0
interface quizmaker.api.IQuizApiListener
{
}
Symbol 155 MovieClip [__Packages.fsplayer.core.playback.IPlaybackSettings] Frame 0
interface fsplayer.core.playback.IPlaybackSettings
{
}
Symbol 156 MovieClip [__Packages.fsplayer.core.CPlayerImpl] Frame 0
class fsplayer.core.CPlayerImpl implements fsplayer.api.IPlayer, fsplayer.ui.skins.asset.ISkinAssetLoadingListener, fsplayer.core.IPlayerEnvironment, fsplayer.ui.skins.ISkinListener, fsplayer.core.IPlayerCore, fsplayer.core.playback.IPlaybackSettings
{
var m_listeners, m_loadingControllersFactory, m_playerTarget, m_soundAssetsTarget, m_skinAssetTarget, m_presentationInfo, m_playbackController, m_skin, m_presenterVideoWindow, m_presentationNode, m_stepAdvancePause, m_settings, m_presentation;
function CPlayerImpl (loadingControllersFactory, playerTarget) {
m_listeners = new Array();
m_loadingControllersFactory = loadingControllersFactory;
m_playerTarget = playerTarget;
m_soundAssetsTarget = playerTarget.createEmptyMovieClip("soundAssets", playerTarget.getNextHighestDepth());
m_skinAssetTarget = playerTarget.createEmptyMovieClip("skinAsset", playerTarget.getNextHighestDepth());
}
function getPresentationInfo() {
return(m_presentationInfo);
}
function getPlaybackController() {
return(m_playbackController);
}
function getSoundController() {
return(m_playbackController.getSoundPlaybackController());
}
function getPlayerCore() {
return(this);
}
function onSkinAssetLoadInit(skinAsset) {
var _local2 = skinAsset.createInstance("skin");
_local2.setListener(this);
}
function onSkinInit(skin) {
m_skin = skin;
var _local2 = fsplayer.ui.skins.ISkinEx(skin);
if (_local2 && (_local2.hasPresenterVideoWindow())) {
m_presenterVideoWindow = _local2.getPresenterVideoWindow();
}
tryToStartPlayer();
}
function getSoundAssetsTarget() {
return(m_soundAssetsTarget);
}
function getSlideAssetsTarget() {
var _local2 = m_skin.getSlideShowWindow();
return(_local2.getTarget());
}
function loadSkinAsset(source) {
var _local2 = m_loadingControllersFactory.createSkinAssetLoader();
var _local3 = new fsplayer.ui.skins.asset.CSkinAssetImpl(_local2, m_skinAssetTarget, source, this);
}
function gotoSlide(slideIndex) {
m_playbackController.gotoSlide(slideIndex);
}
function gotoLastViewedSlide() {
m_playbackController.gotoLastViewedSlide();
}
function getURL(url, target) {
m_playbackController.getURL(url, target);
}
function endShow() {
fscommand ("quit");
}
function registerVideoClip(videoClip, slideIndex, autoStart, looping) {
m_playbackController.registerVideoClip(videoClip, slideIndex, autoStart, looping);
}
function setPesentationNode(presentationNode) {
m_presentationNode = presentationNode;
var _local2 = getSettings().playback.stepAdvance.pause;
m_stepAdvancePause = parseFloat(_local2);
if (((_local2 == "") || (_local2 == null)) || (_local2 == undefined)) {
m_stepAdvancePause = undefined;
}
tryToStartPlayer();
}
function isReadyForInitialization() {
return((m_presentationNode != undefined) && (m_skin != undefined));
}
function isInitialized() {
return(m_initialized);
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function tryToStartPlayer() {
if (isReadyForInitialization()) {
createPresentation();
createPlaybackController();
initializeSkin();
start((m_settings.playback.autoStart == undefined) || (m_settings.playback.autoStart == "1"));
m_initialized = true;
var _local4 = new Array().concat(m_listeners);
var _local2 = _local4.length - 1;
while (_local2 >= 0) {
var _local3 = _local4[_local2];
_local3.onPlayerInit(this);
_local2--;
}
}
}
function createPresentation() {
var _local2 = new fsplayer.res.CPresentation(m_presentationNode, this, this);
m_presentation = _local2;
m_presentationInfo = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createPresentationInfo(_local2, m_presentationNode, m_loadingControllersFactory);
}
function createPlaybackController() {
var _local2 = m_loadingControllersFactory.createSlideLoadingController(m_presentation);
var _local4 = m_presentation.getSoundAssets();
var _local3 = m_loadingControllersFactory.createPresentationBgSoundAssetLoadingController(_local4);
m_playbackController = new fsplayer.core.playback.presentation.CPlaybackController(m_presentation, _local2, _local3, this);
if (m_presenterVideoWindow) {
var _local5 = m_playbackController.createPresenterVideoController(m_presenterVideoWindow);
m_presenterVideoWindow.initialize(_local5);
}
}
function initializeSkin() {
m_skin.initialize(this);
}
function start(autoStart) {
m_playbackController.gotoFirstSlide(autoStart);
}
function getSettings() {
if (m_settings == undefined) {
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(m_presentationNode, "settings");
m_settings = createObjectFromXMLNode(_local2);
}
return(m_settings);
}
function createObjectFromXMLNode(node) {
var _local4 = new Object();
var _local5 = false;
for (var _local7 in node.attributes) {
_local4[_local7] = node.attributes[_local7];
_local5 = true;
}
if ((!_local5) && (node.childNodes.length == 0)) {
return("");
}
var _local2;
for (var _local6 in node.childNodes) {
_local2 = node.childNodes[_local6];
if (_local2.nodeType == 1) {
_local4[_local2.nodeName] = createObjectFromXMLNode(_local2);
} else if (_local2.nodeType == 3) {
_local4 = _local2.nodeValue;
}
}
return(_local4);
}
function getAutoStepAdvance() {
return(getSettings().playback.stepAdvance.auto == "1");
}
function getStepAdvancePause() {
return(m_stepAdvancePause);
}
function setStepAdvancePause(pause) {
m_stepAdvancePause = pause;
}
function getSkin() {
return(m_skin);
}
function registerQuiz(slideIndex, quiz) {
m_playbackController.registerQuiz(slideIndex, quiz);
}
var m_initialized = false;
}
Symbol 157 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionEffectEnvironment] Frame 0
interface fsplayer.core.playback.transitions.ITransitionEffectEnvironment
{
}
Symbol 158 MovieClip [__Packages.fsplayer.res.IPresentation] Frame 0
interface fsplayer.res.IPresentation extends fsplayer.core.playback.transitions.ITransitionEffectEnvironment
{
}
Symbol 159 MovieClip [__Packages.fsplayer.res.slides.ISlides] Frame 0
interface fsplayer.res.slides.ISlides
{
}
Symbol 160 MovieClip [__Packages.fsplayer.res.slides.ISlide] Frame 0
interface fsplayer.res.slides.ISlide
{
}
Symbol 161 MovieClip [__Packages.fsplayer.core.loading.ISlideLoadingListener] Frame 0
interface fsplayer.core.loading.ISlideLoadingListener
{
}
Symbol 162 MovieClip [__Packages.fsplayer.res.slides.ISlideTransition] Frame 0
interface fsplayer.res.slides.ISlideTransition
{
}
Symbol 163 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundEx
{
}
Symbol 164 MovieClip [__Packages.fsplayer.res.sounds.ISoundInstance] Frame 0
interface fsplayer.res.sounds.ISoundInstance
{
}
Symbol 165 MovieClip [__Packages.fsplayer.res.sounds.ISoundInstanceListener] Frame 0
interface fsplayer.res.sounds.ISoundInstanceListener
{
}
Symbol 166 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundLoadingListenerEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundLoadingListenerEx
{
}
Symbol 167 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundListenerEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundListenerEx
{
}
Symbol 168 MovieClip [__Packages.fsplayer.core.playback.transitions.ISlideTransitionController] Frame 0
interface fsplayer.core.playback.transitions.ISlideTransitionController
{
}
Symbol 169 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionEffect] Frame 0
interface fsplayer.core.playback.transitions.ITransitionEffect
{
}
Symbol 170 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackControllerEx] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackControllerEx
{
}
Symbol 171 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackListenerEx] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackListenerEx
{
}
Symbol 172 MovieClip [__Packages.fsplayer.res.sounds.ISoundCommandsEx] Frame 0
interface fsplayer.res.sounds.ISoundCommandsEx
{
}
Symbol 173 MovieClip [__Packages.fsplayer.core.playback.sounds.ISoundPlaybackCore] Frame 0
interface fsplayer.core.playback.sounds.ISoundPlaybackCore
{
}
Symbol 174 MovieClip [__Packages.fsplayer.res.sounds.ISoundEx] Frame 0
interface fsplayer.res.sounds.ISoundEx
{
}
Symbol 175 MovieClip [__Packages.fsplayer.core.playback.sounds.IEventSoundPlaybackCore] Frame 0
interface fsplayer.core.playback.sounds.IEventSoundPlaybackCore extends fsplayer.core.playback.sounds.ISoundPlaybackCore
{
}
Symbol 176 MovieClip [__Packages.fsplayer.res.sounds.ISlideEventSoundsEx] Frame 0
interface fsplayer.res.sounds.ISlideEventSoundsEx
{
}
Symbol 177 MovieClip [__Packages.fsplayer.res.slides.IAnimationStepsEx] Frame 0
interface fsplayer.res.slides.IAnimationStepsEx extends fsplayer.api.IAnimationSteps
{
}
Symbol 178 MovieClip [__Packages.fsplayer.res.slides.IAnimationStepEx] Frame 0
interface fsplayer.res.slides.IAnimationStepEx extends fsplayer.api.IAnimationStep
{
}
Symbol 179 MovieClip [__Packages.fsplayer.res.slides.CAnimationSteps] Frame 0
class fsplayer.res.slides.CAnimationSteps implements fsplayer.res.slides.IAnimationStepsEx
{
var m_steps, m_frameRate;
function CAnimationSteps (animationStepsNode, frameRate) {
m_steps = new Array();
m_frameRate = frameRate;
var _local6 = animationStepsNode.childNodes.length;
var _local2 = 0;
while (_local2 < _local6) {
var _local5 = animationStepsNode.childNodes[_local2];
var _local3 = new fsplayer.res.slides.CAnimationStep(_local5, m_duration, frameRate);
m_steps.push(_local3);
var _local4 = _local3.__get__pauseEndTime();
m_duration = ((_local4 != undefined) ? (_local4) : (_local3.__get__pauseStartTime()));
_local2++;
}
}
function getDuration() {
return(m_duration);
}
function getStepsCount() {
return(m_steps.length);
}
function getStepEx(index) {
return(m_steps[index]);
}
function getStep(index) {
return(m_steps[index]);
}
function getStepByFrame(frameIndex) {
var _local2 = getStepIndexByFrame(frameIndex);
if (_local2 != undefined) {
return(getStepEx(_local2));
}
return(undefined);
}
function getFrameIndexByTime(time) {
var _local2 = getStepByTime(time);
var _local4 = _local2.getEndFrame();
if (time >= _local2.getPauseStartTime()) {
return(_local2.getEndFrame());
}
var _local7 = time - _local2.getStartTime();
var _local3 = _local2.getPlayTime();
var _local5 = _local2.getStartFrame();
var _local8 = _local2.getPlayTimeFrameBased();
_local3 = Math.max(_local3, _local8);
if (_local3 > 0) {
return(Math.round((_local7 * (_local4 - _local5)) / _local3) + _local5);
}
return(_local4);
}
function getStepIndexByFrame(frameIndex) {
var _local5 = getStepsCount();
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = m_steps[_local2];
if ((frameIndex >= _local3.getStartFrame()) && (frameIndex <= _local3.getEndFrame())) {
return(_local2);
}
_local2++;
}
return(undefined);
}
function getStepByTime(time) {
var _local2 = getStepIndexByTime(time);
return(m_steps[_local2]);
}
function getStepIndexByTime(time) {
var _local3 = getStepsCount();
var _local2 = 1;
while (_local2 < _local3) {
if (time < m_steps[_local2].getStartTime()) {
return(_local2 - 1);
}
_local2++;
}
return(_local3 - 1);
}
var m_duration = 0;
}
Symbol 180 MovieClip [__Packages.fsplayer.res.slides.CAnimationStep] Frame 0
class fsplayer.res.slides.CAnimationStep implements fsplayer.res.slides.IAnimationStepEx
{
var m_startFrame, m_endFrame, m_playTime, m_pauseTime, m_startTime, m_playTimeFrameBased;
function CAnimationStep (animationStepNode, stepStartTime, frameRate) {
var _local2 = animationStepNode.attributes;
m_startFrame = parseInt(_local2.start);
m_endFrame = parseInt(_local2.end);
m_playTime = parseFloat(_local2.playTime);
m_pauseTime = ((_local2.pauseTime != "") ? (parseFloat(_local2.pauseTime)) : undefined);
m_startTime = stepStartTime;
m_playTimeFrameBased = ((frameRate != undefined) ? ((m_endFrame - m_startFrame) / frameRate) : (m_playTime));
}
function getPlayTimeFrameBased() {
return(m_playTimeFrameBased);
}
function get startTime() {
return(m_startTime);
}
function get pauseStartTime() {
return(((m_startTime != undefined) ? (m_startTime + m_playTime) : undefined));
}
function get pauseEndTime() {
var _local2 = pauseStartTime;
return((((_local2 != undefined) && (m_pauseTime != undefined)) ? (_local2 + m_pauseTime) : undefined));
}
function getStartFrame() {
return(m_startFrame);
}
function getEndFrame() {
return(m_endFrame);
}
function getPlayTime() {
return(m_playTime);
}
function getPauseTime() {
return(m_pauseTime);
}
function getStartTime() {
return(startTime);
}
function getPauseStartTime() {
return(pauseStartTime);
}
function getPauseEndTime() {
return(pauseEndTime);
}
}
Symbol 181 MovieClip [__Packages.fsplayer.res.video.IPresenterVideoEx] Frame 0
interface fsplayer.res.video.IPresenterVideoEx extends fsplayer.api.IPresenterVideo
{
}
Symbol 182 MovieClip [__Packages.fsplayer.res.sounds.ISoundAssets] Frame 0
interface fsplayer.res.sounds.ISoundAssets
{
}
Symbol 183 MovieClip [__Packages.fsplayer.res.sounds.ISoundAsset] Frame 0
interface fsplayer.res.sounds.ISoundAsset
{
}
Symbol 184 MovieClip [__Packages.fsplayer.res.sounds.ISoundAssetLoadingListener] Frame 0
interface fsplayer.res.sounds.ISoundAssetLoadingListener
{
}
Symbol 185 MovieClip [__Packages.fsplayer.res.CPresentation] Frame 0
class fsplayer.res.CPresentation implements fsplayer.res.IPresentation
{
var m_presentationNode, m_environment, m_playbackSettings, m_slideWidth, m_slideHeight, m_frameRate, m_looped, m_duration, m_slides, m_soundAssets, m_visibleDuration;
function CPresentation (presentationNode, environment, playbackSettings) {
m_presentationNode = presentationNode;
m_environment = environment;
m_playbackSettings = playbackSettings;
m_slideWidth = parseInt(presentationNode.attributes.width);
m_slideHeight = parseInt(presentationNode.attributes.height);
m_frameRate = parseInt(presentationNode.attributes.frameRate);
m_looped = presentationNode.attributes.looping == "1";
}
function getDuration() {
if (m_duration == undefined) {
var _local2 = getSlides();
m_duration = _local2.getSlide(_local2.getCount() - 1).getEndTime();
}
return(m_duration);
}
function getSlideWidth() {
return(m_slideWidth);
}
function getSlideHeight() {
return(m_slideHeight);
}
function getSlidesCount() {
return(m_slides.getCount());
}
function isLooped() {
return(m_looped);
}
function getSoundAssets() {
if (m_soundAssets == undefined) {
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(m_presentationNode, "soundAssets");
m_soundAssets = new fsplayer.res.sounds.CSoundAssets(_local2, m_environment.getSoundAssetsTarget(), m_environment.getSlideAssetsTarget());
}
return(m_soundAssets);
}
function getSlides() {
if (m_slides == undefined) {
var _local3 = fsplayer.util.CXMLUtils.findFirstChildNode(m_presentationNode, "slides");
var _local4 = m_environment.getSlideAssetsTarget();
var _local2 = m_environment.getPlayerCore();
m_slides = new fsplayer.res.slides.CSlides(_local3, _local4, getSoundAssets(), this, m_frameRate, _local2, m_playbackSettings);
}
return(m_slides);
}
function getBackgroundSoundNode() {
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(m_presentationNode, "backgroundSound");
return(_local2);
}
function getVisibleDuration() {
if (m_visibleDuration == undefined) {
var _local3 = getSlides();
var _local2 = _local3.getVisibleCount();
m_visibleDuration = ((_local2 > 0) ? (_local3.getVisibleSlide(_local2 - 1).getVisibleEndTime()) : 0);
}
return(m_visibleDuration);
}
}
Symbol 186 MovieClip [__Packages.fsplayer.util.CXMLUtils] Frame 0
class fsplayer.util.CXMLUtils
{
function CXMLUtils () {
}
static function findFirstChildNode(parentNode, nodeName) {
var _local3 = parentNode.childNodes.length;
var _local1 = 0;
while (_local1 < _local3) {
if (parentNode.childNodes[_local1].nodeName == nodeName) {
return(parentNode.childNodes[_local1]);
}
_local1++;
}
return(undefined);
}
static function getInnerText(node) {
var _local3 = node.childNodes.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = node.childNodes[_local1];
if (_local2.nodeType == 3) {
return(_local2.nodeValue);
}
_local1++;
}
return("");
}
}
Symbol 187 MovieClip [__Packages.fsplayer.res.sounds.CSoundAssets] Frame 0
class fsplayer.res.sounds.CSoundAssets implements fsplayer.res.sounds.ISoundAssets, fsplayer.res.sounds.ISoundAssetLoadingListener
{
var m_target, m_assets, m_loadingAssets, m_slidesTarget;
function CSoundAssets (soundAssetsNode, target, slidesTarget) {
m_target = target;
m_assets = new Object();
m_loadingAssets = new Object();
var _local6 = soundAssetsNode.childNodes.length;
var _local5 = new fsplayer.res.sounds.CSoundAssetLoader(new fsplayer.res.assets.CInternalAssetLoader());
var _local7 = new fsplayer.res.sounds.CSoundAssetLoader(new fsplayer.res.assets.CExternalAssetLoader());
var _local4 = 0;
while (_local4 < _local6) {
var _local3 = soundAssetsNode.childNodes[_local4];
var _local2 = new Object();
_local2.src = _local3.attributes.src;
_local2.embedded = _local3.attributes.embedded == "1";
_local2.loader = (_local2.embedded ? (_local5) : (_local7));
_local2.listeners = new Array();
m_assets[_local3.attributes.id] = _local2;
_local4++;
}
}
function setVolume(volume) {
var _local3 = new Sound(m_target);
_local3.setVolume(volume * 100);
var _local2 = new Sound(m_slidesTarget);
_local2.setVolume(volume * 100);
}
function loadAsset(id, listener) {
var _local4 = getAsset(id);
if (_local4 == undefined) {
addListener(id, listener);
if (!assetIsLoading(id)) {
m_loadingAssets[id] = true;
var _local3 = m_assets[id];
var _local6 = _local3.loader;
var _local5 = m_target.createEmptyMovieClip(id, m_target.getNextHighestDepth());
_local6.loadSoundAsset(_local5, _local3.src, id, this);
}
} else {
listener.onSoundAssetLoadInit(_local4);
}
}
function assetIsLoaded(id) {
return(getAsset(id) != undefined);
}
function addListener(id, listener) {
m_assets[id].listeners.push(listener);
}
function assetIsLoading(id) {
return(m_loadingAssets[id]);
}
function getAsset(id) {
return(m_assets[id].asset);
}
function setAsset(id, asset) {
m_assets[id].asset = asset;
}
function onSoundAssetLoadInit(soundAsset) {
var _local6 = soundAsset.getId();
m_loadingAssets[_local6] = false;
setAsset(_local6, soundAsset);
var _local4 = m_assets[soundAsset.getId()].listeners;
var _local5 = _local4.length;
var _local2 = 0;
while (_local2 < _local5) {
_local4[_local2].onSoundAssetLoadInit(soundAsset);
_local2++;
}
}
function assetIsEmbedded(id) {
return(m_assets[id].embedded);
}
}
Symbol 188 MovieClip [__Packages.fsplayer.res.sounds.ISoundAssetLoader] Frame 0
interface fsplayer.res.sounds.ISoundAssetLoader
{
}
Symbol 189 MovieClip [__Packages.fsplayer.res.sounds.CSoundAssetLoader] Frame 0
class fsplayer.res.sounds.CSoundAssetLoader implements fsplayer.res.sounds.ISoundAssetLoader
{
var m_assetLoader;
function CSoundAssetLoader (assetLoader) {
m_assetLoader = assetLoader;
}
function loadSoundAsset(target, source, id, listener) {
var _local2 = new fsplayer.res.sounds.CSoundAsset(id);
_local2.load(m_assetLoader, target, source, listener);
return(_local2);
}
}
Symbol 190 MovieClip [__Packages.fsplayer.res.assets.IAssetLoader] Frame 0
interface fsplayer.res.assets.IAssetLoader
{
}
Symbol 191 MovieClip [__Packages.fsplayer.res.assets.IAssetLoadingListener] Frame 0
interface fsplayer.res.assets.IAssetLoadingListener
{
}
Symbol 192 MovieClip [__Packages.fsplayer.res.assets.IAsset] Frame 0
interface fsplayer.res.assets.IAsset
{
}
Symbol 193 MovieClip [__Packages.fsplayer.res.sounds.CSoundAsset] Frame 0
class fsplayer.res.sounds.CSoundAsset implements fsplayer.res.sounds.ISoundAsset
{
var m_id, m_asset;
function CSoundAsset (id) {
m_id = id;
}
function createInstance(name, depth) {
return(new fsplayer.res.sounds.CSoundInstance(m_asset, name, depth));
}
function load(assetLoader, target, source, listener) {
var _local2 = new fsplayer.res.sounds.CSoundAssetLoadingListenerImpl(this, listener);
assetLoader.loadAsset(target, source, _local2);
}
function setAsset(asset) {
m_asset = asset;
}
function getId() {
return(m_id);
}
}
Symbol 194 MovieClip [__Packages.fsplayer.res.sounds.CSoundInstance] Frame 0
class fsplayer.res.sounds.CSoundInstance implements fsplayer.res.sounds.ISoundInstance
{
var m_target, m_playing, m_currentLoopIndex, m_listener;
function CSoundInstance (asset, name, depth) {
m_target = asset.createInstance(name, depth);
m_playing = false;
var thisPtr = this;
m_target.onEnterFrame = function () {
if (thisPtr.m_listener != undefined) {
thisPtr.m_listener.onSoundInstanceInit(thisPtr);
}
this.SoundSetListener(thisPtr);
delete this.onEnterFrame;
};
}
function onSoundComplete() {
m_loops--;
m_currentLoopIndex++;
if (m_loops > 0) {
m_target.SoundStart(0);
} else {
m_listener.onSoundInstanceComplete(this);
}
}
function start(position, loops) {
if (m_playing) {
stop();
}
m_playing = true;
if (loops == 0) {
loops = 9999;
}
m_loops = loops;
m_currentLoopIndex = 0;
m_target.SoundStart(position);
}
function stop() {
if (m_playing) {
m_playing = false;
m_target.SoundStop();
}
}
function getPosition() {
return(m_target.SoundGetPosition() * 0.001);
}
function getCurrentLoopIndex() {
return(m_currentLoopIndex);
}
function getDuration() {
return(m_target.SoundGetDuration());
}
function isPlaying() {
return(m_playing);
}
function setListener(listener) {
m_listener = listener;
}
var m_loops = 0;
}
Symbol 195 MovieClip [__Packages.fsplayer.res.sounds.CSoundAssetLoadingListenerImpl] Frame 0
class fsplayer.res.sounds.CSoundAssetLoadingListenerImpl implements fsplayer.res.assets.IAssetLoadingListener
{
var m_soundAsset, m_listener;
function CSoundAssetLoadingListenerImpl (soundAsset, listener) {
m_soundAsset = soundAsset;
m_listener = listener;
}
function onAssetLoadStart(asset) {
m_soundAsset.setAsset(asset);
}
function onAssetLoadComplete(asset) {
}
function onAssetLoadInit(asset) {
m_listener.onSoundAssetLoadInit(m_soundAsset);
}
}
Symbol 196 MovieClip [__Packages.fsplayer.res.assets.CInternalAssetLoader] Frame 0
class fsplayer.res.assets.CInternalAssetLoader implements fsplayer.res.assets.IAssetLoader
{
function CInternalAssetLoader () {
}
function loadAsset(target, src, listener) {
var _local1 = new fsplayer.res.assets.CInternalAsset(target, src);
if (listener) {
listener.onAssetLoadStart(_local1);
listener.onAssetLoadComplete(_local1);
listener.onAssetLoadInit(_local1);
}
return(_local1);
}
}
Symbol 197 MovieClip [__Packages.fsplayer.res.assets.CInternalAsset] Frame 0
class fsplayer.res.assets.CInternalAsset implements fsplayer.res.assets.IAsset
{
var m_target, m_source;
function CInternalAsset (target, source) {
m_target = target;
m_source = source;
}
function createInstance(name, depth) {
if (depth == undefined) {
depth = m_target.getNextHighestDepth();
}
var _local2 = m_target.attachMovie(m_source, name, depth);
return(_local2);
}
function getTarget() {
return(m_target);
}
}
Symbol 198 MovieClip [__Packages.fsplayer.res.assets.CExternalAssetLoader] Frame 0
class fsplayer.res.assets.CExternalAssetLoader implements fsplayer.res.assets.IAssetLoader
{
function CExternalAssetLoader () {
}
function loadAsset(target, src, listener) {
var _local8 = new MovieClipLoader();
var _local6 = target._url;
var _local7 = _local6.indexOf("?");
var _local5 = ((_local7 >= 0) ? (_local6.substr(0, _local7)) : (_local6));
var _local2 = "/";
var _local4 = _local5.lastIndexOf(_local2);
if ((_local4 < 0) || ((_local4 == 6) && (_local5.substr(0, 7) == "file://"))) {
_local2 = "\\";
_local4 = _local5.lastIndexOf("\\");
}
var _local12 = _local5.substr(0, _local4);
var _local9 = ((src.charAt(0) != "/") ? ((_local12 + _local2) + src) : (_local2 + src.substr(1)));
var asset = (new fsplayer.res.assets.CExternalAsset(target));
var _local3 = new Object();
_local3.onLoadStart = function (mc) {
if (listener != undefined) {
listener.onAssetLoadStart(asset);
}
};
_local3.onLoadComplete = function (mc) {
if (listener != undefined) {
listener.onAssetLoadComplete(asset);
}
};
_local3.onLoadInit = function (mc) {
mc.onEnterFrame = function () {
if (listener != undefined) {
listener.onAssetLoadInit(asset);
}
delete this.onEnterFrame;
};
};
_local8.addListener(_local3);
_local8.loadClip(_local9, target);
return(asset);
}
}
Symbol 199 MovieClip [__Packages.fsplayer.res.assets.CExternalAsset] Frame 0
class fsplayer.res.assets.CExternalAsset implements fsplayer.res.assets.IAsset
{
var m_target;
function CExternalAsset (target) {
m_target = target;
}
function createInstance(name, depth) {
if (depth == undefined) {
depth = m_target.getNextHighestDepth();
}
var _local2 = m_target.createInstance(name, depth);
return(_local2);
}
function getTarget() {
return(m_target);
}
}
Symbol 200 MovieClip [__Packages.fsplayer.res.slides.CSlides] Frame 0
class fsplayer.res.slides.CSlides implements fsplayer.res.slides.ISlides
{
var m_slidesNode, m_soundAssets, m_transitionEffectEnvironment, m_frameRate, m_playerCore, m_playbackSettings, m_slideAssets, m_slides, m_numberOfSlides, m_visibleIndexToIndex, m_navigationSlides, m_lastVisitedSlide;
function CSlides (slidesNode, slideAssetsTarget, soundAssets, environment, frameRate, playerCore, playbackSettings) {
m_slidesNode = slidesNode;
m_soundAssets = soundAssets;
m_transitionEffectEnvironment = environment;
m_frameRate = frameRate;
m_playerCore = playerCore;
m_playbackSettings = playbackSettings;
var _local3 = slidesNode.attributes.embedded == "1";
var _local4 = new fsplayer.res.slides.CSlideAssetLoader((_local3 ? (new fsplayer.res.assets.CInternalAssetLoader()) : (new fsplayer.res.assets.CExternalAssetLoader())), m_playerCore);
m_slideAssets = new fsplayer.res.slides.CSlideAssets(_local4, slideAssetsTarget);
m_slides = new Array();
m_numberOfSlides = slidesNode.childNodes.length;
m_visibleIndexToIndex = new Array();
m_navigationSlides = new Array();
initializeAllSlides();
}
function getSlide(indexRequire) {
if ((indexRequire < 0) || (indexRequire >= m_numberOfSlides)) {
return(undefined);
}
return(m_slides[indexRequire]);
}
function getSlideAssets() {
return(m_slideAssets);
}
function getSlideDepthSorter() {
return(m_slideAssets);
}
function getCount() {
return(m_numberOfSlides);
}
function initializeAllSlides() {
var _local7 = 0;
while (_local7 < m_numberOfSlides) {
var _local4 = ((_local7 > 0) ? (m_slides[_local7 - 1]) : undefined);
var _local8 = (_local4 ? (_local4.getEndTime()) : 0);
var _local9 = (_local4 ? (_local4.getEndStepIndex() + 1) : 0);
var _local5 = ((m_visibleIndexToIndex.length > 0) ? (m_visibleIndexToIndex[m_visibleIndexToIndex.length - 1]) : undefined);
var _local3 = ((_local5 != undefined) ? (m_slides[_local5]) : undefined);
var _local13 = (_local3 ? (_local3.getVisibleEndTime()) : 0);
var _local11 = (_local3 ? (_local3.getVisibleEndStepIndex() + 1) : 0);
var _local12 = (_local3 ? (_local3.getVisibleIndex() + 1) : 0);
var _local2 = new fsplayer.res.slides.CSlide(m_slidesNode.childNodes[_local7], getSlideAssets(), m_soundAssets, getSlideDepthSorter(), m_transitionEffectEnvironment, m_frameRate, m_playbackSettings, _local8, _local9, _local13, _local11, _local12);
m_slides[_local7++] = _local2;
var _local6 = _local2.getIndex();
if (!_local2.isHidden()) {
m_visibleIndexToIndex[_local2.getVisibleIndex()] = _local6;
}
var _local10 = new Object();
m_navigationSlides[_local6] = _local10;
if (_local4 && (_local4.isHidden())) {
m_navigationSlides[_local6 - 1].vNext = _local6;
}
if (_local5 != undefined) {
_local10.vPrev = _local5;
}
if ((!_local2.isHidden()) && (_local3)) {
m_navigationSlides[_local5].vNext = _local6;
}
_local8 = _local2.getEndTime();
_local9 = _local2.getEndStepIndex() + 1;
}
fixLevels();
}
function fixLevels() {
var _local14 = -1;
var _local13 = getCount();
var _local7 = 0;
while (_local7 < _local13) {
var _local6 = getSlide(_local7).getLevel();
if (_local6 < 0) {
_local6 = 0;
}
if ((_local14 + 1) < _local6) {
_local6 = _local14 + 1;
}
getSlide(_local7).fixLevel(_local6);
_local14 = _local6;
_local7++;
}
var _local12 = new Array();
_local7 = 0;
while (_local7 < _local13) {
var _local10 = getSlide(_local7);
var _local11 = _local10.isHidden();
var _local2 = _local10.getLevel();
if (((!_local11) && (_local2 > 0)) && (_local12[_local7 - 1])) {
var _local8 = false;
var _local4 = _local7;
while (_local4 < _local13) {
var _local5 = getSlide(_local4);
var _local3 = _local5.getLevel();
var _local9 = _local5.isHidden();
if (_local3 == _local2) {
_local8 = !_local9;
}
if ((_local3 >= _local2) && (_local8)) {
_local5.fixLevel(_local3 - 1);
}
if (_local3 < _local2) {
break;
}
_local4++;
}
}
_local2 = _local10.getLevel();
if (_local2 > 0) {
_local12[_local2] = _local12[_local2 - 1] || (_local11);
} else {
_local12[_local2] = _local11;
}
_local7++;
}
}
function getVisibleCount() {
return(m_visibleIndexToIndex.length);
}
function getVisibleSlide(visibleSlideIndex) {
return(getSlide(visibleIndexToIndex(visibleSlideIndex)));
}
function visibleIndexToIndex(visibleIndex) {
return(m_visibleIndexToIndex[visibleIndex]);
}
function getVisibleSlideNavigationIndex(index, next) {
var _local2 = m_navigationSlides[index];
if (_local2) {
return(_local2[(next ? "vNext" : "vPrev")]);
}
return(undefined);
}
function slideChanged(index) {
if (getSlide(index).isHidden() && (m_navigationSlides[index].visit == undefined)) {
var _local2 = index + 1;
while (_local2 < getCount()) {
var _local5 = getSlide(_local2);
var _local4 = m_navigationSlides[_local2].vPrev;
if (_local4 == undefined) {
m_navigationSlides[_local2].vPrev = index;
} else if (_local4 < index) {
m_navigationSlides[_local2].vPrev = index;
m_navigationSlides[index].vPrev = _local4;
}
if (!_local5.isHidden()) {
break;
}
_local2++;
}
m_navigationSlides[index].visit = true;
}
m_lastVisitedSlide = index;
}
}
Symbol 201 MovieClip [__Packages.fsplayer.res.slides.ISlideAssets] Frame 0
interface fsplayer.res.slides.ISlideAssets
{
}
Symbol 202 MovieClip [__Packages.fsplayer.res.slides.ISlideAssetLoadingListener] Frame 0
interface fsplayer.res.slides.ISlideAssetLoadingListener
{
}
Symbol 203 MovieClip [__Packages.fsplayer.res.slides.ISlideAsset] Frame 0
interface fsplayer.res.slides.ISlideAsset
{
}
Symbol 204 MovieClip [__Packages.fsplayer.res.slides.ISlideInstance] Frame 0
interface fsplayer.res.slides.ISlideInstance
{
}
Symbol 205 MovieClip [__Packages.fsplayer.res.slides.ISlideInstanceListener] Frame 0
interface fsplayer.res.slides.ISlideInstanceListener
{
}
Symbol 206 MovieClip [__Packages.fsplayer.res.slides.ISlideDepthSorter] Frame 0
interface fsplayer.res.slides.ISlideDepthSorter
{
}
Symbol 207 MovieClip [__Packages.fsplayer.res.slides.CSlideAssets] Frame 0
class fsplayer.res.slides.CSlideAssets implements fsplayer.res.slides.ISlideAssets, fsplayer.res.slides.ISlideDepthSorter
{
var m_loader, m_target, m_assetTargets, m_frontTarget;
function CSlideAssets (loader, target) {
m_loader = loader;
m_target = target;
m_assetTargets = new Array();
}
function loadSlideAsset(slideIndex, source, listener) {
var _local2 = m_target.createEmptyMovieClip("slide" + slideIndex, m_target.getNextHighestDepth());
m_assetTargets[slideIndex] = _local2;
m_frontTarget = _local2;
return(m_loader.loadSlideAsset(_local2, source, listener));
}
function bringToFront(slideIndex) {
var _local2 = m_assetTargets[slideIndex];
if (_local2 != m_frontTarget) {
_local2.swapDepths(m_frontTarget);
m_frontTarget = _local2;
}
}
}
Symbol 208 MovieClip [__Packages.fsplayer.res.slides.ISlideAssetLoader] Frame 0
interface fsplayer.res.slides.ISlideAssetLoader
{
}
Symbol 209 MovieClip [__Packages.fsplayer.res.slides.CSlideAssetLoader] Frame 0
class fsplayer.res.slides.CSlideAssetLoader implements fsplayer.res.slides.ISlideAssetLoader
{
var m_assetLoader, m_playerCore;
function CSlideAssetLoader (assetLoader, playerCore) {
m_assetLoader = assetLoader;
m_playerCore = playerCore;
}
function loadSlideAsset(target, source, listener) {
var _local2 = new fsplayer.res.slides.CSlideAsset(m_playerCore);
_local2.load(m_assetLoader, target, source, listener);
return(_local2);
}
}
Symbol 210 MovieClip [__Packages.fsplayer.res.slides.CSlideAsset] Frame 0
class fsplayer.res.slides.CSlideAsset implements fsplayer.res.slides.ISlideAsset
{
var m_playerCore, m_asset;
function CSlideAsset (playerCore) {
m_playerCore = playerCore;
}
function createInstance(name, depth) {
var _local2 = m_asset.createInstance(name, depth);
return(new fsplayer.res.slides.CSlideInstance(_local2));
}
function load(assetLoader, target, source, listener) {
var _local2 = new fsplayer.res.slides.CSlideAssetLoadingListenerImpl(this, listener);
assetLoader.loadAsset(target, source, _local2);
}
function onSlideAssetLoadInit(asset) {
var _local2 = asset.getTarget();
_local2._lockroot = true;
var playerCore = m_playerCore;
_local2.getPlayerCore = function () {
return(playerCore);
};
}
function setAsset(asset) {
m_asset = asset;
}
}
Symbol 211 MovieClip [__Packages.fsplayer.res.slides.CSlideInstance] Frame 0
class fsplayer.res.slides.CSlideInstance implements fsplayer.res.slides.ISlideInstance
{
var m_slideInstanceController, m_listener, m_mask;
function CSlideInstance (instanceClip) {
m_slideInstanceController = new fsplayer.res.slides.CSlideInstanceController(instanceClip, this);
}
function playFrom(frameIndex) {
var _local2 = getCurrentFrame();
playAndNotify();
m_forcePlayback = true;
if (_local2 != frameIndex) {
m_slideInstanceController.gotoAndPlay(frameIndex);
onEnterFrame();
} else {
m_oldFrame = undefined;
onEnterFrame();
}
}
function stopAt(frameIndex) {
m_forcePlayback = false;
m_slideInstanceController.gotoAndStop(frameIndex);
stopAndNotify();
}
function play() {
if (!m_playing) {
m_forcePlayback = true;
m_slideInstanceController.play();
playAndNotify();
}
}
function stop() {
if (m_playing) {
m_forcePlayback = false;
m_slideInstanceController.stop();
stopAndNotify();
}
}
function isPlaying() {
return(m_playing);
}
function getCurrentFrame() {
return(m_slideInstanceController.getCurrentFrame());
}
function getFramesCount() {
return(m_slideInstanceController.getFramesCount());
}
function setListener(listener) {
m_listener = listener;
}
function stepForward() {
if (getCurrentFrame() != lastFrame) {
m_slideInstanceController.nextFrame();
stopAndNotify();
}
}
function stepBackward() {
if (getCurrentFrame() != 0) {
m_slideInstanceController.prevFrame();
stopAndNotify();
}
}
function getMask() {
if (m_mask == undefined) {
var _local2 = getMovie()._parent;
var _local3 = getMovie()._name + "_mask";
var _local4 = _local2.getNextHighestDepth();
m_mask = _local2.createEmptyMovieClip(_local3, _local4);
getMovie().setMask(m_mask);
}
return(m_mask);
}
function getMovie() {
return(m_slideInstanceController.getMovie());
}
function deleteMask() {
if (m_mask != undefined) {
m_mask.removeMovieClip();
delete m_mask;
}
}
function playAndNotify() {
var _local2 = m_playing;
if ((!_local2) && (m_listener != undefined)) {
m_listener.onSlideInstancePlay(this);
}
m_playing = true;
}
function stopAndNotify() {
var _local2 = m_playing;
if (_local2 && (m_listener != undefined)) {
m_listener.onSlideInstanceStop(this);
}
m_playing = false;
}
function deleteInstance() {
if (getMovie() != undefined) {
deleteMask();
getMovie().removeMovieClip();
delete eval (getMovie());
}
}
function onEnterFrame() {
var _local2 = getCurrentFrame();
if (m_forcePlayback) {
m_forcePlayback = false;
m_slideInstanceController.play();
}
if (m_listener != undefined) {
m_listener.onSlideInstanceEnterFrame(this);
if (m_oldFrame != _local2) {
m_listener.onSlideInstanceFrameChanged(this);
m_oldFrame = _local2;
}
if (m_playing && (_local2 == lastFrame)) {
stop();
m_listener.onSlideInstanceComplete(this);
}
} else {
m_oldFrame = -1;
}
}
function get lastFrame() {
return(getFramesCount() - 1);
}
var m_oldFrame = -1;
var m_playing = false;
var m_forcePlayback = false;
}
Symbol 212 MovieClip [__Packages.fsplayer.res.slides.CSlideInstanceController] Frame 0
class fsplayer.res.slides.CSlideInstanceController
{
var m_frameIndex, m_slideInstance, m_mc;
function CSlideInstanceController (mc, slideInstance) {
m_frameIndex = undefined;
m_slideInstance = slideInstance;
m_mc = mc;
var thisPtr = this;
m_mc.onEnterFrame = function () {
thisPtr.onEnterFrame();
};
}
function onEnterFrame() {
if (m_command != undefined) {
switch (m_command) {
case COMMAND_STOP :
m_mc.gotoAndStop(m_frameIndex + 1);
break;
case COMMAND_PLAY :
m_mc.gotoAndPlay(m_frameIndex + 1);
}
if ((m_previousFrameIndex != undefined) && (m_previousFrameIndex > m_frameIndex)) {
blink();
}
m_previousFrameIndex = m_frameIndex;
m_command = undefined;
m_frameIndex = undefined;
}
m_slideInstance.onEnterFrame();
}
function play() {
gotoAndPlay(getCurrentFrame());
}
function stop() {
gotoAndStop(getCurrentFrame());
}
function gotoAndPlay(frameIndex) {
m_command = COMMAND_PLAY;
m_frameIndex = frameIndex;
}
function gotoAndStop(frameIndex) {
m_command = COMMAND_STOP;
m_frameIndex = frameIndex;
}
function getCurrentFrame() {
if (m_frameIndex != undefined) {
return(m_frameIndex);
}
return(m_mc._currentframe - 1);
}
function getFramesCount() {
return(m_mc._totalframes);
}
function nextFrame() {
gotoAndStop(getCurrentFrame() + 1);
}
function prevFrame() {
gotoAndStop(getCurrentFrame() - 1);
}
function getMovie() {
return(m_mc);
}
function isLastFrame() {
return(getCurrentFrame() == (getFramesCount() - 1));
}
function blink() {
var _local2 = m_mc._visible;
m_mc._visible = false;
m_mc._visible = _local2;
}
var COMMAND_STOP = 6;
var COMMAND_PLAY = 7;
var m_command = undefined;
var m_previousFrameIndex = undefined;
}
Symbol 213 MovieClip [__Packages.fsplayer.res.slides.CSlideAssetLoadingListenerImpl] Frame 0
class fsplayer.res.slides.CSlideAssetLoadingListenerImpl implements fsplayer.res.assets.IAssetLoadingListener
{
var m_slideAsset, m_listener;
function CSlideAssetLoadingListenerImpl (slideAsset, listener) {
m_slideAsset = slideAsset;
m_listener = listener;
}
function onAssetLoadStart(asset) {
m_slideAsset.setAsset(asset);
m_listener.onSlideAssetLoadStart(m_slideAsset);
}
function onAssetLoadComplete(asset) {
m_listener.onSlideAssetLoadComplete(m_slideAsset);
}
function onAssetLoadInit(asset) {
m_slideAsset.onSlideAssetLoadInit(asset);
m_listener.onSlideAssetLoadInit(m_slideAsset);
}
}
Symbol 214 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundsLoadingListenerEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundsLoadingListenerEx
{
}
Symbol 215 MovieClip [__Packages.fsplayer.res.slides.CSlide] Frame 0
class fsplayer.res.slides.CSlide implements fsplayer.res.slides.ISlide, fsplayer.res.slides.ISlideAssetLoadingListener, fsplayer.res.sounds.ISlideSoundsLoadingListenerEx
{
var m_slideNode, m_slideAssets, m_slideDepthSorter, m_playbackSettings, m_startTime, m_startStepIndex, m_index, m_title, m_assetSource, m_hasEmbeddedFlashClips, m_slideSounds, m_slideTransition, m_animationSteps, m_soundCommandsNode, m_bgSoundId, m_slideAssetLoaded, m_hidden, m_visibleStartTime, m_visibleStartStepIndex, m_visibleIndex, m_level, m_presenterVideo, m_bgSound, m_soundCommands, m_listener, m_slideAsset, m_slideInstancePlayer, m_controller;
function CSlide (slideNode, slideAssets, soundAssets, slideDepthSorter, environment, frameRate, playbackSettings, startTime, startStepIndex, visibleStartTime, visibleStartStepIndex, visibleIndex) {
m_slideNode = slideNode;
m_slideAssets = slideAssets;
m_slideDepthSorter = slideDepthSorter;
m_playbackSettings = playbackSettings;
m_startTime = startTime;
m_startStepIndex = startStepIndex;
var _local2 = slideNode.attributes;
m_index = parseInt(_local2.index);
m_title = _local2.title;
m_assetSource = _local2.src;
m_hasEmbeddedFlashClips = (_local2.hasEmbeddedFlashClip == "1") || (_local2.hasEmbeddedFlashClip == "true");
var _local9 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "sounds");
var _local7 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "transitionEffect");
m_slideSounds = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createSlideSounds(_local9, soundAssets);
var _local8 = slideNode.attributes.autoChange == "1";
m_slideTransition = new fsplayer.res.slides.CSlideTransition(_local7, m_slideSounds, environment, _local8);
var _local6 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "animationSteps");
m_animationSteps = new fsplayer.res.slides.CAnimationSteps(_local6, frameRate);
m_soundCommandsNode = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "soundCommands");
var _local5 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "backgroundSound");
if (_local5) {
m_bgSoundId = _local5.attributes.soundId;
}
m_slideAssetLoaded = false;
m_hidden = _local2.hidden == "1";
m_visibleStartTime = visibleStartTime;
m_visibleStartStepIndex = visibleStartStepIndex;
m_visibleIndex = (m_hidden ? undefined : (visibleIndex));
m_level = (_local2.level ? (parseInt(_local2.level)) : 0);
var _local4 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "presenterVideo");
if (_local4) {
initPresenterVideo(_local4);
}
}
function initPresenterVideo(presenterVideoNode) {
var _local2 = presenterVideoNode.attributes;
var _local3 = _local2.src;
if (_local3) {
m_presenterVideo = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createPresenterVideo(_local3, _local2.embedded == "1", parseInt(_local2.width), parseInt(_local2.height), parseFloat(_local2.frameRate));
}
}
function hasEmbeddedFlashClips() {
return(m_hasEmbeddedFlashClips);
}
function hasBackgroundSound() {
return(m_bgSoundId != "");
}
function getBackgroundSound() {
if (!m_bgSound) {
m_bgSound = m_slideSounds.getSound(m_bgSoundId);
}
return(m_bgSound);
}
function getSoundCommands() {
if (!m_soundCommands) {
m_soundCommands = new fsplayer.res.sounds.CSoundCommandsEx(m_index, m_soundCommandsNode, m_slideSounds, m_animationSteps);
}
return(m_soundCommands);
}
function getIndex() {
return(m_index);
}
function isLoaded() {
return(m_slideAssetLoaded && (m_slideSounds.allSoundsWereLoaded()));
}
function load(listener) {
m_listener = listener;
if (m_slideAsset == undefined) {
m_slideAsset = m_slideAssets.loadSlideAsset(m_index, m_assetSource, this);
}
if ((!m_slideSounds.allSoundsWereLoaded()) && (!m_slideSoundsAreLoading)) {
m_slideSoundsAreLoading = true;
m_slideSounds.load(this);
}
}
function getTransition() {
return(m_slideTransition);
}
function onSlideAssetLoadStart(asset) {
}
function onSlideAssetLoadComplete(asset) {
}
function onSlideAssetLoadInit(asset) {
m_slideAsset = asset;
m_slideAssetLoaded = true;
if (isLoaded() && (m_listener != undefined)) {
m_listener.onSlideLoadInit(this);
}
}
function onSlideSoundsLoadInit() {
if (isLoaded() && (m_listener != undefined)) {
m_listener.onSlideLoadInit(this);
}
}
function getPlaybackController() {
return(getController());
}
function getTransitionController() {
return(getSlideInstancePlayer());
}
function getSlideInstancePlayer() {
if (!m_slideInstancePlayer) {
m_slideInstancePlayer = new fsplayer.core.playback.slides.CSlideInstancePlayer(getIndex(), m_slideAsset, m_slideDepthSorter);
}
return(m_slideInstancePlayer);
}
function getController() {
if (m_controller == undefined) {
var _local2 = getAnimationSteps();
var _local3 = new fsplayer.core.playback.slides.CSlidePlaybackSynchronizer(_local2, getSlideInstancePlayer());
m_controller = new fsplayer.core.playback.slides.CSlideControllerEx(_local2, _local3);
}
return(m_controller);
}
function getDuration() {
return(m_animationSteps.getDuration());
}
function getStartTime() {
return(m_startTime);
}
function getEndTime() {
return(m_startTime + getDuration());
}
function getAnimationSteps() {
return(m_animationSteps);
}
function getStartStepIndex() {
return(m_startStepIndex);
}
function getEndStepIndex() {
return(m_startStepIndex + (m_animationSteps.getStepsCount() - 1));
}
function getVisibleStartTime() {
return((isHidden() ? undefined : (m_visibleStartTime)));
}
function getVisibleEndTime() {
return((isHidden() ? undefined : (m_visibleStartTime + getDuration())));
}
function getVisibleStartStepIndex() {
return((isHidden() ? undefined : (m_visibleStartStepIndex)));
}
function getVisibleEndStepIndex() {
return((isHidden() ? undefined : (m_visibleStartStepIndex + (m_animationSteps.getStepsCount() - 1))));
}
function isHidden() {
return(m_hidden);
}
function getVisibleIndex() {
return((isHidden() ? undefined : (m_visibleIndex)));
}
function getLevel() {
return(m_level);
}
function fixLevel(level) {
m_level = level;
}
function hasPresenterVideo() {
return(m_presenterVideo != undefined);
}
function getPresenterVideo() {
return(m_presenterVideo);
}
function disableAutoChange() {
m_slideTransition.disableAutoChange();
}
var m_slideSoundsAreLoading = false;
}
Symbol 216 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundsEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundsEx
{
}
Symbol 217 MovieClip [__Packages.fsplayer.core.playback.slides.ISlideInstancePlayer] Frame 0
interface fsplayer.core.playback.slides.ISlideInstancePlayer
{
}
Symbol 218 MovieClip [__Packages.fsplayer.core.playback.slides.ISlideInstancePlayerListener] Frame 0
interface fsplayer.core.playback.slides.ISlideInstancePlayerListener
{
}
Symbol 219 MovieClip [__Packages.fsplayer.core.playback.slides.CSlideInstancePlayer] Frame 0
class fsplayer.core.playback.slides.CSlideInstancePlayer implements fsplayer.core.playback.slides.ISlideInstancePlayer, fsplayer.core.playback.transitions.ISlideTransitionController, fsplayer.res.slides.ISlideInstanceListener
{
var m_slideIndex, m_slideAsset, m_depthSorter, m_listener, m_frameIndex, m_primary, m_secondary;
function CSlideInstancePlayer (slideIndex, slideAsset, depthSorter) {
m_slideIndex = slideIndex;
m_slideAsset = slideAsset;
m_depthSorter = depthSorter;
}
function setListener(listener) {
m_listener = listener;
}
function show() {
getPrimaryInstance();
}
function setFrameIndex(frameIndex) {
if (m_frameIndex != frameIndex) {
if (m_frameIndex === (frameIndex - 1)) {
m_primary.stepForward();
m_secondary.stepForward();
} else if (m_frameIndex === (frameIndex + 1)) {
m_primary.stepBackward();
m_secondary.stepBackward();
} else {
m_primary.stopAt(frameIndex);
m_secondary.stopAt(frameIndex);
}
m_frameIndex = frameIndex;
}
}
function getPrimaryInstance() {
if (!m_primary) {
m_primary = m_slideAsset.createInstance("p");
m_primary.setListener(this);
m_primary.stopAt(0);
}
return(m_primary);
}
function getSecondaryInstance() {
if (!m_secondary) {
var _local2 = getPrimaryInstance().getCurrentFrame();
m_secondary = m_slideAsset.createInstance("s");
}
return(m_secondary);
}
function hide() {
if (m_primary) {
m_primary.deleteInstance();
delete m_primary;
}
hideSecondaryMovie();
}
function bringToFront() {
m_depthSorter.bringToFront(m_slideIndex);
}
function getPrimaryMovie() {
return(getPrimaryInstance().getMovie());
}
function getPrimaryMask() {
return(getPrimaryInstance().getMask());
}
function getSecondaryMovie() {
return(getSecondaryInstance().getMovie());
}
function getSecondaryMask() {
return(getSecondaryInstance().getMask());
}
function hidePrimaryMask() {
if (m_primary) {
m_primary.deleteMask();
}
}
function hideSecondaryMovie() {
if (m_secondary) {
m_secondary.deleteInstance();
delete m_secondary;
}
}
function onSlideInstanceEnterFrame(instance) {
m_listener.onEnterFrame();
}
function onSlideInstanceFrameChanged(instance) {
}
function onSlideInstanceComplete(instance) {
}
function onSlideInstancePlay(instance) {
}
function onSlideInstanceStop(instance) {
}
}
Symbol 220 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackSynchronizerListener] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackSynchronizerListener
{
}
Symbol 221 MovieClip [__Packages.fsplayer.core.playback.slides.CSlideControllerEx] Frame 0
class fsplayer.core.playback.slides.CSlideControllerEx implements fsplayer.core.playback.slides.ISlidePlaybackControllerEx, fsplayer.core.playback.slides.ISlidePlaybackSynchronizerListener
{
var m_steps, m_synchronizer, m_videoPlaybackController, m_quizPlaybackController, m_listener;
function CSlideControllerEx (steps, synchronizer) {
m_steps = steps;
m_synchronizer = synchronizer;
m_synchronizer.setListener(this);
m_videoPlaybackController = new fsplayer.core.playback.video.CSlideVideoPlaybackController();
m_quizPlaybackController = new fsplayer.core.playback.quiz.CQuizPlaybackController(this);
}
function gotoStepEnd(stepIndex) {
m_synchronizer.playFromStepEnd(stepIndex);
}
function playFromStep(stepIndex) {
m_synchronizer.playFromStep(stepIndex);
}
function pauseAtStepStart(stepIndex) {
m_synchronizer.pauseAtStepStart(stepIndex);
}
function pauseAtStepEnd(stepIndex) {
m_synchronizer.pauseAtStepEnd(stepIndex);
}
function isPlaying() {
return(m_synchronizer.isPlaying());
}
function positionToTime(position) {
return(m_steps.getDuration() * position);
}
function playFrom(position) {
m_synchronizer.playFrom(positionToTime(position));
}
function play() {
m_synchronizer.play();
m_videoPlaybackController.play();
}
function pause() {
m_synchronizer.pause();
m_videoPlaybackController.pause();
}
function pauseAt(position) {
m_synchronizer.pauseAt(positionToTime(position));
}
function getPosition() {
return(m_synchronizer.getPosition());
}
function getCurrentStepIndex() {
return(m_synchronizer.getCurrentStepIndex());
}
function onStepIndexChanged(stepIndex) {
}
function onSlideTransitionComplete() {
m_videoPlaybackController.start();
m_quizPlaybackController.start();
}
function onPositionChanged(position) {
m_listener.onSlidePositionChanged(position);
}
function onSlideFinished() {
m_listener.onSlidePlaybackComplete();
}
function onSlideEnterFrame() {
m_listener.onSlideEnterFrame();
}
function activate() {
m_synchronizer.activate();
}
function deactivate() {
m_synchronizer.deactivate();
m_videoPlaybackController.onDeactivateSlide();
m_quizPlaybackController.onDeactivateSlide();
}
function setListener(listener) {
m_listener = listener;
}
function registerVideoClip(videoClip, autoStart, looping) {
m_videoPlaybackController.registerVideoClip(videoClip, autoStart, looping);
}
function registerQuiz(quiz) {
m_quizPlaybackController.registerQuiz(quiz);
}
function onKeyboardFocusStateChanged(acquireFocus) {
m_listener.onKeyboardFocusStateChanged(acquireFocus);
}
function getSlideQuiz() {
return(m_quizPlaybackController.getQuiz());
}
function leaveSlide() {
m_listener.onLeaveCurrentSlide();
}
}
Symbol 222 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackSynchronizer] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackSynchronizer
{
}
Symbol 223 MovieClip [__Packages.fsplayer.core.playback.video.ISlideVideoPlaybackController] Frame 0
interface fsplayer.core.playback.video.ISlideVideoPlaybackController
{
}
Symbol 224 MovieClip [__Packages.fsplayer.core.playback.quiz.IQuizPlaybackController] Frame 0
interface fsplayer.core.playback.quiz.IQuizPlaybackController
{
}
Symbol 225 MovieClip [__Packages.fsplayer.core.playback.video.CSlideVideoPlaybackController] Frame 0
class fsplayer.core.playback.video.CSlideVideoPlaybackController implements fsplayer.core.playback.video.ISlideVideoPlaybackController, fsplayer.res.video.IVideoClipListenerEx
{
var m_activeVideos, m_interruptedVideos, m_slideActivated, m_playing;
function CSlideVideoPlaybackController () {
m_activeVideos = new Array();
m_interruptedVideos = new Array();
}
function registerVideoClip(videoClip, autoStart, looping) {
var _local5 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local5) {
if (m_activeVideos[_local2].video == videoClip) {
return(undefined);
}
_local2++;
}
var _local4 = new Object();
_local4.video = videoClip;
_local4.autoStart = autoStart;
_local4.looping = looping;
_local4.loopIndex = 0;
videoClip.setListener(this, _local4);
m_activeVideos.push(_local4);
if (m_slideActivated) {
videoClip.enablePlayback();
if (autoStart && (m_playing)) {
videoClip.play();
}
} else {
videoClip.disablePlayback();
}
}
function start() {
m_slideActivated = true;
m_playing = true;
var _local4 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_activeVideos[_local2].video;
_local3.enablePlayback();
if (m_activeVideos[_local2].autoStart) {
_local3.play(0);
}
_local2++;
}
}
function onStopSlidePlaybackAfterActivation() {
m_slideActivated = true;
m_playing = false;
var _local4 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_activeVideos[_local2].video;
_local3.enablePlayback();
_local2++;
}
}
function pause() {
if (m_playing) {
delete m_interruptedVideos;
m_interruptedVideos = new Array();
}
m_playing = false;
var _local4 = m_activeVideos.length;
var _local3 = 0;
while (_local3 < _local4) {
var _local2 = m_activeVideos[_local3].video;
if (_local2.isPlaying()) {
m_interruptedVideos.push(_local2);
_local2.pause();
}
_local3++;
}
}
function play() {
if (!m_started) {
m_started = true;
start();
return(undefined);
}
m_playing = true;
var _local4 = m_interruptedVideos.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_interruptedVideos[_local2];
if (!_local3.isPlaying()) {
_local3.play();
}
_local2++;
}
}
function onDeactivateSlide() {
m_slideActivated = false;
var _local3 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local3) {
m_activeVideos[_local2].video.disablePlayback();
_local2++;
}
delete m_activeVideos;
m_activeVideos = new Array();
}
function onVideoClipPlaybackComplete(videoClip, parameter) {
if (parameter.looping == "untilSlideEnd") {
videoClip.play(0);
} else if (parameter.looping == "untilClick") {
videoClip.play(0);
} else if (typeof(parameter.looping) == "number") {
if ((++parameter.loopIndex) < parameter.looping) {
videoClip.play(0);
}
}
}
function onVideoMouseClick(videoClip, parameter) {
if (videoClip.isPlaying()) {
videoClip.pause();
} else if (videoClip.isCompleted()) {
videoClip.play(0);
} else {
videoClip.play();
}
}
function onVideoClipPlaybackStart(videoClip, parameter) {
}
function onVideoClipLoadComplete(videoClip, parameter) {
}
function onVideoClipReady(videoClip, parameter) {
}
function onVideoClipLoadingProgress(videoClip, progress, parameter) {
}
var m_started = false;
}
Symbol 226 MovieClip [__Packages.fsplayer.core.playback.quiz.CQuizPlaybackController] Frame 0
class fsplayer.core.playback.quiz.CQuizPlaybackController implements fsplayer.core.playback.quiz.IQuizPlaybackController, quizmaker.api.IQuizApiListener
{
var m_slideController, m_quizState;
function CQuizPlaybackController (slideController) {
m_slideController = slideController;
}
function registerQuiz(quiz) {
if (!m_quiz) {
m_quiz = quiz;
m_quiz.addListener(this);
if (m_started) {
start();
}
}
}
function start() {
if (m_quiz) {
if (m_quizState) {
m_quiz.restoreState(m_quizState);
} else {
m_quiz.startQuiz();
}
}
m_started = true;
}
function onDeactivateSlide() {
if (m_quiz) {
m_quizState = m_quiz.saveState();
m_quiz.removeListener(this);
m_quiz.deinitializeQuiz();
m_quiz = undefined;
}
m_started = false;
}
function onTimeout() {
}
function onTimer() {
}
function onChangeCurrentSlide(newSlideIndex, prevSlideIndex) {
}
function onChangeQuestionStatus(question, prevStatus) {
}
function onSetReviewMode() {
}
function onChangeQuizFinalizationState(enableFinalization) {
}
function onFinalizeQuiz() {
}
function onStartQuiz() {
}
function onChangeQuestionAnswer(question) {
}
function onChangeKeyboardFocusState(acquireFocus) {
m_slideController.onKeyboardFocusStateChanged(acquireFocus);
}
function onExitQuiz() {
m_slideController.leaveSlide();
}
function getQuiz() {
return(m_quiz);
}
var m_quiz = undefined;
var m_started = false;
}
Symbol 227 MovieClip [__Packages.fsplayer.core.CPlayerCoreComponentsFactory] Frame 0
class fsplayer.core.CPlayerCoreComponentsFactory
{
static var m_instance;
function CPlayerCoreComponentsFactory () {
}
static function getInstance() {
return(m_instance);
}
static function setInstance(instance) {
m_instance = instance;
}
}
Symbol 228 MovieClip [__Packages.fsplayer.core.IPlayerCoreComponentsFactory] Frame 0
interface fsplayer.core.IPlayerCoreComponentsFactory
{
}
Symbol 229 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionEffectsFactory] Frame 0
interface fsplayer.core.playback.transitions.ITransitionEffectsFactory
{
}
Symbol 230 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionParameters] Frame 0
interface fsplayer.core.playback.transitions.ITransitionParameters
{
}
Symbol 231 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionParameters] Frame 0
class fsplayer.core.playback.transitions.CTransitionParameters implements fsplayer.core.playback.transitions.ITransitionParameters
{
var m_oldSlide, m_newSlide, m_environment, m_hasOldSlide;
function CTransitionParameters (oldSlide, newSlide, environment) {
m_oldSlide = oldSlide;
m_newSlide = newSlide;
m_environment = environment;
m_hasOldSlide = oldSlide != undefined;
}
function hasOldSlide() {
return(m_hasOldSlide);
}
function getOldSlide() {
return(m_oldSlide);
}
function getNewSlide() {
return(m_newSlide);
}
function getEnvironment() {
return(m_environment);
}
}
Symbol 232 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackControllerEx] Frame 0
interface fsplayer.api.IPresentationPlaybackControllerEx extends fsplayer.api.IPresentationPlaybackController
{
}
Symbol 233 MovieClip [__Packages.fsplayer.core.playback.presentation.IPlaybackController] Frame 0
interface fsplayer.core.playback.presentation.IPlaybackController extends fsplayer.api.IPresentationPlaybackControllerEx
{
}
Symbol 234 MovieClip [__Packages.fsplayer.core.playback.sounds.ISoundPlaybackControllerEx] Frame 0
interface fsplayer.core.playback.sounds.ISoundPlaybackControllerEx extends fsplayer.api.ISoundController
{
}
Symbol 235 MovieClip [__Packages.fsplayer.ui.skins.IPresenterVideoWindow] Frame 0
interface fsplayer.ui.skins.IPresenterVideoWindow
{
}
Symbol 236 MovieClip [__Packages.fsplayer.api.IPresenterVideoController] Frame 0
interface fsplayer.api.IPresenterVideoController
{
}
Symbol 237 MovieClip [__Packages.fsplayer.api.IPresenterVideoListener] Frame 0
interface fsplayer.api.IPresenterVideoListener
{
}
Symbol 238 MovieClip [__Packages.fsplayer.core.loading.IPresentationBgSoundAssetLoadingController] Frame 0
interface fsplayer.core.loading.IPresentationBgSoundAssetLoadingController
{
}
Symbol 239 MovieClip [__Packages.fsplayer.core.ILoadingControllersFactory] Frame 0
interface fsplayer.core.ILoadingControllersFactory
{
}
Symbol 240 MovieClip [__Packages.fsplayer.core.loading.IThumbnailAssetLoadingController] Frame 0
interface fsplayer.core.loading.IThumbnailAssetLoadingController
{
}
Symbol 241 MovieClip [__Packages.fsplayer.res.images.IImageAssetLoadingListener] Frame 0
interface fsplayer.res.images.IImageAssetLoadingListener
{
}
Symbol 242 MovieClip [__Packages.fsplayer.res.images.IImageAsset] Frame 0
interface fsplayer.res.images.IImageAsset
{
}
Symbol 243 MovieClip [__Packages.fsplayer.res.images.IImageInstance] Frame 0
interface fsplayer.res.images.IImageInstance
{
}
Symbol 244 MovieClip [__Packages.fsplayer.core.loading.ISlideLoadingController] Frame 0
interface fsplayer.core.loading.ISlideLoadingController
{
}
Symbol 245 MovieClip [__Packages.fsplayer.res.slides.CSlideTransition] Frame 0
class fsplayer.res.slides.CSlideTransition implements fsplayer.res.slides.ISlideTransition
{
var m_environment, m_sounds, m_soundId, m_effectName, m_transitionsFactory, m_duration, m_repeatSound, m_autoChange, m_transitionSound;
function CSlideTransition (transitionNode, sounds, environment, autoChange) {
m_environment = environment;
m_sounds = sounds;
m_soundId = transitionNode.attributes.soundId;
m_effectName = transitionNode.attributes.name;
m_transitionsFactory = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().getTransitionEffectsFactory();
m_duration = m_transitionsFactory.calculateEffectDuration(parseFloat(transitionNode.attributes.duration));
m_repeatSound = transitionNode.attributes.looped == "1";
m_autoChange = autoChange;
}
function hasSound() {
return(m_soundId != "");
}
function getSound() {
if (!m_transitionSound) {
m_transitionSound = ((m_soundId == "-") ? (new fsplayer.res.sounds.CDummySlideSound("-")) : (m_sounds.getSound(m_soundId)));
}
return(m_transitionSound);
}
function getAutoChange() {
return(m_autoChange);
}
function getTransitionEffect(oldSlide, newSlide) {
var _local2 = new fsplayer.core.playback.transitions.CTransitionParameters(oldSlide, newSlide, m_environment);
return(m_transitionsFactory.getTransitionEffect(m_effectName, _local2));
}
function getDuration() {
return(m_duration);
}
function soundIsLooped() {
return(m_repeatSound);
}
function disableAutoChange() {
m_autoChange = false;
}
}
Symbol 246 MovieClip [__Packages.fsplayer.res.sounds.CDummySlideSound] Frame 0
class fsplayer.res.sounds.CDummySlideSound implements fsplayer.res.sounds.ISlideSoundEx
{
var m_id, m_listener;
function CDummySlideSound (id) {
m_id = id;
}
function isLoaded() {
return(true);
}
function getId() {
return(m_id);
}
function start(position, loops) {
}
function stop() {
}
function getSoundInstance() {
return(undefined);
}
function getPosition() {
return(0);
}
function getDuration() {
return(0);
}
function load(listener) {
}
function setListener(listener) {
m_listener = listener;
}
}
Symbol 247 MovieClip [__Packages.fsplayer.res.sounds.CSoundCommandsEx] Frame 0
class fsplayer.res.sounds.CSoundCommandsEx implements fsplayer.res.sounds.ISoundCommandsEx
{
var m_slideIndex, m_sounds, m_eventSounds;
function CSoundCommandsEx (slideIndex, soundCommandsNode, sounds, steps) {
m_slideIndex = slideIndex;
m_sounds = sounds;
var _local19 = soundCommandsNode.childNodes.length;
m_eventSounds = new Object();
var _local10 = 0;
while (_local10 < _local19) {
var _local4 = soundCommandsNode.childNodes[_local10];
if (_local4.nodeName == "playSound") {
var _local9 = _local4.attributes.soundId;
var _local13 = parseInt(_local4.attributes.frameIndex);
var _local12 = parseInt(_local4.attributes.slides);
var _local6 = _local4.attributes.repeat;
var _local7 = steps.getStepIndexByFrame(_local13);
var _local3 = steps.getStepEx(_local7);
var _local15 = Math.max(_local3.getPlayTime(), _local3.getPlayTimeFrameBased());
var _local14 = _local3.getStartTime() + ((_local15 / ((_local3.getEndFrame() - _local3.getStartFrame()) + 1)) * (_local13 - _local3.getStartFrame()));
var _local16 = slideIndex + Math.max(0, _local12 - 1);
var _local5 = m_eventSounds[_local9];
if (!_local5) {
_local5 = new Array();
m_eventSounds[_local9] = _local5;
}
var _local2 = new Object();
var _local11 = sounds.getSound(_local9);
var _local8 = parseInt(_local6);
_local2.startStep = _local7;
_local2.startTime = _local14;
_local2.duration = ((!isNaN(_local8)) ? (_local8 * _local11.getDuration()) : undefined);
_local2.endTime = ((_local2.duration != undefined) ? (_local14 + _local2.duration) : undefined);
_local2.endStep = (((_local6 == "untilNextClick") || (_local12 == 0)) ? (_local7 + 1) : undefined);
_local2.repeat = _local6;
_local2.loopsCount = _local8;
_local2.lastSlide = (((_local6 == "untilNextSlide") || ((_local11.getDuration() + _local2.startTime) > steps.getDuration())) ? (_local16) : (slideIndex));
_local5.push(_local2);
}
_local10++;
}
}
function getSlideEventSounds(core) {
var _local5 = new Array();
for (var _local7 in m_eventSounds) {
var _local2 = m_sounds.getSound(_local7);
var _local4 = m_eventSounds[_local7];
var _local3 = new fsplayer.res.sounds.CSlideEventSoundEx(_local2, m_slideIndex, _local4, core);
_local5.push(_local3);
}
return(new fsplayer.res.sounds.CSlideEventSoundsEx(m_slideIndex, _local5, core));
}
}
Symbol 248 MovieClip [__Packages.fsplayer.res.sounds.ISlideEventSoundEx] Frame 0
interface fsplayer.res.sounds.ISlideEventSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 249 MovieClip [__Packages.fsplayer.res.sounds.CSoundExImpl] Frame 0
class fsplayer.res.sounds.CSoundExImpl implements fsplayer.res.sounds.ISoundEx, fsplayer.res.sounds.ISlideSoundListenerEx
{
var m_sound, m_core, m_state;
function CSoundExImpl (sound, soundCore) {
m_sound = sound;
m_core = soundCore;
m_state = STATE_IDLE;
m_sound.setListener(this);
}
function onSlideSoundComplete(slideSound) {
}
function onPositionChanged(slideIndex, stepIndex, time) {
if (isSoundPlayingOnTime(slideIndex, stepIndex, time)) {
positionWasChanged(slideIndex, stepIndex, time);
}
}
function onStartSlideSwitching(slideIndex, autoStart) {
if (!isSoundPlayingOnSlide(slideIndex)) {
deactivateSound();
} else {
slideIndexWasChanged(slideIndex);
}
}
function onStartSlidePlayback(slideIndex) {
}
function deactivateSound() {
stop();
}
function positionWasChanged(slideIndex, stepIndex, time) {
}
function slideIndexWasChanged(slideIndex, autoStartSound) {
}
function isSoundPlayingOnTime(slideIndex, stepIndex, time) {
return(true);
}
function isSoundPlayingOnSlide(slideIndex) {
return(true);
}
function getId() {
return(m_sound.getId());
}
function start() {
startFrom(0);
}
function startFrom(pos) {
m_sound.start(pos, 1);
m_state = STATE_PLAYING;
}
function stop() {
m_sound.stop();
m_state = STATE_IDLE;
}
function unregister() {
stop();
m_core.unregisterSound(this);
onUnregisterSound();
}
function onUnregisterSound() {
}
function play() {
if (m_state == STATE_PAUSED) {
m_state = STATE_PLAYING;
m_sound.start(m_position, 1);
}
}
function pauseAt(pos) {
m_state = STATE_PAUSED;
m_position = pos;
m_sound.stop();
}
function pause() {
if (m_state == STATE_PLAYING) {
m_state = STATE_PAUSED;
m_position = m_sound.getPosition();
m_sound.stop();
}
}
function resync(slideIndex, stepIndex, time, playSound) {
}
function getDuration() {
return(m_sound.getDuration());
}
var m_position = 0;
static var STATE_IDLE = 0;
static var STATE_PLAYING = 1;
static var STATE_PAUSED = 2;
}
Symbol 250 MovieClip [__Packages.fsplayer.res.sounds.CSlideEventSoundEx] Frame 0
class fsplayer.res.sounds.CSlideEventSoundEx extends fsplayer.res.sounds.CSoundExImpl implements fsplayer.res.sounds.ISlideEventSoundEx
{
var m_slideIndex, m_events, m_soundCore, m_presentation, m_slides, m_currentEventIndex, stop, unregister, m_sound, getDuration, m_loopsCount, startFrom, pauseAt, start;
function CSlideEventSoundEx (sound, slideIndex, events, soundCore) {
super(sound, soundCore);
m_slideIndex = slideIndex;
m_events = events;
m_soundCore = soundCore;
m_presentation = soundCore.getPresentation();
m_slides = m_presentation.getSlides();
}
function positionWasChanged(slideIndex, stepIndex, time) {
if (slideIndex == m_slideIndex) {
var _local2 = getEventIndexByTime(stepIndex, time);
if ((m_currentEventIndex != _local2) && (_local2 != undefined)) {
startEventSound(m_events[_local2], 0);
} else if (_local2 == undefined) {
stop();
}
m_currentEventIndex = _local2;
}
}
function deactivateSound() {
var _local2 = m_events[m_events.length - 1];
if (_local2.lastSlide == m_slideIndex) {
unregister();
} else {
stop();
}
}
function getEventIndexByTime(stepIndex, time) {
var _local6 = m_sound.getDuration();
var _local3 = m_events.length;
while (_local3 >= 0) {
var _local2 = m_events[_local3];
if ((_local2.startStep < stepIndex) && (_local2.endStep == undefined)) {
return(_local3);
}
if (_local2.startStep == stepIndex) {
if (_local2.startTime <= time) {
if ((_local2.endTime == undefined) || (time < _local2.endTime)) {
return(_local3);
}
}
}
_local3--;
}
return(undefined);
}
function isSoundPlayingOnSlide(slideIndex) {
return((m_slideIndex <= slideIndex) && (slideIndex <= m_events[m_events.length - 1].lastSlide));
}
function startEventSound(evt, pos, playSound) {
var _local2 = getDuration();
var _local4 = int(Math.floor(pos / _local2));
var _local3 = pos - (_local4 * _local2);
if (!isNaN(evt.loopsCount)) {
m_loopsCount = evt.loopsCount - _local4;
} else {
m_loopsCount = 0;
}
if (playSound || (playSound == undefined)) {
startFrom(_local3);
} else {
pauseAt(_local3);
}
}
function onSlideSoundComplete(slideSound) {
if ((m_loopsCount == 0) || ((--m_loopsCount) != 0)) {
start();
}
}
function resync(slideIndex, stepIndex, time, playSound) {
if (slideIndex == m_slideIndex) {
var _local7 = getEventIndexByTime(stepIndex, time);
m_currentEventIndex = _local7;
if (_local7 != undefined) {
var _local5 = m_events[_local7];
var _local6 = time - _local5.startTime;
startEventSound(_local5, _local6, playSound);
} else {
stop();
}
} else if (slideIndex > m_slideIndex) {
m_currentEventIndex = m_events.length - 1;
var _local5 = m_events[m_currentEventIndex];
if (slideIndex <= _local5.lastSlide) {
if ((((_local5.duration == undefined) || ((_local5.duration + _local5.startTime) > m_slides.getSlide(slideIndex).getDuration())) || (_local5.loopsCount == 1)) || (_local5.repeat == "untilNextSlide")) {
var _local6 = m_slides.getSlide(m_slideIndex).getDuration() - _local5.startTime;
_local6 = _local6 + (m_slides.getSlide(slideIndex).getTransition().getDuration() + time);
var _local2 = m_slideIndex + 1;
while (_local2 < slideIndex) {
var _local3 = m_slides.getSlide(_local2);
_local6 = _local6 + (_local3.getTransition().getDuration() + _local3.getDuration());
_local2++;
}
startEventSound(_local5, _local6, playSound);
} else {
deactivateSound();
}
} else {
deactivateSound();
}
}
}
function onUnregisterSound() {
m_currentEventIndex = undefined;
}
}
Symbol 251 MovieClip [__Packages.fsplayer.res.sounds.CSlideEventSoundsEx] Frame 0
class fsplayer.res.sounds.CSlideEventSoundsEx implements fsplayer.res.sounds.ISlideEventSoundsEx
{
var m_slideIndex, m_sounds, m_soundPlaybackCore;
function CSlideEventSoundsEx (slideIndex, eventSounds, soundPlaybackCore) {
m_slideIndex = slideIndex;
m_sounds = eventSounds;
m_soundPlaybackCore = soundPlaybackCore;
}
function register() {
var _local4 = m_sounds.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_sounds[_local2];
m_soundPlaybackCore.registerSound(_local3);
_local2++;
}
}
}
Symbol 252 MovieClip [__Packages.fsplayer.util.ITimerListener] Frame 0
interface fsplayer.util.ITimerListener
{
}
Symbol 253 MovieClip [__Packages.fsplayer.util.ITimer] Frame 0
interface fsplayer.util.ITimer
{
}
Symbol 254 MovieClip [__Packages.fsplayer.core.playback.slides.CSlidePlaybackSynchronizer] Frame 0
class fsplayer.core.playback.slides.CSlidePlaybackSynchronizer implements fsplayer.core.playback.slides.ISlidePlaybackSynchronizer, fsplayer.util.ITimerListener, fsplayer.core.playback.slides.ISlideInstancePlayerListener
{
var m_steps, m_slideInstancePlayer, m_timer, m_listener, m_oldTime, m_stepIndexNotified;
function CSlidePlaybackSynchronizer (steps, slideInstancePlayer, timer) {
m_steps = steps;
m_slideInstancePlayer = slideInstancePlayer;
m_slideInstancePlayer.setFrameIndex(0);
m_timer = ((timer != undefined) ? (timer) : (new fsplayer.util.CTimer()));
m_timer.setListener(this);
m_timer.stopAt(0);
m_slideInstancePlayer.setListener(this);
var _local5 = new Array();
var _local6 = steps.getStepsCount();
var _local2 = 0;
while (_local2 < _local6) {
var _local3 = steps.getStep(_local2);
if (_local3.getPauseTime() == undefined) {
_local5.push(_local3.getPauseStartTime());
}
_local2++;
}
m_timer.setCheckPoints(_local5);
m_timer.setTimeLimit(steps.getDuration());
}
function play() {
m_timer.resume();
m_playing = true;
m_suspended = false;
update();
}
function pause() {
m_timer.stop();
m_playing = false;
m_suspended = false;
update();
}
function playFrom(time) {
m_playing = true;
m_suspended = false;
m_timer.startFrom(time);
update();
}
function pauseAt(time) {
m_playing = false;
m_suspended = false;
m_timer.stopAt(time);
update();
}
function getTime() {
return(m_timer.getTime());
}
function isPlaying() {
return(m_playing);
}
function synchronize() {
m_timer.refreshState();
update();
}
function onEnterFrame() {
synchronize();
m_listener.onSlideEnterFrame();
}
function update() {
if (isSuspended()) {
var _local5 = m_steps.getStepEx(m_currentStepIndex);
m_slideInstancePlayer.setFrameIndex(_local5.getEndFrame());
} else {
var _local2 = m_timer.getTime();
var _local3 = m_steps.getFrameIndexByTime(_local2);
var _local4 = m_steps.getStepIndexByFrame(_local3);
m_slideInstancePlayer.setFrameIndex(_local3);
setCurrentStepIndex(_local4);
}
var _local2 = m_timer.getTime();
if (m_oldTime != _local2) {
m_listener.onPositionChanged(_local2);
}
m_oldTime = _local2;
if (m_stepIndexNotified === undefined) {
m_stepIndexNotified = m_currentStepIndex;
m_listener.onStepIndexChanged(m_currentStepIndex);
}
}
function playFromStep(stepIndex) {
var _local2 = m_steps.getStepEx(stepIndex);
var _local3 = _local2.getStartTime();
setCurrentStepIndex(stepIndex);
playFrom(_local3);
}
function playFromStepEnd(stepIndex) {
var _local2 = m_steps.getStepEx(stepIndex);
var _local3 = _local2.getPauseStartTime();
setCurrentStepIndex(stepIndex);
m_timer.startFrom(_local3);
update();
}
function pauseAtStepStart(stepIndex) {
var _local2 = m_steps.getStepEx(stepIndex);
var _local3 = _local2.getStartTime();
var _local4 = _local2.getPauseEndTime();
setCurrentStepIndex(stepIndex);
m_playing = false;
m_suspended = _local4 === _local3;
m_timer.stopAt(_local3);
update();
}
function pauseAtStepEnd(stepIndex) {
var _local3 = m_steps.getStepEx(stepIndex);
var _local5 = _local3.getPauseStartTime();
var _local2 = _local3.getPauseEndTime();
setCurrentStepIndex(stepIndex);
m_playing = false;
m_suspended = true;
var _local4 = ((_local2 == undefined) ? (_local5) : (_local2));
m_timer.stopAt(_local4);
update();
}
function onTimeLimitReached(timer) {
suspend();
m_listener.onSlideFinished();
}
function onCheckPointPassed(timer, checkPointIndex) {
suspend();
}
function getCurrentStepIndex() {
return(m_currentStepIndex);
}
function getPosition() {
return(m_timer.getTime() / m_steps.getDuration());
}
function isSuspended() {
return(m_suspended);
}
function suspend() {
m_suspended = true;
}
function setCurrentStepIndex(index) {
var _local3 = m_currentStepIndex;
m_currentStepIndex = index;
if (_local3 != index) {
m_stepIndexNotified = index;
m_listener.onStepIndexChanged(index);
}
}
function setListener(listener) {
m_listener = listener;
}
function activate() {
m_currentStepIndex = 0;
m_stepIndexNotified = undefined;
m_timer.stopAt(0);
m_oldTime = undefined;
m_playing = false;
m_suspended = false;
m_slideInstancePlayer.show();
}
function deactivate() {
}
var m_playing = false;
var m_suspended = false;
var m_currentStepIndex = 0;
}
Symbol 255 MovieClip [__Packages.fsplayer.util.CTimer] Frame 0
class fsplayer.util.CTimer implements fsplayer.util.ITimer
{
var m_timeLimit;
function CTimer () {
}
function startFrom(time) {
m_running = true;
m_time = time;
m_oldTime = time;
refreshTick();
m_startTick = m_tick;
m_startTime = m_time;
}
function stopAt(time) {
m_running = false;
m_time = time;
m_oldTime = time;
}
function stop() {
m_running = false;
}
function resume() {
m_running = true;
refreshTick();
m_startTick = m_tick;
m_startTime = m_time;
}
function getTime() {
return(m_time);
}
function isRunning() {
return(m_running);
}
function setListener(listener) {
m_listener = listener;
}
function setTimeLimit(timeLimit) {
m_timeLimit = timeLimit;
fixTimeLimit();
}
function getTimeLimit() {
return(m_timeLimit);
}
function setCheckPoints(checkPoints) {
m_checkpoints = checkPoints;
fixTimeLimit();
}
function getCheckPoints() {
return(m_checkpoints);
}
function refreshState() {
refreshTick();
if (m_running) {
m_oldTime = m_time;
m_time = ((m_tick - m_startTick) / 1000) + m_startTime;
if (m_oldTime < m_time) {
var _local4 = m_checkpoints.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = m_checkpoints[_local2];
if ((m_oldTime < _local3) && (_local3 <= m_time)) {
stopAt(_local3);
m_listener.onCheckPointPassed(this, _local2);
break;
}
_local2++;
}
if ((m_running && (m_timeLimit != undefined)) && (m_time >= m_timeLimit)) {
stopAt(m_timeLimit);
m_listener.onTimeLimitReached(this);
}
}
}
}
function refreshTick() {
m_tick = fsplayer.util.CTimeUtils.getTickCount();
}
function getTickInterval() {
return(fsplayer.util.CTimeUtils.getTickInterval(m_tick, m_startTick));
}
function fixTimeLimit() {
var _local2 = m_checkpoints.length - 1;
if ((m_timeLimit != undefined) && (_local2 >= 0)) {
m_timeLimit = Math.max(m_timeLimit, m_checkpoints[_local2]);
}
}
var m_time = 0;
var m_oldTime = 0;
var m_running = false;
var m_tick = 0;
var m_startTick = 0;
var m_startTime = 0;
var m_listener = undefined;
var m_checkpoints = new Array();
}
Symbol 256 MovieClip [__Packages.fsplayer.util.CTimeUtils] Frame 0
class fsplayer.util.CTimeUtils
{
function CTimeUtils () {
}
static function getTickCount() {
return(getTimer());
}
static function getTickInterval(t, t0) {
return(t - t0);
}
static function getTickCountInterval(t0) {
return(getTickInterval(getTickCount(), t0));
}
}
Symbol 257 MovieClip [__Packages.fsplayer.ui.skins.ISkinEx] Frame 0
interface fsplayer.ui.skins.ISkinEx extends fsplayer.ui.skins.ISkin
{
}
Symbol 258 MovieClip [__Packages.fsplayer.ui.skins.asset.CSkinAssetImpl] Frame 0
class fsplayer.ui.skins.asset.CSkinAssetImpl implements fsplayer.ui.skins.asset.ISkinAsset, fsplayer.res.assets.IAssetLoadingListener
{
var m_listener, m_skinCreator;
function CSkinAssetImpl (loader, target, source, listener) {
m_listener = listener;
loader.loadAsset(target, source, this);
}
function createInstance(name, depth) {
if (depth == undefined) {
depth = m_skinCreator.getNextHighestDepth();
}
var _local2 = m_skinCreator.createEmptyMovieClip(name, depth);
return(m_skinCreator.createSkin(_local2));
}
function onAssetLoadInit(asset) {
m_skinCreator = asset.createInstance("skinCreator");
var thisPtr = this;
m_skinCreator.onEnterFrame = function () {
thisPtr.skinIsReady();
delete this.onEnterFrame;
};
}
function skinIsReady() {
m_listener.onSkinAssetLoadInit(this);
}
function onAssetLoadStart(asset) {
}
function onAssetLoadComplete(asset) {
}
}
Symbol 259 MovieClip [__Packages.fsplayer.core.playback.presentation.IPlaybackModeSwitcher] Frame 0
interface fsplayer.core.playback.presentation.IPlaybackModeSwitcher
{
}
Symbol 260 MovieClip [__Packages.fsplayer.core.playback.presentation.CPlaybackController] Frame 0
class fsplayer.core.playback.presentation.CPlaybackController implements fsplayer.core.playback.presentation.IPlaybackController, fsplayer.core.loading.ISlideLoadingListener, fsplayer.core.playback.presentation.IPlaybackModeSwitcher
{
var m_presentation, m_slideLoadingController, m_playbackSettings, PM_PLAYING, PM_PAUSED, PM_WAITING, PM_SWITCHING, PM_SEEKING, m_playbackMode, m_playing, m_soundController, m_listeners, m_firstSlideIndex, m_lastSlideIndex, m_lastViewedSlide, m_presenterVideoController;
function CPlaybackController (presentation, slideLoadingController, bgSoundLoadingController, playbackSettings) {
m_presentation = presentation;
m_slideLoadingController = slideLoadingController;
m_slideLoadingController.setListener(this);
m_playbackSettings = playbackSettings;
PM_PLAYING = new fsplayer.core.playback.presentation.CPresentationPlaybackModePlaying(this);
PM_PAUSED = new fsplayer.core.playback.presentation.CPresentationPlaybackModePaused(this);
PM_WAITING = new fsplayer.core.playback.presentation.CPresentationPlaybackModeWaiting(this);
PM_SWITCHING = new fsplayer.core.playback.presentation.CPresentationPlaybackModeSlideSwitching(this, getSlides());
PM_SEEKING = new fsplayer.core.playback.presentation.CPresentationPlaybackModeSeeking(this);
m_playbackMode = PM_WAITING;
m_playing = true;
m_soundController = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createSoundPlaybackController(presentation, this, bgSoundLoadingController);
m_listeners = new Array();
var _local2 = getSlides().getVisibleCount();
if (_local2 > 0) {
m_firstSlideIndex = getSlides().visibleIndexToIndex(0);
m_lastSlideIndex = getSlides().visibleIndexToIndex(_local2 - 1);
} else {
m_firstSlideIndex = 0;
m_lastSlideIndex = getSlides().getCount() - 1;
}
}
function getCurrentSlideIndex() {
return(m_currentSlideIndex);
}
function gotoSlide(slideIndex, autoStart) {
if (!m_gotoSlideCalled) {
m_gotoSlideCalled = true;
}
m_soundController.needResync();
m_soundController.resyncOnPlay();
gotoSlideNoResync(slideIndex, autoStart);
}
function gotoSlideNoResync(slideIndex, autoStart) {
if ((slideIndex >= 0) && (slideIndex < getSlidesCount())) {
if (slideIndex != getCurrentSlideIndex()) {
var _local4 = getSlide(slideIndex);
if (!_local4.isLoaded()) {
waitForSlide(slideIndex, autoStart);
} else {
switchToSlide(slideIndex, autoStart);
}
} else {
restartCurrentSlide(autoStart);
}
}
}
function registerVideoClip(videoClip, slideIndex, autoStart, looping) {
var _local3 = getSlide(slideIndex);
var _local2 = _local3.getPlaybackController();
_local2.registerVideoClip(videoClip, autoStart, looping);
}
function gotoLastViewedSlide(autoStart) {
var _local2 = getCurrentSlideIndex();
if (((_local2 != undefined) && (m_lastViewedSlide != undefined)) && (_local2 != m_lastViewedSlide)) {
gotoSlide(m_lastViewedSlide, autoStart);
}
}
function getURL(url, target) {
getURL (url, target);
}
function setPlaybackMode(playbackMode) {
if (m_playbackMode != undefined) {
m_playbackMode.onModeSwitching();
}
m_playbackMode = playbackMode;
}
function play() {
if (!playbackControlIsAccessible()) {
return(undefined);
}
if (isPausedInternal()) {
var _local6 = getCurrentSlide();
if (_local6.isLoaded()) {
var _local4 = getCurrentStepIndex();
var _local5 = _local6.getAnimationSteps();
var _local13 = _local5.getStepsCount() - 1;
var _local2 = getCurrentSlidePlaybackTime();
var _local3 = _local5.getStepEx(_local4);
var _local8 = _local3.getPauseStartTime();
var _local9 = _local2 < _local8;
var _local14 = !_local9;
var _local7 = _local3.getPauseTime() != undefined;
var _local11 = _local4 == _local13;
var _local10 = (_local8 - _local2) < 0.01;
var _local12 = _local2 == _local3.getPauseEndTime();
if (_local11) {
if (_local12 || (_local14 && (!_local7))) {
gotoNextSlide();
} else {
startPlayback();
}
} else if (_local7 || (_local9 && (!_local10))) {
startPlayback();
} else {
playFromStep(_local4 + 1);
}
}
}
}
function pause() {
if (!playbackControlIsAccessible()) {
return(undefined);
}
if (!isPausedInternal()) {
var _local2 = getCurrentSlide();
if ((_local2 != undefined) && (_local2.isLoaded())) {
pausePlayback();
}
}
}
function pauseCurrentSlideAt(position) {
if (!playbackControlIsAccessible()) {
return(undefined);
}
var _local2 = getCurrentSlide();
if ((_local2 != undefined) && (_local2.isLoaded())) {
pausePlaybackAt(position);
}
}
function playCurrentSlideFrom(position) {
if (!playbackControlIsAccessible()) {
return(undefined);
}
var _local2 = getCurrentSlide();
if ((_local2 != undefined) && (_local2.isLoaded())) {
startPlaybackFrom(position);
}
}
function isPausedInternal() {
return(m_playbackMode == PM_PAUSED);
}
function isPlayingInternal() {
return((m_playbackMode == PM_PLAYING) || (m_playbackMode == PM_SWITCHING));
}
function isPlaying() {
return(m_playing);
}
function onSlideTransitionComplete() {
m_soundController.onStartSlidePlayback(getCurrentSlideIndex());
getCurrentSlide().getPlaybackController().onSlideTransitionComplete();
}
function onSlideLoadInit(slide) {
m_playbackMode.onSlideLoadInit(slide);
FireEvent("onSlideLoadingComplete", slide.getIndex());
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function restartCurrentSlide(autoStart) {
if (autoStart || (autoStart == undefined)) {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.startSlide(getCurrentSlide());
m_soundController.resync();
FirePlaybackEventNoDup();
} else {
pauseCurrentSlideAt(0);
}
}
function switchToSlide(slideIndex, autoStart) {
if (slideIndex < m_presentation.getSlides().getCount()) {
m_currentSlideIndex = slideIndex;
setPlaybackMode(PM_SWITCHING);
PM_SWITCHING.switchToSlide(getCurrentSlide(), autoStart);
FirePlaybackEventNoDup();
}
}
function onSlideTransitionStart(oldSlideIndex, newSlideIndex, autoStart) {
m_soundController.onStartSlideSwitching(newSlideIndex, autoStart);
preloadNextSlide();
if (oldSlideIndex != undefined) {
m_lastViewedSlide = oldSlideIndex;
}
m_oldStep = undefined;
getSlides().slideChanged(m_currentSlideIndex);
FireEvent("onCurrentSlideIndexChanged", m_currentSlideIndex);
}
function gotoSlideLastStepEnd(slideIndex) {
if ((slideIndex < m_presentation.getSlides().getCount()) && (slideIndex >= 0)) {
m_currentSlideIndex = slideIndex;
setPlaybackMode(PM_SWITCHING);
PM_SWITCHING.switchToSlide(getCurrentSlide(), false);
setPlaybackMode(PM_PAUSED);
PM_PAUSED.gotoLastStepEnd(getCurrentSlide());
FirePlaybackEventNoDup();
}
}
function waitForSlide(slideIndex, autoStart) {
m_slideLoadingController.enqueueSlide(slideIndex);
setPlaybackMode(PM_WAITING);
PM_WAITING.waitForSlide(slideIndex, autoStart);
FirePlaybackEventNoDup();
}
function pausePlayback() {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseSlide(getCurrentSlide());
m_soundController.pause();
FirePlaybackEventNoDup();
}
function pausePlaybackAt(position) {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseSlideAt(getCurrentSlide(), position);
m_soundController.pause();
FirePlaybackEventNoDup();
}
function startPlayback() {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.playSlide(getCurrentSlide());
m_soundController.play();
FirePlaybackEventNoDup();
}
function startPlaybackFrom(position) {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.playSlideFrom(getCurrentSlide(), position);
FirePlaybackEventNoDup();
}
function onSlidePlaybackComplete() {
var _local3 = getCurrentSlide();
if (!m_visibleNavigation) {
var _local2 = getCurrentSlideIndex() + 1;
var _local4 = _local2 == getSlidesCount();
if (_local4) {
FireEvent("onPresentationPlaybackComplete");
if (m_presentation.isLooped() && (m_automaticSlideSwitching)) {
gotoSlide(0);
}
} else {
var _local5 = _local3.getTransition().getAutoChange();
if (_local5 && (m_automaticSlideSwitching)) {
gotoSlideNoResync(_local2);
}
}
} else {
var _local4 = getNextSlideIndex() == undefined;
if (_local4) {
FireEvent("onPresentationPlaybackComplete");
if (m_presentation.isLooped() && (m_automaticSlideSwitching)) {
gotoVisibleSlide(0);
}
} else {
var _local5 = _local3.getTransition().getAutoChange();
if (_local5 && (m_automaticSlideSwitching)) {
gotoNextVisibleSlideNoResyncIfNear();
}
}
}
}
function enableAutomaticSlideSwitching(autoSwitch) {
m_automaticSlideSwitching = autoSwitch;
}
function getAutomaticSlideSwitching() {
return(m_automaticSlideSwitching);
}
function preloadNextSlide() {
var _local2 = getCurrentSlideIndex() + 1;
var _local3 = (_local2 < getSlidesCount()) && (!getSlide(_local2).isLoaded());
if (_local3) {
m_slideLoadingController.enqueueSlide(_local2);
}
}
function getSlidesCount() {
return(getSlides().getCount());
}
function getSlides() {
return(m_presentation.getSlides());
}
function getSlide(slideIndex) {
return(getSlides().getSlide(slideIndex));
}
function getCurrentSlide() {
var _local2 = getCurrentSlideIndex();
if (_local2 != undefined) {
return(getSlide(_local2));
}
return(undefined);
}
function FireEvent() {
var _local10 = m_listeners.length;
var _local9 = arguments[0];
var _local8 = arguments.length;
var _local7 = new Array();
var _local3 = 1;
while (_local3 < _local8) {
_local7.push(arguments[_local3]);
_local3++;
}
var _local4 = 0;
while (_local4 < _local10) {
var _local5 = m_listeners[_local4];
var _local6 = _local5[_local9];
if (_local6 != undefined) {
_local6.apply(_local5, _local7);
}
_local4++;
}
}
function FirePlaybackEventNoDup() {
if (isPlayingInternal() != m_playing) {
m_playing = !m_playing;
FireEvent((m_playing ? "onStartPlayback" : "onPausePlayback"));
}
}
function onSlidePositionChanged() {
FireEvent("onSlidePositionChanged", getCurrentSlidePlaybackPosition());
var _local2 = getCurrentStepIndex();
if (_local2 != m_oldStep) {
m_oldStep = _local2;
FireEvent("onAnimationStepChanged", _local2);
}
var _local3 = getCurrentSlideDuration() * getCurrentSlidePlaybackPosition();
m_soundController.onPositionChanged(getCurrentSlideIndex(), _local2, _local3);
}
function gotoNextSlide(autoStart) {
if (!m_visibleNavigation) {
gotoSlide(getCurrentSlideIndex() + 1, autoStart);
} else {
gotoNextVisibleSlide(autoStart);
}
}
function gotoNextSlideNoResync() {
gotoSlideNoResync(getCurrentSlideIndex() + 1);
}
function gotoPreviousSlide(autoStart) {
if (!m_visibleNavigation) {
gotoSlide(getCurrentSlideIndex() - 1, autoStart);
} else {
gotoPreviousVisibleSlide(autoStart);
}
}
function seek(position) {
if (!playbackControlIsAccessible()) {
return(undefined);
}
if (m_playbackMode != PM_SEEKING) {
var _local2 = isPlayingInternal();
setPlaybackMode(PM_SEEKING);
PM_SEEKING.startSeek(getCurrentSlide(), _local2);
FirePlaybackEventNoDup();
}
PM_SEEKING.seekTo(position);
if (m_presenterVideoController) {
m_presenterVideoController.seek(position * getCurrentSlideDuration());
}
}
function endSeek(resumePlayback) {
if (!playbackControlIsAccessible()) {
return(undefined);
}
if (m_playbackMode == PM_SEEKING) {
if ((resumePlayback == true) || ((resumePlayback == undefined) && (PM_SEEKING.getPlayState()))) {
startPlayback();
} else {
pausePlayback();
}
}
}
function onSeek() {
m_soundController.onSeek();
}
function onEndSeek() {
m_soundController.onEndSeek();
}
function playbackControlIsAccessible() {
return(m_currentSlideIndex != undefined);
}
function getCurrentSlidePlaybackPosition() {
return(getCurrentSlide().getPlaybackController().getPosition());
}
function getCurrentSlideDuration() {
return(getCurrentSlide().getDuration());
}
function getSoundPlaybackController() {
return(m_soundController);
}
function gotoStepEnd(stepIndex) {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.gotoStepEnd(getCurrentSlide(), stepIndex);
m_soundController.resyncOnPlay();
m_soundController.play();
FirePlaybackEventNoDup();
}
function gotoPreviousStep() {
var _local3 = getCurrentStepIndex();
if (_local3 > 0) {
pauseAtStepEnd(_local3 - 1);
} else {
var _local6 = getCurrentSlide();
var _local5 = _local6.getAnimationSteps();
var _local7 = _local5.getStepEx(0);
var _local4 = getCurrentSlidePlaybackTime();
if (_local4 == 0) {
if (!m_visibleNavigation) {
gotoSlideLastStepEnd(getCurrentSlideIndex() - 1);
} else {
var _local2 = getSlides().getVisibleSlideNavigationIndex(getCurrentSlide().getIndex(), false);
if (_local2 != undefined) {
gotoSlideLastStepEnd(_local2);
}
}
} else {
pauseAtStepStart(0);
}
}
}
function getCurrentSlidePlaybackTime() {
return(getCurrentSlidePlaybackPosition() * getCurrentSlideDuration());
}
function gotoNextStep() {
var _local2 = getCurrentStepIndex();
var _local4 = getCurrentSlide().getAnimationSteps();
var _local5 = _local4.getStepsCount() - 1;
var _local7 = getCurrentSlidePlaybackTime();
var _local3 = _local4.getStepEx(_local2);
var _local6 = _local7 < _local3.getPauseStartTime();
if (_local2 < _local5) {
if (isPausedInternal()) {
play();
} else if (_local6 || (_local3.getPauseTime() != undefined)) {
playFromStep(_local2 + 1);
} else {
playFromStepNoResync(_local2 + 1);
}
} else if (isPausedInternal()) {
play();
} else if (_local6) {
gotoStepEnd(_local5);
} else if (m_visibleNavigation) {
gotoNextVisibleSlideNoResyncIfNear();
} else {
gotoNextSlideNoResync();
}
}
function getCurrentStepIndex() {
return(getCurrentSlide().getPlaybackController().getCurrentStepIndex());
}
function setAnimationStepPause(pause) {
m_playbackSettings.setStepAdvancePause(pause);
}
function playFromStep(stepIndex) {
m_soundController.resyncOnPlay();
playFromStepNoResync(stepIndex);
}
function playFromStepNoResync(stepIndex) {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.playFromStep(getCurrentSlide(), stepIndex);
m_soundController.play();
FirePlaybackEventNoDup();
}
function pauseAtStepStart(stepIndex) {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseAtStepStart(getCurrentSlide(), stepIndex);
m_soundController.pause();
m_soundController.resyncOnPlay();
FirePlaybackEventNoDup();
}
function pauseAtStepEnd(stepIndex) {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseAtStepEnd(getCurrentSlide(), stepIndex);
m_soundController.pause();
m_soundController.resyncOnPlay();
FirePlaybackEventNoDup();
}
function getCurrentVisibleSlideIndex() {
return(getCurrentSlide().getVisibleIndex());
}
function gotoVisibleSlide(visibleSlideIndex, autoStart) {
gotoSlide(getSlides().visibleIndexToIndex(visibleSlideIndex), autoStart);
}
function getCurSldIndexNoUndefined() {
if (getCurrentSlideIndex() == undefined) {
if (!m_visibleNavigation) {
return(0);
}
return(getSlides().visibleIndexToIndex(0));
}
return(getCurrentSlideIndex());
}
function getNextSlideIndex() {
return(getSlides().getVisibleSlideNavigationIndex(getCurSldIndexNoUndefined(), true));
}
function getPreviousSlideIndex() {
return(getSlides().getVisibleSlideNavigationIndex(getCurSldIndexNoUndefined(), false));
}
function gotoNextVisibleSlide(autoStart) {
gotoSlide(getSlides().getVisibleSlideNavigationIndex(getCurSldIndexNoUndefined(), true), autoStart);
}
function gotoNextVisibleSlideNoResyncIfNear(autoStart) {
var _local3 = getCurrentSlideIndex();
if (_local3 == undefined) {
gotoSlide(getSlides().getVisibleSlideNavigationIndex(getCurSldIndexNoUndefined(), true), autoStart);
} else {
var _local2 = getSlides().getVisibleSlideNavigationIndex(getCurSldIndexNoUndefined(), true);
if (_local2 != undefined) {
if ((_local2 - _local3) == 1) {
gotoSlideNoResync(_local2, autoStart);
} else {
gotoSlide(_local2, autoStart);
}
}
}
}
function gotoPreviousVisibleSlide(autoStart) {
gotoSlide(getSlides().getVisibleSlideNavigationIndex(getCurSldIndexNoUndefined(), false), autoStart);
}
function gotoFirstSlide(autoStart) {
gotoSlide(m_firstSlideIndex, autoStart);
}
function gotoLastSlide(autoStart) {
gotoSlide(m_lastSlideIndex, autoStart);
}
function createPresenterVideoController(presenterVideoWindow) {
m_presenterVideoController = new fsplayer.core.playback.video.CPresenterVideoController(presenterVideoWindow, this);
return(m_presenterVideoController);
}
function registerQuiz(slideIndex, quiz) {
var _local2 = getSlide(slideIndex);
var _local3 = _local2.getPlaybackController();
_local3.registerQuiz(quiz);
_local2.disableAutoChange();
}
function getTransitionPhase() {
if (m_playbackMode == PM_SWITCHING) {
return(PM_SWITCHING.getTransitionPhase());
}
return(1);
}
function onKeyboardFocusStateChanged(acquireFocus) {
FireEvent("onKeyboardFocusStateChanged", acquireFocus);
}
function getActiveQuiz() {
var _local2 = getCurrentSlide();
if (_local2 != undefined) {
return(_local2.getPlaybackController().getSlideQuiz());
}
return(undefined);
}
function onLeaveCurrentSlide() {
gotoNextSlide();
}
var m_currentSlideIndex = undefined;
var m_oldStep = undefined;
var m_automaticSlideSwitching = true;
var m_visibleNavigation = true;
var m_gotoSlideCalled = false;
}
Symbol 261 MovieClip [__Packages.fsplayer.core.playback.presentation.IPresentationPlaybackMode] Frame 0
interface fsplayer.core.playback.presentation.IPresentationPlaybackMode
{
}
Symbol 262 MovieClip [__Packages.fsplayer.core.playback.presentation.CPresentationPlaybackModePlaying] Frame 0
class fsplayer.core.playback.presentation.CPresentationPlaybackModePlaying implements fsplayer.core.playback.presentation.IPresentationPlaybackMode, fsplayer.core.playback.slides.ISlidePlaybackListenerEx
{
var m_modeSwitcher, m_playbackController;
function CPresentationPlaybackModePlaying (modeSwitcher) {
m_modeSwitcher = modeSwitcher;
}
function playSlide(slide) {
setSlide(slide);
m_playbackController.play();
}
function startSlide(slide) {
playSlideFrom(slide, 0);
}
function playSlideFrom(slide, position) {
setSlide(slide);
m_playbackController.playFrom(position);
}
function playFromStep(slide, stepIndex) {
setSlide(slide);
m_playbackController.playFromStep(stepIndex);
}
function onSlideLoadInit(slide) {
}
function onModeSwitching() {
if (m_playbackController != undefined) {
m_playbackController.setListener(undefined);
m_playbackController = undefined;
}
}
function onSlideEnterFrame() {
}
function onSlidePositionChanged(position) {
m_modeSwitcher.onSlidePositionChanged();
}
function onSlidePlaybackComplete() {
m_modeSwitcher.onSlidePlaybackComplete();
}
function onKeyboardFocusStateChanged(acquireFocus) {
m_modeSwitcher.onKeyboardFocusStateChanged(acquireFocus);
}
function setSlide(slide) {
m_playbackController = slide.getPlaybackController();
m_playbackController.setListener(this);
}
function gotoStepEnd(slide, stepIndex) {
setSlide(slide);
m_playbackController.pauseAtStepEnd(stepIndex);
}
function onLeaveCurrentSlide() {
m_modeSwitcher.onLeaveCurrentSlide();
}
}
Symbol 263 MovieClip [__Packages.fsplayer.core.playback.presentation.CPresentationPlaybackModePaused] Frame 0
class fsplayer.core.playback.presentation.CPresentationPlaybackModePaused implements fsplayer.core.playback.presentation.IPresentationPlaybackMode, fsplayer.core.playback.slides.ISlidePlaybackListenerEx
{
var m_playbackModeSwitcher, m_playbackController;
function CPresentationPlaybackModePaused (modeSwitcher) {
m_playbackModeSwitcher = modeSwitcher;
}
function setSlide(slide) {
m_playbackController = slide.getPlaybackController();
m_playbackController.setListener(this);
}
function pauseSlide(slide) {
setSlide(slide);
m_playbackController.pause();
}
function pauseSlideAt(slide, position) {
setSlide(slide);
m_playbackController.pauseAt(position);
}
function onSlideLoadInit(slide) {
}
function onModeSwitching() {
if (m_playbackController != undefined) {
m_playbackController.setListener(undefined);
m_playbackController = undefined;
}
}
function onSlidePositionChanged(position) {
m_playbackModeSwitcher.onSlidePositionChanged();
}
function onSlideEnterFrame() {
}
function onSlidePlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
m_playbackModeSwitcher.onKeyboardFocusStateChanged(acquireFocus);
}
function gotoLastStepEnd(slide) {
setSlide(slide);
var _local2 = slide.getAnimationSteps().getStepsCount() - 1;
m_playbackController.pauseAtStepEnd(_local2);
}
function pauseAtStepStart(slide, stepIndex) {
setSlide(slide);
m_playbackController.pauseAtStepStart(stepIndex);
}
function pauseAtStepEnd(slide, stepIndex) {
setSlide(slide);
m_playbackController.pauseAtStepEnd(stepIndex);
}
function onLeaveCurrentSlide() {
m_playbackModeSwitcher.onLeaveCurrentSlide();
}
}
Symbol 264 MovieClip [__Packages.fsplayer.core.playback.presentation.CPresentationPlaybackModeWaiting] Frame 0
class fsplayer.core.playback.presentation.CPresentationPlaybackModeWaiting implements fsplayer.core.playback.presentation.IPresentationPlaybackMode
{
var m_modeSwitcher, m_slideIndex, m_autoStart;
function CPresentationPlaybackModeWaiting (modeSwitcher) {
m_modeSwitcher = modeSwitcher;
}
function waitForSlide(slideIndex, autoStart) {
m_slideIndex = slideIndex;
m_autoStart = autoStart;
}
function onSlideLoadInit(slide) {
if (m_slideIndex == slide.getIndex()) {
m_slideIndex = undefined;
m_modeSwitcher.switchToSlide(slide.getIndex(), m_autoStart);
}
}
function onModeSwitching() {
}
function onLeaveCurrentSlide() {
m_modeSwitcher.onLeaveCurrentSlide();
}
}
Symbol 265 MovieClip [__Packages.fsplayer.core.playback.presentation.CPresentationPlaybackModeSlideSwitching] Frame 0
class fsplayer.core.playback.presentation.CPresentationPlaybackModeSlideSwitching implements fsplayer.core.playback.presentation.IPresentationPlaybackMode, fsplayer.core.playback.slides.ISlidePlaybackListenerEx
{
var m_modeSwitcher, m_oldSlide, m_newSlide, m_autoStart, m_transition, m_effect, m_switchStartTime;
function CPresentationPlaybackModeSlideSwitching (modeSwitcher) {
m_modeSwitcher = modeSwitcher;
}
function switchToSlide(slide, autoStart) {
m_oldSlide = m_newSlide;
m_newSlide = slide;
m_autoStart = autoStart || (autoStart == undefined);
pauseOldSlide();
if (m_oldSlide != undefined) {
m_oldSlide.getPlaybackController().deactivate();
}
var _local2 = m_newSlide.getPlaybackController();
_local2.setListener(this);
_local2.activate();
m_transition = m_newSlide.getTransition();
var _local3 = getOldTransitionController();
var _local4 = getNewTransitionController();
m_effect = m_transition.getTransitionEffect(_local3, _local4);
m_switchStartTime = fsplayer.util.CTimeUtils.getTickCount();
m_modeSwitcher.onSlideTransitionStart(m_oldSlide.getIndex(), m_newSlide.getIndex(), m_autoStart);
if (m_autoStart) {
m_effect.applyEffect(0);
} else {
onEnterLastTransitionFrame();
}
}
function onSlideLoadInit(slide) {
}
function getPhase() {
var _local3 = getSwitchingInterval();
var _local2 = m_transition.getDuration();
return(((_local2 != 0) ? (Math.min(1, _local3 / _local2)) : 1));
}
function onSlideEnterFrame() {
var _local2 = getPhase();
if (_local2 >= 1) {
onEnterLastTransitionFrame();
} else {
m_effect.applyEffect(_local2);
}
}
function onEnterLastTransitionFrame() {
finishTransition();
if (m_autoStart) {
m_modeSwitcher.startPlayback();
} else {
m_modeSwitcher.pausePlayback();
}
}
function onSlidePlaybackComplete() {
}
function onSlidePositionChanged(position) {
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function onModeSwitching() {
if (m_effect != undefined) {
finishTransition();
}
m_newSlide.getPlaybackController().setListener(undefined);
}
function finishTransition() {
m_effect.applyEffect(1);
m_effect = undefined;
if (m_oldSlide != undefined) {
getOldTransitionController().hide();
}
var _local2 = getNewTransitionController();
_local2.hideSecondaryMovie();
_local2.hidePrimaryMask();
_local2.bringToFront();
m_modeSwitcher.onSlideTransitionComplete();
}
function getOldTransitionController() {
return(((m_oldSlide != undefined) ? (m_oldSlide.getTransitionController()) : undefined));
}
function getNewTransitionController() {
return(m_newSlide.getTransitionController());
}
function getSwitchingInterval() {
return(fsplayer.util.CTimeUtils.getTickCountInterval(m_switchStartTime) / 1000);
}
function pauseOldSlide() {
if (m_oldSlide != undefined) {
m_oldSlide.getPlaybackController().pause();
}
}
function getTransitionPhase() {
return(getPhase());
}
function onLeaveCurrentSlide() {
}
}
Symbol 266 MovieClip [__Packages.fsplayer.core.playback.presentation.CPresentationPlaybackModeSeeking] Frame 0
class fsplayer.core.playback.presentation.CPresentationPlaybackModeSeeking implements fsplayer.core.playback.presentation.IPresentationPlaybackMode, fsplayer.core.playback.slides.ISlidePlaybackListenerEx
{
var m_modeSwitcher, m_playbackController, m_isPlaying, m_slide;
function CPresentationPlaybackModeSeeking (modeSwitcher) {
m_modeSwitcher = modeSwitcher;
}
function onSlideLoadInit(slide) {
}
function onModeSwitching() {
if (m_playbackController != undefined) {
m_modeSwitcher.onEndSeek();
m_playbackController.setListener(undefined);
m_playbackController = undefined;
}
}
function getPlayState() {
return(m_isPlaying);
}
function startSeek(slide, isPlaying) {
m_slide = slide;
m_isPlaying = isPlaying;
m_modeSwitcher.onSeek();
m_playbackController = slide.getPlaybackController();
m_playbackController.setListener(this);
}
function seekTo(position) {
m_playbackController.pauseAt(position);
}
function onSlidePositionChanged(position) {
m_modeSwitcher.onSlidePositionChanged();
}
function onSlideEnterFrame() {
}
function onSlidePlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
m_modeSwitcher.onKeyboardFocusStateChanged(acquireFocus);
}
function onLeaveCurrentSlide() {
}
}
Symbol 267 MovieClip [__Packages.fsplayer.core.playback.video.IPresenterVideoControllerEx] Frame 0
interface fsplayer.core.playback.video.IPresenterVideoControllerEx extends fsplayer.api.IPresenterVideoController
{
}
Symbol 268 MovieClip [__Packages.fsplayer.core.playback.video.CPresenterVideoController] Frame 0
class fsplayer.core.playback.video.CPresenterVideoController implements fsplayer.core.playback.video.IPresenterVideoControllerEx, fsplayer.api.IPlaybackListener
{
var m_videoWindow, m_playbackController, m_playing, m_currentPresenterVideo, m_currentVideoClip;
function CPresenterVideoController (videoWindow, playbackController) {
m_videoWindow = videoWindow;
m_playbackController = playbackController;
m_playing = m_playbackController.isPlaying();
m_playbackController.addListener(this);
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function getCurrentVideo() {
return(m_currentPresenterVideo);
}
function changeVideo(video) {
if (m_currentVideoClip) {
m_currentVideoClip.pause();
}
m_currentPresenterVideo = video;
m_currentVideoClip = (m_currentPresenterVideo ? (m_currentPresenterVideo.createVideo(m_videoWindow.getPresenterVideoTarget())) : undefined);
resync();
}
function fixVideoTime(time) {
var _local2 = m_currentVideoClip.getDuration();
if ((_local2 != undefined) && (time > _local2)) {
return(_local2);
}
return(time);
}
function play(time) {
m_playing = true;
if (m_currentVideoClip) {
m_currentVideoClip.play(fixVideoTime(time));
}
}
function pause(time) {
m_playing = false;
if (m_currentVideoClip) {
m_currentVideoClip.pause(fixVideoTime(time));
}
}
function seek(time) {
pause(time);
}
function resync() {
if (m_currentVideoClip) {
var _local2 = m_playbackController.getCurrentSlidePlaybackPosition() * m_playbackController.getCurrentSlideDuration();
(m_playing ? (play(_local2)) : (pause(_local2)));
}
}
function onPausePlayback() {
if (m_playing) {
m_playing = false;
pause();
}
}
function onStartPlayback() {
if (!m_playing) {
m_playing = true;
play();
}
}
function onCurrentSlideIndexChanged(slideIndex) {
var _local4 = m_currentPresenterVideo;
changeVideo(m_playbackController.getCurrentSlide().getPresenterVideo());
if (_local4 != m_currentPresenterVideo) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
m_listeners[_local2].onChangePresenterVideo(m_currentPresenterVideo);
_local2++;
}
}
}
function onAnimationStepChanged(stepIndex) {
}
function onSlidePositionChanged(position) {
}
function onSlideLoadingComplete(slideIndex) {
}
function onPresentationPlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
var m_listeners = new Array();
}
Symbol 269 MovieClip [__Packages.CSeparatePlayer] Frame 0
class CSeparatePlayer extends fsplayer.core.CPlayerImpl implements fsplayer.core.ILoadingControllersFactory
{
var loadSkinAsset, setPesentationNode;
function CSeparatePlayer (target) {
super(this, target);
}
function loadSkinFromURL(source) {
loadSkinAsset(source);
}
function loadPresentationInfoFromURL(presentationInfoURL) {
var presXML = new XML();
presXML.ignoreWhite = true;
var thisPtr = this;
presXML.onLoad = function (succeeded) {
if (succeeded) {
thisPtr.onLoadPresentationXML(presXML);
}
};
presXML.load(presentationInfoURL);
}
function onLoadPresentationXML(presentationXML) {
var _local2 = presentationXML.firstChild;
setPesentationNode(_local2);
}
function createThumbnailAssetLoadingController() {
var _local2 = new fsplayer.res.images.CImageAssetLoader(createAssetLoader());
return(new fsplayer.core.loading.CAsynchronousThumbnailAssetLoadingController(_local2));
}
function createSlideLoadingController(presentation) {
return(new fsplayer.core.loading.CRandomSlideLoadingController(presentation.getSlides()));
}
function createPresentationBgSoundAssetLoadingController(soundAssets) {
return(new fsplayer.core.loading.CPresentationBgSoundAssetLoadingController(soundAssets));
}
function createAssetLoader() {
return(new fsplayer.res.assets.CExternalAssetLoader());
}
function createSkinAssetLoader() {
return(createAssetLoader());
}
}
Symbol 270 MovieClip [__Packages.fsplayer.res.images.IImageAssetLoader] Frame 0
interface fsplayer.res.images.IImageAssetLoader
{
}
Symbol 271 MovieClip [__Packages.fsplayer.res.images.CImageAssetLoader] Frame 0
class fsplayer.res.images.CImageAssetLoader implements fsplayer.res.images.IImageAssetLoader
{
var m_assetLoader;
function CImageAssetLoader (assetLoader) {
m_assetLoader = assetLoader;
}
function loadImageAsset(target, source, listener) {
var _local2 = new fsplayer.res.images.CImageAsset();
_local2.load(m_assetLoader, target, source, listener);
return(_local2);
}
}
Symbol 272 MovieClip [__Packages.fsplayer.res.images.CImageAsset] Frame 0
class fsplayer.res.images.CImageAsset implements fsplayer.res.images.IImageAsset
{
var m_asset;
function CImageAsset () {
}
function createInstance(name, depth) {
var _local2 = m_asset.createInstance(name, depth);
return(new fsplayer.res.images.CImageInstance(_local2));
}
function load(assetLoader, target, source, listener) {
var _local2 = new fsplayer.res.images.CImageAssetLoadingListenerImpl(this, listener);
assetLoader.loadAsset(target, source, _local2);
}
function setAsset(asset) {
m_asset = asset;
}
}
Symbol 273 MovieClip [__Packages.fsplayer.res.images.CImageInstance] Frame 0
class fsplayer.res.images.CImageInstance implements fsplayer.res.images.IImageInstance
{
var m_instanceClip;
function CImageInstance (instanceClip) {
m_instanceClip = instanceClip;
}
function getInstanceClip() {
return(m_instanceClip);
}
}
Symbol 274 MovieClip [__Packages.fsplayer.res.images.CImageAssetLoadingListenerImpl] Frame 0
class fsplayer.res.images.CImageAssetLoadingListenerImpl implements fsplayer.res.assets.IAssetLoadingListener
{
var m_imgAsset, m_listener;
function CImageAssetLoadingListenerImpl (imgAsset, listener) {
m_imgAsset = imgAsset;
m_listener = listener;
}
function onAssetLoadStart(asset) {
m_imgAsset.setAsset(asset);
}
function onAssetLoadComplete(asset) {
}
function onAssetLoadInit(asset) {
if (m_listener != undefined) {
m_listener.onImageAssetLoadInit(m_imgAsset);
}
}
}
Symbol 275 MovieClip [__Packages.fsplayer.core.loading.CAsynchronousThumbnailAssetLoadingController] Frame 0
class fsplayer.core.loading.CAsynchronousThumbnailAssetLoadingController implements fsplayer.core.loading.IThumbnailAssetLoadingController
{
var m_imageAssetLoader, m_queue;
function CAsynchronousThumbnailAssetLoadingController (imageAssetLoader) {
m_imageAssetLoader = imageAssetLoader;
m_queue = new Array();
}
function onImageAssetLoadInit(imgAsset, listener) {
listener.onImageAssetLoadInit(imgAsset);
m_loadingCount--;
if ((m_loadingCount < MAX_LOADING_THUMBNAILS) && (m_queue.length > 0)) {
var _local2 = m_queue.shift();
loadThumbnailAsset(_local2.slideIndex, _local2.target, _local2.source, _local2.listener);
}
}
function loadThumbnailAsset(slideIndex, target, source, listener) {
if (m_loadingCount < MAX_LOADING_THUMBNAILS) {
m_loadingCount++;
var _local4 = new Object();
var _local3 = _local4;
var listenerPtr = listener;
var thisPtr = this;
_local3.onImageAssetLoadInit = function (imgAsset) {
thisPtr.onImageAssetLoadInit(imgAsset, listenerPtr);
};
m_imageAssetLoader.loadImageAsset(target, source, _local3);
} else {
var _local2 = new Object();
_local2.slideIndex = slideIndex;
_local2.target = target;
_local2.source = source;
_local2.listener = listener;
m_queue.push(_local2);
}
}
var m_loadingCount = 0;
static var MAX_LOADING_THUMBNAILS = 1;
}
Symbol 276 MovieClip [__Packages.fsplayer.core.loading.CRandomSlideLoadingController] Frame 0
class fsplayer.core.loading.CRandomSlideLoadingController implements fsplayer.core.loading.ISlideLoadingController, fsplayer.core.loading.ISlideLoadingListener
{
var m_slides, m_slideStatuses, m_queue, m_slideLoadingListener, m_slideLoadingLookup, m_lookupTableStart;
function CRandomSlideLoadingController (slides) {
m_slides = slides;
var _local2 = slides.getCount();
m_slideStatuses = new Array(_local2);
m_queue = new Array();
fillSlideLoadingSequence();
}
function enqueueSlide(slideIndex) {
addSlideToQueue(slideIndex, true);
}
function setListener(listener) {
m_slideLoadingListener = listener;
}
function onSlideLoadInit(slide) {
var _local2 = slide.getIndex();
m_slideStatuses[_local2] = SLD_STATUS_LOADED;
m_numberOfSlidesInLoading--;
if (m_slideLoadingListener != undefined) {
m_slideLoadingListener.onSlideLoadInit(slide);
}
var _local3 = getNextSlideIndexToLoad();
if (((_local3 != undefined) && (m_numberOfSlidesInLoading < NORMAL_LOADING_SLIDES)) && (m_loadingLockCount == 0)) {
addSlideToQueue(getNextSlideIndexToLoad(), false);
}
}
function addSlideToQueue(slideIndex, loadWithHighPriority) {
if (slideWasLoaded(slideIndex) || (slideIsNowLoaded(slideIndex))) {
return(undefined);
}
var _local6 = m_slideLoadingLookup[slideIndex];
if (_local6 != undefined) {
m_slideLoadingLookup[slideIndex] = undefined;
var _local5 = _local6.prev;
var _local4 = _local6.next;
if (_local5 != undefined) {
_local5.next = _local4;
} else {
m_lookupTableStart = _local4;
}
if (_local4 != undefined) {
_local4.prev = _local5;
}
}
var _local3 = getSlideQueuePosition(slideIndex);
if (m_numberOfSlidesInLoading < MAX_LOADING_SLIDES) {
if (_local3 != undefined) {
removeQueueItem(_local3);
}
loadSlide(slideIndex);
} else {
m_slideStatuses[slideIndex] = SLD_STATUS_QUEUED;
if (loadWithHighPriority) {
if (_local3 != undefined) {
removeQueueItem(_local3);
}
m_queue.splice(0, 0, slideIndex);
} else if (_local3 == undefined) {
m_queue.push(slideIndex);
}
}
}
function fillSlideLoadingSequence() {
var _local5 = m_slides.getCount();
m_slideLoadingLookup = new Array(_local5);
var _local4;
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = new Object();
if (_local4 != undefined) {
_local4.next = _local2;
}
_local2.prev = _local4;
_local4 = _local2;
_local2.index = _local3;
m_slideLoadingLookup[_local3] = _local2;
_local3++;
}
_local4.next = undefined;
m_lookupTableStart = m_slideLoadingLookup[0];
}
function getNextSlideIndexToLoad() {
if (m_lookupTableStart == undefined) {
return(undefined);
}
return(m_lookupTableStart.index);
}
function loadSlide(slideIndex) {
m_numberOfSlidesInLoading++;
m_slideStatuses[slideIndex] = SLD_STATUS_LOADING;
m_loadingLockCount++;
m_slides.getSlide(slideIndex).load(this);
m_loadingLockCount--;
}
function removeQueueItem(pos) {
m_queue.slice(pos, pos);
}
function slideIsInQueue(slideIndex) {
return(m_slideStatuses[slideIndex] == SLD_STATUS_QUEUED);
}
function slideWasLoaded(slideIndex) {
return(m_slides.getSlide(slideIndex).isLoaded());
}
function slideIsNowLoaded(slideIndex) {
return(m_slideStatuses[slideIndex] == SLD_STATUS_LOADING);
}
function getSlideQueuePosition(slideIndex) {
if (slideIsInQueue(slideIndex)) {
var _local3 = m_queue.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_queue[_local2] == slideIndex) {
return(_local2);
}
_local2++;
}
}
return(undefined);
}
static var MAX_LOADING_SLIDES = 5;
static var NORMAL_LOADING_SLIDES = 2;
static var SLD_STATUS_QUEUED = "queued";
static var SLD_STATUS_LOADING = "loading";
static var SLD_STATUS_LOADED = "loaded";
var m_numberOfSlidesInLoading = 0;
var m_loadingLockCount = 0;
}
Symbol 277 MovieClip [__Packages.fsplayer.core.loading.CPresentationBgSoundAssetLoadingController] Frame 0
class fsplayer.core.loading.CPresentationBgSoundAssetLoadingController implements fsplayer.core.loading.IPresentationBgSoundAssetLoadingController
{
var m_soundAssets, m_listener, m_soundIsAvailable, m_assetIdToLoad;
function CPresentationBgSoundAssetLoadingController (soundAssets) {
m_soundAssets = soundAssets;
}
function setListener(listener) {
m_listener = listener;
}
function backgroundSoundIsAvailable() {
m_soundIsAvailable = true;
if (m_assetIdToLoad != undefined) {
m_soundAssets.loadAsset(m_assetIdToLoad, m_listener);
m_assetIdToLoad = undefined;
}
}
function loadBgSoundAsset(assetId) {
if (assetId != "") {
if (m_soundAssets.assetIsEmbedded(assetId)) {
if (m_soundIsAvailable) {
m_soundAssets.loadAsset(assetId, m_listener);
} else {
m_assetIdToLoad = assetId;
}
} else {
m_soundAssets.loadAsset(assetId, m_listener);
m_listener.onSoundAssetLoadInit(m_soundAssets.getAsset(assetId));
}
}
}
}
Symbol 278 MovieClip [__Packages.CSeparatePlayerEmbeddedSkin] Frame 0
class CSeparatePlayerEmbeddedSkin extends CSeparatePlayer
{
var loadSkinAsset;
function CSeparatePlayerEmbeddedSkin (target) {
super(target);
}
function loadSkinFromAsset(source) {
loadSkinAsset(source);
}
function createSkinAssetLoader() {
return(new fsplayer.res.assets.CInternalAssetLoader());
}
}
Symbol 279 MovieClip [__Packages.ISolidPlayerResourceLoader] Frame 0
interface ISolidPlayerResourceLoader
{
}
Symbol 280 MovieClip [__Packages.CSolidPlayer] Frame 0
class CSolidPlayer extends fsplayer.core.CPlayerImpl implements fsplayer.core.ILoadingControllersFactory, ISolidPlayerResourceLoader
{
var m_loadingControlClip, m_availableSlides, m_availableThumbs, m_slideLoadingController, m_thumbnailLoadingController, loadSkinAsset, setPesentationNode, m_presentationBgSoundAssetLoadingController;
function CSolidPlayer (target, loadingControlClip) {
super(this, target);
m_loadingControlClip = loadingControlClip;
m_availableSlides = new Array();
m_availableThumbs = new Array();
}
function onSkinInit(skin) {
super.onSkinInit(skin);
m_skinInitialized = true;
var _local3 = 0;
while (_local3 < m_availableSlides.length) {
m_slideLoadingController.slideIsAvailable(m_availableSlides[_local3]);
_local3++;
}
_local3 = 0;
while (_local3 < m_availableThumbs.length) {
m_thumbnailLoadingController.thumbnailIsAvailable(m_availableThumbs[_local3]);
_local3++;
}
}
function loadSkinFromLibrary(source) {
loadSkinAsset(source);
}
function loadPresentationInfoFromString(presentationInfo) {
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.parseXML(presentationInfo);
setPesentationNode(_local2.firstChild);
}
function slideIsAvailable(slideIndex) {
if (m_skinInitialized) {
m_slideLoadingController.slideIsAvailable(slideIndex);
} else {
m_availableSlides.push(slideIndex);
}
}
function thumbnailIsAvailable(slideIndex) {
if (m_skinInitialized) {
m_thumbnailLoadingController.thumbnailIsAvailable(slideIndex);
} else {
m_availableThumbs.push(slideIndex);
}
}
function presentationBgSoundIsAvailable() {
m_presentationBgSoundAssetLoadingController.backgroundSoundIsAvailable();
}
function createThumbnailAssetLoadingController() {
var _local2 = new fsplayer.res.images.CImageAssetLoader(createAssetLoader());
m_thumbnailLoadingController = new fsplayer.core.loading.CSynchronousThumbnailAssetLoadingController(_local2);
return(m_thumbnailLoadingController);
}
function createSlideLoadingController(presentation) {
m_slideLoadingController = new fsplayer.core.loading.CSequentialSlideLoadingController(presentation.getSlides(), m_loadingControlClip);
return(m_slideLoadingController);
}
function createPresentationBgSoundAssetLoadingController(soundAssets) {
m_presentationBgSoundAssetLoadingController = new fsplayer.core.loading.CPresentationBgSoundAssetLoadingController(soundAssets);
return(m_presentationBgSoundAssetLoadingController);
}
function createAssetLoader() {
return(new fsplayer.res.assets.CInternalAssetLoader());
}
function createSkinAssetLoader() {
return(createAssetLoader());
}
var m_skinInitialized = false;
}
Symbol 281 MovieClip [__Packages.fsplayer.core.loading.CSequentialSlideLoadingController] Frame 0
class fsplayer.core.loading.CSequentialSlideLoadingController implements fsplayer.core.loading.ISlideLoadingController, fsplayer.core.loading.ISlideLoadingListener
{
var m_slides, m_loadControlClip, m_loadingSlides, m_slideWasAdded, m_intervalId, m_listener;
function CSequentialSlideLoadingController (slides, loadControlClip) {
m_slides = slides;
m_loadControlClip = loadControlClip;
m_loadingSlides = new Array();
m_slideWasAdded = true;
m_intervalId = setInterval(this, "onLoadingInterval", 100);
}
function enqueueSlide(slideIndex) {
}
function onLoadingInterval() {
if (m_loadControlClip._currentframe == 1) {
m_loadControlClip.play();
}
if (m_loadControlClip._currentframe < m_loadControlClip._totalframes) {
if (m_slideWasAdded) {
m_slideWasAdded = false;
m_loadControlClip.nextFrame();
m_loadControlClip.play();
updateAfterEvent();
}
} else {
clearInterval(m_intervalId);
}
}
function slideIsAvailable(slideIndex) {
var _local2 = m_slides.getSlide(slideIndex);
if ((!_local2.isLoaded()) && (!m_loadingSlides[slideIndex])) {
m_loadingSlides[slideIndex] = true;
m_slideWasAdded = true;
_local2.load(this);
}
}
function onSlideLoadInit(slide) {
m_loadingSlides[slide.getIndex()] = false;
m_listener.onSlideLoadInit(slide);
}
function setListener(listener) {
m_listener = listener;
}
}
Symbol 282 MovieClip [__Packages.fsplayer.core.loading.CSynchronousThumbnailAssetLoadingController] Frame 0
class fsplayer.core.loading.CSynchronousThumbnailAssetLoadingController implements fsplayer.core.loading.IThumbnailAssetLoadingController
{
var m_imageAssetLoader, m_thumbnails, m_queuedLoads;
function CSynchronousThumbnailAssetLoadingController (imageAssetLoader) {
m_imageAssetLoader = imageAssetLoader;
m_thumbnails = new Array();
m_queuedLoads = new Array();
}
function thumbnailIsAvailable(slideIndex) {
if (!m_thumbnails[slideIndex]) {
m_thumbnails[slideIndex] = true;
var _local5 = m_queuedLoads[slideIndex];
if (_local5 != undefined) {
var _local6 = _local5.length;
var _local3 = 0;
while (_local3 < _local6) {
var _local2 = _local5[_local3];
loadThumbnailAsset(slideIndex, _local2.target, _local2.source, _local2.listener);
_local3++;
}
}
delete m_queuedLoads[slideIndex];
}
}
function loadThumbnailAsset(slideIndex, target, source, listener) {
if (m_thumbnails[slideIndex]) {
m_imageAssetLoader.loadImageAsset(target, source, listener);
} else {
if (!m_queuedLoads[slideIndex]) {
m_queuedLoads[slideIndex] = new Array();
}
var _local2 = new Object();
_local2.listener = listener;
_local2.target = target;
_local2.source = source;
m_queuedLoads[slideIndex].push(_local2);
}
}
}
Symbol 283 MovieClip [__Packages.fsplayer.core.CPlayerCoreComponentsFactoryImpl] Frame 0
class fsplayer.core.CPlayerCoreComponentsFactoryImpl implements fsplayer.core.IPlayerCoreComponentsFactory
{
var m_transitionsFactory;
function CPlayerCoreComponentsFactoryImpl () {
m_transitionsFactory = new fsplayer.core.playback.transitions.CTransitionEffectsFactoryImpl();
}
function getTransitionEffectsFactory() {
return(m_transitionsFactory);
}
function createSoundPlaybackController(presentation, playbackController, bgSoundLoadingController) {
return(new fsplayer.core.playback.sounds.CSoundPlaybackControllerEx(presentation, playbackController, bgSoundLoadingController));
}
function createPresentationInfo(presentation, presentationNode, loadingControllersFactory) {
return(new fsplayer.api.impl.CPresentationInfo(presentation, presentationNode, loadingControllersFactory.createThumbnailAssetLoadingController(presentation)));
}
function createSlideSounds(soundsNode, soundAssets) {
return(new fsplayer.res.sounds.CSlideSoundsEx(soundsNode, soundAssets));
}
function createPresenterVideo(src, embedded, width, height, frameRate) {
return(new fsplayer.res.video.CPresenterVideo(src, embedded, width, height, frameRate));
}
}
Symbol 284 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionEffectsFactoryImpl] Frame 0
class fsplayer.core.playback.transitions.CTransitionEffectsFactoryImpl implements fsplayer.core.playback.transitions.ITransitionEffectsFactory
{
function CTransitionEffectsFactoryImpl () {
}
function calculateEffectDuration(duration) {
return(duration);
}
function getTransitionEffect(effectType, parameters) {
if (effectType == "RandomTransition") {
var _local2 = m_transitions.length - 1;
var _local3 = Math.floor(_local2 * Math.random());
effectType = m_transitions[_local3];
}
switch (effectType) {
case "CoverUp" :
return(new fsplayer.core.playback.transitions.CTransitionCover(parameters, fsplayer.core.playback.transitions.CTransitionCover.DIRECTION_UP));
case "CoverDown" :
return(new fsplayer.core.playback.transitions.CTransitionCover(parameters, fsplayer.core.playback.transitions.CTransitionCover.DIRECTION_DOWN));
case "CoverLeft" :
return(new fsplayer.core.playback.transitions.CTransitionCover(parameters, fsplayer.core.playback.transitions.CTransitionCover.DIRECTION_LEFT));
case "CoverRight" :
return(new fsplayer.core.playback.transitions.CTransitionCover(parameters, fsplayer.core.playback.transitions.CTransitionCover.DIRECTION_RIGHT));
case "CoverLeftDown" :
return(new fsplayer.core.playback.transitions.CTransitionCover(parameters, fsplayer.core.playback.transitions.CTransitionCover.DIRECTION_LEFT_DOWN));
case "CoverLeftUp" :
return(new fsplayer.core.playback.transitions.CTransitionCover(parameters, fsplayer.core.playback.transitions.CTransitionCover.DIRECTION_LEFT_UP));
case "CoverRightDown" :
return(new fsplayer.core.playback.transitions.CTransitionCover(parameters, fsplayer.core.playback.transitions.CTransitionCover.DIRECTION_RIGHT_DOWN));
case "CoverRightUp" :
return(new fsplayer.core.playback.transitions.CTransitionCover(parameters, fsplayer.core.playback.transitions.CTransitionCover.DIRECTION_RIGHT_UP));
case "PushUp" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_UP));
case "PushDown" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_DOWN));
case "PushLeft" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_LEFT));
case "PushRight" :
return(new fsplayer.core.playback.transitions.CTransitionPush(parameters, fsplayer.core.playback.transitions.CTransitionPush.DIRECTION_RIGHT));
case "WipeUp" :
return(new fsplayer.core.playback.transitions.CTransitionWipe(parameters, fsplayer.core.playback.transitions.CTransitionWipe.DIRECTION_UP));
case "WipeDown" :
return(new fsplayer.core.playback.transitions.CTransitionWipe(parameters, fsplayer.core.playback.transitions.CTransitionWipe.DIRECTION_DOWN));
case "WipeLeft" :
return(new fsplayer.core.playback.transitions.CTransitionWipe(parameters, fsplayer.core.playback.transitions.CTransitionWipe.DIRECTION_LEFT));
case "WipeRight" :
return(new fsplayer.core.playback.transitions.CTransitionWipe(parameters, fsplayer.core.playback.transitions.CTransitionWipe.DIRECTION_RIGHT));
case "UncoverUp" :
return(new fsplayer.core.playback.transitions.CTransitionUncover(parameters, fsplayer.core.playback.transitions.CTransitionUncover.DIRECTION_UP));
case "UncoverDown" :
return(new fsplayer.core.playback.transitions.CTransitionUncover(parameters, fsplayer.core.playback.transitions.CTransitionUncover.DIRECTION_DOWN));
case "UncoverLeft" :
return(new fsplayer.core.playback.transitions.CTransitionUncover(parameters, fsplayer.core.playback.transitions.CTransitionUncover.DIRECTION_LEFT));
case "UncoverRight" :
return(new fsplayer.core.playback.transitions.CTransitionUncover(parameters, fsplayer.core.playback.transitions.CTransitionUncover.DIRECTION_RIGHT));
case "UncoverLeftDown" :
return(new fsplayer.core.playback.transitions.CTransitionUncover(parameters, fsplayer.core.playback.transitions.CTransitionUncover.DIRECTION_LEFT_DOWN));
case "UncoverLeftUp" :
return(new fsplayer.core.playback.transitions.CTransitionUncover(parameters, fsplayer.core.playback.transitions.CTransitionUncover.DIRECTION_LEFT_UP));
case "UncoverRightDown" :
return(new fsplayer.core.playback.transitions.CTransitionUncover(parameters, fsplayer.core.playback.transitions.CTransitionUncover.DIRECTION_RIGHT_DOWN));
case "UncoverRightUp" :
return(new fsplayer.core.playback.transitions.CTransitionUncover(parameters, fsplayer.core.playback.transitions.CTransitionUncover.DIRECTION_RIGHT_UP));
case "FadeSmoothly" :
return(new fsplayer.core.playback.transitions.CTransitionFadeSmoothly(parameters));
case "FadeThroughBlack" :
return(new fsplayer.core.playback.transitions.CTransitionFadeThroughBlack(parameters));
case "CutThroughBlack" :
return(new fsplayer.core.playback.transitions.CTransitionCutThroughBlack(parameters));
case "BoxIn" :
return(new fsplayer.core.playback.transitions.CTransitionBox(parameters, fsplayer.core.playback.transitions.CTransitionBox.DIRECTION_IN));
case "BoxOut" :
return(new fsplayer.core.playback.transitions.CTransitionBox(parameters, fsplayer.core.playback.transitions.CTransitionBox.DIRECTION_OUT));
case "ShapeCircle" :
return(new fsplayer.core.playback.transitions.CTransitionShapeCircle(parameters));
case "ShapeDiamond" :
return(new fsplayer.core.playback.transitions.CTransitionShapeDiamond(parameters));
case "ShapePlus" :
return(new fsplayer.core.playback.transitions.CTransitionShapePlus(parameters));
case "SplitHorizontalIn" :
return(new fsplayer.core.playback.transitions.CTransitionSplit(parameters, fsplayer.core.playback.transitions.CTransitionSplit.HORIZONTAL_IN));
case "SplitHorizontalOut" :
return(new fsplayer.core.playback.transitions.CTransitionSplit(parameters, fsplayer.core.playback.transitions.CTransitionSplit.HORIZONTAL_OUT));
case "SplitVerticalIn" :
return(new fsplayer.core.playback.transitions.CTransitionSplit(parameters, fsplayer.core.playback.transitions.CTransitionSplit.VERTICAL_IN));
case "SplitVerticalOut" :
return(new fsplayer.core.playback.transitions.CTransitionSplit(parameters, fsplayer.core.playback.transitions.CTransitionSplit.VERTICAL_OUT));
case "BlindsVertical" :
return(new fsplayer.core.playback.transitions.CTransitionBlinds(parameters, fsplayer.core.playback.transitions.CTransitionBlinds.DIRECTION_VERTICAL));
case "BlindsHorizontal" :
return(new fsplayer.core.playback.transitions.CTransitionBlinds(parameters, fsplayer.core.playback.transitions.CTransitionBlinds.DIRECTION_HORIZONTAL));
case "StripsLeftDown" :
return(new fsplayer.core.playback.transitions.CTransitionStrips(parameters, fsplayer.core.playback.transitions.CTransitionStrips.DIRECTION_LEFT_DOWN));
case "StripsLeftUp" :
return(new fsplayer.core.playback.transitions.CTransitionStrips(parameters, fsplayer.core.playback.transitions.CTransitionStrips.DIRECTION_LEFT_UP));
case "StripsRightDown" :
return(new fsplayer.core.playback.transitions.CTransitionStrips(parameters, fsplayer.core.playback.transitions.CTransitionStrips.DIRECTION_RIGHT_DOWN));
case "StripsRightUp" :
return(new fsplayer.core.playback.transitions.CTransitionStrips(parameters, fsplayer.core.playback.transitions.CTransitionStrips.DIRECTION_RIGHT_UP));
case "Wedge" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WEDGE));
case "Wheel1Spoke" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WHEEL_1));
case "Wheel2Spokes" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WHEEL_2));
case "Wheel3Spokes" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WHEEL_3));
case "Wheel4Spokes" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WHEEL_4));
case "Wheel8Spokes" :
return(new fsplayer.core.playback.transitions.CTransitionWedgeAndWheel(parameters, fsplayer.core.playback.transitions.CTransitionWedgeAndWheel.TYPE_WHEEL_8));
case "RandomBarsVertical" :
return(new fsplayer.core.playback.transitions.CTransitionRandomBars(parameters, fsplayer.core.playback.transitions.CTransitionRandomBars.DIRECTION_VERTICAL));
case "RandomBarsHorizontal" :
return(new fsplayer.core.playback.transitions.CTransitionRandomBars(parameters, fsplayer.core.playback.transitions.CTransitionRandomBars.DIRECTION_HORIZONTAL));
case "Dissolve" :
return(new fsplayer.core.playback.transitions.CTransitionDissolve(parameters));
case "Newsflash" :
return(new fsplayer.core.playback.transitions.CTransitionNewsflash(parameters));
case "CheckerboardAcross" :
return(new fsplayer.core.playback.transitions.CTransitionCheckerboard(parameters, fsplayer.core.playback.transitions.CTransitionCheckerboard.DIRECTION_ACROSS));
case "CheckerboardDown" :
return(new fsplayer.core.playback.transitions.CTransitionCheckerboard(parameters, fsplayer.core.playback.transitions.CTransitionCheckerboard.DIRECTION_DOWN));
case "CombHorizontal" :
return(new fsplayer.core.playback.transitions.CTransitionComb(parameters, fsplayer.core.playback.transitions.CTransitionComb.DIRECTION_HORIZONTAL));
case "CombVertical" :
return(new fsplayer.core.playback.transitions.CTransitionComb(parameters, fsplayer.core.playback.transitions.CTransitionComb.DIRECTION_VERTICAL));
}
return(new fsplayer.core.playback.transitions.CTransitionNoTransition());
}
static var m_transitions = new Array("CoverUp", "CoverDown", "CoverLeft", "CoverRight", "CoverLeftDown", "CoverLeftUp", "CoverRightDown", "CoverRightUp", "PushUp", "PushDown", "PushLeft", "PushRight", "WipeUp", "WipeDown", "WipeLeft", "WipeRight", "UncoverUp", "UncoverDown", "UncoverLeft", "UncoverRight", "UncoverLeftDown", "UncoverLeftUp", "UncoverRightDown", "UncoverRightUp", "FadeSmoothly", "FadeThroughBlack", "CutThroughBlack", "BoxIn", "BoxOut", "ShapeCircle", "ShapeDiamond", "ShapePlus", "SplitHorizontalIn", "SplitHorizontalOut", "SplitVerticalIn", "SplitVerticalOut", "BlindsVertical", "BlindsHorizontal", "StripsLeftDown", "StripsLeftUp", "StripsRightDown", "StripsRightUp", "Wedge", "Wheel1Spoke", "Wheel2Spokes", "Wheel3Spokes", "Wheel4Spokes", "Wheel8Spokes", "RandomBarsVertical", "RandomBarsHorizontal", "Dissolve", "Newsflash", "CheckerboardAcross", "CheckerboardDown", "CombHorizontal", "CombVertical");
}
Symbol 285 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionCover] Frame 0
class fsplayer.core.playback.transitions.CTransitionCover implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment, m_x0, m_y0;
function CTransitionCover (parameters, type) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
SetType(type);
}
function applyEffect(phase) {
var _local2 = m_newSlide.getPrimaryMovie();
_local2._x = m_environment.getSlideWidth() * (m_x0 * (1 - phase));
_local2._y = m_environment.getSlideHeight() * (m_y0 * (1 - phase));
}
function SetType(type) {
m_x0 = 0;
m_y0 = 0;
switch (type) {
case DIRECTION_UP :
m_y0 = 1;
break;
case DIRECTION_DOWN :
m_y0 = -1;
break;
case DIRECTION_LEFT :
m_x0 = 1;
break;
case DIRECTION_RIGHT :
m_x0 = -1;
break;
case DIRECTION_LEFT_DOWN :
m_x0 = 1;
m_y0 = -1;
break;
case DIRECTION_LEFT_UP :
m_x0 = 1;
m_y0 = 1;
break;
case DIRECTION_RIGHT_DOWN :
m_x0 = -1;
m_y0 = -1;
break;
case DIRECTION_RIGHT_UP :
m_x0 = -1;
m_y0 = 1;
}
}
static var DIRECTION_UP = 0;
static var DIRECTION_DOWN = 1;
static var DIRECTION_LEFT = 2;
static var DIRECTION_RIGHT = 3;
static var DIRECTION_LEFT_DOWN = 4;
static var DIRECTION_LEFT_UP = 5;
static var DIRECTION_RIGHT_DOWN = 6;
static var DIRECTION_RIGHT_UP = 7;
}
Symbol 286 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionPush] Frame 0
class fsplayer.core.playback.transitions.CTransitionPush implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_parameters, m_slide1_x1, m_slide1_y1, m_slide2_x0, m_slide2_y0;
function CTransitionPush (parameters, type) {
m_parameters = parameters;
SetType(type);
}
function applyEffect(phase) {
var _local5 = m_parameters.getEnvironment().getSlideWidth();
var _local6 = m_parameters.getEnvironment().getSlideHeight();
if (m_parameters.hasOldSlide()) {
var _local3 = m_parameters.getOldSlide().getPrimaryMovie();
_local3._x = _local5 * (m_slide1_x1 * phase);
_local3._y = _local6 * (m_slide1_y1 * phase);
}
var _local2 = m_parameters.getNewSlide().getPrimaryMovie();
_local2._x = _local5 * (m_slide2_x0 * (1 - phase));
_local2._y = _local6 * (m_slide2_y0 * (1 - phase));
}
function SetType(type) {
m_slide1_x1 = 0;
m_slide1_y1 = 0;
switch (type) {
case DIRECTION_UP :
m_slide1_y1 = -1;
break;
case DIRECTION_DOWN :
m_slide1_y1 = 1;
break;
case DIRECTION_LEFT :
m_slide1_x1 = -1;
break;
case DIRECTION_RIGHT :
m_slide1_x1 = 1;
}
m_slide2_x0 = -m_slide1_x1;
m_slide2_y0 = -m_slide1_y1;
}
static var DIRECTION_UP = 0;
static var DIRECTION_DOWN = 1;
static var DIRECTION_LEFT = 2;
static var DIRECTION_RIGHT = 3;
}
Symbol 287 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionWipe] Frame 0
class fsplayer.core.playback.transitions.CTransitionWipe implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment, m_x0, m_mask, m_y0;
function CTransitionWipe (parameters, type) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
SetType(type);
CreateMask();
}
function applyEffect(phase) {
m_mask._x = m_environment.getSlideWidth() * (m_x0 * (1 - phase));
m_mask._y = m_environment.getSlideHeight() * (m_y0 * (1 - phase));
}
function CreateMask() {
m_mask = m_newSlide.getPrimaryMask();
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, 0, m_environment.getSlideWidth(), m_environment.getSlideHeight());
}
function SetType(type) {
m_x0 = 0;
m_y0 = 0;
switch (type) {
case DIRECTION_UP :
m_y0 = 1;
break;
case DIRECTION_DOWN :
m_y0 = -1;
break;
case DIRECTION_LEFT :
m_x0 = 1;
break;
case DIRECTION_RIGHT :
m_x0 = -1;
}
}
static var DIRECTION_UP = 0;
static var DIRECTION_DOWN = 1;
static var DIRECTION_LEFT = 2;
static var DIRECTION_RIGHT = 3;
}
Symbol 288 MovieClip [__Packages.fsplayer.core.playback.transitions.util.CDrawUtils] Frame 0
class fsplayer.core.playback.transitions.util.CDrawUtils
{
function CDrawUtils () {
}
static function DrawCircle(mc, x, y, radius, accuracy) {
if (accuracy == undefined) {
accuracy = 10;
}
if (accuracy < 3) {
accuracy = 3;
}
var _local4 = Math.PI / accuracy;
var _local6 = radius / Math.cos(_local4);
var _local1 = 0;
var _local2 = 0;
mc.moveTo(x + (Math.cos(_local1) * radius), y + (Math.sin(_local1) * radius));
var _local3 = 0;
while (_local3 < accuracy) {
_local2 = _local1 + _local4;
_local1 = _local2 + _local4;
mc.curveTo(x + (Math.cos(_local2) * _local6), y + (Math.sin(_local2) * _local6), x + (Math.cos(_local1) * radius), y + (Math.sin(_local1) * radius));
_local3++;
}
}
static function DrawRectangle(mc, x, y, width, height) {
mc.moveTo(x, y);
mc.lineTo(x + width, y);
mc.lineTo(x + width, y + height);
mc.lineTo(x, y + height);
mc.lineTo(x, y);
}
static function DrawFillRectangle(mc, x, y, width, height) {
mc.beginFill(0, 100);
DrawRectangle(mc, x, y, width, height);
mc.endFill();
}
}
Symbol 289 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionUncover] Frame 0
class fsplayer.core.playback.transitions.CTransitionUncover implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_environment, m_newSlide, m_oldSlide, m_hasOldSlide, m_mask, m_x1, m_y1;
function CTransitionUncover (parameters, type) {
m_environment = parameters.getEnvironment();
m_newSlide = parameters.getNewSlide();
m_oldSlide = parameters.getOldSlide();
m_hasOldSlide = parameters.hasOldSlide();
if (m_hasOldSlide) {
m_oldSlide.bringToFront();
} else {
m_mask = m_newSlide.getPrimaryMask();
m_newSlide.bringToFront();
}
SetType(type);
}
function applyEffect(phase) {
var _local2 = m_environment.getSlideWidth();
var _local3 = m_environment.getSlideHeight();
var _local5 = _local2 * (m_x1 * phase);
var _local4 = _local3 * (m_y1 * phase);
if (m_hasOldSlide) {
var _local6 = m_oldSlide.getPrimaryMovie();
_local6._x = -_local5;
_local6._y = -_local4;
} else {
var _local9 = ((1 - phase) * 0.5) * _local2;
var _local11 = _local2 - _local9;
var _local8 = ((1 - phase) * 0.5) * _local3;
var _local10 = _local3 - _local8;
m_mask.clear();
if (m_x1 < 0) {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, 0, -_local5, _local3);
} else if (m_x1 > 0) {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, _local2 - _local5, 0, _local5, _local3);
}
if (m_y1 < 0) {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, 0, _local2, -_local4);
} else if (m_y1 > 0) {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, _local3 - _local4, _local2, _local4);
}
}
}
function SetType(type) {
m_x1 = 0;
m_y1 = 0;
switch (type) {
case DIRECTION_UP :
m_y1 = 1;
break;
case DIRECTION_DOWN :
m_y1 = -1;
break;
case DIRECTION_LEFT :
m_x1 = 1;
break;
case DIRECTION_RIGHT :
m_x1 = -1;
break;
case DIRECTION_LEFT_DOWN :
m_x1 = 1;
m_y1 = -1;
break;
case DIRECTION_LEFT_UP :
m_x1 = 1;
m_y1 = 1;
break;
case DIRECTION_RIGHT_DOWN :
m_x1 = -1;
m_y1 = -1;
break;
case DIRECTION_RIGHT_UP :
m_x1 = -1;
m_y1 = 1;
}
}
static var DIRECTION_UP = 0;
static var DIRECTION_DOWN = 1;
static var DIRECTION_LEFT = 2;
static var DIRECTION_RIGHT = 3;
static var DIRECTION_LEFT_DOWN = 4;
static var DIRECTION_LEFT_UP = 5;
static var DIRECTION_RIGHT_DOWN = 6;
static var DIRECTION_RIGHT_UP = 7;
}
Symbol 290 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionFadeSmoothly] Frame 0
class fsplayer.core.playback.transitions.CTransitionFadeSmoothly implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_parameters;
function CTransitionFadeSmoothly (parameters) {
m_parameters = parameters;
m_parameters.getNewSlide().bringToFront();
}
function applyEffect(phase) {
var _local2 = m_parameters.getNewSlide().getPrimaryMovie();
_local2._alpha = 100 * phase;
}
}
Symbol 291 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionFadeThroughBlack] Frame 0
class fsplayer.core.playback.transitions.CTransitionFadeThroughBlack implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_parameters;
function CTransitionFadeThroughBlack (parameters) {
m_parameters = parameters;
if (m_parameters.hasOldSlide()) {
m_parameters.getOldSlide().bringToFront();
}
}
function applyEffect(phase) {
var _local4 = m_parameters.getOldSlide().getPrimaryMovie();
var _local7 = m_parameters.getNewSlide().getPrimaryMovie();
if (!m_parameters.hasOldSlide()) {
phase = (phase * 0.5) + 0.5;
}
if (phase < 0.5) {
var _local9 = new Color(_local4);
var _local6 = new Object();
var _local2 = 200 * (0.5 - phase);
_local6 = {ra:_local2, rb:"0", ga:_local2, gb:"0", ba:_local2, bb:"0", aa:"100", ab:"0"};
_local9.setTransform(_local6);
} else {
if (m_parameters.hasOldSlide()) {
_local4._visible = false;
}
var _local8 = new Color(_local7);
var _local5 = new Object();
var _local2 = 200 * (phase - 0.5);
_local5 = {ra:_local2, rb:"0", ga:_local2, gb:"0", ba:_local2, bb:"0", aa:"100", ab:"0"};
_local8.setTransform(_local5);
}
}
}
Symbol 292 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionCutThroughBlack] Frame 0
class fsplayer.core.playback.transitions.CTransitionCutThroughBlack implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide;
function CTransitionCutThroughBlack (parameters, type) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
}
function applyEffect(phase) {
var _local4 = m_newSlide.getPrimaryMovie();
var _local3 = new Color(_local4);
var _local2 = new Object();
if (phase < 0.2) {
_local2 = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(_local2);
} else if (phase > 0.8) {
_local2 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(_local2);
}
}
}
Symbol 293 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionBox] Frame 0
class fsplayer.core.playback.transitions.CTransitionBox implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_oldSlide, m_environment, m_hasOldSlide, m_type, m_mask;
function CTransitionBox (parameters, type) {
m_newSlide = parameters.getNewSlide();
m_oldSlide = parameters.getOldSlide();
m_environment = parameters.getEnvironment();
m_hasOldSlide = parameters.hasOldSlide();
m_type = type;
CreateMask();
}
function applyEffect(phase) {
var _local4 = m_environment.getSlideWidth();
var _local5 = m_environment.getSlideHeight();
var _local3 = ((m_type == 0) ? (1 - phase) : (phase));
if ((m_type != 0) || (m_hasOldSlide)) {
m_mask._xscale = _local3 * 100;
m_mask._yscale = _local3 * 100;
m_mask._x = (_local4 * (1 - _local3)) * 0.5;
m_mask._y = (_local5 * (1 - _local3)) * 0.5;
} else {
var _local6 = (_local4 * (1 - _local3)) * 0.5;
var _local2 = (_local5 * (1 - _local3)) * 0.5;
m_mask.clear();
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, 0, _local4, _local2);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, _local5 - _local2, _local4, _local2);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, _local2, _local6, _local5 - (2 * _local2));
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, _local4 - _local6, _local2, _local6, _local5 - (2 * _local2));
}
}
function CreateMask() {
m_mask = undefined;
if (m_type == 0) {
if (m_hasOldSlide) {
m_oldSlide.bringToFront();
m_mask = m_oldSlide.getPrimaryMask();
}
} else {
m_mask = m_newSlide.getPrimaryMask();
m_newSlide.bringToFront();
}
if (m_mask != undefined) {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, 0, m_environment.getSlideWidth(), m_environment.getSlideHeight());
} else {
m_mask = m_newSlide.getPrimaryMask();
}
}
static var DIRECTION_IN = 0;
static var DIRECTION_OUT = 1;
}
Symbol 294 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionShapeCircle] Frame 0
class fsplayer.core.playback.transitions.CTransitionShapeCircle implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment, m_mask, m_scaleY;
function CTransitionShapeCircle (parameters) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
CreateMask();
}
function applyEffect(phase) {
var _local4 = m_environment.getSlideWidth();
var _local5 = m_environment.getSlideHeight();
var _local2 = Math.SQRT2;
m_mask._xscale = (phase * _local2) * 100;
m_mask._yscale = m_mask._xscale * m_scaleY;
m_mask._x = (_local4 * (1 - (phase * _local2))) * 0.5;
m_mask._y = (_local5 * (1 - (phase * _local2))) * 0.5;
}
function CreateMask() {
m_mask = m_newSlide.getPrimaryMask();
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
m_scaleY = _local4 / _local3;
var _local2 = _local3 * 0.5;
m_mask.beginFill(0, 100);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawCircle(m_mask, _local2, _local2, _local2);
m_mask.endFill();
}
}
Symbol 295 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionShapeDiamond] Frame 0
class fsplayer.core.playback.transitions.CTransitionShapeDiamond implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment, m_mask;
function CTransitionShapeDiamond (parameters) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
CreateMask();
}
function applyEffect(phase) {
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
m_mask._xscale = phase * 100;
m_mask._yscale = phase * 100;
m_mask._x = (_local3 * (1 - (2 * phase))) * 0.5;
m_mask._y = (_local4 * (1 - (2 * phase))) * 0.5;
}
function CreateMask() {
m_mask = m_newSlide.getPrimaryMask();
var _local2 = m_environment.getSlideWidth();
var _local3 = m_environment.getSlideHeight();
m_mask.beginFill(0, 100);
m_mask.moveTo(0, _local3);
m_mask.lineTo(_local2, 0);
m_mask.lineTo(2 * _local2, _local3);
m_mask.lineTo(_local2, 2 * _local3);
m_mask.endFill();
}
}
Symbol 296 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionShapePlus] Frame 0
class fsplayer.core.playback.transitions.CTransitionShapePlus implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment, m_mask;
function CTransitionShapePlus (parameters) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
m_mask = m_newSlide.getPrimaryMask();
}
function applyEffect(phase) {
var _local5 = m_environment.getSlideWidth();
var _local7 = m_environment.getSlideHeight();
var _local3 = ((1 - phase) * 0.5) * _local5;
var _local6 = _local5 - _local3;
var _local2 = ((1 - phase) * 0.5) * _local7;
var _local4 = _local7 - _local2;
m_mask.beginFill(0, 100);
m_mask.moveTo(0, _local4);
m_mask.lineTo(0, _local2);
m_mask.lineTo(_local3, _local2);
m_mask.lineTo(_local3, 0);
m_mask.lineTo(_local6, 0);
m_mask.lineTo(_local6, _local2);
m_mask.lineTo(_local5, _local2);
m_mask.lineTo(_local5, _local4);
m_mask.lineTo(_local6, _local4);
m_mask.lineTo(_local6, _local7);
m_mask.lineTo(_local3, _local7);
m_mask.lineTo(_local3, _local4);
m_mask.endFill();
}
}
Symbol 297 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionSplit] Frame 0
class fsplayer.core.playback.transitions.CTransitionSplit implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment, m_type, m_mask1, m_mask2;
function CTransitionSplit (parameters, type) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
m_type = type;
CreateMask();
}
function applyEffect(phase) {
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
switch (m_type) {
case VERTICAL_IN :
m_mask1._xscale = phase * 100;
m_mask2._xscale = phase * 100;
m_mask2._x = (1 - (phase * 0.5)) * _local3;
break;
case HORIZONTAL_IN :
m_mask1._yscale = phase * 100;
m_mask2._yscale = phase * 100;
m_mask2._y = (1 - (phase * 0.5)) * _local4;
break;
case VERTICAL_OUT :
m_mask1._xscale = phase * 100;
m_mask1._x = ((1 - phase) * _local3) * 0.5;
break;
case HORIZONTAL_OUT :
m_mask1._yscale = phase * 100;
m_mask1._y = ((1 - phase) * _local4) * 0.5;
}
}
function CreateMask() {
var _local2 = m_newSlide.getPrimaryMask();
m_mask1 = _local2.createEmptyMovieClip("CTransitionSplit_mask1", _local2.getNextHighestDepth());
m_mask2 = _local2.createEmptyMovieClip("CTransitionSplit_mask2", _local2.getNextHighestDepth());
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
switch (m_type) {
case VERTICAL_IN :
var _local5 = _local3 * 0.5;
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask1, 0, 0, _local5, _local4);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask2, 0, 0, _local5, _local4);
break;
case HORIZONTAL_IN :
var _local6 = _local4 * 0.5;
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask1, 0, 0, _local3, _local6);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask2, 0, 0, _local3, _local6);
break;
case VERTICAL_OUT :
case HORIZONTAL_OUT :
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask1, 0, 0, _local3, _local4);
}
}
static var VERTICAL_IN = 0;
static var VERTICAL_OUT = 1;
static var HORIZONTAL_IN = 2;
static var HORIZONTAL_OUT = 3;
}
Symbol 298 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionBlinds] Frame 0
class fsplayer.core.playback.transitions.CTransitionBlinds implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment, m_type, m_masks;
function CTransitionBlinds (parameters, type) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
m_type = type;
CreateMask();
}
function applyEffect(phase) {
var _local6 = m_environment.getSlideWidth() / 6;
var _local5 = m_environment.getSlideHeight() / 6;
var _local3;
var _local2 = 0;
while (_local2 < m_numOfMasks) {
_local3 = m_masks[_local2];
if (m_type == DIRECTION_VERTICAL) {
_local3._xscale = phase * 100;
_local3._x = _local6 * _local2;
} else {
_local3._yscale = phase * 100;
_local3._y = _local5 * _local2;
}
_local2++;
}
}
function CreateMask() {
var _local5 = m_environment.getSlideWidth();
var _local6 = m_environment.getSlideHeight();
var _local8 = _local5 / 6;
var _local7 = _local6 / 6;
m_masks = new Array(m_numOfMasks);
var _local4 = m_newSlide.getPrimaryMask();
var _local3;
var _local2 = 0;
while (_local2 < m_numOfMasks) {
_local3 = _local4.createEmptyMovieClip("CTransitionBlinds_mask" + _local2, _local4.getNextHighestDepth());
if (m_type == DIRECTION_VERTICAL) {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(_local3, 0, 0, _local8, _local6);
} else {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(_local3, 0, 0, _local5, _local7);
}
m_masks[_local2] = _local3;
_local2++;
}
}
static var DIRECTION_VERTICAL = 0;
static var DIRECTION_HORIZONTAL = 1;
static var m_numOfMasks = 6;
}
Symbol 299 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionStrips] Frame 0
class fsplayer.core.playback.transitions.CTransitionStrips implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment, m_maskShift, m_mask;
function CTransitionStrips (parameters, type) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
CreateMask(type);
}
function applyEffect(phase) {
m_mask._x = m_maskShift * (1 - phase);
}
function CreateMask(type) {
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
var _local11 = Math.round(Math.sqrt((_local3 * _local3) + (_local4 * _local4)) / m_squareDivisor);
var _local7 = Math.ceil(_local4 / _local11);
var _local12 = _local4 / _local3;
var _local9 = 1 / _local7;
var _local8 = _local9 * _local12;
var _local5;
var _local2;
var _local6;
m_maskShift = (1 + ((_local7 - 1) * _local8)) * _local3;
m_mask = m_newSlide.getPrimaryMask();
m_mask.beginFill(0, 100);
switch (type) {
case DIRECTION_LEFT_DOWN :
_local5 = -((_local7 - 1) * _local8);
_local2 = 0;
m_mask.moveTo(_local3, 0);
var _local10 = 0;
while (_local10 < _local7) {
m_mask.lineTo(_local5 * _local3, _local2 * _local4);
_local2 = _local2 + _local9;
m_mask.lineTo(_local5 * _local3, _local2 * _local4);
_local5 = _local5 + _local8;
_local10++;
}
m_mask.lineTo(_local3, _local4);
break;
case DIRECTION_LEFT_UP :
_local5 = 0;
_local2 = 0;
m_mask.moveTo(_local3, 0);
_local10 = 0;
while (_local10 < _local7) {
m_mask.lineTo(_local5 * _local3, _local2 * _local4);
_local2 = _local2 + _local9;
m_mask.lineTo(_local5 * _local3, _local2 * _local4);
_local5 = _local5 - _local8;
_local10++;
}
m_mask.lineTo(_local3, _local4);
break;
case DIRECTION_RIGHT_DOWN :
m_maskShift = m_maskShift * -1;
_local6 = 1 + ((_local7 - 1) * _local8);
_local2 = 0;
m_mask.moveTo(0, 0);
_local10 = 0;
while (_local10 < _local7) {
m_mask.lineTo(_local6 * _local3, _local2 * _local4);
_local2 = _local2 + _local9;
m_mask.lineTo(_local6 * _local3, _local2 * _local4);
_local6 = _local6 - _local8;
_local10++;
}
m_mask.lineTo(0, _local4);
break;
case DIRECTION_RIGHT_UP :
m_maskShift = m_maskShift * -1;
_local6 = 1;
_local2 = 0;
m_mask.moveTo(0, 0);
_local10 = 0;
while (_local10 < _local7) {
m_mask.lineTo(_local6 * _local3, _local2 * _local4);
_local2 = _local2 + _local9;
m_mask.lineTo(_local6 * _local3, _local2 * _local4);
_local6 = _local6 + _local8;
_local10++;
}
m_mask.lineTo(0, _local4);
}
m_mask.endFill();
}
static var DIRECTION_LEFT_DOWN = 0;
static var DIRECTION_LEFT_UP = 1;
static var DIRECTION_RIGHT_DOWN = 2;
static var DIRECTION_RIGHT_UP = 3;
static var m_squareDivisor = 21;
}
Symbol 300 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionWedgeAndWheel] Frame 0
class fsplayer.core.playback.transitions.CTransitionWedgeAndWheel implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment, m_type, m_mask;
function CTransitionWedgeAndWheel (parameters, type) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
m_type = type;
m_mask = m_newSlide.getPrimaryMask();
}
function applyEffect(phase) {
var _local5 = m_environment.getSlideWidth();
var _local6 = m_environment.getSlideHeight();
m_mask.beginFill(0, 100);
var _local8 = m_type;
var _local9 = _local8;
if (m_type == TYPE_WEDGE) {
_local8 = 2;
_local9 = 1;
}
var _local7 = phase / _local8;
var _local2;
var _local3;
var _local4 = 0;
while (_local4 < _local9) {
_local2 = _local4 / _local8;
_local3 = _local2 + _local7;
m_mask.moveTo(_local5 * 0.5, _local6 * 0.5);
AddPointAtPhase(_local2);
if ((_local2 < 0.125) && (_local3 > 0.125)) {
m_mask.lineTo(_local5, 0);
}
if ((_local2 < 0.375) && (_local3 > 0.375)) {
m_mask.lineTo(_local5, _local6);
}
if ((_local2 < 0.625) && (_local3 > 0.625)) {
m_mask.lineTo(0, _local6);
}
if ((_local2 < 0.875) && (_local3 > 0.875)) {
m_mask.lineTo(0, 0);
}
AddPointAtPhase(_local3);
_local4++;
}
if (m_type == TYPE_WEDGE) {
_local7 = 1 - _local7;
m_mask.lineTo(_local5 * 0.5, _local6 * 0.5);
AddPointAtPhase(_local7);
if (_local7 < 0.625) {
m_mask.lineTo(0, _local6);
}
if (_local7 < 0.875) {
m_mask.lineTo(0, 0);
}
m_mask.lineTo(_local5 * 0.5, 0);
}
m_mask.endFill();
}
function AddPointAtPhase(phase) {
var _local4;
var _local3;
if (phase <= 0.125) {
_local4 = 0.5 + (phase * 4);
_local3 = 0;
} else if (phase <= 0.375) {
_local4 = 1;
_local3 = (phase - 0.125) * 4;
} else if (phase <= 0.625) {
_local4 = 1 + ((0.375 - phase) * 4);
_local3 = 1;
} else if (phase <= 0.875) {
_local4 = 0;
_local3 = 1 + ((0.625 - phase) * 4);
} else {
_local4 = (phase - 0.875) * 4;
_local3 = 0;
}
m_mask.lineTo(_local4 * m_environment.getSlideWidth(), _local3 * m_environment.getSlideHeight());
}
static var TYPE_WEDGE = 0;
static var TYPE_WHEEL_1 = 1;
static var TYPE_WHEEL_2 = 2;
static var TYPE_WHEEL_3 = 3;
static var TYPE_WHEEL_4 = 4;
static var TYPE_WHEEL_8 = 8;
static var m_squareDivisor = 21;
}
Symbol 301 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionRandomBars] Frame 0
class fsplayer.core.playback.transitions.CTransitionRandomBars implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment, m_type, m_mask, m_numOfBars, m_lastNumOfOpenedBars, m_rndGen, m_randomBarSize;
function CTransitionRandomBars (parameters, type) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
m_type = type;
m_mask = m_newSlide.getPrimaryMask();
InitParams();
}
function applyEffect(phase) {
var _local3 = m_environment.getSlideWidth();
var _local4 = m_environment.getSlideHeight();
var _local6 = Math.floor(m_numOfBars * phase);
var _local5;
var _local2 = m_lastNumOfOpenedBars;
while (_local2 < _local6) {
_local5 = m_rndGen.GetRandom(_local2);
if (m_type == DIRECTION_HORIZONTAL) {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, 0, (_local5 * m_randomBarSize) * _local4, _local3, m_randomBarSize * _local4);
} else {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, (_local5 * m_randomBarSize) * _local3, 0, m_randomBarSize * _local3, _local4);
}
_local2++;
}
m_lastNumOfOpenedBars = _local6;
}
function InitParams() {
var _local2 = m_environment.getSlideWidth();
var _local3 = m_environment.getSlideHeight();
var _local4;
switch (m_type) {
case DIRECTION_HORIZONTAL :
_local4 = (((_local3 / MIN_BAR_SIZE) < MAX_BARS_NUM) ? (MIN_BAR_SIZE) : (Math.ceil(_local3 / MAX_BARS_NUM)));
m_numOfBars = Math.ceil(_local3 / _local4);
m_randomBarSize = 1 / m_numOfBars;
break;
case DIRECTION_VERTICAL :
_local4 = (((_local2 / MIN_BAR_SIZE) < MAX_BARS_NUM) ? (MIN_BAR_SIZE) : (Math.ceil(_local2 / MAX_BARS_NUM)));
m_numOfBars = Math.ceil(_local2 / _local4);
m_randomBarSize = 1 / m_numOfBars;
}
m_rndGen = new fsplayer.core.playback.transitions.util.CRandomGenerator(m_numOfBars);
m_lastNumOfOpenedBars = 0;
}
static var DIRECTION_VERTICAL = 0;
static var DIRECTION_HORIZONTAL = 1;
static var MAX_BARS_NUM = 200;
static var MIN_BAR_SIZE = 3;
}
Symbol 302 MovieClip [__Packages.fsplayer.core.playback.transitions.util.CRandomGenerator] Frame 0
class fsplayer.core.playback.transitions.util.CRandomGenerator
{
var m_size, m_set;
function CRandomGenerator (size) {
m_size = size;
Generate();
}
function GetRandom(index) {
if (index >= m_size) {
return(0);
}
return(m_set[index]);
}
function Generate() {
if (m_size > MAX_RANDOM_VALUE) {
m_size = MAX_RANDOM_VALUE;
}
var _local8 = 13;
var _local7 = 17;
var _local9 = MAX_RANDOM_VALUE;
var _local3 = new Array(MAX_RANDOM_VALUE);
_local3[0] = m_size;
var _local4 = 1;
while (_local4 < MAX_RANDOM_VALUE) {
_local3[_local4] = ((_local3[_local4 - 1] * _local8) + _local7) % _local9;
_local4++;
}
m_set = new Array(m_size);
var _local2;
var _local10 = Math.floor(Math.random() * m_size);
var _local5 = _local10;
var _local6 = 0;
_local4 = 0;
while (_local4 < m_size) {
do {
_local2 = _local3[_local6++];
} while (_local2 >= m_size);
m_set[_local5] = _local2;
_local5++;
if (_local5 == m_size) {
_local5 = 0;
}
_local4++;
}
}
static var MAX_RANDOM_VALUE = 8192;
}
Symbol 303 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionDissolve] Frame 0
class fsplayer.core.playback.transitions.CTransitionDissolve implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_environment, m_newSlide, m_mask, m_numOfSquares, m_lastNumOfOpenedSquares, m_rndGen, m_rowLength, m_sizeX, m_sizeY;
function CTransitionDissolve (parameters) {
m_environment = parameters.getEnvironment();
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_mask = m_newSlide.getPrimaryMask();
InitParams();
}
function applyEffect(phase) {
var _local6 = Math.floor(m_numOfSquares * phase);
var _local3;
var _local5;
var _local4;
var _local2 = m_lastNumOfOpenedSquares;
while (_local2 < _local6) {
_local3 = m_rndGen.GetRandom(_local2);
_local4 = _local3 % m_rowLength;
_local5 = Math.round((_local3 - _local4) / m_rowLength);
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(m_mask, _local4 * m_sizeX, _local5 * m_sizeY, m_sizeX, m_sizeY);
_local2++;
}
m_lastNumOfOpenedSquares = _local6;
}
function InitParams() {
var _local2 = m_environment.getSlideWidth();
var _local3 = m_environment.getSlideHeight();
var _local5 = Math.ceil(Math.sqrt((_local2 * _local3) / MAX_SQUARE_NUM));
m_rowLength = Math.ceil(_local2 / _local5);
var _local4 = Math.ceil(_local3 / _local5);
m_sizeX = _local2 / m_rowLength;
m_sizeY = _local3 / _local4;
m_numOfSquares = m_rowLength * _local4;
m_rndGen = new fsplayer.core.playback.transitions.util.CRandomGenerator(m_numOfSquares);
m_lastNumOfOpenedSquares = 0;
}
static var MAX_SQUARE_NUM = 1000;
}
Symbol 304 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionNewsflash] Frame 0
class fsplayer.core.playback.transitions.CTransitionNewsflash implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment;
function CTransitionNewsflash (parameters) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
}
function applyEffect(phase) {
var _local5 = m_environment.getSlideWidth();
var _local6 = m_environment.getSlideHeight();
var _local2 = m_newSlide.getPrimaryMovie();
var _local4 = -6.28318530717959 * phase;
var _local8 = (_local5 * phase) * 0.5;
var _local7 = (_local6 * phase) * 0.5;
_local2._xscale = 100 * phase;
_local2._yscale = 100 * phase;
_local2._rotation = -360 * phase;
var _local10 = (_local5 * 0.5) - ((_local8 * Math.cos(_local4)) - (_local7 * Math.sin(_local4)));
_local2._x = _local10;
var _local9 = (_local6 * 0.5) - ((_local8 * Math.sin(_local4)) + (_local7 * Math.cos(_local4)));
_local2._y = _local9;
}
}
Symbol 305 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionCheckerboard] Frame 0
class fsplayer.core.playback.transitions.CTransitionCheckerboard implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_environment, m_type, m_numOfMasks, m_masks;
function CTransitionCheckerboard (parameters, type) {
m_newSlide = parameters.getNewSlide();
m_newSlide.bringToFront();
m_environment = parameters.getEnvironment();
m_type = type;
CreateMask();
}
function applyEffect(phase) {
var _local6 = m_environment.getSlideWidth() / m_numOfColumns;
var _local5 = m_environment.getSlideHeight() / m_numOfRows;
var _local3;
var _local2 = 0;
while (_local2 < m_numOfMasks) {
_local3 = m_masks[_local2];
if (m_type == DIRECTION_ACROSS) {
_local3._xscale = phase * 201;
_local3._x = _local6 * (_local2 - 1);
} else {
_local3._yscale = phase * 201;
_local3._y = _local5 * (_local2 - 1);
}
_local2++;
}
}
function CreateMask() {
var _local9 = m_environment.getSlideWidth();
var _local10 = m_environment.getSlideHeight();
var _local5 = _local9 / m_numOfColumns;
var _local4 = _local10 / m_numOfRows;
var _local7;
if (m_type == DIRECTION_ACROSS) {
m_numOfMasks = m_numOfColumns + 1;
_local7 = m_numOfRows;
} else {
m_numOfMasks = m_numOfRows + 1;
_local7 = m_numOfColumns;
}
var _local8 = m_newSlide.getPrimaryMask();
m_masks = new Array(m_numOfMasks);
var _local6;
var _local3 = 0;
while (_local3 < m_numOfMasks) {
_local6 = _local8.createEmptyMovieClip("CTransitionCheckerboard_mask" + _local3, _local8.getNextHighestDepth());
var _local2 = 1 - (_local3 % 2);
while (_local2 < _local7) {
if (m_type == DIRECTION_ACROSS) {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(_local6, 0, _local2 * _local4, _local5, _local4);
} else {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(_local6, _local2 * _local5, 0, _local5, _local4);
}
_local2 = _local2 + 2;
}
m_masks[_local3] = _local6;
_local3++;
}
}
static var DIRECTION_ACROSS = 0;
static var DIRECTION_DOWN = 1;
static var m_numOfRows = 10;
static var m_numOfColumns = 14;
}
Symbol 306 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionComb] Frame 0
class fsplayer.core.playback.transitions.CTransitionComb implements fsplayer.core.playback.transitions.ITransitionEffect
{
var m_newSlide, m_oldSlide, m_environment, m_type, m_duplicate1, m_duplicate2, m_slide2Mask, m_dup2Mask, m_slide1Mask, m_dup1Mask;
function CTransitionComb (parameters, type) {
m_newSlide = parameters.getNewSlide();
m_oldSlide = parameters.getOldSlide();
m_environment = parameters.getEnvironment();
m_type = type;
CreateMask();
}
function applyEffect(phase) {
var _local9 = m_environment.getSlideWidth();
var _local10 = m_environment.getSlideHeight();
var _local7 = m_newSlide.getPrimaryMovie();
var _local2 = ((m_oldSlide != undefined) ? (m_oldSlide.getPrimaryMovie()) : undefined);
if (m_type == DIRECTION_VERTICAL) {
var _local4 = _local10 * phase;
var _local3 = _local10 * (1 - phase);
if (_local2 != undefined) {
_local2._y = -_local4;
m_duplicate1._y = _local4;
}
_local7._y = _local3;
m_duplicate2._y = -_local3;
} else {
var _local6 = _local9 * phase;
var _local5 = _local9 * (1 - phase);
if (_local2 != undefined) {
_local2._x = -_local6;
m_duplicate1._x = _local6;
}
_local7._x = _local5;
m_duplicate2._x = -_local5;
}
}
function CreateMask() {
var _local7 = m_environment.getSlideWidth();
var _local8 = m_environment.getSlideHeight();
var _local6 = _local7 / m_numOfStrips;
var _local5 = _local8 / m_numOfStrips;
var _local9 = m_newSlide.getPrimaryMovie();
m_duplicate2 = m_newSlide.getSecondaryMovie();
m_slide2Mask = m_newSlide.getPrimaryMask();
m_dup2Mask = m_newSlide.getSecondaryMask();
if (m_oldSlide != undefined) {
var _local10 = m_oldSlide.getPrimaryMovie();
m_duplicate1 = m_oldSlide.getSecondaryMovie();
m_slide1Mask = m_oldSlide.getPrimaryMask();
m_dup1Mask = m_oldSlide.getSecondaryMask();
}
var _local4 = new Array(4);
_local4[0] = m_slide1Mask;
_local4[1] = m_dup1Mask;
_local4[2] = m_slide2Mask;
_local4[3] = m_dup2Mask;
var _local3 = 0;
while (_local3 < 4) {
if (_local4[_local3] != undefined) {
var _local2 = _local3 % 2;
while (_local2 < m_numOfStrips) {
if (m_type == DIRECTION_VERTICAL) {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(_local4[_local3], _local2 * _local6, 0, _local6, _local8);
} else {
fsplayer.core.playback.transitions.util.CDrawUtils.DrawFillRectangle(_local4[_local3], 0, _local2 * _local5, _local7, _local5);
}
_local2 = _local2 + 2;
}
}
_local3++;
}
}
static var DIRECTION_VERTICAL = 0;
static var DIRECTION_HORIZONTAL = 1;
static var m_numOfStrips = 20;
}
Symbol 307 MovieClip [__Packages.fsplayer.core.playback.transitions.CTransitionNoTransition] Frame 0
class fsplayer.core.playback.transitions.CTransitionNoTransition implements fsplayer.core.playback.transitions.ITransitionEffect
{
function CTransitionNoTransition () {
}
function applyEffect(phase) {
}
}
Symbol 308 MovieClip [__Packages.fsplayer.core.playback.sounds.ITransitionSoundPlaybackCore] Frame 0
interface fsplayer.core.playback.sounds.ITransitionSoundPlaybackCore extends fsplayer.core.playback.sounds.ISoundPlaybackCore
{
}
Symbol 309 MovieClip [__Packages.fsplayer.res.sounds.ITransitionSoundEx] Frame 0
interface fsplayer.res.sounds.ITransitionSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 310 MovieClip [__Packages.fsplayer.core.loading.IPresentationBgSoundLoadingListenerEx] Frame 0
interface fsplayer.core.loading.IPresentationBgSoundLoadingListenerEx
{
}
Symbol 311 MovieClip [__Packages.fsplayer.res.sounds.IPresentationBackgroundSoundEx] Frame 0
interface fsplayer.res.sounds.IPresentationBackgroundSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 312 MovieClip [__Packages.fsplayer.core.playback.sounds.CSoundPlaybackControllerEx] Frame 0
class fsplayer.core.playback.sounds.CSoundPlaybackControllerEx implements fsplayer.core.playback.sounds.ISoundPlaybackControllerEx, fsplayer.core.playback.sounds.ITransitionSoundPlaybackCore, fsplayer.core.playback.sounds.IEventSoundPlaybackCore, fsplayer.core.loading.IPresentationBgSoundLoadingListenerEx
{
var m_presentation, m_playbackController, m_slides, m_soundAssets, m_activeSounds, m_transitionSounds, m_eventSounds, m_backgroundSounds, m_listeners, m_tweaks, m_bgSound, m_transitionSound, m_previousSlideIndex;
function CSoundPlaybackControllerEx (presentation, playbackController, bgAudioLoadingController) {
m_presentation = presentation;
m_playbackController = playbackController;
m_slides = presentation.getSlides();
m_soundAssets = presentation.getSoundAssets();
m_activeSounds = new Object();
var _local2 = m_slides.getCount();
m_transitionSounds = new Array(_local2);
m_eventSounds = new Array(_local2);
m_backgroundSounds = new Array(_local2);
var _local4 = new fsplayer.res.sounds.CPresentationBackgroundSoundEx(bgAudioLoadingController, presentation);
_local4.load(this);
m_listeners = new Array();
m_tweaks = {blinkSounds:true};
}
function onPresentationBgSoundLoadInit(backgroundSound) {
m_bgSound = backgroundSound;
registerSound(m_bgSound);
if (m_playing) {
m_bgSound.start();
}
}
function getPresentation() {
return(m_presentation);
}
function resyncOnPlay() {
m_resyncOnPlay = true;
}
function getTransitionSound(slideIndex) {
var _local2 = m_transitionSounds[slideIndex];
if (_local2 == undefined) {
var _local3 = m_slides.getSlide(slideIndex).getTransition();
if (_local3.hasSound()) {
_local2 = new fsplayer.res.sounds.CTransitionSoundEx(_local3.getSound(), slideIndex, _local3.soundIsLooped(), this);
} else {
_local2 = null;
}
m_transitionSounds[slideIndex] = _local2;
}
return(((_local2 != null) ? (_local2) : undefined));
}
function getEventSounds(slideIndex) {
var _local2 = m_eventSounds[slideIndex];
if (!_local2) {
var _local4 = m_slides.getSlide(slideIndex).getSoundCommands();
_local2 = _local4.getSlideEventSounds(this);
m_eventSounds[slideIndex] = _local2;
}
return(_local2);
}
function getSlideBackgroundSound(slideIndex) {
var _local2 = m_backgroundSounds[slideIndex];
if (_local2 == undefined) {
var _local4 = m_slides.getSlide(slideIndex);
if (_local4.hasBackgroundSound()) {
var _local5 = _local4.getBackgroundSound();
_local2 = new fsplayer.res.sounds.CSlideBackgroundSoundEx(_local5, slideIndex, this);
} else {
_local2 = null;
}
m_backgroundSounds[slideIndex] = _local2;
}
return(((_local2 != null) ? (_local2) : undefined));
}
function onStartSlideSwitching(slideIndex, autoStart) {
var _local7 = getTransitionSound(slideIndex);
if (_local7) {
startTransitionSound(_local7);
}
var _local8 = getEventSounds(slideIndex);
_local8.register();
var _local6 = getSlideBackgroundSound(slideIndex);
if (_local6) {
registerSound(_local6);
}
if (m_resyncOnSlideStart) {
resync(autoStart);
}
for (var _local5 in m_activeSounds) {
var _local2 = m_activeSounds[_local5];
_local2.onStartSlideSwitching(slideIndex, autoStart);
}
}
function onPositionChanged(slideIndex, stepIndex, time) {
if (!m_needResync) {
for (var _local6 in m_activeSounds) {
var _local2 = m_activeSounds[_local6];
_local2.onPositionChanged(slideIndex, stepIndex, time);
}
}
}
function blink() {
pause();
var _local2 = new Sound();
_local2.stop();
play();
}
function startTransitionSound(sound) {
stopCurrentTransitionSound();
m_transitionSound = sound;
registerSound(sound);
sound.start();
}
function stopCurrentTransitionSound() {
if (m_transitionSound) {
unregisterSound(m_transitionSound);
m_transitionSound.stop();
m_transitionSound = undefined;
}
}
function registerSound(sound) {
m_activeSounds[sound.getId()] = sound;
}
function unregisterSound(sound) {
m_activeSounds[sound.getId()] = undefined;
}
function onSeek() {
pause();
m_needResync = true;
}
function onEndSeek() {
if (m_needResync) {
resync();
}
}
function needResync() {
m_needResync = true;
m_resyncOnSlideStart = true;
}
function resync(startSound) {
m_needResync = false;
m_resyncOnSlideStart = false;
m_resyncOnPlay = false;
var _local4 = m_playbackController.getCurrentSlideIndex();
var _local5 = m_playbackController.getCurrentStepIndex();
var _local3 = m_playbackController.getCurrentSlidePlaybackPosition() * m_playbackController.getCurrentSlideDuration();
for (var _local7 in m_activeSounds) {
var _local2 = m_activeSounds[_local7];
_local2.resync(_local4, _local5, _local3, startSound);
}
}
function onStartSlidePlayback(slideIndex) {
if (m_previousSlideIndex != undefined) {
var _local5 = m_slides.getSlide(m_previousSlideIndex);
if (_local5.hasEmbeddedFlashClips() && (m_tweaks.blinkSounds)) {
blink();
}
}
m_previousSlideIndex = slideIndex;
for (var _local4 in m_activeSounds) {
var _local2 = m_activeSounds[_local4];
_local2.onStartSlidePlayback(slideIndex);
}
}
function play() {
m_playing = true;
if (m_resyncOnPlay) {
resync();
} else {
for (var _local3 in m_activeSounds) {
var _local2 = m_activeSounds[_local3];
_local2.play();
}
}
}
function pause() {
m_playing = false;
for (var _local3 in m_activeSounds) {
var _local2 = m_activeSounds[_local3];
_local2.pause();
}
}
function getVolume() {
return(m_volume);
}
function setVolume(volume) {
m_volume = volume;
m_soundAssets.setVolume(volume);
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_local2];
_local3.onSoundVolumeChanged(this);
_local2++;
}
}
function addListener(listener) {
m_listeners.push(listener);
}
function removeListener(listener) {
var _local3 = m_listeners.length;
var _local2 = 0;
while (_local2 < _local3) {
if (m_listeners[_local2] === listener) {
m_listeners.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function tweak(parameterName, parameterValue) {
m_tweaks[parameterName] = parameterValue;
}
function getTweakableParameter(parameterName) {
return(m_tweaks[parameterName]);
}
function getTransitionPhase() {
return(m_playbackController.getTransitionPhase());
}
var m_volume = 1;
var m_needResync = false;
var m_resyncOnSlideStart = false;
var m_resyncOnPlay = false;
var m_playing = false;
}
Symbol 313 MovieClip [__Packages.fsplayer.res.sounds.CPresentationBackgroundSoundEx] Frame 0
class fsplayer.res.sounds.CPresentationBackgroundSoundEx implements fsplayer.res.sounds.IPresentationBackgroundSoundEx, fsplayer.res.sounds.ISoundAssetLoadingListener, fsplayer.res.sounds.ISoundInstanceListener
{
var m_loadingController, m_soundAssetId, m_looping, m_position, m_soundInstance, m_listener;
function CPresentationBackgroundSoundEx (loadingController, presentation) {
m_loadingController = loadingController;
var _local2 = presentation.getBackgroundSoundNode();
m_soundAssetId = _local2.attributes.soundAssetId;
var _local3 = _local2.attributes.looping;
m_looping = _local3 == "1";
}
function onStartSlideSwitching(slideIndex, playSound) {
if (playSound == false) {
pause();
}
}
function onPositionChanged(slideIndex, stepIndex, time) {
}
function onStartSlidePlayback(slideIndex) {
}
function getId() {
return(m_bgSoundName);
}
function pause() {
m_position = m_soundInstance.getPosition();
m_soundInstance.stop();
}
function play() {
if (!m_soundInstance.isPlaying()) {
m_soundInstance.start(m_position);
}
}
function resync(slideIndex, stepIndex, time, playSound) {
}
function start() {
m_soundInstance.start();
}
function load(listener) {
m_listener = listener;
m_loadingController.setListener(this);
m_loadingController.loadBgSoundAsset(m_soundAssetId);
}
function onSoundAssetLoadInit(soundAsset) {
m_soundInstance = soundAsset.createInstance(m_assetName);
m_soundInstance.setListener(this);
}
function onSoundInstanceInit(instance) {
m_listener.onPresentationBgSoundLoadInit(this);
}
function onSoundInstanceComplete(instance) {
if (m_looping) {
start();
}
}
static var m_bgSoundName = "presentationBackgroundSound";
static var m_assetName = "presentationBackgroundSoundAsset";
}
Symbol 314 MovieClip [__Packages.fsplayer.res.sounds.CTransitionSoundEx] Frame 0
class fsplayer.res.sounds.CTransitionSoundEx extends fsplayer.res.sounds.CSoundExImpl implements fsplayer.res.sounds.ITransitionSoundEx
{
var m_slideIndex, m_looped, m_soundCore, m_presentation, m_slides, start, getDuration, startFrom, pauseAt, stop;
function CTransitionSoundEx (sound, slideIndex, looped, soundCore) {
super(sound, soundCore);
m_slideIndex = slideIndex;
m_looped = looped;
m_soundCore = soundCore;
m_presentation = soundCore.getPresentation();
m_slides = m_presentation.getSlides();
}
function slideIndexWasChanged(slideIndex, autoStartSound) {
if ((slideIndex == m_slideIndex) && (autoStartSound)) {
m_soundCore.startTransitionSound(this);
}
}
function onSlideSoundComplete(slideSound) {
if (m_looped) {
start();
}
}
function resync(slideIndex, stepIndex, time, playSound) {
if (slideIndex >= m_slideIndex) {
var _local4 = (m_soundCore.getTransitionPhase() * m_slides.getSlide(slideIndex).getTransition().getDuration()) + time;
var _local2 = m_slideIndex;
while (_local2 < slideIndex) {
var _local3 = m_slides.getSlide(_local2);
_local4 = _local4 + (_local3.getTransition().getDuration() + _local3.getDuration());
_local2++;
}
var _local6 = getDuration();
if (_local4 < _local6) {
if (playSound || (playSound == undefined)) {
startFrom(_local4);
} else {
pauseAt(_local4);
}
} else if (m_looped) {
_local4 = _local4 - (_local6 * Math.floor(_local4 / _local6));
if (playSound || (playSound == undefined)) {
startFrom(_local4);
} else {
pauseAt(_local4);
}
} else {
stop();
}
}
}
}
Symbol 315 MovieClip [__Packages.fsplayer.res.sounds.ISlideBackgroundSoundEx] Frame 0
interface fsplayer.res.sounds.ISlideBackgroundSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 316 MovieClip [__Packages.fsplayer.res.sounds.CSlideBackgroundSoundEx] Frame 0
class fsplayer.res.sounds.CSlideBackgroundSoundEx extends fsplayer.res.sounds.CSoundExImpl implements fsplayer.res.sounds.ISlideBackgroundSoundEx
{
var m_slideIndex, unregister, startFrom, pauseAt, start;
function CSlideBackgroundSoundEx (slideSound, slideIndex, soundCore) {
super(slideSound, soundCore);
m_slideIndex = slideIndex;
}
function isSoundPlayingOnSlide(slideIndex) {
return(slideIndex == m_slideIndex);
}
function deactivateSound() {
unregister();
}
function resync(slideIndex, stepIndex, time, playSound) {
if (playSound || (playSound == undefined)) {
startFrom(time);
} else {
pauseAt(time);
}
}
function onStartSlidePlayback(slideIndex) {
}
function slideIndexWasChanged(slideIndex) {
if (slideIndex == m_slideIndex) {
start();
}
}
}
Symbol 317 MovieClip [__Packages.fsplayer.api.impl.CPresentationInfo] Frame 0
class fsplayer.api.impl.CPresentationInfo implements fsplayer.api.IPresentationInfo
{
var m_presentation, m_title, m_frameRate, m_presentersCollection, m_slidesCollection, m_thumbnailsCollection, m_companyInfo, m_references;
function CPresentationInfo (presentation, presentationNode, thumbnailAssetLoadingController) {
m_presentation = presentation;
m_title = presentationNode.attributes.title;
m_frameRate = parseInt(presentationNode.attributes.frameRate);
var _local7 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "presenter");
var _local5 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "slides");
var _local4 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "company");
var _local3 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "references");
m_presentersCollection = new fsplayer.api.impl.CPresentersCollection(presentationNode);
m_slidesCollection = new fsplayer.api.impl.CSlidesCollection(presentation.getSlides(), _local5);
m_thumbnailsCollection = new fsplayer.api.impl.CThumbnailsCollection(presentationNode, thumbnailAssetLoadingController);
if (_local4) {
m_companyInfo = new fsplayer.api.impl.CCompanyInfo(_local4);
}
if (_local3) {
m_references = new fsplayer.api.impl.CReferencesCollection(_local3);
}
}
function getTitle() {
return(m_title);
}
function getSlideWidth() {
return(m_presentation.getSlideWidth());
}
function getSlideHeight() {
return(m_presentation.getSlideHeight());
}
function getSlides() {
return(m_slidesCollection);
}
function hasThumbnails() {
return(m_thumbnailsCollection.hasThumbnails());
}
function getThumbnails() {
return(m_thumbnailsCollection);
}
function getDuration() {
return(m_presentation.getDuration());
}
function hasPresenter() {
return(m_presentersCollection.getCount() > 0);
}
function getPresenterInfo() {
if (hasPresenter()) {
return(m_presentersCollection.getPresenter(0));
}
}
function getPresenters() {
return(m_presentersCollection);
}
function getFrameRate() {
return(m_frameRate);
}
function hasCompanyInfo() {
return((m_companyInfo ? true : false));
}
function getCompanyInfo() {
return(m_companyInfo);
}
function hasReferences() {
return(Boolean(m_references));
}
function getReferences() {
return(m_references);
}
function getVisibleDuration() {
return(m_presentation.getVisibleDuration());
}
}
Symbol 318 MovieClip [__Packages.fsplayer.api.impl.CSlidesCollection] Frame 0
class fsplayer.api.impl.CSlidesCollection implements fsplayer.api.ISlidesCollection
{
var m_slides, m_slidesNode, m_slideInfos;
function CSlidesCollection (slides, slidesNode) {
m_slides = slides;
m_slidesNode = slidesNode;
m_slideInfos = new Array();
}
function getSlidesCount() {
return(m_slides.getCount());
}
function getSlideInfo(slideIndex) {
if ((slideIndex < 0) || (slideIndex >= m_slides.getCount())) {
return(undefined);
}
if (m_slideInfos[slideIndex] == undefined) {
m_slideInfos[slideIndex] = new fsplayer.api.impl.CSlideInfo(m_slides.getSlide(slideIndex), m_slidesNode.childNodes[slideIndex]);
}
return(m_slideInfos[slideIndex]);
}
function getVisibleSlidesCount() {
return(m_slides.getVisibleCount());
}
function getVisibleSlide(visibleSlideIndex) {
if ((visibleSlideIndex < 0) || (visibleSlideIndex >= getVisibleSlidesCount())) {
return(undefined);
}
return(getSlideInfo(m_slides.getVisibleSlide(visibleSlideIndex).getIndex()));
}
}
Symbol 319 MovieClip [__Packages.fsplayer.api.impl.CSlideInfo] Frame 0
class fsplayer.api.impl.CSlideInfo implements fsplayer.api.ISlideInfo
{
var m_slide, m_title, m_presenterIndex, m_slideResources;
function CSlideInfo (slide, slideNode) {
m_slide = slide;
m_title = slideNode.attributes.title;
var _local6 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "notes");
if (slideNode.attributes.titleNormalized) {
m_titleNormalized = slideNode.attributes.titleNormalized;
}
if (_local6) {
m_notesText = fsplayer.util.CXMLUtils.getInnerText(_local6);
m_notesTextNormalized = m_notesText.toLowerCase();
}
var _local5 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "text");
if (_local5) {
m_slideText = fsplayer.util.CXMLUtils.getInnerText(_local5);
}
var _local3 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "notesNormalized");
if (_local3) {
m_notesTextNormalized = fsplayer.util.CXMLUtils.getInnerText(_local3);
}
var _local4 = slideNode.attributes.presenterIndex;
if (_local4 != undefined) {
m_presenterIndex = parseInt(_local4);
} else {
m_presenterIndex = undefined;
}
m_slideResources = new fsplayer.api.impl.CSlideResources(m_slide);
}
function getTitle() {
return(m_title);
}
function isLoaded() {
return(m_slide.isLoaded());
}
function getNotesText() {
return(m_notesText);
}
function getDuration() {
return(m_slide.getDuration());
}
function getStartTime() {
return(m_slide.getStartTime());
}
function getEndTime() {
return(m_slide.getEndTime());
}
function getStartStepIndex() {
return(m_slide.getStartStepIndex());
}
function getEndStepIndex() {
return(m_slide.getEndStepIndex());
}
function getAnimationSteps() {
return(m_slide.getAnimationSteps());
}
function getSlideText() {
return(m_slideText);
}
function getNotesTextNormalized() {
return(m_notesTextNormalized);
}
function getTitleNormalized() {
return(m_titleNormalized);
}
function getLevel() {
return(m_slide.getLevel());
}
function isHidden() {
return(m_slide.isHidden());
}
function getIndex() {
return(m_slide.getIndex());
}
function getVisibleIndex() {
return(m_slide.getVisibleIndex());
}
function getVisibleStartTime() {
return(m_slide.getVisibleStartTime());
}
function getVisibleEndTime() {
return(m_slide.getVisibleEndTime());
}
function getVisibleStartStepIndex() {
return(m_slide.getVisibleStartStepIndex());
}
function getVisibleEndStepIndex() {
return(m_slide.getVisibleEndStepIndex());
}
function getPresenterIndex() {
return(m_presenterIndex);
}
function getResources() {
return(m_slideResources);
}
var m_notesText = "";
var m_slideText = "";
var m_notesTextNormalized = "";
var m_titleNormalized = "";
}
Symbol 320 MovieClip [__Packages.fsplayer.api.impl.CSlideResources] Frame 0
class fsplayer.api.impl.CSlideResources implements fsplayer.api.ISlideResources
{
var m_slide;
function CSlideResources (slide) {
m_slide = slide;
}
function hasPresenterVideo() {
return(m_slide.hasPresenterVideo());
}
function getPresenterVideo() {
return(m_slide.getPresenterVideo());
}
}
Symbol 321 MovieClip [__Packages.fsplayer.api.impl.CThumbnailsCollection] Frame 0
class fsplayer.api.impl.CThumbnailsCollection implements fsplayer.api.IThumbnailsCollection
{
var m_thumbWidth, m_thumbHeight, m_slidesNode, m_loadingController, m_thumbnails, m_thumbsCount;
function CThumbnailsCollection (presentationNode, thumbnailAssetLoadingController) {
m_thumbWidth = parseInt(presentationNode.attributes.thmbWidth);
m_thumbHeight = parseInt(presentationNode.attributes.thmbHeight);
m_slidesNode = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "slides");
m_loadingController = thumbnailAssetLoadingController;
var _local2 = m_slidesNode.firstChild.attributes.thumbnailSrc;
if ((_local2 != undefined) && (_local2 != "")) {
m_thumbnails = new Array();
m_thumbsCount = m_slidesNode.childNodes.length;
}
}
function getThumbnailWidth() {
return(m_thumbWidth);
}
function getThumbnailHeight() {
return(m_thumbHeight);
}
function getThumbnailsCount() {
return(m_thumbsCount);
}
function getThumbnail(slideIndex) {
var _local2;
if ((hasThumbnails() && (slideIndex >= 0)) && (slideIndex < m_thumbsCount)) {
_local2 = m_thumbnails[slideIndex];
if (_local2 == undefined) {
_local2 = new fsplayer.api.impl.CSlideThumbnail(m_slidesNode.childNodes[slideIndex], m_loadingController);
m_thumbnails[slideIndex] = _local2;
}
}
return(_local2);
}
function hasThumbnails() {
return(m_thumbnails != undefined);
}
}
Symbol 322 MovieClip [__Packages.fsplayer.api.impl.CSlideThumbnail] Frame 0
class fsplayer.api.impl.CSlideThumbnail implements fsplayer.api.ISlideThumbnail, fsplayer.res.images.IImageAssetLoadingListener
{
var m_loadingController, m_source, m_slideIndex, m_listener;
function CSlideThumbnail (slideNode, loadingController) {
m_loadingController = loadingController;
m_source = slideNode.attributes.thumbnailSrc;
m_slideIndex = parseInt(slideNode.attributes.index);
}
function load(target, listener) {
m_listener = listener;
m_loadingController.loadThumbnailAsset(m_slideIndex, target, m_source, this);
}
function getSlideIndex() {
return(m_slideIndex);
}
function onImageAssetLoadInit(imgAsset) {
imgAsset.createInstance("thumb");
m_listener.onSlideThumbnailLoadInit(this);
}
}
Symbol 323 MovieClip [__Packages.fsplayer.api.impl.CPresentersCollection] Frame 0
class fsplayer.api.impl.CPresentersCollection implements fsplayer.api.IPresentersCollection
{
var m_presenters;
function CPresentersCollection (presentationNode) {
m_presenters = new Array();
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "presenters");
if (_local2 == undefined) {
var _local4 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "presenter");
if (_local4 != undefined) {
addPresenter(_local4, 0);
}
} else {
parsePresenters(_local2);
}
var _local3 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "slides");
if (_local3 != undefined) {
prepareSlidesNode(_local3);
}
}
function getCount() {
return(m_presenters.length);
}
function getPresenter(index) {
if ((index >= 0) && (index < m_presenters.length)) {
return(m_presenters[index]);
}
return(undefined);
}
function parsePresenters(presentersNode) {
var _local2 = 0;
while (_local2 < presentersNode.childNodes.length) {
var _local3 = presentersNode.childNodes[_local2];
if (_local3.nodeName == "presenter") {
addPresenter(_local3, _local2);
}
_local2++;
}
}
function addPresenter(presenterNode, index) {
m_presenters.push(new fsplayer.api.impl.CPresenterInfo(presenterNode, index));
}
function prepareSlidesNode(slidesNode) {
if (getCount() == 0) {
var _local4 = 0;
while (_local4 < slidesNode.childNodes.length) {
slidesNode.childNodes[_local4].attributes.presenterIndex = undefined;
_local4++;
}
} else if (getCount() == 1) {
var _local4 = 0;
while (_local4 < slidesNode.childNodes.length) {
var _local3 = slidesNode.childNodes[_local4];
if (_local3.attributes.presenterIndex == "") {
_local3.attributes.presenterIndex = undefined;
} else {
_local3.attributes.presenterIndex = "0";
}
_local4++;
}
} else {
var _local4 = 0;
while (_local4 < slidesNode.childNodes.length) {
var _local3 = slidesNode.childNodes[_local4];
if (_local3.attributes.presenterIndex == undefined) {
_local3.attributes.presenterIndex = "0";
} else if (_local3.attributes.presenterIndex == "") {
_local3.attributes.presenterIndex = undefined;
}
_local4++;
}
}
}
}
Symbol 324 MovieClip [__Packages.fsplayer.api.impl.CPresenterInfo] Frame 0
class fsplayer.api.impl.CPresenterInfo implements fsplayer.api.IPresenterInfo
{
var m_photo, m_hasPresenter;
function CPresenterInfo (presenterNode, index) {
var _local6 = presenterNode.attributes;
m_name = presenterNode.attributes.name;
m_title = presenterNode.attributes.title;
m_email = presenterNode.attributes.email;
m_webSite = presenterNode.attributes.web;
m_index = index;
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(presenterNode, "bio");
for (var _local4 in _local2.childNodes) {
if (_local2.childNodes[_local4].nodeType == 3) {
m_biography = _local2.childNodes[_local4].nodeValue.split("\r\n").join(newline);
break;
}
}
var _local5 = fsplayer.util.CXMLUtils.findFirstChildNode(presenterNode, "photo");
if ((_local5 && (_local5.attributes.src)) && (_local5.attributes.src != "")) {
m_photo = new fsplayer.api.impl.CPresenterPhoto(_local5);
}
m_hasPresenter = (((((m_name && (m_name != "")) || (m_title && (m_title != ""))) || (m_email && (m_email != ""))) || (m_webSite && (m_webSite != ""))) || (m_biography && (m_biography != ""))) || (m_photo);
}
function getName() {
return((m_name ? (m_name) : ""));
}
function getTitle() {
return((m_title ? (m_title) : ""));
}
function getBiographyText() {
return((m_biography ? (m_biography) : ""));
}
function getEmail() {
return((m_email ? (m_email) : ""));
}
function getWebSite() {
return((m_webSite ? (m_webSite) : ""));
}
function hasPhoto() {
return(m_photo != undefined);
}
function getPhoto() {
return(m_photo);
}
function hasPresenter() {
return(m_hasPresenter);
}
function getIndex() {
return(m_index);
}
var m_name = "";
var m_title = "";
var m_biography = "";
var m_email = "";
var m_webSite = "";
var m_index = undefined;
}
Symbol 325 MovieClip [__Packages.fsplayer.api.impl.CPresenterPhoto] Frame 0
class fsplayer.api.impl.CPresenterPhoto implements fsplayer.api.IPresenterPhoto
{
var m_source, m_loader;
function CPresenterPhoto (photoNode) {
m_source = photoNode.attributes.src;
var _local2 = ((photoNode.attributes.embedded == "1") ? (new fsplayer.res.assets.CInternalAssetLoader()) : (new fsplayer.res.assets.CExternalAssetLoader()));
m_loader = new fsplayer.res.images.CImageAssetLoader(_local2);
}
function load(target, listener) {
var _local2 = new Object();
_local2.listener = listener;
_local2.onImageAssetLoadInit = function (imgAsset) {
imgAsset.createInstance("photo");
this.listener.onPresenterPhotoLoadInit();
};
m_loader.loadImageAsset(target, m_source, _local2);
}
}
Symbol 326 MovieClip [__Packages.fsplayer.api.impl.CCompanyInfo] Frame 0
class fsplayer.api.impl.CCompanyInfo implements fsplayer.api.ICompanyInfo, fsplayer.api.ICompanyLogo
{
var m_source, m_logo, m_loader, m_logoHyperlinkURL, m_logoHyperlinkTarget;
function CCompanyInfo (companyNode) {
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(companyNode, "logo");
if (_local2) {
if (_local2.attributes.src && (_local2.attributes.src != "")) {
m_source = _local2.attributes.src;
}
m_logo = this;
var _local3 = ((_local2.attributes.embedded == "1") ? (new fsplayer.res.assets.CInternalAssetLoader()) : (new fsplayer.res.assets.CExternalAssetLoader()));
m_loader = new fsplayer.res.images.CImageAssetLoader(_local3);
m_logoHyperlinkURL = _local2.attributes.href;
m_logoHyperlinkTarget = _local2.attributes.target;
}
}
function hasLogo() {
return(m_source != undefined);
}
function getLogo() {
return(this);
}
function load(target, listener) {
var _local2 = new Object();
_local2.listener = listener;
_local2.onImageAssetLoadInit = function (imgAsset) {
imgAsset.createInstance("photo");
this.listener.onCompanyLogoLoadInit();
};
if (m_source != "") {
m_loader.loadImageAsset(target, m_source, _local2);
}
}
function getHyperlinkURL() {
return(m_logoHyperlinkURL);
}
function getHyperlinkTarget() {
return(m_logoHyperlinkTarget);
}
}
Symbol 327 MovieClip [__Packages.fsplayer.api.impl.CReferencesCollection] Frame 0
class fsplayer.api.impl.CReferencesCollection implements fsplayer.api.IReferencesCollection
{
var m_references;
function CReferencesCollection (referencesNode) {
m_references = new Array();
if (referencesNode.hasChildNodes()) {
var _local5 = referencesNode.childNodes;
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2];
var _local4 = new fsplayer.api.impl.CReferenceInfo(_local3);
m_references.push(_local4);
_local2++;
}
}
}
function getCount() {
return(m_references.length);
}
function getReference(index) {
return(m_references[index]);
}
}
Symbol 328 MovieClip [__Packages.fsplayer.api.impl.CReferenceInfo] Frame 0
class fsplayer.api.impl.CReferenceInfo implements fsplayer.api.IReferenceInfo
{
var m_title, m_url, m_target;
function CReferenceInfo (referenceNode) {
m_title = referenceNode.attributes.title;
m_url = referenceNode.attributes.url;
m_target = referenceNode.attributes.target;
if (!m_target) {
m_target = "_blank";
}
}
function getTitle() {
return(m_title);
}
function getURL() {
return(m_url);
}
function getTarget() {
return(m_target);
}
}
Symbol 329 MovieClip [__Packages.fsplayer.res.sounds.CSlideSoundsEx] Frame 0
class fsplayer.res.sounds.CSlideSoundsEx implements fsplayer.res.sounds.ISlideSoundsEx, fsplayer.res.sounds.ISlideSoundLoadingListenerEx
{
var m_sounds, m_soundsTotal, m_soundReferences, m_listener;
function CSlideSoundsEx (soundsNode, soundAssets) {
m_sounds = new Object();
var _local5 = soundsNode.childNodes.length;
m_soundsTotal = _local5;
m_soundReferences = new Array(_local5);
var _local2 = 0;
while (_local2 < _local5) {
var _local4 = soundsNode.childNodes[_local2];
var _local3 = new fsplayer.res.sounds.CSlideSoundEx(_local4, soundAssets);
m_sounds[_local3.getId()] = _local3;
m_soundReferences[_local2] = _local3;
_local2++;
}
}
function getSound(id) {
return(m_sounds[id]);
}
function setListener(listener) {
m_listener = listener;
}
function allSoundsWereLoaded() {
return(m_soundsLoaded == m_soundsTotal);
}
function load(listener) {
m_listener = listener;
var _local2 = 0;
while (_local2 < m_soundReferences.length) {
m_soundReferences[_local2].load(this);
_local2++;
}
}
function onSlideSoundLoadInit(slideSound) {
m_soundsLoaded++;
if (allSoundsWereLoaded() && (m_listener != undefined)) {
m_listener.onSlideSoundsLoadInit();
}
}
var m_soundsLoaded = 0;
}
Symbol 330 MovieClip [__Packages.fsplayer.res.sounds.CSlideSoundEx] Frame 0
class fsplayer.res.sounds.CSlideSoundEx implements fsplayer.res.sounds.ISlideSoundEx, fsplayer.res.sounds.ISoundAssetLoadingListener, fsplayer.res.sounds.ISoundInstanceListener
{
var m_soundAssets, m_id, m_assetId, m_instance, m_listener, m_duration, m_loadingListener;
function CSlideSoundEx (soundNode, soundAssets) {
m_soundAssets = soundAssets;
m_id = soundNode.attributes.id;
m_assetId = soundNode.attributes.soundAssetId;
}
function onSoundAssetLoadInit(soundAsset) {
var _local2 = soundAsset.createInstance(m_id);
_local2.setListener(this);
}
function isPlaying() {
return(m_instance.isPlaying());
}
function getId() {
return(m_id);
}
function getPosition() {
return(m_instance.getPosition());
}
function setListener(listener) {
m_listener = listener;
}
function start(position, loops) {
m_instance.start(position, loops);
}
function stop() {
m_instance.stop();
}
function getSoundInstance() {
return(m_instance);
}
function onSoundInstanceInit(instance) {
m_instance = instance;
m_duration = m_instance.getDuration() * 0.001;
if (m_loadingListener) {
m_loadingListener.onSlideSoundLoadInit(this);
}
}
function onSoundInstanceComplete(instance) {
m_listener.onSlideSoundComplete(this);
}
function load(listener) {
m_loadingListener = listener;
if (!isLoaded()) {
m_soundAssets.loadAsset(m_assetId, this);
}
}
function isLoaded() {
return(m_instance != undefined);
}
function getDuration() {
return(m_duration);
}
}
Symbol 331 MovieClip [__Packages.fsplayer.res.video.CPresenterVideo] Frame 0
class fsplayer.res.video.CPresenterVideo implements fsplayer.res.video.IPresenterVideoEx
{
var m_src, m_embedded, m_width, m_height, m_frameRate;
function CPresenterVideo (src, embedded, width, height, frameRate) {
m_src = src;
m_embedded = embedded;
m_width = width;
m_height = height;
m_frameRate = frameRate;
}
function getWidth() {
return(m_width);
}
function getHeight() {
return(m_height);
}
function createVideo(parent, name) {
var _local3 = 0;
if (name == undefined) {
name = "video";
}
if (!m_embedded) {
var _local4 = parent.attachMovie("videoClip", name, _local3);
var _local5 = new fsplayer.res.video.CExternalVideoClip(_local4, "videoFrame");
_local5.setSize(m_width, m_height);
_local5.load(m_src);
return(_local5);
}
var _local4 = parent.attachMovie(m_src, name, _local3);
var _local5 = new fsplayer.res.video.CInternalVideoClip(_local4, m_frameRate);
return(_local5);
}
}
Symbol 332 MovieClip [__Packages.fsplayer.res.video.CExternalVideoClip] Frame 0
class fsplayer.res.video.CExternalVideoClip implements fsplayer.res.video.IVideoClipEx
{
static var m_netConnection;
var m_target, m_videoPlayer, m_listener, m_listenerParam;
function CExternalVideoClip (target, videoName) {
m_target = target;
m_videoPlayer = new cpslabs.ui.CVideoPlayer();
m_videoPlayer.attachVideo(target, videoName);
if (!m_netConnection) {
m_netConnection = new NetConnection();
}
m_videoPlayer.__set__netConnection(m_netConnection);
}
function setSize(w, h) {
m_videoPlayer.__set__width(w);
m_videoPlayer.__set__height(h);
}
function load(url) {
var _local5 = (((url.indexOf(":") == -1) && (url.indexOf("http://") != 0)) && (url.indexOf("https://") != 0)) && (url.indexOf("file://") != 0);
if (_local5) {
var _local3 = m_target._url;
var _local4 = Math.max(_local3.lastIndexOf("/"), _local3.lastIndexOf("\\"));
var _local6 = _local3.substr(0, _local4 + 1);
url = _local6 + url;
}
m_videoPlayer.addListener("playStart", this, onPlayStart);
m_videoPlayer.addListener("playStop", this, onPlayStop);
m_videoPlayer.addListener("progress", this, onLoadingProgress);
m_videoPlayer.addListener("ready", this, onLoadingComplete);
m_videoPlayer.addListener("bufferEmpty", this, onBufferEmpty);
m_videoPlayer.addListener("bufferFull", this, onBufferFull);
m_videoPlayer.addListener("metadataReceived", this, onMetadata);
m_videoPlayer.addListener("streamNotFound", this, onInvalidStream);
trace_str("loading url: " + url);
m_videoPlayer.__set__bufferTime(BUFFER_TIME);
m_videoPlayer.load(url);
m_videoPlayer.stop();
}
function setListener(listener, listenerParameter) {
m_listener = listener;
m_listenerParam = listenerParameter;
}
function isLoaded() {
return(m_loaded);
}
function isCompleted() {
return(m_isCompleted);
}
function onPlayStop() {
trace_str("onPlayStop");
trace_str((m_videoPlayer.__get__position() + " / ") + m_videoPlayer.__get__duration());
playbackCompleted();
}
function onPlayStart() {
m_listener.onVideoClipPlaybackStart(this, m_listenerParam);
}
function onLoadingProgress(p, progress) {
m_listener.onVideoClipLoadingProgress(this, progress, m_listenerParam);
}
function getDuration() {
return(m_videoPlayer.__get__duration());
}
function pause(pauseTime) {
if (pauseTime != undefined) {
m_videoPlayer.seek(pauseTime);
}
m_videoPlayer.pause();
m_isPlaying = false;
}
function play(startTime) {
trace_str("play()");
if (m_playbackIsEnabled) {
if (startTime != undefined) {
m_videoPlayer.seek(startTime);
m_isCompleted = false;
}
m_videoPlayer.play();
m_isPlaying = true;
}
}
function onMetadata() {
trace_str("onMetadata");
m_ready = true;
m_listener.onVideoClipReady(this, m_listenerParam);
}
function isReady() {
return(m_ready);
}
function isPlaying() {
return(m_isPlaying);
}
function enablePlayback() {
m_playbackIsEnabled = true;
var thisPtr = this;
m_target.onRelease = function () {
thisPtr.onMouseClick();
};
}
function disablePlayback() {
m_playbackIsEnabled = false;
delete m_target.onRelease;
pause(0);
}
function playbackCompleted() {
m_isPlaying = false;
m_isCompleted = true;
m_listener.onVideoClipPlaybackComplete(this, m_listenerParam);
}
function onMouseClick() {
m_listener.onVideoMouseClick(this, m_listenerParam);
}
function onLoadingComplete() {
trace_str("onLoadingComplete");
m_loaded = true;
m_listener.onVideoClipLoadComplete(this, m_listenerParam);
}
function onBufferFull() {
trace_str("bufferFull");
if (m_isCompleted) {
m_isCompleted = false;
}
}
function onBufferEmpty() {
trace_str("bufferEmpty");
if (((!m_isCompleted) && (isLoaded())) && ((!isReady()) || ((m_videoPlayer.__get__position() / m_videoPlayer.__get__duration()) >= 0.95))) {
playbackCompleted();
}
}
function onInvalidStream() {
trace_str("Stream not found!");
}
function trace_str(s) {
}
function getPosition() {
return(m_videoPlayer.__get__position());
}
var m_loaded = false;
var m_ready = false;
var m_isPlaying = false;
var m_isCompleted = false;
var m_playbackIsEnabled = true;
static var BUFFER_TIME = 5;
}
Symbol 333 MovieClip [__Packages.cpslabs.ui.CComponent] Frame 0
class cpslabs.ui.CComponent
{
var m_parent, m_mc, m_componentBroadcaster, m_tooltip, m_tooltipParams;
function CComponent (parent, name, depth) {
if (parent) {
m_parent = parent;
if (depth == undefined) {
depth = parent.getNextHighestDepth();
}
m_mc = parent.createEmptyMovieClip(((name != undefined) ? (name) : ("m" + depth)), depth);
m_mc.tabEnabled = false;
}
m_componentBroadcaster = new cpslabs.utils.CMessageBroadcaster();
}
function setMovieClip(mc) {
m_mc = mc;
m_parent = mc._parent;
}
function get parent() {
return(m_parent);
}
function set id(componentId) {
m_id = componentId;
//return(id);
}
function get id() {
return(m_id);
}
function addListener(eventName, l, fn) {
m_componentBroadcaster.addListener(eventName, l, fn);
}
function removeListener(eventName, l, fn) {
return(m_componentBroadcaster.removeListener(eventName, l, fn));
}
function get movieClip() {
return(m_mc);
}
function set visible(v) {
if (movieClip._visible != v) {
movieClip._visible = v;
if (v) {
onShow();
} else {
onHide();
}
}
//return(visible);
}
function get visible() {
return(movieClip._visible);
}
function set enabled(e) {
if (m_enabled != e) {
m_enabled = e;
if (e) {
onEnable();
} else {
onDisable();
}
}
//return(enabled);
}
function get enabled() {
return(m_enabled);
}
function get width() {
return(getWidth());
}
function get height() {
return(getHeight());
}
function set width(w) {
var _local2 = new Object();
_local2.width = w;
_local2.height = height;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
w = _local2.width;
var _local3 = _local2.height;
if ((w != width) || (_local3 != height)) {
resize(w, _local3);
onResize(w, _local3);
broadcastMessage("resize", this, w, _local3);
}
//return(width);
}
function set height(h) {
var _local2 = new Object();
var _local5 = width;
var _local6 = height;
_local2.width = _local5;
_local2.height = h;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
var _local4 = _local2.width;
h = _local2.height;
if ((_local4 != _local5) || (h != _local6)) {
resize(_local4, h);
onResize(_local4, h);
broadcastMessage("resize", this, _local4, h);
}
//return(height);
}
function get x() {
return(movieClip._x);
}
function get y() {
return(movieClip._y);
}
function set x(x0) {
movieClip._x = x0;
onMove(x0, y);
//return(x);
}
function set y(y0) {
movieClip._y = y0;
onMove(x, y0);
//return(y);
}
function get alpha() {
return(movieClip._alpha);
}
function set alpha(a) {
movieClip._alpha = a;
//return(alpha);
}
function get autoUpdate() {
return(m_autoUpdate);
}
function set autoUpdate(enableAutoUpdate) {
m_autoUpdate = enableAutoUpdate;
if (enableAutoUpdate && (m_needUpdate)) {
update();
m_needUpdate = false;
}
//return(autoUpdate);
}
function remove() {
m_mc.removeMovieClip();
delete m_mc;
}
function getWidth() {
return(movieClip._width);
}
function getHeight() {
return(movieClip._height);
}
function onEnable() {
}
function onDisable() {
}
function onShow() {
}
function onHide() {
}
function onMove(newX, newY) {
}
function broadcastMessage(eventName) {
m_componentBroadcaster.broadcastMessage.apply(m_componentBroadcaster, arguments);
}
function invalidate() {
m_needUpdate = true;
if (m_autoUpdate) {
update();
m_needUpdate = false;
}
}
function update() {
}
function onResizing(newSize) {
}
function resize(w, h) {
var _local2 = movieClip;
_local2._width = w;
_local2._height = h;
}
function onResize(w, h) {
}
function initMouseEvents(mc, listener, handleMouseMove) {
if (!mc) {
mc = movieClip;
}
if (listener == undefined) {
listener = this;
}
var thisPtr = this;
mc.onRollOver = function () {
listener.onRollOver(thisPtr);
};
mc.onRollOut = function () {
listener.onRollOut(thisPtr);
};
mc.onPress = function () {
listener.onPress(thisPtr);
};
mc.onRelease = function () {
listener.onRelease(thisPtr);
};
mc.onReleaseOutside = function () {
listener.onReleaseOutside(thisPtr);
};
mc.onDragOver = function () {
listener.onDragOver(thisPtr);
};
mc.onDragOut = function () {
listener.onDragOut(thisPtr);
};
if (handleMouseMove) {
mc.onMouseMove = function () {
listener.onMouseMove(thisPtr);
};
}
}
function removeMouseEvents(mc) {
if (!mc) {
mc = movieClip;
}
delete mc.onRelease;
delete mc.onReleaseOutside;
delete mc.onPress;
delete mc.onRollOver;
delete mc.onRollOut;
delete mc.onDragOver;
delete mc.onDragOut;
delete mc.onMouseMove;
}
function init() {
}
function addTooltip(tooltip, tooltipParams) {
tooltipParams = (tooltipParams ? (tooltipParams) : (new Object()));
m_tooltip = tooltip;
m_tooltipParams = tooltipParams;
var rollOverHandler = movieClip.onRollOver;
var rollOutHandler = movieClip.onRollOut;
var pressHandler = movieClip.onPress;
var _local3 = this;
movieClip.onRollOver = function () {
for (var _local1 in tooltipParams) {
tooltip[_local1] = tooltipParams[_local1];
}
tooltip.show();
if (rollOverHandler) {
rollOverHandler();
}
};
movieClip.onRollOut = function () {
tooltip.hide();
if (rollOutHandler) {
rollOutHandler();
}
};
movieClip.onPress = function () {
tooltip.hide();
if (pressHandler) {
pressHandler();
}
};
}
function get tooltip() {
return(m_tooltip);
}
function get tooltipParams() {
return(m_tooltipParams);
}
var m_enabled = true;
var m_id = "";
var m_needUpdate = false;
var m_autoUpdate = true;
}
Symbol 334 MovieClip [__Packages.cpslabs.utils.CMessageBroadcaster] Frame 0
class cpslabs.utils.CMessageBroadcaster
{
var m_events, m_id;
function CMessageBroadcaster () {
m_events = new Object();
}
function get id() {
return(m_id);
}
function set id(objectId) {
m_id = objectId;
//return(id);
}
function addListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
_local2 = new Array();
m_events[eventName] = _local2;
}
var _local3 = new Object();
_local3.handler = handler;
_local3.listener = listener;
_local2.push(_local3);
}
function removeListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
return(false);
}
if (listener == undefined) {
delete m_events[eventName];
return(true);
}
if (handler == undefined) {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if (_local4.listener == listener) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
} else {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if ((_local4.listener == listener) && (_local4.handler == handler)) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
}
return(false);
}
function broadcastMessage(eventName) {
var _local5 = m_events[eventName];
if (_local5 && (_local5.length > 0)) {
var _local6 = _local5.length;
arguments.shift();
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = _local5[_local3];
_local4.handler.apply(_local4.listener, arguments);
_local3++;
}
}
}
}
Symbol 335 MovieClip [__Packages.cpslabs.ITooltip] Frame 0
interface cpslabs.ITooltip
{
}
Symbol 336 MovieClip [__Packages.cpslabs.ui.CVideoPlayer] Frame 0
class cpslabs.ui.CVideoPlayer extends cpslabs.ui.CComponent
{
var m_rtmpPath, m_sound, __get__movieClip, m_container, m_video, setMovieClip, m_netConnection, m_netStream, m_videoWidth, m_videoHeight, m_duration;
function CVideoPlayer (mcParent, name, depth) {
super(mcParent, name, depth);
m_rtmpPath = null;
m_sound = new Sound(__get__movieClip());
}
function resize(w, h) {
m_container.__set__width(w);
m_container.__set__height(h);
}
function getWidth() {
return((m_container ? (m_container.__get__width()) : (super.getWidth())));
}
function getHeight() {
return((m_container ? (m_container.__get__height()) : (super.getHeight())));
}
function attachVideo(mcName, videoName) {
if (Video(mcName)) {
m_video = Video(mcName);
var _local3 = MovieClip(videoName);
if (_local3) {
m_container = new cpslabs.ui.CMovieClip();
m_container.setMovieClip(_local3);
setMovieClip(m_container.__get__movieClip());
}
} else if ((typeof(mcName) == "string") && (videoName != undefined)) {
m_container = new cpslabs.ui.CMovieClip(__get__movieClip(), "mcVideo");
m_container.attachMovie(String(mcName), "content");
m_video = m_container.__get__content()[videoName];
} else if ((typeof(mcName) == "movieclip") && (videoName != undefined)) {
m_container = new cpslabs.ui.CMovieClip();
var _local3 = MovieClip(mcName);
m_container.setMovieClip(_local3);
setMovieClip(_local3);
m_video = _local3[videoName];
}
}
function init(videoPlayerStates) {
attachVideo(videoPlayerStates.movieClip, videoPlayerStates.video);
}
function createNetStream() {
if ((m_rtmpPath == null) || ((m_rtmpPath != null) && (m_netConnection.uri != m_rtmpPath))) {
m_netConnection.connect(m_rtmpPath);
}
m_netStream = new NetStream(m_netConnection);
m_video.attachVideo(m_netStream);
__get__movieClip().attachAudio(m_netStream);
addNetStreamListener();
}
function addNetStreamListener() {
var thisPtr = this;
m_netStream.onStatus = function (infoObject) {
switch (infoObject.code) {
case "NetStream.Buffer.Empty" :
thisPtr.broadcastMessage("bufferEmpty", thisPtr);
break;
case "NetStream.Buffer.Full" :
thisPtr.broadcastMessage("bufferFull", thisPtr);
break;
case "NetStream.Play.Start" :
thisPtr.broadcastMessage("playStart", thisPtr);
break;
case "NetStream.Play.Stop" :
thisPtr.broadcastMessage("playStop", thisPtr);
break;
case "NetStream.Buffer.Flush" :
thisPtr.broadcastMessage("bufferFlush", thisPtr);
break;
case "NetStream.Play.StreamNotFound" :
thisPtr.broadcastMessage("streamNotFound", thisPtr);
}
};
m_netStream.onMetaData = function (infoObject) {
if (thisPtr.m_duration == undefined) {
thisPtr.m_duration = infoObject.duration;
}
thisPtr.m_videoWidth = Number(infoObject.width);
thisPtr.m_videoHeight = Number(infoObject.height);
thisPtr.broadcastMessage("metadataReceived", thisPtr, infoObject);
};
}
function load(file, start, length) {
if (!m_netStream) {
createNetStream();
}
m_videoWidth = (m_videoHeight = 0);
start = ((start == undefined) ? 0 : (start));
length = ((length == undefined) ? -1 : (length));
m_netStream.play(file, start, length);
checkVideoLoading();
}
function close() {
m_netStream.close();
if (__get__movieClip().onEnterFrame) {
delete __get__movieClip().onEnterFrame;
}
}
function checkVideoLoading() {
if (m_rtmpPath) {
return(undefined);
}
var thisPtr = this;
__get__movieClip().onEnterFrame = function () {
var _local2 = thisPtr.__get__loadProgress();
thisPtr.broadcastMessage("progress", thisPtr, _local2);
if (_local2 >= 1) {
thisPtr.broadcastMessage("ready", thisPtr);
delete this.onEnterFrame;
}
};
}
function seek(p) {
m_netStream.seek(p);
}
function play() {
m_netStream.pause(false);
}
function pause() {
m_netStream.pause(true);
}
function stop() {
pause();
seek(0);
}
function get volume() {
return(m_sound.getVolume());
}
function set volume(v) {
m_sound.setVolume(v);
//return(volume);
}
function get netConnection() {
return(m_netConnection);
}
function set netConnection(n) {
m_netConnection = n;
createNetStream();
//return(netConnection);
}
function get video() {
return(m_video);
}
function set video(v) {
m_video = v;
//return(video);
}
function get bytesLoaded() {
return(m_netStream.bytesLoaded);
}
function get bytesTotal() {
return(m_netStream.bytesTotal);
}
function get loadProgress() {
return(bytesLoaded / bytesTotal);
}
function get bufferLength() {
return(m_netStream.bufferLength);
}
function get bufferTime() {
return(m_netStream.bufferTime);
}
function set bufferTime(t) {
m_netStream.setBufferTime(t);
//return(bufferTime);
}
function get position() {
return(m_netStream.time);
}
function set position(p) {
seek(p);
//return(position);
}
function get videoWidth() {
var _local2 = m_video.width;
return((_local2 ? (_local2) : (m_videoWidth)));
}
function get videoHeight() {
var _local2 = m_video.height;
return((_local2 ? (_local2) : (m_videoHeight)));
}
function get duration() {
return(m_duration);
}
}
Symbol 337 MovieClip [__Packages.cpslabs.ui.CMovieClip] Frame 0
class cpslabs.ui.CMovieClip extends cpslabs.ui.CComponent
{
var m_source, m_content, invalidate, __get__movieClip;
function CMovieClip (parent, name, depth) {
super(parent, name, depth);
}
function set source(src) {
if (m_source != src) {
if (m_content) {
m_content.removeMovieClip();
delete m_content;
}
m_source = src;
attachMovie(src);
invalidate();
}
//return(source);
}
function get source() {
return(m_source);
}
function get content() {
return(m_content);
}
function createEmptyMovieClip(name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().createEmptyMovieClip(((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function attachMovie(assetName, name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().attachMovie(assetName, ((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function resize(w, h) {
var _local2 = __get__movieClip();
if (m_content) {
_local2 = m_content;
}
_local2._width = w;
_local2._height = h;
}
function getWidth() {
return((m_content ? (m_content._width) : (__get__movieClip()._width)));
}
function getHeight() {
return((m_content ? (m_content._height) : (__get__movieClip()._height)));
}
}
Symbol 338 MovieClip [__Packages.fsplayer.res.video.CInternalVideoClip] Frame 0
class fsplayer.res.video.CInternalVideoClip implements fsplayer.res.video.IVideoClipEx
{
var m_target, m_frameRate, m_framesCount, m_duration, m_listener, m_listenerParam;
function CInternalVideoClip (target, frameRate) {
m_target = target;
m_frameRate = frameRate;
m_framesCount = target._totalframes;
m_duration = m_framesCount / m_frameRate;
pause();
var thisPtr = this;
target.onEnterFrame = function () {
thisPtr.onEnterFrame(this._currentframe - 1);
};
}
function isReady() {
return(true);
}
function isLoaded() {
return(true);
}
function isPlaying() {
return(m_playing);
}
function isCompleted() {
return(m_completed);
}
function play(startTime) {
if (m_playbackIsEnabled) {
if (startTime != undefined) {
seek(startTime);
m_completed = false;
}
m_target.play();
m_playing = true;
onEnterFrame(m_target._currentframe - 1);
}
}
function pause(pauseTime) {
if (pauseTime != undefined) {
seek(pauseTime);
}
m_target.stop();
m_playing = false;
}
function getDuration() {
return(m_duration);
}
function setListener(listener, listenerParameter) {
m_listener = listener;
m_listenerParam = listenerParameter;
}
function enablePlayback() {
m_playbackIsEnabled = true;
var thisPtr = this;
m_target.onRelease = function () {
thisPtr.onMouseClick();
};
}
function disablePlayback() {
m_playbackIsEnabled = false;
delete m_target.onRelease;
pause(0);
}
function onMouseClick() {
m_listener.onVideoMouseClick(this, m_listenerParam);
}
function onEnterFrame(frameIndex) {
if (isPlaying() && (frameIndex == (m_framesCount - 1))) {
pause();
m_completed = true;
m_listener.onVideoClipPlaybackComplete(this, m_listenerParam);
}
}
function seek(time) {
var _local2 = Math.round(time * m_frameRate);
if (_local2 >= (m_framesCount - 1)) {
_local2 = m_framesCount - 1;
}
m_target.gotoAndStop(_local2 + 1);
}
function getPosition() {
return((m_target.currentFrame - 1) / m_frameRate);
}
var m_playing = true;
var m_completed = false;
var m_playbackIsEnabled = true;
}
Symbol 104 MovieClip [coreAsset] Frame 1
function getPlayer() {
return(g_player);
}
function createStandalonePlayer(skinAssetURL, presentationInfoURL) {
if (g_player == undefined) {
var _local2 = new CSeparatePlayer(this);
_local2.loadSkinFromURL(skinAssetURL);
_local2.loadPresentationInfoFromURL(presentationInfoURL);
g_player = _local2;
}
return(g_player);
}
function createStandalonePlayerEmbeddedSkin(skinAsset, presentationInfoURL) {
if (g_player == undefined) {
var _local2 = new CSeparatePlayerEmbeddedSkin(this);
_local2.loadSkinFromAsset(skinAsset);
_local2.loadPresentationInfoFromURL(presentationInfoURL);
g_player = _local2;
}
return(g_player);
}
function createEmbeddedPlayer(skinAssetName, presentationInfo, loadingControlClip) {
if (g_player == undefined) {
var _local2 = new CSolidPlayer(this, loadingControlClip);
_local2.loadSkinFromLibrary(skinAssetName);
_local2.loadPresentationInfoFromString(presentationInfo);
g_player = _local2;
g_resourceLoader = _local2;
}
return(g_player);
}
function slideIsAvailable(slideIndex) {
g_resourceLoader.slideIsAvailable(slideIndex);
}
function thumbnailIsAvailable(slideIndex) {
g_resourceLoader.thumbnailIsAvailable(slideIndex);
}
function presentationBgSoundIsAvailable() {
g_resourceLoader.presentationBgSoundIsAvailable();
}
var g_player;
var g_resourceLoader;
fsplayer.core.CPlayerCoreComponentsFactory.setInstance(new fsplayer.core.CPlayerCoreComponentsFactoryImpl());
Symbol 442 MovieClip [__Packages.fsplayer.ui.skins.ISkin] Frame 0
interface fsplayer.ui.skins.ISkin
{
}
Symbol 443 MovieClip [__Packages.fsplayer.api.IPlayer] Frame 0
interface fsplayer.api.IPlayer
{
}
Symbol 444 MovieClip [__Packages.fsplayer.api.IPlayerListener] Frame 0
interface fsplayer.api.IPlayerListener
{
}
Symbol 445 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackController] Frame 0
interface fsplayer.api.IPresentationPlaybackController
{
}
Symbol 446 MovieClip [__Packages.fsplayer.api.IPlaybackListener] Frame 0
interface fsplayer.api.IPlaybackListener
{
}
Symbol 447 MovieClip [__Packages.fsplayer.api.ISoundController] Frame 0
interface fsplayer.api.ISoundController
{
}
Symbol 448 MovieClip [__Packages.fsplayer.api.ISoundListener] Frame 0
interface fsplayer.api.ISoundListener
{
}
Symbol 449 MovieClip [__Packages.fsplayer.api.IPresentationInfo] Frame 0
interface fsplayer.api.IPresentationInfo
{
}
Symbol 450 MovieClip [__Packages.fsplayer.api.ISlidesCollection] Frame 0
interface fsplayer.api.ISlidesCollection
{
}
Symbol 451 MovieClip [__Packages.fsplayer.api.ISlideInfo] Frame 0
interface fsplayer.api.ISlideInfo
{
}
Symbol 452 MovieClip [__Packages.fsplayer.api.IAnimationSteps] Frame 0
interface fsplayer.api.IAnimationSteps
{
}
Symbol 453 MovieClip [__Packages.fsplayer.api.IAnimationStep] Frame 0
interface fsplayer.api.IAnimationStep
{
}
Symbol 454 MovieClip [__Packages.fsplayer.api.ISlideResources] Frame 0
interface fsplayer.api.ISlideResources
{
}
Symbol 455 MovieClip [__Packages.fsplayer.api.IPresenterVideo] Frame 0
interface fsplayer.api.IPresenterVideo
{
}
Symbol 456 MovieClip [__Packages.fsplayer.api.IThumbnailsCollection] Frame 0
interface fsplayer.api.IThumbnailsCollection
{
}
Symbol 457 MovieClip [__Packages.fsplayer.api.ISlideThumbnail] Frame 0
interface fsplayer.api.ISlideThumbnail
{
}
Symbol 458 MovieClip [__Packages.fsplayer.api.ISlideThumbnailLoadingListener] Frame 0
interface fsplayer.api.ISlideThumbnailLoadingListener
{
}
Symbol 459 MovieClip [__Packages.fsplayer.api.IPresenterInfo] Frame 0
interface fsplayer.api.IPresenterInfo
{
}
Symbol 460 MovieClip [__Packages.fsplayer.api.IPresenterPhoto] Frame 0
interface fsplayer.api.IPresenterPhoto
{
}
Symbol 461 MovieClip [__Packages.fsplayer.api.IPresenterPhotoLoadingListener] Frame 0
interface fsplayer.api.IPresenterPhotoLoadingListener
{
}
Symbol 462 MovieClip [__Packages.fsplayer.api.ICompanyInfo] Frame 0
interface fsplayer.api.ICompanyInfo
{
}
Symbol 463 MovieClip [__Packages.fsplayer.api.ICompanyLogo] Frame 0
interface fsplayer.api.ICompanyLogo
{
}
Symbol 464 MovieClip [__Packages.fsplayer.api.ICompanyLogoLoadingListener] Frame 0
interface fsplayer.api.ICompanyLogoLoadingListener
{
}
Symbol 465 MovieClip [__Packages.fsplayer.api.IReferencesCollection] Frame 0
interface fsplayer.api.IReferencesCollection
{
}
Symbol 466 MovieClip [__Packages.fsplayer.api.IReferenceInfo] Frame 0
interface fsplayer.api.IReferenceInfo
{
}
Symbol 467 MovieClip [__Packages.fsplayer.api.IPresentersCollection] Frame 0
interface fsplayer.api.IPresentersCollection
{
}
Symbol 468 MovieClip [__Packages.fsplayer.ui.skins.ISlideShowWindow] Frame 0
interface fsplayer.ui.skins.ISlideShowWindow
{
}
Symbol 469 MovieClip [__Packages.fsplayer.ui.skins.ISkinListener] Frame 0
interface fsplayer.ui.skins.ISkinListener
{
}
Symbol 470 MovieClip [__Packages.main.CSkinImpl] Frame 0
class main.CSkinImpl implements fsplayer.api.IPlaybackListener, fsplayer.ui.skins.ISkin, fsplayer.ui.skins.ISlideShowWindow
{
var m_skinTarget, m_player, m_skinSettings, m_playbackController, m_presentation, m_slideAssetsTargetMovieClip, m_listener, m_skinInitialized;
function CSkinImpl (target) {
m_skinTarget = target;
}
function initialize(playerAPI) {
m_player = playerAPI;
m_skinSettings = m_player.getSettings();
m_playbackController = m_player.getPlaybackController();
m_presentation = m_player.getPresentationInfo();
m_playbackController.addListener(this);
}
function getSlideShowWindow() {
return(this);
}
function getTarget() {
if (!m_slideAssetsTargetMovieClip) {
m_slideAssetsTargetMovieClip = createSlideAssetsTarget();
}
return(m_slideAssetsTargetMovieClip);
}
function setListener(listener) {
m_listener = listener;
if (!m_skinInitialized) {
m_skinInitialized = true;
m_listener.onSkinInit(this);
}
}
function onPausePlayback() {
}
function onStartPlayback() {
}
function onCurrentSlideIndexChanged(slideIndex) {
}
function onSlideLoadingComplete(slideIndex) {
}
function onSlidePositionChanged(position) {
}
function onAnimationStepChanged(stepIndex) {
}
function onPresentationPlaybackComplete() {
}
function onKeyboardFocusStateChanged(acquireFocus) {
}
function getSkinSettings() {
return(m_skinSettings);
}
function getSkinTarget() {
return(m_skinTarget);
}
function createSlideAssetsTarget() {
return(getSkinTarget().createEmptyMovieClip("assets", getSkinTarget().getNextHighestDepth()));
}
}
Symbol 471 MovieClip [__Packages.main.fullscreen.IFullScreenListener] Frame 0
interface main.fullscreen.IFullScreenListener
{
}
Symbol 472 MovieClip [__Packages.fsplayer.ui.skins.ISkinSizeController] Frame 0
interface fsplayer.ui.skins.ISkinSizeController
{
}
Symbol 473 MovieClip [__Packages.com.flashspring.online.CSkin] Frame 0
class com.flashspring.online.CSkin extends main.CSkinImpl implements main.fullscreen.IFullScreenListener, fsplayer.ui.skins.ISkinSizeController
{
var m_skinType, m_loadingSlides, m_keyboardController, m_player, getSkinSettings, m_mouseLayer, getTarget, m_soundController, m_soundListener, m_volumeSeeking, m_volume, m_slideIndex, m_slides, m_presentation, m_slidesCount, m_slidesCountWithHidden, m_duration, m_mustCompleteQuizWindow, getSkinTarget, m_keyboardEnabled, m_rootMovie, m_panel, m_volumeControlPanelMovie, m_logo, m_playButton, m_pauseButton, m_previousSlideButton, m_nextSlideButton, m_noSoundButton, m_soundButton, m_currentSlideLabel, m_slidesCountLabel, m_timeLine, m_volumeControl, m_normalScreenButton, m_fullScreenButton, m_playbackController, m_progress, m_slideAssetsMask;
function CSkin (target, type) {
super(target);
m_skinType = type;
m_loadingSlides = new Array();
}
function initialize(playerAPI) {
fullScreenInit(playerAPI.getSettings());
super.initialize(playerAPI);
m_keyboardController = new com.flashspring.online.CSkinKeyboardController(m_player, getSkinSettings().navigation.keyboard);
m_mouseLayer = main.CMouseLayer.create(getTarget(), m_player, this);
m_soundController = m_player.getSoundController();
m_soundListener = new fsplayer.api.ISoundListener();
m_volumeSeeking = false;
m_soundController.addListener(m_soundListener);
m_volume = m_soundController.getVolume();
m_slideIndex = 0;
m_slides = m_presentation.getSlides();
m_slidesCount = m_slides.getVisibleSlidesCount();
m_slidesCountWithHidden = m_slides.getSlidesCount();
m_duration = m_presentation.getVisibleDuration();
createMask();
initPlayerLayout();
initEvents();
changeState();
if ((getSkinSettings().skin.size.autoSize == false) || (getSkinSettings().skin.size.autoSize == 0)) {
m_autoSize = false;
if ((((getSkinSettings().skin.size.width != undefined) && (getSkinSettings().skin.size.width > 0)) && (getSkinSettings().skin.size.height != undefined)) && (getSkinSettings().skin.size.height > 0)) {
m_autoSizeWidth = getSkinSettings().skin.size.width;
m_autoSizeHeight = getSkinSettings().skin.size.height;
}
} else {
Stage.scaleMode = "noscale";
Stage.align = "TL";
Stage.addListener(this);
m_autoSize = true;
}
onResize();
changeVolume(1);
m_mustCompleteQuizWindow = new com.flashspring.online.CMustCompleteQuizWindow(getSkinTarget(), "mustCompleteQuizWindow", getSkinTarget().getNextHighestDepth());
m_keyboardEnabled = m_keyboardController.enabled;
updateKeyboard();
}
function fullScreenInit(settings) {
var _local2 = false;
if (settings.appearance.fullScreen) {
_local2 = settings.appearance.fullScreen == "1";
}
main.fullscreen.CFullScreen.__get__instance().setFullScreen(_local2);
main.fullscreen.CFullScreen.__get__instance().setListener(this);
}
function initPlayerLayout() {
var thisPtr = this;
getTarget()._visible = false;
m_rootMovie = new com.flashspring.online.controls.CMovieClipControl(getSkinTarget(), "skin");
m_panel = new com.flashspring.online.controls.CStatic(m_rootMovie, "m_panel", "panel_base");
m_volumeControlPanelMovie = new com.flashspring.online.controls.CMovieClipControl(m_rootMovie.getTarget(), "volumeControlPanel");
var _local2 = 0;
if (m_skinType != "pro") {
m_logo = m_rootMovie.getTarget().createEmptyMovieClip("m_logo", m_rootMovie.getTarget().getNextHighestDepth());
m_logo.attachMovie("iSpringLogo.swf", "mc_logo", m_logo.getNextHighestDepth());
m_logo.onRelease = function () {
this.getURL(thisPtr.m_gotoURL, "_blank");
};
m_logo.beginFill(16777215, 0);
m_logo.moveTo(0, 0);
m_logo.lineTo(m_logo._width, 0);
m_logo.lineTo(m_logo._width, m_logo._height);
m_logo.lineTo(0, m_logo._height);
m_logo.lineTo(0, 0);
m_logo.endFill();
m_logo._x = MARGIN_LEFT;
m_logo._y = (m_panel.getHeight() - m_logo._height) / 2;
_local2 = m_logo._x + m_logo._width;
}
m_playButton = new com.flashspring.online.controls.CButton(m_rootMovie, "playButton", "play");
m_pauseButton = new com.flashspring.online.controls.CButton(m_rootMovie, "pauseButton", "pause");
m_previousSlideButton = new com.flashspring.online.controls.CButton(m_rootMovie, "previousSlideButton", "previous");
m_nextSlideButton = new com.flashspring.online.controls.CButton(m_rootMovie, "nextSlideButton", "next");
m_noSoundButton = new com.flashspring.online.controls.CButton(m_volumeControlPanelMovie, "noSoundButton", "noSound");
m_soundButton = new com.flashspring.online.controls.CButton(m_volumeControlPanelMovie, "soundButton", "sound");
m_currentSlideLabel = new com.flashspring.online.controls.CLabel(m_rootMovie, "currentSlideLabel");
m_currentSlideLabel.setText(m_slideIndex + 1);
m_currentSlideLabel.setTextFormat(FONT, 11, 13207);
m_currentSlideLabel.__set__AA("normal");
m_slidesCountLabel = new com.flashspring.online.controls.CLabel(m_rootMovie, "slidesCountLabel");
m_slidesCountLabel.setText("/ " + m_slidesCount);
m_slidesCountLabel.setTextFormat(FONT, 11, 1644825);
m_slidesCountLabel.__set__AA("normal");
m_timeLine = new com.flashspring.online.controls.CTimeLine(m_rootMovie, "timeLine");
m_timeLine.addListener(this);
m_timeLine.setDuration(m_duration);
m_volumeControl = new com.flashspring.online.controls.CVolumeControl(m_volumeControlPanelMovie, "volumeControl");
m_previousSlideButton.setLeft(_local2 + LOGO_BUTTONS_DISTANCE);
m_playButton.setLeft((m_previousSlideButton.getLeft() + m_previousSlideButton.getWidth()) + BUTTONS_DISTANCE);
m_pauseButton.setLeft(m_playButton.getLeft());
m_nextSlideButton.setLeft((m_playButton.getLeft() + m_playButton.getWidth()) + BUTTONS_DISTANCE);
m_previousSlideButton.setTop((m_panel.getHeight() / 2) - (m_previousSlideButton.getHeight() / 2));
m_playButton.setTop((m_panel.getHeight() / 2) - (m_playButton.getHeight() / 2));
m_pauseButton.setTop(m_playButton.getTop());
m_nextSlideButton.setTop((m_panel.getHeight() / 2) - (m_nextSlideButton.getHeight() / 2));
m_soundButton.setCoordinate(0, (m_panel.getHeight() / 2) - (m_soundButton.getHeight() / 2));
m_noSoundButton.setCoordinate(0, (m_panel.getHeight() / 2) - (m_noSoundButton.getHeight() / 2));
m_volumeControl.setCoordinate(m_soundButton.getLeft(), m_soundButton.getTop() - m_volumeControl.getHeight());
m_currentSlideLabel.setCoordinate(((m_nextSlideButton.getLeft() + m_nextSlideButton.getWidth()) + BUTTONS_TIMELINE_DISTANCE) - 2, SLIDE_LABEL_TOP);
m_slidesCountLabel.setCoordinate((m_currentSlideLabel.getLeft() + m_currentSlideLabel.getWidth()) - 2, SLIDE_LABEL_TOP);
m_timeLine.setCoordinate((m_nextSlideButton.getLeft() + m_nextSlideButton.getWidth()) + BUTTONS_TIMELINE_DISTANCE, TIMELINE_TOP);
m_normalScreenButton = new com.flashspring.online.controls.CButton(m_volumeControlPanelMovie, "normalScreenButton", "fullScreen");
m_fullScreenButton = new com.flashspring.online.controls.CButton(m_volumeControlPanelMovie, "fullScreenButton", "fullScreen");
onControlPanelCreationComplete();
var _local3 = main.fullscreen.CFullScreen.__get__instance().getFullScreen();
updateFullScreenButton(_local3);
m_fullScreenButton.setCoordinate(getFullScreenButtonX(), (m_panel.getHeight() / 2) - (m_fullScreenButton.getHeight() / 2));
m_normalScreenButton.setCoordinate(m_fullScreenButton.getLeft(), (m_panel.getHeight() / 2) - (m_normalScreenButton.getHeight() / 2));
}
function onControlPanelCreationComplete() {
}
function getFullScreenButtonX() {
return((m_soundButton.getLeft() + m_soundButton.getWidth()) + BUTTONS_DISTANCE);
}
function initEvents() {
var thisSkin = this;
m_playButton.onRelease = function () {
if (!thisSkin.currentSlideHasUncompletedObligatoryQuiz()) {
thisSkin.m_playbackController.play();
thisSkin.changeState();
}
};
m_pauseButton.onRelease = function () {
if (!thisSkin.currentSlideHasUncompletedObligatoryQuiz()) {
thisSkin.m_playbackController.pause();
thisSkin.changeState();
}
};
m_nextSlideButton.onPress = function () {
if (thisSkin.m_playbackController.getNextSlideIndex() != undefined) {
if (!thisSkin.getPermissionToLeaveSlide()) {
return(undefined);
}
thisSkin.m_playbackController.gotoNextSlide();
}
};
m_previousSlideButton.onPress = function () {
if (thisSkin.m_playbackController.getPreviousSlideIndex() != undefined) {
if (!thisSkin.getPermissionToLeaveSlide()) {
return(undefined);
}
thisSkin.m_playbackController.gotoPreviousSlide();
}
};
m_soundButton.onRelease = function () {
thisSkin.m_volume = thisSkin.m_soundController.getVolume();
thisSkin.changeVolume(0);
thisSkin.m_volumeControl.showVolumePanel(false);
};
m_noSoundButton.onRelease = function () {
thisSkin.changeVolume(thisSkin.m_volume);
};
m_fullScreenButton.onRelease = function () {
thisSkin.setFullScreenMode(true);
};
m_normalScreenButton.onRelease = function () {
thisSkin.setFullScreenMode(false);
};
m_volumeControl.onVolumeChange = function (v) {
thisSkin.changeVolume(v);
};
m_soundListener.onSoundVolumeChanged = function (soundController) {
thisSkin.m_volumeSeeking = true;
thisSkin.changeVolume(soundController.getVolume());
thisSkin.m_volumeSeeking = false;
};
}
function onSlidePositionChanged(position) {
if (m_quiz == undefined) {
m_quiz = getCurrentSlideQuiz();
if (currentSlideHasUncompletedQuiz()) {
onStartQuiz();
}
}
if (m_playbackController.getCurrentVisibleSlideIndex() == undefined) {
return(undefined);
}
if (!m_timeLine.isSeeking()) {
var _local2 = m_slides.getVisibleSlide(m_slideIndex).getVisibleStartTime();
m_progress = (_local2 + (m_slides.getVisibleSlide(m_slideIndex).getDuration() * position)) / m_duration;
m_timeLine.setPosition(m_progress);
}
}
function onCurrentSlideIndexChanged(index) {
m_quiz = undefined;
m_slideIndex = m_slides.getSlideInfo(index).getVisibleIndex();
m_prevoiusIndex = ((m_slideIndex != undefined) ? (m_slideIndex) : (m_prevoiusIndex));
onSlidePositionChanged(m_playbackController.getCurrentSlidePlaybackPosition());
m_currentSlideLabel.setText(m_prevoiusIndex + 1);
onResize();
changeState();
}
function onSeek(position) {
if (m_slides.getVisibleSlidesCount() == 0) {
return(undefined);
}
m_progress = position;
var _local3 = position * m_duration;
var _local2 = getVisibleSlideIndexByTime(_local3);
if (_local2 != m_playbackController.getCurrentVisibleSlideIndex()) {
m_playbackController.gotoVisibleSlide(_local2, false);
}
if (getSlideTime(_local2) != _local3) {
var _local5 = m_slides.getVisibleSlide(_local2).getDuration();
position = 1 - ((getSlideTime(_local2) - _local3) / _local5);
m_playbackController.seek(position);
} else {
m_playbackController.seek(1);
}
}
function getVisibleSlideIndexByTime(time) {
var _local3 = m_slides.getVisibleSlidesCount();
var _local2 = 0;
while (_local2 < (_local3 - 1)) {
if (m_slides.getVisibleSlide(_local2 + 1).getVisibleStartTime() >= time) {
return(_local2);
}
_local2++;
}
return(_local3 - 1);
}
function onSeekOver() {
m_playbackController.endSeek(true);
}
function onResize() {
var _local3;
var _local2;
if (m_autoSize) {
_local3 = Stage.width;
_local2 = Stage.height;
} else {
_local3 = m_autoSizeWidth;
_local2 = m_autoSizeHeight;
}
m_volumeControlPanelMovie.setLeft(MARGIN_RIGHT - m_volumeControlPanelMovie.getWidth());
var _local8;
var _local7;
var _local4;
_local8 = ((_local3 < MIN_PANEL_WIDTH) ? (_local3 / MIN_PANEL_WIDTH) : 1);
_local7 = ((_local2 < (5 * m_panel.getHeight())) ? (_local2 / (5 * m_panel.getHeight())) : 1);
_local4 = Math.min(_local8, _local7);
var _local5;
_local5 = _local4 * 100;
var _local6 = (m_panel.getHeight() * _local5) / 100;
m_rootMovie.setTop((_local2 - _local6) * (m_autoSizeScaleY / 100));
m_panel.setWidth((_local3 / _local5) * 100);
m_volumeControlPanelMovie.setLeft((m_panel.getWidth() - m_volumeControlPanelMovie.getWidth()) - MARGIN_RIGHT);
_local4 = Math.min(_local3 / m_presentation.getSlideWidth(), (_local2 - _local6) / m_presentation.getSlideHeight()) * 100;
getTarget()._xscale = _local4 * (m_autoSizeScaleX / 100);
getTarget()._yscale = _local4 * (m_autoSizeScaleY / 100);
getTarget()._x = (_local3 - ((m_presentation.getSlideWidth() * _local4) / 100)) / 2;
getTarget()._y = ((_local2 - ((m_presentation.getSlideHeight() * _local4) / 100)) - _local6) / 2;
m_slidesCountLabel.setLeft(m_currentSlideLabel.getLeft() + m_currentSlideLabel.getWidth());
m_timeLine.setWidth((m_volumeControlPanelMovie.getLeft() - m_timeLine.getLeft()) - BUTTONS_TIMELINE_DISTANCE);
m_rootMovie.getTarget()._xscale = m_autoSizeScaleX * (_local5 / 100);
m_rootMovie.getTarget()._yscale = m_autoSizeScaleY * (_local5 / 100);
}
function onSlideLoadingComplete(index) {
m_loadingSlides[index] = true;
var _local2 = m_loadedSlidesCount;
while ((m_loadedSlidesCount < m_slides.getVisibleSlidesCount()) && (m_slides.getVisibleSlide(m_loadedSlidesCount).isLoaded())) {
m_loadedSlidesCount++;
}
m_timeLine.setLoadProgress(getSlideTime(m_loadedSlidesCount - 1) / m_duration);
changeState();
getTarget()._visible = true;
}
function onStartPlayback() {
changeState();
}
function onPausePlayback() {
changeState();
}
function onRelease() {
var _local4 = getSkinSettings().webLinks.slideAreaLink;
var _local2 = getSkinSettings().navigation.mouse;
var _local3 = _local4.href;
if (_local3) {
getURL (_local3, _local4.target);
} else if ((_local2.enabled == 1) || (_local2.enabled == true)) {
if (_local2.target == "step") {
m_playbackController.gotoNextStep();
} else {
m_playbackController.gotoNextSlide();
}
}
}
function changeState() {
var _local3 = isPlaying();
m_playButton.__set__visible(!_local3);
m_pauseButton.__set__visible(_local3);
var _local2 = m_playbackController.getPreviousSlideIndex();
m_previousSlideButton.__set__enable((_local2 != undefined) && (slideIsLoadedWithHidden(_local2)));
var _local4 = m_playbackController.getNextSlideIndex();
m_nextSlideButton.__set__enable((_local4 != undefined) && (slideIsLoadedWithHidden(_local4)));
}
function changeVolume(v) {
var _local2 = v == 0;
m_noSoundButton.__set__visible(_local2);
m_soundButton.__set__visible(!_local2);
m_volumeControl.setVolume(v);
if (!m_volumeSeeking) {
m_soundController.setVolume(v);
}
}
function createMask() {
m_slideAssetsMask = getTarget().attachMovie("mask", "mask", getTarget().getNextHighestDepth());
m_slideAssetsMask._width = m_presentation.getSlideWidth();
m_slideAssetsMask._height = m_presentation.getSlideHeight();
getTarget().setMask(m_slideAssetsMask);
}
function getSlideTime(slideIndex) {
return(m_slides.getVisibleSlide(slideIndex).getVisibleEndTime());
}
function getRootMovieClip() {
var _local2 = getSkinTarget();
while (_local2._parent != undefined) {
_local2 = _local2._parent;
}
return(_local2);
}
function updateFullScreenButton(fullScreen) {
m_normalScreenButton.__set__visible(fullScreen);
m_fullScreenButton.__set__visible(!fullScreen);
}
function setFullScreenMode(mode) {
updateFullScreenButton(mode);
main.fullscreen.CFullScreen.__get__instance().setFullScreen(mode);
}
function getCurrentSlideIndex() {
return(m_slideIndex);
}
function gotoSlide(slideIndex) {
if (slideIsLoaded(slideIndex) && (!m_timeLine.isSeeking())) {
m_playbackController.gotoSlide(m_slides.getVisibleSlide(Number(slideIndex)).getIndex());
}
return(slideIsLoaded(slideIndex) && (!m_timeLine.isSeeking()));
}
function getSlidesCount() {
return(m_slidesCount);
}
function onPresentationPlaybackComplete() {
var _local2 = getSkinSettings().webLinks.presentationEndLink;
if (_local2.href) {
getURL (_local2.href, _local2.target);
}
}
function startPlayback() {
if (m_slides.getSlideInfo(m_playbackController.getCurrentSlideIndex()).isLoaded()) {
m_playbackController.play();
}
return(m_slides.getSlideInfo(m_playbackController.getCurrentSlideIndex()).isLoaded());
}
function pausePlayback() {
if (m_slides.getSlideInfo(m_playbackController.getCurrentSlideIndex()).isLoaded()) {
m_playbackController.pause();
}
return(m_slides.getSlideInfo(m_playbackController.getCurrentSlideIndex()).isLoaded());
}
function slideIsLoaded(slideIndex) {
return(((slideIndex >= 0) && (slideIndex < m_slidesCount)) && (m_slides.getVisibleSlide(slideIndex).isLoaded()));
}
function slideIsLoadedWithHidden(slideIndex) {
return(((slideIndex >= 0) && (slideIndex < m_slidesCountWithHidden)) && (m_slides.getSlideInfo(slideIndex).isLoaded()));
}
function onFullScreen(value) {
updateFullScreenButton(value);
}
function getAutoSize() {
return(m_autoSize);
}
function setAutoSize(autoSize) {
if (autoSize != undefined) {
m_autoSize = autoSize;
if (m_autoSize) {
m_autoSizeScaleX = AUTOSIZE_INIT_SCALE;
m_autoSizeScaleY = AUTOSIZE_INIT_SCALE;
Stage.scaleMode = "noscale";
Stage.align = "TL";
Stage.addListener(this);
} else {
m_autoSizeWidth = Stage.width;
m_autoSizeHeight = Stage.height;
m_autoSizeScaleX = (m_autoSizeScaleY = AUTOSIZE_INIT_SCALE);
Stage.removeListener(this);
}
onResize();
}
}
function getWidth() {
return(m_autoSizeWidth);
}
function getHeight() {
return(m_autoSizeHeight);
}
function setSize(width, height) {
if (!m_autoSize) {
if ((((width != undefined) && (width > 0)) && (height != undefined)) && (height > 0)) {
m_autoSizeWidth = width;
m_autoSizeHeight = height;
onResize();
}
}
}
function getScaleX() {
return(m_autoSizeScaleX);
}
function getScaleY() {
return(m_autoSizeScaleY);
}
function setScale(scaleX, scaleY) {
if (!m_autoSize) {
m_autoSizeScaleX = scaleX;
m_autoSizeScaleY = scaleY;
onResize();
}
}
function getPermissionToLeaveSlide() {
if (currentSlideHasUncompletedObligatoryQuiz()) {
m_mustCompleteQuizWindow.open();
return(false);
}
return(true);
}
function currentSlideHasUncompletedObligatoryQuiz() {
return(currentSlideHasUncompletedQuiz() && (m_quiz.allowQuizInterruption() == false));
}
function currentSlideHasUncompletedQuiz() {
if (m_quiz == undefined) {
return(false);
}
var _local2 = m_quiz.getQuizStatus();
return((_local2 != quizmaker.api.CQuizStatus.STOP) && (_local2 != quizmaker.api.CQuizStatus.REVIEW));
}
function onStartQuiz() {
if (!m_quiz.allowQuizInterruption()) {
m_timeLine.__set__blocked(true);
}
var thisPtr = this;
var _local2 = new Object();
var _local3 = {listener:_local2};
_local2.onFinalizeQuiz = function () {
thisPtr.onFinishQuiz();
};
m_quiz.addListener(_local3.listener);
updateKeyboard();
}
function onFinishQuiz() {
if (!m_quiz.allowQuizInterruption()) {
m_timeLine.__set__blocked(false);
}
updateKeyboard();
}
function getCurrentSlideQuiz() {
var _local2 = fsplayer.api.IPresentationPlaybackControllerEx(m_playbackController);
return(_local2.getActiveQuiz());
}
function updateKeyboard() {
m_keyboardController.__set__enabled((m_keyboardEnabled && (!m_acquireFocus)) && (!currentSlideHasUncompletedQuiz()));
}
function onKeyboardFocusStateChanged(acquireFocus) {
m_acquireFocus = acquireFocus;
updateKeyboard();
}
function onDisableKeyboard() {
m_keyboardEnabled = false;
updateKeyboard();
}
function onEnableKeyboard() {
m_keyboardEnabled = true;
updateKeyboard();
}
function isPlaying() {
return(m_playbackController.isPlaying());
}
var FONT = "Arial";
static var LOGO_BUTTONS_DISTANCE = 9;
static var BUTTONS_DISTANCE = 4;
static var MARGIN_LEFT = 9;
static var MARGIN_RIGHT = 9;
static var BUTTONS_TIMELINE_DISTANCE = 10;
static var TIMELINE_TOP = 11;
static var SLIDE_LABEL_TOP = 17;
static var AUTOSIZE_INIT_SCALE = 100;
static var AUTOSIZE_INIT_SIZE = 250;
var MIN_PANEL_WIDTH = 400;
var VOLUME_CONTROL_PANEL_WIDTH = 85;
var m_gotoURL = "http://www.ispringsolutions.com/?ref=free";
var m_loadedSlidesCount = 0;
var m_autoSize = true;
var m_autoSizeWidth = AUTOSIZE_INIT_SIZE;
var m_autoSizeHeight = AUTOSIZE_INIT_SIZE;
var m_autoSizeScaleX = AUTOSIZE_INIT_SCALE;
var m_autoSizeScaleY = AUTOSIZE_INIT_SCALE;
var m_prevoiusIndex = -1;
var m_quiz = undefined;
var m_acquireFocus = false;
}
Symbol 474 MovieClip [__Packages.main.CKeyboardController] Frame 0
class main.CKeyboardController
{
var m_player, m_keyboardNavigation, m_playbackController, m_soundController, m_presentation, m_slides, m_rewindTimer, m_keyboardSeeking, m_lastKeyPressed;
function CKeyboardController (player, keyboardNavigation) {
m_player = player;
m_keyboardNavigation = keyboardNavigation;
m_playbackController = player.getPlaybackController();
m_soundController = player.getSoundController();
m_presentation = player.getPresentationInfo();
m_slides = m_presentation.getSlides();
var thisPtr = this;
var _local2 = new Object();
_local2.onKeyDown = function () {
thisPtr.onKeyDown();
};
_local2.onKeyUp = function () {
thisPtr.onKeyUp();
};
Key.addListener(_local2);
m_rewindTimer = new core.CTimer();
m_rewindTimer.__set__time(m_presentation.getFrameRate());
m_rewindTimer.addEventHandler("tick", onRewindTimerTick, this);
}
function get enabled() {
return(m_enableKeyboard);
}
function set enabled(e) {
m_enableKeyboard = e;
//return(enabled);
}
function onRewindTimerTick() {
var _local3 = m_seekingSpeed / (m_rewindTimer.__get__time() * m_playbackController.getCurrentSlideDuration());
m_seekingSpeed = Math.min(SEEKING_SPEED_MAX, m_seekingSpeed + (SEEKING_ACCELERATION * m_rewindTimer.__get__time()));
var _local2 = m_rewindPosition + (m_rewindDirection * _local3);
if (_local2 < 0) {
_local2 = 0;
} else if (_local2 > 1) {
_local2 = 1;
}
m_rewindPosition = _local2;
m_playbackController.seek(_local2);
}
function keyboardEnabled() {
return(m_keyboardNavigation && ((m_keyboardNavigation.enabled == true) || (m_keyboardNavigation.enabled == 1)));
}
function onKeyDown() {
if (!m_player.isInitialized()) {
return(undefined);
}
var _local2 = m_playbackController;
var _local7 = m_slides.getSlidesCount();
var _local6 = _local7 - 1;
var _local3 = Key.getCode();
if ((!enabled) || (!keyboardEnabled())) {
if (m_keyboardSeeking) {
m_keyboardSeeking = false;
m_rewindTimer.stop();
m_playbackController.endSeek();
}
m_lastKeyPressed = undefined;
return(undefined);
}
if (Key.isDown(17) && (m_lastKeyPressed != _local3)) {
switch (_local3) {
case 36 :
if (m_slides.getVisibleSlide(0).isLoaded()) {
_local2.gotoFirstSlide();
}
break;
case 35 :
if (!m_slides.getVisibleSlide(m_slides.getVisibleSlidesCount() - 1).isLoaded()) {
break;
}
_local2.gotoLastSlide();
}
} else {
switch (_local3) {
case 34 :
if (_local2.getCurrentSlideIndex() < _local6) {
_local2.gotoNextSlide();
}
break;
case 33 :
if (_local2.getCurrentSlideIndex() > 0) {
_local2.gotoPreviousSlide();
}
break;
case 36 :
if (m_lastKeyPressed != _local3) {
_local2.playCurrentSlideFrom(0);
}
break;
case 35 :
if (m_lastKeyPressed != _local3) {
_local2.pauseCurrentSlideAt(1);
}
break;
case 32 :
if (m_lastKeyPressed != _local3) {
if (_local2.isPlaying()) {
_local2.pause();
} else {
_local2.play();
}
}
break;
case 37 :
onKeyLeftDown();
break;
case 39 :
onKeyRightDown();
break;
case 38 :
var _local4 = m_soundController.getVolume();
var _local5 = Math.min(1, _local4 + VOLUME_STEP);
if (_local4 != _local5) {
m_soundController.setVolume(_local5);
}
break;
case 40 :
_local4 = m_soundController.getVolume();
_local5 = Math.max(0, _local4 - VOLUME_STEP);
if (_local4 != _local5) {
m_soundController.setVolume(_local5);
}
break;
case 8 :
if (m_lastKeyPressed != _local3) {
_local2.gotoLastViewedSlide();
}
break;
case 13 :
if (Key.isDown(16)) {
_local2.gotoPreviousStep();
} else {
_local2.gotoNextStep();
}
}
}
m_lastKeyPressed = Key.getCode();
}
function onKeyLeftDown() {
if (canSeek() && (!m_keyboardSeeking)) {
m_keyboardSeeking = true;
m_seekingSpeed = SEEKING_SPEED;
m_rewindPosition = m_playbackController.getCurrentSlidePlaybackPosition();
m_rewindDirection = -1;
m_rewindTimer.start();
}
}
function canSeek() {
if (!m_player.isInitialized()) {
return(false);
}
var _local2 = getCurrentSlideIndex();
if (_local2 != undefined) {
var _local3 = getSlideInfo(_local2);
if (_local3) {
return(_local3.isLoaded());
}
}
return(false);
}
function onKeyRightDown() {
if (canSeek() && (!m_keyboardSeeking)) {
m_keyboardSeeking = true;
m_seekingSpeed = SEEKING_SPEED;
m_rewindPosition = m_playbackController.getCurrentSlidePlaybackPosition();
m_rewindDirection = 1;
m_rewindTimer.start();
}
}
function onKeyLeftUp() {
if (canSeek() && (m_keyboardSeeking)) {
m_keyboardSeeking = false;
m_rewindTimer.stop();
m_playbackController.endSeek();
}
}
function onKeyRightUp() {
if (canSeek() && (m_keyboardSeeking)) {
m_keyboardSeeking = false;
m_rewindTimer.stop();
m_playbackController.endSeek();
}
}
function onKeyUp() {
if (!m_player.isInitialized()) {
return(undefined);
}
if (keyboardEnabled() && (enabled)) {
if (Key.getCode() == 39) {
onKeyRightUp();
} else if (Key.getCode() == 37) {
onKeyLeftUp();
}
} else if (m_keyboardSeeking) {
m_keyboardSeeking = false;
m_rewindTimer.stop();
m_playbackController.endSeek();
}
m_lastKeyPressed = undefined;
}
function getCurrentSlideIndex() {
return(m_playbackController.getCurrentSlideIndex());
}
function getSlideInfo(slideIndex) {
return(m_presentation.getSlides().getSlideInfo(slideIndex));
}
var m_rewindPosition = 0;
var m_rewindDirection = 0;
var m_seekingSpeed = 0;
static var SEEKING_SPEED = 1;
static var SEEKING_SPEED_MAX = 10;
static var SEEKING_ACCELERATION = 0.003;
static var VOLUME_STEP = 0.05;
var m_enableKeyboard = true;
}
Symbol 475 MovieClip [__Packages.core.CEventBroadcaster] Frame 0
class core.CEventBroadcaster
{
var m_listeners;
function CEventBroadcaster () {
m_listeners = new Object();
}
function enableEvents() {
m_eventsEnabled = true;
}
function disableEvents() {
m_eventsEnabled = false;
}
function addEventHandler(eventName, handler, listener, params) {
if (!m_listeners[eventName]) {
m_listeners[eventName] = new Array();
}
var _local2 = new Object();
_local2.listener = listener;
_local2.handler = handler;
_local2.params = params;
m_listeners[eventName].push(_local2);
}
function removeEventHandler(eventName, handler, listener) {
var _local2 = 0;
while (_local2 < m_listeners[eventName].length) {
var _local3 = m_listeners[eventName][_local2];
if ((_local3.listener === listener) && (_local3.handler === handler)) {
m_listeners[eventName].splice(_local2, 1);
}
_local2++;
}
}
function broadcastEvent(name) {
if (!m_eventsEnabled) {
return(undefined);
}
var _local5 = m_listeners[name];
if (!_local5) {
return(undefined);
}
var _local4 = arguments;
_local4.unshift(0);
for (var _local6 in _local5) {
var _local3 = _local5[_local6];
_local4[0] = this;
_local4[1] = _local3.params;
_local3.handler.apply(_local3.listener, _local4);
}
}
function DEBUG(msg) {
_global.DEBUG(msg);
}
var m_eventsEnabled = true;
}
Symbol 476 MovieClip [__Packages.core.CTimer] Frame 0
class core.CTimer extends core.CEventBroadcaster
{
var broadcastEvent;
function CTimer () {
super();
}
function get type() {
return("TIMER");
}
function get timeRunning() {
return(m_timeRunning);
}
function get timeout() {
return(m_timeout);
}
function get time() {
return(m_time);
}
function set time(value) {
if (isRunning) {
stop();
m_time = value;
start();
} else {
m_time = value;
}
//return(time);
}
function get isPaused() {
return(m_isPaused);
}
function get isRunning() {
return(!(m_intervalId === 0));
}
function start(reportTick) {
if (isRunning) {
stop();
}
m_timeRunning = 0;
m_intervalId = setInterval(this, "notify", m_time);
broadcastEvent("start");
m_isPaused = false;
if (reportTick) {
broadcastEvent("tick");
}
}
function pause() {
m_isPaused = true;
}
function resume() {
m_isPaused = false;
}
function stop() {
if (!isRunning) {
return(undefined);
}
broadcastEvent("stop");
clearInterval(m_intervalId);
m_intervalId = 0;
}
function notify() {
if (!isPaused) {
m_timeRunning = m_timeRunning + m_time;
broadcastEvent("tick");
if (timeout && (m_timeRunning >= timeout)) {
broadcastEvent("timeout");
stop();
}
}
}
var m_intervalId = 0;
var m_time = 0;
var m_timeRunning = 0;
var m_timeout = 0;
var m_isPaused = true;
}
Symbol 477 MovieClip [__Packages.com.flashspring.online.CSkinKeyboardController] Frame 0
class com.flashspring.online.CSkinKeyboardController extends main.CKeyboardController
{
var m_rewindPosition, m_playbackController, m_presentation;
function CSkinKeyboardController (player, keyboardNavigation) {
super(player, keyboardNavigation);
}
function onKeyLeftDown() {
super.onKeyLeftDown();
if ((m_rewindPosition == 0) && (m_playbackController.getCurrentVisibleSlideIndex() > 0)) {
m_rewindPosition = 1;
m_playbackController.gotoPreviousSlide();
m_playbackController.seek(m_rewindPosition);
}
}
function onKeyRightDown() {
super.onKeyRightDown();
if ((m_rewindPosition == 1) && (m_playbackController.getCurrentVisibleSlideIndex() < (m_presentation.getSlides().getVisibleSlidesCount() - 1))) {
m_playbackController.gotoNextSlide();
m_rewindPosition = 0;
}
}
}
Symbol 478 MovieClip [__Packages.com.flashspring.online.controls.IControl] Frame 0
interface com.flashspring.online.controls.IControl
{
}
Symbol 479 MovieClip [__Packages.com.flashspring.online.controls.CControlImpl] Frame 0
class com.flashspring.online.controls.CControlImpl implements com.flashspring.online.controls.IControl
{
var m_parent, m_name, m_parentMC, m_target;
function CControlImpl (parent, name) {
m_parent = parent;
m_name = name;
m_parentMC = m_parent.getTarget();
m_target = m_parentMC.createEmptyMovieClip(name, m_parentMC.getNextHighestDepth());
}
function getTarget() {
return(m_target);
}
function getName() {
return(m_name);
}
function getParentMovieClip() {
return(m_parentMC);
}
function getParent() {
return(m_parent);
}
function getLeft() {
return(m_target._x);
}
function getTop() {
return(m_target._y);
}
function getWidth() {
return(m_target._width);
}
function getHeight() {
return(m_target._height);
}
function setLeft(l) {
m_target._x = l;
}
function setTop(t) {
m_target._y = t;
}
function setWidth(w) {
m_target._width = w;
}
function setHeight(h) {
m_target._height = h;
}
function setCoordinate(x, y) {
setLeft(x);
setTop(y);
}
function set visible(v) {
m_target._visible = v;
//return(visible);
}
function get visible() {
return(m_target._visible);
}
}
Symbol 480 MovieClip [__Packages.com.flashspring.online.controls.CMovieClipControl] Frame 0
class com.flashspring.online.controls.CMovieClipControl extends com.flashspring.online.controls.CControlImpl
{
var m_parent, m_parentMC, m_name, m_target;
function CMovieClipControl (parentMC, name) {
super();
m_parent = null;
m_parentMC = parentMC;
m_name = name;
m_target = m_parentMC.createEmptyMovieClip(name, m_parentMC.getNextHighestDepth());
}
}
Symbol 481 MovieClip [__Packages.com.flashspring.online.controls.CStatic] Frame 0
class com.flashspring.online.controls.CStatic extends com.flashspring.online.controls.CControlImpl
{
var m_parent, m_name, m_parentMC, m_target;
function CStatic (parent, name, assetName) {
super();
m_parent = parent;
m_name = name;
m_parentMC = m_parent.getTarget();
m_target = m_parentMC.attachMovie(assetName, name, m_parentMC.getNextHighestDepth());
}
}
Symbol 482 MovieClip [__Packages.com.flashspring.online.controls.CTimeLine] Frame 0
class com.flashspring.online.controls.CTimeLine extends com.flashspring.online.controls.CControlImpl
{
var m_track, m_target, m_loadBar, m_bar, m_slider, m_durationLabel, m_timeLabel, m_seek, m_length, m_duration, m_listener, m_position, m_loadProgress;
function CTimeLine (parent, name, type) {
function releaseOutside() {
thisTL.onReleaseOutside();
endSeek();
}
function rollOver() {
thisTL.onRollOver();
}
function rollOut() {
thisTL.onRollOut();
}
function SeekMove() {
if ((!thisTL.__get__blocked()) && (thisTL.m_seek)) {
thisTL.m_slider._x = thisTL.m_target._xmouse;
var _local1 = thisTL.getPosition();
thisTL.setPosition(_local1);
thisTL.m_listener.onSeek(_local1);
}
}
function Seek() {
if (!thisTL.__get__blocked()) {
thisTL.m_seek = true;
SeekMove();
}
}
function endSeek() {
thisTL.m_seek = false;
thisTL.m_listener.onSeekOver();
}
super(parent, name);
if (type != undefined) {
m_type = type;
}
m_track = m_target.attachMovie("track.swf", "track", m_target.getNextHighestDepth());
m_loadBar = m_target.attachMovie("loadBar.swf", "load_bar", m_target.getNextHighestDepth());
m_bar = m_target.attachMovie("bar.swf", "bar", m_target.getNextHighestDepth());
m_slider = m_target.attachMovie("slider.swf", "slider", m_target.getNextHighestDepth());
m_durationLabel = new com.flashspring.online.controls.CLabel(this, "durationLabel");
setDuration(0);
if (m_type == TYPE_FLAT) {
m_durationLabel.setTextFormat("Arial", 10, 3355443);
} else {
m_durationLabel.setTextFormat("Arial", 11, 1644825);
}
m_durationLabel.__set__AA("normal");
m_timeLabel = new com.flashspring.online.controls.CLabel(this, "timeLabel");
if (m_type == TYPE_FLAT) {
m_timeLabel.setTextFormat("Arial", 10, 10031616);
} else {
m_timeLabel.setTextFormat("Arial", 11, 13207);
}
m_timeLabel.__set__AA("normal");
if (m_type == TYPE_FLAT) {
m_timeLabel.setTop(FLAT_TIME_LABEL_TOP_MARGIN);
m_durationLabel.setTop(FLAT_TIME_LABEL_TOP_MARGIN);
} else {
m_timeLabel.setTop(GENERAL_TIME_LABEL_TOP_MARGIN);
m_durationLabel.setTop(GENERAL_TIME_LABEL_TOP_MARGIN);
}
m_seek = false;
m_length = m_track._width;
m_duration = 0;
setPosition(0);
setLoadProgress(0);
var thisTL = this;
m_bar.onPress = Seek;
m_bar.onRelease = endSeek;
m_bar.onReleaseOutside = releaseOutside;
m_bar.onRollOver = rollOver;
m_bar.onRollOut = rollOut;
m_track.onPress = Seek;
m_track.onMouseMove = SeekMove;
m_track.onRelease = endSeek;
m_track.onReleaseOutside = releaseOutside;
m_track.onRollOver = rollOver;
m_track.onRollOut = rollOut;
m_slider.onPress = Seek;
m_slider.onRelease = endSeek;
m_slider.onReleaseOutside = releaseOutside;
m_slider.onRollOver = rollOver;
m_slider.onRollOut = rollOut;
}
function addListener(listener) {
m_listener = listener;
}
function setPosition(p) {
m_position = correctPosition(p);
m_slider._x = m_position * m_length;
m_bar._width = m_slider._x;
m_timeLabel.setText(printTime(m_duration * p));
m_timeLabel.setLeft(m_durationLabel.getLeft() - m_timeLabel.getWidth());
}
function getPosition() {
m_position = m_slider._x / m_length;
return(correctPosition(m_position));
}
function isSeeking() {
return(m_seek);
}
function setWidth(w) {
m_track._width = w;
m_length = w;
m_loadBar._width = m_length * m_loadProgress;
if (m_type == TYPE_FLAT) {
m_durationLabel.setLeft((w + TIME_LABEL_LEFT_MARGIN) + m_timeLabel.getWidth());
} else {
m_durationLabel.setLeft((w - m_durationLabel.getWidth()) + 2);
}
setPosition(m_position);
}
function getWidth() {
return((m_track._width + m_durationLabel.getWidth()) + 5);
}
function setDuration(d) {
m_duration = d;
m_durationLabel.setText("/ " + printTime(d));
}
function getDuration() {
return(m_duration);
}
function setLoadProgress(p) {
m_loadProgress = p;
m_loadBar._width = m_length * p;
}
function getLoadProgress() {
return(m_loadProgress);
}
function correctPosition(position) {
if (m_loadProgress < position) {
return(m_loadProgress);
}
if (position < 0) {
return(0);
}
return(position);
}
function printTime(t) {
var _local3 = String(((Math.floor(t / 3600) > 9) ? (Math.floor(t / 3600)) : ("0" + Math.floor(t / 3600))));
var _local4 = String(((Math.floor((t % 3600) / 60) > 9) ? (Math.floor((t % 3600) / 60)) : ("0" + Math.floor((t % 3600) / 60))));
var _local2 = String(((Math.floor(t % 60) > 9) ? (Math.floor(t % 60)) : ("0" + Math.floor(t % 60))));
if (_local3 >= 1) {
return((((_local3 + ":") + _local4) + ":") + _local2);
}
return((_local4 + ":") + _local2);
}
function get blocked() {
return(m_blocked);
}
function set blocked(val) {
m_blocked = val;
//return(blocked);
}
static var TYPE_GENERAL = "general";
static var TYPE_FLAT = "flat";
static var GENERAL_TIME_LABEL_TOP_MARGIN = 5;
static var FLAT_TIME_LABEL_TOP_MARGIN = -8;
static var TIME_LABEL_LEFT_MARGIN = 9;
var m_type = TYPE_GENERAL;
var m_blocked = false;
}
Symbol 483 MovieClip [__Packages.com.flashspring.online.controls.CLabel] Frame 0
class com.flashspring.online.controls.CLabel extends com.flashspring.online.controls.CControlImpl
{
var m_target, m_label, m_textFormat, __get__align, __get__AA;
function CLabel (parent, name) {
super(parent, name);
m_target.createTextField(name, 1, 0, 0, 1, 1);
m_label = m_target[name];
m_label.autoSize = true;
m_label.antiAliasType = "advanced";
m_label.selectable = false;
m_label.embedFonts = true;
}
function setTextFormat(font, size, color) {
m_textFormat = new TextFormat(font, size, color);
m_label.setTextFormat(m_textFormat);
}
function getTextFormat() {
return(m_label.getTextFormat());
}
function setText(text) {
m_label.text = text;
m_label.setTextFormat(m_textFormat);
}
function getText() {
return(m_label.text);
}
function set align(a) {
m_textFormat.align = a;
//return(__get__align());
}
function set AA(aa) {
m_label.antiAliasType = aa;
//return(__get__AA());
}
function get length() {
return(m_label.text.length);
}
function setBackground(color) {
m_label.thickness = 2;
m_label.background = true;
m_label.backgroundColor = color;
}
}
Symbol 484 MovieClip [__Packages.com.flashspring.online.controls.CVolumeControl] Frame 0
class com.flashspring.online.controls.CVolumeControl extends com.flashspring.online.controls.CControlImpl
{
var m_back, m_target, m_volumeControl, m_backMask, m_mask, m_activeArea;
function CVolumeControl (parent, name) {
function seekMove() {
if (thisVC.m_seek) {
var _local1 = thisVC.m_target._ymouse / thisVC.m_volumeControl._height;
_local1 = ((_local1 < 0) ? 0 : (((1 < _local1) ? 1 : (_local1))));
thisVC.setVolume(_local1);
thisVC.onVolumeChange(1 - _local1);
}
}
function seek() {
thisVC.m_seek = true;
seekMove();
}
function endSeek() {
thisVC.m_seek = false;
}
super(parent, name);
m_back = m_target.attachMovie("volumeControlBack", "m_back", m_target.getNextHighestDepth());
m_volumeControl = m_back.attachMovie("volumeProgress", "volumeControl", m_back.getNextHighestDepth());
m_backMask = m_back.attachMovie("volumeControlBack", "m_backMask", m_back.getNextHighestDepth());
m_mask = m_back.attachMovie("mask", "mask", m_back.getNextHighestDepth());
m_activeArea = m_back.attachMovie("volumeControlBack", "activeArea", m_back.getNextHighestDepth());
m_mask._width = m_volumeControl._width;
m_mask._height = m_volumeControl._height;
m_activeArea._width = m_volumeControl._width;
m_activeArea._height = m_volumeControl._height + 4;
m_activeArea._alpha = 0;
m_volumeControl._x = (m_back._width / 2) - (m_volumeControl._width / 2);
m_activeArea._x = (m_mask._x = m_volumeControl._x);
m_activeArea._y = (m_volumeControl._y = 5);
m_mask._y = m_volumeControl._y;
m_mask._height = 0;
m_backMask.setMask(m_mask);
showVolumePanel(false);
var thisVC = this;
m_activeArea.onPress = seek;
m_activeArea.onRelease = endSeek;
m_activeArea.onMouseMove = seekMove;
m_activeArea.onReleaseOutside = function () {
endSeek();
thisVC.onReleaseOutside();
thisVC.showVolumePanel(false);
};
m_activeArea.onRollOver = function () {
thisVC.showVolumePanel(true);
thisVC.onRollOver();
};
m_activeArea.onRollOut = function () {
thisVC.showVolumePanel(false);
thisVC.onRollOut();
};
}
function setVolume(v) {
m_mask._height = m_volumeControl._height * (1 - v);
}
function getVolume() {
return(m_mask._width / m_volumeControl._width);
}
function showVolumePanel(show) {
m_back._visible = show;
}
function get visible() {
return(m_back._visible);
}
}
Symbol 485 MovieClip [__Packages.com.flashspring.online.controls.CButton] Frame 0
class com.flashspring.online.controls.CButton extends com.flashspring.online.controls.CControlImpl
{
var m_up, m_target, m_over, m_down, m_disabled, m_state, __get__enable;
function CButton (parent, name, assetName) {
super(parent, name);
var _local3 = new Object();
_local3._visible = false;
m_up = m_target.attachMovie(assetName + "Up.swf", "Up", 1, _local3);
if (!m_up) {
m_up = m_target.attachMovie(assetName + "Up", "Up", 1, _local3);
}
m_over = m_target.attachMovie(assetName + "Over.swf", "Over", 2, _local3);
if (!m_over) {
m_over = m_target.attachMovie(assetName + "Over", "Over", 2, _local3);
}
m_down = m_target.attachMovie(assetName + "Down.swf", "Down", 3, _local3);
if (!m_down) {
m_down = m_target.attachMovie(assetName + "Down", "Down", 3, _local3);
}
m_disabled = m_target.attachMovie(assetName + "Disabled.swf", "Disabled", 4, _local3);
if (!m_disabled) {
m_disabled = m_target.attachMovie(assetName + "Disabled", "Disabled", 4, _local3);
}
state = ("Up");
var thisBtn = this;
m_target.onPress = function () {
if (thisBtn.m_enabled) {
thisBtn.__set__state("Down");
thisBtn.onPress();
}
};
m_target.onRelease = function () {
if (thisBtn.m_enabled) {
thisBtn.__set__state("Over");
thisBtn.onRelease();
}
};
m_target.onRollOver = function () {
if (thisBtn.m_enabled) {
thisBtn.__set__state("Over");
thisBtn.onRollOver();
}
};
m_target.onRollOut = function () {
if (thisBtn.m_enabled) {
thisBtn.__set__state("Up");
thisBtn.onRollOut();
}
};
m_target.onReleaseOutside = function () {
if (thisBtn.m_enabled) {
thisBtn.__set__state("Up");
thisBtn.onReleaseOutside();
}
};
}
function set state(stateName) {
if ((m_state != undefined) && (m_state != stateName)) {
m_target[m_state]._visible = false;
}
m_state = stateName;
m_target[m_state]._visible = true;
//return(state);
}
function set enable(mode) {
m_enabled = mode;
m_target[m_state]._visible = mode;
m_target.Disabled._visible = !mode;
state = ("Up");
//return(__get__enable());
}
function get state() {
return(m_state);
}
var m_enabled = true;
}
Symbol 486 MovieClip [__Packages.cpslabs.ui.CComponent] Frame 0
class cpslabs.ui.CComponent
{
var m_parent, m_mc, m_componentBroadcaster, m_tooltip, m_tooltipParams;
function CComponent (parent, name, depth) {
if (parent) {
m_parent = parent;
if (depth == undefined) {
depth = parent.getNextHighestDepth();
}
m_mc = parent.createEmptyMovieClip(((name != undefined) ? (name) : ("m" + depth)), depth);
m_mc.tabEnabled = false;
}
m_componentBroadcaster = new cpslabs.utils.CMessageBroadcaster();
}
function setMovieClip(mc) {
m_mc = mc;
m_parent = mc._parent;
}
function get parent() {
return(m_parent);
}
function set id(componentId) {
m_id = componentId;
//return(id);
}
function get id() {
return(m_id);
}
function addListener(eventName, l, fn) {
m_componentBroadcaster.addListener(eventName, l, fn);
}
function removeListener(eventName, l, fn) {
return(m_componentBroadcaster.removeListener(eventName, l, fn));
}
function get movieClip() {
return(m_mc);
}
function set visible(v) {
if (movieClip._visible != v) {
movieClip._visible = v;
if (v) {
onShow();
} else {
onHide();
}
}
//return(visible);
}
function get visible() {
return(movieClip._visible);
}
function set enabled(e) {
if (m_enabled != e) {
m_enabled = e;
if (e) {
onEnable();
} else {
onDisable();
}
}
//return(enabled);
}
function get enabled() {
return(m_enabled);
}
function get width() {
return(getWidth());
}
function get height() {
return(getHeight());
}
function set width(w) {
var _local2 = new Object();
_local2.width = w;
_local2.height = height;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
w = _local2.width;
var _local3 = _local2.height;
if ((w != width) || (_local3 != height)) {
resize(w, _local3);
onResize(w, _local3);
broadcastMessage("resize", this, w, _local3);
}
//return(width);
}
function set height(h) {
var _local2 = new Object();
var _local5 = width;
var _local6 = height;
_local2.width = _local5;
_local2.height = h;
onResizing(_local2);
broadcastMessage("resizing", this, _local2);
var _local4 = _local2.width;
h = _local2.height;
if ((_local4 != _local5) || (h != _local6)) {
resize(_local4, h);
onResize(_local4, h);
broadcastMessage("resize", this, _local4, h);
}
//return(height);
}
function get x() {
return(movieClip._x);
}
function get y() {
return(movieClip._y);
}
function set x(x0) {
movieClip._x = x0;
onMove(x0, y);
//return(x);
}
function set y(y0) {
movieClip._y = y0;
onMove(x, y0);
//return(y);
}
function get alpha() {
return(movieClip._alpha);
}
function set alpha(a) {
movieClip._alpha = a;
//return(alpha);
}
function get autoUpdate() {
return(m_autoUpdate);
}
function set autoUpdate(enableAutoUpdate) {
m_autoUpdate = enableAutoUpdate;
if (enableAutoUpdate && (m_needUpdate)) {
update();
m_needUpdate = false;
}
//return(autoUpdate);
}
function remove() {
m_mc.removeMovieClip();
delete m_mc;
}
function getWidth() {
return(movieClip._width);
}
function getHeight() {
return(movieClip._height);
}
function onEnable() {
}
function onDisable() {
}
function onShow() {
}
function onHide() {
}
function onMove(newX, newY) {
}
function broadcastMessage(eventName) {
m_componentBroadcaster.broadcastMessage.apply(m_componentBroadcaster, arguments);
}
function invalidate() {
m_needUpdate = true;
if (m_autoUpdate) {
update();
m_needUpdate = false;
}
}
function update() {
}
function onResizing(newSize) {
}
function resize(w, h) {
var _local2 = movieClip;
_local2._width = w;
_local2._height = h;
}
function onResize(w, h) {
}
function initMouseEvents(mc, listener, handleMouseMove) {
if (!mc) {
mc = movieClip;
}
if (listener == undefined) {
listener = this;
}
var thisPtr = this;
mc.onRollOver = function () {
listener.onRollOver(thisPtr);
};
mc.onRollOut = function () {
listener.onRollOut(thisPtr);
};
mc.onPress = function () {
listener.onPress(thisPtr);
};
mc.onRelease = function () {
listener.onRelease(thisPtr);
};
mc.onReleaseOutside = function () {
listener.onReleaseOutside(thisPtr);
};
mc.onDragOver = function () {
listener.onDragOver(thisPtr);
};
mc.onDragOut = function () {
listener.onDragOut(thisPtr);
};
if (handleMouseMove) {
mc.onMouseMove = function () {
listener.onMouseMove(thisPtr);
};
}
}
function removeMouseEvents(mc) {
if (!mc) {
mc = movieClip;
}
delete mc.onRelease;
delete mc.onReleaseOutside;
delete mc.onPress;
delete mc.onRollOver;
delete mc.onRollOut;
delete mc.onDragOver;
delete mc.onDragOut;
delete mc.onMouseMove;
}
function init() {
}
function addTooltip(tooltip, tooltipParams) {
tooltipParams = (tooltipParams ? (tooltipParams) : (new Object()));
m_tooltip = tooltip;
m_tooltipParams = tooltipParams;
var rollOverHandler = movieClip.onRollOver;
var rollOutHandler = movieClip.onRollOut;
var pressHandler = movieClip.onPress;
var _local3 = this;
movieClip.onRollOver = function () {
for (var _local1 in tooltipParams) {
tooltip[_local1] = tooltipParams[_local1];
}
tooltip.show();
if (rollOverHandler) {
rollOverHandler();
}
};
movieClip.onRollOut = function () {
tooltip.hide();
if (rollOutHandler) {
rollOutHandler();
}
};
movieClip.onPress = function () {
tooltip.hide();
if (pressHandler) {
pressHandler();
}
};
}
function get tooltip() {
return(m_tooltip);
}
function get tooltipParams() {
return(m_tooltipParams);
}
var m_enabled = true;
var m_id = "";
var m_needUpdate = false;
var m_autoUpdate = true;
}
Symbol 487 MovieClip [__Packages.cpslabs.utils.CMessageBroadcaster] Frame 0
class cpslabs.utils.CMessageBroadcaster
{
var m_events, m_id;
function CMessageBroadcaster () {
m_events = new Object();
}
function get id() {
return(m_id);
}
function set id(objectId) {
m_id = objectId;
//return(id);
}
function addListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
_local2 = new Array();
m_events[eventName] = _local2;
}
var _local3 = new Object();
_local3.handler = handler;
_local3.listener = listener;
_local2.push(_local3);
}
function removeListener(eventName, listener, handler) {
var _local2 = m_events[eventName];
if (!_local2) {
return(false);
}
if (listener == undefined) {
delete m_events[eventName];
return(true);
}
if (handler == undefined) {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if (_local4.listener == listener) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
} else {
var _local3 = _local2.length - 1;
while (_local3 >= 0) {
var _local4 = _local2[_local3];
if ((_local4.listener == listener) && (_local4.handler == handler)) {
_local2.splice(_local3, 1);
return(true);
}
_local3--;
}
}
return(false);
}
function broadcastMessage(eventName) {
var _local5 = m_events[eventName];
if (_local5 && (_local5.length > 0)) {
var _local6 = _local5.length;
arguments.shift();
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = _local5[_local3];
_local4.handler.apply(_local4.listener, arguments);
_local3++;
}
}
}
}
Symbol 488 MovieClip [__Packages.cpslabs.ITooltip] Frame 0
interface cpslabs.ITooltip
{
}
Symbol 489 MovieClip [__Packages.com.flashspring.online.CMustCompleteQuizWindow] Frame 0
class com.flashspring.online.CMustCompleteQuizWindow extends cpslabs.ui.CComponent
{
var m_substrate, m_windowMc, __get__visible, __set__visible, m_btnOk, m_label, m_mc, __get__movieClip;
function CMustCompleteQuizWindow (target, name, depth) {
super(target, name, depth);
createSubstrate();
createWindow();
updateLayout();
close();
}
function updateLayout() {
m_substrate._width = Stage.width;
m_substrate._height = Stage.height;
m_windowMc._x = (Stage.width / 2) - (m_windowMc._width / 2);
m_windowMc._y = (Stage.height / 2) - (m_windowMc._height / 2);
}
function open() {
if (!__get__visible()) {
__set__visible(true);
}
}
function close() {
if (__get__visible()) {
__set__visible(false);
}
}
function createBtnOk(target) {
m_btnOk = new com.flashspring.skins.ui.CSkinnableButton(target);
m_btnOk.initButtonStates("emptyButtonUp.swf", "emptyButtonOver.swf", "emptyButtonDown.swf", "emptyButtonDisabled.swf");
m_btnOk.__set__label("OK");
m_btnOk.__set__fontFamily("Arial");
m_btnOk.__set__fontSize(12);
m_btnOk.__set__embedFonts(true);
m_btnOk.__set__textColor(0);
m_btnOk.__set__width(BTN_OK_WIDTH);
m_btnOk.__set__height(BTN_OK_HEIGHT);
m_btnOk.__set__x((m_windowMc._width / 2) - (m_btnOk.__get__width() / 2));
m_btnOk.__set__y(BTN_OK_POS_Y);
m_btnOk.addListener("release", this, onBtnOkRelease);
}
function createLabel(target) {
m_label = new cpslabs.ui.CLabel(target, "lblmustcompletequiz", target.getNextHighestDepth());
m_label.__set__multiline(true);
m_label.__set__width(144);
m_label.__set__fontFamily("Arial");
m_label.__set__embedFonts(true);
m_label.__set__color(0);
m_label.__set__fontSize(14);
m_label.__set__x(82);
m_label.__set__y(24);
m_label.__set__text("You must complete the quiz\nbefore leaving this slide.");
}
function onBtnOkRelease() {
close();
}
function createSubstrate() {
m_substrate = m_mc.createEmptyMovieClip("substrate", m_mc.getNextHighestDepth());
m_substrate.beginFill(131586, 50);
m_substrate.moveTo(0, 0);
m_substrate.lineTo(1, 0);
m_substrate.lineTo(1, 1);
m_substrate.lineTo(0, 1);
m_substrate.lineTo(0, 0);
m_substrate.endFill();
m_substrate.onRelease = function () {
};
m_substrate.useHandCursor = false;
}
function createWindow() {
m_windowMc = __get__movieClip().createEmptyMovieClip("mustcompletequizwindowmc", __get__movieClip().getNextHighestDepth());
m_windowMc.attachMovie("quiz_warning_window.swf", "mustcompletequizwindowmcbg", m_windowMc.getNextHighestDepth());
createLabel(m_windowMc);
createBtnOk(m_windowMc);
}
var BTN_OK_WIDTH = 65;
var BTN_OK_HEIGHT = 19;
var BTN_OK_POS_Y = 77;
}
Symbol 490 MovieClip [__Packages.cpslabs.ui.CBasicButton] Frame 0
class cpslabs.ui.CBasicButton extends cpslabs.ui.CComponent
{
var m_statesMC, __get__movieClip, m_states, initMouseEvents, m_hitArea, invalidate, m_visibleStateIndex, __get__enabled, broadcastMessage, removeMouseEvents;
function CBasicButton (parent, name, depth) {
super(parent, name, depth);
m_statesMC = new cpslabs.ui.CMovieClip(__get__movieClip());
m_states = new Array();
initMouseEvents();
}
function initButtonStates(falseUp, falseOver, falseDown, falseDisabled, trueUp, trueOver, trueDown, trueDisabled) {
var _local6 = m_statesMC.__get__movieClip();
var _local5 = 0;
while (_local5 < arguments.length) {
var _local3;
var _local4 = arguments[_local5];
if ((_local4 != undefined) && (_local4 != "")) {
_local3 = new cpslabs.ui.CMovieClip(_local6);
_local3.attachMovie(_local4);
_local3.__set__visible(false);
}
m_states.push(_local3);
_local5++;
}
m_hitArea = new cpslabs.ui.CMovieClip(_local6);
m_hitArea.attachMovie(arguments[0]);
m_hitArea.__get__movieClip()._alpha = 0;
setState(STATE_NORMAL);
}
function init(buttonStates) {
initButtonStates(buttonStates.normal, buttonStates.over, buttonStates.down, buttonStates.disabled, buttonStates.selectedNormal, buttonStates.selectedOver, buttonStates.selectedDown, buttonStates.selectedDisabled);
}
function addMouseEventListener(mc, listener, handleMouseMove) {
initMouseEvents(mc, listener, handleMouseMove);
}
function get toggle() {
return(m_toggle);
}
function set toggle(t) {
m_toggle = t;
//return(toggle);
}
function get selected() {
return(m_selected);
}
function set selected(s) {
if (s != m_selected) {
m_selected = s;
}
invalidate();
//return(selected);
}
function setVisibleState(stateIndex) {
var _local3 = m_states[stateIndex];
if (!_local3) {
switch (stateIndex) {
case STATE_NORMAL :
return(undefined);
case STATE_OVER :
setVisibleState(STATE_NORMAL);
return(undefined);
case STATE_DOWN :
setVisibleState(STATE_OVER);
return(undefined);
case STATE_DISABLED :
setVisibleState(STATE_NORMAL);
return(undefined);
case STATE_NORMAL_CHECKED :
setVisibleState(STATE_NORMAL);
return(undefined);
case STATE_OVER_CHECKED :
setVisibleState((m_states[STATE_NORMAL_CHECKED] ? (STATE_NORMAL_CHECKED) : (STATE_OVER)));
return(undefined);
case STATE_DOWN_CHECKED :
setVisibleState((m_states[STATE_OVER_CHECKED] ? (STATE_OVER_CHECKED) : (STATE_DOWN)));
return(undefined);
case STATE_DISABLED_CHECKED :
setVisibleState(STATE_DISABLED);
return(undefined);
}
}
if (m_visibleStateIndex != stateIndex) {
m_states[m_visibleStateIndex].visible = false;
m_states[stateIndex].visible = true;
m_visibleStateIndex = stateIndex;
}
}
function setState(stateIndex) {
setVisibleState((__get__enabled() ? (stateIndex) : (STATE_DISABLED)) + (selected ? (STATE_NORMAL_CHECKED) : 0));
}
function update() {
setState((m_mouseIsOver ? ((m_mouseIsPressed ? (STATE_DOWN) : (STATE_OVER))) : (STATE_NORMAL)));
}
function onPress() {
if (__get__enabled()) {
m_mouseIsPressed = true;
update();
broadcastMessage("press", this);
}
}
function onRelease() {
if (__get__enabled() && (m_mouseIsPressed)) {
m_mouseIsPressed = false;
if (m_toggle) {
m_selected = !m_selected;
}
invalidate();
broadcastMessage("release", this);
if (m_toggle) {
broadcastMessage("toggle", this);
}
}
}
function onRollOver() {
m_mouseIsOver = true;
update();
broadcastMessage("rollOver", this);
}
function onRollOut() {
m_mouseIsOver = false;
invalidate();
broadcastMessage("rollOut", this);
}
function onDragOver() {
m_mouseIsOver = true;
invalidate();
broadcastMessage("dragOver", this);
}
function onDragOut() {
m_mouseIsOver = false;
invalidate();
broadcastMessage("dragOut", this);
}
function isPressedButtonState() {
return(m_mouseIsPressed && (m_mouseIsOver));
}
function onDisable() {
m_mouseIsPressed = false;
m_mouseIsOver = false;
invalidate();
removeMouseEvents();
}
function onEnable() {
invalidate();
initMouseEvents();
}
function onReleaseOutside() {
if (__get__enabled()) {
m_mouseIsOver = (m_mouseIsPressed = false);
invalidate();
broadcastMessage("releaseOutside", this);
}
setState(STATE_NORMAL);
}
function resize(w, h) {
if (w != m_hitArea.__get__width()) {
var _local2 = 0;
while (_local2 < m_states.length) {
m_states[_local2].width = w;
_local2++;
}
}
if (h != m_hitArea.__get__height()) {
var _local2 = 0;
while (_local2 < m_states.length) {
m_states[_local2].height = h;
_local2++;
}
}
m_hitArea.__set__width(w);
m_hitArea.__set__height(h);
}
function getWidth() {
return(m_hitArea.__get__width());
}
function getHeight() {
return(m_hitArea.__get__height());
}
function getStates() {
return(m_states);
}
static var STATE_NORMAL = 0;
static var STATE_OVER = 1;
static var STATE_DOWN = 2;
static var STATE_DISABLED = 3;
static var STATE_NORMAL_CHECKED = 4;
static var STATE_OVER_CHECKED = 5;
static var STATE_DOWN_CHECKED = 6;
static var STATE_DISABLED_CHECKED = 7;
var m_mouseIsPressed = false;
var m_mouseIsOver = false;
var m_toggle = false;
var m_selected = false;
}
Symbol 491 MovieClip [__Packages.cpslabs.ui.CMovieClip] Frame 0
class cpslabs.ui.CMovieClip extends cpslabs.ui.CComponent
{
var m_source, m_content, invalidate, __get__movieClip;
function CMovieClip (parent, name, depth) {
super(parent, name, depth);
}
function set source(src) {
if (m_source != src) {
if (m_content) {
m_content.removeMovieClip();
delete m_content;
}
m_source = src;
attachMovie(src);
invalidate();
}
//return(source);
}
function get source() {
return(m_source);
}
function get content() {
return(m_content);
}
function createEmptyMovieClip(name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().createEmptyMovieClip(((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function attachMovie(assetName, name, depth) {
var _local3 = ((depth != undefined) ? (depth) : (__get__movieClip().getNextHighestDepth()));
var _local2 = __get__movieClip().attachMovie(assetName, ((name != undefined) ? (name) : ("m" + _local3)), ((depth != undefined) ? (depth) : (_local3)));
_local2.tabEnabled = false;
if (m_content == undefined) {
m_content = _local2;
}
return(_local2);
}
function resize(w, h) {
var _local2 = __get__movieClip();
if (m_content) {
_local2 = m_content;
}
_local2._width = w;
_local2._height = h;
}
function getWidth() {
return((m_content ? (m_content._width) : (__get__movieClip()._width)));
}
function getHeight() {
return((m_content ? (m_content._height) : (__get__movieClip()._height)));
}
}
Symbol 492 MovieClip [__Packages.cpslabs.ui.CButton] Frame 0
class cpslabs.ui.CButton extends cpslabs.ui.CBasicButton
{
var m_buttonSkinLayer, __get__movieClip, m_icon, m_label, invalidate, m_iconMovie, isPressedButtonState, m_pressedSelectedOffsetX, __get__selected, m_pressedSelectedOffsetY, __get__width, __get__height, resize, width, height;
function CButton (parent, name, depth) {
super(parent, name, depth);
m_buttonSkinLayer = new cpslabs.ui.CMovieClip(__get__movieClip());
m_icon = new cpslabs.ui.CMovieClip(m_buttonSkinLayer.__get__movieClip());
m_label = new cpslabs.ui.CLabel(m_buttonSkinLayer.__get__movieClip());
}
function get label() {
return(m_label.__get__text());
}
function set label(text) {
if (m_label.__get__text() != text) {
m_label.__set__text(text);
invalidate();
}
//return(label);
}
function get textColor() {
return(m_label.__get__color());
}
function set textColor(color) {
m_label.__set__color(color);
//return(textColor);
}
function get embedFonts() {
return(m_label.__get__embedFonts());
}
function set embedFonts(embed) {
if (m_label.__get__embedFonts() != embed) {
m_label.__set__embedFonts(embed);
}
//return(embedFonts);
}
function get fontFamily() {
return(m_label.__get__fontFamily());
}
function set fontFamily(familyName) {
if (m_label.__get__fontFamily() != familyName) {
m_label.__set__fontFamily(familyName);
}
//return(fontFamily);
}
function get fontSize() {
return(m_label.__get__fontSize());
}
function set fontSize(fntSize) {
if (m_label.__get__fontSize() != fntSize) {
m_label.__set__fontSize(fntSize);
}
//return(fontSize);
}
function get fontBold() {
return(m_label.__get__fontBold());
}
function set fontBold(bold) {
if (m_label.__get__fontBold() != bold) {
m_label.__set__fontBold(bold);
}
//return(fontBold);
}
function get fontItalic() {
return(m_label.__get__fontItalic());
}
function set fontItalic(italic) {
if (m_label.__get__fontItalic() != italic) {
m_label.__set__fontItalic(italic);
}
//return(fontItalic);
}
function get fontUnderline() {
return(m_label.__get__fontUnderline());
}
function set fontUnderline(underline) {
m_label.__set__fontUnderline(underline);
//return(fontUnderline);
}
function get antiAliasType() {
return(m_label.__get__antiAliasType());
}
function set antiAliasType(type) {
m_label.__set__antiAliasType(type);
//return(antiAliasType);
}
function get labelPlacement() {
return(m_labelPlacement);
}
function set labelPlacement(placement) {
if (m_labelPlacement != placement) {
m_labelPlacement = placement;
}
//return(labelPlacement);
}
function get icon() {
return(m_iconName);
}
function set icon(iconName) {
if (m_iconName != iconName) {
m_iconName = iconName;
if (m_iconMovie) {
m_iconMovie.removeMovieClip();
}
if (iconName != "") {
m_iconMovie = m_icon.attachMovie(iconName);
invalidate();
}
}
//return(icon);
}
function get labelIconDistance() {
return(m_labelIconDistance);
}
function set labelIconDistance(distance) {
if (distance != m_labelIconDistance) {
m_labelIconDistance = distance;
invalidate();
}
//return(labelIconDistance);
}
function get leftMargin() {
return(m_leftMargin);
}
function set leftMargin(margin) {
if (m_leftMargin != margin) {
m_leftMargin = margin;
invalidate();
}
//return(leftMargin);
}
function get topMargin() {
return(m_topMargin);
}
function set topMargin(margin) {
if (m_topMargin != margin) {
m_topMargin = margin;
invalidate();
}
//return(topMargin);
}
function get rightMargin() {
return(m_rightMargin);
}
function set rightMargin(margin) {
if (m_rightMargin != margin) {
m_rightMargin = margin;
invalidate();
}
//return(rightMargin);
}
function get bottomMargin() {
return(m_bottomMargin);
}
function set bottomMargin(margin) {
if (m_bottomMargin != margin) {
m_bottomMargin = margin;
invalidate();
}
//return(bottomMargin);
}
function get verticalAlignment() {
return(m_verticalAlignment);
}
function set verticalAlignment(valign) {
if (valign != m_verticalAlignment) {
switch (valign) {
case "center" :
case "top" :
case "bottom" :
m_verticalAlignment = valign;
invalidate();
}
}
//return(verticalAlignment);
}
function get horizontalAlignment() {
return(m_horizontalAlignment);
}
function set horizontalAlignment(halign) {
if (halign != m_horizontalAlignment) {
switch (halign) {
case "center" :
case "left" :
case "right" :
m_horizontalAlignment = halign;
invalidate();
return;
}
}
//return(horizontalAlignment);
}
function get pressedOffsetX() {
return(m_pressedOffsetX);
}
function set pressedOffsetX(offsetX) {
if (m_pressedOffsetX != offsetX) {
m_pressedOffsetX = offsetX;
if (isPressedButtonState()) {
invalidate();
}
}
//return(pressedOffsetX);
}
function get pressedOffsetY() {
return(m_pressedOffsetY);
}
function set pressedOffsetY(offsetY) {
if (m_pressedOffsetY != offsetY) {
m_pressedOffsetY = offsetY;
if (isPressedButtonState()) {
invalidate();
}
}
//return(pressedOffsetY);
}
function get selectedOffsetX() {
return(m_selectedOffsetX);
}
function set selectedOffsetX(offsetX) {
if (m_selectedOffsetX != offsetX) {
m_selectedOffsetX = offsetX;
if (isPressedButtonState()) {
invalidate();
}
}
//return(selectedOffsetX);
}
function get selectedOffsetY() {
return(m_selectedOffsetY);
}
function set selectedOffsetY(offsetY) {
if (m_selectedOffsetY != offsetY) {
m_selectedOffsetY = offsetY;
if (isPressedButtonState()) {
invalidate();
}
}
//return(selectedOffsetY);
}
function get pressedSelectedOffsetX() {
return(m_pressedSelectedOffsetX);
}
function set pressedSelectedOffsetX(offsetX) {
if (m_pressedSelectedOffsetX != offsetX) {
m_pressedSelectedOffsetX = offsetX;
if (isPressedButtonState() && (__get__selected())) {
invalidate();
}
}
//return(pressedSelectedOffsetX);
}
function get pressedSelectedOffsetY() {
return(m_pressedSelectedOffsetY);
}
function set pressedSelectedOffsetY(offsetY) {
if (m_pressedSelectedOffsetY != offsetY) {
m_pressedSelectedOffsetY = offsetY;
if (isPressedButtonState() && (__get__selected())) {
invalidate();
}
}
//return(pressedSelectedOffsetY);
}
function get autoSize() {
return(m_autoSize);
}
function set autoSize(autoSizing) {
if (m_autoSize != autoSizing) {
m_autoSize = autoSizing;
if (autoSizing) {
invalidate();
}
}
//return(autoSize);
}
function update() {
super.update();
if (((!label) == "") && ((!icon) || (icon == ""))) {
return(undefined);
}
var _local9 = m_icon.__get__width();
var _local3 = m_icon.__get__height();
var _local16 = ((m_label.__get__text() != "") ? (m_label.__get__width()) : 0);
var _local8 = ((m_label.__get__text() != "") ? (m_label.__get__height()) : 0);
var _local7 = 0;
var _local6 = 0;
var _local5 = 0;
var _local4 = 0;
var _local15 = Math.max(_local3, _local8);
var _local13 = Math.max(_local9, _local3);
var _local17 = (((m_iconName != "") && (m_label.__get__text() != "")) ? (m_labelIconDistance) : 0);
switch (m_labelPlacement) {
case "left" :
_local5 = _local16 + _local17;
_local4 = (_local15 - _local3) * 0.5;
_local6 = (_local15 - _local8) * 0.5;
break;
case "right" :
_local7 = _local9 + _local17;
_local4 = (_local15 - _local3) * 0.5;
_local6 = (_local15 - _local8) * 0.5;
break;
case "up" :
_local4 = _local8 + _local17;
_local5 = (_local13 - _local9) * 0.5;
_local7 = (_local13 - _local16) * 0.5;
break;
case "down" :
_local6 = _local3 + _local17;
_local5 = (_local13 - _local9) * 0.5;
_local7 = (_local13 - _local16) * 0.5;
break;
}
m_label.__set__x(_local7);
m_label.__set__y(_local6);
m_icon.__set__x(_local5);
m_icon.__set__y(_local4);
var _local25 = Math.max(_local7 + _local16, _local5 + _local9);
var _local23 = Math.min(_local7, _local5);
var _local24 = Math.max(_local6 + _local8, _local4 + _local3);
var _local26 = Math.min(_local6, _local4);
var _local20 = _local25 - _local23;
var _local21 = _local24 - _local26;
var _local10 = __get__width();
var _local14 = __get__height();
if (m_autoSize) {
_local10 = (_local20 + m_leftMargin) + m_rightMargin;
resize(_local10, _local14);
_local10 = width;
_local14 = height;
}
var _local19 = 0;
var _local18 = 0;
if (isPressedButtonState()) {
var _local22 = __get__selected();
_local19 = ((_local22 && (m_pressedSelectedOffsetX != undefined)) ? (m_pressedSelectedOffsetX) : (m_pressedOffsetX));
_local18 = ((_local22 && (m_pressedSelectedOffsetY != undefined)) ? (m_pressedSelectedOffsetY) : (m_pressedOffsetY));
} else if (__get__selected()) {
_local19 = m_selectedOffsetX;
_local18 = m_selectedOffsetY;
}
var _local12 = _local19;
var _local11 = _local18;
switch (m_horizontalAlignment) {
case "center" :
_local12 = _local12 + (((((_local10 - m_leftMargin) - m_rightMargin) - _local20) * 0.5) + m_leftMargin);
break;
case "left" :
_local12 = _local12 + m_leftMargin;
break;
case "right" :
_local12 = _local12 + ((_local10 - m_rightMargin) - _local20);
}
switch (m_verticalAlignment) {
case "center" :
_local11 = _local11 + (((((_local14 - m_topMargin) - m_bottomMargin) - _local21) * 0.5) + m_topMargin);
break;
case "top" :
_local11 = _local11 + m_topMargin;
break;
case "bottom" :
_local11 = _local11 + ((_local14 - m_bottomMargin) - _local21);
}
m_buttonSkinLayer.__set__x(_local12);
m_buttonSkinLayer.__set__y(_local11);
}
function onResize() {
invalidate();
}
function getLabel() {
return(m_label);
}
function getIcon() {
return(m_icon);
}
var m_iconName = "";
var m_labelPlacement = "right";
var m_labelIconDistance = 5;
var m_leftMargin = 0;
var m_topMargin = 0;
var m_rightMargin = 0;
var m_bottomMargin = 0;
var m_verticalAlignment = "center";
var m_horizontalAlignment = "center";
var m_pressedOffsetX = 0;
var m_pressedOffsetY = 0;
var m_selectedOffsetX = 0;
var m_selectedOffsetY = 0;
var m_autoSize = false;
}
Symbol 493 MovieClip [__Packages.cpslabs.ui.CLabel] Frame 0
class cpslabs.ui.CLabel extends cpslabs.ui.CComponent
{
var m_color, m_disabledColor, __get__movieClip, m_field, m_format, __get__enabled, invalidate;
function CLabel (mcParent, name, depth) {
super(mcParent, name, depth);
m_color = 0;
m_disabledColor = 8421504 /* 0x808080 */;
__get__movieClip().createTextField("T", 1, 0, 0, 0, 0);
m_field = __get__movieClip().T;
m_field.embedFonts = false;
m_field.autoSize = "left";
m_field.html = false;
m_field.selectable = false;
m_format = new TextFormat();
m_format.font = "Arial";
m_format.size = 12;
m_format.align = "left";
m_format.target = "_self";
m_format.url = "";
}
function get html() {
return(m_field.html);
}
function set html(useHtml) {
m_field.html = useHtml;
//return(html);
}
function set antiAliasType(aat) {
m_field.antiAliasType = aat;
//return(antiAliasType);
}
function get antiAliasType() {
return(m_field.antiAliasType);
}
function update() {
m_format.color = (__get__enabled() ? (m_color) : (m_disabledColor));
m_field.setTextFormat(m_format);
}
function onEnable() {
invalidate();
}
function onDisable() {
invalidate();
}
function resize(w, h) {
m_field._width = w;
m_field._height = h;
}
function get text() {
return((m_field.html ? (m_field.htmlText) : (m_field.text)));
}
function set text(t) {
if (m_field.html) {
m_field.htmlText = t;
} else {
m_field.text = t;
}
invalidate();
//return(text);
}
function get color() {
return(m_color);
}
function get wordWrap() {
return(m_field.wordWrap);
}
function set wordWrap(wrdWrap) {
m_field.wordWrap = wrdWrap;
//return(wordWrap);
}
function set color(c) {
m_color = c;
invalidate();
//return(color);
}
function get disabledColor() {
return(m_disabledColor);
}
function set disabledColor(c) {
m_disabledColor = c;
invalidate();
//return(disabledColor);
}
function get embedFonts() {
return(m_field.embedFonts);
}
function set embedFonts(e) {
m_field.embedFonts = e;
invalidate();
//return(embedFonts);
}
function get fontFamily() {
return(m_format.font);
}
function set fontFamily(f) {
m_format.font = f;
invalidate();
//return(fontFamily);
}
function get fontSize() {
return(m_format.size);
}
function set fontSize(s) {
m_format.size = s;
invalidate();
//return(fontSize);
}
function get fontBold() {
return(m_format.bold);
}
function set fontBold(b) {
m_format.bold = b;
invalidate();
//return(fontBold);
}
function get fontItalic() {
return(m_format.italic);
}
function set fontItalic(i) {
m_format.italic = i;
invalidate();
//return(fontItalic);
}
function get fontUnderline() {
return(m_format.underline);
}
function set fontUnderline(u) {
m_format.underline = u;
invalidate();
//return(fontUnderline);
}
function get textAlign() {
return(m_format.align);
}
function set textAlign(a) {
m_format.align = a;
invalidate();
//return(textAlign);
}
function get autoSize() {
return(m_field.autoSize);
}
function set autoSize(a) {
m_field.autoSize = a;
invalidate();
//return(autoSize);
}
function get url() {
return(m_format.url);
}
function set url(u) {
m_format.url = u;
invalidate();
//return(url);
}
function get target() {
return(m_format.target);
}
function set target(t) {
m_format.target = t;
invalidate();
//return(target);
}
function get selectable() {
return(m_field.selectable);
}
function set selectable(s) {
m_field.selectable = s;
//return(selectable);
}
function get multiline() {
return(m_field.multiline);
}
function set multiline(m) {
m_field.multiline = m;
//return(multiline);
}
function get textWidth() {
return(m_field.textWidth);
}
function get textHeight() {
return(m_field.textHeight);
}
}
Symbol 494 MovieClip [__Packages.com.flashspring.skins.ui.CSkinnableButton] Frame 0
class com.flashspring.skins.ui.CSkinnableButton extends cpslabs.ui.CButton
{
var m_icon, m_iconStates, m_iconStatesObject, m_visibleStateIndex, m_label, m_hasChangeableText, m_disabledTextColor, m_enabledTextColor, m_selectedText, m_defaultText, __get__fontSize, __get__defaultText, __get__selectedText, __get__enabledTextColor, __get__disabledTextColor;
function CSkinnableButton (parent, name, depth) {
super(parent, name, depth);
}
function initButtonIconStates(falseUp, falseOver, falseDown, falseDisabled, trueUp, trueOver, trueDown, trueDisabled) {
var _local6 = m_icon.__get__movieClip();
m_iconStates = new Array();
var _local4 = 0;
while (_local4 < arguments.length) {
var _local3;
var _local5 = arguments[_local4];
if ((_local5 != undefined) && (_local5 != "")) {
_local3 = new cpslabs.ui.CMovieClip(_local6);
_local3.attachMovie(_local5);
_local3.__set__visible(false);
}
m_iconStates.push(_local3);
_local4++;
}
if (m_iconStates[cpslabs.ui.CBasicButton.STATE_NORMAL]) {
m_iconStates[cpslabs.ui.CBasicButton.STATE_NORMAL].visible = true;
}
update();
m_hasIcons = true;
m_iconStatesObject = {falseUp:m_iconStates[cpslabs.ui.CBasicButton.STATE_NORMAL], falseOver:m_iconStates[cpslabs.ui.CBasicButton.STATE_OVER], falseDown:m_iconStates[cpslabs.ui.CBasicButton.STATE_DOWN], falseDisabled:m_iconStates[cpslabs.ui.CBasicButton.STATE_DISABLED], trueUp:m_iconStates[cpslabs.ui.CBasicButton.STATE_NORMAL_CHECKED], trueOver:m_iconStates[cpslabs.ui.CBasicButton.STATE_OVER_CHECKED], trueDown:m_iconStates[cpslabs.ui.CBasicButton.STATE_DOWN_CHECKED], trueDisabled:m_iconStates[cpslabs.ui.CBasicButton.STATE_DISABLED_CHECKED]};
}
function update() {
var _local3 = m_visibleStateIndex;
super.update();
if (m_hasIcons) {
m_iconStates[_local3].visible = false;
m_iconStates[m_visibleStateIndex].visible = true;
}
if ((m_visibleStateIndex == cpslabs.ui.CBasicButton.STATE_DOWN) || (m_visibleStateIndex == cpslabs.ui.CBasicButton.STATE_DOWN_CHECKED)) {
if (m_fontSizePressed != undefined) {
m_label.__set__fontSize(m_fontSizePressed);
}
} else {
m_label.__set__fontSize(m_fontSizeUp);
}
if (m_hasChangeableText) {
if (m_visibleStateIndex == cpslabs.ui.CBasicButton.STATE_DISABLED) {
m_label.__set__color(m_disabledTextColor);
} else {
m_label.__set__color(m_enabledTextColor);
}
if (m_visibleStateIndex > cpslabs.ui.CBasicButton.STATE_DISABLED) {
m_label.__set__text(m_selectedText);
} else {
m_label.__set__text(m_defaultText);
}
}
super.update();
}
function set fontSize(fntSize) {
super.__get__fontSize()(fntSize);
m_fontSizeUp = fntSize;
update();
//return(__get__fontSize());
}
function get fontSizePressed() {
return(m_fontSizePressed);
}
function set fontSizePressed(fntSize) {
m_fontSizePressed = fntSize;
update();
//return(fontSizePressed);
}
function onRelease() {
m_label.__set__fontSize(m_fontSizeUp);
super.onRelease();
}
function set hasChangeableText(hasText) {
m_hasChangeableText = hasText;
//return(hasChangeableText);
}
function get hasChangeableText() {
return(m_hasChangeableText);
}
function set defaultText(text) {
m_defaultText = text;
update();
//return(__get__defaultText());
}
function set selectedText(text) {
m_selectedText = text;
update();
//return(__get__selectedText());
}
function set enabledTextColor(color) {
m_enabledTextColor = color;
update();
//return(__get__enabledTextColor());
}
function getIconStates() {
return(m_iconStatesObject);
}
function set disabledTextColor(color) {
m_disabledTextColor = color;
update();
//return(__get__disabledTextColor());
}
var m_hasIcons = false;
var m_fontSizeUp = undefined;
var m_fontSizePressed = undefined;
}
Symbol 495 MovieClip [__Packages.quizmaker.api.IQuizApi] Frame 0
interface quizmaker.api.IQuizApi
{
}
Symbol 496 MovieClip [__Packages.quizmaker.api.ISlidesCollection] Frame 0
interface quizmaker.api.ISlidesCollection
{
}
Symbol 497 MovieClip [__Packages.quizmaker.api.ISlide] Frame 0
interface quizmaker.api.ISlide
{
}
Symbol 498 MovieClip [__Packages.quizmaker.api.ISettings] Frame 0
interface quizmaker.api.ISettings
{
}
Symbol 499 MovieClip [__Packages.quizmaker.api.IUserInfo] Frame 0
interface quizmaker.api.IUserInfo
{
}
Symbol 500 MovieClip [__Packages.quizmaker.api.IFontManager] Frame 0
interface quizmaker.api.IFontManager
{
}
Symbol 501 MovieClip [__Packages.quizmaker.api.IMessagesManager] Frame 0
interface quizmaker.api.IMessagesManager
{
}
Symbol 502 MovieClip [__Packages.quizmaker.api.IResultsInfo] Frame 0
interface quizmaker.api.IResultsInfo
{
}
Symbol 503 MovieClip [__Packages.quizmaker.api.IResultScore] Frame 0
interface quizmaker.api.IResultScore
{
}
Symbol 504 MovieClip [__Packages.quizmaker.api.ISkin] Frame 0
interface quizmaker.api.ISkin
{
}
Symbol 505 MovieClip [__Packages.quizmaker.api.IQuestion] Frame 0
interface quizmaker.api.IQuestion extends quizmaker.api.ISlide
{
}
Symbol 506 MovieClip [__Packages.quizmaker.api.IImageAssetLoadListener] Frame 0
interface quizmaker.api.IImageAssetLoadListener
{
}
Symbol 507 MovieClip [__Packages.quizmaker.api.IQuizApiListener] Frame 0
interface quizmaker.api.IQuizApiListener
{
}
Symbol 508 MovieClip [__Packages.main.CMouseLayer] Frame 0
class main.CMouseLayer
{
function CMouseLayer () {
}
static function create(target, playerAPI, listener) {
var _local1 = target.createEmptyMovieClip("mouseLayer", -1);
var _local2 = playerAPI.getPresentationInfo();
var _local4 = _local2.getSlideWidth();
var _local3 = _local2.getSlideHeight();
_local1.beginFill(16711680, 0);
_local1.moveTo(0, 0);
_local1.lineTo(_local4, 0);
_local1.lineTo(_local4, _local3);
_local1.lineTo(0, _local3);
_local1.lineTo(0, 0);
_local1.endFill();
_local1.onRelease = function () {
listener.onRelease();
};
if (!playerAPI.getSettings().webLinks.slideAreaLink.href) {
_local1.useHandCursor = false;
}
return(_local1);
}
}
Symbol 509 MovieClip [__Packages.main.fullscreen.IFullScreen] Frame 0
interface main.fullscreen.IFullScreen
{
}
Symbol 510 MovieClip [__Packages.main.fullscreen.CFullScreen] Frame 0
class main.fullscreen.CFullScreen implements main.fullscreen.IFullScreen
{
function CFullScreen () {
}
function setFullScreen(value) {
}
function stateIsAccessible() {
return(undefined);
}
function setListener(l) {
m_listener = l;
}
function removeListener() {
m_listener = null;
}
function raiseEvent() {
if (m_listener) {
m_listener.onFullScreen(m_currentFullScreen);
}
}
static function get instance() {
if (!s_fullScreen) {
s_fullScreen = (isSupportStageFullScreen() ? (new main.fullscreen.CFullScreenStage()) : (((!isBrowserPlayer()) ? (new main.fullscreen.CFullScreenStandalone()) : (new main.fullscreen.CFullScreenDummy()))));
}
return(s_fullScreen);
}
function getFullScreen() {
return(m_currentFullScreen);
}
static function getFlashPlayerInfo() {
var _local3 = System.capabilities.version.split(" ", 2);
var _local4 = _local3[0];
var _local2 = _local3[1].split(",", 4);
var _local1 = new Object();
_local1.platform = _local3[0];
_local1.majorVersion = parseInt(_local2[0]);
_local1.minorVersion = parseInt(_local2[1]);
_local1.revision = parseInt(_local2[2]);
_local1.build = parseInt(_local2[3]);
return(_local1);
}
static function isSupportStageFullScreen() {
var _local1 = getFlashPlayerInfo();
return(((_local1.majorVersion > 9) || ((_local1.majorVersion == 9) && (_local1.minorVersion > 0))) || (((_local1.majorVersion == 9) && (_local1.minorVersion == 0)) && (_local1.revision >= 28)));
}
static function getPlayerType() {
return(System.capabilities.playerType);
}
static function isBrowserPlayer() {
return((getPlayerType() == PLAYER_TYPE_PLUG_IN) || (getPlayerType() == PLAYER_TYPE_ACTIVE_X));
}
static var PLAYER_TYPE_PLUG_IN = "PlugIn";
static var PLAYER_TYPE_ACTIVE_X = "ActiveX";
static var s_fullScreen = null;
var m_listener = null;
var m_currentFullScreen = false;
}
Symbol 511 MovieClip [__Packages.main.fullscreen.CFullScreenStage] Frame 0
class main.fullscreen.CFullScreenStage extends main.fullscreen.CFullScreen
{
var m_currentFullScreen, raiseEvent;
function CFullScreenStage () {
super();
Stage.addListener(this);
}
function onFullScreen(val) {
m_currentFullScreen = isStageFullScreen();
raiseEvent();
m_raised = true;
}
function setFullScreen(value) {
m_raised = false;
setStageFullScreen(value);
if (!m_raised) {
raiseEvent();
}
}
function stateIsAccessible() {
return(true);
}
function isStageFullScreen() {
return(Stage[STAGE_DISPLAY_STATE] == STAGE_FULL_SCREEN);
}
function setStageFullScreen(value) {
if (m_currentFullScreen != value) {
Stage[STAGE_DISPLAY_STATE] = (value ? (STAGE_FULL_SCREEN) : (STAGE_NORMAL));
m_currentFullScreen = isStageFullScreen();
}
}
static var STAGE_FULL_SCREEN = "fullScreen";
static var STAGE_NORMAL = "normal";
static var STAGE_DISPLAY_STATE = "displayState";
var m_raised = false;
}
Symbol 512 MovieClip [__Packages.main.fullscreen.CFullScreenStandalone] Frame 0
class main.fullscreen.CFullScreenStandalone extends main.fullscreen.CFullScreen
{
var raiseEvent, m_currentFullScreen;
function CFullScreenStandalone () {
super();
}
function setFullScreen(value) {
setFscommandFullScreen(value);
raiseEvent();
}
function setFscommandFullScreen(value) {
if (m_currentFullScreen != value) {
fscommand (FSCOMMAND_FULL_SCREEN, boolToString(value));
m_currentFullScreen = value;
}
}
function boolToString(b) {
return((b ? "true" : "false"));
}
function stateIsAccessible() {
return(false);
}
static var FSCOMMAND_FULL_SCREEN = "fullscreen";
}
Symbol 513 MovieClip [__Packages.main.fullscreen.CFullScreenDummy] Frame 0
class main.fullscreen.CFullScreenDummy extends main.fullscreen.CFullScreen
{
var raiseEvent;
function CFullScreenDummy () {
super();
}
function setFullScreen(value) {
raiseEvent();
}
function stateIsAccessible() {
return(false);
}
}
Symbol 514 MovieClip [__Packages.quizmaker.api.CQuizStatus] Frame 0
class quizmaker.api.CQuizStatus
{
function CQuizStatus () {
}
static var INIT = 0;
static var TEST = 1;
static var STOP = 2;
static var REVIEW = 3;
static var INIT_USER = 4;
}
Symbol 515 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackControllerEx] Frame 0
interface fsplayer.api.IPresentationPlaybackControllerEx extends fsplayer.api.IPresentationPlaybackController
{
}
Symbol 516 MovieClip [__Packages.com.flashspring.online.thumbnails.CSkin] Frame 0
class com.flashspring.online.thumbnails.CSkin extends com.flashspring.online.CSkin
{
var m_activeArea, getSkinTarget, m_panelListener, m_thumbnailsPanel, m_rootMovie, m_presentation, m_volumeControlPanelMovie, m_autoSize, m_autoSizeWidth, m_autoSizeHeight, m_panel, m_autoSizeScaleX, getTarget, m_autoSizeScaleY, m_rollCount, m_volumeControl, m_timeLine, m_mouseLayer, m_playButton, m_pauseButton, m_nextSlideButton, m_previousSlideButton, m_noSoundButton, m_fullScreenButton, m_normalScreenButton, m_logo, m_soundButton, m_loadedSlidesCount, m_thumbnailsButton;
function CSkin (target, type) {
super(target, type);
}
function initialize(playerAPI) {
super.initialize(playerAPI);
m_activeArea = getSkinTarget().attachMovie("mask", "activeArea", -1);
m_activeArea._alpha = 0;
m_panelListener = new Object();
m_thumbnailsPanel = new com.flashspring.online.controls.CThumbnailsPanel(m_rootMovie, "thumbnailsPanel", m_presentation, m_presentation.getThumbnails());
m_thumbnailsPanel.addListener(m_panelListener);
m_thumbnailsPanel.setHeight(200);
m_thumbnailsPanel.__set__visible(false);
with (this) {
m_panelListener.onThumbnailChange = function (index) {
if (m_slides.getSlideInfo(index).getVisibleIndex() != m_slideIndex) {
if (getPermissionToLeaveSlide()) {
gotoSlide(m_slides.getSlideInfo(index).getVisibleIndex());
}
}
};
}
m_volumeControlPanelMovie.getTarget().swapDepths(m_thumbnailsPanel.getTarget());
initEvents();
onResize();
}
function onResize() {
super.onResize();
var _local5;
var _local3;
if (m_autoSize) {
_local5 = Stage.width;
_local3 = Stage.height;
} else {
_local5 = m_autoSizeWidth;
_local3 = m_autoSizeHeight;
}
m_activeArea._width = _local5;
m_activeArea._height = _local3;
var _local6 = m_rootMovie.getTarget()._xscale;
var _local7 = (m_panel.getHeight() * _local6) / 100;
var _local4 = Math.min(_local5 / m_presentation.getSlideWidth(), (_local3 - _local7) / m_presentation.getSlideHeight()) * 100;
getTarget()._xscale = _local4 * (m_autoSizeScaleX / 100);
getTarget()._yscale = _local4 * (m_autoSizeScaleY / 100);
getTarget()._x = (_local5 - ((m_presentation.getSlideWidth() * _local4) / 100)) / 2;
getTarget()._y = ((_local3 - ((m_presentation.getSlideHeight() * _local4) / 100)) - _local7) / 2;
m_thumbnailsPanel.setLeft((getTarget()._x / _local6) * 100);
m_thumbnailsPanel.setScale(getTarget()._xscale);
m_thumbnailsPanel.setWidth((m_presentation.getSlideWidth() * getTarget()._xscale) / _local6);
m_thumbnailsPanel.setTop((-m_thumbnailsPanel.getThumbnailsHeight()) / 2);
}
function initEvents() {
function onRollOver() {
thisSkin.m_rollCount++;
}
function onRollOut() {
thisSkin.m_rollCount--;
}
super.initEvents();
var thisSkin = this;
m_rollCount = 0;
m_panel.getTarget().useHandCursor = false;
m_activeArea.useHandCursor = false;
m_activeArea.onRollOver = onRollOver;
m_volumeControl.onRollOver = onRollOver;
m_timeLine.onRollOver = onRollOver;
m_mouseLayer.onRollOver = onRollOver;
m_panel.getTarget().onRollOver = onRollOver;
m_playButton.onRollOver = onRollOver;
m_pauseButton.onRollOver = onRollOver;
m_nextSlideButton.onRollOver = onRollOver;
m_previousSlideButton.onRollOver = onRollOver;
m_noSoundButton.onRollOver = onRollOver;
m_fullScreenButton.onRollOver = onRollOver;
m_normalScreenButton.onRollOver = onRollOver;
m_logo.onRollOver = onRollOver;
m_activeArea.onRollOut = onRollOut;
m_volumeControl.onRollOut = onRollOut;
m_timeLine.onRollOut = onRollOut;
m_mouseLayer.onRollOut = onRollOut;
m_panel.getTarget().onRollOut = onRollOut;
m_playButton.onRollOut = onRollOut;
m_pauseButton.onRollOut = onRollOut;
m_nextSlideButton.onRollOut = onRollOut;
m_previousSlideButton.onRollOut = onRollOut;
m_noSoundButton.onRollOut = onRollOut;
m_fullScreenButton.onRollOut = onRollOut;
m_normalScreenButton.onRollOut = onRollOut;
m_logo.onRollOut = onRollOut;
m_activeArea.onReleaseOutside = onRollOut;
m_volumeControl.onReleaseOutside = onRollOut;
m_timeLine.onReleaseOutside = onRollOut;
m_mouseLayer.onReleaseOutside = onRollOut;
m_panel.getTarget().onReleaseOutside = onRollOut;
m_playButton.onReleaseOutside = onRollOut;
m_pauseButton.onReleaseOutside = onRollOut;
m_nextSlideButton.onReleaseOutside = onRollOut;
m_previousSlideButton.onReleaseOutside = onRollOut;
m_noSoundButton.onReleaseOutside = onRollOut;
m_fullScreenButton.onReleaseOutside = onRollOut;
m_normalScreenButton.onReleaseOutside = onRollOut;
m_logo.onReleaseOutside = onRollOut;
m_soundButton.onRollOver = function () {
thisSkin.m_volumeControl.showVolumePanel(true);
};
m_soundButton.onRollOut = function () {
if (!((((this.getTarget()._ymouse > -4) && (this.getTarget()._ymouse < 0)) && (this.getTarget()._xmouse > 0)) && (this.getTarget()._xmouse < this.getTarget()._width))) {
thisSkin.m_volumeControl.showVolumePanel(false);
}
};
with (this) {
var date;
var t1;
var t2;
getSkinTarget().onEnterFrame = function () {
};
}
}
function onCurrentSlideIndexChanged(index) {
super.onCurrentSlideIndexChanged(index);
m_thumbnailsPanel.setCurrentIndex(index);
onResize();
}
function onSlideLoadingComplete(index) {
super.onSlideLoadingComplete(index);
if (m_lastLoadingSlide != (m_loadedSlidesCount - 1)) {
var _local3 = m_lastLoadingSlide + 1;
while (_local3 <= (m_loadedSlidesCount - 1)) {
m_thumbnailsPanel.showThumbnail(_local3);
_local3++;
}
m_lastLoadingSlide = m_loadedSlidesCount - 1;
}
}
function onControlPanelCreationComplete() {
m_thumbnailsButton = new com.flashspring.online.controls.CButton(m_volumeControlPanelMovie, "thumbnailsButton", "thumb");
m_thumbnailsButton.setCoordinate(m_soundButton.getWidth() + com.flashspring.online.CSkin.BUTTONS_DISTANCE, (m_panel.getHeight() - m_thumbnailsButton.getHeight()) / 2);
var thisPtr = this;
m_thumbnailsButton.onRelease = function () {
thisPtr.m_thumbnailsPanel.__set__visible(!thisPtr.m_thumbnailsPanel.__get__visible());
};
}
function getFullScreenButtonX() {
return((m_thumbnailsButton.getLeft() + m_thumbnailsButton.getWidth()) + com.flashspring.online.CSkin.BUTTONS_DISTANCE);
}
var DELAY = 1000;
static var TITLE_ALPHA_STEP = 5;
var m_lastLoadingSlide = -1;
}
Symbol 517 MovieClip [__Packages.com.flashspring.online.controls.CThumbnailsPanel] Frame 0
class com.flashspring.online.controls.CThumbnailsPanel extends com.flashspring.online.controls.CControlImpl
{
var m_presInfo, m_thumbCollection, m_thumbCount, m_thumbMovie, m_target, m_activeArea, m_thumb, m_thumbMask, m_rightArrow, m_leftArrow, m_ta, m_thumbWidth, m_lastActiveArrow, m_scale, m_speed, m_listener, m_topThumbDepth;
function CThumbnailsPanel (parent, name, presentationInfo, thumbCollection) {
super(parent, name);
m_presInfo = presentationInfo;
m_thumbCollection = thumbCollection;
m_thumbCount = m_thumbCollection.getThumbnailsCount();
m_thumbMovie = m_target.createEmptyMovieClip("thumbMovie", m_target.getNextHighestDepth());
m_activeArea = m_thumbMovie.attachMovie("mask", "activeArea", m_thumbMovie.getNextHighestDepth());
m_thumb = new com.flashspring.online.controls.CMovieClipControl(m_thumbMovie, "thumbnails");
m_thumbMask = m_target.attachMovie("mask", "thumbMask", m_target.getNextHighestDepth());
m_target.setMask(m_thumbMask);
createThumbnails();
setCurrentIndex(0);
m_activeArea.useHandCursor = false;
m_activeArea._alpha = 0;
m_rightArrow = new com.flashspring.online.controls.CArrow(this, "rightArrow", "rightArrow");
m_rightArrow.setWidth(ARROW_AREA_WIDTH);
m_leftArrow = new com.flashspring.online.controls.CArrow(this, "leftArrow", "leftArrow");
m_leftArrow.setWidth(ARROW_AREA_WIDTH);
init();
}
function init() {
with (this) {
var target = m_thumb.getTarget();
m_arrowsListener = new Object();
m_rightArrow.addListener(m_arrowsListener);
m_leftArrow.addListener(m_arrowsListener);
var currentArrow = null;
m_scrolling = false;
m_speed = 0;
visible = false;
m_activeArea.onRollOver = function () {
m_active = true;
};
m_activeArea.onRollOut = function () {
m_active = false;
m_listener.onRollOut(m_currentIndex);
};
m_arrowsListener.onRollOver = function (arrow) {
m_active = true;
currentArrow = arrow;
};
m_arrowsListener.onRollOut = function (arrow) {
m_active = false;
m_listener.onRollOut(m_currentIndex);
currentArrow = null;
m_ta[m_focus].getTarget().onRollOut();
};
m_arrowsListener.onRelease = function () {
var _local1 = target._xmouse;
m_ta[m_focus].getTarget().onRollOut();
m_focus = Math.floor((_local1 / m_thumbWidth) * m_thumbCount);
m_ta[m_focus].getTarget().onRelease();
};
m_target.onEnterFrame = function () {
calculateSpeed(currentArrow);
if (((m_thumbWidth * m_scale) / 100) <= m_thumbMask._width) {
target._x = (m_thumbMask._width - ((m_thumbWidth * m_scale) / 100)) / 2;
m_rightArrow.__set__visible(false);
m_leftArrow.__set__visible(false);
} else if (((((target._x + m_thumbWidth) + m_speed) * m_scale) / 100) <= m_thumbMask._width) {
target._x = Math.floor(((m_thumbMask._width * 100) / m_scale) - m_thumbWidth);
m_rightArrow.__set__visible(false);
} else if (0 <= (target._x + m_speed)) {
target._x = 0;
m_leftArrow.__set__visible(false);
} else {
m_rightArrow.__set__visible(true);
m_leftArrow.__set__visible(true);
target._x = target._x + m_speed;
}
};
}
}
function calculateSpeedByXCoord(currentArrow, dx) {
var _local2 = 0;
if (currentArrow == m_leftArrow) {
_local2 = Math.min(dx, currentArrow.getWidth());
} else if (currentArrow == m_rightArrow) {
_local2 = Math.min(dx - currentArrow.getWidth(), -currentArrow.getWidth());
}
return(_local2);
}
function calculateSpeed(currentArrow) {
var _local3 = m_thumb.getTarget();
var _local2 = 0;
if (currentArrow != null) {
var _local8 = _local3._xmouse;
m_ta[m_focus].getTarget().onRollOut();
m_focus = Math.floor((_local8 / m_thumbWidth) * m_thumbCount);
m_ta[m_focus].getTarget().onRollOver();
m_lastActiveArrow = currentArrow;
var _local7 = currentArrow.getDx();
_local2 = calculateSpeedByXCoord(currentArrow, _local7);
} else {
var _local4 = m_target._ymouse;
var _local5 = (m_activeArea._height * m_scale) / 200;
if ((_local4 > _local5) || (_local4 < (-_local5))) {
if ((!m_active) && (m_scrolling)) {
var _local8 = ((m_thumbMask._width * 50) / m_scale) - m_ta[m_currentIndex].getLeft();
_local2 = (_local8 - _local3._x) / 5;
} else {
m_scrolling = false;
_local2 = 0;
}
m_lastActiveArrow = null;
} else if ((!m_active) && (m_lastActiveArrow)) {
var _local7 = ((m_lastActiveArrow != m_leftArrow) ? 0 : (m_rightArrow.getWidth()));
_local2 = calculateSpeedByXCoord(m_lastActiveArrow, _local7);
} else {
m_scrolling = false;
_local2 = 0;
}
m_speed = _local2;
}
if (m_speed == undefined) {
m_speed = 0;
}
if (m_speed <= (_local2 - D_SPEED)) {
m_speed = m_speed + D_SPEED;
} else if (m_speed >= (_local2 + D_SPEED)) {
m_speed = m_speed - D_SPEED;
}
}
function setCurrentIndex(index) {
m_scrolling = true;
if ((!m_active) || (m_currentIndex != m_focus)) {
m_ta[m_currentIndex].setScale(100);
m_ta[m_currentIndex].setAlpha(NORMAL_ALPHA);
}
m_ta[m_currentIndex].state = "normal";
m_currentIndex = index;
m_ta[m_currentIndex].setScale(CURRENT_THUMB_SCALE);
m_ta[m_currentIndex].alpha = 100;
m_ta[m_currentIndex].state = "current";
m_listener.onThumbnailChange(index);
}
function getCurrentIndex() {
return(m_currentIndex);
}
function addListener(listener) {
m_listener = listener;
}
function createThumbnails() {
m_ta = new Array(m_thumbCount);
var _local5 = 0;
var _local2 = 0;
while (_local2 < m_thumbCount) {
var _local4 = m_presInfo.getSlides().getSlideInfo(_local2);
if (!_local4.isHidden()) {
m_ta[_local2] = new com.flashspring.online.controls.CThumbnail(m_thumb, "thumb" + _local2, m_thumbCollection, _local2, _local4.getVisibleIndex());
m_ta[_local2].addListener(this);
m_ta[_local2].alpha = 0;
m_ta[_local2].visible = true;
var _local3 = m_ta[_local2].getWidth();
_local5 = _local5 + (DISTANCE + (_local3 / 2));
m_ta[_local2].setLeft(_local5);
_local5 = _local5 + (_local3 / 2);
}
_local2++;
}
m_topThumbDepth = m_thumb.getTarget().getNextHighestDepth();
m_thumbWidth = DISTANCE + ((_local3 + DISTANCE) * m_presInfo.getSlides().getVisibleSlidesCount());
}
function onRelease(index) {
setCurrentIndex(index);
}
function onReleaseOutside(index) {
if (index != m_currentIndex) {
m_ta[index].setScale(100);
m_ta[index].setAlpha(NORMAL_ALPHA);
}
}
function onRollOver(index) {
m_focus = index;
m_active = true;
if (index != m_currentIndex) {
m_ta[index].alpha = 100;
m_ta[index].setScale(SCALE);
}
m_listener.onFocusChange(index);
setTopDepth(index);
}
function onRollOut(index) {
m_active = false;
if (index != m_currentIndex) {
m_ta[index].setScale(100);
m_ta[index].setAlpha(NORMAL_ALPHA);
}
m_listener.onFocusChange(index);
}
function setHeight(h) {
m_thumbMask._height = h;
m_thumbMask._y = (-m_thumbMask._height) / 2;
}
function getHeight() {
return(m_thumbMask._height);
}
function setWidth(w) {
m_thumbMask._width = w;
m_activeArea._width = (w * 100) / m_scale;
m_rightArrow.setLeft(w - m_rightArrow.getWidth());
}
function getWidth() {
return(m_thumbMask._width);
}
function setScale(scale) {
m_scale = ((scale < 100) ? (((scale < 50) ? 50 : (scale))) : 100);
m_thumbMovie._xscale = m_scale;
m_thumbMovie._yscale = m_scale;
m_rightArrow.setHeight(getThumbnailsHeight());
m_leftArrow.setHeight(m_rightArrow.getHeight());
m_activeArea._height = (getThumbnailsHeight() * 100) / m_scale;
m_activeArea._y = (-m_activeArea._height) / 2;
}
function showThumbnail(index) {
m_ta[index].visible = true;
if (index != m_currentIndex) {
m_ta[index].setAlpha(NORMAL_ALPHA);
} else {
m_ta[index].setAlpha(100);
}
}
function getThumbnailsHeight() {
return(((m_thumbCollection.getThumbnailHeight() + (DISTANCE * 2)) * m_scale) / 100);
}
function isActive() {
return(m_active);
}
function setSpeed(s) {
m_speed = s;
}
function setTopDepth(index) {
var _local2 = 0;
if (m_topThumbIndex != undefined) {
_local2 = m_ta[m_topThumbIndex].getTarget().getDepth();
m_ta[m_topThumbIndex].getTarget().swapDepths(m_topThumbDepth);
} else {
_local2 = m_topThumbDepth;
}
m_topThumbIndex = index;
m_topThumbDepth = m_ta[index].getTarget().getDepth();
m_ta[index].getTarget().swapDepths(_local2);
}
var SCALE = 125;
var DISTANCE = 20;
var CURRENT_THUMB_SCALE = 120;
var NORMAL_ALPHA = 40;
var D_ALPHA = 5;
var D_SPEED = 5;
var ARROW_AREA_WIDTH = 50;
var m_active = false;
var m_scrolling = true;
var m_focus = 0;
var m_currentIndex = 0;
var m_topThumbIndex = undefined;
}
Symbol 518 MovieClip [__Packages.com.flashspring.online.controls.CArrow] Frame 0
class com.flashspring.online.controls.CArrow extends com.flashspring.online.controls.CControlImpl
{
var m_activeArea, m_target, m_over, m_out, m_state, __get__state, m_listener;
function CArrow (parent, name, assetName) {
super(parent, name);
m_activeArea = m_target.attachMovie("mask", "activeArea", m_target.getNextHighestDepth());
m_activeArea._alpha = 0;
m_over = m_target.attachMovie(assetName + "Over", "Over", m_target.getNextHighestDepth());
m_out = m_target.attachMovie(assetName + "Out", "Out", m_target.getNextHighestDepth());
state = ("Out");
m_target.Over._visible = false;
initEvents();
}
function initEvents() {
var thisPtr = this;
m_activeArea.onPress = function () {
thisPtr.m_listener.onPress(thisPtr);
};
m_activeArea.onRelease = function () {
thisPtr.m_listener.onRelease(thisPtr);
};
m_activeArea.onRollOver = function () {
thisPtr.__set__state("Over");
thisPtr.m_listener.onRollOver(thisPtr);
};
m_activeArea.onRollOut = function () {
thisPtr.__set__state("Out");
thisPtr.m_listener.onRollOut(thisPtr);
};
m_activeArea.onReleaseOutside = function () {
thisPtr.__set__state("Out");
thisPtr.m_listener.onReleaseOutside(thisPtr);
};
}
function set state(stateName) {
if ((m_state != undefined) && (m_state != stateName)) {
m_target[m_state]._visible = false;
}
m_state = stateName;
m_target[m_state]._visible = true;
//return(__get__state());
}
function getDx() {
return(Math.abs(((m_activeArea._xmouse * m_activeArea._xscale) / 100) - m_activeArea._width));
}
function getActiveAreaWidth() {
}
function addListener(listener) {
m_listener = listener;
}
function setWidth(w) {
m_activeArea._width = w;
m_over._x = w / 2;
m_out._x = w / 2;
}
function setHeight(h) {
m_activeArea._height = h;
m_activeArea._y = (-h) / 2;
}
}
Symbol 519 MovieClip [__Packages.com.flashspring.online.controls.CThumbnail] Frame 0
class com.flashspring.online.controls.CThumbnail extends com.flashspring.online.controls.CControlImpl
{
var m_index, m_visibleIndex, m_width, m_height, m_currentThumbBorder, m_normalThumbBorder, m_thumbnail, m_target, m_thumbIndexLabel, getHeight, getWidth, m_listener, m_state, m_alphaInterval, m_scaleInterval;
function CThumbnail (parent, name, thumbCollection, index, visibleIndex) {
super(parent, name);
m_index = index;
m_visibleIndex = visibleIndex;
m_width = thumbCollection.getThumbnailWidth();
m_height = thumbCollection.getThumbnailHeight();
m_currentThumbBorder = createBorder("currentThumbBorder", 0, 0, m_width, m_height, 13207, 16777215, 100);
m_normalThumbBorder = createBorder("normalThumbBorder", 0, 0, m_width, m_height, 4091599, 16777215, 100);
m_thumbnail = m_target.createEmptyMovieClip("thumbnail", m_target.getNextHighestDepth());
var _local3 = thumbCollection.getThumbnail(index);
_local3.load(m_thumbnail);
m_thumbnail._x = (-m_width) / 2;
m_thumbnail._y = (-m_height) / 2;
state = ("normal");
initEvents();
m_thumbIndexLabel = new com.flashspring.online.controls.CLabel(this, "thumbIndexLabel");
m_thumbIndexLabel.setTextFormat("Arial", 10, 16777215);
m_thumbIndexLabel.setText((visibleIndex + 1) + " ");
m_thumbIndexLabel.setTop((getHeight() / 2) - m_thumbIndexLabel.getHeight());
m_thumbIndexLabel.setLeft(1 - (getWidth() / 2));
m_thumbIndexLabel.setBackground(4091599);
}
function initEvents() {
var thisTh = this;
var index = m_index;
m_target.onPress = function () {
thisTh.m_listener.onPress(index);
};
m_target.onRelease = function () {
thisTh.m_listener.onRelease(index);
};
m_target.onReleaseOutside = function () {
thisTh.m_listener.onReleaseOutside(index);
};
m_target.onRollOver = function () {
thisTh.m_listener.onRollOver(index);
};
m_target.onRollOut = function () {
thisTh.m_listener.onRollOut(index);
};
m_target.onMouseMove = function () {
thisTh.m_listener.onMouseMove(index);
};
}
function addListener(listener) {
m_listener = listener;
}
function set state(s) {
if ((s == "current") || (s == "normal")) {
m_state = s;
var _local2 = s == "current";
m_thumbIndexLabel.setBackground((_local2 ? 13207 : 4091599));
m_currentThumbBorder._visible = _local2;
m_normalThumbBorder._visible = !_local2;
}
//return(state);
}
function get state() {
return(m_state);
}
function set alpha(a) {
clearInterval(m_alphaInterval);
m_target._alpha = a;
//return(alpha);
}
function get alpha() {
return(m_target._alpha);
}
function setAlpha(a) {
function alpha() {
if (al < a) {
al = al + 10;
} else if (al > a) {
al = al - 10;
}
al = Math.max(0, Math.min(100, al));
thisTh.m_target._alpha = al;
if ((al == 0) || (al == 100)) {
clearInterval(thisTh.m_alphaInterval);
}
}
clearInterval(m_alphaInterval);
var thisTh = this;
m_alphaInterval = setInterval(alpha, 50);
var al = Math.round(m_target._alpha);
}
function set scale(s) {
clearInterval(m_scaleInterval);
m_target._xscale = (m_target._yscale = s);
//return(scale);
}
function get scale() {
return(m_target._xscale);
}
function setScale(s) {
function scale() {
var _local2 = getTimer() - start;
if (_local2 <= thisTh.SCALING_TIME) {
sc = thisTh.m_target._xscale + (((s - thisTh.m_target._xscale) * _local2) / thisTh.SCALING_TIME);
} else {
sc = s;
clearInterval(this.m_scaleInterval);
}
thisTh.m_target._xscale = sc;
thisTh.m_target._yscale = sc;
}
clearInterval(m_scaleInterval);
var thisTh = this;
var start = getTimer();
m_scaleInterval = setInterval(scale, 5);
var sc = Math.round(m_target._xscale);
}
function createBorder(name, x, y, w, h, borderColor, bgColor, a) {
w = w + (BORDER_WIDTH * 2);
h = h + (BORDER_WIDTH * 2);
var _local2 = m_target.createEmptyMovieClip(name, m_target.getNextHighestDepth());
_local2._x = x;
_local2._y = y;
_local2.lineStyle(BORDER_WIDTH / 2, borderColor, a, true, "none", "round", "round", 1);
_local2.beginFill(bgColor, a);
_local2.moveTo((-w) / 2, (-h) / 2);
_local2.lineTo((-w) / 2, h / 2);
_local2.lineTo(w / 2, h / 2);
_local2.lineTo(w / 2, (-h) / 2);
_local2.lineTo((-w) / 2, (-h) / 2);
_local2.endFill();
return(_local2);
}
var BORDER_WIDTH = 5;
var SCALING_TIME = 300;
}
Symbol 520 MovieClip [__Packages.com.flashspring.online.thumbnails.CProFreeSkin] Frame 0
class com.flashspring.online.thumbnails.CProFreeSkin extends com.flashspring.online.thumbnails.CSkin
{
function CProFreeSkin (target, isFree) {
if (isFree) {
super(target, "free");
} else {
super(target, "pro");
}
}
function initialize(playerAPI) {
super.initialize(playerAPI);
}
function setFullScreenMode(mode) {
super.setFullScreenMode(mode);
}
}
Symbol 339 MovieClip [skinAsset] Frame 1
this._lockroot = true;
function createSkin(mc) {
return(new com.flashspring.online.thumbnails.CProFreeSkin(mc, true));
}
Symbol 339 MovieClip [skinAsset] Frame 2
this._lockroot = false;
Symbol 531 MovieClip [spr123_1350312] Frame 1
this._lockroot = true;
function SoundStart(position, loops) {
SoundStop();
SoundGetObject().start(((position == undefined) ? 0 : (position)), ((loops == undefined) ? 1 : (loops)));
}
function SoundSetListener(l) {
listener = l;
}
function SoundGetDuration() {
return(SoundGetObject().duration);
}
function SoundGetVolume() {
return(SoundGetObject().getVolume() * 0.01);
}
function SoundSetVolume(vol) {
vol = ((vol < 0) ? 0 : (((vol > 1) ? 1 : (vol))));
SoundGetObject().setVolume(vol * 100);
}
function SoundStop() {
SoundGetObject().stop();
}
function SoundGetPosition() {
return(SoundGetObject().position);
}
function SoundGetObject() {
if (soundObject == undefined) {
soundObject = new Sound(this);
soundObject.attachSound("snd8365050_0");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 531 MovieClip [spr123_1350312] Frame 2
this._lockroot = false;
Symbol 525 MovieClip [spr0_1350312] Frame 4273
stop();