Combined Code
frame 1 {
var controlAlpha = 50;
autoplay = 1;
autorewind = 1;
autohidecontrols = 1;
framescount = 11939;
controls_timeout = 1;
autoshape = 0;
audio_volume = 75;
}
frame 1 {
function init() {
if (framescount == undefined) {
framescount = display._totalframes;
}
DEF_WIDTH = Stage.width;
DEF_HEIGHT = Stage.height;
flvSound = new Sound(this.display);
flvSound.setVolume(audio_volume);
stage_list.onResize();
}
var DEF_WIDTH = 320;
var DEF_HEIGHT = 240;
var flvSound;
}
frame 1 {
function playVideo() {
_root.isPlay = 1;
_root.display.play();
_root.display.onEnterFrame = function () {
_root.checkVideoComplete();
};
_root.controls.prog_bar.activateSlider();
}
function pauseVideo() {
_root.isPlay = 0;
_root.display.stop();
_root.display.onEnterFrame = null;
_root.controls.prog_bar.deactivateSlider();
_root.controls.prog_bar.updateSlider();
}
function stopVideo() {
_root.isPlay = 0;
_root.display.gotoAndStop(1);
_root.display.onEnterFrame = null;
_root.controls.prog_bar.deactivateSlider();
_root.controls.prog_bar.updateSlider();
_root.controls.play_n_pause.icon_mc.gotoAndStop(1);
}
function stepForward() {
if (_root.display._currentframe < _root.display._totalframes) {
tf = _root.display._currentframe + Math.round(_root.framescount / 10);
if (tf > _root.framescount) {
tf = _root.framescount;
}
if (_root.isPlay == 0) {
_root.display.gotoAndStop(tf);
} else {
_root.display.gotoAndPlay(tf);
}
_root.controls.prog_bar.updateSlider();
}
}
function stepBackward() {
if (_root.display._currentframe > 1) {
tf = _root.display._currentframe - Math.round(_root.framescount / 10);
if (tf < 1) {
tf = 1;
}
if (_root.isPlay == 0) {
_root.display.gotoAndStop(tf);
} else {
_root.display.gotoAndPlay(tf);
}
_root.controls.prog_bar.updateSlider();
}
}
function checkVideoComplete() {
if (_root.display._currentframe == _root.display._totalframes and autorewind == false) {
stopVideo();
}
}
FLVPlayback;
}
frame 1 {
function hideControls() {
if (_ymouse < controls._y or _ymouse > controls._y + controls._height) {
caurina.transitions.Tweener.addTween(controls, {'_alpha': 0, 'time': 0.5, 'onComplete': function () {
this._visible = false;
}});
}
}
function startHideTimeout() {
if (!autohidecontrols) {
return undefined;
}
caurina.transitions.Tweener.removeTweens(_root);
caurina.transitions.Tweener.addTween(_root, {'_alpha': 100, 'time': 0.1, 'delay': _root.controls_timeout, 'onComplete': _root.hideControls});
}
this.onMouseMove = function () {
if (!controls._visible) {
caurina.transitions.Tweener.addTween(controls, {'_alpha': 100, 'time': 0.5, 'onStart': function () {
this._alpha = 0;
this._visible = true;
}});
}
startHideTimeout();
};
}
frame 1 {
Stage.scaleMode = 'noScale';
Stage.align = 'TL';
isPlay = 0;
isDrag = 0;
isClick = 0;
prevVol = 80;
pY = 0;
pX = 0;
lTime = 0;
dt = 0;
var stage_list = new Object();
stage_list.onResize = function () {
if (Stage.width != 0 and Stage.width != undefined and (Stage.height != 0 and Stage.height != undefined) and (_root.display._width != 0 and _root.display._width != undefined) and (_root.display._height != 0 and _root.display._height != undefined)) {
var v2 = Stage.width / _root.display._width;
var v3 = Stage.height / _root.display._height;
if (v2 * _root.display._height <= Stage.height) {
_root.display._width = Stage.width;
_root.display._height = Math.round(v2 * _root.display._height);
} else {
_root.display._height = Stage.height;
_root.display._width = Math.round(v3 * _root.display._width);
}
if (_root.display._width > 0 and _root.display._width != undefined) {
_root.display._x = Math.round((Stage.width - _root.display._width) / 2);
_root.display._y = Math.round((Stage.height - _root.display._height) / 2);
}
}
_root.controls.setNewSize();
_root.controls._y = Math.round(Stage.height - _root.controls._height);
controller._x = _root.display._x + 5;
controller._y = _root.display._y + 5;
controller._width = w;
controller._height = w * 0.25;
};
Stage.addListener(stage_list);
controller._visible = autoshape;
}
movieClip 2 {
}
movieClip 5 {
}
movieClip 7 {
}
movieClip 8 {
frame 1 {
this._alpha = _root.controlAlpha * 70 / 100 + 30;
}
}
movieClip 11 {
}
movieClip 14 {
}
movieClip 17 {
}
movieClip 18 {
frame 1 {
isDrag = 0;
this.onEnterFrame = function () {
this.onEnterFrame = null;
volume_reg.top = 0;
volume_reg.bottom = 0;
volume_reg.left = 0;
volume_reg.right = volume_reg._parent._width - 3;
volume_reg.len = volume_reg._parent._width - 3;
volume_reg._x = (_root.audio_volume / 100) * volume_reg.len;
};
volume_reg.onEnterFrame = function () {
if (this._parent.isDrag == 1) {
perc = Math.round((this._x + 3) * 100 / this.len) - 5;
if (this._parent._parent.isMute == 1) {
_root.audio_volume = perc;
this._parent._parent.mute_button.gotoAndStop(1);
} else {
_root.flvSound.setVolume(perc);
}
this._parent.shad._width = this._x;
}
};
volume_reg.onPress = function () {
this._parent.isDrag = 1;
this.startDrag(false, this.left, this.top, this.right, this.bottom);
};
volume_reg.onReleaseOutside = function () {
this._parent.isDrag = 0;
this.stopDrag();
};
volume_reg.onRelease = volume_reg.onReleaseOutside;
volume_reg.onRollOut = volume_reg.onReleaseOutside;
}
instance of movieClip 14 {
onClipEvent (enterFrame) {
this._width = this._parent.volume_reg._x;
}
}
instance of movieClip 17 {
onClipEvent (mouseDown) {
if (_parent._xmouse >= this._x and _parent._xmouse <= this._x + this._width and _parent._ymouse >= this._y and _parent._ymouse <= this._y + this._height) {
_parent.isDrag = 1;
_parent.volume_reg._x = _parent._xmouse;
}
}
}
}
movieClip 21 {
}
movieClip 23 {
}
movieClip 24 {
}
movieClip 25 {
frame 1 {
function updateSlider() {
if (_root.isDrag == 1) {
perc = (this._x + 3) * 100 / (this._width - 2);
cFr = Math.round((_root.framescount / 100) * perc);
if (cFr == 0) {
cFr = 1;
}
_root.display.gotoAndStop(cFr);
} else {
if (_root.isClick == 1) {
perc = (prog_reg._x + 3) * 100 / (this._width - 2);
cFr = Math.round((_root.framescount / 100) * perc);
if (cFr == 0) {
cFr = 1;
}
if (_root.isPlay == 1) {
_root.display.gotoAndPlay(cFr);
} else {
_root.display.gotoAndStop(cFr);
}
_root.isClick = 0;
} else {
perc = _root.display._currentframe * 100 / _root.framescount;
if (_root.display._currentframe == 1) {
perc = 0;
}
cFr = Math.round((this._width - 2) * perc / 100);
prog_reg._x = cFr;
}
}
shad._width = prog_reg._x;
}
function activateSlider() {
prog_reg.onEnterFrame = function () {
updateSlider();
};
}
function deactivateSlider() {
prog_reg.onEnterFrame = null;
}
prog_reg.onRollOver = function () {
this.gotoAndStop(2);
};
prog_reg.onPress = function () {
_root.isDrag = 1;
_root.display.stop();
this.startDrag(false, 0, 0, this._parent._width - 4, 0);
this.gotoAndStop(3);
};
prog_reg.onRollOut = function () {
this.gotoAndStop(1);
};
prog_reg.onReleaseOutside = function () {
_root.isDrag = 0;
if (_root.isPlay == 1) {
_root.playVideo();
}
this.stopDrag();
this.gotoAndStop(1);
};
prog_reg.onRelease = prog_reg.onReleaseOutside;
cover.useHandCursor = false;
cover.onPress = function () {
_root.isClick = 1;
this._parent.prog_reg._x = this._parent._xmouse - 2;
this._parent.updateSlider();
};
}
}
movieClip 28 {
}
movieClip 30 {
}
movieClip 31 {
}
button 33 {
on (press) {
gotoAndStop(3);
}
on (rollOver, release) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release, releaseOutside) {
_root.stepForward();
nextFrame();
}
}
movieClip 35 {
}
movieClip 36 {
}
movieClip 38 {
}
movieClip 39 {
}
movieClip 40 {
}
movieClip 41 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
button 42 {
on (press) {
gotoAndStop(3);
}
on (rollOver, release) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release, releaseOutside) {
_root.stepBackward();
nextFrame();
}
}
movieClip 43 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 44 {
}
movieClip 46 {
}
movieClip 47 {
}
movieClip 50 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 51 {
on (press) {
gotoAndStop(3);
}
on (rollOver) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release) {
if (this.icon_mc._currentframe == 1) {
this.icon_mc.gotoAndStop(2);
_root.isPlay = 1;
_root.playVideo();
} else {
this.icon_mc.gotoAndStop(1);
_root.isPlay = 0;
_root.pauseVideo();
}
gotoAndStop(2);
nextFrame();
}
}
movieClip 53 {
}
movieClip 54 {
}
movieClip 56 {
}
movieClip 57 {
}
movieClip 58 {
}
movieClip 59 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 61 {
}
movieClip 63 {
}
movieClip 64 {
}
button 65 {
on (press) {
gotoAndStop(3);
}
on (rollOver) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release) {
_parent.nextFrame();
nextFrame();
}
}
movieClip 67 {
}
movieClip 68 {
}
movieClip 70 {
}
movieClip 71 {
}
movieClip 72 {
}
movieClip 73 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 75 {
}
movieClip 76 {
}
button 77 {
on (press) {
gotoAndStop(3);
}
on (rollOver) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release) {
_parent.gotoAndStop(1);
nextFrame();
}
}
movieClip 78 {
}
movieClip 79 {
}
movieClip 80 {
}
movieClip 81 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 82 {
frame 1 {
if (_root.audio_volume > 100) {
_root.audio_volume = 100;
}
_root.flvSound.setVolume(_root.audio_volume);
this._parent.volume_reg.volume_reg._x = Math.round((this._parent.volume_reg._width / 100) * _root.flvSound.getVolume()) - 3;
_parent.isMute = 0;
stop();
}
frame 2 {
_root.audio_volume = _root.flvSound.getVolume();
if (_root.audio_volume > 100) {
_root.audio_volume = 100;
}
_root.flvSound.setVolume(0);
_parent.isMute = 1;
this._parent.volume_reg.volume_reg._x = 0;
stop();
}
}
movieClip 83 {
}
movieClip 85 {
}
movieClip 86 {
}
button 87 {
on (press) {
gotoAndStop(3);
}
on (rollOver, release) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release, releaseOutside) {
_root.stopVideo();
nextFrame();
}
}
movieClip 88 {
}
movieClip 89 {
}
movieClip 91 {
}
movieClip 92 {
}
movieClip 93 {
}
movieClip 94 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 95 {
frame 1 {
isMute = 0;
this.onEnterFrame = function () {
this.onEnterFrame = null;
if (_root.autoplay == 1) {
play_n_pause.icon_mc.gotoAndStop(2);
_root.isPlay = 1;
_root.playVideo();
} else {
play_n_pause.icon_mc.gotoAndStop(1);
_root.isPlay = 0;
_root.stopVideo();
}
if (_root.autohidecontrols) {
_root.startHideTimeout();
}
};
}
frame 1 {
function setNewSize() {
bg.bg_line._width = Stage.width - 30;
bg.bg_left._x = bg.bg_line._width + bg.bg_line._x;
volume_reg._x = bg._width - 70;
mute_button._x = bg._width - 97;
prog_bar.prog_line._width = bg._width - 251;
prog_bar.cover._width = bg._width - 251;
prog_bar.prog_left._x = bg._width - 246;
but._x = 0;
but._y = pr_line._y + pr_line._height + 15;
volume_all._x = Stage.width - volume_all._width;
volume_all._y = pr_line._y + pr_line._height + 19;
mute._x = volume_all._x - mute._width - 10;
mute._y = pr_line._y + pr_line._height + 15;
pr_line.right._x = Stage.width - pr_line.right._width;
pr_line.pr_line._width = Stage.width - pr_line.right._width * 2;
prog_bar.updateSlider();
}
}
instance bg of movieClip 8 {
}
}
movieClip 98 __Packages.caurina.transitions.Tweener {
#initclip
if (!_global.caurina) {
_global.caurina = new Object();
}
if (!_global.caurina.transitions) {
_global.caurina.transitions = new Object();
}
if (!_global.caurina.transitions.Tweener) {
var v1 = function () {
trace('Tweener is an static class and should not be instantiated.');
};
caurina.transitions.Tweener = v1;
var v2 = v1.prototype;
v1.addTween = function (p_scopes, p_parameters) {
if (p_scopes == undefined) {
return false;
}
var v3;
var v7;
var v2;
var v11;
if (p_scopes instanceof Array) {
v11 = p_scopes.concat();
} else {
v11 = [p_scopes];
}
var v5 = caurina.transitions.TweenListObj.makePropertiesChain(p_parameters);
if (!caurina.transitions.Tweener._inited) {
caurina.transitions.Tweener.init();
}
if (!caurina.transitions.Tweener._engineExists || _root[caurina.transitions.Tweener.getControllerName()] == undefined) {
caurina.transitions.Tweener.startEngine();
}
var v19 = isNaN(v5.time) ? 0 : v5.time;
var v12 = isNaN(v5.delay) ? 0 : v5.delay;
var v4 = new Object();
var v24 = {'time': true, 'delay': true, 'useFrames': true, 'skipUpdates': true, 'transition': true, 'transitionParams': true, 'onStart': true, 'onUpdate': true, 'onComplete': true, 'onOverwrite': true, 'onError': true, 'rounded': true, 'onStartParams': true, 'onUpdateParams': true, 'onCompleteParams': true, 'onOverwriteParams': true, 'onStartScope': true, 'onUpdateScope': true, 'onCompleteScope': true, 'onOverwriteScope': true, 'onErrorScope': true, 'quickAdd': true};
var v13 = new Object();
for (v2 in v5) {
if (!v24[v2]) {
if (caurina.transitions.Tweener._specialPropertySplitterList[v2] != undefined) {
var v8 = caurina.transitions.Tweener._specialPropertySplitterList[v2].splitValues(v5[v2], caurina.transitions.Tweener._specialPropertySplitterList[v2].parameters);
v3 = 0;
while (v3 < v8.length) {
if (caurina.transitions.Tweener._specialPropertySplitterList[v8[v3].name] != undefined) {
var v9 = caurina.transitions.Tweener._specialPropertySplitterList[v8[v3].name].splitValues(v8[v3].value, caurina.transitions.Tweener._specialPropertySplitterList[v8[v3].name].parameters);
v7 = 0;
while (v7 < v9.length) {
v4[v9[v7].name] = {'valueStart': undefined, 'valueComplete': v9[v7].value, 'arrayIndex': v9[v7].arrayIndex, 'isSpecialProperty': false};
++v7;
}
} else {
v4[v8[v3].name] = {'valueStart': undefined, 'valueComplete': v8[v3].value, 'arrayIndex': v8[v3].arrayIndex, 'isSpecialProperty': false};
}
++v3;
}
} else {
if (caurina.transitions.Tweener._specialPropertyModifierList[v2] != undefined) {
var v10 = caurina.transitions.Tweener._specialPropertyModifierList[v2].modifyValues(v5[v2]);
v3 = 0;
while (v3 < v10.length) {
v13[v10[v3].name] = {'modifierParameters': v10[v3].parameters, 'modifierFunction': caurina.transitions.Tweener._specialPropertyModifierList[v2].getValue};
++v3;
}
} else {
v4[v2] = {'valueStart': undefined, 'valueComplete': v5[v2]};
}
}
}
}
for (v2 in v4) {
if (caurina.transitions.Tweener._specialPropertyList[v2] != undefined) {
v4[v2].isSpecialProperty = true;
} else {
if (v11[0][v2] == undefined) {
caurina.transitions.Tweener.printError('The property \'' + v2 + '\' doesn\'t seem to be a normal object property of ' + v11[0].toString() + ' or a registered special property.');
}
}
}
for (v2 in v13) {
if (v4[v2] != undefined) {
v4[v2].modifierParameters = v13[v2].modifierParameters;
v4[v2].modifierFunction = v13[v2].modifierFunction;
}
}
var v21;
if (typeof v5.transition == 'string') {
var v26 = v5.transition.toLowerCase();
v21 = caurina.transitions.Tweener._transitionList[v26];
} else {
v21 = v5.transition;
}
if (v21 == undefined) {
v21 = caurina.transitions.Tweener._transitionList.easeoutexpo;
}
var v14;
var v6;
var v20;
v3 = 0;
while (v3 < v11.length) {
v14 = new Object();
for (v2 in v4) {
v14[v2] = new caurina.transitions.PropertyInfoObj(v4[v2].valueStart, v4[v2].valueComplete, v4[v2].valueComplete, v4[v2].arrayIndex, {}, v4[v2].isSpecialProperty, v4[v2].modifierFunction, v4[v2].modifierParameters);
}
if (v5.useFrames == true) {
v6 = new caurina.transitions.TweenListObj(v11[v3], caurina.transitions.Tweener._currentTimeFrame + v12 / caurina.transitions.Tweener._timeScale, caurina.transitions.Tweener._currentTimeFrame + (v12 + v19) / caurina.transitions.Tweener._timeScale, true, v21, v5.transitionParams);
} else {
v6 = new caurina.transitions.TweenListObj(v11[v3], caurina.transitions.Tweener._currentTime + v12 * 1000 / caurina.transitions.Tweener._timeScale, caurina.transitions.Tweener._currentTime + (v12 * 1000 + v19 * 1000) / caurina.transitions.Tweener._timeScale, false, v21, v5.transitionParams);
}
v6.properties = v14;
v6.onStart = v5.onStart;
v6.onUpdate = v5.onUpdate;
v6.onComplete = v5.onComplete;
v6.onOverwrite = v5.onOverwrite;
v6.onError = v5.onError;
v6.onStartParams = v5.onStartParams;
v6.onUpdateParams = v5.onUpdateParams;
v6.onCompleteParams = v5.onCompleteParams;
v6.onOverwriteParams = v5.onOverwriteParams;
v6.onStartScope = v5.onStartScope;
v6.onUpdateScope = v5.onUpdateScope;
v6.onCompleteScope = v5.onCompleteScope;
v6.onOverwriteScope = v5.onOverwriteScope;
v6.onErrorScope = v5.onErrorScope;
v6.rounded = v5.rounded;
v6.skipUpdates = v5.skipUpdates;
if (!v5.quickAdd) {
caurina.transitions.Tweener.removeTweensByTime(v6.scope, v6.properties, v6.timeStart, v6.timeComplete);
}
caurina.transitions.Tweener._tweenList.push(v6);
if (v19 == 0 && v12 == 0) {
v20 = caurina.transitions.Tweener._tweenList.length - 1;
caurina.transitions.Tweener.updateTweenByIndex(v20);
caurina.transitions.Tweener.removeTweenByIndex(v20);
}
++v3;
}
return true;
};
v1.addCaller = function (p_scopes, p_parameters) {
if (p_scopes == undefined) {
return false;
}
var v5;
var v6;
if (p_scopes instanceof Array) {
v6 = p_scopes.concat();
} else {
v6 = [p_scopes];
}
var v3 = p_parameters;
if (!caurina.transitions.Tweener._inited) {
caurina.transitions.Tweener.init();
}
if (!caurina.transitions.Tweener._engineExists || _root[caurina.transitions.Tweener.getControllerName()] == undefined) {
caurina.transitions.Tweener.startEngine();
}
var v7 = isNaN(v3.time) ? 0 : v3.time;
var v4 = isNaN(v3.delay) ? 0 : v3.delay;
var v9;
if (typeof v3.transition == 'string') {
var v11 = v3.transition.toLowerCase();
v9 = caurina.transitions.Tweener._transitionList[v11];
} else {
v9 = v3.transition;
}
if (v9 == undefined) {
v9 = caurina.transitions.Tweener._transitionList.easeoutexpo;
}
var v2;
var v8;
v5 = 0;
while (v5 < v6.length) {
if (v3.useFrames == true) {
v2 = new caurina.transitions.TweenListObj(v6[v5], caurina.transitions.Tweener._currentTimeFrame + v4 / caurina.transitions.Tweener._timeScale, caurina.transitions.Tweener._currentTimeFrame + (v4 + v7) / caurina.transitions.Tweener._timeScale, true, v9, v3.transitionParams);
} else {
v2 = new caurina.transitions.TweenListObj(v6[v5], caurina.transitions.Tweener._currentTime + v4 * 1000 / caurina.transitions.Tweener._timeScale, caurina.transitions.Tweener._currentTime + (v4 * 1000 + v7 * 1000) / caurina.transitions.Tweener._timeScale, false, v9, v3.transitionParams);
}
v2.properties = undefined;
v2.onStart = v3.onStart;
v2.onUpdate = v3.onUpdate;
v2.onComplete = v3.onComplete;
v2.onOverwrite = v3.onOverwrite;
v2.onStartParams = v3.onStartParams;
v2.onUpdateParams = v3.onUpdateParams;
v2.onCompleteParams = v3.onCompleteParams;
v2.onOverwriteParams = v3.onOverwriteParams;
v2.onStartScope = v3.onStartScope;
v2.onUpdateScope = v3.onUpdateScope;
v2.onCompleteScope = v3.onCompleteScope;
v2.onOverwriteScope = v3.onOverwriteScope;
v2.onErrorScope = v3.onErrorScope;
v2.isCaller = true;
v2.count = v3.count;
v2.waitFrames = v3.waitFrames;
caurina.transitions.Tweener._tweenList.push(v2);
if (v7 == 0 && v4 == 0) {
v8 = caurina.transitions.Tweener._tweenList.length - 1;
caurina.transitions.Tweener.updateTweenByIndex(v8);
caurina.transitions.Tweener.removeTweenByIndex(v8);
}
++v5;
}
return true;
};
v1.removeTweensByTime = function (p_scope, p_properties, p_timeStart, p_timeComplete) {
var v5 = false;
var v4;
var v1;
var v7 = caurina.transitions.Tweener._tweenList.length;
var v2;
v1 = 0;
while (v1 < v7) {
if (p_scope == caurina.transitions.Tweener._tweenList[v1].scope) {
if (p_timeComplete > caurina.transitions.Tweener._tweenList[v1].timeStart && p_timeStart < caurina.transitions.Tweener._tweenList[v1].timeComplete) {
v4 = false;
for (v2 in caurina.transitions.Tweener._tweenList[v1].properties) {
if (p_properties[v2] != undefined) {
if (caurina.transitions.Tweener._tweenList[v1].onOverwrite != undefined) {
var v3 = (caurina.transitions.Tweener._tweenList[v1].onOverwriteScope != undefined) ? caurina.transitions.Tweener._tweenList[v1].onOverwriteScope : caurina.transitions.Tweener._tweenList[v1].scope;
try {
caurina.transitions.Tweener._tweenList[v1].onOverwrite.apply(v3, caurina.transitions.Tweener._tweenList[v1].onOverwriteParams);
}
catch (enumerate caurina.transitions.Tweener._tweenList[v1].properties) {
if (Error(enumerate caurina.transitions.Tweener._tweenList[v1].properties) != null) {
var e = Error(enumerate caurina.transitions.Tweener._tweenList[v1].properties);
caurina.transitions.Tweener.handleError(caurina.transitions.Tweener._tweenList[v1], e, 'onOverwrite');
} else {
throw enumerate caurina.transitions.Tweener._tweenList[v1].properties;
}
}
}
caurina.transitions.Tweener._tweenList[v1].properties[v2] = undefined;
delete caurina.transitions.Tweener._tweenList[v1].properties[v2];
v4 = true;
v5 = true;
}
}
if (v4) {
if (caurina.transitions.AuxFunctions.getObjectLength(caurina.transitions.Tweener._tweenList[v1].properties) == 0) {
caurina.transitions.Tweener.removeTweenByIndex(v1);
}
}
}
}
++v1;
}
return v5;
};
v1.removeTweens = function (p_scope) {
var v5 = new Array();
var v3;
v3 = 1;
while (v3 < arguments.length) {
if (typeof arguments[v3] == 'string' && !caurina.transitions.AuxFunctions.isInArray(arguments[v3], v5)) {
if (caurina.transitions.Tweener._specialPropertySplitterList[arguments[v3]]) {
var v6 = caurina.transitions.Tweener._specialPropertySplitterList[arguments[v3]];
var v4 = v6.splitValues(p_scope, null);
var v2 = 0;
while (v2 < v4.length) {
v5.push(v4[v2].name);
++v2;
}
} else {
v5.push(arguments[v3]);
}
}
++v3;
}
return caurina.transitions.Tweener.affectTweens(caurina.transitions.Tweener.removeTweenByIndex, p_scope, v5);
};
v1.removeAllTweens = function () {
var v2 = false;
var v1;
v1 = 0;
while (v1 < caurina.transitions.Tweener._tweenList.length) {
caurina.transitions.Tweener.removeTweenByIndex(v1);
v2 = true;
++v1;
}
return v2;
};
v1.pauseTweens = function (p_scope) {
var v3 = new Array();
var v2;
v2 = 1;
while (v2 < arguments.length) {
if (typeof arguments[v2] == 'string' && !caurina.transitions.AuxFunctions.isInArray(arguments[v2], v3)) {
v3.push(arguments[v2]);
}
++v2;
}
return caurina.transitions.Tweener.affectTweens(caurina.transitions.Tweener.pauseTweenByIndex, p_scope, v3);
};
v1.pauseAllTweens = function () {
var v2 = false;
var v1;
v1 = 0;
while (v1 < caurina.transitions.Tweener._tweenList.length) {
caurina.transitions.Tweener.pauseTweenByIndex(v1);
v2 = true;
++v1;
}
return v2;
};
v1.resumeTweens = function (p_scope) {
var v3 = new Array();
var v2;
v2 = 1;
while (v2 < arguments.length) {
if (typeof arguments[v2] == 'string' && !caurina.transitions.AuxFunctions.isInArray(arguments[v2], v3)) {
v3.push(arguments[v2]);
}
++v2;
}
return caurina.transitions.Tweener.affectTweens(caurina.transitions.Tweener.resumeTweenByIndex, p_scope, v3);
};
v1.resumeAllTweens = function () {
var v2 = false;
var v1;
v1 = 0;
while (v1 < caurina.transitions.Tweener._tweenList.length) {
caurina.transitions.Tweener.resumeTweenByIndex(v1);
v2 = true;
++v1;
}
return v2;
};
v1.affectTweens = function (p_affectFunction, p_scope, p_properties) {
var v5 = false;
var v2;
if (!caurina.transitions.Tweener._tweenList) {
return false;
}
v2 = 0;
while (v2 < caurina.transitions.Tweener._tweenList.length) {
if (caurina.transitions.Tweener._tweenList[v2].scope == p_scope) {
if (p_properties.length == 0) {
p_affectFunction(v2);
v5 = true;
} else {
var v4 = new Array();
var v1;
v1 = 0;
while (v1 < p_properties.length) {
if (caurina.transitions.Tweener._tweenList[v2].properties[p_properties[v1]] != undefined) {
v4.push(p_properties[v1]);
}
++v1;
}
if (v4.length > 0) {
var v7 = caurina.transitions.AuxFunctions.getObjectLength(caurina.transitions.Tweener._tweenList[v2].properties);
if (v7 == v4.length) {
p_affectFunction(v2);
v5 = true;
} else {
var v8 = caurina.transitions.Tweener.splitTweens(v2, v4);
p_affectFunction(v8);
v5 = true;
}
}
}
}
++v2;
}
return v5;
};
v1.splitTweens = function (p_tween, p_properties) {
var v6 = caurina.transitions.Tweener._tweenList[p_tween];
var v5 = v6.clone(false);
var v1;
var v2;
v1 = 0;
while (v1 < p_properties.length) {
v2 = p_properties[v1];
if (v6.properties[v2] != undefined) {
v6.properties[v2] = undefined;
delete v6.properties[v2];
}
++v1;
}
var v4;
for (v2 in v5.properties) {
v4 = false;
v1 = 0;
while (v1 < p_properties.length) {
if (p_properties[v1] == v2) {
v4 = true;
break;
}
++v1;
}
if (!v4) {
v5.properties[v2] = undefined;
delete v5.properties[v2];
}
}
caurina.transitions.Tweener._tweenList.push(v5);
return caurina.transitions.Tweener._tweenList.length - 1;
};
v1.updateTweens = function () {
if (caurina.transitions.Tweener._tweenList.length == 0) {
return false;
}
var v1;
v1 = 0;
while (v1 < caurina.transitions.Tweener._tweenList.length) {
if (!caurina.transitions.Tweener._tweenList[v1].isPaused) {
if (!caurina.transitions.Tweener.updateTweenByIndex(v1)) {
caurina.transitions.Tweener.removeTweenByIndex(v1);
}
if (caurina.transitions.Tweener._tweenList[v1] == null) {
caurina.transitions.Tweener.removeTweenByIndex(v1, true);
--v1;
}
}
++v1;
}
return true;
};
v1.removeTweenByIndex = function (p_tween, p_finalRemoval) {
caurina.transitions.Tweener._tweenList[p_tween] = null;
if (p_finalRemoval) {
caurina.transitions.Tweener._tweenList.splice(p_tween, 1);
}
return true;
};
v1.pauseTweenByIndex = function (p_tween) {
var v1 = caurina.transitions.Tweener._tweenList[p_tween];
if (v1 == null || v1.isPaused) {
return false;
}
v1.timePaused = caurina.transitions.Tweener.getCurrentTweeningTime(v1);
v1.isPaused = true;
return true;
};
v1.resumeTweenByIndex = function (p_tween) {
var v1 = caurina.transitions.Tweener._tweenList[p_tween];
if (v1 == null || !v1.isPaused) {
return false;
}
var v2 = caurina.transitions.Tweener.getCurrentTweeningTime(v1);
v1.timeStart += v2 - v1.timePaused;
v1.timeComplete += v2 - v1.timePaused;
v1.timePaused = undefined;
v1.isPaused = false;
return true;
};
v1.updateTweenByIndex = function (i) {
var v1 = caurina.transitions.Tweener._tweenList[i];
if (v1 == null || !v1.scope) {
return false;
}
var v13 = false;
var v14;
var v3;
var v7;
var v10;
var v9;
var v6;
var v2;
var v12;
var v5;
var v8 = caurina.transitions.Tweener.getCurrentTweeningTime(v1);
var v4;
if (v8 >= v1.timeStart) {
v5 = v1.scope;
if (v1.isCaller) {
do {
v7 = ((v1.timeComplete - v1.timeStart) / v1.count) * (v1.timesCalled + 1);
v10 = v1.timeStart;
v9 = v1.timeComplete - v1.timeStart;
v6 = v1.timeComplete - v1.timeStart;
v3 = v1.transition(v7, v10, v9, v6, v1.transitionParams);
if (v8 >= v3) {
if (v1.onUpdate != undefined) {
v12 = (v1.onUpdateScope != undefined) ? v1.onUpdateScope : v5;
try {
v1.onUpdate.apply(v12, v1.onUpdateParams);
}
catch (v0) {
if (Error(v0) != null) {
var e = Error(v0);
caurina.transitions.Tweener.handleError(v1, e, 'onUpdate');
} else {
throw v0;
}
}
}
++v1.timesCalled;
if (v1.timesCalled >= v1.count) {
v13 = true;
break;
}
if (v1.waitFrames) {
break;
}
}
} while (v8 >= v3);
} else {
v14 = v1.skipUpdates < 1 || v1.skipUpdates == undefined || v1.updatesSkipped >= v1.skipUpdates;
if (v8 >= v1.timeComplete) {
v13 = true;
v14 = true;
}
if (!v1.hasStarted) {
if (v1.onStart != undefined) {
v12 = (v1.onStartScope != undefined) ? v1.onStartScope : v5;
try {
v1.onStart.apply(v12, v1.onStartParams);
}
catch (v0) {
if (Error(v0) != null) {
var e = Error(v0);
caurina.transitions.Tweener.handleError(v1, e, 'onStart');
} else {
throw v0;
}
}
}
var v11;
for (v2 in v1.properties) {
if (v1.properties[v2].isSpecialProperty) {
if (caurina.transitions.Tweener._specialPropertyList[v2].preProcess != undefined) {
v1.properties[v2].valueComplete = caurina.transitions.Tweener._specialPropertyList[v2].preProcess(v5, caurina.transitions.Tweener._specialPropertyList[v2].parameters, v1.properties[v2].originalValueComplete, v1.properties[v2].extra);
}
v11 = caurina.transitions.Tweener._specialPropertyList[v2].getValue(v5, caurina.transitions.Tweener._specialPropertyList[v2].parameters, v1.properties[v2].extra);
} else {
v11 = v5[v2];
}
v1.properties[v2].valueStart = isNaN(v11) ? v1.properties[v2].valueComplete : v11;
}
v14 = true;
v1.hasStarted = true;
}
if (v14) {
for (v2 in v1.properties) {
v4 = v1.properties[v2];
if (v13) {
v3 = v4.valueComplete;
} else {
if (v4.hasModifier) {
v7 = v8 - v1.timeStart;
v6 = v1.timeComplete - v1.timeStart;
v3 = v1.transition(v7, 0, 1, v6, v1.transitionParams);
v3 = v4.modifierFunction(v4.valueStart, v4.valueComplete, v3, v4.modifierParameters);
} else {
v7 = v8 - v1.timeStart;
v10 = v4.valueStart;
v9 = v4.valueComplete - v4.valueStart;
v6 = v1.timeComplete - v1.timeStart;
v3 = v1.transition(v7, v10, v9, v6, v1.transitionParams);
}
}
if (v1.rounded) {
v3 = Math.round(v3);
}
if (v4.isSpecialProperty) {
caurina.transitions.Tweener._specialPropertyList[v2].setValue(v5, v3, caurina.transitions.Tweener._specialPropertyList[v2].parameters, v1.properties[v2].extra);
} else {
v5[v2] = v3;
}
}
v1.updatesSkipped = 0;
if (v1.onUpdate != undefined) {
v12 = (v1.onUpdateScope != undefined) ? v1.onUpdateScope : v5;
try {
v1.onUpdate.apply(v12, v1.onUpdateParams);
}
catch (enumerate v1.properties) {
if (Error(enumerate v1.properties) != null) {
var e = Error(enumerate v1.properties);
caurina.transitions.Tweener.handleError(v1, e, 'onUpdate');
} else {
throw enumerate v1.properties;
}
}
}
} else {
++v1.updatesSkipped;
}
}
if (v13 && v1.onComplete != undefined) {
v12 = (v1.onCompleteScope != undefined) ? v1.onCompleteScope : v5;
try {
v1.onComplete.apply(v12, v1.onCompleteParams);
}
catch (enumerate v1.properties) {
if (Error(enumerate v1.properties) != null) {
var e = Error(enumerate v1.properties);
caurina.transitions.Tweener.handleError(v1, e, 'onComplete');
} else {
throw enumerate v1.properties;
}
}
}
return !v13;
}
return true;
};
v1.init = function () {
caurina.transitions.Tweener._inited = true;
caurina.transitions.Tweener._transitionList = new Object();
caurina.transitions.Equations.init();
caurina.transitions.Tweener._specialPropertyList = new Object();
caurina.transitions.Tweener._specialPropertyModifierList = new Object();
caurina.transitions.Tweener._specialPropertySplitterList = new Object();
};
v1.registerTransition = function (p_name, p_function) {
if (!caurina.transitions.Tweener._inited) {
caurina.transitions.Tweener.init();
}
caurina.transitions.Tweener._transitionList[p_name] = p_function;
};
v1.registerSpecialProperty = function (p_name, p_getFunction, p_setFunction, p_parameters, p_preProcessFunction) {
if (!caurina.transitions.Tweener._inited) {
caurina.transitions.Tweener.init();
}
var v1 = new caurina.transitions.SpecialProperty(p_getFunction, p_setFunction, p_parameters, p_preProcessFunction);
caurina.transitions.Tweener._specialPropertyList[p_name] = v1;
};
v1.registerSpecialPropertyModifier = function (p_name, p_modifyFunction, p_getFunction) {
if (!caurina.transitions.Tweener._inited) {
caurina.transitions.Tweener.init();
}
var v1 = new caurina.transitions.SpecialPropertyModifier(p_modifyFunction, p_getFunction);
caurina.transitions.Tweener._specialPropertyModifierList[p_name] = v1;
};
v1.registerSpecialPropertySplitter = function (p_name, p_splitFunction, p_parameters) {
if (!caurina.transitions.Tweener._inited) {
caurina.transitions.Tweener.init();
}
var v1 = new caurina.transitions.SpecialPropertySplitter(p_splitFunction, p_parameters);
caurina.transitions.Tweener._specialPropertySplitterList[p_name] = v1;
};
v1.startEngine = function () {
caurina.transitions.Tweener._engineExists = true;
caurina.transitions.Tweener._tweenList = new Array();
var v2 = Math.floor(Math.random() * 999999);
var v3 = _root.createEmptyMovieClip(caurina.transitions.Tweener.getControllerName(), 31338 + v2);
v3.onEnterFrame = function () {
caurina.transitions.Tweener.onEnterFrame();
};
caurina.transitions.Tweener._currentTimeFrame = 0;
caurina.transitions.Tweener.updateTime();
};
v1.stopEngine = function () {
caurina.transitions.Tweener._engineExists = false;
caurina.transitions.Tweener._tweenList = null;
caurina.transitions.Tweener._currentTime = 0;
caurina.transitions.Tweener._currentTimeFrame = 0;
delete _root[caurina.transitions.Tweener.getControllerName()].onEnterFrame;
_root[caurina.transitions.Tweener.getControllerName()].removeMovieClip();
};
v1.updateTime = function () {
caurina.transitions.Tweener._currentTime = getTimer();
};
v1.updateFrame = function () {
++caurina.transitions.Tweener._currentTimeFrame;
};
v1.onEnterFrame = function () {
caurina.transitions.Tweener.updateTime();
caurina.transitions.Tweener.updateFrame();
var v1 = false;
v1 = caurina.transitions.Tweener.updateTweens();
if (!v1) {
caurina.transitions.Tweener.stopEngine();
}
};
v1.setTimeScale = function (p_time) {
var v1;
var v2;
if (isNaN(p_time)) {
p_time = 1;
}
if (p_time < 1.0e-005) {
p_time = 1.0e-005;
}
if (p_time != caurina.transitions.Tweener._timeScale) {
v1 = 0;
while (v1 < caurina.transitions.Tweener._tweenList.length) {
v2 = caurina.transitions.Tweener.getCurrentTweeningTime(caurina.transitions.Tweener._tweenList[v1]);
caurina.transitions.Tweener._tweenList[v1].timeStart = v2 - (v2 - caurina.transitions.Tweener._tweenList[v1].timeStart) * caurina.transitions.Tweener._timeScale / p_time;
caurina.transitions.Tweener._tweenList[v1].timeComplete = v2 - (v2 - caurina.transitions.Tweener._tweenList[v1].timeComplete) * caurina.transitions.Tweener._timeScale / p_time;
if (caurina.transitions.Tweener._tweenList[v1].timePaused != undefined) {
caurina.transitions.Tweener._tweenList[v1].timePaused = v2 - (v2 - caurina.transitions.Tweener._tweenList[v1].timePaused) * caurina.transitions.Tweener._timeScale / p_time;
}
++v1;
}
caurina.transitions.Tweener._timeScale = p_time;
}
};
v1.isTweening = function (p_scope) {
var v1;
v1 = 0;
while (v1 < caurina.transitions.Tweener._tweenList.length) {
if (caurina.transitions.Tweener._tweenList[v1].scope == p_scope) {
return true;
}
++v1;
}
return false;
};
v1.getTweens = function (p_scope) {
var v1;
var v2;
var v3 = new Array();
v1 = 0;
while (v1 < caurina.transitions.Tweener._tweenList.length) {
if (caurina.transitions.Tweener._tweenList[v1].scope == p_scope) {
for (v2 in caurina.transitions.Tweener._tweenList[v1].properties) {
v3.push(v2);
}
}
++v1;
}
return v3;
};
v1.getTweenCount = function (p_scope) {
var v1;
var v2 = 0;
v1 = 0;
while (v1 < caurina.transitions.Tweener._tweenList.length) {
if (caurina.transitions.Tweener._tweenList[v1].scope == p_scope) {
v2 += caurina.transitions.AuxFunctions.getObjectLength(caurina.transitions.Tweener._tweenList[v1].properties);
}
++v1;
}
return v2;
};
v1.handleError = function (pTweening, pError, pCallBackName) {
if (pTweening.onError != undefined && typeof (pTweening.onError == 'function')) {
var v3 = (pTweening.onErrorScope != undefined) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(v3, [pTweening.scope, pError]);
}
catch (v0) {
if (Error(v0) != null) {
var metaError = Error(v0);
caurina.transitions.Tweener.printError(pTweening.scope.toString() + ' raised an error while executing the \'onError\' handler. Original error:\n ' + pError + '\nonError error: ' + metaError);
} else {
throw v0;
}
}
} else {
if (pTweening.onError == undefined) {
caurina.transitions.Tweener.printError(pTweening.scope.toString() + ' raised an error while executing the \'' + pCallBackName.toString() + '\'handler. \n' + pError);
}
}
};
v1.getCurrentTweeningTime = function (p_tweening) {
return p_tweening.useFrames ? caurina.transitions.Tweener._currentTimeFrame : caurina.transitions.Tweener._currentTime;
};
v1.getVersion = function () {
return 'AS2 1.31.74';
};
v1.getControllerName = function () {
return '__tweener_controller__' + caurina.transitions.Tweener.getVersion();
};
v1.printError = function (p_message) {
trace('## [Tweener] Error: ' + p_message);
};
v1._engineExists = false;
v1._inited = false;
v1._timeScale = 1;
ASSetPropFlags(caurina.transitions.Tweener.prototype, null, 1);
}
#endinitclip
}
movieClip 99 __Packages.caurina.transitions.TweenListObj {
#initclip
if (!_global.caurina) {
_global.caurina = new Object();
}
if (!_global.caurina.transitions) {
_global.caurina.transitions = new Object();
}
if (!_global.caurina.transitions.TweenListObj) {
var v1 = function (p_scope, p_timeStart, p_timeComplete, p_useFrames, p_transition, p_transitionParams) {
this.scope = p_scope;
this.timeStart = p_timeStart;
this.timeComplete = p_timeComplete;
this.useFrames = p_useFrames;
this.transition = p_transition;
this.transitionParams = p_transitionParams;
this.properties = new Object();
this.isPaused = false;
this.timePaused = undefined;
this.isCaller = false;
this.updatesSkipped = 0;
this.timesCalled = 0;
this.skipUpdates = 0;
this.hasStarted = false;
};
caurina.transitions.TweenListObj = v1;
var v2 = v1.prototype;
v2.clone = function (omitEvents) {
var v2 = new caurina.transitions.TweenListObj(this.scope, this.timeStart, this.timeComplete, this.useFrames, this.transition, this.transitionParams);
v2.properties = new Object();
for (var v3 in this.properties) {
v2.properties[v3] = this.properties[v3].clone();
}
v2.skipUpdates = this.skipUpdates;
v2.updatesSkipped = this.updatesSkipped;
if (!omitEvents) {
v2.onStart = this.onStart;
v2.onUpdate = this.onUpdate;
v2.onComplete = this.onComplete;
v2.onOverwrite = this.onOverwrite;
v2.onError = this.onError;
v2.onStartParams = this.onStartParams;
v2.onUpdateParams = this.onUpdateParams;
v2.onCompleteParams = this.onCompleteParams;
v2.onOverwriteParams = this.onOverwriteParams;
v2.onStartScope = this.onStartScope;
v2.onUpdateScope = this.onUpdateScope;
v2.onCompleteScope = this.onCompleteScope;
v2.onOverwriteScope = this.onOverwriteScope;
v2.onErrorScope = this.onErrorScope;
}
v2.rounded = this.rounded;
v2.isPaused = this.isPaused;
v2.timePaused = this.timePaused;
v2.isCaller = this.isCaller;
v2.count = this.count;
v2.timesCalled = this.timesCalled;
v2.waitFrames = this.waitFrames;
v2.hasStarted = this.hasStarted;
return v2;
};
v2.toString = function () {
var v2 = '\n[TweenListObj ';
v2 += 'scope:' + String(this.scope);
v2 += ', properties:';
var v3 = true;
for (var v4 in this.properties) {
if (!v3) {
v2 += ',';
}
v2 += '[name:' + this.properties[v4].name;
v2 += ',valueStart:' + this.properties[v4].valueStart;
v2 += ',valueComplete:' + this.properties[v4].valueComplete;
v2 += ']';
v3 = false;
}
v2 += ', timeStart:' + String(this.timeStart);
v2 += ', timeComplete:' + String(this.timeComplete);
v2 += ', useFrames:' + String(this.useFrames);
v2 += ', transition:' + String(this.transition);
v2 += ', transitionParams:' + String(this.transitionParams);
if (this.skipUpdates) {
v2 += ', skipUpdates:' + String(this.skipUpdates);
}
if (this.updatesSkipped) {
v2 += ', updatesSkipped:' + String(this.updatesSkipped);
}
if (this.onStart) {
v2 += ', onStart:' + String(this.onStart);
}
if (this.onUpdate) {
v2 += ', onUpdate:' + String(this.onUpdate);
}
if (this.onComplete) {
v2 += ', onComplete:' + String(this.onComplete);
}
if (this.onOverwrite) {
v2 += ', onOverwrite:' + String(this.onOverwrite);
}
if (this.onError) {
v2 += ', onError:' + String(this.onError);
}
if (this.onStartParams) {
v2 += ', onStartParams:' + String(this.onStartParams);
}
if (this.onUpdateParams) {
v2 += ', onUpdateParams:' + String(this.onUpdateParams);
}
if (this.onCompleteParams) {
v2 += ', onCompleteParams:' + String(this.onCompleteParams);
}
if (this.onOverwriteParams) {
v2 += ', onOverwriteParams:' + String(this.onOverwriteParams);
}
if (this.onStartScope) {
v2 += ', onStartScope:' + String(this.onStartScope);
}
if (this.onUpdateScope) {
v2 += ', onUpdateScope:' + String(this.onUpdateScope);
}
if (this.onCompleteScope) {
v2 += ', onCompleteScope:' + String(this.onCompleteScope);
}
if (this.onOverwriteScope) {
v2 += ', onOverwriteScope:' + String(this.onOverwriteScope);
}
if (this.onErrorScope) {
v2 += ', onErrorScope:' + String(this.onErrorScope);
}
if (this.rounded) {
v2 += ', rounded:' + String(this.rounded);
}
if (this.isPaused) {
v2 += ', isPaused:' + String(this.isPaused);
}
if (this.timePaused) {
v2 += ', timePaused:' + String(this.timePaused);
}
if (this.isCaller) {
v2 += ', isCaller:' + String(this.isCaller);
}
if (this.count) {
v2 += ', count:' + String(this.count);
}
if (this.timesCalled) {
v2 += ', timesCalled:' + String(this.timesCalled);
}
if (this.waitFrames) {
v2 += ', waitFrames:' + String(this.waitFrames);
}
if (this.hasStarted) {
v2 += ', hasStarted:' + String(this.hasStarted);
}
v2 += ']\n';
return v2;
};
v1.makePropertiesChain = function (p_obj) {
var v6 = p_obj.base;
if (v6) {
var v5 = {};
var v2;
if (v6 instanceof Array) {
v2 = [];
var v3 = 0;
while (v3 < v6.length) {
v2.push(v6[v3]);
++v3;
}
} else {
v2 = [v6];
}
v2.push(p_obj);
var v4;
var v7 = v2.length;
var v1 = 0;
while (v1 < v7) {
if (v2[v1].base) {
v4 = caurina.transitions.AuxFunctions.concatObjects(caurina.transitions.TweenListObj.makePropertiesChain(v2[v1].base), v2[v1]);
} else {
v4 = v2[v1];
}
v5 = caurina.transitions.AuxFunctions.concatObjects(v5, v4);
++v1;
}
if (v5.base) {
delete v5.base;
}
return v5;
} else {
return p_obj;
}
};
ASSetPropFlags(caurina.transitions.TweenListObj.prototype, null, 1);
}
#endinitclip
}
movieClip 100 __Packages.caurina.transitions.AuxFunctions {
#initclip
if (!_global.caurina) {
_global.caurina = new Object();
}
if (!_global.caurina.transitions) {
_global.caurina.transitions = new Object();
}
if (!_global.caurina.transitions.AuxFunctions) {
var v1 = function () {};
caurina.transitions.AuxFunctions = v1;
var v2 = v1.prototype;
v1.numberToR = function (p_num) {
return (p_num & 16711680) >> 16;
};
v1.numberToG = function (p_num) {
return (p_num & 65280) >> 8;
};
v1.numberToB = function (p_num) {
return p_num & 255;
};
v1.isInArray = function (p_string, p_array) {
var v2 = p_array.length;
var v1 = 0;
while (v1 < v2) {
if (p_array[v1] == p_string) {
return true;
}
++v1;
}
return false;
};
v1.getObjectLength = function (p_object) {
var v1 = 0;
for (var v2 in p_object) {
++v1;
}
return v1;
};
v1.concatObjects = function () {
var v4 = {};
var v2;
var v3 = 0;
while (v3 < arguments.length) {
v2 = arguments[v3];
for (var v5 in v2) {
if (v2[v5] == null) {
delete v4[v5];
} else {
v4[v5] = v2[v5];
}
}
++v3;
}
return v4;
};
ASSetPropFlags(caurina.transitions.AuxFunctions.prototype, null, 1);
}
#endinitclip
}
movieClip 101 __Packages.caurina.transitions.PropertyInfoObj {
#initclip
if (!_global.caurina) {
_global.caurina = new Object();
}
if (!_global.caurina.transitions) {
_global.caurina.transitions = new Object();
}
if (!_global.caurina.transitions.PropertyInfoObj) {
var v1 = function (p_valueStart, p_valueComplete, p_originalValueComplete, p_arrayIndex, p_extra, p_isSpecialProperty, p_modifierFunction, p_modifierParameters) {
this.valueStart = p_valueStart;
this.valueComplete = p_valueComplete;
this.originalValueComplete = p_originalValueComplete;
this.arrayIndex = p_arrayIndex;
this.extra = p_extra;
this.isSpecialProperty = p_isSpecialProperty;
this.hasModifier = p_modifierFunction != undefined;
this.modifierFunction = p_modifierFunction;
this.modifierParameters = p_modifierParameters;
};
caurina.transitions.PropertyInfoObj = v1;
var v2 = v1.prototype;
v2.clone = function () {
var v2 = new caurina.transitions.PropertyInfoObj(this.valueStart, this.valueComplete, this.originalValueComplete, this.arrayIndex, this.extra, this.isSpecialProperty, this.modifierFunction, this.modifierParameters);
return v2;
};
v2.toString = function () {
var v2 = '\n[PropertyInfoObj ';
v2 += 'valueStart:' + String(this.valueStart);
v2 += ', ';
v2 += 'valueComplete:' + String(this.valueComplete);
v2 += ', ';
v2 += 'originalValueComplete:' + String(this.originalValueComplete);
v2 += ', ';
v2 += 'arrayIndex:' + String(this.arrayIndex);
v2 += ', ';
v2 += 'extra:' + String(this.extra);
v2 += ', ';
v2 += 'isSpecialProperty:' + String(this.isSpecialProperty);
v2 += ', ';
v2 += 'hasModifier:' + String(this.hasModifier);
v2 += ', ';
v2 += 'modifierFunction:' + String(this.modifierFunction);
v2 += ', ';
v2 += 'modifierParameters:' + String(this.modifierParameters);
v2 += ']\n';
return v2;
};
ASSetPropFlags(caurina.transitions.PropertyInfoObj.prototype, null, 1);
}
#endinitclip
}
movieClip 102 __Packages.caurina.transitions.SpecialPropertySplitter {
#initclip
if (!_global.caurina) {
_global.caurina = new Object();
}
if (!_global.caurina.transitions) {
_global.caurina.transitions = new Object();
}
if (!_global.caurina.transitions.SpecialPropertySplitter) {
var v1 = function (p_splitFunction, p_parameters) {
this.splitValues = p_splitFunction;
this.parameters = p_parameters;
};
caurina.transitions.SpecialPropertySplitter = v1;
var v2 = v1.prototype;
v2.splitValues = function (p_value, p_parameters) {
return [];
};
v2.toString = function () {
var v2 = '';
v2 += '[SpecialPropertySplitter ';
v2 += 'splitValues:' + this.splitValues.toString();
v2 += ', ';
v2 += 'parameters:' + this.parameters.toString();
v2 += ']';
return v2;
};
ASSetPropFlags(caurina.transitions.SpecialPropertySplitter.prototype, null, 1);
}
#endinitclip
}
movieClip 103 __Packages.caurina.transitions.Equations {
#initclip
if (!_global.caurina) {
_global.caurina = new Object();
}
if (!_global.caurina.transitions) {
_global.caurina.transitions = new Object();
}
if (!_global.caurina.transitions.Equations) {
var v1 = function () {
trace('Equations is a static class and should not be instantiated.');
};
caurina.transitions.Equations = v1;
var v2 = v1.prototype;
v1.init = function () {
caurina.transitions.Tweener.registerTransition('easenone', caurina.transitions.Equations.easeNone);
caurina.transitions.Tweener.registerTransition('linear', caurina.transitions.Equations.easeNone);
caurina.transitions.Tweener.registerTransition('easeinquad', caurina.transitions.Equations.easeInQuad);
caurina.transitions.Tweener.registerTransition('easeoutquad', caurina.transitions.Equations.easeOutQuad);
caurina.transitions.Tweener.registerTransition('easeinoutquad', caurina.transitions.Equations.easeInOutQuad);
caurina.transitions.Tweener.registerTransition('easeoutinquad', caurina.transitions.Equations.easeOutInQuad);
caurina.transitions.Tweener.registerTransition('easeincubic', caurina.transitions.Equations.easeInCubic);
caurina.transitions.Tweener.registerTransition('easeoutcubic', caurina.transitions.Equations.easeOutCubic);
caurina.transitions.Tweener.registerTransition('easeinoutcubic', caurina.transitions.Equations.easeInOutCubic);
caurina.transitions.Tweener.registerTransition('easeoutincubic', caurina.transitions.Equations.easeOutInCubic);
caurina.transitions.Tweener.registerTransition('easeinquart', caurina.transitions.Equations.easeInQuart);
caurina.transitions.Tweener.registerTransition('easeoutquart', caurina.transitions.Equations.easeOutQuart);
caurina.transitions.Tweener.registerTransition('easeinoutquart', caurina.transitions.Equations.easeInOutQuart);
caurina.transitions.Tweener.registerTransition('easeoutinquart', caurina.transitions.Equations.easeOutInQuart);
caurina.transitions.Tweener.registerTransition('easeinquint', caurina.transitions.Equations.easeInQuint);
caurina.transitions.Tweener.registerTransition('easeoutquint', caurina.transitions.Equations.easeOutQuint);
caurina.transitions.Tweener.registerTransition('easeinoutquint', caurina.transitions.Equations.easeInOutQuint);
caurina.transitions.Tweener.registerTransition('easeoutinquint', caurina.transitions.Equations.easeOutInQuint);
caurina.transitions.Tweener.registerTransition('easeinsine', caurina.transitions.Equations.easeInSine);
caurina.transitions.Tweener.registerTransition('easeoutsine', caurina.transitions.Equations.easeOutSine);
caurina.transitions.Tweener.registerTransition('easeinoutsine', caurina.transitions.Equations.easeInOutSine);
caurina.transitions.Tweener.registerTransition('easeoutinsine', caurina.transitions.Equations.easeOutInSine);
caurina.transitions.Tweener.registerTransition('easeincirc', caurina.transitions.Equations.easeInCirc);
caurina.transitions.Tweener.registerTransition('easeoutcirc', caurina.transitions.Equations.easeOutCirc);
caurina.transitions.Tweener.registerTransition('easeinoutcirc', caurina.transitions.Equations.easeInOutCirc);
caurina.transitions.Tweener.registerTransition('easeoutincirc', caurina.transitions.Equations.easeOutInCirc);
caurina.transitions.Tweener.registerTransition('easeinexpo', caurina.transitions.Equations.easeInExpo);
caurina.transitions.Tweener.registerTransition('easeoutexpo', caurina.transitions.Equations.easeOutExpo);
caurina.transitions.Tweener.registerTransition('easeinoutexpo', caurina.transitions.Equations.easeInOutExpo);
caurina.transitions.Tweener.registerTransition('easeoutinexpo', caurina.transitions.Equations.easeOutInExpo);
caurina.transitions.Tweener.registerTransition('easeinelastic', caurina.transitions.Equations.easeInElastic);
caurina.transitions.Tweener.registerTransition('easeoutelastic', caurina.transitions.Equations.easeOutElastic);
caurina.transitions.Tweener.registerTransition('easeinoutelastic', caurina.transitions.Equations.easeInOutElastic);
caurina.transitions.Tweener.registerTransition('easeoutinelastic', caurina.transitions.Equations.easeOutInElastic);
caurina.transitions.Tweener.registerTransition('easeinback', caurina.transitions.Equations.easeInBack);
caurina.transitions.Tweener.registerTransition('easeoutback', caurina.transitions.Equations.easeOutBack);
caurina.transitions.Tweener.registerTransition('easeinoutback', caurina.transitions.Equations.easeInOutBack);
caurina.transitions.Tweener.registerTransition('easeoutinback', caurina.transitions.Equations.easeOutInBack);
caurina.transitions.Tweener.registerTransition('easeinbounce', caurina.transitions.Equations.easeInBounce);
caurina.transitions.Tweener.registerTransition('easeoutbounce', caurina.transitions.Equations.easeOutBounce);
caurina.transitions.Tweener.registerTransition('easeinoutbounce', caurina.transitions.Equations.easeInOutBounce);
caurina.transitions.Tweener.registerTransition('easeoutinbounce', caurina.transitions.Equations.easeOutInBounce);
};
v1.easeNone = function (t, b, c, d, p_params) {
return c * t / d + b;
};
v1.easeInQuad = function (t, b, c, d, p_params) {
t /= d;
return c * t * t + b;
};
v1.easeOutQuad = function (t, b, c, d, p_params) {
t /= d;
return -c * t * (t - 2) + b;
};
v1.easeInOutQuad = function (t, b, c, d, p_params) {
t /= d / 2;
if (t < 1) {
return (c / 2) * t * t + b;
}
return (-c / 2) * (--t * (t - 2) - 1) + b;
};
v1.easeOutInQuad = function (t, b, c, d, p_params) {
if (t < d / 2) {
return caurina.transitions.Equations.easeOutQuad(t * 2, b, c / 2, d, p_params);
}
return caurina.transitions.Equations.easeInQuad(t * 2 - d, b + c / 2, c / 2, d, p_params);
};
v1.easeInCubic = function (t, b, c, d, p_params) {
t /= d;
return c * t * t * t + b;
};
v1.easeOutCubic = function (t, b, c, d, p_params) {
t = t / d - 1;
return c * (t * t * t + 1) + b;
};
v1.easeInOutCubic = function (t, b, c, d, p_params) {
t /= d / 2;
if (t < 1) {
return (c / 2) * t * t * t + b;
}
t -= 2;
return (c / 2) * (t * t * t + 2) + b;
};
v1.easeOutInCubic = function (t, b, c, d, p_params) {
if (t < d / 2) {
return caurina.transitions.Equations.easeOutCubic(t * 2, b, c / 2, d, p_params);
}
return caurina.transitions.Equations.easeInCubic(t * 2 - d, b + c / 2, c / 2, d, p_params);
};
v1.easeInQuart = function (t, b, c, d, p_params) {
t /= d;
return c * t * t * t * t + b;
};
v1.easeOutQuart = function (t, b, c, d, p_params) {
t = t / d - 1;
return -c * (t * t * t * t - 1) + b;
};
v1.easeInOutQuart = function (t, b, c, d, p_params) {
t /= d / 2;
if (t < 1) {
return (c / 2) * t * t * t * t + b;
}
t -= 2;
return (-c / 2) * (t * t * t * t - 2) + b;
};
v1.easeOutInQuart = function (t, b, c, d, p_params) {
if (t < d / 2) {
return caurina.transitions.Equations.easeOutQuart(t * 2, b, c / 2, d, p_params);
}
return caurina.transitions.Equations.easeInQuart(t * 2 - d, b + c / 2, c / 2, d, p_params);
};
v1.easeInQuint = function (t, b, c, d, p_params) {
t /= d;
return c * t * t * t * t * t + b;
};
v1.easeOutQuint = function (t, b, c, d, p_params) {
t = t / d - 1;
return c * (t * t * t * t * t + 1) + b;
};
v1.easeInOutQuint = function (t, b, c, d, p_params) {
t /= d / 2;
if (t < 1) {
return (c / 2) * t * t * t * t * t + b;
}
t -= 2;
return (c / 2) * (t * t * t * t * t + 2) + b;
};
v1.easeOutInQuint = function (t, b, c, d, p_params) {
if (t < d / 2) {
return caurina.transitions.Equations.easeOutQuint(t * 2, b, c / 2, d, p_params);
}
return caurina.transitions.Equations.easeInQuint(t * 2 - d, b + c / 2, c / 2, d, p_params);
};
v1.easeInSine = function (t, b, c, d, p_params) {
return -c * Math.cos((t / d) * 1.570796326794897) + c + b;
};
v1.easeOutSine = function (t, b, c, d, p_params) {
return c * Math.sin((t / d) * 1.570796326794897) + b;
};
v1.easeInOutSine = function (t, b, c, d, p_params) {
return (-c / 2) * (Math.cos(Math.PI * t / d) - 1) + b;
};
v1.easeOutInSine = function (t, b, c, d, p_params) {
if (t < d / 2) {
return caurina.transitions.Equations.easeOutSine(t * 2, b, c / 2, d, p_params);
}
return caurina.transitions.Equations.easeInSine(t * 2 - d, b + c / 2, c / 2, d, p_params);
};
v1.easeInExpo = function (t, b, c, d, p_params) {
return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b - c * 0.001;
};
v1.easeOutExpo = function (t, b, c, d, p_params) {
return (t == d) ? b + c : c * 1.001 * (-Math.pow(2, -10 * t / d) + 1) + b;
};
v1.easeInOutExpo = function (t, b, c, d, p_params) {
if (t == 0) {
return b;
}
if (t == d) {
return b + c;
}
t /= d / 2;
if (t < 1) {
return (c / 2) * Math.pow(2, 10 * (t - 1)) + b - c * 0.0005;
}
return (c / 2) * 1.0005 * (-Math.pow(2, -10 * --t) + 2) + b;
};
v1.easeOutInExpo = function (t, b, c, d, p_params) {
if (t < d / 2) {
return caurina.transitions.Equations.easeOutExpo(t * 2, b, c / 2, d, p_params);
}
return caurina.transitions.Equations.easeInExpo(t * 2 - d, b + c / 2, c / 2, d, p_params);
};
v1.easeInCirc = function (t, b, c, d, p_params) {
t /= d;
return -c * (Math.sqrt(1 - t * t) - 1) + b;
};
v1.easeOutCirc = function (t, b, c, d, p_params) {
t = t / d - 1;
return c * Math.sqrt(1 - t * t) + b;
};
v1.easeInOutCirc = function (t, b, c, d, p_params) {
t /= d / 2;
if (t < 1) {
return (-c / 2) * (Math.sqrt(1 - t * t) - 1) + b;
}
t -= 2;
return (c / 2) * (Math.sqrt(1 - t * t) + 1) + b;
};
v1.easeOutInCirc = function (t, b, c, d, p_params) {
if (t < d / 2) {
return caurina.transitions.Equations.easeOutCirc(t * 2, b, c / 2, d, p_params);
}
return caurina.transitions.Equations.easeInCirc(t * 2 - d, b + c / 2, c / 2, d, p_params);
};
v1.easeInElastic = function (t, b, c, d, p_params) {
if (t == 0) {
return b;
}
t /= d;
if (t == 1) {
return b + c;
}
var v2 = (p_params.period == undefined) ? d * 0.3 : p_params.period;
var v5;
var v1 = p_params.amplitude;
if (!v1 || v1 < Math.abs(c)) {
v1 = c;
v5 = v2 / 4;
t -= 1;
return -(v1 * Math.pow(2, 10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v2)) + b;
}
v5 = (v2 / 6.283185307179586) * Math.asin(c / v1);
t -= 1;
return -(v1 * Math.pow(2, 10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v2)) + b;
};
v1.easeOutElastic = function (t, b, c, d, p_params) {
if (t == 0) {
return b;
}
t /= d;
if (t == 1) {
return b + c;
}
var v3 = (p_params.period == undefined) ? d * 0.3 : p_params.period;
var v5;
var v1 = p_params.amplitude;
if (!v1 || v1 < Math.abs(c)) {
v1 = c;
v5 = v3 / 4;
return v1 * Math.pow(2, -10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v3) + c + b;
}
v5 = (v3 / 6.283185307179586) * Math.asin(c / v1);
return v1 * Math.pow(2, -10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v3) + c + b;
};
v1.easeInOutElastic = function (t, b, c, d, p_params) {
if (t == 0) {
return b;
}
t /= d / 2;
if (t == 2) {
return b + c;
}
var v3 = (p_params.period == undefined) ? d * 0.45 : p_params.period;
var v5;
var v1 = p_params.amplitude;
if (!v1 || v1 < Math.abs(c)) {
v1 = c;
v5 = v3 / 4;
} else {
v5 = (v3 / 6.283185307179586) * Math.asin(c / v1);
}
if (t < 1) {
t -= 1;
return -0.5 * (v1 * Math.pow(2, 10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v3)) + b;
}
t -= 1;
return v1 * Math.pow(2, -10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v3) * 0.5 + c + b;
};
v1.easeOutInElastic = function (t, b, c, d, p_params) {
if (t < d / 2) {
return caurina.transitions.Equations.easeOutElastic(t * 2, b, c / 2, d, p_params);
}
return caurina.transitions.Equations.easeInElastic(t * 2 - d, b + c / 2, c / 2, d, p_params);
};
v1.easeInBack = function (t, b, c, d, p_params) {
if (p_params.overshoot != undefined) {
var v1 = p_params.overshoot;
t /= d;
return c * t * t * ((v1 + 1) * t - v1) + b;
}
var v1 = 1.70158;
t /= d;
return c * t * t * ((v1 + 1) * t - v1) + b;
};
v1.easeOutBack = function (t, b, c, d, p_params) {
if (p_params.overshoot != undefined) {
var v2 = p_params.overshoot;
t = t / d - 1;
return c * (t * t * ((v2 + 1) * t + v2) + 1) + b;
}
var v2 = 1.70158;
t = t / d - 1;
return c * (t * t * ((v2 + 1) * t + v2) + 1) + b;
};
v1.easeInOutBack = function (t, b, c, d, p_params) {
var v2 = (p_params.overshoot == undefined) ? 1.70158 : p_params.overshoot;
t /= d / 2;
if (t < 1) {
v2 *= 1.525;
return (c / 2) * (t * t * ((v2 + 1) * t - v2)) + b;
}
t -= 2;
v2 *= 1.525;
return (c / 2) * (t * t * ((v2 + 1) * t + v2) + 2) + b;
};
v1.easeOutInBack = function (t, b, c, d, p_params) {
if (t < d / 2) {
return caurina.transitions.Equations.easeOutBack(t * 2, b, c / 2, d, p_params);
}
return caurina.transitions.Equations.easeInBack(t * 2 - d, b + c / 2, c / 2, d, p_params);
};
v1.easeInBounce = function (t, b, c, d, p_params) {
return c - caurina.transitions.Equations.easeOutBounce(d - t, 0, c, d) + b;
};
v1.easeOutBounce = function (t, b, c, d, p_params) {
t /= d;
if (t < 0.3636363636363637) {
return c * (7.5625 * t * t) + b;
} else {
if (t < 0.7272727272727273) {
t -= 0.5454545454545454;
return c * (7.5625 * t * t + 0.75) + b;
} else {
if (t < 0.9090909090909091) {
t -= 0.8181818181818182;
return c * (7.5625 * t * t + 0.9375) + b;
} else {
t -= 0.9545454545454546;
return c * (7.5625 * t * t + 0.984375) + b;
}
}
}
};
v1.easeInOutBounce = function (t, b, c, d, p_params) {
if (t < d / 2) {
return caurina.transitions.Equations.easeInBounce(t * 2, 0, c, d) * 0.5 + b;
} else {
return caurina.transitions.Equations.easeOutBounce(t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b;
}
};
v1.easeOutInBounce = function (t, b, c, d, p_params) {
if (t < d / 2) {
return caurina.transitions.Equations.easeOutBounce(t * 2, b, c / 2, d, p_params);
}
return caurina.transitions.Equations.easeInBounce(t * 2 - d, b + c / 2, c / 2, d, p_params);
};
ASSetPropFlags(caurina.transitions.Equations.prototype, null, 1);
}
#endinitclip
}
movieClip 104 __Packages.caurina.transitions.SpecialProperty {
#initclip
if (!_global.caurina) {
_global.caurina = new Object();
}
if (!_global.caurina.transitions) {
_global.caurina.transitions = new Object();
}
if (!_global.caurina.transitions.SpecialProperty) {
var v1 = function (p_getFunction, p_setFunction, p_parameters, p_preProcessFunction) {
this.getValue = p_getFunction;
this.setValue = p_setFunction;
this.parameters = p_parameters;
this.preProcess = p_preProcessFunction;
};
caurina.transitions.SpecialProperty = v1;
var v2 = v1.prototype;
v2.toString = function () {
var v2 = '';
v2 += '[SpecialProperty ';
v2 += 'getValue:' + this.getValue.toString();
v2 += ', ';
v2 += 'setValue:' + this.setValue.toString();
v2 += ', ';
v2 += 'parameters:' + this.parameters.toString();
v2 += ', ';
v2 += 'preProcess:' + this.preProcess.toString();
v2 += ']';
return v2;
};
ASSetPropFlags(caurina.transitions.SpecialProperty.prototype, null, 1);
}
#endinitclip
}
movieClip 105 __Packages.caurina.transitions.SpecialPropertyModifier {
#initclip
if (!_global.caurina) {
_global.caurina = new Object();
}
if (!_global.caurina.transitions) {
_global.caurina.transitions = new Object();
}
if (!_global.caurina.transitions.SpecialPropertyModifier) {
var v1 = function (p_modifyFunction, p_getFunction) {
this.modifyValues = p_modifyFunction;
this.getValue = p_getFunction;
};
caurina.transitions.SpecialPropertyModifier = v1;
var v2 = v1.prototype;
v2.toString = function () {
var v2 = '';
v2 += '[SpecialPropertyModifier ';
v2 += 'modifyValues:' + this.modifyValues.toString();
v2 += ', ';
v2 += 'getValue:' + this.getValue.toString();
v2 += ']';
return v2;
};
ASSetPropFlags(caurina.transitions.SpecialPropertyModifier.prototype, null, 1);
}
#endinitclip
}
frame 2 {
stop();
init();
}