Instance of Symbol 16 MovieClip "loader_mc" in Frame 1
//component parameters
onClipEvent (construct) {
borderColor = 0;
backgroundColor = 16711680 /* 0xFF0000 */;
barColor = 255;
tColor = 0;
jumpFrame = "content";
}
onClipEvent (enterFrame) {
bTotal = _parent.getBytesTotal();
bLoaded = _parent.getBytesLoaded();
percentage = 100 * (_parent.getBytesLoaded() / _parent.getBytesTotal());
this.bar_mc._xscale = percentage;
if (bLoaded >= bTotal) {
bLoaded = 100;
this.msg_mc.DynamicText_txt.text = 100;
_parent.gotoAndPlay(jumpFrame);
} else {
var frame = int(bLoaded / (bTotal / 100));
this.msg_mc.DynamicText_txt.text = frame;
}
}
Frame 2
stop();
Frame 14
stop();
Instance of Symbol 7 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (load) {
var myColor = new Color(this);
myColor.setRGB(_parent._parent.backgroundColor);
delete myColor;
}
Instance of Symbol 9 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (load) {
var myColor = new Color(this);
myColor.setRGB(_parent._parent.barColor);
delete myColor;
}
Instance of Symbol 3 MovieClip in Symbol 16 MovieClip Frame 1
onClipEvent (load) {
var myColor = new Color(this);
myColor.setRGB(_parent.borderColor);
delete myColor;
}
Instance of Symbol 15 MovieClip "msg_mc" in Symbol 16 MovieClip Frame 1
onClipEvent (load) {
var myColor = new Color(this);
myColor.setRGB(_parent.tColor);
delete myColor;
}
Symbol 16 MovieClip Frame 20
gotoAndPlay (1);
Symbol 16 MovieClip Frame 21
_parent.gotoAndStop(jumpFrame);
stop();
Symbol 16 MovieClip Frame 35
_parent.gotoAndStop(jumpFrame);
stop();
Symbol 46 MovieClip [__Packages.de.alex_uhlmann.animationpackage.IAnimationPackage] Frame 0
interface de.alex_uhlmann.animationpackage.IAnimationPackage
{
}
Symbol 47 MovieClip [__Packages.de.alex_uhlmann.animationpackage.APCore] Frame 0
class de.alex_uhlmann.animationpackage.APCore implements de.alex_uhlmann.animationpackage.IAnimationPackage
{
static var apCoreInstance, animationClip, apCentralMC, addListener, broadcastMessage, removeListener;
var ID, dispatchEventOverridden, dispatchEvent, addEventListenerOverridden, addEventListener, removeEventListenerOverridden, removeEventListener, dispatchEventOrig, addEventListenerOrig, removeEventListenerOrig;
function APCore () {
}
function init() {
ID = ++instanceCount;
if (!arguments[0]) {
dispatchEventOverridden = dispatchEvent;
addEventListenerOverridden = addEventListener;
removeEventListenerOverridden = removeEventListener;
com.gskinner.events.GDispatcher.initialize(this);
dispatchEventOrig = dispatchEvent;
addEventListenerOrig = addEventListener;
removeEventListenerOrig = removeEventListener;
}
}
static function initialize(Void) {
if (apCoreInstance == null) {
apCoreInstance = new de.alex_uhlmann.animationpackage.APCore();
AsBroadcaster.initialize(de.alex_uhlmann.animationpackage.APCore);
if (animationClip == null) {
setAnimationClip(_root);
}
createCentralMC();
calculateFPS();
de.alex_uhlmann.animationpackage.animation.AnimationCore.easing_def = _global.com.robertpenner.easing.Linear.easeNone;
}
return(apCoreInstance);
}
static function getAnimationClip(Void) {
return(animationClip);
}
static function setAnimationClip(target) {
var _local1 = apCoreInstance;
animationClip = target.createEmptyMovieClip("apContainer_mc", _local1.getNextDepth(target));
animationClip.onUnload = ascb.util.Proxy.create(apCoreInstancee, _local1.onAnimationClipOverwrite);
}
function onAnimationClipOverwrite(Void) {
trace(((("ERROR: APCore.animationClip in " + this) + " has been overwritten.") + " Check your code for any depth overwriting or initialize AP") + " within a specified Movieclip. See APCore.setAnimationClip.");
}
static function createCentralMC(Void) {
if (apCentralMC == null) {
apCentralMC = animationClip.createEmptyMovieClip("apCentral_mc", apCoreInstance.getNextDepth(animationClip));
de.andre_michelle.events.ImpulsDispatcher.initialize(apCentralMC);
}
}
static function getCentralMC(Void) {
return(apCentralMC);
}
static function calculateFPS(Void) {
if ((fps == 0) && (isCalculatingFPS == false)) {
watchFPS();
addListener(de.alex_uhlmann.animationpackage.APCore);
}
}
static function onFPSCalculated(Void) {
unwatchFPS();
}
static function checkFPS(Void) {
var _local1 = de.andre_michelle.events.ImpulsDispatcher.getFPS();
if (_local1 != 0) {
fps = _local1;
broadcastMessage("onFPSCalculated", fps);
de.andre_michelle.events.ImpulsDispatcher.removeImpulsListener(de.alex_uhlmann.animationpackage.APCore);
}
}
static function watchFPS(Void) {
if (isCalculatingFPS == true) {
removeListener(de.alex_uhlmann.animationpackage.APCore);
} else {
de.andre_michelle.events.ImpulsDispatcher.watchFPS();
de.andre_michelle.events.ImpulsDispatcher.addImpulsListener(de.alex_uhlmann.animationpackage.APCore, "checkFPS");
isCalculatingFPS = true;
}
}
static function unwatchFPS(Void) {
isCalculatingFPS = false;
de.andre_michelle.events.ImpulsDispatcher.unwatchFPS();
}
static function getFPS(Void) {
var _local1 = de.andre_michelle.events.ImpulsDispatcher.getFPS();
if ((_local1 == 0) && (fps != 0)) {
_local1 = fps;
}
return(_local1);
}
static function setFPS(fps_local) {
fps = fps_local;
}
static function milliseconds2frames(ms) {
return(Math.round((ms / 1000) * getFPS()));
}
function createClip(timelineObj) {
var _local2 = timelineObj.mc;
var _local5 = timelineObj.parentMC;
var _local4 = timelineObj.name;
var _local7 = timelineObj.x;
var _local6 = timelineObj.y;
if (_local5 != null) {
_local2 = createMC(_local5, _local4);
} else if (_local2 == null) {
var _local8;
_local8 = animationClip;
_local2 = createMC(_local8, _local4);
}
if ((_local7 != null) && (_local6 != null)) {
_local2._x = _local7;
_local2._y = _local6;
}
return(_local2);
}
function createMC(parentMC, name) {
var _local2 = getNextDepth(parentMC);
return(parentMC.createEmptyMovieClip((name + _local2) + "_mc", _local2));
}
function getNextDepth(mc) {
var _local3 = -Infinity;
var _local4;
for (_local4 in mc) {
var _local1 = mc[_local4];
if ((_local1.getDepth() != null) && (_local1._parent == mc)) {
_local3 = Math.max(_local3, _local1.getDepth());
}
}
return(((_local3 > -1) ? (_local3++) : 0));
}
function getID(Void) {
return(ID);
}
function toString(Void) {
return("APCore");
}
static var fps = 0;
static var isCalculatingFPS = false;
static var instanceCount = 0;
}
Symbol 48 MovieClip [__Packages.com.gskinner.events.GDispatcher] Frame 0
class com.gskinner.events.GDispatcher
{
var gDispatcher_listeners;
function GDispatcher () {
}
static function initialize(p_obj) {
if (_instance == undefined) {
_instance = new com.gskinner.events.GDispatcher();
}
p_obj.dispatchEvent = _instance.dispatchEvent;
p_obj.eventListenerExists = _instance.eventListenerExists;
p_obj.addEventListener = _instance.addEventListener;
p_obj.removeEventListener = _instance.removeEventListener;
p_obj.removeAllEventListeners = _instance.removeAllEventListeners;
}
static function _indexOfListener(p_listeners, p_obj, p_function) {
var _local3 = p_listeners.length;
var _local2 = -1;
while (_local2++ , _local2 < _local3) {
var _local1 = p_listeners[_local2];
if ((_local1.o == p_obj) && (_local1.f == p_function)) {
return(_local2);
}
}
return(-1);
}
static function _dispatchEvent(p_dispatchObj, p_listeners, p_eventObj) {
var _local5;
for (_local5 in p_listeners) {
var _local1 = p_listeners[_local5].o;
var _local3 = typeof(_local1);
var _local2 = p_listeners[_local5].f;
if ((_local3 == "object") || (_local3 == "movieclip")) {
if ((_local1.handleEvent != undefined) && (_local2 == undefined)) {
_local1.handleEvent(p_eventObj);
}
if (_local2 == undefined) {
_local2 = p_eventObj.type;
}
_local1[_local2](p_eventObj);
} else {
_local1.apply(p_dispatchObj, [p_eventObj]);
}
}
}
function dispatchEvent(p_eventObj) {
if (p_eventObj.type == "ALL") {
return(undefined);
}
if (p_eventObj.target == undefined) {
p_eventObj.target = this;
}
this[p_eventObj.type + "Handler"](p_eventObj);
var _local3 = gDispatcher_listeners[p_eventObj.type];
if (_local3 != undefined) {
_dispatchEvent(this, _local3, p_eventObj);
}
_local3 = gDispatcher_listeners.ALL;
if (_local3 != undefined) {
_dispatchEvent(this, _local3, p_eventObj);
}
}
function eventListenerExists(p_event, p_obj, p_function) {
return(_indexOfListener(gDispatcher_listeners[p_event], p_obj, p_function) != -1);
}
function addEventListener(p_event, p_obj, p_function) {
if (gDispatcher_listeners == undefined) {
gDispatcher_listeners = {};
_global.ASSetPropFlags(this, gDispatcher_listeners, 1);
}
var _local3 = gDispatcher_listeners[p_event];
if (_local3 == undefined) {
_local3 = [];
gDispatcher_listeners[p_event] = _local3;
}
if (_indexOfListener(_local3, p_obj, p_function) == -1) {
_local3.push({o:p_obj, f:p_function});
}
}
function removeEventListener(p_event, p_obj, p_function) {
var _local2 = gDispatcher_listeners[p_event];
if (_local2 == undefined) {
return(undefined);
}
var _local3 = _indexOfListener(_local2, p_obj, p_function);
if (_local3 != -1) {
_local2.splice(_local3, 1);
}
}
function removeAllEventListeners(p_event) {
if (p_event == undefined) {
delete gDispatcher_listeners;
} else {
delete gDispatcher_listeners[p_event];
}
}
static var _instance = undefined;
}
Symbol 49 MovieClip [__Packages.de.alex_uhlmann.animationpackage.utility.IVisitorElement] Frame 0
interface de.alex_uhlmann.animationpackage.utility.IVisitorElement
{
}
Symbol 50 MovieClip [__Packages.de.alex_uhlmann.animationpackage.utility.IVisitor] Frame 0
interface de.alex_uhlmann.animationpackage.utility.IVisitor
{
}
Symbol 51 MovieClip [__Packages.com.robertpenner.easing.Linear] Frame 0
class com.robertpenner.easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
var _local1 = ((c * t) / d) + b;
return(_local1);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 52 MovieClip [__Packages.de.alex_uhlmann.animationpackage.animation.AnimationCore] Frame 0
class de.alex_uhlmann.animationpackage.animation.AnimationCore extends de.alex_uhlmann.animationpackage.APCore implements de.alex_uhlmann.animationpackage.utility.IVisitorElement
{
var initAnimation, invokeAnimation, startValue, startValues, endValue, endValues, currentValue, currentValues, myAnimator, callback, easing, duration, mc, mcs, myPause;
function AnimationCore (noEvents) {
super.init(noEvents);
}
function init() {
if (arguments[0] instanceof Array) {
var _local3 = arguments[0];
arguments.shift();
arguments.unshift(_local3.pop());
initAnimation.apply(this, arguments);
setStartValue(_local3[0]);
} else if (arguments.length > 0) {
initAnimation.apply(this, arguments);
}
}
function run() {
init.apply(this, arguments);
invokeAnimation(0, 100);
}
function animate(start, end) {
invokeAnimation(start, end);
}
function goto(percentage) {
invokeAnimation(percentage);
}
function accept(visitor) {
visitor.visit(this);
}
function getStartValue(Void) {
return(startValue);
}
function setStartValue(startValue, optional) {
if ((startInitialized == false) || (optional == null)) {
startInitialized = true;
this.startValue = startValue;
return(true);
}
return(false);
}
function getStartValues(Void) {
return(startValues);
}
function setStartValues(startValues, optional) {
if ((startInitialized == false) || (optional != true)) {
startInitialized = true;
this.startValues = startValues;
return(true);
}
return(false);
}
function getEndValue(Void) {
return(endValue);
}
function setEndValue(endValue) {
this.endValue = endValue;
return(true);
}
function getEndValues(Void) {
return(endValues);
}
function setEndValues(endValues) {
this.endValues = endValues;
return(true);
}
function getCurrentValue(Void) {
return(currentValue);
}
function getCurrentValues(Void) {
return(currentValues);
}
function getCurrentPercentage(Void) {
var _local6;
var _local5;
var _local7;
if (startValue == null) {
var _local3 = getStartValues();
if (_local3 == null) {
return(0);
}
var _local4 = getEndValues();
if (_local4 == null) {
return(0);
}
var _local2 = _local3.length;
do {
_local2--;
if (_local2 <= -1) {
break;
}
} while (_local3[_local2] == _local4[_local2]);
_local6 = _local3[_local2];
_local5 = _local4[_local2];
if (getCurrentValues()[_local2] != null) {
_local7 = getCurrentValues()[_local2];
// unexpected jump
}
return(0);
}
if (getStartValue() != null) {
_local6 = getStartValue();
} else {
return(0);
}
if (getEndValue() != null) {
_local5 = getEndValue();
} else {
return(0);
}
if (getCurrentValue() != null) {
_local7 = getCurrentValue();
} else {
return(0);
}
if (_local6 < _local5) {
return(((_local7 - _local6) / (_local5 - _local6)) * 100);
}
return(100 - (((_local7 - _local5) / (_local6 - _local5)) * 100));
}
function getDurationElapsed(Void) {
return(myAnimator.getDurationElapsed());
}
function getDurationRemaining(Void) {
return(myAnimator.getDurationRemaining());
}
function animationStyle(duration, easing, callback) {
var _local3;
if (typeof(easing) == "string") {
_local3 = easing;
this.callback = _local3;
this.easing = easing_def;
} else if (easing == null) {
this.easing = easing_def;
this.callback = callback;
} else if (easing instanceof Array) {
this.easing = easing[0];
easingParams = easing.slice(1);
this.callback = callback;
} else {
_local3 = easing;
this.easing = _local3;
this.callback = callback;
}
this.duration = ((duration == null) ? (duration_def) : (duration));
if (this.callback == null) {
this.callback = callback_def;
}
}
function get movieclip() {
return(mc);
}
function set movieclip(mc) {
this.mc = mc;
//return(movieclip);
}
function get movieclips() {
return(mcs);
}
function set movieclips(mcs) {
this.mcs = mcs;
//return(movieclips);
}
function checkIfRounded(Void) {
return(rounded);
}
function roundResult(rounded) {
this.rounded = rounded;
}
function forceEnd(forceEndVal) {
this.forceEndVal = forceEndVal;
}
function getOptimizationMode(Void) {
return(equivalentsRemoved);
}
function setOptimizationMode(optimize) {
equivalentsRemoved = optimize;
}
static function getOptimizationModes(Void) {
return(equivalentsRemoved_static);
}
static function setOptimizationModes(optimize) {
equivalentsRemoved_static = optimize;
}
function getTweenMode(Void) {
if (tweenMode == null) {
return(tweenModes);
}
return(tweenMode);
}
function setTweenMode(tweenMode) {
if (tweenMode == INTERVAL) {
this.tweenMode = tweenMode;
durationMode = MS;
} else if (tweenMode == FRAMES) {
this.tweenMode = tweenMode;
durationMode = FRAMES;
} else {
return(false);
}
return(true);
}
static function getTweenModes(Void) {
return(tweenModes);
}
static function setTweenModes(t) {
if (t == INTERVAL) {
tweenModes = t;
durationModes = MS;
} else if (t == FRAMES) {
tweenModes = t;
durationModes = FRAMES;
} else {
return(false);
}
return(true);
}
function getDurationMode(Void) {
if (durationMode == null) {
return(durationModes);
}
return(durationMode);
}
function setDurationMode(durationMode) {
var _local3 = getTweenMode() == FRAMES;
var _local4 = (durationMode == MS) || (durationMode == FRAMES);
if (_local3 && (_local4)) {
this.durationMode = durationMode;
return(true);
}
return(false);
}
static function getDurationModes(Void) {
return(durationModes);
}
static function setDurationModes(d) {
var _local2 = tweenModes == FRAMES;
var _local3 = (d == MS) || (d == FRAMES);
if (_local2 && (_local3)) {
durationModes = d;
return(true);
}
return(false);
}
static function getOverwriteModes(Void) {
return(overwriteModes);
}
static function setOverwriteModes(overwriteModes) {
de.alex_uhlmann.animationpackage.animation.AnimationCore.overwriteModes = overwriteModes;
}
static function pauseAll(Void) {
de.alex_uhlmann.animationpackage.utility.TimeTween.pauseAll();
de.alex_uhlmann.animationpackage.utility.FrameTween.pauseAll();
}
static function resumeAll(Void) {
de.alex_uhlmann.animationpackage.utility.TimeTween.resumeAll();
de.alex_uhlmann.animationpackage.utility.FrameTween.resumeAll();
}
function isTweening(Void) {
return(tweening);
}
function isPaused(Void) {
return(paused);
}
function stop(Void) {
if ((locked == true) || (tweening == false)) {
paused = false;
return(false);
}
tweening = false;
paused = false;
myAnimator.stopMe();
return(true);
}
function pause(duration) {
if ((locked == true) || (tweening == false)) {
return(false);
}
tweening = false;
paused = true;
myAnimator.paused = true;
if (duration != null) {
if (myPause == null) {
myPause = new de.alex_uhlmann.animationpackage.utility.Pause();
} else {
myPause.stop();
}
if (getTweenMode() == INTERVAL) {
myPause.waitMS(duration, this, "resume");
} else if (getTweenMode() == FRAMES) {
if (getDurationMode() == MS) {
duration = de.alex_uhlmann.animationpackage.APCore.milliseconds2frames(duration);
}
myPause.waitFrames(duration, this, "resume");
}
}
myAnimator.pauseMe();
return(true);
}
function resume(Void) {
if ((locked == true) || (myAnimator.paused == false)) {
return(false);
}
tweening = true;
paused = false;
myAnimator.paused = false;
myAnimator.resumeMe();
return(true);
}
function lock(Void) {
if (locked == false) {
locked = true;
}
}
function unlock(Void) {
if (locked == true) {
locked = false;
}
}
function toString(Void) {
return("AnimationCore");
}
static var duration_def = 1000;
static var easing_def = com.robertpenner.easing.Linear.easeNone;
static var callback_def = null;
static var INTERVAL = "INTERVAL";
static var FRAMES = "FRAMES";
static var MS = "MS";
static var tweenModes = INTERVAL;
static var durationModes = MS;
static var overwriteModes = true;
static var equivalentsRemoved_static = false;
var omitEvent = false;
var easingParams = null;
var startInitialized = false;
var tweenMode = null;
var durationMode = null;
var equivalentsRemoved = null;
var rounded = false;
var forceEndVal = true;
var locked = false;
var tweening = false;
var paused = false;
}
Symbol 53 MovieClip [__Packages.de.alex_uhlmann.animationpackage.animation.IAnimatable] Frame 0
interface de.alex_uhlmann.animationpackage.animation.IAnimatable extends de.alex_uhlmann.animationpackage.IAnimationPackage
{
}
Symbol 54 MovieClip [__Packages.de.alex_uhlmann.animationpackage.animation.ISingleAnimatable] Frame 0
interface de.alex_uhlmann.animationpackage.animation.ISingleAnimatable extends de.alex_uhlmann.animationpackage.animation.IAnimatable
{
}
Symbol 55 MovieClip [__Packages.de.alex_uhlmann.animationpackage.animation.IMultiAnimatable] Frame 0
interface de.alex_uhlmann.animationpackage.animation.IMultiAnimatable extends de.alex_uhlmann.animationpackage.animation.IAnimatable
{
}
Symbol 56 MovieClip [__Packages.de.alex_uhlmann.animationpackage.utility.Animator] Frame 0
class de.alex_uhlmann.animationpackage.utility.Animator extends de.alex_uhlmann.animationpackage.animation.AnimationCore implements de.alex_uhlmann.animationpackage.animation.ISingleAnimatable, de.alex_uhlmann.animationpackage.animation.IMultiAnimatable
{
static var animations;
var animationStyle, duration, easing, callback, perc, hiddenCaller, caller, arrayMode, initVal, multiSetter, end, start, startInitialized, endVal, setStartValues, setEndValues, setStartValue, setEndValue, arrayLength, setter, startPerc, endPerc, durationInFrames, myAnimator, myTween, startValues, endValues, startValue, endValue, multiStart;
function Animator () {
super();
animationStyle();
}
function run() {
if (arguments.length > 0) {
animationStyle(arguments[0], arguments[1], arguments[2]);
} else {
animationStyle(duration, easing, callback);
}
if (initAnimator() == false) {
return(undefined);
}
initAnimation(0, 100);
}
function animate(start, end) {
if (initAnimator() == false) {
return(undefined);
}
initAnimation(start, end);
}
function goto(percentage) {
if (initAnimator() == false) {
return(undefined);
}
perc = percentage;
hiddenCaller = caller;
var _local2 = cloneAnimator(this);
if (!caller.omitEvent) {
_local2.addEventListener("onUpdate", this);
}
caller = _local2;
initStartEndValues(percentage);
var _local3 = initTweenAction();
if (!arrayMode) {
hiddenCaller.currentValue = initVal;
} else {
hiddenCaller.currentValues = initVal;
}
_local3[retrieveSetters().update](initVal);
caller = hiddenCaller;
}
function cloneAnimator(animator) {
var _local1 = new de.alex_uhlmann.animationpackage.utility.Animator();
_local1.omitEvent = animator.omitEvent;
_local1.caller = animator.caller;
_local1.start = animator.start;
_local1.end = animator.end;
_local1.setter = animator.setter;
_local1.multiStart = animator.multiStart;
_local1.multiSetter = animator.multiSetter;
_local1.roundResult(animator.caller.rounded);
return(_local1);
}
function onUpdate(e) {
e.target = hiddenCaller;
if (perc == 0) {
e.type = "onStart";
dispatch(e);
} else if (perc == 100) {
e.type = "onEnd";
dispatch(e);
} else {
dispatch(e);
}
}
function dispatchOnStart() {
if (!arrayMode) {
caller.currentValue = initVal;
} else {
caller.currentValues = initVal;
}
caller.dispatchEvent.apply(caller, [{type:"onStart", target:caller, value:initVal}]);
}
function dispatch(e) {
hiddenCaller.dispatchEvent.apply(hiddenCaller, [e]);
}
function initAnimator(Void) {
if (caller == null) {
caller = this;
}
if (multiSetter != null) {
createMultiSetter(multiSetter);
}
if (caller.equivalentsRemoved == true) {
if (splitEquivalents() == "ALL") {
return(false);
}
}
if ((de.alex_uhlmann.animationpackage.animation.AnimationCore.equivalentsRemoved_static == true) && (caller.equivalentsRemoved == null)) {
if (splitEquivalents() == "ALL") {
return(false);
}
}
saveAnimation();
var _local2 = end.length;
if (start.length != _local2) {
return(false);
}
startInitialized = false;
if (_local2 > 1) {
arrayMode = true;
initVal = start;
endVal = end;
setStartValues(initVal);
setEndValues(endVal);
} else {
arrayMode = false;
initVal = start[0];
endVal = end[0];
setStartValue(initVal);
setEndValue(endVal);
}
arrayLength = _local2;
return(true);
}
function saveAnimation(Void) {
if (de.alex_uhlmann.animationpackage.animation.AnimationCore.getOverwriteModes()) {
var _local4 = setter.length;
while (_local4-- , _local4 > -1) {
var _local2 = makeKey(setter[_local4]);
if (_local2 == "0") {
return(undefined);
}
if (animations == null) {
animations = new Object();
}
if (animations[_local2] != null) {
var _local3 = animations[_local2];
_local3.stop();
}
animations[_local2] = caller;
}
}
}
function makeKey(setter) {
var _local2;
if (typeof(setter[0]) == "movieclip") {
_local2 = String(setter[0]);
} else {
if (caller.overwriteProperty == null) {
return("0");
}
_local2 = setter[0][caller.overwriteProperty];
}
return(_local2 + setter[1]);
}
function deleteAnimation(Void) {
if (animations == null) {
return(undefined);
}
var _local3 = setter.length;
while (_local3-- , _local3 > -1) {
var _local2 = makeKey(setter[_local3]);
if (_local2 == "0") {
return(undefined);
}
delete animations[_local2];
}
}
function splitEquivalents(Void) {
var _local3 = end.length;
var _local2 = _local3;
while (_local2-- , _local2 > -1) {
if (start[_local2] == end[_local2]) {
start.splice(_local2, 1);
end.splice(_local2, 1);
setter.splice(_local2, 1);
}
}
if (start.length == 0) {
caller.dispatchEvent({type:"onEnd", target:caller, value:null});
return("ALL");
}
if (end.length == _local3) {
return("NONE");
}
if (end.length < _local3) {
return("SOME");
}
}
function hasEquivalents(Void) {
var _local2;
var _local3 = simulateSplitEquivalents();
if (_local3 == "NONE") {
_local2 = false;
} else {
_local2 = true;
}
return(_local2);
}
function simulateSplitEquivalents(Void) {
var _local4 = start.length;
var _local3 = end.length;
var _local5 = setter.length;
var _local6 = end.length;
var _local2 = _local6;
while (_local2-- , _local2 > -1) {
if (start[_local2] == end[_local2]) {
_local4--;
_local3--;
_local5--;
}
}
if (_local4 == 0) {
return("ALL");
}
if (_local3 == _local6) {
return("NONE");
}
if (_local3 < _local6) {
return("SOME");
}
}
function initAnimation(start, end) {
startPerc = start;
endPerc = end;
if (caller.getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.INTERVAL) {
invokeAnimation(start, end);
} else if (caller.getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.FRAMES) {
prepareForDurationMode(start, end);
}
}
function prepareForDurationMode(start, end) {
if (caller.getDurationMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.MS) {
prepareForDurationModeMS();
} else if (caller.getDurationMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.FRAMES) {
prepareForDurationModeFRAMES(start, end);
}
}
function prepareForDurationModeMS() {
var _local2 = de.alex_uhlmann.animationpackage.APCore.getFPS();
if (_local2 == 0) {
de.alex_uhlmann.animationpackage.APCore.calculateFPS();
de.alex_uhlmann.animationpackage.APCore.addListener(this);
} else {
onFPSCalculated(_local2);
}
}
function prepareForDurationModeFRAMES(start, end) {
durationInFrames = duration;
invokeAnimation(start, end);
}
function onFPSCalculated(fps) {
de.alex_uhlmann.animationpackage.APCore.removeListener(this);
durationInFrames = de.alex_uhlmann.animationpackage.APCore.milliseconds2frames(duration);
invokeAnimation(startPerc, endPerc);
}
function invokeAnimation(start, end) {
finished = false;
if (caller == this) {
myAnimator = this;
}
caller.tweening = true;
initStartEndValues(start, end);
var _local3 = initTweenAction();
if (caller.getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.INTERVAL) {
initializeTimeTween(_local3);
} else if (caller.getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.FRAMES) {
initializeFrameTween(_local3);
}
var _local2 = retrieveSetters();
myTween.setTweenHandlers(_local2.update, _local2.end);
myTween.easingEquation = easing;
myTween.start();
dispatchOnStart();
}
function initializeTimeTween(myTweenAction) {
myTween = new de.alex_uhlmann.animationpackage.utility.TimeTween(myTweenAction, initVal, endVal, duration, caller.easingParams);
}
function initializeFrameTween(myTweenAction) {
myTween = new de.alex_uhlmann.animationpackage.utility.FrameTween(myTweenAction, initVal, endVal, durationInFrames, caller.easingParams);
}
function initStartEndValues(start, end) {
if (arrayLength > 1) {
var _local3 = [];
var _local4 = [];
var _local2;
var _local5 = arrayLength;
_local2 = 0;
while (_local2 < _local5) {
_local3.push(((start / 100) * (endValues[_local2] - startValues[_local2])) + startValues[_local2]);
_local4.push(((end / 100) * (endValues[_local2] - startValues[_local2])) + startValues[_local2]);
_local2++;
}
initVal = _local3;
endVal = _local4;
} else {
var _local8 = endValue - startValue;
var _local9 = ((start / 100) * _local8) + startValue;
var _local10 = ((end / 100) * _local8) + startValue;
initVal = _local9;
endVal = _local10;
}
}
function initTweenAction(Void) {
var _local4 = setter[0][0];
var _local3 = setter[0][1];
var _local5 = _local4[_local3];
var _local2 = new de.alex_uhlmann.animationpackage.utility.TweenAction(this, initVal, endVal);
if (arrayMode == false) {
_local2.initSingleMode(_local4, _local3, _local5);
} else {
_local2.initMultiMode(arrayLength);
}
return(_local2);
}
function retrieveSetters(Void) {
computeSetters();
var _local2 = new Object();
if (arrayMode == false) {
if (!caller.rounded) {
if (identifierToken == 0) {
_local2.update = "op";
} else if (identifierToken == 1) {
_local2.update = "om";
} else {
_local2.update = "o";
}
} else if (identifierToken == 0) {
_local2.update = "o2p";
} else if (identifierToken == 1) {
_local2.update = "o2m";
} else {
_local2.update = "o2";
}
} else if (!caller.rounded) {
if (identifierToken == 0) {
_local2.update = "mp";
} else if (identifierToken == 1) {
_local2.update = "mm";
} else if (identifierToken == 2) {
_local2.update = "m";
} else {
_local2.update = "mu";
}
} else if (identifierToken == 0) {
_local2.update = "m2p";
} else if (identifierToken == 1) {
_local2.update = "m2m";
} else if (identifierToken == 2) {
_local2.update = "m2";
} else {
_local2.update = "mu2";
}
_local2.end = "e";
return(_local2);
}
function computeSetters(Void) {
var _local6 = setter[0][0];
var _local4 = setter[0][1];
var _local5 = _local6[_local4];
if (arrayMode == false) {
checkIfFunction(_local5);
} else if (setter.length < arrayLength) {
identifierToken = 3;
} else {
var _local2 = setter.length - 1;
var _local3 = checkIfFunction(setter[_local2][0][setter[_local2][1]]);
while (_local2-- , _local2 > -1) {
if (checkIfFunction(setter[_local2][0][setter[_local2][1]]) != _local3) {
identifierToken = 2;
break;
}
}
}
}
function checkIfFunction(identifier) {
if (typeof(identifier) != "number") {
identifierToken = 1;
return(true);
}
identifierToken = 0;
return(false);
}
function createMultiSetter(setter) {
var _local9;
var _local17;
var _local11;
var _local3;
if (multiStart == null) {
_local9 = false;
_local17 = start;
} else {
_local9 = true;
}
var _local4 = (start = []);
var _local16 = end;
var _local10;
var _local13 = (end = []);
var _local14 = (this.setter = []);
var _local7;
var _local18 = setter.length;
var _local5 = _local18;
while (_local5-- , _local5 > -1) {
if (_local9) {
_local3 = multiStart[_local5];
} else {
_local11 = _local17[_local5];
}
_local10 = _local16[_local5];
_local7 = setter[_local5][0];
var _local8 = setter[_local5][1];
var _local12 = _local7.length;
var _local6 = _local12;
while (_local6-- , _local6 > -1) {
var _local2 = _local7[_local6];
if (_local9) {
if (checkIfFunction(_local2[_local3])) {
_local4.unshift(_local2[_local3]());
} else {
_local4.unshift(_local2[_local3]);
}
} else {
_local4.unshift(_local11);
}
_local13.unshift(_local10);
_local14.unshift([_local2, _local8]);
}
}
if (_local7.length == 0) {
caller.setStartValue(_local4);
caller.setEndValue(_local13);
caller.setStartValues(undefined);
caller.setEndValues(undefined);
caller.setCurrentValues(undefined);
} else {
caller.setStartValues(_local4);
caller.setEndValues(_local13);
caller.setStartValue(undefined);
caller.setEndValue(undefined);
caller.setCurrentValue(undefined);
}
}
function getDurationElapsed(Void) {
if ((paused == true) || (stopped == true)) {
return(elapsedDuration);
}
return(computeElapsedDuration());
}
function getDurationRemaining(Void) {
var _local2;
if (stopped == false) {
if (caller.getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.INTERVAL) {
_local2 = duration - getDurationElapsed();
} else if (caller.getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.FRAMES) {
if (caller.getDurationMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.MS) {
_local2 = duration - getDurationElapsed();
if (finished == true) {
_local2 = 0;
}
} else {
_local2 = durationInFrames - getDurationElapsed();
}
}
if (_local2 < 0) {
_local2 = 0;
}
} else {
_local2 = 0;
}
if (isNaN(_local2)) {
return(undefined);
}
return(_local2);
}
function computeElapsedDuration(Void) {
var _local2;
if (finished == true) {
_local2 = duration;
} else if (caller.getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.INTERVAL) {
_local2 = getTimer() - myTween.startTime;
} else if (caller.getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.FRAMES) {
if (caller.getDurationMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.MS) {
_local2 = de.alex_uhlmann.animationpackage.APCore.fps * (de.andre_michelle.events.FrameBasedInterval.__get__frame() - myTween.startTime);
} else {
_local2 = de.andre_michelle.events.FrameBasedInterval.__get__frame() - myTween.startTime;
}
}
if (isNaN(_local2)) {
return(undefined);
}
return(_local2);
}
function stopMe(Void) {
elapsedDuration = computeElapsedDuration();
myTween.stop();
deleteAnimation();
stopped = true;
}
function pauseMe(Void) {
elapsedDuration = computeElapsedDuration();
myTween.pause();
}
function resumeMe(Void) {
myTween.resume();
}
function toString(Void) {
return("Animator");
}
var pausedTime = 0;
var elapsedDuration = 0;
var paused = false;
var stopped = false;
var finished = false;
var identifierToken = 2;
}
Symbol 57 MovieClip [__Packages.de.alex_uhlmann.animationpackage.utility.Tween] Frame 0
class de.alex_uhlmann.animationpackage.utility.Tween
{
var listener, startValue, endValue, easingParams, isTweening, isPaused, easingEquation, updateMethod, endMethod, stop;
function Tween (listener, startValue, endValue, duration, easingParams) {
if (listener == null) {
return;
}
if (typeof(startValue) != "number") {
arrayMode = true;
}
this.listener = listener;
this.startValue = startValue;
this.endValue = endValue;
if (duration != null) {
this.duration = duration;
}
this.easingParams = easingParams;
isTweening = false;
isPaused = false;
}
function getCurVal(curTime) {
if (arrayMode) {
var _local3 = new Array();
var _local2;
var _local4 = startValue.length;
_local2 = 0;
while (_local2 < _local4) {
_local3[_local2] = easingEquation(curTime, startValue[_local2], endValue[_local2] - startValue[_local2], duration);
_local2++;
}
return(_local3);
}
return(easingEquation(curTime, startValue, Number(endValue) - Number(startValue), duration));
}
function getCurVal2(curTime) {
if (arrayMode) {
var _local3 = new Array();
var _local2;
var _local4 = startValue.length;
_local2 = 0;
while (_local2 < _local4) {
_local3[_local2] = easingEquation.apply(null, [curTime, startValue[_local2], endValue[_local2] - startValue[_local2], duration].concat(easingParams));
_local2++;
}
return(_local3);
}
return(easingEquation.apply(null, [curTime, startValue, Number(endValue) - Number(startValue), duration].concat(easingParams)));
}
function setTweenHandlers(update, endValue) {
updateMethod = update;
endMethod = endValue;
}
function defaultEasingEquation(t, b, c, d) {
return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b);
}
function endTween(v) {
if (endMethod != null) {
listener[endMethod](v);
} else {
listener.onTweenEnd(v);
}
stop();
}
function toString(Void) {
return("Tween");
}
var duration = 1000;
var arrayMode = false;
}
Symbol 58 MovieClip [__Packages.de.alex_uhlmann.animationpackage.utility.TweenAction] Frame 0
class de.alex_uhlmann.animationpackage.utility.TweenAction
{
var ref, initVal, endVal, scope, targetStr, identifier, singleMode, len;
function TweenAction (ref, startVal, endVal) {
this.ref = ref;
initVal = initVal;
this.endVal = endVal;
}
function initSingleMode(scope, targetStr, identifier) {
this.scope = scope;
this.targetStr = targetStr;
this.identifier = identifier;
singleMode = true;
}
function initMultiMode(len) {
scope = scope;
targetStr = targetStr;
identifier = identifier;
this.len = len;
singleMode = false;
}
function o(v) {
var _local5 = scope;
var _local4 = targetStr;
var _local6 = identifier;
if (typeof(_local6) != "number") {
_local5[_local4](v);
} else {
_local5[_local4] = v;
}
var _local2 = ref;
_local2.caller.currentValue = v;
_local2.caller.dispatchEvent({type:"onUpdate", target:_local2.caller, value:v});
}
function o2(v) {
var _local5 = scope;
var _local4 = targetStr;
var _local6 = identifier;
v = Math.round(v);
if (typeof(_local6) != "number") {
_local5[_local4](v);
} else {
_local5[_local4] = v;
}
var _local3 = ref;
_local3.caller.currentValue = v;
_local3.caller.dispatchEvent({type:"onUpdate", target:_local3.caller, value:v});
}
function m(v) {
var _local8 = ref;
var _local6 = _local8.setter;
var _local4;
var _local3;
var _local7;
var _local2 = len;
while (_local2-- , _local2 > -1) {
_local4 = _local6[_local2][0];
_local3 = _local6[_local2][1];
_local7 = _local4[_local3];
if (typeof(_local7) != "number") {
_local4[_local3](v[_local2]);
} else {
_local4[_local3] = v[_local2];
}
}
_local8.caller.currentValues = v;
_local8.caller.dispatchEvent({type:"onUpdate", target:_local8.caller, value:v});
}
function m2(v) {
var _local9 = ref;
var _local6 = _local9.setter;
var _local5;
var _local4;
var _local7;
var _local2 = len;
var _local8 = Math.round;
while (_local2-- , _local2 > -1) {
v[_local2] = _local8(v[_local2]);
_local5 = _local6[_local2][0];
_local4 = _local6[_local2][1];
_local7 = _local5[_local4];
if (typeof(_local7) != "number") {
_local5[_local4](v[_local2]);
} else {
_local5[_local4] = v[_local2];
}
}
_local9.caller.currentValues = v;
_local9.caller.dispatchEvent({type:"onUpdate", target:_local9.caller, value:v});
}
function op(v) {
var _local5 = scope;
var _local4 = targetStr;
_local5[_local4] = v;
var _local2 = ref;
_local2.caller.currentValue = v;
_local2.caller.dispatchEvent({type:"onUpdate", target:_local2.caller, value:v});
}
function o2p(v) {
var _local5 = scope;
var _local4 = targetStr;
v = Math.round(v);
_local5[_local4] = v;
var _local3 = ref;
_local3.caller.currentValue = v;
_local3.caller.dispatchEvent({type:"onUpdate", target:_local3.caller, value:v});
}
function mp(v) {
var _local5 = ref;
var _local3 = _local5.setter;
var _local2 = len;
while (_local2-- , _local2 > -1) {
_local3[_local2][0][_local3[_local2][1]] = v[_local2];
}
_local5.caller.currentValues = v;
_local5.caller.dispatchEvent({type:"onUpdate", target:_local5.caller, value:v});
}
function m2p(v) {
var _local6 = ref;
var _local4 = _local6.setter;
var _local2 = len;
var _local5 = Math.round;
while (_local2-- , _local2 > -1) {
v[_local2] = _local5(v[_local2]);
_local4[_local2][0][_local4[_local2][1]] = v[_local2];
}
_local6.caller.currentValues = v;
_local6.caller.dispatchEvent({type:"onUpdate", target:_local6.caller, value:v});
}
function om(v) {
var _local5 = scope;
var _local4 = targetStr;
_local5[_local4](v);
var _local2 = ref;
_local2.caller.currentValue = v;
_local2.caller.dispatchEvent({type:"onUpdate", target:_local2.caller, value:v});
}
function o2m(v) {
var _local5 = scope;
var _local4 = targetStr;
v = Math.round(v);
_local5[_local4](v);
var _local3 = ref;
_local3.caller.currentValue = v;
_local3.caller.dispatchEvent({type:"onUpdate", target:_local3.caller, value:v});
}
function mm(v) {
var _local5 = ref;
var _local3 = _local5.setter;
var _local2 = len;
while (_local2-- , _local2 > -1) {
_local3[_local2][0][_local3[_local2][1]](v[_local2]);
}
_local5.caller.currentValues = v;
_local5.caller.dispatchEvent({type:"onUpdate", target:_local5.caller, value:v});
}
function m2m(v) {
var _local6 = ref;
var _local4 = _local6.setter;
var _local2 = len;
var _local5 = Math.round;
while (_local2-- , _local2 > -1) {
v[_local2] = _local5(v[_local2]);
_local4[_local2][0][_local4[_local2][1]](v[_local2]);
}
_local6.caller.currentValues = v;
_local6.caller.dispatchEvent({type:"onUpdate", target:_local6.caller, value:v});
}
function mu(v) {
var _local2 = ref;
var _local3 = _local2.setter;
var _local4;
var _local6;
var _local7;
_local4 = _local3[0][0];
_local6 = _local3[0][1];
_local7 = _local4[_local6];
_local7.apply(_local4, v);
_local2.caller.currentValues = v;
_local2.caller.dispatchEvent({type:"onUpdate", target:_local2.caller, value:v});
}
function mu2(v) {
var _local5 = ref;
var _local6 = _local5.setter;
var _local7;
var _local8;
var _local9;
var _local2 = len;
var _local4 = Math.round;
while (_local2-- , _local2 > -1) {
v[_local2] = _local4(v[_local2]);
}
_local7 = _local6[0][0];
_local8 = _local6[0][1];
_local9 = _local7[_local8];
_local9.apply(_local7, v);
_local5.caller.currentValues = v;
_local5.caller.dispatchEvent({type:"onUpdate", target:_local5.caller, value:v});
}
function e(v) {
var _local2 = ref;
if (_local2.caller.forceEndVal) {
v = endVal;
this[_local2.myTween.updateMethod](v);
} else if (singleMode) {
var _local4 = endVal;
if ((v - _local4) < (_local4 - _local2.caller.currentValue)) {
this[_local2.myTween.updateMethod](v);
v = _local2.caller.currentValue;
} else if (_local2.caller.rounded) {
v = Math.round(_local2.caller.currentValue);
} else {
v = _local2.caller.currentValue;
}
} else {
v = _local2.caller.currentValue;
}
_local2.deleteAnimation();
_local2.caller.tweening = false;
_local2.finished = true;
de.alex_uhlmann.animationpackage.APCore.broadcastMessage(_local2.callback, _local2.caller, v);
_local2.caller.dispatchEvent({type:"onEnd", target:_local2.caller, value:v});
}
function toString(Void) {
return("TweenAction");
}
}
Symbol 59 MovieClip [__Packages.de.alex_uhlmann.animationpackage.utility.TimeTween] Frame 0
class de.alex_uhlmann.animationpackage.utility.TimeTween extends de.alex_uhlmann.animationpackage.utility.Tween
{
static var intervalID, startPauseAll;
var easingEquation, defaultEasingEquation, startTime, duration, endTween, isTweening, id, startPause, easingParams, getCurVal, getCurVal2, updateMethod, listener;
function TimeTween (listener, start, end, duration, easingParams) {
super(listener, start, end, duration, easingParams);
}
static function addTween(tween) {
tween.id = activeTweens.length;
activeTweens.push(tween);
if (intervalID == null) {
dispatcher.dispatchTweens = dispatch;
intervalID = setInterval(dispatcher, "dispatchTweens", interval);
}
}
static function removeTweenAt(index) {
var _local2 = activeTweens;
if (((index >= _local2.length) || (index < 0)) || (index == null)) {
return(undefined);
}
_local2.splice(index, 1);
var _local1;
var _local4 = _local2.length;
_local1 = index;
while (_local1 < _local4) {
_local2[_local1].id--;
_local1++;
}
if (_local4 == 0) {
clearInterval(intervalID);
delete intervalID;
}
}
static function dispatch(Void) {
var _local2 = activeTweens;
var _local1;
var _local3 = _local2.length;
_local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
updateAfterEvent();
}
static function pauseAll() {
startPauseAll = getTimer();
clearInterval(intervalID);
var _local2 = activeTweens;
var _local1 = _local2.length;
while (_local1-- , _local1 > -1) {
_local2[_local1].isTweening = false;
}
}
static function resumeAll() {
intervalID = setInterval(dispatcher, "dispatchTweens", interval);
var _local3 = activeTweens;
var _local2;
var _local4 = _local3.length;
_local2 = 0;
while (_local2 < _local4) {
var _local1 = _local3[_local2];
if (!_local1.isTweening) {
_local1.startTime = _local1.startTime + (getTimer() - startPauseAll);
}
_local1.isTweening = true;
_local2++;
}
}
function start() {
if (easingEquation == null) {
easingEquation = defaultEasingEquation;
}
startTime = getTimer();
if (duration == 0) {
endTween();
} else {
addTween(this);
}
isTweening = true;
}
function stop() {
removeTweenAt(id);
isTweening = false;
}
function pause() {
startPause = getTimer();
delete activeTweens[id];
isTweening = false;
}
function resume() {
startTime = startTime + (getTimer() - startPause);
activeTweens[id] = this;
isTweening = true;
}
function doInterval() {
var _local3 = getTimer() - startTime;
var _local2;
if (easingParams == null) {
_local2 = getCurVal(_local3);
} else {
_local2 = getCurVal2(_local3);
}
if (_local3 >= duration) {
endTween(_local2);
} else if (updateMethod != null) {
listener[updateMethod](_local2);
} else {
listener.onTweenUpdate(_local2);
}
}
function toString(Void) {
return("TimeTween");
}
static var activeTweens = new Array();
static var interval = 10;
static var dispatcher = new Object();
}
Symbol 60 MovieClip [__Packages.de.alex_uhlmann.animationpackage.utility.FrameTween] Frame 0
class de.alex_uhlmann.animationpackage.utility.FrameTween extends de.alex_uhlmann.animationpackage.utility.Tween
{
static var intervalID;
var easingEquation, defaultEasingEquation, duration, endTween, frameIntervalToken, startTime, isTweening, id, startPause, easingParams, getCurVal, getCurVal2, updateMethod, listener;
function FrameTween (listener, start, end, duration, easingParams) {
super(listener, start, end, duration, easingParams);
}
static function addTween(tween) {
tween.id = activeTweens.length;
activeTweens.push(tween);
if (intervalID == null) {
if (!de.andre_michelle.events.ImpulsDispatcher._timeline) {
de.andre_michelle.events.ImpulsDispatcher.initialize(de.alex_uhlmann.animationpackage.APCore.getCentralMC());
}
dispatcher.dispatchTweens = dispatch;
de.andre_michelle.events.ImpulsDispatcher.addImpulsListener(dispatcher, "dispatchTweens");
intervalID = 1;
}
}
static function removeTweenAt(index) {
var _local2 = activeTweens;
if (((index >= _local2.length) || (index < 0)) || (index == null)) {
return(undefined);
}
de.andre_michelle.events.FrameBasedInterval.removeInterval(_local2[index].frameIntervalToken);
_local2.splice(index, 1);
var _local1;
var _local4 = _local2.length;
_local1 = index;
while (_local1 < _local4) {
_local2[_local1].id--;
_local1++;
}
if (_local4 == 0) {
intervalID = null;
}
}
static function dispatch(Void) {
var _local2 = activeTweens;
var _local1;
var _local3 = _local2.length;
_local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
}
function start() {
if (easingEquation == null) {
easingEquation = defaultEasingEquation;
}
if (duration == 0) {
endTween();
} else {
addTween(this);
frameIntervalToken = de.andre_michelle.events.FrameBasedInterval.addInterval(this, "onFrameEnd", duration);
}
startTime = frameIntervalToken.startFrame;
isTweening = true;
}
function stop() {
removeTweenAt(id);
isTweening = false;
}
function pause() {
startPause = de.andre_michelle.events.FrameBasedInterval.frame;
delete activeTweens[id];
isTweening = false;
}
function resume() {
var _local2 = de.andre_michelle.events.FrameBasedInterval.__get__frame() - startPause;
startTime = startTime + _local2;
activeTweens[id] = this;
isTweening = true;
}
static function pauseAll() {
de.andre_michelle.events.ImpulsDispatcher.pause();
var _local2 = activeTweens;
var _local1 = _local2.length;
while (_local1-- , _local1 > -1) {
_local2[_local1].isTweening = false;
}
}
static function resumeAll() {
de.andre_michelle.events.ImpulsDispatcher.resume();
var _local2 = activeTweens;
var _local1 = _local2.length;
while (_local1-- , _local1 > -1) {
_local2[_local1].isTweening = true;
}
}
function doInterval() {
var _local3 = de.andre_michelle.events.FrameBasedInterval.__get__frame() - startTime;
var _local2;
if (easingParams == null) {
_local2 = getCurVal(_local3);
} else {
_local2 = getCurVal2(_local3);
}
if (_local3 >= duration) {
endTween(_local2);
} else if (updateMethod != null) {
listener[updateMethod](_local2);
} else {
listener.onTweenUpdate(_local2);
}
}
function toString(Void) {
return("FrameTween");
}
static var activeTweens = new Array();
static var interval = 10;
static var dispatcher = new Object();
}
Symbol 61 MovieClip [__Packages.de.andre_michelle.events.ImpulsDispatcher] Frame 0
class de.andre_michelle.events.ImpulsDispatcher
{
static var _timeline, _listeners, timer, fpsInterval, frames, fps;
function ImpulsDispatcher () {
}
static function initialize(timeline) {
if (_timeline) {
decontrol();
}
pause();
_listeners = new Array();
timer = getTimer();
_timeline = timeline;
}
static function decontrol(timeline) {
_global.ASSetPropFlags(timeline, "onEnterFrame", 0, 7);
delete timeline.onEnterFrame;
delete _listeners;
delete _timeline;
delete timer;
}
static function watchFPS() {
fpsInterval = setInterval(function () {
de.andre_michelle.events.ImpulsDispatcher.fps = de.andre_michelle.events.ImpulsDispatcher.frames;
de.andre_michelle.events.ImpulsDispatcher.frames = 0;
}, 1000);
addImpulsListener(de.andre_michelle.events.ImpulsDispatcher, "countFrames");
frames = 0;
}
static function unwatchFPS() {
clearInterval(fpsInterval);
removeImpulsListener(de.andre_michelle.events.ImpulsDispatcher);
fps = undefined;
}
static function getFPS() {
if (fps == undefined) {
return(0);
}
return(fps);
}
static function countFrames() {
frames++;
}
static function pause() {
_global.ASSetPropFlags(_timeline, "onEnterFrame", 0, 7);
delete _timeline.onEnterFrame;
_global.ASSetPropFlags(_timeline, "onEnterFrame", 7);
fps = undefined;
}
static function resume() {
if (_listeners.length == 0) {
return(undefined);
}
_global.ASSetPropFlags(_timeline, "onEnterFrame", 0, 7);
_timeline.onEnterFrame = onImpuls;
_global.ASSetPropFlags(_timeline, "onEnterFrame", 7);
timer = getTimer();
frames = 0;
}
static function addImpulsListener(handler, callback) {
_listeners.push({o:handler, c:callback});
if (_listeners.length == 1) {
resume();
}
}
static function removeImpulsListener(handler) {
var _local1;
var _local2;
for (_local1 in _listeners) {
_local2 = _listeners[_local1];
if (_local2.o == handler) {
_listeners.splice(Number(_local1), 1);
if (_listeners.length == 0) {
pause();
}
return(true);
}
}
return(false);
}
static function onImpuls() {
var _local3 = (getTimer() - timer) / 1000;
timer = getTimer();
var _local2;
var _local1;
for (_local2 in _listeners) {
_local1 = _listeners[_local2];
_local1.o[_local1.c](_local3);
}
}
}
Symbol 62 MovieClip [__Packages.de.andre_michelle.events.FrameBasedInterval] Frame 0
class de.andre_michelle.events.FrameBasedInterval
{
static var intervals;
function FrameBasedInterval () {
}
static function get frame() {
return(m_frame);
}
static function addInterval(object, method, intervalLength) {
if (intervals == undefined) {
intervals = new Array();
startMonitoring();
}
var _local2 = {object:object, method:method, intervalLength:intervalLength, args:arguments.splice(3), startFrame:m_frame};
intervals.push(_local2);
return(_local2);
}
static function removeInterval(interval) {
var _local1;
for (_local1 in intervals) {
if (intervals[_local1] == interval) {
intervals.splice(Number(_local1), 1);
if (intervals.length == 0) {
delete intervals;
stopMonitoring();
}
return(true);
}
}
return(false);
}
static function startMonitoring() {
de.andre_michelle.events.ImpulsDispatcher.addImpulsListener(de.andre_michelle.events.FrameBasedInterval, "checkFrame");
}
static function stopMonitoring() {
de.andre_michelle.events.ImpulsDispatcher.removeImpulsListener(de.andre_michelle.events.FrameBasedInterval);
}
static function checkFrame() {
m_frame++;
var _local3;
for (_local3 in intervals) {
var _local1 = intervals[_local3];
if (((m_frame - _local1.startFrame) % _local1.intervalLength) == 0) {
var _local2 = _local1.object;
_local2[_local1.method].apply(_local2, _local1.args);
}
}
}
static var m_frame = 0;
}
Symbol 63 MovieClip [__Packages.de.alex_uhlmann.animationpackage.utility.Pause] Frame 0
class de.alex_uhlmann.animationpackage.utility.Pause extends de.alex_uhlmann.animationpackage.animation.AnimationCore implements de.alex_uhlmann.animationpackage.animation.ISingleAnimatable
{
static var refs;
var getID, type, callback, scope, param, duration, durationOrig, startInitialized, startTime, paused, elapsedDurationSaved, dispatchEvent, pauseMode, tweening, interval_ID, startPause, locked, getTweenMode, getDurationMode;
function Pause () {
super();
if (refs == null) {
refs = new Object();
}
refs[getID()] = this;
if (arguments.length > 0) {
init.apply(this, arguments);
}
}
function init() {
if (arguments.length == 0) {
return(undefined);
}
type = arguments[0];
var _local4 = arguments[1];
var _local3 = arguments[2];
var _local5 = arguments[3];
var _local6 = arguments[4];
if (typeof(_local3) == "string") {
var _local7 = _local5;
_local6 = _local7;
_local7 = _local3;
callback = _local7;
} else {
scope = _local3;
var _local7 = _local5;
callback = _local7;
param = _local6;
}
if (type == de.alex_uhlmann.animationpackage.animation.AnimationCore.MS) {
duration = (durationOrig = _local4);
} else if (type == de.alex_uhlmann.animationpackage.animation.AnimationCore.FRAMES) {
duration = (durationOrig = Math.round(_local4));
}
}
function invokeAnimation(start, end) {
startInitialized = false;
if (type == de.alex_uhlmann.animationpackage.animation.AnimationCore.MS) {
if (end != null) {
start = (start / 100) * duration;
startTime = getTimer() + start;
end = (end / 100) * duration;
duration = end;
paused = false;
initMSInterval();
de.andre_michelle.events.ImpulsDispatcher.addImpulsListener(this, "dispatchUpdate");
} else {
start = (start / 100) * duration;
paused = true;
elapsedDuration = start;
dispatchUpdate();
}
} else if (type == de.alex_uhlmann.animationpackage.animation.AnimationCore.FRAMES) {
if (end != null) {
start = (start / 100) * duration;
startTime = de.andre_michelle.events.FrameBasedInterval.__get__frame() + start;
end = (end / 100) * duration;
duration = end;
paused = false;
initFramesInterval();
de.andre_michelle.events.ImpulsDispatcher.addImpulsListener(this, "dispatchUpdate");
} else {
start = (start / 100) * duration;
paused = true;
elapsedDuration = start;
dispatchUpdate();
}
}
}
function dispatchUpdate(Void) {
var _local2 = getDurationElapsed();
if (elapsedDurationSaved != _local2) {
if (_local2 == 0) {
dispatchEvent.apply(this, [{type:"onStart"}]);
} else if (finished) {
dispatchEvent.apply(this, [{type:"onEnd"}]);
} else {
dispatchEvent.apply(this, [{type:"onUpdate"}]);
}
}
elapsedDurationSaved = _local2;
}
function waitMS(milliseconds, scope, callbackParam, param) {
init(de.alex_uhlmann.animationpackage.animation.AnimationCore.MS, milliseconds, scope, callbackParam, param);
invokeAnimation(0, 100);
}
function initMSInterval(Void) {
pauseMode = "INTERVAL";
tweening = true;
finished = false;
clearInterval(Number(interval_ID));
interval_ID = setInterval(this, "clearPause", duration);
dispatchEvent.apply(this, [{type:"onStart"}]);
}
function waitFrames(frames, scope, callbackParam, param) {
init("FRAMES", frames, scope, callbackParam, param);
invokeAnimation(0, 100);
}
function initFramesInterval(Void) {
pauseMode = "FRAMES";
tweening = true;
finished = false;
interval_ID = de.andre_michelle.events.FrameBasedInterval.addInterval(this, "clearPause", duration);
dispatchEvent.apply(this, [{type:"onStart"}]);
}
function clearPause(Void) {
tweening = false;
finished = true;
clearInterval(Number(interval_ID));
de.andre_michelle.events.FrameBasedInterval.removeInterval(interval_ID);
switchCallback(scope, callback, param);
}
function switchCallback(scope, callback, param) {
if (scope == null) {
invokeAPCallback(callback, param);
} else {
invokeCallback(scope, callback, param);
}
}
function invokeAPCallback(callback, param) {
if (param == null) {
de.alex_uhlmann.animationpackage.APCore.broadcastMessage(callback, this);
dispatchEvent.apply(this, [{type:"onEnd"}]);
} else {
de.alex_uhlmann.animationpackage.APCore.broadcastMessage(callback, this, param);
dispatchEvent.apply(this, [{type:"onEnd", parameters:param}]);
}
delete refs[getID()];
}
function invokeCallback(scope, callback, param) {
scope[callback].apply(scope, param);
dispatchEvent.apply(this, [{type:"onEnd", parameters:param}]);
delete refs[getID()];
de.andre_michelle.events.ImpulsDispatcher.removeImpulsListener(this);
}
function stop(Void) {
if (super.stop() == true) {
stopped = true;
elapsedDuration = computeElapsedDuration();
if (pauseMode == "INTERVAL") {
clearInterval(Number(interval_ID));
} else if (pauseMode == "FRAMES") {
de.andre_michelle.events.FrameBasedInterval.removeInterval(interval_ID);
}
de.andre_michelle.events.ImpulsDispatcher.removeImpulsListener(this);
return(true);
}
return(false);
}
function pauseMe(duration) {
if (super.pause(duration) == false) {
return(false);
}
paused = true;
elapsedDuration = computeElapsedDuration();
if (pauseMode == "INTERVAL") {
startPause = getTimer();
clearInterval(Number(interval_ID));
} else if (pauseMode == "FRAMES") {
startPause = de.andre_michelle.events.FrameBasedInterval.frame;
de.andre_michelle.events.FrameBasedInterval.removeInterval(interval_ID);
}
de.andre_michelle.events.ImpulsDispatcher.removeImpulsListener(this);
return(true);
}
function resume(Void) {
if (locked == true) {
return(false);
}
tweening = true;
paused = false;
duration = duration - elapsedDuration;
if (getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.INTERVAL) {
durationPaused = durationPaused + (getTimer() - startPause);
initMSInterval();
} else if (getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.FRAMES) {
durationPaused = durationPaused + (de.andre_michelle.events.FrameBasedInterval.__get__frame() - startPause);
initFramesInterval();
}
de.andre_michelle.events.ImpulsDispatcher.addImpulsListener(this, "dispatchUpdate");
return(true);
}
function getDurationElapsed(Void) {
if ((paused == true) || (stopped == true)) {
return(elapsedDuration);
}
return(computeElapsedDuration());
}
function getDurationRemaining(Void) {
var _local2;
if (stopped == false) {
if (getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.INTERVAL) {
_local2 = durationOrig - getDurationElapsed();
} else if (getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.FRAMES) {
if (getDurationMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.MS) {
_local2 = durationOrig - getDurationElapsed();
if (finished == true) {
_local2 = 0;
}
} else {
_local2 = durationOrig - getDurationElapsed();
}
}
if (_local2 < 0) {
_local2 = 0;
}
} else {
_local2 = 0;
}
return(_local2);
}
function computeElapsedDuration(Void) {
if (finished == true) {
return(durationOrig);
}
if (getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.INTERVAL) {
return((getTimer() - startTime) - durationPaused);
}
if (getTweenMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.FRAMES) {
if (getDurationMode() == de.alex_uhlmann.animationpackage.animation.AnimationCore.MS) {
return(de.alex_uhlmann.animationpackage.APCore.fps * ((de.andre_michelle.events.FrameBasedInterval.__get__frame() - startTime) - durationPaused));
}
return((de.andre_michelle.events.FrameBasedInterval.__get__frame() - startTime) - durationPaused);
}
}
function getStartValue(Void) {
return(0);
}
function getEndValue(Void) {
return(durationOrig);
}
function getCurrentValue(Void) {
return(getDurationElapsed());
}
function getCurrentPercentage(Void) {
return((getDurationElapsed() / durationOrig) * 100);
}
function toString(Void) {
return("Pause");
}
var elapsedDuration = 0;
var stopped = false;
var finished = false;
var durationPaused = 0;
}
Symbol 64 MovieClip [__Packages.ascb.util.Proxy] Frame 0
class ascb.util.Proxy
{
function Proxy () {
}
static function create(oTarget, fFunction) {
var aParameters = new Array();
var _local2 = 2;
while (_local2 < arguments.length) {
aParameters[_local2 - 2] = arguments[_local2];
_local2++;
}
var _local4 = function () {
var _local2 = arguments.concat(aParameters);
_local2.push(arguments.callee);
fFunction.apply(oTarget, _local2);
};
return(_local4);
}
}
Symbol 65 MovieClip [__Packages.com.robertpenner.easing.Bounce] Frame 0
class com.robertpenner.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}
Symbol 66 MovieClip [__Packages.de.alex_uhlmann.animationpackage.animation.Move] Frame 0
class de.alex_uhlmann.animationpackage.animation.Move extends de.alex_uhlmann.animationpackage.animation.AnimationCore implements de.alex_uhlmann.animationpackage.animation.IMultiAnimatable
{
var mc, mcs, setStartValues, animationStyle, duration, easing, callback, setEndValues, startInitialized, myAnimator, endValues, startValues;
function Move () {
super();
if (typeof(arguments[0]) == "movieclip") {
mc = arguments[0];
} else {
mcs = arguments[0];
}
if (arguments.length > 1) {
arguments.shift();
init.apply(this, arguments);
}
}
function init() {
if (arguments[0] instanceof Array) {
var _local3 = arguments[0];
var _local4 = _local3.slice(-2);
arguments.shift();
arguments.splice(0, 0, _local4[0], _local4[1]);
initAnimation.apply(this, arguments);
setStartValues([_local3[0], _local3[1]]);
} else if (arguments.length > 0) {
initAnimation.apply(this, arguments);
}
}
function initAnimation(amountx, amounty, duration, easing, callback) {
if (arguments.length > 2) {
animationStyle(duration, easing, callback);
} else {
animationStyle(this.duration, this.easing, this.callback);
}
if (mc != null) {
setStartValues([mc[xProperty], mc[yProperty]], true);
}
setEndValues([amountx, amounty]);
}
function invokeAnimation(start, end) {
startInitialized = false;
myAnimator = new de.alex_uhlmann.animationpackage.utility.Animator();
myAnimator.caller = this;
myAnimator.end = endValues;
if (mc != null) {
myAnimator.start = startValues;
myAnimator.setter = [[mc, xProperty], [mc, yProperty]];
} else {
myAnimator.multiStart = [xProperty, yProperty];
myAnimator.multiSetter = [[mcs, xProperty], [mcs, yProperty]];
}
if (end != null) {
myAnimator.animationStyle(duration, easing, callback);
myAnimator.animate(start, end);
} else {
myAnimator.goto(start);
}
if (pathOrientation == true) {
rotate(startValues[0], startValues[1], endValues[0], endValues[1]);
}
}
function rotate(startx, starty, endx, endy) {
var _local3;
var _local4;
var _local2;
if (starty > endValues[1]) {
_local2 = Math.abs(endx - startx) / Math.abs(endy - starty);
_local3 = Math.atan(_local2);
} else {
_local2 = Math.abs(endy - starty) / Math.abs(endx - startx);
_local3 = Math.atan(_local2) + (Math.PI/2);
}
_local4 = _local3 * 57.2957795130823;
if (startx > endx) {
mc[rotationProperty] = -_local4;
} else {
mc[rotationProperty] = _local4;
}
}
function orientToPath(bool) {
pathOrientation = bool;
}
function toString(Void) {
return("Move");
}
var xProperty = "_x";
var yProperty = "_y";
var rotationProperty = "_rotation";
var pathOrientation = false;
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 8
gotoAndPlay ("startspin");
Symbol 44 MovieClip Frame 25
stop();
Symbol 45 MovieClip Frame 1
function spintime() {
wheel.gotoAndPlay("startspin");
stopbuttonmoveInterval = setInterval(stopbtnmove, 500);
}
function stopbtnmove() {
(new de.alex_uhlmann.animationpackage.animation.Move(btn_stop)).run(btn_stop._x, 192, 800, com.robertpenner.easing.Bounce.easeOut);
}
function spinstop() {
clearInterval(stopbuttonmoveInterval);
wheel.gotoAndStop(scenario);
hideemnow = setInterval(hideEm, 1000);
}
function hideEm() {
clearInterval(hideemnow);
trace("hideemnow cleared");
nextButtonMove = setInterval(nextMove, 300);
}
function nextMove() {
(new de.alex_uhlmann.animationpackage.animation.Move(next_btn)).run(btn_stop._x, 192, 800, com.robertpenner.easing.Bounce.easeOut);
clearInterval(nextButtonMove);
trace("next button");
this.onRelease = null;
}
function end_game() {
var _local2 = new LoadVars();
_local2.cid = _root.cid;
var _local3 = _root.url;
_local2.send(_local3, "_self", "post");
}
stop();
de.alex_uhlmann.animationpackage.APCore.initialize();
de.alex_uhlmann.animationpackage.APCore.addListener(this);
scenario = "sorry";
movieContainer._alpha = 0;
btn_start._x = 275;
btn_start._y = 192;
btn_stop._x = 275;
btn_stop._y = 50;
var sndSpin = new Sound();
sndSpin.attachSound("spin");
var spinstopInterval = 0;
var hideemnow = 0;
var nextButtonMove = 0;
btn_start.onRelease = function () {
spintime();
this.onRelease = null;
};
btn_stop.onRelease = function () {
spinstop();
this.onRelease = null;
};
next_btn.onRelease = function () {
end_game();
};