Frame 1
_root._xscale = 82;
_root._yscale = 82;
stop();
airGuitarSound = new Sound();
airGuitarSound.setVolume(100);
airGuitarSound.attachSound("introMusic");
airGuitarSound.start(0, 999999);
Mouse.hide();
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
trace("DOWN");
_root.airGuitarSound.stop();
_root.gotoAndStop("main");
};
mouseListener.onMouseMove = function () {
cursor._x = _root._xmouse - 17;
cursor._y = _root._ymouse - 4;
};
Mouse.addListener(mouseListener);
stop();
Frame 2
function init() {
mouseDown = false;
_root.cursor._x = _root._xmouse - 17;
_root.cursor._y = _root._ymouse - 4;
initKeyArray();
initMouseListener();
initKeyListener();
initSelectionManager();
initTapeDeck();
initFonts();
initButtons();
_root.fileManager = new FileManager();
_root.selectionManager.selectSound(1);
}
function initSelectionManager() {
_root.createEmptyMovieClip("selectionMC", 1);
_root.selectionManager = new SelectionManager(_root.selectionMC);
}
function initTapeDeck() {
_root.createEmptyMovieClip("tapeDeckMC", 2);
_root.tapeDeck = new TapeDeck(_root.tapeDeckMC);
}
function initFonts() {
_global.Arial10 = new TextFormat();
with (Arial10) {
size = 10;
bold = false;
font = "Arial";
color = 0;
}
}
function initKeyListener() {
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local2 = Key.getCode();
switch (_local2) {
case 65 :
trace("C");
_root.selectionManager.playNote(0);
break;
case 87 :
trace("C#");
_root.selectionManager.playNote(1);
break;
case 83 :
trace("D");
_root.selectionManager.playNote(2);
break;
case 69 :
trace("D#");
_root.selectionManager.playNote(3);
break;
case 68 :
trace("E");
_root.selectionManager.playNote(4);
break;
case 70 :
trace("F");
_root.selectionManager.playNote(5);
break;
case 84 :
trace("F#");
_root.selectionManager.playNote(6);
break;
case 71 :
trace("G");
_root.selectionManager.playNote(7);
break;
case 89 :
trace("G#");
_root.selectionManager.playNote(8);
break;
case 72 :
trace("A");
_root.selectionManager.playNote(9);
break;
case 85 :
trace("A#");
_root.selectionManager.playNote(10);
break;
case 74 :
trace("B");
_root.selectionManager.playNote(11);
break;
case 75 :
trace("C");
_root.selectionManager.playNote(12);
break;
}
};
keyListener.onKeyUp = function () {
_root.selectionManager.releaseNote();
};
Key.addListener(keyListener);
}
function removeKeyListener() {
Key.removeListener(keyListener);
}
function initKeyArray() {
_root.keyArray = new Array("C", "Cs", "D", "Ds", "E", "F", "Fs", "G", "Gs", "A", "As", "B", "Chi");
var len = keyArray.length;
var i = 0;
while (i < len) {
var curItem = eval ("_root." + keyArray[i]);
curItem._alpha = 0;
curItem.key = i;
i++;
}
}
function initButtons() {
_root.rock_bn.onPress = function () {
trace("PRESS ROCK");
if ((!_root.tapeDeck.isPlaying) && (!_root.tapeDeck.isRecording)) {
_root.selectionManager.selectSound(1);
}
};
_root.burp_bn.onPress = function () {
if ((!_root.tapeDeck.isPlaying) && (!_root.tapeDeck.isRecording)) {
_root.selectionManager.selectSound(2);
}
};
_root.fart_bn.onPress = function () {
if ((!_root.tapeDeck.isPlaying) && (!_root.tapeDeck.isRecording)) {
_root.selectionManager.selectSound(3);
}
};
}
function playKeys() {
if (_root.mouseIsPressed == true) {
var len = keyArray.length;
var i = 0;
while (i < len) {
var curItem = eval ("_root." + keyArray[i]);
if (curItem.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.selectedKey = i;
if (_root.selectedKey != _root.prevSelectedKey) {
_root.selectionManager.releaseNote();
trace("HIT " + curItem);
curItem._alpha = 100;
var prevItem = eval ("_root." + keyArray[prevSelectedKey]);
prevItem._alpha = 0;
_root.prevSelectedKey = _root.selectedKey;
_root.selectionManager.playNote(curItem.key);
}
return;
}
curItem._alpha = 0;
i++;
}
}
}
function initMouseListener() {
Mouse.hide();
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
_root.mouseIsPressed = true;
_root.mouseDown = true;
_root.cursor.gotoAndStop(2);
_root.playKeys();
};
mouseListener.onMouseUp = function () {
_root.mouseIsPressed = false;
_root.mouseDown = false;
_root.cursor.gotoAndStop(1);
_root.selectionManager.releaseNote();
var prevItem = eval ("_root." + keyArray[prevSelectedKey]);
prevItem._alpha = 0;
_root.prevSelectedKey = null;
};
mouseListener.onMouseMove = function () {
_root.cursor._x = _root._xmouse - 17;
_root.cursor._y = _root._ymouse - 4;
_root.playKeys();
};
Mouse.addListener(mouseListener);
}
if (_global.$tweenManager == undefined) {
_global.$tweenManager = new zigo.tweenManager();
} else {
_global.$tweenManager.cleanUp();
_global.$tweenManager.init();
}
com.robertpenner.easing.Back;
com.robertpenner.easing.Bounce;
com.robertpenner.easing.Circ;
com.robertpenner.easing.Cubic;
com.robertpenner.easing.Elastic;
com.robertpenner.easing.Expo;
com.robertpenner.easing.Linear;
com.robertpenner.easing.Quad;
com.robertpenner.easing.Quart;
com.robertpenner.easing.Quint;
com.robertpenner.easing.Sine;
var Mp = MovieClip.prototype;
Mp.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.addListener.apply(this, arguments);
};
ASSetPropFlags(Mp, "addListener", 1, 0);
Mp.tween = function (props, pEnd, seconds, animType, delay, callback, extra1, extra2) {
if (_global.$tweenManager.isTweenLocked(this)) {
trace("tween not added, this movieclip is locked");
return(undefined);
}
if (arguments.length < 2) {
trace("tween not added, props & pEnd must be defined");
return(undefined);
}
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
if (!(pEnd instanceof Array)) {
pEnd = [pEnd];
while (pEnd.length < props.length) {
pEnd.push(pEnd[0]);
}
}
if (seconds == undefined) {
seconds = 2;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || (delay == undefined)) {
delay = 0;
}
switch (typeof(animType)) {
case "string" :
animType = animType.toLowerCase();
if (animType == "linear") {
var eqf = com.robertpenner.easing.Linear.easeNone;
} else if (animType.indexOf("easeoutin") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeOutIn;
} else if (animType.indexOf("easeinout") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeInOut;
} else if (animType.indexOf("easein") == 0) {
var t = animType.substr(6);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeIn;
} else if (animType.indexOf("easeout") == 0) {
var t = animType.substr(7);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeOut;
}
if (eqf == undefined) {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
case "function" :
var eqf = animType;
break;
case "object" :
if ((animType.ease != undefined) && (animType.pts != undefined)) {
var eqf = animType.ease;
extra1 = animType.pts;
} else {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
default :
var eqf = com.robertpenner.easing.Expo.easeOut;
}
switch (typeof(callback)) {
case "function" :
callback = {func:callback, scope:this._parent};
break;
case "string" :
var ilp;
var funcp;
var scope;
var args;
var a;
ilp = callback.indexOf("(");
funcp = callback.slice(0, ilp);
scope = eval (funcp.slice(0, funcp.lastIndexOf(".")));
func = eval (funcp);
args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
var i = 0;
while (i < args.length) {
a = eval (args[i]);
if (a != undefined) {
args[i] = a;
}
i++;
}
callback = {func:func, scope:scope, args:args};
}
if (_global.$tweenManager.autoStop) {
_global.$tweenManager.removeTween(this);
}
if (delay > 0) {
_global.$tweenManager.addTweenWithDelay(delay, this, props, pEnd, seconds, eqf, callback, extra1, extra2);
} else {
_global.$tweenManager.addTween(this, props, pEnd, seconds, eqf, callback, extra1, extra2);
}
};
Mp.stopTween = function (props) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_global.$tweenManager.removeTween(this, props);
};
Mp.isTweening = function (prop) {
return(_global.$tweenManager.isTweening(this, prop));
};
Mp.getTweens = function () {
return(_global.$tweenManager.getTweens(this));
};
Mp.lockTween = function () {
_global.$tweenManager.lockTween(this, true);
};
Mp.unlockTween = function () {
_global.$tweenManager.lockTween(this, false);
};
Mp.isTweenLocked = function () {
return(_global.$tweenManager.isTweenLocked(this));
};
Mp.isTweenPaused = function (prop) {
return(_global.$tweenManager.isTweenPaused(this, prop));
};
Mp.pauseTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.pauseTween(this, _local4);
};
Mp.unpauseTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.unpauseTween(this, _local4);
};
Mp.pauseAllTweens = function () {
_global.$tweenManager.pauseTween();
};
Mp.unpauseAllTweens = function () {
_global.$tweenManager.unpauseTween();
};
Mp.stopAllTweens = function () {
_global.$tweenManager.stopAll();
};
Mp.ffTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.ffTween(this, _local4);
};
Mp.rewTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.rewTween(this, _local4);
};
Mp.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2);
};
Mp.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2);
};
Mp.sizeTo = function (destSize, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_width", "_height"], [destSize, destSize], seconds, animType, delay, callback, extra1, extra2);
};
Mp.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2);
};
Mp.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2);
};
_global.getColorTransObj = function (type, amt, rgb) {
switch (type) {
case "brightness" :
var _local4 = 100 - Math.abs(amt);
var _local6 = 0;
if (amt > 0) {
_local6 = 256 * (amt / 100);
}
return({ra:_local4, rb:_local6, ga:_local4, gb:_local6, ba:_local4, bb:_local6});
case "brightOffset" :
_local6 = 256 * (amt / 100);
return({ra:100, rb:_local6, ga:100, gb:_local6, ba:100, bb:_local6});
case "contrast" :
var _local2 = {};
_local2.ra = (_local2.ga = (_local2.ba = amt));
_local2.rb = (_local2.gb = (_local2.bb = 128 - (1.28 * amt)));
return(_local2);
case "invertColor" :
_local2 = {};
_local2.ra = (_local2.ga = (_local2.ba = 100 - (2 * amt)));
_local2.rb = (_local2.gb = (_local2.bb = amt * 2.55));
return(_local2);
case "tint" :
if ((rgb == undefined) || (rgb == null)) {
} else {
var _local8 = rgb >> 16;
var _local9 = (rgb >> 8) & 255;
var _local7 = rgb & 255;
var _local5 = amt / 100;
_local2 = {rb:_local8 * _local5, gb:_local9 * _local5, bb:_local7 * _local5};
_local2.ra = (_local2.ga = (_local2.ba = 100 - amt));
return(_local2);
}
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
};
Mp.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("brightness", bright)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.brightOffsetTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("brightOffset", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.contrastTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("contrast", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.colorTo = function (rgb, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("tint", 100, rgb)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) {
var _local2 = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab};
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
Mp.invertColorTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("invertColor", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.tintTo = function (rgb, percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("tint", percent, rgb)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.getFrame = function () {
return(this._currentframe);
};
Mp.setFrame = function (fr) {
this.gotoAndStop(Math.round(fr));
};
Mp.addProperty("_frame", Mp.getFrame, Mp.setFrame);
Mp.frameTo = function (endframe, duration, animType, delay, callback, extra1, extra2) {
if (endframe == undefined) {
endframe = this._totalframes;
}
this.tween("_frame", endframe, duration, animType, delay, callback, extra1, extra2);
};
var TFP = TextField.prototype;
if (!TFP.origAddListener) {
TFP.origAddListener = TFP.addListener;
ASSetPropFlags(TFP, "origAddListener", 1, 0);
TFP.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.origAddListener.apply(this, arguments);
};
}
var $_$methods = ["tween", "stopTween", "isTweening", "getTweens", "lockTween", "isTweenLocked", "unlockTween", "isTweenPaused", "pauseTween", "unpauseTween", "pauseAllTweens", "unpauseAllTweens", "stopAllTweens", "ffTween", "rewTween", "getFrame", "setFrame", "_frame", "frameTo", "alphaTo", "brightnessTo", "colorTo", "colorTransformTo", "invertColorTo", "tintTo", "scaleTo", "sizeTo", "slideTo", "rotateTo", "brightOffsetTo", "contrastTo"];
for (var $_$i in $_$methods) {
ASSetPropFlags(Mp, $_$methods[$_$i], 1, 0);
if ($_$methods[$_$i].toLowerCase().indexOf("frame") == -1) {
TFP[$_$methods[$_$i]] = Mp[$_$methods[$_$i]];
ASSetPropFlags(TFP, $_$methods[$_$i], 1, 0);
}
}
delete Mp;
delete TFP;
delete $_$methods;
delete $_$i;
init();
Symbol 50 MovieClip [rockAnimation_mc] Frame 1
stop();
Symbol 50 MovieClip [rockAnimation_mc] Frame 8
stop();
Symbol 50 MovieClip [rockAnimation_mc] Frame 10
stop();
Symbol 57 MovieClip [burpAnimation_mc] Frame 1
stop();
Symbol 57 MovieClip [burpAnimation_mc] Frame 6
stop();
Symbol 57 MovieClip [burpAnimation_mc] Frame 8
stop();
Symbol 66 MovieClip [fartAnimation_mc] Frame 1
stop();
Symbol 66 MovieClip [fartAnimation_mc] Frame 8
stop();
Symbol 66 MovieClip [fartAnimation_mc] Frame 10
stop();
Symbol 69 MovieClip [ultimateScroller_drag] Frame 1
function setSkins() {
var _local2 = new Color(face_mc);
_local2.setRGB(this._parent.c_face);
_local2 = new Color(shadow_mc);
_local2.setRGB(this._parent.c_shadow);
_local2 = new Color(darkshadow_mc);
_local2.setRGB(this._parent.c_darkshadow);
_local2 = new Color(highlight_mc);
_local2.setRGB(this._parent.c_highlight);
_local2 = new Color(highlight3d_mc);
_local2.setRGB(this._parent.c_highlight3d);
}
if (this._parent.c_horizontal == true) {
this._rotation = 90;
tmp = h;
h = w;
w = tmp;
x = 0;
y = -16;
delete tmp;
} else {
this._rotation = 0;
x = 0;
y = 0;
}
this.createEmptyMovieClip("darkshadow_mc", 1000);
with (this.darkshadow_mc) {
beginFill(_parent._parent.c_darkshadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.createEmptyMovieClip("highlight3d_mc", 1001);
with (this.highlight3d_mc) {
beginFill(_parent._parent.c_highlight3d);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.createEmptyMovieClip("shadow_mc", 1002);
with (this.shadow_mc) {
beginFill(_parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.createEmptyMovieClip("highlight_mc", 1003);
with (this.highlight_mc) {
beginFill(_parent._parent.c_highlight);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.createEmptyMovieClip("face_mc", 1004);
with (this.face_mc) {
beginFill(_parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
delete x;
delete y;
delete w;
delete h;
Symbol 70 MovieClip [ultimateScroller_button_up] Frame 1
this.useHandCursor = false;
setSkins();
this.onPress = function () {
if (this._parent.enabled == false) {
gotoAndStop ("disabled");
return(undefined);
}
this._parent.scrollUp();
this._parent.scrollDelay = true;
this._parent.delayTimer = setInterval(this._parent, "clearDelay", 300);
this._parent.scrolling = "UP";
gotoAndStop ("down");
updateAfterEvent();
};
this.onRelease = (this.onReleaseOutside = function () {
if (this._parent.enabled == false) {
gotoAndStop ("disabled");
return(undefined);
}
this._parent.scrolling = false;
this._parent.clearDelay();
gotoAndStop ("up");
updateAfterEvent();
});
this.setSkins = function () {
this.drawButtons();
};
this.drawButtons = function () {
w = _parent.c_scrollWidth;
h = 16;
arrowX = w / 2;
arrowY = h / 2;
x = 0;
y = 0;
this.createEmptyMovieClip("buttonG", 1000);
switch (this._currentframe) {
case 1 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("darkshadow_mc", 1000);
with (this.buttonG.darkshadow_mc) {
beginFill(_parent._parent._parent.c_darkshadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight3d_mc", 1001);
with (this.buttonG.highlight3d_mc) {
beginFill(_parent._parent._parent.c_highlight3d);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("shadow_mc", 1002);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight_mc", 1003);
with (this.buttonG.highlight_mc) {
beginFill(_parent._parent._parent.c_highlight);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (_parent.c_arrowsVisible) {
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY, _rotation:-180, _xscale:-100, _yscale:100});
if (!_parent.c_arrowDefaultColor) {
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(this._parent.c_arrow);
}
}
break;
case 2 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("shadow_mc", 1000);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 2;
h = h - 2;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (_parent.c_arrowsVisible) {
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY, _rotation:-180, _xscale:-100, _yscale:100});
if (!_parent.c_arrowDefaultColor) {
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(this._parent.c_arrow);
}
}
break;
case 3 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("darkshadow_mc", 1000);
with (this.buttonG.darkshadow_mc) {
beginFill(_parent._parent._parent.c_darkshadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight3d_mc", 1001);
with (this.buttonG.highlight3d_mc) {
beginFill(_parent._parent._parent.c_highlight3d);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("shadow_mc", 1002);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight_mc", 1003);
with (this.buttonG.highlight_mc) {
beginFill(_parent._parent._parent.c_highlight);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (!_parent.c_arrowsVisible) {
break;
}
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY, _rotation:-180, _xscale:-100, _yscale:100});
if (!_parent.c_useDisabledColor) {
break;
}
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(this._parent.c_foregroundDisabled);
}
delete x;
delete y;
delete w;
delete h;
};
stop();
Symbol 70 MovieClip [ultimateScroller_button_up] Frame 2
setSkins();
stop();
Symbol 70 MovieClip [ultimateScroller_button_up] Frame 3
setSkins();
stop();
Symbol 71 MovieClip [ultimateScroller_button_right] Frame 1
this.useHandCursor = false;
this._focusRect = false;
setSkins();
this.onPress = function () {
if (this._parent.enabled == false) {
gotoAndStop ("disabled");
return(undefined);
}
this._parent.scrollDown();
this._parent.scrollDelay = true;
this._parent.delayTimer = setInterval(this._parent, "clearDelay", 300);
this._parent.scrolling = "DOWN";
gotoAndStop ("down");
updateAfterEvent();
};
this.onRelease = (this.onReleaseOutside = function () {
if (this._parent.enabled == false) {
gotoAndStop ("disabled");
return(undefined);
}
this._parent.scrolling = false;
this._parent.clearDelay();
gotoAndStop ("up");
updateAfterEvent();
});
this.setSkins = function () {
this.drawButtons();
};
this.drawButtons = function () {
w = 16;
h = _parent.c_scrollWidth;
arrowX = w / 2;
arrowY = h / 2;
x = 0;
y = 0;
this.createEmptyMovieClip("buttonG", 1000);
this.buttonG._rotation = 90;
this.buttonG._x = 16;
switch (this._currentframe) {
case 1 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("darkshadow_mc", 1000);
with (this.buttonG.darkshadow_mc) {
beginFill(_parent._parent._parent.c_darkshadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight3d_mc", 1001);
with (this.buttonG.highlight3d_mc) {
beginFill(_parent._parent._parent.c_highlight3d);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("shadow_mc", 1002);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight_mc", 1003);
with (this.buttonG.highlight_mc) {
beginFill(_parent._parent._parent.c_highlight);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (_parent.c_arrowsVisible) {
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY, _rotation:270, _xscale:-100, _yscale:100});
if (!_parent.c_arrowDefaultColor) {
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(this._parent.c_arrow);
}
}
break;
case 2 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("shadow_mc", 1000);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 2;
h = h - 2;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (_parent.c_arrowsVisible) {
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY, _rotation:270, _xscale:-100, _yscale:100});
if (!_parent.c_arrowDefaultColor) {
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(this._parent.c_arrow);
}
}
break;
case 3 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("darkshadow_mc", 1000);
with (this.buttonG.darkshadow_mc) {
beginFill(_parent._parent._parent.c_darkshadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight3d_mc", 1001);
with (this.buttonG.highlight3d_mc) {
beginFill(_parent._parent._parent.c_highlight3d);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("shadow_mc", 1002);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight_mc", 1003);
with (this.buttonG.highlight_mc) {
beginFill(_parent._parent._parent.c_highlight);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (!_parent.c_arrowsVisible) {
break;
}
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY, _rotation:270, _xscale:-100, _yscale:100});
if (!_parent.c_useDisabledColor) {
break;
}
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(_parent.c_foregroundDisabled);
}
delete x;
delete y;
delete w;
delete h;
};
stop();
Symbol 71 MovieClip [ultimateScroller_button_right] Frame 2
setSkins();
stop();
Symbol 71 MovieClip [ultimateScroller_button_right] Frame 3
setSkins();
stop();
Symbol 72 MovieClip [ultimateScroller_button_left] Frame 1
this.useHandCursor = false;
this._focusRect = false;
setSkins();
this.onPress = function () {
if (this._parent.enabled == false) {
gotoAndStop ("disabled");
return(undefined);
}
this._parent.scrollUp();
this._parent.scrollDelay = true;
this._parent.delayTimer = setInterval(this._parent, "clearDelay", 300);
this._parent.scrolling = "UP";
gotoAndStop ("down");
updateAfterEvent();
};
this.onRelease = (this.onReleaseOutside = function () {
if (this._parent.enabled == false) {
gotoAndStop ("disabled");
return(undefined);
}
this._parent.scrolling = false;
this._parent.clearDelay();
gotoAndStop ("up");
updateAfterEvent();
});
this.setSkins = function () {
this.drawButtons();
};
this.drawButtons = function () {
w = 16;
h = _parent.c_scrollWidth;
arrowX = w / 2;
arrowY = h / 2;
x = 0;
y = 0;
this.createEmptyMovieClip("buttonG", 1000);
this.buttonG._rotation = 90;
this.buttonG._x = 16;
switch (this._currentframe) {
case 1 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("darkshadow_mc", 1000);
with (this.buttonG.darkshadow_mc) {
beginFill(_parent._parent._parent.c_darkshadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight3d_mc", 1001);
with (this.buttonG.highlight3d_mc) {
beginFill(_parent._parent._parent.c_highlight3d);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("shadow_mc", 1002);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight_mc", 1003);
with (this.buttonG.highlight_mc) {
beginFill(_parent._parent._parent.c_highlight);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (_parent.c_arrowsVisible) {
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY, _rotation:90, _xscale:-100, _yscale:100});
if (!_parent.c_arrowDefaultColor) {
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(this._parent.c_arrow);
}
}
break;
case 2 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("shadow_mc", 1000);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 2;
h = h - 2;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (_parent.c_arrowsVisible) {
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY, _rotation:90, _xscale:-100, _yscale:100});
if (!_parent.c_arrowDefaultColor) {
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(this._parent.c_arrow);
}
}
break;
case 3 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("darkshadow_mc", 1000);
with (this.buttonG.darkshadow_mc) {
beginFill(_parent._parent._parent.c_darkshadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight3d_mc", 1001);
with (this.buttonG.highlight3d_mc) {
beginFill(_parent._parent._parent.c_highlight3d);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("shadow_mc", 1002);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight_mc", 1003);
with (this.buttonG.highlight_mc) {
beginFill(_parent._parent._parent.c_highlight);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (!_parent.c_arrowsVisible) {
break;
}
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY, _rotation:90, _xscale:-100, _yscale:100});
if (!_parent.c_useDisabledColor) {
break;
}
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(this._parent.c_foregroundDisabled);
}
delete x;
delete y;
delete w;
delete h;
};
stop();
Symbol 72 MovieClip [ultimateScroller_button_left] Frame 2
setSkins();
stop();
Symbol 72 MovieClip [ultimateScroller_button_left] Frame 3
setSkins();
stop();
Symbol 73 MovieClip [ultimateScroller_button_down] Frame 1
this.useHandCursor = false;
this._focusRect = false;
setSkins();
this.onPress = function () {
if (this._parent.enabled == false) {
gotoAndStop ("disabled");
return(undefined);
}
this._parent.scrollDown();
this._parent.scrollDelay = true;
this._parent.delayTimer = setInterval(this._parent, "clearDelay", 300);
this._parent.scrolling = "DOWN";
gotoAndStop ("down");
updateAfterEvent();
};
this.onRelease = (this.onReleaseOutside = function () {
if (this._parent.enabled == false) {
gotoAndStop ("disabled");
return(undefined);
}
this._parent.scrolling = false;
this._parent.clearDelay();
gotoAndStop ("up");
updateAfterEvent();
});
this.setSkins = function () {
this.drawButtons();
};
this.drawButtons = function () {
w = _parent.c_scrollWidth;
h = 16;
arrowX = w / 2;
arrowY = h / 2;
x = 0;
y = 0;
this.createEmptyMovieClip("buttonG", 1000);
switch (this._currentframe) {
case 1 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("darkshadow_mc", 1000);
with (this.buttonG.darkshadow_mc) {
beginFill(_parent._parent._parent.c_darkshadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight3d_mc", 1001);
with (this.buttonG.highlight3d_mc) {
beginFill(_parent._parent._parent.c_highlight3d);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("shadow_mc", 1002);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight_mc", 1003);
with (this.buttonG.highlight_mc) {
beginFill(_parent._parent._parent.c_highlight);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (_parent.c_arrowsVisible) {
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY});
if (!_parent.c_arrowDefaultColor) {
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(this._parent.c_arrow);
}
}
break;
case 2 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("shadow_mc", 1000);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 2;
h = h - 2;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (_parent.c_arrowsVisible) {
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY});
if (!_parent.c_arrowDefaultColor) {
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(this._parent.c_arrow);
}
}
break;
case 3 :
if (_parent.c_buttonsVisible) {
this.buttonG.createEmptyMovieClip("darkshadow_mc", 1000);
with (this.buttonG.darkshadow_mc) {
beginFill(_parent._parent._parent.c_darkshadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight3d_mc", 1001);
with (this.buttonG.highlight3d_mc) {
beginFill(_parent._parent._parent.c_highlight3d);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("shadow_mc", 1002);
with (this.buttonG.shadow_mc) {
beginFill(_parent._parent._parent.c_shadow);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("highlight_mc", 1003);
with (this.buttonG.highlight_mc) {
beginFill(_parent._parent._parent.c_highlight);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
x = x + 1;
y = y + 1;
w = w - 1;
h = h - 1;
this.buttonG.createEmptyMovieClip("face_mc", 1004);
with (this.buttonG.face_mc) {
beginFill(_parent._parent._parent.c_face);
lineStyle();
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
endFill();
}
}
if (!_parent.c_arrowsVisible) {
break;
}
this.buttonG.attachMovie("arrow", "arrow_mc", 1005, {_x:arrowX, _y:arrowY});
if (!_parent.c_useDisabledColor) {
break;
}
var tmp = new Color(this.buttonG.arrow_mc);
tmp.setRGB(this._parent.c_foregroundDisabled);
}
delete x;
delete y;
delete w;
delete h;
};
stop();
Symbol 73 MovieClip [ultimateScroller_button_down] Frame 2
setSkins();
stop();
Symbol 73 MovieClip [ultimateScroller_button_down] Frame 3
setSkins();
stop();
Symbol 76 MovieClip Frame 1
function setSkins() {
if (_parent.c_scrollTrackVisible) {
var _local3 = new Color(scrollTrack_mc);
_local3.setRGB(_parent.c_scrollTrack);
} else {
scrollTrack_mc._visible = false;
}
this._width = _parent.c_scrollWidth;
if (_parent.c_horizontal) {
this._x = this._x + (16 - _parent.c_scrollWidth);
}
}
this.useHandCursor = false;
setSkins();
this.onPress = function () {
if ((this._parent.enabled == false) || (this._parent.hitTest(_root._xmouse, _root._ymouse) == false)) {
return(undefined);
}
if (((this.hitTest(_root._xmouse, _root._ymouse) && (!this._parent.drag.hitTest(_root._xmouse, _root._ymouse))) && (!this._parent.button_up.hitTest(_root._xmouse, _root._ymouse))) && (!this._parent.button_down.hitTest(_root._xmouse, _root._ymouse))) {
if (_parent._ymouse < this._parent.drag._y) {
this._parent.pageUp();
this._parent.scrollDelay = true;
this._parent.delayTimer = setInterval(this._parent, "clearDelay", 300);
this._parent.scrolling = "PAGEUP";
} else {
this._parent.pageDown();
this._parent.scrollDelay = true;
this._parent.delayTimer = setInterval(this._parent, "clearDelay", 300);
this._parent.scrolling = "PAGEDOWN";
}
}
};
this.onDragOut = function () {
this._parent.scrolling = false;
this._parent.clearDelay();
};
this.onRelease = function () {
this._parent.scrolling = false;
this._parent.clearDelay();
};
stop();
Symbol 77 MovieClip [ultimateScroller] Frame 1
#initclip 17
function ultimateScrollerClass() {
this.initialize();
}
ultimateScrollerClass.prototype = new MovieClip();
ultimateScrollerClass.prototype.scrollUp = function () {
if (this.enabled == false) {
return(undefined);
}
if (this.c_horizontal) {
if (this.targetClip._x < this.scrollBottom) {
var _local4 = (((this.targetClip._x + this.scrollAmount) < this.scrollBottom) ? (this.targetClip._x + this.scrollAmount) : (this.scrollBottom));
var _local2 = (((_local4 - this.scrollBottom) * 100) / (this.scrollBottom - this.scrollTop)) * -1;
this.drag._y = Math.floor(this.dragTop - (((this.dragTop - this.dragBottom) / 100) * _local2));
this.syncTargetPos();
}
} else if (this.targetClip._y < this.scrollTop) {
var _local3 = (((this.targetClip._y + this.scrollAmount) < this.scrollTop) ? (this.targetClip._y + this.scrollAmount) : (this.scrollTop));
var _local2 = (((_local3 - this.scrollTop) * 100) / (this.scrollTop - this.scrollBottom)) * -1;
this.drag._y = Math.floor(this.dragTop - (((this.dragTop - this.dragBottom) / 100) * _local2));
this.syncTargetPos();
}
};
ultimateScrollerClass.prototype.scrollDown = function () {
if (this.enabled == false) {
return(undefined);
}
if (this.c_horizontal == true) {
if (this.targetClip._x > this.scrollTop) {
var _local4 = (((this.targetClip._x - this.scrollAmount) > this.scrollTop) ? (this.targetClip._x - this.scrollAmount) : (this.scrollTop));
var _local2 = (((_local4 - this.scrollBottom) * 100) / (this.scrollBottom - this.scrollTop)) * -1;
this.drag._y = Math.ceil(this.dragTop - (((this.dragTop - this.dragBottom) / 100) * _local2));
this.syncTargetPos();
}
} else if (this.targetClip._y > this.scrollBottom) {
var _local3 = (((this.targetClip._y - this.scrollAmount) > this.scrollBottom) ? (this.targetClip._y - this.scrollAmount) : (this.scrollBottom));
var _local2 = (((_local3 - this.scrollTop) * 100) / (this.scrollTop - this.scrollBottom)) * -1;
this.drag._y = Math.ceil(this.dragTop - (((this.dragTop - this.dragBottom) / 100) * _local2));
this.syncTargetPos();
}
};
ultimateScrollerClass.prototype.pageUp = function () {
var _local2 = this.c_scrollAmount;
this.c_scrollAmount = int(this.h);
this.scrollUp();
this.c_scrollAmount = _local2;
};
ultimateScrollerClass.prototype.pageDown = function () {
var _local2 = this.c_scrollAmount;
this.c_scrollAmount = int(this.h);
this.scrollDown();
this.c_scrollAmount = _local2;
};
ultimateScrollerClass.prototype.scrollToTop = function () {
if (this.enabled == false) {
return(undefined);
}
this.drag._y = this.dragTop;
this.syncTargetPos();
};
ultimateScrollerClass.prototype.scrollToBottom = function () {
if (this.enabled == false) {
return(undefined);
}
this.drag._y = this.dragBottom;
this.syncTargetPos();
};
ultimateScrollerClass.prototype.getScrollPosition = function () {
return(this.drag._y);
};
ultimateScrollerClass.prototype.setScrollPosition = function (scrollPos) {
this.drag._y = scrollPos;
};
ultimateScrollerClass.prototype.setDragHeight = function (usrHeight) {
this.c_dragHeight = usrHeight;
if (usrHeight > (this.track_mc._height - 48)) {
usrHeight = this.track_mc._height - 48;
} else if (usrHeight < 2) {
usrHeight = 2;
}
this.dragHeight = usrHeight;
var btnDrag = this.attachMovie("ultimateScroller_drag", "drag", 5, {_x:0, _y:16, w:this.c_scrollWidth, h:this.dragHeight});
btnDrag.useHandCursor = false;
this.dragTop = 16;
this.dragBottom = (this.h - 16) - this.dragHeight;
if (this.scrollTo != null) {
btnDrag._y = ((this.scrollTo > this.dragBottom) ? (this.dragBottom) : (this.scrollTo));
var _local3 = this.c_easing;
this.c_easing = "none";
this.syncTargetPos();
this.c_easing = _local3;
}
btnDrag.onMouseDown = function () {
if (this._parent.enabled == false) {
return(undefined);
}
if (btnDrag.hitTest(_level0._xmouse, _level0._ymouse)) {
btnDrag.startDrag(false, 0, this._parent.dragTop, 0, this._parent.dragBottom);
this._parent.dragging = true;
updateAfterEvent();
}
};
btnDrag.onMouseUp = function () {
btnDrag.stopDrag();
this._parent.dragging = false;
updateAfterEvent();
};
if (!this.c_dragVisible) {
this.drag._visible = false;
}
};
ultimateScrollerClass.prototype.initialize = function () {
this.setDefaults();
this.enabled = false;
if (this.c_horizontal == true) {
this._rotation = -90;
this._xscale = -100;
this._y = int(this._y + 16);
if (this.size == null) {
this.setSize(this._width);
} else {
this.setSize(this.size);
}
} else {
this._rotation = 0;
this._xscale = 100;
if (this.size == null) {
this.setSize(this._height);
} else {
this.setSize(this.size);
}
}
if (this._targetInstanceName.length > 0) {
var _local2 = this._parent[this._targetInstanceName];
this.initX = _local2._x;
this.initY = _local2._y;
this.initW = _local2._width;
this.initH = _local2._height;
this.setTarget(_local2);
} else {
this.setEnabled(false);
}
};
ultimateScrollerClass.prototype.setDefaults = function () {
if (this.c_horizontal == null) {
if (this.horizontal == null) {
this.c_horizontal = false;
} else {
this.c_horizontal = Boolean(this.horizontal);
delete this.horizontal;
}
}
if (this.c_buffer == null) {
if (this.buffer == null) {
this.c_buffer = 10;
} else {
this.c_buffer = int(this.buffer);
delete this.buffer;
}
}
if (this.c_scrollAmount == null) {
if (this.scrollAmount == null) {
this.c_scrollAmount = 40;
} else {
this.c_scrollAmount = int(this.scrollAmount);
delete this.scrollAmount;
}
}
if (this.c_easing == null) {
if (this.easing == null) {
this.c_easing = "none";
} else {
this.c_easing = this.easing;
delete this.easing;
}
}
if (this.c_useMask == null) {
if (this.useMask == null) {
this.c_useMask = false;
} else {
this.c_useMask = Boolean(this.useMask);
delete this.useMask;
}
}
if (this.c_dragVisible == null) {
if (this.dragVisible == null) {
this.c_dragVisible = true;
} else {
this.c_dragVisible = Boolean(this.dragVisible);
delete this.dragVisible;
}
}
if (this.c_dragAuto == null) {
if (this.dragHeightAuto == null) {
this.c_dragAuto = true;
} else {
this.c_dragAuto = Boolean(this.dragHeightAuto);
delete this.dragHeightAuto;
}
}
if (this.c_scrollTrackVisible == null) {
if (this.scrollTrackVisible == null) {
this.c_scrollTrackVisible = true;
} else {
this.c_scrollTrackVisible = Boolean(this.scrollTrackVisible);
delete this.scrollTrackVisible;
}
}
if (this.c_buttonsVisible == null) {
if (this.buttonsVisible == null) {
this.c_buttonsVisible = true;
} else {
this.c_buttonsVisible = Boolean(this.buttonsVisible);
delete this.buttonsVisible;
}
}
if (this.c_arrowsVisible == null) {
if (this.arrowsVisible == null) {
this.c_arrowsVisible = true;
} else {
this.c_arrowsVisible = Boolean(this.arrowsVisible);
delete this.arrowsVisible;
}
}
if (this.c_arrowDefaultColor == null) {
if (this.arrowDefaultColor == null) {
this.c_arrowDefaultColor = false;
} else {
this.c_arrowDefaultColor = Boolean(this.arrowDefaultColor);
delete this.arrowDefaultColor;
}
}
if (this.c_scrollWidth == null) {
if (this.scrollWidth == null) {
this.c_scrollWidth = 16;
} else {
this.c_scrollWidth = int(this.scrollWidth);
delete this.scrollWidth;
}
}
if (this.c_useDisabledColor == null) {
if (this.useDisabledColor == null) {
this.c_useDisabledColor = true;
} else {
this.c_useDisabledColor = Boolean(this.useDisabledColor);
delete this.useDisabledColor;
}
}
if (this.c_scrollSide == null) {
if (this.scrollSide == null) {
this.c_scrollSide = "right";
} else {
this.c_scrollSide = String(this.scrollSide);
delete this.scrollSide;
}
}
if (this.c_face == null) {
if (this.face == null) {
this.c_face = 14078926 /* 0xD6D3CE */;
} else {
this.c_face = this.face;
delete this.face;
}
}
if (this.c_shadow == null) {
if (this.shadow == null) {
this.c_shadow = 8684164 /* 0x848284 */;
} else {
this.c_shadow = this.shadow;
delete this.shadow;
}
}
if (this.c_darkshadow == null) {
if (this.darkshadow == null) {
this.c_darkshadow = 4342082 /* 0x424142 */;
} else {
this.c_darkshadow = this.darkshadow;
delete this.darkshadow;
}
}
if (this.c_highlight == null) {
if (this.highlight == null) {
this.c_highlight = 16777215 /* 0xFFFFFF */;
} else {
this.c_highlight = this.highlight;
delete this.highlight;
}
}
if (this.c_highlight3d == null) {
if (this.highlight3d == null) {
this.c_highlight3d = 14078926 /* 0xD6D3CE */;
} else {
this.c_highlight3d = this.highlight3d;
}
}
if (this.c_arrow == null) {
if (this.arrow == null) {
this.c_arrow = 0;
} else {
this.c_arrow = this.arrow;
delete this.arrow;
}
}
if (this.c_foregroundDisabled == null) {
if (this.foregroundDisabled == null) {
this.c_foregroundDisabled = 10066329 /* 0x999999 */;
} else {
this.c_foregroundDisabled = this.foregroundDisabled;
delete this.foregroundDisabled;
}
}
if (this.c_scrollTrack == null) {
if (this.scrollTrack == null) {
this.c_scrollTrack = 15066078 /* 0xE5E3DE */;
} else {
this.c_scrollTrack = this.scrollTrack;
delete this.scrollTrack;
}
}
if (this.c_borderColorTop == null) {
if (this.borderColorTop == null) {
this.c_borderColorTop = 0;
} else {
this.c_borderColorTop = this.borderColorTop;
delete this.borderColorTop;
}
}
if (this.c_borderColorBottom == null) {
if (this.borderColorBottom == null) {
this.c_borderColorBottom = 0;
} else {
this.c_borderColorBottom = this.borderColorBottom;
delete this.borderColorBottom;
}
}
if (this.c_borderColorLeft == null) {
if (this.borderColorLeft == null) {
this.c_borderColorLeft = 0;
} else {
this.c_borderColorLeft = this.borderColorLeft;
delete this.borderColorLeft;
}
}
if (this.c_borderColorRight == null) {
if (this.borderColorRight == null) {
this.c_borderColorRight = 0;
} else {
this.c_borderColorRight = this.borderColorRight;
delete this.borderColorRight;
}
}
if (this.scrollTarget != null) {
this.setTarget(this.scrollTarget);
delete this.scrollTarget;
}
};
ultimateScrollerClass.prototype.setEnabled = function (e) {
this.enabled = e;
if (this.enabled) {
this.button_up.gotoAndStop("up");
this.button_down.gotoAndStop("up");
} else {
this.button_up.gotoAndStop("disabled");
this.button_down.gotoAndStop("disabled");
this.drag.removeMovieClip();
}
this.button_up.setSkins();
this.drag.setSkins();
this.button_down.setSkins();
};
ultimateScrollerClass.prototype.clearDelay = function () {
clearInterval(this.delayTimer);
this.scrollDelay = false;
};
ultimateScrollerClass.prototype.resetPositions = function () {
this.targetClip._x = this.initX;
this.targetClip._y = this.initY;
this.drag._y = this.dragTop;
};
ultimateScrollerClass.prototype.drawMask = function () {
var mx = 0;
var my = 0;
var mwidth = 0;
var mheight = 0;
this.resetPositions();
if (this.c_horizontal == true) {
mwidth = this.track_mc._height - 0.5;
mheight = this._y - this.targetClip._y;
mx = this._x;
my = this.targetClip._y;
} else if (this.c_scrollSide eq "right") {
mwidth = this._x - this.targetClip._x;
mheight = this.h - 0.5;
mx = this.targetClip._x - 1.5;
my = this._y;
} else {
var bWidth = ((((this.targetClip._x + this.targetClip._width) - this._x) - this._width) + 16.5);
mwidth = (((this.targetClip._x + this.targetClip._width) - this._x) - this._width) + 3;
mheight = this.h - 0.5;
mx = this.targetClip._x - 0.5;
my = this._y;
}
this.maskObj.removeMovieClip();
this.maskObj = this._parent.createEmptyMovieClip(this.targetClip._name + "_mask", ((this.targetClip.getDepth() + 44496) + random(1774)) + (random(4) + 1), {_x:this.targetClip._x, _y:this.targetClip._y});
with (this.maskObj) {
beginFill(16711680);
lineStyle(0);
moveTo(0, 0);
lineTo(mwidth, 0);
lineTo(mwidth, mheight);
lineTo(0, mheight);
lineTo(0, 0);
endFill();
}
this.maskObj._x = mx;
this.maskObj._y = my;
this.maskObj._alpha = 0;
this.targetClip.setMask(this.maskObj);
};
ultimateScrollerClass.prototype.drawBorder = function () {
this.resetPositions();
if (this.c_horizontal == true) {
var bWidth = (this.h + 1);
var bHeight = (((this._y - this.targetClip._y) + 1.5) - (16 - this.c_scrollWidth));
var bX = (this._x - 0.5);
var bY = (this.targetClip._y - 1);
} else if (this.c_scrollSide eq "right") {
if (this.c_borderStyle == "3d") {
var bWidth = (((this._x - this.targetClip._x) + this.c_scrollWidth) + 4);
var bHeight = (this.h + 1.5);
var bX = (this.targetClip._x - 3);
var bY = (this._y - 0.5);
} else {
var bWidth = (((this._x - this.targetClip._x) + this.c_scrollWidth) + 2);
var bHeight = (this.h + 1.5);
var bX = (this.targetClip._x - 1.5);
var bY = (this._y - 1);
}
} else if (this.c_borderStyle == "3d") {
var bWidth = (((this.targetClip._x + this.targetClip._width) - this._x) + 4);
var bHeight = (this.h + 1.5);
var bX = (this._x - 2.5);
var bY = (this._y - 1);
} else {
var bWidth = (((this.targetClip._x + this.targetClip._width) - this._x) + 2);
var bHeight = (this.h + 1.5);
var bX = (this._x - 1);
var bY = (this._y - 1);
}
this.borderObj.removeMovieClip();
this.borderObj = this._parent.createEmptyMovieClip(this.targetClip._name + "_border", ((this.targetClip.getDepth() + 55596) + random(622)) + (random(9) + 2), {_x:this.targetClip._x, _y:this.targetClip._y});
switch (String(this.c_borderStyle)) {
case "line" :
with (this.borderObj) {
lineStyle(1, this.c_borderColorT);
moveTo(0, 0);
lineTo(bWidth, 0);
lineStyle(1, this.c_borderColorR);
lineTo(bWidth, bHeight);
lineStyle(1, this.c_borderColorB);
lineTo(0, bHeight);
lineStyle(1, this.c_borderColorL);
lineTo(0, 0);
}
break;
case "3d" :
bWidth = bWidth + 1;
bHeight = bHeight + 3;
bX = bX + 1;
bY = bY - 1;
with (this.borderObj) {
lineStyle(2, this.c_shadow);
moveTo(0, 0);
lineTo(bWidth, 0);
lineStyle(0.75, this.c_highlight3d);
lineTo(bWidth, bHeight);
lineTo(0, bHeight);
lineStyle(2, this.c_shadow);
lineTo(0, 0);
}
break;
}
this.borderObj._width = bWidth + 0.5;
this.borderObj._height = bHeight + 0.5;
this.borderObj._x = bX + 0.5;
this.borderObj._y = bY + 0.5;
delete bWidth;
delete bHeight;
delete bX;
delete bY;
};
ultimateScrollerClass.prototype.syncTargetPos = function () {
var _local2 = ((this.drag._y - 16) * 100) / (this.dragBottom - this.dragTop);
if (this.c_horizontal == true) {
if (this.c_easing ne "none") {
switch (this.c_easing) {
case "high" :
var _local3 = 8;
break;
case "med" :
_local3 = 6;
break;
case "low" :
_local3 = 4;
}
this.easeTo(int(this.scrollBottom - (((this.scrollBottom - this.scrollTop) / 100) * _local2)), this.targetClip._y, _local3);
} else {
this.targetClip._x = int(this.scrollBottom - (((this.scrollBottom - this.scrollTop) / 100) * _local2));
}
} else if (this.c_easing ne "none") {
switch (this.c_easing) {
case "high" :
var _local3 = 8;
break;
case "med" :
_local3 = 6;
break;
case "low" :
_local3 = 4;
}
this.easeTo(this.targetClip._x, int(this.scrollTop - (((this.scrollTop - this.scrollBottom) / 100) * _local2)), _local3);
} else {
this.targetClip._y = int(this.scrollTop - (((this.scrollTop - this.scrollBottom) / 100) * _local2));
}
};
ultimateScrollerClass.prototype.onEnterFrame = function () {
if ((this.initW != this.targetClip._width) || (this.initH != this.targetClip._height)) {
this.setSize(this.h);
}
if (this.enabled == false) {
return(undefined);
}
this.syncTargetPos();
if (this.scrollDelay == true) {
return(undefined);
}
if (this.scrolling eq "DOWN") {
this.scrollDown();
}
if (this.scrolling eq "UP") {
this.scrollUp();
}
if (this.scrolling eq "PAGEDOWN") {
this.pageDown();
}
if (this.scrolling eq "PAGEUP") {
this.pageUp();
}
};
ultimateScrollerClass.prototype.onUnload = function () {
this.maskObj.removeMovieClip();
this.borderObj.removeMovieClip();
};
ultimateScrollerClass.prototype.easeTo = function (tx, ty, speed) {
this.easeMov.removeMovieClip();
if ((this.targetClip._x == tx) && (this.targetClip._y == ty)) {
return(undefined);
}
var _local3 = this.createEmptyMovieClip("easeMov", 99945);
var scroller = this;
var oldY = scroller.targetClip._y;
var oldX = scroller.targetClip._x;
_local3.onEnterFrame = function () {
if (scroller.c_horizontal == true) {
var _local3 = (((scroller.targetClip._x - tx) < 0) ? ((scroller.targetClip._x - tx) * -1) : (scroller.targetClip._x - tx));
var _local2 = (tx - oldX) / speed;
if ((_local2 < 0) and (_local2 > -1)) {
_local2 = -1;
}
if ((_local2 > 0) and (_local2 < 1)) {
_local2 = 1;
}
newX = oldX + _local2;
oldX = newX;
scroller.targetClip._x = int(newX);
} else {
var _local3 = (((scroller.targetClip._y - ty) < 0) ? ((scroller.targetClip._y - ty) * -1) : (scroller.targetClip._y - ty));
var _local2 = (ty - oldY) / speed;
if ((_local2 < 0) and (_local2 > -1)) {
_local2 = -1;
}
if ((_local2 > 0) and (_local2 < 1)) {
_local2 = 1;
}
newY = oldY + _local2;
oldY = newY;
scroller.targetClip._y = int(newY);
}
updateAfterEvent();
if (_local3 < 1) {
scroller.targetClip._x = int(scroller.targetClip._x);
scroller.targetClip._y = int(scroller.targetClip._y);
this.removeMovieClip();
}
};
delete scroller;
};
ultimateScrollerClass.prototype.getHorizontal = function () {
return(this.c_horizontal);
};
ultimateScrollerClass.prototype.setHorizontal = function (p) {
this.c_horizontal = Boolean(p);
if (this.h) {
this._rotation = -90;
this._xscale = -100;
this.setSize(this._width);
} else {
this._rotation = 0;
this._xscale = 100;
this.setSize(this._height);
}
};
ultimateScrollerClass.prototype.getTarget = function () {
return(this.targetClip);
};
ultimateScrollerClass.prototype.setTarget = function (t) {
if (this.drag._y != undefined) {
this.scrollTo = this.drag._y;
} else {
this.scrollTo = null;
}
this.resetPositions();
if (eval (t)) {
this.targetClip = t;
this.targetClip._x = int(this.targetClip._x);
this.targetClip._y = int(this.targetClip._y);
this.initX = int(this.targetClip._x);
this.initY = int(this.targetClip._y);
this.initH = this.targetClip._height;
this.initW = this.targetClip._width;
if (this.c_horizontal == true) {
this.targetClip._x = this.initX;
this._x = int(this._x);
this._y = int(this._y);
} else {
this.targetClip._y = this.initY;
this._x = int(this._x);
this._y = int(this._y);
}
if (this.c_useMask) {
this.drawMask();
}
if (this.c_borderStyle ne "none") {
this.drawBorder();
}
if (this.c_horizontal == true) {
this.scrollBottom = int(this.targetClip._x);
this.scrollTop = int(this.targetClip._x) - Math.ceil((this.targetClip._width - (this._width - (this.c_buffer + 2))) - (this._x - this.targetClip._x));
this.visiblePercent = (this.h * 100) / (this.targetClip._width - (this._x - this.targetClip._x));
if (this.scrollTop >= this.scrollBottom) {
this.setEnabled(false);
return(undefined);
}
} else {
this.scrollTop = int(this.targetClip._y);
this.scrollBottom = (Math.ceil((this.targetClip._height - (this.h - (this.c_buffer + 2))) * -1) + this.scrollTop) + (this._y - this.targetClip._y);
this.visiblePercent = (this.h * 100) / (this.targetClip._height - (this._y - this.targetClip._y));
if (this.scrollTop <= this.scrollBottom) {
this.setEnabled(false);
return(undefined);
}
}
this.setEnabled(true);
this.drawDrag();
if (!this.c_dragVisible) {
this.drag._visible = false;
}
} else {
delete this.targetClip;
this.setEnabled(false);
}
delete btnDrag;
};
ultimateScrollerClass.prototype.drawDrag = function () {
this.dragHeight = ((this.h - 32) / 100) * this.visiblePercent;
this.dragHeight = ((this.dragHeight > int(this.h - 34)) ? (int(this.h - 34)) : (int(this.dragHeight)));
this.dragHeight = ((this.dragHeight < 6) ? 6 : (int(this.dragHeight)));
if (!this.c_dragAuto) {
if (this.c_dragHeight > (this.track_mc._height - 48)) {
this.c_dragHeight = this.track_mc._height - 48;
} else if (this.c_dragHeight < 2) {
this.c_dragHeight = 2;
}
this.dragHeight = this.c_dragHeight;
}
var btnDrag = this.attachMovie("ultimateScroller_drag", "drag", 5, {_x:0, _y:16, w:this.c_scrollWidth, h:this.dragHeight});
btnDrag.useHandCursor = false;
this.dragTop = 16;
this.dragBottom = (this.h - 16) - this.dragHeight;
if (this.scrollTo != null) {
btnDrag._y = ((this.scrollTo > this.dragBottom) ? (this.dragBottom) : (this.scrollTo));
var _local2 = this.c_easing;
this.c_easing = "none";
this.syncTargetPos();
this.c_easing = _local2;
}
btnDrag.onMouseDown = function () {
if (this._parent.enabled == false) {
return(undefined);
}
if (btnDrag.hitTest(_level0._xmouse, _level0._ymouse)) {
btnDrag.startDrag(false, 0, this._parent.dragTop, 0, this._parent.dragBottom);
this._parent.dragging = true;
updateAfterEvent();
}
};
btnDrag.onMouseUp = function () {
btnDrag.stopDrag();
this._parent.dragging = false;
updateAfterEvent();
};
};
ultimateScrollerClass.prototype.getSize = function () {
return(this.h);
};
ultimateScrollerClass.prototype.setSize = function (s) {
this.h = ((s <= 55) ? 55 : (int(s)));
this._xscale = (this._yscale = 100);
this.track_mc._height = this.h;
if (this.c_horizontal == true) {
this.attachMovie("ultimateScroller_button_left", "button_up", 1, {_x:0, _y:0});
this.button_up.gotoAndStop(3);
this.attachMovie("ultimateScroller_button_right", "button_down", 2, {_x:0, _y:this.h - 16});
this.button_down.gotoAndStop(3);
} else {
this.attachMovie("ultimateScroller_button_up", "button_up", 1, {_x:0, _y:0});
this.button_up.gotoAndStop(3);
this.attachMovie("ultimateScroller_button_down", "button_down", 2, {_x:0, _y:this.h - 16});
this.button_down.gotoAndStop(3);
}
if (this.targetClip) {
this.setTarget(this.targetClip);
} else {
this.setEnabled(false);
}
};
ultimateScrollerClass.prototype.getBuffer = function () {
return(this.c_buffer);
};
ultimateScrollerClass.prototype.setBuffer = function (p) {
this.c_buffer = int(p);
};
ultimateScrollerClass.prototype.getEasing = function () {
return(this.c_easing);
};
ultimateScrollerClass.prototype.setEasing = function (p) {
this.c_easing = String(p);
};
ultimateScrollerClass.prototype.getScrollAmount = function () {
return(this.c_scrollAmount);
};
ultimateScrollerClass.prototype.setScrollAmount = function (p) {
this.c_scrollAmount = int(p);
};
ultimateScrollerClass.prototype.getUseMask = function () {
return(this.c_useMask);
};
ultimateScrollerClass.prototype.setUseMask = function (p) {
this.c_useMask = Boolean(p);
if (this.c_useMask && (eval (this.targetClip._name))) {
this.drawMask();
} else {
var tmp = eval (this.targetClip._name + "_mask");
tmp.removeMovieClip();
delete tmp;
}
};
ultimateScrollerClass.prototype.getScrollTrackVisible = function () {
return(this.c_scrollTrackVisible);
};
ultimateScrollerClass.prototype.setScrollTrackVisible = function (p) {
this.c_scrollTrackVisible = Boolean(p);
};
ultimateScrollerClass.prototype.getButtonsVisible = function () {
return(this.c_buttonsVisible);
};
ultimateScrollerClass.prototype.setButtonsVisible = function (p) {
this.c_buttonsVisible = Boolean(p);
};
ultimateScrollerClass.prototype.getArrowsVisible = function () {
return(this.c_arrowsVisible);
};
ultimateScrollerClass.prototype.setArrowsVisible = function (p) {
this.c_arrowsVisible = Boolean(p);
};
ultimateScrollerClass.prototype.getArrowDefaultColor = function () {
return(this.c_arrowDefaultColor);
};
ultimateScrollerClass.prototype.setArrowDefaultColor = function (p) {
this.c_arrowDefaultColor = Boolean(p);
};
ultimateScrollerClass.prototype.getUseDisabledColor = function () {
return(this.c_useDisabledColor);
};
ultimateScrollerClass.prototype.setUseDisabledColor = function (p) {
this.c_useDisabledColor = Boolean(p);
};
ultimateScrollerClass.prototype.getScrollWidth = function () {
return(this.c_scrollWidth);
};
ultimateScrollerClass.prototype.setScrollWidth = function (p) {
this.c_scrollWidth = int(p);
this.drawDrag();
this.drawBorder();
};
ultimateScrollerClass.prototype.getDragVisible = function () {
return(this.c_dragVisible);
};
ultimateScrollerClass.prototype.setDragVisible = function (p) {
this.c_dragVisible = Boolean(p);
if (this.c_dragVisible) {
this.drag._visible = true;
} else {
this.drag._visible = false;
}
};
ultimateScrollerClass.prototype.getDragHeightAuto = function () {
return(this.c_dragAuto);
};
ultimateScrollerClass.prototype.setDragHeightAuto = function (p) {
this.c_dragAuto = Boolean(p);
this.drawDrag();
};
ultimateScrollerClass.prototype.getScrollSide = function () {
return(this.c_scrollSide);
};
ultimateScrollerClass.prototype.setScrollSide = function (p) {
this.c_scrollSide = String(p);
this.drawMask();
this.drawBorder();
};
ultimateScrollerClass.prototype.getBorderStyle = function () {
return(this.c_borderStyle);
};
ultimateScrollerClass.prototype.setBorderStyle = function (p) {
this.c_borderStyle = p.toLowerCase();
var tmp = eval (this.targetClip._name + "_border");
tmp.removeMovieClip();
if ((this.c_borderStyle ne "none") && (eval (this.targetClip._name))) {
this.drawBorder();
}
delete tmp;
};
ultimateScrollerClass.prototype.getFace = function () {
return(this.c_face);
};
ultimateScrollerClass.prototype.setFace = function (p) {
this.c_face = p;
this.button_up.setSkins();
this.drag.setSkins();
this.button_down.setSkins();
this.track_mc.setSkins();
};
ultimateScrollerClass.prototype.getShadow = function () {
return(this.c_shadow);
};
ultimateScrollerClass.prototype.setShadow = function (p) {
this.c_shadow = p;
this.button_up.setSkins();
this.drag.setSkins();
this.button_down.setSkins();
this.track_mc.setSkins();
if ((this.c_borderStyle ne "none") && (eval (this.targetClip._name))) {
this.drawBorder();
}
};
ultimateScrollerClass.prototype.getDarkshadow = function () {
return(this.c_darkshadow);
};
ultimateScrollerClass.prototype.setDarkshadow = function (p) {
this.c_darkshadow = p;
this.button_up.setSkins();
this.drag.setSkins();
this.button_down.setSkins();
this.track_mc.setSkins();
};
ultimateScrollerClass.prototype.getHighlight = function () {
return(this.c_highlight);
};
ultimateScrollerClass.prototype.setHighlight = function (p) {
this.c_highlight = p;
this.button_up.setSkins();
this.drag.setSkins();
this.button_down.setSkins();
this.track_mc.setSkins();
};
ultimateScrollerClass.prototype.getHighlight3d = function () {
return(this.c_highlight3d);
};
ultimateScrollerClass.prototype.setHighlight3d = function (p) {
this.c_highlight3d = p;
this.button_up.setSkins();
this.drag.setSkins();
this.button_down.setSkins();
this.track_mc.setSkins();
if ((this.c_borderStyle ne "none") && (eval (this.targetClip._name))) {
this.drawBorder();
}
};
ultimateScrollerClass.prototype.getArrow = function () {
return(this.c_arrow);
};
ultimateScrollerClass.prototype.setArrow = function (p) {
this.c_arrow = p;
this.button_up.setSkins();
this.button_down.setSkins();
};
ultimateScrollerClass.prototype.getForegroundDisabled = function () {
return(this.c_foregroundDisabled);
};
ultimateScrollerClass.prototype.setForegroundDisabled = function (p) {
this.c_foregroundDisabled = p;
this.button_up.setSkins();
this.drag.setSkins();
this.button_down.setSkins();
this.track_mc.setSkins();
};
ultimateScrollerClass.prototype.getScrollTrack = function () {
return(this.c_scrollTrack);
};
ultimateScrollerClass.prototype.setScrollTrack = function (p) {
this.c_scrollTrack = p;
this.track_mc.setSkins();
};
ultimateScrollerClass.prototype.getBorderColorTop = function () {
return(this.c_borderColorT);
};
ultimateScrollerClass.prototype.setBorderColorTop = function (p) {
this.c_borderColorT = p;
if (eval (this.targetClip._name) && (this.c_borderStyle eq "line")) {
this.drawBorder();
}
};
ultimateScrollerClass.prototype.getBorderColorBottom = function () {
return(this.c_borderColorB);
};
ultimateScrollerClass.prototype.setBorderColorBottom = function (p) {
this.c_borderColorB = p;
if (eval (this.targetClip._name) && (this.c_borderStyle eq "line")) {
this.drawBorder();
}
};
ultimateScrollerClass.prototype.getBorderColorLeft = function () {
return(this.c_borderColorL);
};
ultimateScrollerClass.prototype.setBorderColorLeft = function (p) {
this.c_borderColorL = p;
if (eval (this.targetClip._name) && (this.c_borderStyle eq "line")) {
this.drawBorder();
}
};
ultimateScrollerClass.prototype.getBorderColorRight = function () {
return(this.c_borderColorR);
};
ultimateScrollerClass.prototype.setBorderColorRight = function (p) {
this.c_borderColorR = p;
if (eval (this.targetClip._name) && (this.c_borderStyle eq "line")) {
this.drawBorder();
}
};
ultimateScrollerClass.prototype.addProperty("horizontal", ultimateScrollerClass.prototype.getHorizontal, ultimateScrollerClass.prototype.setHorizontal);
ultimateScrollerClass.prototype.addProperty("scrollTarget", ultimateScrollerClass.prototype.getTarget, ultimateScrollerClass.prototype.setTarget);
ultimateScrollerClass.prototype.addProperty("size", ultimateScrollerClass.prototype.getSize, ultimateScrollerClass.prototype.setSize);
ultimateScrollerClass.prototype.addProperty("scrollBuffer", ultimateScrollerClass.prototype.getBuffer, ultimateScrollerClass.prototype.setBuffer);
ultimateScrollerClass.prototype.addProperty("scrollAmount", ultimateScrollerClass.prototype.getScrollAmount, ultimateScrollerClass.prototype.setScrollAmount);
ultimateScrollerClass.prototype.addProperty("easing", ultimateScrollerClass.prototype.getEasing, ultimateScrollerClass.prototype.setEasing);
ultimateScrollerClass.prototype.addProperty("useMask", ultimateScrollerClass.prototype.getUseMask, ultimateScrollerClass.prototype.setUseMask);
ultimateScrollerClass.prototype.addProperty("dragVisible", ultimateScrollerClass.prototype.getDragVisible, ultimateScrollerClass.prototype.setDragVisible);
ultimateScrollerClass.prototype.addProperty("dragHeightAuto", ultimateScrollerClass.prototype.getDragHeightAuto, ultimateScrollerClass.prototype.setDragHeightAuto);
ultimateScrollerClass.prototype.addProperty("scrollSide", ultimateScrollerClass.prototype.getScrollSide, ultimateScrollerClass.prototype.setScrollSide);
ultimateScrollerClass.prototype.addProperty("borderStyle", ultimateScrollerClass.prototype.getBorderStyle, ultimateScrollerClass.prototype.setBorderStyle);
ultimateScrollerClass.prototype.addProperty("face", ultimateScrollerClass.prototype.getFace, ultimateScrollerClass.prototype.setFace);
ultimateScrollerClass.prototype.addProperty("shadow", ultimateScrollerClass.prototype.getShadow, ultimateScrollerClass.prototype.setShadow);
ultimateScrollerClass.prototype.addProperty("darkshadow", ultimateScrollerClass.prototype.getDarkshadow, ultimateScrollerClass.prototype.setDarkshadow);
ultimateScrollerClass.prototype.addProperty("highlight", ultimateScrollerClass.prototype.getHighlight, ultimateScrollerClass.prototype.setHighlight);
ultimateScrollerClass.prototype.addProperty("highlight3d", ultimateScrollerClass.prototype.getHighlight3d, ultimateScrollerClass.prototype.setHighlight3d);
ultimateScrollerClass.prototype.addProperty("arrow", ultimateScrollerClass.prototype.getArrow, ultimateScrollerClass.prototype.setArrow);
ultimateScrollerClass.prototype.addProperty("foregroundDisabled", ultimateScrollerClass.prototype.getForegroundDisabled, ultimateScrollerClass.prototype.setForegroundDisabled);
ultimateScrollerClass.prototype.addProperty("scrollTrack", ultimateScrollerClass.prototype.getScrollTrack, ultimateScrollerClass.prototype.setScrollTrack);
ultimateScrollerClass.prototype.addProperty("borderColorTop", ultimateScrollerClass.prototype.getBorderColorTop, ultimateScrollerClass.prototype.setBorderColorTop);
ultimateScrollerClass.prototype.addProperty("borderColorBottom", ultimateScrollerClass.prototype.getBorderColorBottom, ultimateScrollerClass.prototype.setBorderColorBottom);
ultimateScrollerClass.prototype.addProperty("borderColorLeft", ultimateScrollerClass.prototype.getBorderColorLeft, ultimateScrollerClass.prototype.setBorderColorLeft);
ultimateScrollerClass.prototype.addProperty("borderColorRight", ultimateScrollerClass.prototype.getBorderColorRight, ultimateScrollerClass.prototype.setBorderColorRight);
ultimateScrollerClass.prototype.addProperty("scrollTrackVisible", ultimateScrollerClass.prototype.getScrollTrackVisible, ultimateScrollerClass.prototype.setScrollTrackVisible);
ultimateScrollerClass.prototype.addProperty("buttonsVisible", ultimateScrollerClass.prototype.getButtonsVisible, ultimateScrollerClass.prototype.setButtonsVisible);
ultimateScrollerClass.prototype.addProperty("arrowsVisible", ultimateScrollerClass.prototype.getArrowsVisible, ultimateScrollerClass.prototype.setArrowsVisible);
ultimateScrollerClass.prototype.addProperty("arrowDefaultColor", ultimateScrollerClass.prototype.getArrowDefaultColor, ultimateScrollerClass.prototype.setArrowDefaultColor);
ultimateScrollerClass.prototype.addProperty("scrollWidth", ultimateScrollerClass.prototype.getScrollWidth, ultimateScrollerClass.prototype.setScrollWidth);
ultimateScrollerClass.prototype.addProperty("useDisabledColor", ultimateScrollerClass.prototype.getUseDisabledColor, ultimateScrollerClass.prototype.setUseDisabledColor);
Object.registerClass("ultimateScroller", ultimateScrollerClass);
#endinitclip
Instance of Symbol 77 MovieClip [ultimateScroller] "scroller" in Symbol 92 MovieClip [saveAs_mc] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "listMC";
c_horizontal = false;
c_buffer = 36;
c_scrollAmount = 40;
c_easing = "low";
c_scrollSide = "right";
c_dragAuto = true;
c_dragHeight = 16;
c_scrollWidth = 16;
c_useMask = true;
c_borderStyle = "none";
c_face = 14078926 /* 0xD6D3CE */;
c_shadow = 8684164 /* 0x848284 */;
c_darkshadow = 4342082 /* 0x424142 */;
c_highlight = 16777215 /* 0xFFFFFF */;
c_highlight3d = 14078926 /* 0xD6D3CE */;
c_arrow = 0;
c_foregroundDisabled = 10066329 /* 0x999999 */;
c_scrollTrack = 15066078 /* 0xE5E3DE */;
c_borderColorT = 0;
c_borderColorB = 0;
c_borderColorL = 0;
c_borderColorR = 0;
c_dragVisible = true;
c_scrollTrackVisible = true;
c_buttonsVisible = true;
c_arrowsVisible = true;
c_arrowDefaultColor = false;
c_useDisabledColor = true;
}
Symbol 145 MovieClip [load_bn] Frame 1
stop();
Symbol 145 MovieClip [load_bn] Frame 5
stop();
Symbol 153 MovieClip [rec15_bn] Frame 1
stop();
Symbol 153 MovieClip [rec15_bn] Frame 6
stop();
Symbol 206 MovieClip [cursor_mc] Frame 1
stop();
Symbol 206 MovieClip [cursor_mc] Frame 2
stop();
Symbol 288 MovieClip [__Packages.com.robertpenner.easing.Quad] Frame 0
class com.robertpenner.easing.Quad
{
function Quad () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((t * t) - 1)) + b);
}
t--;
return(((c / 2) * ((t * t) + 1)) + b);
}
}
Symbol 289 MovieClip [__Packages.com.robertpenner.easing.Circ] Frame 0
class com.robertpenner.easing.Circ
{
function Circ () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
}
Symbol 290 MovieClip [__Packages.FileManager] Frame 0
class FileManager
{
static var thisClass;
var fileObject, fileArray, fileNameArray, listMC, selectedFile, saveData;
function FileManager () {
thisClass = this;
init();
}
function init() {
fileObject = SharedObject.getLocal("AirGuitar");
if (fileObject.data.fileArray == undefined) {
initSharedObject();
} else {
readObject();
}
}
function initSharedObject() {
fileObject.data.fileArray = new Array();
}
function readObject() {
fileArray = new Array();
fileArray = fileObject.data.fileArray;
}
function openFile() {
}
function displayLoadWindow() {
trace("DISPLAY LOAD WINDOW");
_root.removeKeyListener();
_root.attachMovie("saveAs_mc", "saveAsMC", 3002);
_root.saveAsMC.loadWindow._visible = true;
_root.saveAsMC.saveWindow._visible = false;
_root.saveAsMC._xscale = 121.951219;
_root.saveAsMC._yscale = 121.951219;
_root.saveAsMC._x = 66;
_root.saveAsMC._y = 90;
displayList();
_root.cursor._visible = false;
Mouse.show();
_root.saveAsMC.close_bn.onRelease = function () {
_root.saveAsMC.removeMovieClip();
_root.initKeyListener();
_root.load_bn._alpha = 0;
};
_root.saveAsMC.cancel_bn.onRelease = function () {
_root.saveAsMC.removeMovieClip();
_root.initKeyListener();
_root.load_bn._alpha = 0;
};
}
function displayList() {
readObject();
fileNameArray = new Array();
listMC = _root.saveAsMC.createEmptyMovieClip("listMC", 100);
var _local3 = 0;
while (_local3 < fileArray.length) {
var _local4 = 38 + (_local3 * itemHeight);
if (fileArray[_local3][0] != undefined) {
fileNameArray.push(new FileName(fileArray[_local3][0], _local3, 16, _local4, listMC));
}
_local3++;
}
_root.saveAsMC.scroller.scrollTarget = _root.saveAsMC.listMC;
if (fileArray.length > 10) {
_root.saveAsMC.scroller._visible = true;
} else {
_root.saveAsMC.scroller._visible = false;
}
_root.saveAsMC.scroller.useMask = true;
_root.saveAsMC.scroller.autoHeight = true;
}
function loadFile(pos) {
selectedFile = pos;
_root.saveAsMC.filename = fileArray[pos][0];
_root.cursor._visible = true;
Mouse.hide();
_root.saveAsMC.save_bn.onRelease = function () {
if ((_root.saveAsMC.filename != undefined) || (_root.saveAsMC.filename != "")) {
_root.initKeyListener();
_root.load_bn._alpha = 0;
_root.saveAsMC.removeMovieClip();
_root.tapeDeck.loadFile(FileManager.thisClass.fileArray[FileManager.thisClass.selectedFile][1]);
}
};
_root.saveAsMC.cancel_bn.onRelease = function () {
_root.saveAsMC.removeMovieClip();
_root.initKeyListener();
_root.load_bn._alpha = 0;
};
}
function saveFile(fileName, saveData) {
var _local3 = fileArray.length;
fileArray[_local3] = new Array();
fileObject.data.fileArray[_local3] = new Array();
fileArray[_local3].push(fileName, saveData);
fileObject.data.fileArray[_local3] = fileArray[_local3];
fileObject.flush();
readObject();
_root.saveAsMC.removeMovieClip();
_root.cursor._visible = true;
Mouse.hide();
}
function displaySaveWindow(sData) {
saveData = sData;
_root.removeKeyListener();
_root.attachMovie("saveAs_mc", "saveAsMC", 3002);
_root.saveAsMC.loadWindow._visible = false;
_root.saveAsMC.saveWindow._visible = true;
_root.saveAsMC._xscale = 121.951219;
_root.saveAsMC._yscale = 121.951219;
displayList();
_root.cursor._visible = false;
Mouse.show();
_root.saveAsMC._x = 66;
_root.saveAsMC._y = 90;
_root.saveAsMC.controller = this;
_root.saveAsMC.save_bn.onRelease = function () {
if ((_root.saveAsMC.filename != undefined) || (_root.saveAsMC.filename != "")) {
FileManager.thisClass.saveFile(_root.saveAsMC.filename, FileManager.thisClass.saveData);
_root.initKeyListener();
_root.saveAsMC.removeMovieClip();
_root.save_bn._alpha = 0;
}
};
_root.saveAsMC.close_bn.onRelease = function () {
_root.saveAsMC.removeMovieClip();
_root.initKeyListener();
_root.load_bn._alpha = 0;
};
_root.saveAsMC.cancel_bn.onRelease = function () {
_root.saveAsMC.removeMovieClip();
_root.initKeyListener();
_root.save_bn._alpha = 0;
};
}
function closeWindow() {
}
function chooseFileName() {
}
function displayDuplicate() {
}
var itemHeight = 15;
}
Symbol 291 MovieClip [__Packages.FileName] Frame 0
class FileName
{
var txt, uid, thisClass, x, y, targetMC, navMC;
function FileName (titleTxt, uin, xin, yin, tMC) {
if (!inited) {
txt = titleTxt;
uid = uin;
trace("UID = " + uid);
thisClass = this;
x = xin;
y = yin;
targetMC = tMC;
init();
}
}
function init() {
inited = true;
createHolder();
}
function createHolder() {
navMC = targetMC.createEmptyMovieClip("nav" + targetMC.getNextHighestDepth(), targetMC.getNextHighestDepth());
navMC._x = Math.round(Number(x));
navMC._y = Math.round(Number(y));
trace((("being placed here = " + x) + ", ") + y);
initText();
initActions();
}
function destroy() {
navMC.removeMovieClip();
}
function initText() {
navMC.createEmptyMovieClip("txtField", 1);
navMC.txtField.createTextField("txt", 0, 6, 0, 0, 0);
var newTxt = txt;
with (navMC.txtField.txt) {
autoSize = true;
selectable = false;
multiline = true;
text = newTxt;
setTextFormat(_global.Arial10);
}
navMC.createEmptyMovieClip("bg", 0);
navMC.bg._alpha = 0;
var xpos = 0;
var ypos = 0;
var wid = (navMC._width + 10);
var hgt = 16;
with (navMC.bg) {
beginFill(0, 25);
moveTo(xpos, ypos);
lineTo(xpos + wid, ypos);
lineTo(xpos + wid, ypos + hgt);
lineTo(xpos, ypos + hgt);
lineTo(xpos, ypos);
endFill();
}
}
function initActions() {
navMC.controller = this;
navMC.onRollOver = function () {
trace("THIS CONTROLLER UID " + this.controller.uid);
if (this.controller.uid != null) {
this.bg._alpha = 100;
this.txtField.txt.textColor = 16777215 /* 0xFFFFFF */;
} else {
this.useHandCursor = false;
}
};
navMC.onRollOut = (navMC.onDragOut = function () {
this.bg._alpha = 0;
this.txtField.txt.textColor = 0;
});
navMC.onRelease = function () {
_root.fileManager.loadFile(this.controller.uid);
_root.filterManager.destroy();
};
}
var defaultColor = 8092539;
var inited = false;
}
Symbol 292 MovieClip [__Packages.com.robertpenner.easing.Quart] Frame 0
class com.robertpenner.easing.Quart
{
function Quart () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
}
Symbol 293 MovieClip [__Packages.com.robertpenner.easing.Sine] Frame 0
class com.robertpenner.easing.Sine
{
function Sine () {
}
static function easeIn(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOut(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOut(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
}
Symbol 294 MovieClip [__Packages.com.robertpenner.easing.Back] Frame 0
class com.robertpenner.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
}
Symbol 295 MovieClip [__Packages.com.robertpenner.easing.Quint] Frame 0
class com.robertpenner.easing.Quint
{
function Quint () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
}
Symbol 296 MovieClip [__Packages.TapeDeck] Frame 0
class TapeDeck
{
static var thisClass;
var recordingArray, recordStartingTime, recordingTimeout, playbackArray;
function TapeDeck (tMC) {
trace("TAPE DECK");
thisClass = this;
init();
}
function init() {
initButtons();
_root.recSilent._visible = false;
_root.recSound._visible = false;
}
function initButtons() {
_root.rec_bn.onPress = function () {
this.gotoAndStop("press");
TapeDeck.thisClass.stopPlayBack();
_root.scrub.tween("_x", TapeDeck.thisClass.scrubMax, 0, "linear");
this._alpha = 100;
};
_root.rec_bn.onRelease = (_root.rec_bn.onReleaseOutside = function () {
TapeDeck.thisClass.beginRecording();
this.gotoAndStop("light");
});
_root.stop_bn.onPress = function () {
this.gotoAndStop("press");
this._alpha = 100;
};
_root.stop_bn.onRelease = (_root.stop_bn.onReleaseOutside = function () {
this.gotoAndStop("light");
TapeDeck.thisClass.stopPlayBack();
});
_root.rec15_bn.onPress = function () {
this.gotoAndStop("press");
TapeDeck.thisClass.stopPlayBack();
_root.scrub.tween("_x", TapeDeck.thisClass.scrubMax, 0, "linear");
this._alpha = 100;
};
_root.rec15_bn.onRelease = (_root.rec15_bn.onReleaseOutside = function () {
TapeDeck.thisClass.beginRecording();
this.gotoAndStop("light");
});
_root.play_bn.onPress = function () {
this.gotoAndStop("press");
_root.scrub.tween("_x", TapeDeck.thisClass.scrubMin, 0, "linear");
this._alpha = 100;
};
_root.play_bn.onRelease = (_root.play_bn.onReleaseOutside = function () {
this.gotoAndStop("light");
TapeDeck.thisClass.playBack(0, 0);
});
_root.rew.onPress = function () {
this._alpha = 100;
TapeDeck.thisClass.stopPlayBack();
_root.scrub.tween("_x", TapeDeck.thisClass.scrubMin, 0, "linear");
};
_root.rew.onRelease = (_root.rew.onReleaseOutside = function () {
this._alpha = 0;
});
_root.ff.onPress = function () {
this._alpha = 100;
};
_root.ff.onRelease = (_root.ff.onReleaseOutside = function () {
this._alpha = 0;
TapeDeck.thisClass.stopPlayBack();
_root.scrub.tween("_x", TapeDeck.thisClass.scrubMax, 0, "linear");
});
_root.scrubR_bn.onPress = function () {
this._alpha = 100;
_root.scrub.tween("_x", TapeDeck.thisClass.scrubMin, 0.4, "linear");
};
_root.scrubR_bn.onRelease = (_root.scrubR_bn.onReleaseOutside = function () {
this._alpha = 0;
_root.scrub.stopTween();
var _local3 = (_root.scrub._x - TapeDeck.thisClass.scrubMin) / (TapeDeck.thisClass.scrubMax - TapeDeck.thisClass.scrubMin);
var _local4 = TapeDeck.thisClass.recordingTime * _local3;
TapeDeck.thisClass.playBack(_local4, _local3);
});
_root.scrubF_bn.onPress = function () {
this._alpha = 100;
_root.scrub.tween("_x", TapeDeck.thisClass.scrubMax, 0.4, "linear");
};
_root.scrubF_bn.onRelease = (_root.scrubF_bn.onReleaseOutside = function () {
this._alpha = 0;
_root.scrub.stopTween();
var _local3 = (_root.scrub._x - TapeDeck.thisClass.scrubMin) / (TapeDeck.thisClass.scrubMax - TapeDeck.thisClass.scrubMin);
var _local4 = TapeDeck.thisClass.recordingTime * _local3;
TapeDeck.thisClass.playBack(_local4, _local3);
});
_root.load_bn.onPress = function () {
this.gotoAndStop("press");
this._alpha = 100;
};
_root.load_bn.onRelease = (_root.load_bn.onReleaseOutside = function () {
this.gotoAndStop("light");
_root.fileManager.displayLoadWindow();
});
_root.save_bn.onPress = function () {
this.gotoAndStop("press");
this._alpha = 100;
};
_root.save_bn.onRelease = (_root.save_bn.onReleaseOutside = function () {
trace("SAVE");
this.gotoAndStop("light");
_root.fileManager.displaySaveWindow(TapeDeck.thisClass.recordingArray);
});
_root.noteSymbol.onPress = function () {
if (!TapeDeck.thisClass.displayKeyboardNotes) {
this._alpha = 100;
TapeDeck.thisClass.displayKeyboardNotes = true;
_root.keysToggle._alpha = 100;
} else {
this._alpha = 0;
TapeDeck.thisClass.displayKeyboardNotes = false;
_root.keysToggle._alpha = 0;
}
};
_root.scrub.onPress = function () {
this.stopTween();
this.startDrag(true, TapeDeck.thisClass.scrubMin, this._y, TapeDeck.thisClass.scrubMax, this._y);
};
_root.scrub.onRelease = (_root.scrub.onReleaseOutside = function () {
this.stopDrag();
var _local3 = (_root.scrub._x - TapeDeck.thisClass.scrubMin) / (TapeDeck.thisClass.scrubMax - TapeDeck.thisClass.scrubMin);
var _local4 = TapeDeck.thisClass.recordingTime * _local3;
TapeDeck.thisClass.playBack(_local4, _local3);
});
}
function beginRecording() {
trace("BEGIN RECORDING");
_root.recSilent._visible = true;
_root.stop_bn._alpha = 0;
_root.play_bn._alpha = 0;
thisClass.isRecording = true;
_root.scrub._x = scrubMin;
currentNote = 1;
recordingArray = new Array();
var _local3 = _root.selectionManager.selectedSound;
trace("SELECTED SOUND = " + _local3);
recordingArray.push(_local3);
recordStartingTime = getTimer();
trace("recordStartingTime = " + recordStartingTime);
}
function recordNote(key) {
_root.recSound._visible = true;
recordingArray[currentNote] = new Array();
trace("key = " + key);
var _local3 = getTimer() - recordStartingTime;
trace("start time = " + _local3);
recordingArray[currentNote].push(key, _local3);
currentNote++;
}
function releaseNote() {
_root.recSound._visible = false;
var _local3 = getTimer() - recordStartingTime;
recordingArray[currentNote - 1].push(_local3);
trace("end time = " + _local3);
}
function loadFile(fileData) {
recordingArray = fileData;
playBack(0, 0);
}
function playBack(startTime, pct) {
if (thisClass.isPlaying) {
stopPlayBack();
}
trace("THE SELECTED startTime ==== " + startTime);
startTime = startTime * 1000;
_root.selectionManager.selectSound(recordingArray[0]);
trace("PCT = " + (scrubMin + ((scrubMax - scrubMin) * pct)));
var _local5 = recordingArray.length - 1;
recordingTime = recordingArray[_local5][2] / 1000;
trace("SCRUB MAX = " + scrubMax);
_root.scrub.tween("_x", scrubMax, recordingTime - (startTime / 1000), "linear");
recordingTimeout = setTimeout(thisClass, "stopPlayBack", (recordingTime * 1000) - startTime);
_root.recSilent._visible = true;
_root.rec15_bn._alpha = 0;
_root.rec_bn._alpha = 0;
_root.stop_bn._alpha = 0;
thisClass.isPlaying = true;
thisClass.isRecording = false;
playbackArray = new Array();
trace("recordingArray " + recordingArray.length);
_local5 = recordingArray.length;
var _local3 = 1;
while (_local3 < _local5) {
if (recordingArray[_local3][1] > startTime) {
playbackArray.push(setTimeout(_root.selectionManager, "playNote", recordingArray[_local3][1] - startTime, recordingArray[_local3][0]));
playbackArray.push(setTimeout(_root.selectionManager, "releaseNote", recordingArray[_local3][2] - startTime));
}
_local3++;
}
}
function stopPlayBack() {
trace("SCRUB is here = " + _root.scrub.stopTween());
_root.scrub.stopTween();
_root.rec15_bn._alpha = 0;
_root.rec_bn._alpha = 0;
_root.play_bn._alpha = 0;
_root.recSilent._visible = false;
_root.recSound._visible = false;
clearTimeout(recordingTimeout);
thisClass.isPlaying = false;
thisClass.isRecording = false;
trace("PLAYBACK ARRAY = " + playbackArray.length);
var _local4 = playbackArray.length;
var _local3 = 0;
while (_local3 < _local4) {
clearTimeout(playbackArray[_local3]);
_local3++;
}
_root.selectionManager.releaseNote();
}
var isRecording = false;
var isPlaying = false;
var displayKeyboardNotes = false;
var recordingTime = 12;
var currentNote = 0;
var scrubMin = 344;
var scrubMax = 544;
}
Symbol 297 MovieClip [__Packages.SelectionManager] Frame 0
class SelectionManager
{
static var thisClass;
var targetMC, airGuitarSound, soundArray, rockSounds, burpSounds, fartSounds, symbolArray, selectedSound, animationMC, stopSnd, releaseNoteTimeOut;
function SelectionManager (tMC) {
targetMC = tMC;
thisClass = this;
init();
_root.cursor.swapDepths(88739);
}
function init() {
initArrays();
}
function initArrays() {
airGuitarSound = new Sound();
airGuitarSound.setVolume(100);
soundArray = new Array();
rockSounds = new Array("rC", "rC#", "rD", "rD#", "rE", "rF", "rF#", "rG", "rG#", "rA", "rA#", "rB", "rC_OCT");
burpSounds = new Array("bC", "bC#", "bD", "bD#", "bE", "bF", "bF#", "bG", "bG#", "bA", "bA#", "bB", "bC_OCT");
fartSounds = new Array("fC", "fC#", "fD", "fD#", "fE", "fF", "fF#", "fG", "fG#", "fA", "fA#", "fB", "fC_OCT");
symbolArray = new Array("C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "C");
}
function selectSound(num) {
selectedSound = num;
trace("SELECT SOUND " + num);
if (num == 1) {
trace("ROCK");
animationMC = targetMC.attachMovie("rockAnimation_mc", "animationMC", 1);
animationMC._x = 129;
animationMC._y = 163;
soundArray = rockSounds;
_root.rock_bn._alpha = 100;
_root.burp_bn._alpha = 0;
_root.fart_bn._alpha = 0;
_root.soundSelection._y = 452;
} else if (num == 2) {
animationMC = targetMC.attachMovie("burpAnimation_mc", "animationMC", 1);
animationMC._x = 129;
animationMC._y = 96;
soundArray = burpSounds;
_root.burp_bn._alpha = 100;
_root.rock_bn._alpha = 0;
_root.fart_bn._alpha = 0;
_root.soundSelection._y = 458;
} else if (num == 3) {
animationMC = targetMC.attachMovie("fartAnimation_mc", "animationMC", 1);
animationMC._x = 344;
animationMC._y = 137;
soundArray = fartSounds;
_root.fart_bn._alpha = 100;
_root.burp_bn._alpha = 0;
_root.rock_bn._alpha = 0;
_root.soundSelection._y = 464;
}
}
function playNote(key) {
if (!noteIsPlaying) {
if (_root.tapeDeck.isRecording) {
_root.tapeDeck.recordNote(key);
}
if (_root.tapeDeck.isPlaying) {
_root.recSound._visible = true;
}
noteIsPlaying = true;
animationMC.gotoAndPlay("start");
clearTimeout(stopSnd);
airGuitarSound.stop();
airGuitarSound.attachSound(soundArray[key]);
airGuitarSound.start();
_root.noteDisplay = symbolArray[key];
releaseNoteTimeOut = setTimeout(this, "releaseNote", airGuitarSound.duration);
}
}
function releaseNote() {
clearTimeout(releaseNoteTimeOut);
noteIsPlaying = false;
if (_root.tapeDeck.isRecording) {
_root.tapeDeck.releaseNote();
}
if (_root.tapeDeck.isPlaying) {
_root.recSound._visible = false;
}
animationMC.gotoAndPlay("release");
stopSounds();
}
function stopSounds() {
airGuitarSound.stop();
}
var noteIsPlaying = false;
}
Symbol 298 MovieClip [__Packages.com.robertpenner.easing.Linear] Frame 0
class com.robertpenner.easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
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);
}
static function easeOutIn(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 299 MovieClip [__Packages.com.robertpenner.easing.Expo] Frame 0
class com.robertpenner.easing.Expo
{
function Expo () {
}
static function easeIn(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOut(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOut(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
}
Symbol 300 MovieClip [__Packages.com.robertpenner.easing.Elastic] Frame 0
class com.robertpenner.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)))) + b);
}
}
Symbol 301 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);
}
static function easeOutIn(t, b, c, d) {
if (t < (d / 2)) {
return((easeOut(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeIn((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}
Symbol 302 MovieClip [__Packages.zigo.tweenManager] Frame 0
class zigo.tweenManager
{
var playing, autoStop, broadcastEvents, autoOverwrite, ints, lockedTweens, tweenList, updateTime, tweenHolder, updateIntId, now;
function tweenManager () {
playing = false;
autoStop = false;
broadcastEvents = false;
autoOverwrite = true;
ints = new Array();
lockedTweens = new Object();
tweenList = new Array();
}
function cleanUp() {
if (!((tweenList instanceof Array) && (tweenList.length > 0))) {
return(undefined);
}
for (var _local2 in tweenList) {
if (tweenList[_local2].mc._x == undefined) {
tweenList.splice(Number(_local2), 1);
}
}
if (tweenList.length == 0) {
tweenList = [];
deinit();
}
for (var _local2 in ints) {
if ((ints[_local2] != undefined) && (ints[_local2].mc._x == undefined)) {
removeDelayedTween(Number(_local2));
}
}
}
function set updateInterval(time) {
if (playing) {
deinit();
updateTime = time;
init();
} else {
updateTime = time;
}
//return(updateInterval);
}
function get updateInterval() {
return(updateTime);
}
function set controllerDepth(v) {
if (_global.isNaN(v) == true) {
return;
}
if (tweenHolder._name != undefined) {
tweenHolder.swapDepths(v);
} else {
_th_depth = v;
}
//return(controllerDepth);
}
function get controllerDepth() {
return(_th_depth);
}
function init() {
if (updateTime > 0) {
clearInterval(updateIntId);
updateIntId = setInterval(this, "update", updateTime);
} else {
if (tweenHolder._name == undefined) {
tweenHolder = _root.createEmptyMovieClip("_th_", _th_depth);
}
var tm = this;
tweenHolder.onEnterFrame = function () {
tm.update.call(tm);
};
}
playing = true;
now = getTimer();
}
function deinit() {
playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
}
function update() {
var _local2;
var _local10;
var _local3;
var _local13 = false;
_local10 = tweenList.length;
if (broadcastEvents) {
var _local4;
var _local7;
var _local5;
var _local9;
_local4 = {};
_local7 = {};
_local5 = {};
_local9 = {};
}
while (_local10--) {
_local2 = tweenList[_local10];
if (_local2.mc._x == undefined) {
_local13 = true;
continue;
}
if (_local2.pt != -1) {
continue;
}
if ((_local2.ts + _local2.d) > now) {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ef(now - _local2.ts, _local2.ps, _local2.ch, _local2.d, _local2.e1, _local2.e2);
} else {
var _local8 = {};
for (_local3 in _local2.ctm) {
_local8[_local3] = _local2.ef(now - _local2.ts, _local2.stm[_local3], _local2.ctm[_local3], _local2.d, _local2.e1, _local2.e2);
}
_local2.c.setTransform(_local8);
}
if (broadcastEvents) {
if (_local4[targetPath(_local2.mc)] == undefined) {
_local4[targetPath(_local2.mc)] = _local2.mc;
}
if (_local5[targetPath(_local2.mc)] == undefined) {
_local5[targetPath(_local2.mc)] = [];
}
_local5[targetPath(_local2.mc)].push(((_local2.ctm != undefined) ? "_ct_" : (_local2.pp)));
}
if (_local2.cb.updfunc != undefined) {
var _local6 = _local2.cb.updfunc;
if ((typeof(_local6) == "string") && (_local2.cb.updscope != undefined)) {
_local6 = _local2.cb.updscope[_local6];
}
_local6.apply(_local2.cb.updscope, _local2.cb.updargs);
}
} else {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ps + _local2.ch;
} else {
var _local8 = {};
for (_local3 in _local2.ctm) {
_local8[_local3] = _local2.stm[_local3] + _local2.ctm[_local3];
}
_local2.c.setTransform(_local8);
}
if (broadcastEvents) {
if (_local4[targetPath(_local2.mc)] == undefined) {
_local4[targetPath(_local2.mc)] = _local2.mc;
}
if (_local7[targetPath(_local2.mc)] == undefined) {
_local7[targetPath(_local2.mc)] = _local2.mc;
}
if (_local5[targetPath(_local2.mc)] == undefined) {
_local5[targetPath(_local2.mc)] = [];
}
_local5[targetPath(_local2.mc)].push(((_local2.ctm != undefined) ? "_ct_" : (_local2.pp)));
if (_local9[targetPath(_local2.mc)] == undefined) {
_local9[targetPath(_local2.mc)] = [];
}
_local9[targetPath(_local2.mc)].push(((_local2.ctm != undefined) ? "_ct_" : (_local2.pp)));
}
if (_local2.cb.updfunc != undefined) {
var _local6 = _local2.cb.updfunc;
if ((typeof(_local6) == "string") && (_local2.cb.updscope != undefined)) {
_local6 = _local2.cb.updscope[_local6];
}
_local6.updfunc.apply(_local2.cb.updscope, _local2.cb.updargs);
}
if (endt == undefined) {
var endt = new Array();
}
endt.push(_local10);
}
}
if (_local13) {
cleanUp();
}
for (_local3 in _local4) {
_local4[_local3].broadcastMessage("onTweenUpdate", {target:_local4[_local3], props:_local5[_local3]});
}
if (endt != undefined) {
endTweens(endt);
}
for (_local3 in _local7) {
_local7[_local3].broadcastMessage("onTweenEnd", {target:_local7[_local3], props:_local9[_local3]});
}
now = getTimer();
if (updateTime > 0) {
updateAfterEvent();
}
}
function endTweens(tid_arr) {
var _local2;
var _local9;
var _local3;
var _local5;
var _local8;
_local2 = [];
_local9 = tid_arr.length;
_local3 = 0;
while (_local3 < _local9) {
_local5 = tweenList[tid_arr[_local3]].cb;
if (_local5 != undefined) {
var _local6 = true;
for (_local8 in _local2) {
if (_local2[_local8] == _local5) {
_local6 = false;
break;
}
}
if (_local6) {
_local2.push(_local5);
}
}
tweenList.splice(tid_arr[_local3], 1);
_local3++;
}
_local3 = 0;
while (_local3 < _local2.length) {
var _local4 = _local2[_local3].func;
if ((typeof(_local4) == "string") && (_local2[_local3].scope != undefined)) {
_local4 = _local2[_local3].scope[_local4];
}
_local4.apply(_local2[_local3].scope, _local2[_local3].args);
_local3++;
}
if (tweenList.length == 0) {
deinit();
}
}
function removeDelayedTween(index) {
clearInterval(ints[index].intid);
ints[index] = undefined;
var _local2 = true;
for (var _local3 in ints) {
if (ints[_local3] != undefined) {
_local2 = false;
break;
}
}
if (_local2) {
ints = [];
}
}
function addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var _local4;
var _local13;
var _local6;
var _local3;
var _local2;
if (!playing) {
init();
}
var _local12 = [];
for (_local4 in props) {
_local13 = props[_local4];
_local6 = true;
if (_local13.substr(0, 4) != "_ct_") {
var _local17 = ((typeof(pEnd[_local4]) == "string") ? (Number(pEnd[_local4])) : (pEnd[_local4] - mc[_local13]));
if (autoOverwrite) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.mc == mc) && (_local2.pp == _local13)) {
_local2.ps = mc[_local13];
_local2.ch = _local17;
_local2.ts = now;
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local2.pt = -1;
_local6 = false;
_local12.push(_local2.pp);
break;
}
}
}
if (_local6) {
tweenList.unshift({mc:mc, pp:_local13, ps:mc[_local13], ch:_local17, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2, pt:-1});
}
} else {
var _local16 = new Color(mc);
var _local20 = _local16.getTransform();
var _local19 = {};
for (_local3 in pEnd[_local4]) {
if ((pEnd[_local4][_local3] != _local20[_local3]) && (pEnd[_local4][_local3] != undefined)) {
_local19[_local3] = ((typeof(pEnd[_local4][_local3]) == "string") ? (_local20[_local3] + Number(pEnd[_local4][_local3])) : (pEnd[_local4][_local3] - _local20[_local3]));
}
}
if (autoOverwrite) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.mc == mc) && (_local2.ctm != undefined)) {
_local2.c = _local16;
_local2.stm = _local20;
(_local2.ctm = _local19);
(_local2.ts = now);
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local2.pt = -1;
_local6 = false;
_local12.push("_ct_");
break;
}
}
}
if (_local6) {
tweenList.unshift({mc:mc, c:_local16, stm:_local20, ctm:_local19, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2, pt:-1});
}
}
}
if (broadcastEvents) {
if (_local12.length > 0) {
mc.broadcastMessage("onTweenInterrupt", {target:mc, props:_local12});
}
mc.broadcastMessage("onTweenStart", {target:mc, props:props});
}
if (callback.startfunc != undefined) {
var _local27 = callback.startfunc;
if ((typeof(_local27) == "string") && (callback.startscope != undefined)) {
_local27 = callback.startscope[_local27];
}
_local27.apply(callback.startscope, callback.startargs);
}
if (sec == 0) {
update();
}
}
function addTweenWithDelay(delay, mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var il;
var _local3;
il = ints.length;
_local3 = setInterval(function (obj) {
obj.removeDelayedTween(il);
if (mc._x != undefined) {
obj.addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2);
}
}, delay * 1000, this);
ints[il] = {mc:mc, props:props, pend:pEnd, intid:_local3, st:getTimer(), delay:delay * 1000, args:arguments.slice(1), pt:-1};
if (!playing) {
init();
}
}
function removeTween(mc, props) {
var _local8;
var _local2;
var _local5;
_local8 = false;
if ((props == undefined) && (broadcastEvents != true)) {
_local8 = true;
}
_local2 = tweenList.length;
var _local4 = {};
while (_local2--) {
if (tweenList[_local2].mc == mc) {
if (_local8) {
tweenList.splice(_local2, 1);
} else {
for (_local5 in props) {
if (tweenList[_local2].pp == props[_local5]) {
tweenList.splice(_local2, 1);
if (_local4[targetPath(mc)] == undefined) {
_local4[targetPath(mc)] = {t:mc, p:[]};
}
_local4[targetPath(mc)].p.push(props[_local5]);
} else if (((props[_local5] == "_ct_") && (tweenList[_local2].ctm != undefined)) && (tweenList[_local2].mc == mc)) {
tweenList.splice(_local2, 1);
if (_local4[targetPath(mc)] == undefined) {
_local4[targetPath(mc)] = {t:mc, p:[]};
}
_local4[targetPath(mc)].p.push("_ct_");
}
}
}
}
}
_local2 = ints.length;
while (_local2--) {
if (ints[_local2].mc == mc) {
if (_local8) {
removeDelayedTween(Number(_local2));
} else {
for (_local5 in props) {
for (var _local11 in ints[_local2].props) {
if (ints[_local2].props[_local11] == props[_local5]) {
ints[_local2].props.splice(_local11, 1);
ints[_local2].pend.splice(_local11, 1);
if (_local4[targetPath(mc)] == undefined) {
_local4[targetPath(mc)] = {t:mc, p:[]};
}
_local4[targetPath(mc)].p.push(props[_local5]);
}
}
if (ints[_local2].props.length == 0) {
clearInterval(ints[_local2].intid);
}
}
}
}
}
if (broadcastEvents) {
for (var _local11 in _local4) {
if (_local4[_local11].p.length > 0) {
_local4[_local11].t.broadcastMessage("onTweenInterrupt", {target:_local4[_local11].t, props:_local4[_local11].p});
}
}
}
if (tweenList.length == 0) {
deinit();
}
}
function isTweening(mc, prop) {
var _local4 = prop == undefined;
for (var _local6 in tweenList) {
var _local2 = tweenList[_local6];
if (((tweenList[_local6].mc == mc) && (tweenList[_local6].pt == -1)) && ((_local4 || (prop == _local2.pp)) || ((prop == "_ct_") && (_local2.ctm != undefined)))) {
return(true);
}
}
return(false);
}
function getTweens(mc) {
var _local2 = 0;
for (var _local4 in tweenList) {
if (tweenList[_local4].mc == mc) {
_local2++;
}
}
return(_local2);
}
function lockTween(mc, bool) {
lockedTweens[targetPath(mc)] = bool;
}
function isTweenLocked(mc) {
if (lockedTweens[targetPath(mc)] == undefined) {
return(false);
}
return(lockedTweens[targetPath(mc)]);
}
function ffTween(mc, propsObj) {
var _local4 = mc == undefined;
var _local6 = propsObj == undefined;
for (var _local8 in tweenList) {
var _local2 = tweenList[_local8];
if (((_local2.mc == mc) || (_local4)) && (_local6 || (propsObj[_local2.pp] == true))) {
if (_local2.pt != -1) {
_local2.pt = -1;
}
_local2.ts = now - _local2.d;
}
}
for (var _local8 in ints) {
if (ints[_local8] != undefined) {
if ((ints[_local8].mc == mc) || (_local4)) {
if (ints[_local8].mc._x != undefined) {
var _local3 = ints[_local8].args;
_local3[3] = 0;
addTween.apply(this, _local3);
}
removeDelayedTween(Number(_local8));
}
}
}
update();
}
function rewTween(mc, propsObj) {
var _local3 = mc == undefined;
var _local5 = propsObj == undefined;
for (var _local7 in tweenList) {
var _local2 = tweenList[_local7];
if (((_local2.mc == mc) || (_local3)) && (_local5 || (propsObj[_local2.pp] == true))) {
if (_local2.pt != -1) {
_local2.pt = -1;
}
_local2.ts = now;
}
}
for (var _local7 in ints) {
if (ints[_local7] != undefined) {
if ((ints[_local7].mc == mc) || (_local3)) {
if (ints[_local7].mc._x != undefined) {
addTween.apply(this, ints[_local7].args);
}
removeDelayedTween(Number(_local7));
}
}
}
update();
}
function isTweenPaused(mc, prop) {
if (mc == undefined) {
return(null);
}
var _local5 = prop == undefined;
for (var _local6 in tweenList) {
var _local2 = tweenList[_local6];
if ((tweenList[_local6].mc == mc) && ((_local5 || (prop == _local2.pp)) || ((prop == "_ct_") && (_local2.ctm != undefined)))) {
return(Boolean(tweenList[_local6].pt != -1));
}
}
for (var _local6 in ints) {
if ((ints[_local6] != undefined) && (ints[_local6].mc == mc)) {
return(Boolean(ints[_local6].pt != -1));
}
}
return(false);
}
function pauseTween(mc, propsObj) {
var _local3 = mc == undefined;
if ((_local3 == false) && (isTweenPaused(mc) == true)) {
return(undefined);
}
var _local6 = propsObj == undefined;
for (var _local7 in tweenList) {
var _local2 = tweenList[_local7];
if (((_local2.pt == -1) && ((_local2.mc == mc) || (_local3))) && ((_local6 || (propsObj[_local2.pp] == true)) || ((propsObj._ct_ != undefined) && (_local2.ctm != undefined)))) {
_local2.pt = now;
}
}
for (var _local7 in ints) {
if (ints[_local7] != undefined) {
if ((ints[_local7].pt == -1) && ((ints[_local7].mc == mc) || (_local3))) {
ints[_local7].pt = now;
}
}
}
}
function unpauseTween(mc, propsObj) {
var _local4 = mc == undefined;
if ((_local4 == false) && (isTweenPaused(mc) === false)) {
return(undefined);
}
var _local7 = propsObj == undefined;
if (!playing) {
init();
}
for (var _local2 in tweenList) {
var _local3 = tweenList[_local2];
if ((((_local3.pt != -1) && ((_local3.mc == mc) || (_local4))) && (_local7 || (propsObj[_local3.pp] == true))) || ((propsObj._ct_ != undefined) && (_local3.ctm != undefined))) {
_local3.ts = now - (_local3.pt - _local3.ts);
_local3.pt = -1;
}
}
for (var _local2 in ints) {
if (ints[_local2] != undefined) {
if ((ints[_local2].pt != -1) && ((ints[_local2].mc == mc) || (_local4))) {
ints[_local2].delay = ints[_local2].delay - (ints[_local2].pt - ints[_local2].st);
ints[_local2].st = now;
ints[_local2].intid = setInterval(function (obj, id) {
obj.addTween.apply(obj, obj.ints[id].args);
clearInterval(obj.ints[id].intid);
obj.ints[id] = undefined;
}, ints[_local2].delay, this, _local2);
}
}
}
}
function pauseAll() {
pauseTween();
}
function unpauseAll() {
unpauseTween();
}
function stopAll() {
for (var _local2 in ints) {
removeDelayedTween(Number(_local2));
}
tweenList = new Array();
deinit();
}
function toString() {
return("[AS2 tweenManager 1.2.0]");
}
var _th_depth = 6789;
}
Symbol 303 MovieClip [__Packages.com.robertpenner.easing.Cubic] Frame 0
class com.robertpenner.easing.Cubic
{
function Cubic () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
}
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 5
stop();
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 5
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 5
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 5
stop();