Frame 1
fscommand ("fullscreen", "true");
var s = "";
s = s + "<?xml version=\"1.0\"?>\r\n<presentation title=\"my ng\" width=\"720.0000000\" height=\"570.0000000\" thmbWidth=\"0.0000000\" thmbHeight=\"0.0000000\" frameRate=\"24.0000000\" looping=\"0\">\n<presenter/>\n<soundAssets>\n<soundAsset id=\"sndAsset0\" src=\"spr35\" embedded=\"1\"/>\n<soundAsset id=\"sndAsset1\" src=\"spr44\" embedded=\"1\"/>\n<soundAsset id=\"sndAsset2\" src=\"spr73\" embedded=\"1\"/>\n<soundAsset id=\"sndAsset3\" src=\"spr98\" embedded=\"1\"/>\n<soundAsset id=\"sndAsset4\" src=\"spr109\" embedded=\"1\"/>\n<soundAsset id=\"sndAsset5\" src=\"spr171\" embedded=\"1\"/>\n<soundAsset id=\"sndAsset6\" src=\"spr180\" embedded=\"1\"/>\n<soundAsset id=\"sndAsset7\" src=\"spr192\" embedded=\"1\"/>\n</soundAssets>\n<backgroundSound soundAssetId=\"\" looping=\"0\"/>\n<settings>\n<webLinks/>\n<navigation>\n<keyboard enabled=\"0\"/>\n<mouse enabled=\"0\" target=\"step\"/>\n</navigation>\n<playback>\n<stepAdvance auto=\"1\" pause=\"1.0000000\"/>\n</playback>\n<tools>\n<inkTool enabled=\"0\"/>\n</tools>\n<skin>\n<labels/>\n</skin>\n</settings>\n<slides embedded=\"1\">\n<slide index=\"0\" title=\"\" src=\"spr0\" autoChange=\"1\" thumbnailSrc=\"\" framesCount=\"481\" hasEmbeddedFlashClip=\"0\">\n<sounds/>\n<transitionEffect name=\"\" duration=\"0.0000000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<animationSteps>\n<step start=\"0\" end=\"480\" playTime=\"20.0000000\" pauseTime=\"0.0000000\"/>\n</animationSteps>\n<backgroundSound soundId=\"\"/>\n<notes/>\n</slide>\n<slide index=\"1\" title=\"\" src=\"spr10\" autoChange=\"1\" thumbnailSrc=\"\" framesCount=\"85\" hasEmbeddedFlashClip=\"0\">\n<sounds>\n<sound id=\"sound0\" soundAssetId=\"sndAsset0\"/>\n</sounds>\n<transitionEffect name=\"FadeThroughBlack\" duration=\"0.5000000\" soundId=\"sound0\" looped=\"0\"/>\n<soundCommands/>\n<animationSteps>\n<step start=\"0\" end=\"84\" playTime=\"3.5000000\" pauseTime=\"2.7000003\"/>\n</animationSteps>\n<backgroundSound soundId=\"\"/>\n<notes/>\n</slide>\n<slide index=\"2\" title=\"\" src=\"spr36\" autoChange=\"1\" thumbnailSrc=\"\" framesCount=\"121\" hasEmbeddedFlashClip=\"0\">\n<sounds>\n<sound id=\"sound1\" soundAssetId=\"sndAsset1\"/>\n</sounds>\n<transitionEffect name=\"\" duration=\"0.0000000\" soundId=\"sound1\" looped=\"0\"/>\n<soundCommands/>\n<animationSteps>\n<step start=\"0\" end=\"120\" playTime=\"5.0000000\" pauseTime=\"3.6000004\"/>\n</animationSteps>\n<backgroundSound soundId=\"\"/>\n<notes/>\n</slide>\n<slide index=\"3\" title=\"\" src=\"spr45\" autoChange=\"1\" thumbnailSrc=\"\" framesCount=\"183\" hasEmbeddedFlashClip=\"0\">\n<sounds>\n<sound id=\"sound2\" soundAssetId=\"sndAsset2\"/>\n</sounds>\n<transitionEffect name=\"\" duration=\"0.0000000\" soundId=\"sound2\" looped=\"0\"/>\n<soundCommands/>\n<animationSteps>\n<step start=\"0\" end=\"182\" playTime=\"7.5833335\" pauseTime=\"2.7166667\"/>\n</animationSteps>\n<backgroundSound soundId=\"\"/>\n<notes/>\n</slide>\n<slide index=\"4\" title=\"\" src=\"spr74\" autoChange=\"1\" thumbnailSrc=\"\" framesCount=\"14\" hasEmbeddedFlashClip=\"0\">\n<sounds>\n<sound id=\"sound3\" soundAssetId=\"sndAsset3\"/>\n</sounds>\n<transitionEffect name=\"\" duration=\"0.0000000\" soundId=\"sound3\" looped=\"0\"/>\n<soundCommands/>\n<animationSteps>\n<step start=\"0\" end=\"13\" playTime=\"0.5416667\" pauseTime=\"6.9383340\"/>\n</animationSteps>\n<backgroundSound soundId=\"\"/>\n<notes/>\n</slide>\n<slide index=\"5\" title=\"\" src=\"spr99\" autoChange=\"1\" thumbnailSrc=\"\" framesCount=\"74\" hasEmbeddedFlashClip=\"0\">\n<sounds>\n<sound id=\"sound4\" soundAssetId=\"sndAsset4\"/>\n</sounds>\n<transitionEffect name=\"\" duration=\"0.0000000\" soundId=\"sound4\" looped=\"0\"/>\n<soundCommands/>\n<animationSteps>\n<step start=\"0\" end=\"73\" playTime=\"3.0416667\" pauseTime=\"2.3583333\"/>\n</animationSteps>\n<backgroundSound soundId=\"\"/>\n<notes/>\n</slide>\n<slide index=\"6\" title=\"\" src=\"spr110\" autoChange=\"1\" thumbnailSrc=\"\" framesCount=\"121\" hasEmbeddedFlashClip=\"0\">\n<sounds>\n<sound id=\"sound5\" soundAssetId=\"sndAsset5\"/>\n</sounds>\n<transitionEffect name=\"\" duration=\"0.0000000\" soundId=\"sound5\" looped=\"0\"/>\n<soundCommands/>\n<animationSteps>\n<step start=\"0\" end=\"120\" playTime=\"5.0000000\" pauseTime=\"4.2000008\"/>\n</animationSteps>\n<backgroundSound soundId=\"\"/>\n<notes/>\n</slide>\n<slide index=\"7\" title=\"\" src=\"spr172\" autoChange=\"1\" thumbnailSrc=\"\" framesCount=\"121\" hasEmbeddedFlashClip=\"0\">\n<sounds>\n<sound id=\"sound6\" soundAssetId=\"sndAsset6\"/>\n</sounds>\n<transitionEffect name=\"\" duration=\"0.0000000\" soundId=\"sound6\" looped=\"0\"/>\n<soundCommands/>\n<animationSteps>\n<step start=\"0\" end=\"120\" playTime=\"5.0000000\" pauseTime=\"2.2000003\"/>\n</animationSteps>\n<backgroundSound soundId=\"\"/>\n<notes/>\n</slide>\n<slide index=\"8\" title=\"\" src=\"spr181\" autoChange=\"1\" thumbnailSrc=\"\" framesCount=\"85\" hasEmbeddedFlashClip=\"0\">\n<sounds>\n<sound id=\"sound7\" soundAssetId=\"sndAsset7\"/>\n</sounds>\n<transitionEffect name=\"\" duration=\"0.0000000\" soundId=\"sound7\" looped=\"0\"/>\n<soundCommands/>\n<animationSteps>\n<step start=\"0\" end=\"84\" playTime=\"3.5000000\" pauseTime=\"0.0000000\"/>\n</animationSteps>\n<backgroundSound soundId=\"\"/>\n<notes/>\n</slide>\n<slide index=\"9\" title=\"\" src=\"spr193\" autoChange=\"0\" thumbnailSrc=\"\" framesCount=\"1\" hasEmbeddedFlashClip=\"0\">\n<sounds/>\n<transitionEffect name=\"\" duration=\"0.0000000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<animationSteps>\n<step start=\"0\" end=\"0\" playTime=\"0.0010000\" pauseTime=\"7.2000003\"/>\n</animationSteps>\n<backgroundSound soundId=\"\"/>\n<notes/>\n</slide>\n<slide index=\"10\" title=\"FlashSpring Demo Slide\" src=\"spr196\" autoChange=\"1\" thumbnailSrc=\"\" framesCount=\"120\" hasEmbeddedFlashClip=\"0\">\n<sounds/>\n<transitionEffect name=\"\" duration=\"0.0000000\" soundId=\"\" looped=\"0\"/>\n<soundCommands/>\n<animationSteps/>\n<backgroundSound soundId=\"\"/>\n<notes>FlashSpring Pro is easy, fast and quality PowerPoint to Flash converter which carefully keeps visual parameters and animation effects of your presentations.\r\n</notes>\n</slide>\n</slides>\n</presentation>\r\n";
this._highquality = 2;
this.getPlayerResourceLoader = function () {
return(this.show347);
};
this.show347.createEmbeddedPlayer("spr199", s, this);
stop();
Frame 2
getPlayerResourceLoader().slideIsAvailable(0);
Frame 3
getPlayerResourceLoader().slideIsAvailable(1);
Frame 4
getPlayerResourceLoader().slideIsAvailable(2);
Frame 5
getPlayerResourceLoader().slideIsAvailable(3);
Frame 6
getPlayerResourceLoader().slideIsAvailable(4);
Frame 7
getPlayerResourceLoader().slideIsAvailable(5);
Frame 8
getPlayerResourceLoader().slideIsAvailable(6);
Frame 9
getPlayerResourceLoader().slideIsAvailable(7);
Frame 10
getPlayerResourceLoader().slideIsAvailable(8);
Frame 11
getPlayerResourceLoader().slideIsAvailable(9);
Frame 12
stop();
getPlayerResourceLoader().slideIsAvailable(10);
Symbol 3911 MovieClip [__Packages.ISolidPlayerResourceLoader] Frame 0
interface ISolidPlayerResourceLoader
{
}
Symbol 3912 MovieClip [__Packages.fsplayer.api.IPlayer] Frame 0
interface fsplayer.api.IPlayer
{
}
Symbol 3913 MovieClip [__Packages.fsplayer.api.IPlayerListener] Frame 0
interface fsplayer.api.IPlayerListener
{
}
Symbol 3914 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackController] Frame 0
interface fsplayer.api.IPresentationPlaybackController
{
}
Symbol 3915 MovieClip [__Packages.fsplayer.api.IPlaybackListener] Frame 0
interface fsplayer.api.IPlaybackListener
{
}
Symbol 3916 MovieClip [__Packages.fsplayer.api.ISoundController] Frame 0
interface fsplayer.api.ISoundController
{
}
Symbol 3917 MovieClip [__Packages.fsplayer.api.ISoundListener] Frame 0
interface fsplayer.api.ISoundListener
{
}
Symbol 3918 MovieClip [__Packages.fsplayer.api.IPresentationInfo] Frame 0
interface fsplayer.api.IPresentationInfo
{
}
Symbol 3919 MovieClip [__Packages.fsplayer.api.ISlidesCollection] Frame 0
interface fsplayer.api.ISlidesCollection
{
}
Symbol 3920 MovieClip [__Packages.fsplayer.api.ISlideInfo] Frame 0
interface fsplayer.api.ISlideInfo
{
}
Symbol 3921 MovieClip [__Packages.fsplayer.api.IAnimationSteps] Frame 0
interface fsplayer.api.IAnimationSteps
{
}
Symbol 3922 MovieClip [__Packages.fsplayer.api.IAnimationStep] Frame 0
interface fsplayer.api.IAnimationStep
{
}
Symbol 3923 MovieClip [__Packages.fsplayer.api.IThumbnailsCollection] Frame 0
interface fsplayer.api.IThumbnailsCollection
{
}
Symbol 3924 MovieClip [__Packages.fsplayer.api.ISlideThumbnail] Frame 0
interface fsplayer.api.ISlideThumbnail
{
}
Symbol 3925 MovieClip [__Packages.fsplayer.api.ISlideThumbnailLoadingListener] Frame 0
interface fsplayer.api.ISlideThumbnailLoadingListener
{
}
Symbol 3926 MovieClip [__Packages.fsplayer.api.IPresenterInfo] Frame 0
interface fsplayer.api.IPresenterInfo
{
}
Symbol 3927 MovieClip [__Packages.fsplayer.api.IPresenterPhoto] Frame 0
interface fsplayer.api.IPresenterPhoto
{
}
Symbol 3928 MovieClip [__Packages.fsplayer.api.IPresenterPhotoLoadingListener] Frame 0
interface fsplayer.api.IPresenterPhotoLoadingListener
{
}
Symbol 3929 MovieClip [__Packages.fsplayer.core.IPlayerCore] Frame 0
interface fsplayer.core.IPlayerCore
{
}
Symbol 3930 MovieClip [__Packages.fsplayer.res.video.IVideoClip] Frame 0
interface fsplayer.res.video.IVideoClip
{
}
Symbol 3931 MovieClip [__Packages.fsplayer.ui.skins.asset.ISkinAssetLoadingListener] Frame 0
interface fsplayer.ui.skins.asset.ISkinAssetLoadingListener
{
}
Symbol 3932 MovieClip [__Packages.fsplayer.ui.skins.asset.ISkinAsset] Frame 0
interface fsplayer.ui.skins.asset.ISkinAsset
{
}
Symbol 3933 MovieClip [__Packages.fsplayer.ui.skins.ISkin] Frame 0
interface fsplayer.ui.skins.ISkin
{
}
Symbol 3934 MovieClip [__Packages.fsplayer.ui.skins.ISlideShowWindow] Frame 0
interface fsplayer.ui.skins.ISlideShowWindow
{
}
Symbol 3935 MovieClip [__Packages.fsplayer.ui.skins.ISkinListener] Frame 0
interface fsplayer.ui.skins.ISkinListener
{
}
Symbol 3936 MovieClip [__Packages.fsplayer.core.IPlayerEnvironment] Frame 0
interface fsplayer.core.IPlayerEnvironment
{
}
Symbol 3937 MovieClip [__Packages.fsplayer.core.playback.IPlaybackSettings] Frame 0
interface fsplayer.core.playback.IPlaybackSettings
{
}
Symbol 3938 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_presentationNode, m_stepAdvancePause, m_presentation, m_settings;
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;
tryToStartPlayer();
}
function getSoundAssetsTarget() {
return(m_soundAssetsTarget);
}
function getSlideAssetsTarget() {
var _local2 = m_skin.getSlideShowWindow();
return(_local2.getTarget());
}
function loadSkinAsset(source) {
var _local2 = m_loadingControllersFactory.createAssetLoader();
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) {
m_playbackController.registerVideoClip(videoClip, slideIndex, autoStart);
}
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_initialized = true;
var _local2 = 0;
while (_local2 < m_listeners.length) {
var _local3 = m_listeners[_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);
}
function initializeSkin() {
m_skin.initialize(this);
}
function start() {
m_playbackController.gotoSlide(0);
}
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();
for (var _local6 in node.attributes) {
_local4[_local6] = node.attributes[_local6];
}
var _local2;
for (var _local5 in node.childNodes) {
_local2 = node.childNodes[_local5];
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;
}
var m_initialized = false;
}
Symbol 3939 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionEffectEnvironment] Frame 0
interface fsplayer.core.playback.transitions.ITransitionEffectEnvironment
{
}
Symbol 3940 MovieClip [__Packages.fsplayer.res.IPresentation] Frame 0
interface fsplayer.res.IPresentation extends fsplayer.core.playback.transitions.ITransitionEffectEnvironment
{
}
Symbol 3941 MovieClip [__Packages.fsplayer.res.slides.ISlides] Frame 0
interface fsplayer.res.slides.ISlides
{
}
Symbol 3942 MovieClip [__Packages.fsplayer.res.slides.ISlide] Frame 0
interface fsplayer.res.slides.ISlide
{
}
Symbol 3943 MovieClip [__Packages.fsplayer.core.loading.ISlideLoadingListener] Frame 0
interface fsplayer.core.loading.ISlideLoadingListener
{
}
Symbol 3944 MovieClip [__Packages.fsplayer.res.slides.ISlideTransition] Frame 0
interface fsplayer.res.slides.ISlideTransition
{
}
Symbol 3945 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundEx
{
}
Symbol 3946 MovieClip [__Packages.fsplayer.res.sounds.ISoundInstance] Frame 0
interface fsplayer.res.sounds.ISoundInstance
{
}
Symbol 3947 MovieClip [__Packages.fsplayer.res.sounds.ISoundInstanceListener] Frame 0
interface fsplayer.res.sounds.ISoundInstanceListener
{
}
Symbol 3948 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundLoadingListenerEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundLoadingListenerEx
{
}
Symbol 3949 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundListenerEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundListenerEx
{
}
Symbol 3950 MovieClip [__Packages.fsplayer.core.playback.transitions.ISlideTransitionController] Frame 0
interface fsplayer.core.playback.transitions.ISlideTransitionController
{
}
Symbol 3951 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionEffect] Frame 0
interface fsplayer.core.playback.transitions.ITransitionEffect
{
}
Symbol 3952 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackControllerEx] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackControllerEx
{
}
Symbol 3953 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackListenerEx] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackListenerEx
{
}
Symbol 3954 MovieClip [__Packages.fsplayer.res.sounds.ISoundCommandsEx] Frame 0
interface fsplayer.res.sounds.ISoundCommandsEx
{
}
Symbol 3955 MovieClip [__Packages.fsplayer.core.playback.sounds.ISoundPlaybackCore] Frame 0
interface fsplayer.core.playback.sounds.ISoundPlaybackCore
{
}
Symbol 3956 MovieClip [__Packages.fsplayer.res.sounds.ISoundEx] Frame 0
interface fsplayer.res.sounds.ISoundEx
{
}
Symbol 3957 MovieClip [__Packages.fsplayer.core.playback.sounds.IEventSoundPlaybackCore] Frame 0
interface fsplayer.core.playback.sounds.IEventSoundPlaybackCore extends fsplayer.core.playback.sounds.ISoundPlaybackCore
{
}
Symbol 3958 MovieClip [__Packages.fsplayer.res.sounds.ISlideEventSoundsEx] Frame 0
interface fsplayer.res.sounds.ISlideEventSoundsEx
{
}
Symbol 3959 MovieClip [__Packages.fsplayer.res.slides.IAnimationStepsEx] Frame 0
interface fsplayer.res.slides.IAnimationStepsEx extends fsplayer.api.IAnimationSteps
{
}
Symbol 3960 MovieClip [__Packages.fsplayer.res.slides.IAnimationStepEx] Frame 0
interface fsplayer.res.slides.IAnimationStepEx extends fsplayer.api.IAnimationStep
{
}
Symbol 3961 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 3962 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 3963 MovieClip [__Packages.fsplayer.res.sounds.ISoundAssets] Frame 0
interface fsplayer.res.sounds.ISoundAssets
{
}
Symbol 3964 MovieClip [__Packages.fsplayer.res.sounds.ISoundAsset] Frame 0
interface fsplayer.res.sounds.ISoundAsset
{
}
Symbol 3965 MovieClip [__Packages.fsplayer.res.sounds.ISoundAssetLoadingListener] Frame 0
interface fsplayer.res.sounds.ISoundAssetLoadingListener
{
}
Symbol 3966 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;
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());
}
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);
}
}
Symbol 3967 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);
}
}
Symbol 3968 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;
function CSoundAssets (soundAssetsNode, target) {
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.loader = ((_local3.attributes.embedded == "1") ? (_local5) : (_local7));
_local2.listeners = new Array();
m_assets[_local3.attributes.id] = _local2;
_local4++;
}
}
function setVolume(volume) {
var _local2 = new Sound(m_target);
_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++;
}
}
}
Symbol 3969 MovieClip [__Packages.fsplayer.res.sounds.ISoundAssetLoader] Frame 0
interface fsplayer.res.sounds.ISoundAssetLoader
{
}
Symbol 3970 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 3971 MovieClip [__Packages.fsplayer.res.assets.IAssetLoader] Frame 0
interface fsplayer.res.assets.IAssetLoader
{
}
Symbol 3972 MovieClip [__Packages.fsplayer.res.assets.IAssetLoadingListener] Frame 0
interface fsplayer.res.assets.IAssetLoadingListener
{
}
Symbol 3973 MovieClip [__Packages.fsplayer.res.assets.IAsset] Frame 0
interface fsplayer.res.assets.IAsset
{
}
Symbol 3974 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 3975 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 3976 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 3977 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 3978 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 3979 MovieClip [__Packages.fsplayer.res.assets.CExternalAssetLoader] Frame 0
class fsplayer.res.assets.CExternalAssetLoader implements fsplayer.res.assets.IAssetLoader
{
function CExternalAssetLoader () {
}
function loadAsset(target, src, listener) {
var _local3 = new MovieClipLoader();
var asset = (new fsplayer.res.assets.CExternalAsset(target));
var _local2 = new Object();
_local2.onLoadStart = function (mc) {
if (listener != undefined) {
listener.onAssetLoadStart(asset);
}
};
_local2.onLoadComplete = function (mc) {
if (listener != undefined) {
listener.onAssetLoadComplete(asset);
}
};
_local2.onLoadInit = function (mc) {
mc.onEnterFrame = function () {
if (listener != undefined) {
listener.onAssetLoadInit(asset);
}
delete this.onEnterFrame;
};
};
_local3.addListener(_local2);
_local3.loadClip(src, target);
return(asset);
}
}
Symbol 3980 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 3981 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;
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);
var _local5 = slidesNode.childNodes.length;
m_slides = new Array(_local5);
}
function getSlide(index) {
if (m_slides[index] == undefined) {
var _local6 = ((m_initializedSlidesCount > 0) ? (m_slides[m_initializedSlidesCount - 1]) : undefined);
var _local3 = (_local6 ? (_local6.getEndTime()) : 0);
var _local4 = (_local6 ? (_local6.getEndStepIndex() + 1) : 0);
while (m_initializedSlidesCount <= index) {
var _local2 = new fsplayer.res.slides.CSlide(m_slidesNode.childNodes[m_initializedSlidesCount], getSlideAssets(), m_soundAssets, getSlideDepthSorter(), m_transitionEffectEnvironment, m_frameRate, m_playbackSettings, _local3, _local4);
m_slides[m_initializedSlidesCount++] = _local2;
_local3 = _local2.getEndTime();
_local4 = _local2.getEndStepIndex() + 1;
}
}
return(m_slides[index]);
}
function getSlideAssets() {
return(m_slideAssets);
}
function getSlideDepthSorter() {
return(m_slideAssets);
}
function getCount() {
return(m_slides.length);
}
var m_initializedSlidesCount = 0;
}
Symbol 3982 MovieClip [__Packages.fsplayer.res.slides.ISlideAssets] Frame 0
interface fsplayer.res.slides.ISlideAssets
{
}
Symbol 3983 MovieClip [__Packages.fsplayer.res.slides.ISlideAssetLoadingListener] Frame 0
interface fsplayer.res.slides.ISlideAssetLoadingListener
{
}
Symbol 3984 MovieClip [__Packages.fsplayer.res.slides.ISlideAsset] Frame 0
interface fsplayer.res.slides.ISlideAsset
{
}
Symbol 3985 MovieClip [__Packages.fsplayer.res.slides.ISlideInstance] Frame 0
interface fsplayer.res.slides.ISlideInstance
{
}
Symbol 3986 MovieClip [__Packages.fsplayer.res.slides.ISlideInstanceListener] Frame 0
interface fsplayer.res.slides.ISlideInstanceListener
{
}
Symbol 3987 MovieClip [__Packages.fsplayer.res.slides.ISlideDepthSorter] Frame 0
interface fsplayer.res.slides.ISlideDepthSorter
{
}
Symbol 3988 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 3989 MovieClip [__Packages.fsplayer.res.slides.ISlideAssetLoader] Frame 0
interface fsplayer.res.slides.ISlideAssetLoader
{
}
Symbol 3990 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 3991 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 3992 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 3993 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);
}
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));
}
var COMMAND_STOP = 6;
var COMMAND_PLAY = 7;
var m_command = undefined;
}
Symbol 3994 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 3995 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundsLoadingListenerEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundsLoadingListenerEx
{
}
Symbol 3996 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_autoChange, m_hasEmbeddedFlashClips, m_slideSounds, m_slideTransition, m_animationSteps, m_soundCommandsNode, m_bgSoundId, m_bgSound, m_soundCommands, m_slideAsset, m_listener, m_slideInstancePlayer, m_controller;
function CSlide (slideNode, slideAssets, soundAssets, slideDepthSorter, environment, frameRate, playbackSettings, startTime, startStepIndex) {
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_autoChange = _local2.autoChange == "1";
m_hasEmbeddedFlashClips = (_local2.hasEmbeddedFlashClip == "1") || (_local2.hasEmbeddedFlashClip == "true");
var _local8 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "sounds");
var _local6 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "transitionEffect");
m_slideSounds = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createSlideSounds(_local8, soundAssets);
var _local7 = slideNode.attributes.autoChange == "1";
m_slideTransition = new fsplayer.res.slides.CSlideTransition(_local6, m_slideSounds, environment, _local7);
var _local5 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "animationSteps");
m_animationSteps = new fsplayer.res.slides.CAnimationSteps(_local5, frameRate);
m_soundCommandsNode = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "soundCommands");
var _local4 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "backgroundSound");
if (_local4) {
m_bgSoundId = _local4.attributes.soundId;
}
}
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_slideAsset != undefined) && (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;
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));
}
var m_slideSoundsAreLoading = false;
}
Symbol 3997 MovieClip [__Packages.fsplayer.res.sounds.ISlideSoundsEx] Frame 0
interface fsplayer.res.sounds.ISlideSoundsEx
{
}
Symbol 3998 MovieClip [__Packages.fsplayer.core.playback.slides.ISlideInstancePlayer] Frame 0
interface fsplayer.core.playback.slides.ISlideInstancePlayer
{
}
Symbol 3999 MovieClip [__Packages.fsplayer.core.playback.slides.ISlideInstancePlayerListener] Frame 0
interface fsplayer.core.playback.slides.ISlideInstancePlayerListener
{
}
Symbol 4000 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 4001 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackSynchronizerListener] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackSynchronizerListener
{
}
Symbol 4002 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_listener;
function CSlideControllerEx (steps, synchronizer) {
m_steps = steps;
m_synchronizer = synchronizer;
m_synchronizer.setListener(this);
m_videoPlaybackController = new fsplayer.core.playback.video.CSlideVideoPlaybackController();
}
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();
}
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();
}
function setListener(listener) {
m_listener = listener;
}
function registerVideoClip(videoClip, autoStart) {
m_videoPlaybackController.registerVideoClip(videoClip, autoStart);
}
}
Symbol 4003 MovieClip [__Packages.fsplayer.core.playback.slides.ISlidePlaybackSynchronizer] Frame 0
interface fsplayer.core.playback.slides.ISlidePlaybackSynchronizer
{
}
Symbol 4004 MovieClip [__Packages.fsplayer.core.playback.video.ISlideVideoPlaybackController] Frame 0
interface fsplayer.core.playback.video.ISlideVideoPlaybackController
{
}
Symbol 4005 MovieClip [__Packages.fsplayer.core.playback.video.CSlideVideoPlaybackController] Frame 0
class fsplayer.core.playback.video.CSlideVideoPlaybackController implements fsplayer.core.playback.video.ISlideVideoPlaybackController
{
var m_activeVideos, m_interruptedVideos, m_slideActivated, m_playing;
function CSlideVideoPlaybackController () {
m_activeVideos = new Array();
m_interruptedVideos = new Array();
}
function registerVideoClip(videoClip, autoStart) {
var _local4 = m_activeVideos.length;
var _local2 = 0;
while (_local2 < _local4) {
if (m_activeVideos[_local2].video == videoClip) {
return(undefined);
}
_local2++;
}
var _local5 = new Object();
_local5.video = videoClip;
_local5.autoStart = autoStart;
m_activeVideos.push(_local5);
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.playFromFrame(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() {
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();
}
}
Symbol 4006 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 4007 MovieClip [__Packages.fsplayer.core.IPlayerCoreComponentsFactory] Frame 0
interface fsplayer.core.IPlayerCoreComponentsFactory
{
}
Symbol 4008 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionEffectsFactory] Frame 0
interface fsplayer.core.playback.transitions.ITransitionEffectsFactory
{
}
Symbol 4009 MovieClip [__Packages.fsplayer.core.playback.transitions.ITransitionParameters] Frame 0
interface fsplayer.core.playback.transitions.ITransitionParameters
{
}
Symbol 4010 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 4011 MovieClip [__Packages.fsplayer.core.playback.presentation.IPlaybackController] Frame 0
interface fsplayer.core.playback.presentation.IPlaybackController extends fsplayer.api.IPresentationPlaybackController
{
}
Symbol 4012 MovieClip [__Packages.fsplayer.core.playback.sounds.ISoundPlaybackControllerEx] Frame 0
interface fsplayer.core.playback.sounds.ISoundPlaybackControllerEx extends fsplayer.api.ISoundController
{
}
Symbol 4013 MovieClip [__Packages.fsplayer.core.loading.IPresentationBgSoundAssetLoadingController] Frame 0
interface fsplayer.core.loading.IPresentationBgSoundAssetLoadingController
{
}
Symbol 4014 MovieClip [__Packages.fsplayer.core.ILoadingControllersFactory] Frame 0
interface fsplayer.core.ILoadingControllersFactory
{
}
Symbol 4015 MovieClip [__Packages.fsplayer.core.loading.IThumbnailAssetLoadingController] Frame 0
interface fsplayer.core.loading.IThumbnailAssetLoadingController
{
}
Symbol 4016 MovieClip [__Packages.fsplayer.res.images.IImageAssetLoadingListener] Frame 0
interface fsplayer.res.images.IImageAssetLoadingListener
{
}
Symbol 4017 MovieClip [__Packages.fsplayer.res.images.IImageAsset] Frame 0
interface fsplayer.res.images.IImageAsset
{
}
Symbol 4018 MovieClip [__Packages.fsplayer.res.images.IImageInstance] Frame 0
interface fsplayer.res.images.IImageInstance
{
}
Symbol 4019 MovieClip [__Packages.fsplayer.core.loading.ISlideLoadingController] Frame 0
interface fsplayer.core.loading.ISlideLoadingController
{
}
Symbol 4020 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;
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() {
return(m_sounds.getSound(m_soundId));
}
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);
}
}
Symbol 4021 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 4022 MovieClip [__Packages.fsplayer.res.sounds.ISlideEventSoundEx] Frame 0
interface fsplayer.res.sounds.ISlideEventSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 4023 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) {
if (!isSoundPlayingOnSlide(slideIndex)) {
deactivateSound();
} else {
slideIndexWasChanged(slideIndex);
}
}
function onStartSlidePlayback(slideIndex) {
}
function deactivateSound() {
stop();
}
function positionWasChanged(slideIndex, stepIndex, time) {
}
function slideIndexWasChanged(slideIndex) {
}
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 pause() {
if (m_state == STATE_PLAYING) {
m_state = STATE_PAUSED;
m_position = m_sound.getPosition();
m_sound.stop();
}
}
function resync(slideIndex, stepIndex, time) {
}
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 4024 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, 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) {
var _local2 = getDuration();
var _local3 = int(Math.floor(pos / _local2));
var _local4 = pos - (_local3 * _local2);
if (!isNaN(evt.loopsCount)) {
m_loopsCount = evt.loopsCount - _local3;
} else {
m_loopsCount = 0;
}
startFrom(_local4);
}
function onSlideSoundComplete(slideSound) {
if ((m_loopsCount == 0) || ((--m_loopsCount) != 0)) {
start();
}
}
function resync(slideIndex, stepIndex, time) {
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);
} 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())) || (eval (_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);
} else {
deactivateSound();
}
} else {
deactivateSound();
}
}
}
function onUnregisterSound() {
m_currentEventIndex = undefined;
}
}
Symbol 4025 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 4026 MovieClip [__Packages.fsplayer.util.ITimerListener] Frame 0
interface fsplayer.util.ITimerListener
{
}
Symbol 4027 MovieClip [__Packages.fsplayer.util.ITimer] Frame 0
interface fsplayer.util.ITimer
{
}
Symbol 4028 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 4029 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 4030 MovieClip [__Packages.fsplayer.util.CTimeUtils] Frame 0
class fsplayer.util.CTimeUtils
{
function CTimeUtils () {
}
static function getTickCount() {
var _local1 = new Date();
return((((_local1.getHours() * 3600000) + (_local1.getMinutes() * 60000)) + (_local1.getSeconds() * 1000)) + _local1.getMilliseconds());
}
static function getTickInterval(t, t0) {
var _local1 = t - t0;
return(((_local1 >= 0) ? (_local1) : (_local1 + 86400000)));
}
static function getTickCountInterval(t0) {
return(getTickInterval(getTickCount(), t0));
}
}
Symbol 4031 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 4032 MovieClip [__Packages.fsplayer.core.playback.presentation.IPlaybackModeSwitcher] Frame 0
interface fsplayer.core.playback.presentation.IPlaybackModeSwitcher
{
}
Symbol 4033 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, m_viewedSlides, PM_PLAYING, PM_PAUSED, PM_WAITING, PM_SWITCHING, PM_SEEKING, m_playbackMode, m_soundController, m_listeners;
function CPlaybackController (presentation, slideLoadingController, bgSoundLoadingController, playbackSettings) {
m_presentation = presentation;
m_slideLoadingController = slideLoadingController;
m_slideLoadingController.setListener(this);
m_playbackSettings = playbackSettings;
m_viewedSlides = new Array();
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_soundController = fsplayer.core.CPlayerCoreComponentsFactory.getInstance().createSoundPlaybackController(presentation, this, bgSoundLoadingController);
m_listeners = new Array();
}
function getCurrentSlideIndex() {
return(m_currentSlideIndex);
}
function gotoSlide(slideIndex) {
m_soundController.needResync();
m_soundController.resyncOnPlay();
gotoSlideNoResync(slideIndex);
}
function gotoSlideNoResync(slideIndex) {
if ((slideIndex >= 0) && (slideIndex < getSlidesCount())) {
if (slideIndex != getCurrentSlideIndex()) {
var _local3 = getSlide(slideIndex);
if (!_local3.isLoaded()) {
waitForSlide(slideIndex);
} else {
switchToSlide(slideIndex);
}
} else {
restartCurrentSlide();
}
}
}
function registerVideoClip(videoClip, slideIndex, autoStart) {
var _local3 = getSlide(slideIndex);
var _local2 = _local3.getPlaybackController();
_local2.registerVideoClip(videoClip, autoStart);
}
function gotoLastViewedSlide() {
if (m_viewedSlides.length > 0) {
var _local2 = new Number(m_viewedSlides.pop());
gotoSlide(_local2);
m_viewedSlides.pop();
}
}
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 (isPaused()) {
var _local2 = getCurrentSlide();
if ((_local2 != undefined) && (_local2.isLoaded())) {
startPlayback();
}
}
}
function pause() {
if (!playbackControlIsAccessible()) {
return(undefined);
}
if (!isPaused()) {
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 isPaused() {
return(m_playbackMode == PM_PAUSED);
}
function isPlaying() {
return((m_playbackMode == PM_PLAYING) || (m_playbackMode == PM_SWITCHING));
}
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() {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.startSlide(getCurrentSlide());
m_soundController.resync();
FireEvent("onStartPlayback");
}
function switchToSlide(slideIndex) {
if (slideIndex < m_presentation.getSlides().getCount()) {
var _local2 = m_currentSlideIndex;
m_currentSlideIndex = slideIndex;
setPlaybackMode(PM_SWITCHING);
PM_SWITCHING.switchToSlide(getCurrentSlide());
m_soundController.onStartSlideSwitching(slideIndex);
preloadNextSlide();
m_oldStep = undefined;
FireEvent("onCurrentSlideIndexChanged", slideIndex);
if (_local2 != undefined) {
m_viewedSlides.push(_local2);
}
}
}
function gotoSlideLastStepEnd(slideIndex) {
if ((slideIndex < m_presentation.getSlides().getCount()) && (slideIndex >= 0)) {
var _local3 = m_currentSlideIndex;
m_currentSlideIndex = slideIndex;
setPlaybackMode(PM_SWITCHING);
PM_SWITCHING.switchToSlide(getCurrentSlide());
m_soundController.onStartSlideSwitching(slideIndex);
preloadNextSlide();
m_oldStep = undefined;
FireEvent("onCurrentSlideIndexChanged", slideIndex);
if (_local3 != undefined) {
m_viewedSlides.push(_local3);
}
setPlaybackMode(PM_PAUSED);
PM_PAUSED.gotoLastStepEnd(getCurrentSlide());
}
}
function waitForSlide(slideIndex) {
m_slideLoadingController.enqueueSlide(slideIndex);
setPlaybackMode(PM_WAITING);
PM_WAITING.waitForSlide(slideIndex);
}
function pausePlayback() {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseSlide(getCurrentSlide());
m_soundController.pause();
FireEvent("onPausePlayback");
}
function pausePlaybackAt(position) {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseSlideAt(getCurrentSlide(), position);
m_soundController.pause();
FireEvent("onPausePlayback");
}
function startPlayback() {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.playSlide(getCurrentSlide());
m_soundController.play();
FireEvent("onStartPlayback");
}
function startPlaybackFrom(position) {
setPlaybackMode(PM_PLAYING);
PM_PLAYING.playSlideFrom(getCurrentSlide(), position);
FireEvent("onStartPlayback");
}
function onSlidePlaybackComplete() {
var _local5 = getCurrentSlide();
var _local2 = getCurrentSlideIndex() + 1;
var _local3 = _local2 == getSlidesCount();
if (_local3) {
FireEvent("onPresentationPlaybackComplete");
if (m_presentation.isLooped()) {
gotoSlide(0);
}
} else {
var _local4 = _local5.getTransition().getAutoChange();
if (_local4) {
gotoSlideNoResync(_local2);
}
}
}
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));
}
}
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 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() {
gotoSlide(getCurrentSlideIndex() + 1);
}
function gotoNextSlideNoResync() {
gotoSlideNoResync(getCurrentSlideIndex() + 1);
}
function gotoPreviousSlide() {
gotoSlide(getCurrentSlideIndex() - 1);
}
function seek(position) {
if (!playbackControlIsAccessible()) {
return(undefined);
}
if (m_playbackMode != PM_SEEKING) {
var _local2 = isPlaying();
setPlaybackMode(PM_SEEKING);
PM_SEEKING.startSeek(getCurrentSlide(), _local2);
m_soundController.onSeek();
}
PM_SEEKING.seekTo(position);
}
function endSeek() {
if (!playbackControlIsAccessible()) {
return(undefined);
}
if (m_playbackMode == PM_SEEKING) {
m_soundController.onEndSeek();
if (PM_SEEKING.getPlayState()) {
startPlayback();
} else {
pausePlayback();
}
}
}
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();
}
function gotoPreviousStep() {
var _local2 = getCurrentStepIndex();
if (_local2 > 0) {
pauseAtStepEnd(_local2 - 1);
} else {
var _local5 = getCurrentSlide();
var _local4 = _local5.getAnimationSteps();
var _local6 = _local4.getStepEx(0);
var _local3 = getCurrentSlidePlaybackTime();
if (_local3 == 0) {
gotoSlideLastStepEnd(getCurrentSlideIndex() - 1);
} else {
pauseAtStepStart(0);
}
}
}
function getCurrentSlidePlaybackTime() {
return(getCurrentSlidePlaybackPosition() * getCurrentSlideDuration());
}
function gotoNextStep() {
var _local2 = getCurrentStepIndex();
var _local3 = getCurrentSlide().getAnimationSteps();
var _local4 = _local3.getStepsCount() - 1;
var _local5 = getCurrentSlidePlaybackTime();
if (_local2 < _local4) {
var _local6 = _local3.getStepEx(_local2);
if ((_local5 < _local6.getPauseStartTime()) || (_local6.getPauseTime() != undefined)) {
playFromStep(_local2 + 1);
} else {
playFromStepNoResync(_local2 + 1);
}
} else {
var _local7 = _local3.getStepEx(_local4);
if (_local5 < _local7.getPauseStartTime()) {
gotoStepEnd(_local4);
} else {
gotoNextSlideNoResync();
}
}
FireEvent("onStartPlayback");
}
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();
FireEvent("onStartPlayback");
}
function pauseAtStepStart(stepIndex) {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseAtStepStart(getCurrentSlide(), stepIndex);
m_soundController.pause();
m_soundController.resyncOnPlay();
FireEvent("onPausePlayback");
}
function pauseAtStepEnd(stepIndex) {
setPlaybackMode(PM_PAUSED);
PM_PAUSED.pauseAtStepEnd(getCurrentSlide(), stepIndex);
m_soundController.pause();
m_soundController.resyncOnPlay();
FireEvent("onPausePlayback");
}
var m_currentSlideIndex = undefined;
var m_oldStep = undefined;
}
Symbol 4034 MovieClip [__Packages.fsplayer.core.playback.presentation.IPresentationPlaybackMode] Frame 0
interface fsplayer.core.playback.presentation.IPresentationPlaybackMode
{
}
Symbol 4035 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, m_slide;
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) {
m_slide = 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 setSlide(slide) {
m_slide = slide;
m_playbackController = m_slide.getPlaybackController();
m_playbackController.setListener(this);
}
function gotoStepEnd(slide, stepIndex) {
setSlide(slide);
m_playbackController.gotoStepEnd(stepIndex);
}
}
Symbol 4036 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_currentSlideIndex, m_playbackController;
function CPresentationPlaybackModePaused (modeSwitcher) {
m_playbackModeSwitcher = modeSwitcher;
}
function setSlide(slide) {
m_currentSlideIndex = slide.getIndex();
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) {
m_currentSlideIndex = slide.getIndex();
}
function onModeSwitching() {
if (m_playbackController != undefined) {
m_playbackController.setListener(undefined);
m_playbackController = undefined;
}
}
function onSlidePositionChanged(position) {
m_playbackModeSwitcher.onSlidePositionChanged();
}
function onSlideEnterFrame() {
}
function onSlidePlaybackComplete() {
}
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);
}
}
Symbol 4037 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;
function CPresentationPlaybackModeWaiting (modeSwitcher) {
m_modeSwitcher = modeSwitcher;
}
function waitForSlide(slideIndex) {
m_slideIndex = slideIndex;
}
function onSlideLoadInit(slide) {
if ((m_slideIndex == undefined) || (m_slideIndex == slide.getIndex())) {
m_slideIndex = undefined;
m_modeSwitcher.switchToSlide(slide.getIndex());
}
}
function onModeSwitching() {
}
}
Symbol 4038 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_switchStartTime, m_transition, m_effect;
function CPresentationPlaybackModeSlideSwitching (modeSwitcher) {
m_modeSwitcher = modeSwitcher;
}
function switchToSlide(slide) {
m_oldSlide = m_newSlide;
m_newSlide = slide;
pauseOldSlide();
m_switchStartTime = fsplayer.util.CTimeUtils.getTickCount();
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_effect.applyEffect(0);
}
function onSlideLoadInit(slide) {
}
function onSlideEnterFrame() {
var _local4 = getSwitchingInterval();
var _local2 = m_transition.getDuration();
var _local3 = ((_local2 != 0) ? (Math.min(1, _local4 / _local2)) : 1);
if (_local3 >= 1) {
finishTransition();
m_modeSwitcher.startPlayback();
} else {
m_effect.applyEffect(_local3);
}
}
function onSlidePlaybackComplete() {
}
function onSlidePositionChanged(position) {
}
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();
}
}
}
Symbol 4039 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_playbackController.setListener(undefined);
m_playbackController = undefined;
}
}
function getPlayState() {
return(m_isPlaying);
}
function startSeek(slide, isPlaying) {
m_slide = slide;
m_isPlaying = isPlaying;
m_playbackController = slide.getPlaybackController();
m_playbackController.setListener(this);
}
function seekTo(position) {
m_slide.getPlaybackController().pauseAt(position);
}
function onSlidePositionChanged(position) {
m_modeSwitcher.onSlidePositionChanged();
}
function onSlideEnterFrame() {
}
function onSlidePlaybackComplete() {
}
}
Symbol 4040 MovieClip [__Packages.CSolidPlayer] Frame 0
class CSolidPlayer extends fsplayer.core.CPlayerImpl implements fsplayer.core.ILoadingControllersFactory, ISolidPlayerResourceLoader
{
var m_loadingControlClip, loadSkinAsset, setPesentationNode, m_slideLoadingController, m_thumbnailLoadingController, m_presentationBgSoundAssetLoadingController;
function CSolidPlayer (target, loadingControlClip) {
super(this, target);
m_loadingControlClip = loadingControlClip;
}
function loadSkinFromLibrary(source) {
loadSkinAsset(source);
}
function loadPresentationInfoFromString(presentationInfo) {
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.parseXML(presentationInfo);
setPesentationNode(_local2.firstChild);
}
function slideIsAvailable(slideIndex) {
m_slideLoadingController.slideIsAvailable(slideIndex);
}
function thumbnailIsAvailable(slideIndex) {
m_thumbnailLoadingController.thumbnailIsAvailable(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.CSynchronousPresentationBgSoundAssetLoadingController(soundAssets);
return(m_presentationBgSoundAssetLoadingController);
}
function createAssetLoader() {
return(new fsplayer.res.assets.CInternalAssetLoader());
}
}
Symbol 4041 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 4042 MovieClip [__Packages.fsplayer.core.loading.CSynchronousPresentationBgSoundAssetLoadingController] Frame 0
class fsplayer.core.loading.CSynchronousPresentationBgSoundAssetLoadingController implements fsplayer.core.loading.IPresentationBgSoundAssetLoadingController
{
var m_soundAssets, m_listener, m_soundIsAvailable, m_assetIdToLoad;
function CSynchronousPresentationBgSoundAssetLoadingController (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_soundIsAvailable) {
m_soundAssets.loadAsset(assetId, m_listener);
} else {
m_assetIdToLoad = assetId;
}
}
}
}
Symbol 4043 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 4044 MovieClip [__Packages.fsplayer.res.images.IImageAssetLoader] Frame 0
interface fsplayer.res.images.IImageAssetLoader
{
}
Symbol 4045 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 4046 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 4047 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 4048 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 4049 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.CAsynchronousPresentationBgSoundAssetLoadingController(soundAssets));
}
function createAssetLoader() {
return(new fsplayer.res.assets.CExternalAssetLoader());
}
}
Symbol 4050 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 4051 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 4052 MovieClip [__Packages.fsplayer.core.loading.CAsynchronousPresentationBgSoundAssetLoadingController] Frame 0
class fsplayer.core.loading.CAsynchronousPresentationBgSoundAssetLoadingController implements fsplayer.core.loading.IPresentationBgSoundAssetLoadingController
{
var m_soundAssets, m_listener;
function CAsynchronousPresentationBgSoundAssetLoadingController (soundAssets) {
m_soundAssets = soundAssets;
}
function setListener(listener) {
m_listener = listener;
}
function loadBgSoundAsset(assetId) {
if (assetId != "") {
m_soundAssets.loadAsset(assetId, m_listener);
m_listener.onSoundAssetLoadInit(m_soundAssets.getAsset(assetId));
}
}
}
Symbol 4053 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));
}
}
Symbol 4054 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 4055 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 4056 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 4057 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 4058 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 4059 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 4060 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 4061 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 4062 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 4063 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 4064 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 4065 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 4066 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 4067 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 4068 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 4069 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 4070 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 4071 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 4072 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 4073 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 4074 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 4075 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 4076 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 4077 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 4078 MovieClip [__Packages.fsplayer.core.playback.sounds.ITransitionSoundPlaybackCore] Frame 0
interface fsplayer.core.playback.sounds.ITransitionSoundPlaybackCore extends fsplayer.core.playback.sounds.ISoundPlaybackCore
{
}
Symbol 4079 MovieClip [__Packages.fsplayer.res.sounds.ITransitionSoundEx] Frame 0
interface fsplayer.res.sounds.ITransitionSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 4080 MovieClip [__Packages.fsplayer.core.loading.IPresentationBgSoundLoadingListenerEx] Frame 0
interface fsplayer.core.loading.IPresentationBgSoundLoadingListenerEx
{
}
Symbol 4081 MovieClip [__Packages.fsplayer.res.sounds.IPresentationBackgroundSoundEx] Frame 0
interface fsplayer.res.sounds.IPresentationBackgroundSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 4082 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_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();
}
function onPresentationBgSoundLoadInit(backgroundSound) {
m_bgSound = backgroundSound;
registerSound(m_bgSound);
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) {
var _local6 = getTransitionSound(slideIndex);
if (_local6) {
registerSound(_local6);
}
var _local7 = getEventSounds(slideIndex);
_local7.register();
var _local5 = getSlideBackgroundSound(slideIndex);
if (_local5) {
registerSound(_local5);
}
if (m_resyncOnSlideStart) {
resync();
}
for (var _local4 in m_activeSounds) {
var _local2 = m_activeSounds[_local4];
_local2.onStartSlideSwitching(slideIndex);
}
}
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() {
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() {
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 _local6 in m_activeSounds) {
var _local2 = m_activeSounds[_local6];
_local2.resync(_local4, _local5, _local3);
}
}
function onStartSlidePlayback(slideIndex) {
if (m_previousSlideIndex != undefined) {
var _local5 = m_slides.getSlide(m_previousSlideIndex);
if (_local5.hasEmbeddedFlashClips()) {
blink();
}
}
m_previousSlideIndex = slideIndex;
for (var _local4 in m_activeSounds) {
var _local2 = m_activeSounds[_local4];
_local2.onStartSlidePlayback(slideIndex);
}
}
function play() {
if (m_resyncOnPlay) {
resync();
} else {
for (var _local3 in m_activeSounds) {
var _local2 = m_activeSounds[_local3];
_local2.play();
}
}
}
function pause() {
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++;
}
}
var m_volume = 1;
var m_needResync = false;
var m_resyncOnSlideStart = false;
var m_resyncOnPlay = false;
}
Symbol 4083 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) {
}
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) {
}
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();
} else {
stop();
}
}
static var m_bgSoundName = "presentationBackgroundSound";
static var m_assetName = "presentationBackgroundSoundAsset";
}
Symbol 4084 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, 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) {
if (slideIndex == m_slideIndex) {
m_soundCore.startTransitionSound(this);
}
}
function onSlideSoundComplete(slideSound) {
if (m_looped) {
start();
}
}
function resync(slideIndex, stepIndex, time) {
if (slideIndex >= m_slideIndex) {
var _local4 = 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) {
startFrom(_local4);
} else if (m_looped) {
startFrom(_local4 - (_local6 * Math.floor(_local4 / _local6)));
} else {
stop();
}
}
}
}
Symbol 4085 MovieClip [__Packages.fsplayer.res.sounds.ISlideBackgroundSoundEx] Frame 0
interface fsplayer.res.sounds.ISlideBackgroundSoundEx extends fsplayer.res.sounds.ISoundEx
{
}
Symbol 4086 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, 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) {
startFrom(time);
}
function onStartSlidePlayback(slideIndex) {
start();
}
}
Symbol 4087 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_presenterInfo, m_slidesCollection, m_thumbnailsCollection;
function CPresentationInfo (presentation, presentationNode, thumbnailAssetLoadingController) {
m_presentation = presentation;
m_title = presentationNode.attributes.title;
m_frameRate = parseInt(presentationNode.attributes.frameRate);
var _local4 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "presenter");
var _local3 = fsplayer.util.CXMLUtils.findFirstChildNode(presentationNode, "slides");
m_presenterInfo = new fsplayer.api.impl.CPresenterInfo(_local4);
m_slidesCollection = new fsplayer.api.impl.CSlidesCollection(presentation.getSlides(), _local3);
m_thumbnailsCollection = new fsplayer.api.impl.CThumbnailsCollection(presentationNode, thumbnailAssetLoadingController);
}
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_presenterInfo.hasPresenter());
}
function getPresenterInfo() {
return(m_presenterInfo);
}
function getFrameRate() {
return(m_frameRate);
}
}
Symbol 4088 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(m_slides.getCount());
}
function getSlidesCount() {
return(m_slideInfos.length);
}
function getSlideInfo(slideIndex) {
if ((slideIndex < 0) || (slideIndex >= m_slideInfos.length)) {
trace(("slideIndex " + slideIndex) + " is out of range");
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]);
}
}
Symbol 4089 MovieClip [__Packages.fsplayer.api.impl.CSlideInfo] Frame 0
class fsplayer.api.impl.CSlideInfo implements fsplayer.api.ISlideInfo
{
var m_slide, m_title;
function CSlideInfo (slide, slideNode) {
m_slide = slide;
var _local5;
m_title = slideNode.attributes.title;
var _local2 = fsplayer.util.CXMLUtils.findFirstChildNode(slideNode, "notes");
for (var _local3 in _local2.childNodes) {
if (_local2.childNodes[_local3].nodeType == 3) {
m_notesText = _local2.childNodes[_local3].nodeValue;
break;
}
}
}
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());
}
var m_notesText = "";
}
Symbol 4090 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 4091 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 4092 MovieClip [__Packages.fsplayer.api.impl.CPresenterInfo] Frame 0
class fsplayer.api.impl.CPresenterInfo implements fsplayer.api.IPresenterInfo
{
var m_name, m_title, m_email, m_webSite, m_hasPresenter, m_biography, m_photo;
function CPresenterInfo (presenterNode) {
m_name = presenterNode.attributes.name;
m_title = presenterNode.attributes.title;
m_email = presenterNode.attributes.email;
m_webSite = presenterNode.attributes.web;
m_hasPresenter = (m_name != undefined) && (m_name != "");
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;
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);
}
}
function getName() {
return(m_name);
}
function getTitle() {
return(m_title);
}
function getBiographyText() {
return(m_biography);
}
function getEmail() {
return(m_email);
}
function getWebSite() {
return(m_webSite);
}
function hasPhoto() {
return(m_photo != undefined);
}
function getPhoto() {
return(m_photo);
}
function hasPresenter() {
return(m_hasPresenter);
}
}
Symbol 4093 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 4094 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 4095 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 3909 MovieClip 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 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 4098 MovieClip [__Packages.fsplayer.ui.skins.ISkin] Frame 0
interface fsplayer.ui.skins.ISkin
{
}
Symbol 4099 MovieClip [__Packages.fsplayer.api.IPlayer] Frame 0
interface fsplayer.api.IPlayer
{
}
Symbol 4100 MovieClip [__Packages.fsplayer.api.IPlayerListener] Frame 0
interface fsplayer.api.IPlayerListener
{
}
Symbol 4101 MovieClip [__Packages.fsplayer.api.IPresentationPlaybackController] Frame 0
interface fsplayer.api.IPresentationPlaybackController
{
}
Symbol 4102 MovieClip [__Packages.fsplayer.api.IPlaybackListener] Frame 0
interface fsplayer.api.IPlaybackListener
{
}
Symbol 4103 MovieClip [__Packages.fsplayer.api.ISoundController] Frame 0
interface fsplayer.api.ISoundController
{
}
Symbol 4104 MovieClip [__Packages.fsplayer.api.ISoundListener] Frame 0
interface fsplayer.api.ISoundListener
{
}
Symbol 4105 MovieClip [__Packages.fsplayer.api.IPresentationInfo] Frame 0
interface fsplayer.api.IPresentationInfo
{
}
Symbol 4106 MovieClip [__Packages.fsplayer.api.ISlidesCollection] Frame 0
interface fsplayer.api.ISlidesCollection
{
}
Symbol 4107 MovieClip [__Packages.fsplayer.api.ISlideInfo] Frame 0
interface fsplayer.api.ISlideInfo
{
}
Symbol 4108 MovieClip [__Packages.fsplayer.api.IAnimationSteps] Frame 0
interface fsplayer.api.IAnimationSteps
{
}
Symbol 4109 MovieClip [__Packages.fsplayer.api.IAnimationStep] Frame 0
interface fsplayer.api.IAnimationStep
{
}
Symbol 4110 MovieClip [__Packages.fsplayer.api.IThumbnailsCollection] Frame 0
interface fsplayer.api.IThumbnailsCollection
{
}
Symbol 4111 MovieClip [__Packages.fsplayer.api.ISlideThumbnail] Frame 0
interface fsplayer.api.ISlideThumbnail
{
}
Symbol 4112 MovieClip [__Packages.fsplayer.api.ISlideThumbnailLoadingListener] Frame 0
interface fsplayer.api.ISlideThumbnailLoadingListener
{
}
Symbol 4113 MovieClip [__Packages.fsplayer.api.IPresenterInfo] Frame 0
interface fsplayer.api.IPresenterInfo
{
}
Symbol 4114 MovieClip [__Packages.fsplayer.api.IPresenterPhoto] Frame 0
interface fsplayer.api.IPresenterPhoto
{
}
Symbol 4115 MovieClip [__Packages.fsplayer.api.IPresenterPhotoLoadingListener] Frame 0
interface fsplayer.api.IPresenterPhotoLoadingListener
{
}
Symbol 4116 MovieClip [__Packages.fsplayer.ui.skins.ISlideShowWindow] Frame 0
interface fsplayer.ui.skins.ISlideShowWindow
{
}
Symbol 4117 MovieClip [__Packages.fsplayer.ui.skins.ISkinListener] Frame 0
interface fsplayer.ui.skins.ISkinListener
{
}
Symbol 4118 MovieClip [__Packages.main.CSkinImpl] Frame 0
class main.CSkinImpl implements fsplayer.api.IPlaybackListener, fsplayer.ui.skins.ISkin, fsplayer.ui.skins.ISlideShowWindow
{
var m_target, m_slideAssetsTarget, m_player, m_settings, m_playbackController, m_presentation, m_listener, m_skinInitialized;
function CSkinImpl (target) {
m_target = target;
m_slideAssetsTarget = m_target.createEmptyMovieClip("assets", m_target.getNextHighestDepth());
}
function initialize(playerAPI) {
m_player = playerAPI;
m_settings = m_player.getSettings();
m_playbackController = m_player.getPlaybackController();
m_presentation = m_player.getPresentationInfo();
m_playbackController.addListener(this);
}
function onPausePlayback() {
}
function onStartPlayback() {
}
function onCurrentSlideIndexChanged(slideIndex) {
}
function onSlideLoadingComplete(slideIndex) {
}
function onSlidePositionChanged(position) {
}
function onAnimationStepChanged(stepIndex) {
}
function onPresentationPlaybackComplete() {
}
function getSlideShowWindow() {
return(this);
}
function setListener(listener) {
m_listener = listener;
if (!m_skinInitialized) {
m_skinInitialized = true;
m_listener.onSkinInit(this);
}
}
function getTarget() {
return(m_slideAssetsTarget);
}
}
Symbol 4119 MovieClip [__Packages.main.CNullSkin] Frame 0
class main.CNullSkin extends main.CSkinImpl
{
var m_slideAssetsMask, m_target, m_slideAssetsTarget, m_clickTag, m_keyboardController, m_player, m_settings, m_presentation, m_playbackController;
function CNullSkin (target) {
super(target);
m_slideAssetsMask = m_target.createEmptyMovieClip("mask", target.getNextHighestDepth());
m_slideAssetsTarget.setMask(m_slideAssetsMask);
var _local3 = target;
while (_local3._parent != undefined) {
_local3 = _local3._parent;
}
if (String(_local3.clickTAG).substr(0, 5) == "http:") {
m_clickTag = _local3.clickTAG;
}
}
function initialize(playerAPI) {
super.initialize(playerAPI);
m_keyboardController = new main.CKeyboardController(m_player, m_settings.navigation.keyboard);
createMask();
}
function getPresentation() {
return(m_presentation);
}
function getPlaybackController() {
return(m_playbackController);
}
function onRelease() {
var _local2 = m_settings.webLinks.slideAreaLink;
var _local3 = m_settings.navigation.mouse;
var _local4 = _local2.href;
if (m_clickTag) {
getURL (m_clickTag, (_local2.target ? (_local2.target) : "_self"));
} else if (_local4) {
getURL (_local4, _local2.target);
} else if ((_local3.enabled == 1) || (_local3.enabled == true)) {
if (_local3.target == "step") {
m_playbackController.gotoNextStep();
} else {
m_playbackController.gotoNextSlide();
}
}
}
function onPresentationPlaybackComplete() {
var _local2 = m_settings.webLinks.presentationEndLink;
if (_local2.href) {
getURL (_local2.href, _local2.target);
}
}
function createMask() {
var _local3 = m_player.getPresentationInfo();
var _local5 = _local3.getSlideWidth();
var _local4 = _local3.getSlideHeight();
var _local2 = m_slideAssetsMask;
_local2.beginFill(16711680, 100);
_local2.moveTo(0, 0);
_local2.lineTo(_local5, 0);
_local2.lineTo(_local5, _local4);
_local2.lineTo(0, _local4);
_local2.lineTo(0, 0);
_local2.endFill();
var _local6 = main.CMouseLayer.create(m_target, m_player, this);
if (m_clickTag) {
_local6.useHandCursor = true;
}
}
}
Symbol 4120 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();
core.CKeyboard.__get__instance().addEventHandler("keyDown", onKeyDown, this);
core.CKeyboard.__get__instance().addEventHandler("keyUp", onKeyUp, this);
m_rewindTimer = new core.CTimer();
m_rewindTimer.__set__time(m_presentation.getFrameRate());
m_rewindTimer.addEventHandler("tick", onRewindTimerTick, this);
}
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() {
var _local2 = m_playbackController;
var _local7 = m_slides.getSlidesCount();
var _local4 = _local7 - 1;
var _local3 = Key.getCode();
if (!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.getSlideInfo(0).isLoaded()) {
_local2.gotoSlide(0);
}
break;
case 35 :
if (!m_slides.getSlideInfo(_local4).isLoaded()) {
break;
}
_local2.gotoSlide(_local4);
}
} else {
switch (_local3) {
case 34 :
if (_local2.getCurrentSlideIndex() < _local4) {
_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 _local5 = m_soundController.getVolume();
var _local6 = Math.min(1, _local5 + VOLUME_STEP);
if (_local5 != _local6) {
m_soundController.setVolume(_local6);
}
break;
case 40 :
_local5 = m_soundController.getVolume();
_local6 = Math.max(0, _local5 - VOLUME_STEP);
if (_local5 != _local6) {
m_soundController.setVolume(_local6);
}
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 (!m_keyboardSeeking) {
m_keyboardSeeking = true;
m_seekingSpeed = SEEKING_SPEED;
m_rewindPosition = m_playbackController.getCurrentSlidePlaybackPosition();
m_rewindDirection = -1;
m_rewindTimer.start();
}
}
function onKeyRightDown() {
if (!m_keyboardSeeking) {
m_keyboardSeeking = true;
m_seekingSpeed = SEEKING_SPEED;
m_rewindPosition = m_playbackController.getCurrentSlidePlaybackPosition();
m_rewindDirection = 1;
m_rewindTimer.start();
}
}
function onKeyLeftUp() {
if (m_keyboardSeeking) {
m_keyboardSeeking = false;
m_rewindTimer.stop();
m_playbackController.endSeek();
}
}
function onKeyRightUp() {
if (m_keyboardSeeking) {
m_keyboardSeeking = false;
m_rewindTimer.stop();
m_playbackController.endSeek();
}
}
function onKeyUp() {
if (keyboardEnabled()) {
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;
}
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;
}
Symbol 4121 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 4122 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 4123 MovieClip [__Packages.core.CKeyboard] Frame 0
class core.CKeyboard extends core.CEventBroadcaster
{
function CKeyboard () {
super();
var thisPtr = this;
var _local3 = new Object();
_local3.onKeyDown = function () {
thisPtr.broadcastEvent("keyDown");
};
_local3.onKeyUp = function () {
thisPtr.broadcastEvent("keyUp");
};
Key.addListener(_local3);
}
static function get instance() {
if (m_instance === null) {
m_instance = new core.CKeyboard();
}
return(m_instance);
}
function isKeyDown(keyCode) {
return(Key.isDown(keyCode));
}
static var m_instance = null;
}
Symbol 4124 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 4096 MovieClip [spr199] Frame 1
this._lockroot = true;
function createSkin(mc) {
return(new main.CNullSkin(mc));
}
Symbol 4096 MovieClip [spr199] Frame 2
this._lockroot = false;
Symbol 4145 MovieClip Frame 1
this._lockroot = true;
Symbol 4145 MovieClip Frame 2
this._lockroot = false;
Symbol 4125 MovieClip [spr0] Frame 1
stop();
this.show17.onRelease = function () {
getURL("http://www.flashspring.com/?ref=watermark", "_self");
};
Symbol 4125 MovieClip [spr0] Frame 481
stop();
Symbol 4670 MovieClip [spr35] 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("snd1036f830_8");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 4670 MovieClip [spr35] Frame 2
this._lockroot = false;
Symbol 4659 MovieClip [spr10] Frame 1
stop();
this.show57.onRelease = function () {
getURL("http://www.flashspring.com/?ref=watermark", "_self");
};
Symbol 4659 MovieClip [spr10] Frame 85
stop();
Symbol 8605 MovieClip [spr44] 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("snd1036f830_9");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 8605 MovieClip [spr44] Frame 2
this._lockroot = false;
Symbol 8598 MovieClip [spr36] Frame 1
stop();
this.show73.onRelease = function () {
getURL("http://www.flashspring.com/?ref=watermark", "_self");
};
Symbol 8598 MovieClip [spr36] Frame 121
stop();
Symbol 12518 MovieClip [spr73] 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("snd1036f830_10");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 12518 MovieClip [spr73] Frame 2
this._lockroot = false;
Symbol 12511 MovieClip [spr45] Frame 1
stop();
this.show122.onRelease = function () {
getURL("http://www.flashspring.com/?ref=watermark", "_self");
};
Symbol 12511 MovieClip [spr45] Frame 183
stop();
Symbol 16493 MovieClip [spr98] 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("snd1036f830_11");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 16493 MovieClip [spr98] Frame 2
this._lockroot = false;
Symbol 16460 MovieClip [spr74] Frame 1
stop();
this.show168.onRelease = function () {
getURL("http://www.flashspring.com/?ref=watermark", "_self");
};
Symbol 16460 MovieClip [spr74] Frame 14
stop();
Symbol 20417 MovieClip [spr109] 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("snd1036f830_12");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 20417 MovieClip [spr109] Frame 2
this._lockroot = false;
Symbol 20407 MovieClip [spr99] Frame 1
stop();
this.show187.onRelease = function () {
getURL("http://www.flashspring.com/?ref=watermark", "_self");
};
Symbol 20407 MovieClip [spr99] Frame 74
stop();
Symbol 24339 MovieClip [spr171] 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("snd1036f830_13");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 24339 MovieClip [spr171] Frame 2
this._lockroot = false;
Symbol 28247 MovieClip Frame 1
this._lockroot = true;
Symbol 28247 MovieClip Frame 2
this._lockroot = false;
Symbol 24332 MovieClip [spr110] Frame 1
stop();
this.show301.onRelease = function () {
getURL("http://www.flashspring.com/?ref=watermark", "_self");
};
Symbol 24332 MovieClip [spr110] Frame 121
stop();
Symbol 28360 MovieClip [spr180] 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("snd1036f830_14");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 28360 MovieClip [spr180] Frame 2
this._lockroot = false;
Symbol 28353 MovieClip [spr172] Frame 1
stop();
this.show317.onRelease = function () {
getURL("http://www.flashspring.com/?ref=watermark", "_self");
};
Symbol 28353 MovieClip [spr172] Frame 121
stop();
Symbol 32296 MovieClip [spr192] 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("snd1036f830_15");
soundObject.onSoundComplete = function () {
if (listener != undefined) {
listener.onSoundComplete();
}
};
}
return(soundObject);
}
var soundObject;
var listener = undefined;
Symbol 32296 MovieClip [spr192] Frame 2
this._lockroot = false;
Symbol 32278 MovieClip [spr181] Frame 1
stop();
this.show338.onRelease = function () {
getURL("http://www.flashspring.com/?ref=watermark", "_self");
};
Symbol 32278 MovieClip [spr181] Frame 85
stop();
Symbol 36207 MovieClip [spr193] Frame 1
stop();
this.show344.onRelease = function () {
getURL("http://www.flashspring.com/?ref=watermark", "_self");
};
stop();
Symbol 36216 MovieClip Frame 1
this._lockroot = true;
Symbol 36216 MovieClip Frame 2
this._lockroot = false;
Symbol 36214 MovieClip [spr196] Frame 1
this.show345.onRelease = function () {
getURL("http://www.flashspring.com/?ref=watermark", "_self");
};
Symbol 36214 MovieClip [spr196] Frame 121
stop();