Frame 2
function load_rgames(trgt) {
var rel_games = new XML();
rel_games.ignoreWhite = true;
rel_games.onLoad = function () {
game_details = new Object();
var _local1 = 0;
while (_local1 < trgt.rel_games.firstChild.childNodes.length) {
game_details[rel_games.firstChild.childNodes[_local1].nodeName] = rel_games.firstChild.childNodes[_local1].firstChild.nodeValue;
_local1++;
}
};
rel_games.load((curl + "game_details.xml?") + getTimer());
}
function playAgain() {
_root.g2w_playagain(true);
}
function _doGameOver(score, gamestate, showskip, delay) {
trace((((("CALLED : _doGameOver : score:" + score) + " gamestate:") + gamestate) + " showskip: ") + showskip);
clearInterval(_gameoverinterval);
if (delay == undefined) {
delay = 3000;
}
if ((score != undefined) and (gamestate != undefined)) {
_root.partner_score = score;
_root.obj_game._gstatus = gamestate;
_gameoverinterval = setInterval(attachGameOverMc, delay, showskip);
} else {
trace("Could Not Load GAMEOVER!!!");
}
}
function attachGameOverMc(showskip) {
stopAllSounds();
clearInterval(_gameoverinterval);
_root.__gameover_mc = _root.attachMovie("_g2w_gameover_mc", "mc_gameover", _root.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 2});
_root.__gameover_mc.showskip = showskip;
if (_root.obj_game._gstatus == "gameover") {
_root.__gameover_mc.gotoAndStop("g2w_gameover");
if (showskip) {
_root.__gameover_mc.panel_btn.gotoAndStop("skip");
}
}
}
function g2w_playagain(resetlevel) {
_root.__gameover_mc.removeMovieClip();
_root.score = 0;
_root.game_mc.score = 0;
if (resetlevel) {
_root.game_mc.maxcount = 60;
_root.game_mc.level = 1;
_root.game_mc.gotoAndStop("init");
} else {
_root.game_mc.gotoAndStop("game");
}
trace(_root.game_mc.level);
}
function g2w_skiplevel() {
_root.__gameover_mc.removeMovieClip();
_root.game_mc.level++;
trace(_root.game_mc.level + " _root.game_mc.level");
_root.game_mc.score = 0;
_root.game_mc.gotoAndStop("game");
}
var obj_game = new Array();
obj_game._host = "ag";
obj_game._gameName = "high_school_band";
obj_game._gameTitle = "High School Band";
obj_game._g2wGameId = "1220";
obj_game._partnerGameId = "highschoolband";
obj_game._gstatus = "gameover";
obj_game._googleText = "High School Band";
obj_game._gameStageW = 800;
obj_game._gameStageH = 600;
obj_game._gameScoreOrder = "desc";
obj_game._gameResolution = (Stage.width + "x") + Stage.height;
obj_game.g2wBot = "";
obj_game.g2wBotId = 10301;
obj_game.inviziads = ((("http://s1.inviziads.com/lookup.html?g=" + obj_game._g2wGameId) + "&h=") + obj_game._host) + "&v=4_0";
System.security.allowDomain("shockwave.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com", "agstage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = obj_game._partnerGameId;
_level0.swHighScoreObject.gameTitle = obj_game._gameTitle;
_level0.swHighScoreObject.screenWidth = obj_game._gameStageW;
_level0.swHighScoreObject.screenHeight = obj_game._gameStageH;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = 0;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
var obj_partner = new Array();
obj_partner._partnerName = "ag";
obj_partner.partnerId = 1;
obj_partner.show_g2w_slate = true;
obj_partner.clickthru = ((("http://www.games2win.com/?utm_campaign=" + obj_partner._partnerName) + "&utm_source=") + obj_game._gameName) + "&medium=game";
obj_partner._allowclick = true;
_validateHost = function (mcpath) {
var _local2 = mcpath;
_local2.overlay_btn.useHandCursor = false;
_local2.hider_btn.useHandCursor = false;
_local2.hider_btn._visible = false;
if (_root.obj_game._gstatus == "gameover") {
if (_root.checkhost()) {
_initGameOver(_local2);
} else {
_initAlientHostGameOver(_local2);
}
} else if (_root.checkhost()) {
_initLoginPanel(_local2);
} else {
_initAlientHost(_local2);
}
trace("HOST : " + _root.checkhost());
};
_initGameOver = function (mcpath) {
var _local2 = mcpath;
_local2.gotoAndStop("g2w_gameover");
_local2.panel_btn.playagain_btn.onRelease = function () {
_root.g2w_playagain(true);
};
if (_local2.showskip) {
_local2.panel_btn.gotoAndStop("skip");
_local2.panel_btn.skiplvl_btn.onRelease = function () {
_root.g2w_skiplevel();
};
}
};
_initAlientHost = function (mcpath) {
var _local2 = mcpath;
_local2.gotoAndStop("g2w_alienhost");
_local2.playagain_btn.onRelease = function () {
_root.g2w_playagain(true);
};
if (_local2.showskip) {
_local2.panel_btn.gotoAndStop("skip");
_local2.panel_btn.skiplvl_btn.onRelease = function () {
_root.g2w_skiplevel();
};
}
};
_initAlientHostGameOver = function (mcpath) {
var _local2 = mcpath;
_local2.gotoAndStop("g2w_alienhost_gameover");
_local2.playagain_btn.onRelease = function () {
trace("CALLING : _root.g2w_playagain()");
_root.g2w_playagain(true);
};
if (_local2.showskip) {
_local2.panel_btn.gotoAndStop("skip");
_local2.panel_btn.skiplvl_btn.onRelease = function () {
_root.g2w_skiplevel();
};
}
};
_initLoginPanel = function (mcpath) {
var mc = mcpath;
mc.gotoAndStop("g2w_login");
mc.playagain_btn.onRelease = function () {
_root.g2w_playagain(true);
};
mc.agpanel_mc.view_btn.onRelease = function () {
_scoreSubmit(mc, "view");
};
mc.agpanel_mc.submit_btn.onRelease = function () {
_scoreSubmit(mc, "submit");
};
};
_scoreSubmit = function (mcpath, type) {
var _local3 = mcpath;
_root.swHighScoreObject.showTab = type;
_root.partner_score = ((_root.partner_score <= 0) ? 10 : (_root.partner_score));
_root.swHighScoreObject.player1Score = _root.partner_score;
_local3.hider_btn._visible = true;
_local3.agpanel_mc.docount = true;
_local3.agpanel_mc.swapDepths(100033);
_local3.agpanel_mc.onEnterFrame = function () {
if (this.docount) {
this.trycount++;
if ((_level2.getBytesTotal() == -1) && (this.trycount > 60)) {
this.docount = false;
this.trycount = 0;
}
}
};
loadMovieNum (_root.HSHubURL, 2);
};
var g2w_menu = new ContextMenu();
g2w_menu.hideBuiltInItems();
g2w_menu.customItems.push(new ContextMenuItem("Games2win.com", itemHandler));
itemHandler = function (obj, item) {
getURL (obj_partner.clickthru, "_blank");
};
this.menu = g2w_menu;
checkhost = function () {
trace("CALL CHECKHOST");
swfurl = this._url;
if (((swfurl.indexOf("games2win.com") != -1) or (swfurl.indexOf("addictinggames.com") != -1)) or (swfurl.indexOf("shockwave.com") != -1)) {
return(true);
}
return(false);
};
_trackClickThru = function (mc) {
if (obj_partner._allowclick) {
mc.hit_area.onRelease = function () {
getURL (obj_partner.clickthru, "_blank");
};
} else {
mc.hit_area.useHandCursor = false;
}
};
String.prototype.trim = function () {
var _local3 = 0;
var _local2 = this.length;
white = new Object();
white._32 = 1;
_local2--;
while (white["_" + ord(this.charAt(_local2))]) {
}
while (white["_" + ord(this.charAt(_local3++))]) {
}
return(this.slice(_local3 - 1, _local2 + 1));
};
Frame 6
stop();
ag_intro_02_02.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
Instance of Symbol 100 MovieClip "ag_mouse" in Frame 6
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 11
stop();
Frame 16
stop();
Instance of Symbol 289 MovieClip in Frame 16
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
load_txt.text = ("Loaded " + percent) + "%";
gotoAndStop(percent);
if (loaded == total) {
_parent.play();
}
}
Frame 24
stop();
instruction.onRelease = function () {
if (panel_mc._currentframe == 1) {
panel_mc.gotoAndPlay("play");
panel_mc.text_mc.gotoAndStop("instruction");
}
};
story.onRelease = function () {
if (panel_mc._currentframe == 1) {
panel_mc.gotoAndPlay("play");
panel_mc.text_mc.gotoAndStop("story");
}
};
start.onRelease = function () {
gotoAndStop ("lblgame");
};
Frame 33
stop();
_root.myGame = _root.game_mc;
Symbol 11 MovieClip [brain_inviziads] Frame 1
function brain() {
create_assets(myself, _global.obj_iads.type);
switch (_global.obj_iads.type) {
case "FULL" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main);
break;
case "EMBED" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main.trgt_ads);
if (_global.obj_iads.link ne undefined) {
trgt_main.onRelease = function () {
trace("_global.obj_iads.link " + _global.obj_iads.link);
getURL (_global.obj_iads.link, "_blank");
};
}
break;
case "NOOP" :
clearInterval(int1);
_parent.play();
break;
}
}
function get_iads() {
lv_iads = new XML();
lv_result = new XML();
lv_result.ignoreWhite = true;
lv_result.onLoad = function (success) {
trace("success " + success);
if (success) {
parse_iads(lv_result);
} else {
_root.play();
}
};
lv_iads.g = game_id;
lv_iads.sendAndLoad(_root.adurl, lv_result, "POST");
}
function parse_iads(lv_result) {
_global.obj_iads = new Array();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes.length) {
if (lv_result.firstChild.childNodes[_local2].firstChild.nodeValue != null) {
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = lv_result.firstChild.childNodes[_local2].firstChild.nodeValue;
} else if (lv_result.firstChild.childNodes[_local2].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local4 = 0;
while (_local4 < lv_result.firstChild.childNodes[_local2].childNodes.length) {
_local5[lv_result.firstChild.childNodes[_local2].childNodes[_local4].nodeName] = lv_result.firstChild.childNodes[_local2].childNodes[_local4].firstChild.nodeValue;
_local4++;
}
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = _local5;
}
_local2++;
}
show_time = int(_global.obj_iads.t);
check_type();
}
function time_delay() {
tim = 0;
int1 = setInterval(timespam, 1000);
}
function timespam() {
tim++;
trace(((tim + " tim Tim") + " show_time") + show_time);
if (tim == show_time) {
clearInterval(int1);
_parent.play();
}
}
function create_assets(mc, _type) {
trace((("Create _ assets " + mc) + " ") + _type);
mc.createEmptyMovieClip("trgt_main", 4);
mcLoader = new MovieClipLoader();
mcLoader.addListener(mc);
if (_type != "FULL") {
mc.createEmptyMovieClip("square_mc", 5);
var _local4 = trgt_main.createEmptyMovieClip("trgt_ads", getNextHighestDepth());
var _local2 = new TextFormat();
_local2.align = "center";
_local2.font = "Verdana";
_local2.size = 10;
mc.createTextField("h_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("b_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
b_txt.autoSize = true;
b_txt.selectable = false;
h_txt.selectable = false;
b_txt.multiline = true;
b_txt.setNewTextFormat(_local2);
h_txt.autoSize = true;
h_txt.setNewTextFormat(_local2);
h_txt.text = "";
mc.createEmptyMovieClip("progressBar", 500);
}
}
function onLoadInit(mc) {
ad_width = int(_global.obj_iads.x);
ad_height = int(_global.obj_iads.y);
trace("Ad Width : " + ad_width);
trace("Ad Height : " + ad_height);
h_txt.text = "Advertisement";
progressBar.tim = show_time;
progressBar.width = _global.obj_iads.x;
progressBar.height = 15;
progressBar.start = function () {
game_fps = getFps();
maxw = this.width - 2;
this.ad = maxw / (this.tim + 1);
this.ad = this.ad / game_fps;
};
progressBar.onEnterFrame = function () {
if (this.bar._width < (this.width - 2)) {
this.bar._width = this.bar._width + this.ad;
} else {
this.bar._width = this.width;
}
};
progressBar._x = 100;
progressBar._y = 100;
bar_mc = progressBar.createEmptyMovieClip("bar", 1);
box_mc = progressBar.createEmptyMovieClip("box", 2);
bar_mc.beginFill(26112);
bar_mc.moveTo(0, 0);
bar_mc.lineTo(1, 0);
bar_mc.lineTo(1, progressBar.height - 2);
bar_mc.lineTo(0, progressBar.height - 2);
bar_mc.lineTo(0, 0);
bar_mc.endFill();
bar_mc._x = 1.5;
bar_mc._y = 1.5;
box_mc.lineStyle(1, 3355443, 100, true, "none", "round", "miter", 1);
box_mc.lineTo(progressBar.width, 0);
box_mc.lineTo(progressBar.width, progressBar.height);
box_mc.lineTo(0, progressBar.height);
box_mc.lineTo(0, 0);
box_mc._x = 0;
box_mc._y = 0;
progressBar.start();
b_txt.text = "Note\rClicking on the above Ad won't interrupt your game.\r Ad link opens in a new window.";
myself._y = b_txt._y - 10;
x = (Stage.width / 2) - (ad_width / 2);
y = (Stage.height / 2) - (ad_height / 2);
mc._x = x;
mc._y = y;
h_txt._x = (x + (ad_width / 2)) - (h_txt._width / 2);
if ((_embedscale = "down")) {
h_txt._y = y - 40;
}
progressBar._x = (x + (ad_width / 2)) - (progressBar._width / 2);
progressBar._y = (y + 5) + ad_height;
myself.attachMovie("invizi_logo", "invizi_logo", this.getNextHighestDepth(), {_x:int(progressBar._x + progressBar._width) - 114, _y:int((progressBar._y + progressBar._height) + 5)});
myself.invizi_logo.onRelease = function () {
getURL ("http://www.inviziads.com", "_blank");
};
b_txt._x = (x + (ad_width / 2)) - (b_txt._width / 2);
b_txt._y = progressBar._y + 30;
square_mc.beginFill(16711680);
square_mc.moveTo(0, 0);
square_mc.lineTo(ad_width, 0);
square_mc.lineTo(ad_width, ad_height);
square_mc.lineTo(0, ad_height);
square_mc.lineTo(0, 0);
square_mc.endFill();
square_mc._x = x;
square_mc._y = y;
trgt_main.setMask(square_mc);
var _local5 = ((Stage.width - scaled_width) / scaled_width) * 100;
var _local4 = ((Stage.height - scaled_height) / scaled_height) * 100;
this._xscale = 100 + _local5;
this._yscale = 100 + _local4;
new_xpos = (-(((Stage.width * this._xscale) / 100) - Stage.width)) / 2;
new_ypos = (-(((Stage.height * this._yscale) / 100) - Stage.height)) / 2;
_parent[this._name]._x = new_xpos;
_parent[this._name]._y = new_ypos;
}
function check_type() {
if (_global.obj_iads.type eq "UPDATE") {
trace(" _global.obj_iads.payload.type " + _global.obj_iads.payload.type);
this.createEmptyMovieClip("holder", 100);
var _local4 = _global.obj_iads.url;
_root.obj_iads = _global.obj_iads.payload;
holder.loadMovie(_global.obj_iads.url);
holder.obj_iads = _root.obj_iads;
show_time = 20;
} else {
brain();
}
time_delay();
}
function parse_xml(mydata) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < mydata.firstChild.childNodes.length) {
if (mydata.firstChild.childNodes[_local1].firstChild.nodeValue != null) {
_local4[mydata.firstChild.childNodes[_local1].nodeName] = mydata.firstChild.childNodes[_local1].firstChild.nodeValue;
} else if (mydata.firstChild.childNodes[_local1].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes[_local1].childNodes.length) {
_local4[lv_result.firstChild.childNodes[_local1].childNodes[_local2].nodeName] = mydata.firstChild.childNodes[_local1].childNodes[_local2].firstChild.nodeValue;
_local2++;
}
_local4[lv_result.firstChild.childNodes[_local1].nodeName] = _local5;
}
_local1++;
}
return(_local4);
}
System.security.allowDomain("*");
Stage.scaleMode = "noscale";
scaled_width = Stage.width;
scaled_height = Stage.height;
Stage.scaleMode = "showAll";
Object.prototype.getFps = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
this.onEnterFrame = function () {
game_fps = getFps();
if ((game_fps != 0) && (game_fps != undefined)) {
this.onEnterFrame = null;
}
};
myself = this;
signal = true;
_root.adurl = (_root.obj_game.inviziads + "&ts=") + getTimer();
stop();
if (_root.checkhost()) {
_root.play();
} else {
get_iads();
}
Symbol 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 2
stop();
Symbol 45 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 60 MovieClip Frame 1
hit_area.onRelease = function () {
getURL ("http://www.addictinggames.com", blank);
};
Symbol 62 Button
on (release) {
trace("CALLING : _root.g2w_playagain()");
_root.g2w_playagain();
}
Symbol 65 Button
on (release) {
trace("CALLING : _root.g2w_skiplevel()");
_root.g2w_skiplevel();
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 73 MovieClip [_g2w_gameover_mc] Frame 1
stop();
_root._validateHost(this);
Symbol 73 MovieClip [_g2w_gameover_mc] Frame 2
stop();
Symbol 73 MovieClip [_g2w_gameover_mc] Frame 11
stop();
Symbol 73 MovieClip [_g2w_gameover_mc] Frame 22
stop();
Symbol 73 MovieClip [_g2w_gameover_mc] Frame 33
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 92 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
Symbol 97 MovieClip [game_sound_ctrl] Frame 1
_gameSounds = new Sound();
var frame = "on";
changeVol = function (targetvol, step) {
this.onEnterFrame = function () {
var _local3 = _gameSounds.getVolume();
if ((step < 0) and (_local3 <= targetvol)) {
_local3 = targetvol;
delete this.onEnterFrame;
_root.so_sound = 1;
} else if ((step > 0) and (_local3 >= targetvol)) {
_local3 = targetvol;
delete this.onEnterFrame;
_root.so_sound = 0;
} else {
_gameSounds.setVolume(_local3 + step);
}
};
};
if (_root.so_sound == 1) {
frame = "off";
this.gotoAndPlay(frame);
}
this.onRelease = function () {
if (frame == "on") {
frame = "off";
} else {
frame = "on";
}
this.gotoAndPlay(frame);
};
Symbol 97 MovieClip [game_sound_ctrl] Frame 2
stop();
changeVol(100, 5);
Symbol 97 MovieClip [game_sound_ctrl] Frame 3
stop();
changeVol(0, -5);
Symbol 1191 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var timerClip, _classInitted, currentTime, _gcInterval, overwriteManager;
var vars, duration, delay, combinedTimeScale, active, target, ease, tweens, _subTweens, _hst, initted, initTime, startTime, endTargetID, _hasUpdate, started, gc;
function TweenLite ($target, $duration, $vars) {
if ((timerClip._visible != false) || (!_classInitted)) {
currentTime = getTimer();
var _local3 = 999;
while (_root.getInstanceAtDepth(_local3) != undefined) {
_local3++;
}
timerClip = _root.createEmptyMovieClip("__tweenLite_mc", _local3);
timerClip._visible = false;
clearInterval(_gcInterval);
_gcInterval = setInterval(killGarbage, 2000);
timerClip.onEnterFrame = updateAll;
if (overwriteManager == undefined) {
overwriteManager = {mode:1, enabled:false};
}
_classInitted = true;
}
vars = $vars;
duration = $duration || 0.001;
delay = $vars.delay || 0;
combinedTimeScale = $vars.timeScale || 1;
active = Boolean(($duration == 0) && (delay == 0));
target = $target;
if (typeof(vars.ease) != "function") {
vars.ease = defaultEase;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
ease = vars.ease;
if (typeof(vars.autoAlpha) == "number") {
vars._alpha = vars.autoAlpha;
vars._visible = Boolean(vars._alpha > 0);
}
tweens = [];
_subTweens = [];
_hst = (initted = false);
initTime = currentTime;
startTime = initTime + (delay * 1000);
endTargetID = getID($target, true);
var _local6 = ((($vars.overwrite == undefined) || ((!overwriteManager.enabled) && ($vars.overwrite > 1))) ? (overwriteManager.mode) : (Number($vars.overwrite)));
if ((_local6 == 1) && ($target != undefined)) {
delete masterList[endTargetID];
masterList[endTargetID] = {target:$target, tweens:[]};
}
masterList[endTargetID].tweens.push(this);
if (active || ((vars.runBackwards == true) && (vars.renderOnStart != true))) {
initTweenVals();
if (active) {
render(startTime + 1);
} else {
render(startTime);
}
if ((vars._visible != undefined) && (vars.runBackwards == true)) {
target._visible = vars._visible;
}
}
}
function initTweenVals($hrp, $reservedProps) {
var _local6 = (typeof(target) == "movieclip") || (target.isTweenProxy);
var _local2;
var _local3;
if (($hrp != true) && (overwriteManager.enabled)) {
overwriteManager.manageOverwrites(this, masterList[endTargetID].tweens);
}
if (target instanceof Array) {
var _local5 = vars.endArray || ([]);
_local3 = 0;
while (_local3 < _local5.length) {
if ((target[_local3] != _local5[_local3]) && (target[_local3] != undefined)) {
tweens[tweens.length] = [target, _local3.toString(), target[_local3], _local5[_local3] - target[_local3], _local3.toString()];
}
_local3++;
}
} else {
if (((vars.tint != undefined) || (vars.removeTint == true)) && (_local6 || (target instanceof TextField))) {
var _local10 = new Color(target);
var _local7 = vars._alpha;
if (_local7 != undefined) {
delete vars._alpha;
} else {
_local7 = target._alpha;
}
if (((vars.removeTint == true) || (vars.tint == null)) || (vars.tint == "")) {
addSubTween("tint", tintProxy, _local10.getTransform(), {rb:0, gb:0, bb:0, ab:0, ra:_local7, ga:_local7, ba:_local7, aa:_local7}, {color:_local10});
} else {
addSubTween("tint", tintProxy, _local10.getTransform(), {rb:vars.tint >> 16, gb:(vars.tint >> 8) & 255, bb:vars.tint & 255, ra:0, ga:0, ba:0, aa:_local7}, {color:_local10});
}
}
if ((vars.frame != undefined) && (_local6)) {
addSubTween("frame", frameProxy, {frame:target._currentframe}, {frame:vars.frame}, {mc:target});
}
if ((vars.volume != undefined) && (_local6 || (target instanceof Sound))) {
var _local11 = (_local6 ? (new Sound(target)) : (Sound(target)));
addSubTween("volume", volumeProxy, {volume:_local11.getVolume()}, {volume:vars.volume}, {sound:_local11});
}
if ((vars._visible != undefined) && (_local6 || (target instanceof TextField))) {
addSubTween("_visible", visibleProxy, {}, {}, {tween:this});
}
for (_local2 in vars) {
if (((((((((((((((((((_local2 == "ease") || (_local2 == "delay")) || (_local2 == "overwrite")) || (_local2 == "onComplete")) || (_local2 == "onCompleteParams")) || (_local2 == "onCompleteScope")) || (_local2 == "runBackwards")) || (_local2 == "onUpdate")) || (_local2 == "onUpdateParams")) || (_local2 == "onUpdateScope")) || (_local2 == "persist")) || (_local2 == "volume")) || (_local2 == "onStart")) || (_local2 == "onStartParams")) || (_local2 == "onStartScope")) || (_local2 == "renderOnStart")) || (_local2 == "proxiedEase")) || (_local2 == "easeParams")) || ($hrp && ($reservedProps.indexOf((" " + _local2) + " ") != -1))) {
} else if ((!(_local6 && (((((_local2 == "_visible") || (_local2 == "autoAlpha")) || (_local2 == "tint")) || (_local2 == "removeTint")) || (_local2 == "frame")))) && (target[_local2] != undefined)) {
if (typeof(vars[_local2]) == "number") {
tweens[tweens.length] = [target, _local2, target[_local2], vars[_local2] - target[_local2], _local2];
} else {
tweens[tweens.length] = [target, _local2, target[_local2], Number(vars[_local2]), _local2];
}
}
}
}
if (vars.runBackwards == true) {
var _local4;
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local4 = tweens[_local3];
_local4[2] = _local4[2] + _local4[3];
_local4[3] = _local4[3] * -1;
_local3--;
}
}
if (vars.onUpdate != null) {
_hasUpdate = true;
}
initted = true;
}
function addSubTween($name, $proxy, $target, $props, $info) {
_subTweens[_subTweens.length] = {name:$name, proxy:$proxy, target:$target, info:$info};
for (var _local5 in $props) {
if (typeof($props[_local5]) == "number") {
tweens[tweens.length] = [$target, _local5, $target[_local5], $props[_local5] - $target[_local5], $name];
} else {
tweens[tweens.length] = [$target, _local5, $target[_local5], Number($props[_local5]), $name];
}
}
_hst = true;
}
static function to($target, $duration, $vars) {
return(new gs.TweenLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenLite($target, $duration, $vars));
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:0}));
}
function render($t) {
var _local4 = ($t - startTime) * 0.001;
var _local5;
var _local3;
var _local2;
if (_local4 >= duration) {
_local4 = duration;
_local5 = (((ease == vars.ease) || (duration == 0.001)) ? 1 : 0);
} else {
_local5 = ease(_local4, 0, 1, duration);
}
_local2 = tweens.length - 1;
while (_local2 > -1) {
_local3 = tweens[_local2];
_local3[0][_local3[1]] = _local3[2] + (_local5 * _local3[3]);
_local2--;
}
if (_hst) {
_local2 = _subTweens.length - 1;
while (_local2 > -1) {
_subTweens[_local2].proxy(_subTweens[_local2], _local4);
_local2--;
}
}
if (_hasUpdate) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local4 == duration) {
complete(true);
}
}
static function updateAll() {
var _local4 = (currentTime = getTimer());
var _local5 = masterList;
var _local6;
var _local3;
var _local2;
var _local1;
for (_local6 in _local5) {
_local3 = _local5[_local6].tweens;
_local2 = _local3.length - 1;
while (_local2 > -1) {
_local1 = _local3[_local2];
if (_local1.active) {
_local1.render(_local4);
} else if (_local1.gc) {
_local3.splice(_local2, 1);
} else if (_local4 >= _local1.startTime) {
_local1.activate();
_local1.render(_local4);
}
_local2--;
}
}
}
function activate() {
started = (active = true);
if (!initted) {
initTweenVals();
}
if (vars.onStart != undefined) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
if (duration == 0.001) {
startTime = startTime - 1;
}
}
function complete($skipRender) {
if ($skipRender != true) {
if (!initted) {
initTweenVals();
}
startTime = currentTime - ((duration * 1000) / combinedTimeScale);
render(currentTime);
return(undefined);
}
if (vars.persist != true) {
enabled = (false);
}
if (vars.onComplete) {
vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams);
}
}
static function removeTween($t, $clear) {
if ($clear != false) {
$t.clear();
}
$t.__set__enabled(false);
}
function clear() {
tweens = [];
_subTweens = [];
vars = {};
_hst = (_hasUpdate = false);
}
static function killTweensOf($target, $complete) {
var _local5 = getID($target, true);
var _local3 = masterList[_local5];
var _local2;
var _local1;
if (_local3 != undefined) {
_local2 = _local3.length - 1;
while (_local2 > -1) {
_local1 = _local3[_local2];
if ($complete && (!_local1.gc)) {
_local1.complete(false);
}
_local1.clear();
_local2--;
}
delete masterList[_local5];
}
}
function killVars($vars) {
if (overwriteManager.enabled) {
overwriteManager.killVars($vars, vars, tweens, _subTweens, []);
}
}
static function getID($target, $lookup) {
var _local3;
if ($lookup) {
var _local1 = masterList;
if (typeof($target) == "movieclip") {
if (_local1[String($target)] != undefined) {
return(String($target));
}
_local3 = String($target);
masterList[_local3] = {target:$target, tweens:[]};
return(_local3);
}
for (var _local4 in _local1) {
if (_local1[_local4].target == $target) {
return(_local4);
}
}
}
_cnt++;
_local3 = "t" + _cnt;
masterList[_local3] = {target:$target, tweens:[]};
return(_local3);
}
static function killGarbage() {
var _local1 = masterList;
var _local2;
var _local3;
for (_local2 in _local1) {
if (_local1[_local2].tweens.length == 0) {
delete _local1[_local2];
}
}
}
static function defaultEase($t, $b, $c, $d) {
$t = $t / $d;
return((((-$c) * $t) * ($t - 2)) + $b);
}
function easeProxy($t, $b, $c, $d) {
return(vars.proxiedEase.apply(null, arguments.concat(vars.easeParams)));
}
static function tintProxy($o) {
$o.info.color.setTransform($o.target);
}
static function frameProxy($o) {
$o.info.mc.gotoAndStop(Math.round($o.target.frame));
}
static function volumeProxy($o) {
$o.info.sound.setVolume($o.target.volume);
}
static function visibleProxy($o, $time) {
var _local1 = $o.info.tween;
if (_local1.duration == $time) {
if ((_local1.vars.runBackwards != true) && (_local1.ease == _local1.vars.ease)) {
_local1.target._visible = _local1.vars._visible;
}
} else if (_local1.target._visible != true) {
_local1.target._visible = true;
}
}
function get enabled() {
return((gc ? false : true));
}
function set enabled($b) {
if ($b) {
if (masterList[endTargetID] == undefined) {
masterList[endTargetID] = {target:target, tweens:[this]};
} else {
var _local3 = masterList[endTargetID].tweens;
var _local4;
var _local2;
_local2 = _local3.length - 1;
while (_local2 > -1) {
if (_local3[_local2] == this) {
_local4 = true;
break;
}
_local2--;
}
if (!_local4) {
masterList[endTargetID].tweens.push(this);
}
}
}
gc = ($b ? false : true);
if (gc) {
active = false;
} else {
active = started;
}
//return(enabled);
}
static var version = 9.3;
static var killDelayedCallsTo = killTweensOf;
static var masterList = new Object();
static var _cnt = -16000;
static var _hrp = false;
}
Symbol 1192 MovieClip [__Packages.gs.TweenFilterLite] Frame 0
class gs.TweenFilterLite extends gs.TweenLite
{
var combinedTimeScale, target, _timeScale, delay, startTime, initTime, endTargetID, _clrsa, _filters, _matrix, vars, tweens, _roundProps, _cmf, _endMatrix, duration, ease, _hst, _subTweens, _hasUpdate, complete, __get__enabled;
function TweenFilterLite ($target, $duration, $vars) {
super($target, $duration, $vars);
if ((combinedTimeScale != 1) && (target instanceof gs.TweenFilterLite)) {
_timeScale = 1;
combinedTimeScale = _globalTimeScale;
} else {
_timeScale = combinedTimeScale;
combinedTimeScale = combinedTimeScale * _globalTimeScale;
}
if ((combinedTimeScale != 1) && (delay != 0)) {
startTime = initTime + (delay * (1000 / combinedTimeScale));
}
if (gs.TweenLite.version < 9.3) {
trace("TweenFilterLite error: Please update your TweenLite class or try clearing your ASO files. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com.");
}
}
static function to($target, $duration, $vars) {
return(new gs.TweenFilterLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenFilterLite($target, $duration, $vars));
}
function initTweenVals($hrp, $reservedProps) {
if (($hrp != true) && (gs.TweenLite.overwriteManager.enabled)) {
gs.TweenLite.overwriteManager.manageOverwrites(this, gs.TweenLite.masterList[endTargetID].tweens);
}
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
$reservedProps = $reservedProps || "";
$reservedProps = $reservedProps + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter roundProps timeScale ";
if ((vars.timeScale != undefined) && (target.timeScale != undefined)) {
tweens[tweens.length] = [target, "timeScale", target.timeScale, vars.timeScale - target.timeScale, "timeScale"];
}
_roundProps = Boolean(vars.roundProps instanceof Array);
var _local3;
var _local6;
if (((typeof(target) == "movieclip") || (target instanceof TextField)) || (target.isTweenProxy)) {
if (vars.blurFilter != undefined) {
_local6 = vars.blurFilter;
addFilter("blurFilter", _local6, flash.filters.BlurFilter, ["blurX", "blurY", "quality"], new flash.filters.BlurFilter(0, 0, _local6.quality || 2));
}
if (vars.glowFilter != undefined) {
_local6 = vars.glowFilter;
addFilter("glowFilter", _local6, flash.filters.GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new flash.filters.GlowFilter(16777215, 0, 0, 0, _local6.strength || 1, _local6.quality || 2, _local6.inner, _local6.knockout));
}
if (vars.colorMatrixFilter != undefined) {
_local6 = vars.colorMatrixFilter;
var _local9 = addFilter("colorMatrixFilter", _local6, flash.filters.ColorMatrixFilter, [], new flash.filters.ColorMatrixFilter(_matrix));
_cmf = _local9.filter;
_matrix = _cmf.matrix;
if ((_local6.matrix != undefined) && (_local6.matrix instanceof Array)) {
_endMatrix = _local6.matrix;
} else {
if (_local6.relative == true) {
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
}
_endMatrix = setBrightness(_endMatrix, _local6.brightness);
_endMatrix = setContrast(_endMatrix, _local6.contrast);
_endMatrix = setHue(_endMatrix, _local6.hue);
_endMatrix = setSaturation(_endMatrix, _local6.saturation);
_endMatrix = setThreshold(_endMatrix, _local6.threshold);
if (!isNaN(_local6.colorize)) {
_endMatrix = colorize(_endMatrix, _local6.colorize, _local6.amount);
} else if (!isNaN(_local6.color)) {
_endMatrix = colorize(_endMatrix, _local6.color, _local6.amount);
}
}
_local3 = 0;
while (_local3 < _endMatrix.length) {
if ((_matrix[_local3] != _endMatrix[_local3]) && (_matrix[_local3] != undefined)) {
tweens[tweens.length] = [_matrix, _local3.toString(), _matrix[_local3], _endMatrix[_local3] - _matrix[_local3], "colorMatrixFilter"];
}
_local3++;
}
}
if (vars.dropShadowFilter != undefined) {
_local6 = vars.dropShadowFilter;
addFilter("dropShadowFilter", _local6, flash.filters.DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, _local6.quality || 2, _local6.inner, _local6.knockout, _local6.hideObject));
}
if (vars.bevelFilter != undefined) {
_local6 = vars.bevelFilter;
addFilter("bevelFilter", _local6, flash.filters.BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, _local6.quality || 2));
}
if (vars.runBackwards == true) {
var _local4;
_local3 = 0;
while (_local3 < _clrsa.length) {
_local4 = _clrsa[_local3];
_local4.sr = _local4.sr + _local4.cr;
_local4.cr = _local4.cr * -1;
_local4.sg = _local4.sg + _local4.cg;
_local4.cg = _local4.cg * -1;
_local4.sb = _local4.sb + _local4.cb;
_local4.cb = _local4.cb * -1;
_local4.f[_local4.p] = ((_local4.sr << 16) | (_local4.sg << 8)) | _local4.sb;
_local3++;
}
}
super.initTweenVals(true, $reservedProps);
} else {
super.initTweenVals($hrp, $reservedProps);
}
if (_roundProps) {
var _local5;
var _local7;
_local3 = vars.roundProps.length - 1;
while (_local3 > -1) {
_local7 = vars.roundProps[_local3];
_local5 = tweens.length - 1;
while (_local5 > -1) {
if ((tweens[_local5][1] == _local7) && (tweens[_local5][0] == target)) {
tweens[_local5][5] = true;
break;
}
_local5--;
}
_local3--;
}
}
}
function addFilter($name, $fv, $filterType, $props, $defaultFilter) {
var _local5 = {type:$filterType, name:$name};
var _local8 = target.filters;
var _local3;
var _local2;
var _local9;
var _local4;
var _local7;
_local3 = 0;
while (_local3 < _local8.length) {
if (_local8[_local3] instanceof $filterType) {
_local5.filter = _local8[_local3];
break;
}
_local3++;
}
if (_local5.filter == undefined) {
_local5.filter = $defaultFilter;
_local8[_local8.length] = _local5.filter;
target.filters = _local8;
}
_local3 = 0;
while (_local3 < $props.length) {
_local2 = $props[_local3];
if ($fv[_local2] != undefined) {
if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
_local4 = HEXtoRGB(_local5.filter[_local2]);
_local7 = HEXtoRGB($fv[_local2]);
_clrsa[_clrsa.length] = {f:_local5.filter, p:_local2, sr:_local4.rb, cr:_local7.rb - _local4.rb, sg:_local4.gb, cg:_local7.gb - _local4.gb, sb:_local4.bb, cb:_local7.bb - _local4.bb};
} else if ((((_local2 == "quality") || (_local2 == "inner")) || (_local2 == "knockout")) || (_local2 == "hideObject")) {
_local5.filter[_local2] = $fv[_local2];
} else {
if (typeof($fv[_local2]) == "number") {
_local9 = $fv[_local2] - _local5.filter[_local2];
} else {
_local9 = Number($fv[_local2]);
}
tweens[tweens.length] = [_local5.filter, _local2, _local5.filter[_local2], _local9, $name];
}
}
_local3++;
}
_filters[_filters.length] = _local5;
_hf = true;
return(_local5);
}
function render($t) {
var _local10 = (($t - startTime) * 0.001) * combinedTimeScale;
var _local5;
var _local2;
var _local3;
if (_local10 >= duration) {
_local10 = duration;
_local5 = (((ease == vars.ease) || (duration == 0.001)) ? 1 : 0);
} else {
_local5 = ease(_local10, 0, 1, duration);
}
if (!_roundProps) {
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local2 = tweens[_local3];
_local2[0][_local2[1]] = _local2[2] + (_local5 * _local2[3]);
_local3--;
}
} else {
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local2 = tweens[_local3];
if (_local2[5]) {
_local2[0][_local2[1]] = Math.round(_local2[2] + (_local5 * _local2[3]));
} else {
_local2[0][_local2[1]] = _local2[2] + (_local5 * _local2[3]);
}
_local3--;
}
}
if (_hf) {
var _local4;
var _local8;
var _local9;
var _local7;
_local3 = _clrsa.length - 1;
while (_local3 > -1) {
_local2 = _clrsa[_local3];
_local8 = _local2.sr + (_local5 * _local2.cr);
_local9 = _local2.sg + (_local5 * _local2.cg);
_local7 = _local2.sb + (_local5 * _local2.cb);
_local2.f[_local2.p] = ((_local8 << 16) | (_local9 << 8)) | _local7;
_local3--;
}
if (_cmf) {
_cmf.matrix = _matrix;
}
var _local6 = target.filters;
_local3 = 0;
while (_local3 < _filters.length) {
_local4 = _local6.length - 1;
while (_local4 > -1) {
if (_local6[_local4] instanceof _filters[_local3].type) {
_local6.splice(_local4, 1, _filters[_local3].filter);
break;
}
_local4--;
}
_local3++;
}
target.filters = _local6;
}
if (_hst) {
_local3 = _subTweens.length - 1;
while (_local3 > -1) {
_subTweens[_local3].proxy(_subTweens[_local3], _local10);
_local3--;
}
}
if (_hasUpdate) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local10 == duration) {
complete(true);
}
}
function killVars($vars) {
if (gs.TweenLite.overwriteManager.enabled) {
gs.TweenLite.overwriteManager.killVars($vars, vars, tweens, _subTweens, _filters || ([]));
}
}
static function setGlobalTimeScale($scale) {
if ($scale < 1E-5) {
$scale = 1E-5;
}
var _local3 = gs.TweenLite.masterList;
var _local4;
var _local1;
var _local2;
_globalTimeScale = $scale;
for (_local4 in _local3) {
_local2 = _local3[_local4].tweens;
_local1 = _local2.length - 1;
while (_local1 > -1) {
if (_local2[_local1] instanceof gs.TweenFilterLite) {
_local2[_local1].timeScale = _local2[_local1].timeScale * 1;
}
_local1--;
}
}
}
function HEXtoRGB($n) {
return({rb:$n >> 16, gb:($n >> 8) & 255, bb:$n & 255});
}
static function colorize($m, $color, $amount) {
if (($color == undefined) || (isNaN($color))) {
return($m);
}
if ($amount == undefined) {
$amount = 1;
}
var _local3 = (($color >> 16) & 255) / 255;
var _local5 = (($color >> 8) & 255) / 255;
var _local2 = ($color & 255) / 255;
var _local4 = 1 - $amount;
var _local7 = [_local4 + (($amount * _local3) * _lumR), ($amount * _local3) * _lumG, ($amount * _local3) * _lumB, 0, 0, ($amount * _local5) * _lumR, _local4 + (($amount * _local5) * _lumG), ($amount * _local5) * _lumB, 0, 0, ($amount * _local2) * _lumR, ($amount * _local2) * _lumG, _local4 + (($amount * _local2) * _lumB), 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local7, $m));
}
static function setThreshold($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local2 = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function setHue($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n * (Math.PI/180);
var _local1 = Math.cos($n);
var _local2 = Math.sin($n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, $m));
}
static function setBrightness($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = ($n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, $n, 0, 1, 0, 0, $n, 0, 0, 1, 0, $n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], $m));
}
static function setSaturation($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local4 = 1 - $n;
var _local3 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local2 = _local4 * _lumB;
var _local6 = [_local3 + $n, _local5, _local2, 0, 0, _local3, _local5 + $n, _local2, 0, 0, _local3, _local5, _local2 + $n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, $m));
}
static function setContrast($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n + 0.01;
var _local2 = [$n, 0, 0, 0, 128 * (1 - $n), 0, $n, 0, 0, 128 * (1 - $n), 0, 0, $n, 0, 128 * (1 - $n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function applyMatrix($m, $m2) {
if (((($m == undefined) || (!($m instanceof Array))) || ($m2 == undefined)) || (!($m2 instanceof Array))) {
return($m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6;
var _local1;
_local6 = 0;
while (_local6 < 4) {
_local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = $m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = (((($m[_local2] * $m2[_local1]) + ($m[_local2 + 1] * $m2[_local1 + 5])) + ($m[_local2 + 2] * $m2[_local1 + 10])) + ($m[_local2 + 3] * $m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
function get timeScale() {
return(_timeScale);
}
function set timeScale($n) {
if ($n < 1E-5) {
$n = (_timeScale = 1E-5);
} else {
_timeScale = $n;
$n = $n * _globalTimeScale;
}
initTime = (gs.TweenLite.currentTime - ((((gs.TweenLite.currentTime - initTime) - (delay * (1000 / combinedTimeScale))) * combinedTimeScale) * (1 / $n))) - (delay * (1000 / $n));
if (startTime != 999999999999999) {
startTime = initTime + (delay * (1000 / $n));
}
combinedTimeScale = $n;
//return(timeScale);
}
function set enabled($b) {
super.__set__enabled($b);
if ($b) {
combinedTimeScale = _timeScale * _globalTimeScale;
}
//return(__get__enabled());
}
static function set globalTimeScale($n) {
setGlobalTimeScale($n);
//return(globalTimeScale);
}
static function get globalTimeScale() {
return(_globalTimeScale);
}
static var version = 9.3;
static var delayedCall = gs.TweenLite.delayedCall;
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killTweensOf;
static var _globalTimeScale = 1;
static var _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
var _hf = false;
}
Symbol 1193 MovieClip [__Packages.gs.OverwriteManager] Frame 0
class gs.OverwriteManager
{
static var mode, enabled;
function OverwriteManager () {
}
static function init($mode) {
if (gs.TweenLite.version < 9.29) {
trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
}
gs.TweenLite.overwriteManager = gs.OverwriteManager;
mode = (($mode == undefined) ? 2 : ($mode));
enabled = true;
return(mode);
}
static function manageOverwrites($tween, $targetTweens) {
var _local8 = $tween.vars;
var _local10 = ((_local8.overwrite == undefined) ? (mode) : (Number(_local8.overwrite)));
if ((_local10 < 2) || ($targetTweens == undefined)) {
return(undefined);
}
var _local6 = $tween.startTime;
var _local4 = [];
var _local2;
var _local1;
var _local3;
_local2 = $targetTweens.length - 1;
while (_local2 > -1) {
_local3 = $targetTweens[_local2];
if (((_local3 != $tween) && (_local3.startTime <= _local6)) && ((_local3.startTime + ((_local3.duration * 1000) / _local3.combinedTimeScale)) > _local6)) {
_local4[_local4.length] = _local3;
}
_local2--;
}
if (_local4.length == 0) {
return(undefined);
}
if (_local10 == AUTO) {
var _local5 = {};
for (_local1 in _local8) {
if (((((((((((((((((((_local1 == "ease") || (_local1 == "delay")) || (_local1 == "overwrite")) || (_local1 == "onComplete")) || (_local1 == "onCompleteParams")) || (_local1 == "runBackwards")) || (_local1 == "persist")) || (_local1 == "onUpdate")) || (_local1 == "onUpdateParams")) || (_local1 == "timeScale")) || (_local1 == "onStart")) || (_local1 == "onStartParams")) || (_local1 == "renderOnStart")) || (_local1 == "proxiedEase")) || (_local1 == "easeParams")) || (_local1 == "onCompleteAll")) || (_local1 == "onCompleteAllParams")) || (_local1 == "yoyo")) || (_local1 == "loop")) {
} else {
_local5[_local1] = 1;
if (_local1 == "shortRotate") {
_local5._rotation = 1;
} else if (_local1 == "removeTint") {
_local5.tint = 1;
} else if (_local1 == "autoAlpha") {
_local5.alpha = 1;
_local5._visible = 1;
}
}
}
_local2 = _local4.length - 1;
while (_local2 > -1) {
_local4[_local2].killVars(_local5);
_local2--;
}
} else {
_local2 = _local4.length - 1;
while (_local2 > -1) {
_local4[_local2].enabled = false;
_local2--;
}
}
}
static function killVars($killVars, $vars, $tweens, $subTweens, $filters) {
var _local1;
var _local6;
_local1 = $subTweens.length - 1;
while (_local1 > -1) {
if ($killVars[$subTweens[_local1].name] != undefined) {
$subTweens.splice(_local1, 1);
}
_local1--;
}
_local1 = $tweens.length - 1;
while (_local1 > -1) {
if ($killVars[$tweens[_local1][4]] != undefined) {
$tweens.splice(_local1, 1);
}
_local1--;
}
_local1 = $filters.length - 1;
while (_local1 > -1) {
if ($killVars[$filters[_local1].name] != undefined) {
$filters.splice(_local1, 1);
}
_local1--;
}
for (_local6 in $killVars) {
delete $vars[_local6];
}
}
static var version = 0.992;
static var NONE = 0;
static var ALL = 1;
static var AUTO = 2;
static var CONCURRENT = 3;
}
Symbol 1194 MovieClip [__Packages.gs.TweenMax] Frame 0
class gs.TweenMax extends gs.TweenFilterLite
{
var _tweenID, _thisReverseEase, _repeatCount, vars, endTargetID, target, addSubTween, tweens, pauseTime, startTime, initTime, combinedTimeScale, delay, started, activate, active, render, ease, duration, initted, _subTweens, _timeScale, killVars, __get__enabled;
function TweenMax ($target, $duration, $vars) {
super($target, $duration, $vars);
_idCount++;
_tweenID = "t" + _idCount;
_thisReverseEase = mx.utils.Delegate.create(this, reverseEase);
_repeatCount = 0;
if ((!isNaN(vars.yoyo)) || (!isNaN(vars.loop))) {
vars.persist = true;
}
if (gs.TweenFilterLite.version < 9.3) {
trace("TweenMax error! Please update your TweenFilterLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.");
}
}
function initTweenVals($hrp, $reservedProps) {
$reservedProps = $reservedProps || "";
$reservedProps = $reservedProps + " hexColors bezier bezierThrough shortRotation orientToBezier quaternions onCompleteAll onCompleteAllParams yoyo loop ";
var _local3;
var _local4;
var _local16;
var _local14;
var _local5;
var _local10 = bezierProxy;
if (($hrp != true) && (gs.TweenLite.overwriteManager.enabled)) {
gs.TweenLite.overwriteManager.manageOverwrites(this, gs.TweenLite.masterList[endTargetID].tweens);
}
if (vars.orientToBezier == true) {
vars.orientToBezier = [["_x", "_y", "_rotation", 0]];
_local10 = bezierProxy2;
} else if (vars.orientToBezier instanceof Array) {
_local10 = bezierProxy2;
}
if (vars.bezier != undefined) {
_local14 = {};
_local5 = vars.bezier;
_local4 = 0;
while (_local4 < _local5.length) {
for (_local3 in _local5[_local4]) {
if (_local14[_local3] == undefined) {
_local14[_local3] = [target[_local3]];
}
if (typeof(_local5[_local4][_local3]) == "number") {
_local14[_local3].push(_local5[_local4][_local3]);
} else {
_local14[_local3].push(target[_local3] + Number(_local5[_local4][_local3]));
}
}
_local4++;
}
for (_local3 in _local14) {
if (typeof(vars[_local3]) == "number") {
_local14[_local3].push(vars[_local3]);
} else {
_local14[_local3].push(target[_local3] + Number(vars[_local3]));
}
delete vars[_local3];
}
addSubTween("bezier", _local10, {t:0}, {t:1}, {props:parseBeziers(_local14, false), target:target, orientToBezier:vars.orientToBezier});
}
if (vars.bezierThrough != undefined) {
_local14 = {};
_local5 = vars.bezierThrough;
_local4 = 0;
while (_local4 < _local5.length) {
for (_local3 in _local5[_local4]) {
if (_local14[_local3] == undefined) {
_local14[_local3] = [target[_local3]];
}
if (typeof(_local5[_local4][_local3]) == "number") {
_local14[_local3].push(_local5[_local4][_local3]);
} else {
_local14[_local3].push(target[_local3] + Number(_local5[_local4][_local3]));
}
}
_local4++;
}
for (_local3 in _local14) {
if (typeof(vars[_local3]) == "number") {
_local14[_local3].push(vars[_local3]);
} else {
_local14[_local3].push(target[_local3] + Number(vars[_local3]));
}
delete vars[_local3];
}
addSubTween("bezierThrough", _local10, {t:0}, {t:1}, {props:parseBeziers(_local14, true), target:target, orientToBezier:vars.orientToBezier});
}
if (vars.shortRotation != undefined) {
var _local9 = (vars.shortRotation - target._rotation) % 360;
if (_local9 != (_local9 % 180)) {
_local9 = ((_local9 < 0) ? (_local9 + 360) : (_local9 - 360));
}
tweens[tweens.length] = [target, "_rotation", target._rotation, _local9, "_rotation"];
}
if ((vars.hexColors != undefined) && (typeof(vars.hexColors) == "object")) {
for (_local3 in vars.hexColors) {
addSubTween("hexColors", hexColorsProxy, {r:target[_local3] >> 16, g:(target[_local3] >> 8) & 255, b:target[_local3] & 255}, {r:vars.hexColors[_local3] >> 16, g:(vars.hexColors[_local3] >> 8) & 255, b:vars.hexColors[_local3] & 255}, {prop:_local3, target:target});
}
}
super.initTweenVals(true, $reservedProps);
}
function pause() {
if (isNaN(pauseTime)) {
pauseTime = gs.TweenLite.currentTime;
startTime = 999999999999999;
enabled = (false);
_pausedTweens[_tweenID] = this;
}
}
function resume() {
enabled = (true);
if (!isNaN(pauseTime)) {
initTime = initTime + (gs.TweenLite.currentTime - pauseTime);
startTime = initTime + (delay * (1000 / combinedTimeScale));
pauseTime = NaN;
if ((!started) && (gs.TweenLite.currentTime >= startTime)) {
activate();
} else {
active = started;
}
delete _pausedTweens[_tweenID];
}
}
function restart($includeDelay) {
if ($includeDelay == true) {
initTime = gs.TweenLite.currentTime;
startTime = gs.TweenLite.currentTime + (delay * (1000 / combinedTimeScale));
} else {
startTime = gs.TweenLite.currentTime;
initTime = gs.TweenLite.currentTime - (delay * (1000 / combinedTimeScale));
}
_repeatCount = 0;
if (target != vars.onComplete) {
render(startTime);
}
pauseTime = NaN;
delete _pausedTweens[_tweenID];
enabled = (true);
}
function reverse($adjustDuration, $forcePlay) {
ease = ((vars.ease == ease) ? (_thisReverseEase) : (vars.ease));
var _local2 = progress;
if (($adjustDuration != false) && (_local2 > 0)) {
startTime = gs.TweenLite.currentTime - ((((1 - _local2) * duration) * 1000) / combinedTimeScale);
initTime = startTime - (delay * (1000 / combinedTimeScale));
}
if ($forcePlay != false) {
if (_local2 < 1) {
resume();
} else {
restart();
}
}
}
function reverseEase($t, $b, $c, $d) {
return(vars.ease($d - $t, $b, $c, $d));
}
function invalidate($adjustStartValues) {
if (initted) {
var _local2 = progress;
if (($adjustStartValues != true) && (_local2 != 0)) {
progress = (0);
}
tweens = [];
_subTweens = [];
initTweenVals();
_timeScale = vars.timeScale || 1;
combinedTimeScale = _timeScale * gs.TweenFilterLite._globalTimeScale;
delay = vars.delay || 0;
if (isNaN(pauseTime)) {
startTime = initTime + ((delay * 1000) / combinedTimeScale);
}
if (_local2 != 0) {
if ($adjustStartValues) {
adjustStartValues();
} else {
progress = (_local2);
}
}
}
}
function setDestination($property, $value, $adjustStartValues) {
var _local6 = progress;
if ((vars[$property] != undefined) && (initted)) {
if (($adjustStartValues == false) && (_local6 != 0)) {
var _local2 = tweens.length - 1;
while (_local2 > -1) {
if (tweens[_local2][4] == $property) {
tweens[_local2][0][tweens[_local2][1]] = tweens[_local2][2];
}
_local2--;
}
}
var _local5 = {};
_local5[$property] = 1;
killVars(_local5);
}
vars[$property] = $value;
if (initted) {
var _local4 = vars;
var _local8 = tweens;
var _local7 = _subTweens;
vars = {};
tweens = [];
_subTweens = [];
vars[$property] = $value;
initTweenVals();
if ((ease != _thisReverseEase) && (typeof(_local4.ease) == "function")) {
ease = _local4.ease;
}
if (($adjustStartValues != false) && (_local6 != 0)) {
adjustStartValues();
}
vars = _local4;
tweens = _local8.concat(tweens);
_subTweens = _local7.concat(_subTweens);
}
}
function adjustStartValues() {
var _local6 = progress;
if (_local6 != 0) {
var _local5 = 1 / (1 - ease(_local6 * duration, 0, 1, duration));
var _local4;
var _local2;
var _local3;
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local2 = tweens[_local3];
_local4 = _local2[2] + _local2[3];
_local2[3] = (_local4 - _local2[0][_local2[1]]) * _local5;
_local2[2] = _local4 - _local2[3];
_local3--;
}
}
}
function killProperties($names) {
var _local4 = {};
var _local2;
_local2 = $names.length - 1;
while (_local2 > -1) {
if (vars[$names[_local2]] != undefined) {
_local4[$names[_local2]] = 1;
}
_local2--;
}
killVars(_local4);
}
function complete($skipRender) {
if (((!isNaN(vars.yoyo)) && ((_repeatCount < vars.yoyo) || (vars.yoyo == 0))) || ((!isNaN(vars.loop)) && ((_repeatCount < vars.loop) || (vars.loop == 0)))) {
_repeatCount++;
if (!isNaN(vars.yoyo)) {
ease = ((vars.ease == ease) ? (reverseEase) : (vars.ease));
}
startTime = ($skipRender ? (startTime + (duration * (1000 / combinedTimeScale))) : (gs.TweenLite.currentTime));
initTime = startTime - (delay * (1000 / combinedTimeScale));
} else if (vars.persist == true) {
super.complete($skipRender);
pause();
return(undefined);
}
super.complete($skipRender);
}
static function to($target, $duration, $vars) {
return(new gs.TweenMax($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenMax($target, $duration, $vars));
}
static function allTo($targets, $duration, $vars) {
trace("WARNING: TweenMax.allTo() and TweenMax.allFrom() have been deprecated in favor of the much more powerful and flexible TweenGroup class. See http://blog.greensock.com/tweengroup/ for more details. Future versions of TweenMax may not include allTo() and allFrom() (to conserve file size).");
if ($targets.length == 0) {
return([]);
}
var _local4;
var _local3;
var _local1;
var _local10;
var _local7;
var _local5 = [];
var _local9 = $vars.delayIncrement || 0;
delete $vars.delayIncrement;
if ($vars.onCompleteAll == undefined) {
_local7 = $vars;
} else {
_local7 = {};
for (_local1 in $vars) {
_local7[_local1] = $vars[_local1];
}
_local7.onCompleteParams = [[$vars.onComplete, $vars.onCompleteAll], [$vars.onCompleteParams, $vars.onCompleteAllParams], [$vars.onCompleteScope, $vars.onCompleteAllScope]];
_local7.onComplete = callbackProxy;
delete $vars.onCompleteAll;
}
delete $vars.onCompleteAllParams;
delete $vars.onCompleteAllScope;
if (_local9 == 0) {
_local5[_local5.length] = new gs.TweenMax($targets[0], $duration, _local7);
_local4 = 1;
while (_local4 < $targets.length) {
_local3 = {};
for (_local1 in $vars) {
_local3[_local1] = $vars[_local1];
}
_local5[_local5.length] = new gs.TweenMax($targets[_local4], $duration, _local3);
_local4++;
}
} else {
_local10 = $vars.delay || 0;
_local4 = 0;
while (_local4 < ($targets.length - 1)) {
_local3 = {};
for (_local1 in $vars) {
_local3[_local1] = $vars[_local1];
}
_local3.delay = _local10 + (_local4 * _local9);
_local5[_local5.length] = new gs.TweenMax($targets[_local4], $duration, _local3);
_local4++;
}
_local7.delay = _local10 + (($targets.length - 1) * _local9);
_local5[_local5.length] = new gs.TweenMax($targets[$targets.length - 1], $duration, _local7);
}
return(_local5);
}
static function allFrom($targets, $duration, $vars) {
$vars.runBackwards = true;
return(allTo($targets, $duration, $vars));
}
static function callbackProxy($functions, $params, $scopes) {
var _local1 = 0;
while (_local1 < $functions.length) {
if ($functions[_local1] != undefined) {
$functions[_local1].apply($scopes[_local1], $params[_local1]);
}
_local1++;
}
}
static function sequence($target, $tweens) {
var _local1 = 0;
while (_local1 < $tweens.length) {
$tweens[_local1].target = $target;
_local1++;
}
return(multiSequence($tweens));
}
static function multiSequence($tweens) {
trace("WARNING: TweenMax.multiSequence() and TweenMax.sequence() have been deprecated in favor of the much more powerful and flexible TweenGroup class. See http://blog.greensock.com/tweengroup/ for more details. Future versions of TweenMax may not include sequence() and multiSequence() (to conserve file size).");
var _local3 = [];
var _local11 = [];
var _local14 = gs.TweenLite.overwriteManager.mode;
var _local12 = 0;
var _local4;
var _local6;
var _local9;
var _local10;
var _local7;
var _local1;
var _local5;
var _local8;
var _local2;
_local7 = 0;
while (_local7 < $tweens.length) {
_local4 = $tweens[_local7];
_local10 = _local4.time || 0;
_local1 = {};
for (_local5 in _local4) {
_local1[_local5] = _local4[_local5];
}
delete _local1.time;
_local9 = _local1.delay || 0;
_local1.delay = _local12 + _local9;
_local6 = _local1.target;
delete _local1.target;
if (_local14 == 1) {
_local8 = false;
_local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2] == _local6) {
_local8 = true;
break;
}
_local2++;
}
if ((!_local8) && (_local1.overwrite == undefined)) {
_local3[_local3.length] = _local6;
} else {
_local1.overwrite = 2;
}
}
_local11[_local11.length] = new gs.TweenMax(_local6, _local10, _local1);
_local12 = _local12 + (_local10 + _local9);
_local7++;
}
return(_local11);
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope, $persist) {
return(new gs.TweenMax($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, persist:$persist, overwrite:0}));
}
static function parseBeziers($props, $through) {
var _local2;
var _local1;
var _local3;
var _local4;
var _local6 = {};
if ($through) {
for (_local4 in $props) {
_local1 = $props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 2) {
_local3[_local3.length] = [_local1[0], _local1[1] - ((_local1[2] - _local1[0]) / 4), _local1[1]];
_local2 = 1;
while (_local2 < (_local1.length - 1)) {
_local3[_local3.length] = [_local1[_local2], _local1[_local2] + (_local1[_local2] - _local3[_local2 - 1][1]), _local1[_local2 + 1]];
_local2++;
}
} else {
_local3[_local3.length] = [_local1[0], (_local1[0] + _local1[1]) / 2, _local1[1]];
}
}
} else {
for (_local4 in $props) {
_local1 = $props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 3) {
_local3[_local3.length] = [_local1[0], _local1[1], (_local1[1] + _local1[2]) / 2];
_local2 = 2;
while (_local2 < (_local1.length - 2)) {
_local3[_local3.length] = [_local3[_local2 - 2][2], _local1[_local2], (_local1[_local2] + _local1[_local2 + 1]) / 2];
_local2++;
}
_local3[_local3.length] = [_local3[_local3.length - 1][2], _local1[_local1.length - 2], _local1[_local1.length - 1]];
} else if (_local1.length == 3) {
_local3[_local3.length] = [_local1[0], _local1[1], _local1[2]];
} else if (_local1.length == 2) {
_local3[_local3.length] = [_local1[0], (_local1[0] + _local1[1]) / 2, _local1[1]];
}
}
}
return(_local6);
}
static function getTweensOf($target) {
var _local3 = gs.TweenLite.masterList[gs.TweenLite.getID($target, true)].tweens;
var _local2 = [];
if (_local3 != undefined) {
var _local1 = _local3.length - 1;
while (_local1 > -1) {
if (!_local3[_local1].gc) {
_local2[_local2.length] = _local3[_local1];
}
_local1--;
}
}
for (var _local5 in _pausedTweens) {
if (_pausedTweens[_local5].target == $target) {
_local2[_local2.length] = _pausedTweens[_local5];
}
}
return(_local2);
}
static function isTweening($target) {
var _local2 = getTweensOf($target);
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].active && (!_local2[_local1].gc)) {
return(true);
}
_local1++;
}
return(false);
}
static function getAllTweens() {
var _local5 = gs.TweenLite.masterList;
var _local3 = [];
var _local2;
var _local4;
var _local1;
for (_local4 in _local5) {
_local2 = _local5[_local4].tweens;
_local1 = _local2.length - 1;
while (_local1 > -1) {
if (!_local2[_local1].gc) {
_local3[_local3.length] = _local2[_local1];
}
_local1--;
}
}
for (_local4 in _pausedTweens) {
_local3[_local3.length] = _pausedTweens[_local4];
}
return(_local3);
}
static function killAllTweens($complete) {
killAll($complete, true, false);
}
static function killAllDelayedCalls($complete) {
killAll($complete, false, true);
}
static function killAll($complete, $tweens, $delayedCalls) {
if ($tweens == undefined) {
$tweens = true;
}
if ($delayedCalls == undefined) {
$delayedCalls = false;
}
var _local2 = getAllTweens();
var _local3;
var _local1 = _local2.length - 1;
while (_local1 > -1) {
_local3 = _local2[_local1].target == _local2[_local1].vars.onComplete;
if ((_local3 == $delayedCalls) || (_local3 != $tweens)) {
if ($complete) {
_local2[_local1].complete(false);
_local2[_local1].clear();
} else {
gs.TweenLite.removeTween(_local2[_local1], true);
}
}
_local1--;
}
}
static function pauseAll($tweens, $delayedCalls) {
changePause(true, $tweens, $delayedCalls);
}
static function resumeAll($tweens, $delayedCalls) {
changePause(false, $tweens, $delayedCalls);
}
static function changePause($pause, $tweens, $delayedCalls) {
if ($pause == undefined) {
$pause = true;
}
if ($tweens == undefined) {
$tweens = true;
}
if ($delayedCalls == undefined) {
$delayedCalls = false;
}
var _local2 = getAllTweens();
var _local3;
var _local1 = _local2.length - 1;
while (_local1 > -1) {
_local3 = _local2[_local1].target == _local2[_local1].vars.onComplete;
if ((_local2[_local1] instanceof gs.TweenMax) && ((_local3 == $delayedCalls) || (_local3 != $tweens))) {
_local2[_local1].paused = $pause;
}
_local1--;
}
}
static function hexColorsProxy($o, $time) {
$o.info.target[$o.info.prop] = (($o.target.r << 16) | ($o.target.g << 8)) | $o.target.b;
}
static function bezierProxy($o, $time) {
var _local6 = $o.target.t;
var _local3 = $o.info.props;
var _local8 = $o.info.target;
var _local2;
var _local1;
var _local4;
var _local7;
var _local5;
if (_local6 == 1) {
for (_local1 in _local3) {
_local2 = _local3[_local1].length - 1;
_local8[_local1] = _local3[_local1][_local2][2];
}
} else {
for (_local1 in _local3) {
_local5 = _local3[_local1].length;
if (_local6 < 0) {
_local2 = 0;
} else if (_local6 >= 1) {
_local2 = _local5 - 1;
} else {
_local2 = (_local5 * _local6) >> 0;
}
_local7 = (_local6 - (_local2 * (1 / _local5))) * _local5;
_local4 = _local3[_local1][_local2];
_local8[_local1] = _local4[0] + (_local7 * (((2 * (1 - _local7)) * (_local4[1] - _local4[0])) + (_local7 * (_local4[2] - _local4[0]))));
}
}
}
static function bezierProxy2($o, $time) {
bezierProxy($o, $time);
var _local4 = {};
var _local3 = $o.info.target;
$o.info.target = _local4;
$o.target.t = $o.target.t + 0.01;
bezierProxy($o);
var _local5 = $o.info.orientToBezier;
var _local10;
var _local7;
var _local6;
var _local1;
var _local8;
var _local2;
_local2 = 0;
while (_local2 < _local5.length) {
_local1 = _local5[_local2];
_local8 = _local1[3] || 0;
_local7 = _local4[_local1[0]] - _local3[_local1[0]];
_local6 = _local4[_local1[1]] - _local3[_local1[1]];
_local3[_local1[2]] = (Math.atan2(_local6, _local7) * RAD2DEG) + _local8;
_local2++;
}
$o.info.target = _local3;
$o.target.t = $o.target.t - 0.01;
}
function get paused() {
return(isNaN(pauseTime));
}
function set paused($b) {
if ($b) {
pause();
} else {
resume();
}
//return(paused);
}
function get reversed() {
return(ease == _thisReverseEase);
}
function set reversed($b) {
if (reversed != $b) {
reverse();
}
//return(reversed);
}
function set enabled($b) {
if (!$b) {
delete _pausedTweens[_tweenID];
}
super.__set__enabled($b);
//return(__get__enabled());
}
static function set globalTimeScale($n) {
gs.TweenFilterLite.setGlobalTimeScale($n);
//return(globalTimeScale);
}
static function get globalTimeScale() {
return(gs.TweenFilterLite._globalTimeScale);
}
function get progress() {
var _local3 = ((!isNaN(pauseTime)) ? (pauseTime) : (gs.TweenLite.currentTime));
var _local2 = ((((_local3 - initTime) * 0.001) - (delay / combinedTimeScale)) / duration) * combinedTimeScale;
if (_local2 > 1) {
return(1);
}
if (_local2 < 0) {
return(0);
}
return(_local2);
}
function set progress($n) {
startTime = gs.TweenLite.currentTime - ((duration * $n) * 1000);
initTime = startTime - (delay * (1000 / combinedTimeScale));
if (!started) {
activate();
}
render(gs.TweenLite.currentTime);
if (!isNaN(pauseTime)) {
pauseTime = gs.TweenLite.currentTime;
startTime = 999999999999999;
active = false;
}
//return(progress);
}
static var version = 3.6;
static var RAD2DEG = 57.2957795130823;
static var _idCount = -16000;
static var _overwriteMode = (gs.OverwriteManager.enabled ? (gs.OverwriteManager.mode) : (gs.OverwriteManager.init()));
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killTweensOf;
static var removeTween = gs.TweenLite.removeTween;
static var _pausedTweens = {};
}
Symbol 1195 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 242 MovieClip Frame 134
_root.gotoAndStop("lblg2wintro");
Symbol 283 MovieClip Frame 140
stop();
_root.gotoAndStop("lblloader");
Symbol 448 MovieClip Frame 1
stop();
Instance of Symbol 446 MovieClip in Symbol 448 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 446 MovieClip in Symbol 448 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 446 MovieClip in Symbol 448 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 446 MovieClip in Symbol 448 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (4);
}
Symbol 452 Button
on (release) {
gotoAndPlay (11);
}
Symbol 453 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 10
stop();
close_btn.onRelease = function () {
gotoAndPlay ("close");
text_mc.gotoAndStop("none");
};
Symbol 453 MovieClip Frame 19
Symbol 468 MovieClip Frame 9
stop();
Symbol 487 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 14
stop();
Symbol 603 MovieClip Frame 1
stop();
Symbol 647 MovieClip Frame 1
stop();
Symbol 704 MovieClip Frame 13
stop();
Symbol 712 MovieClip Frame 13
stop();
Symbol 714 MovieClip Frame 13
stop();
Symbol 804 MovieClip Frame 1
stop();
Symbol 961 MovieClip Frame 1
stop();
Symbol 978 MovieClip Frame 1
stop();
Symbol 1003 MovieClip Frame 1
stop();
Symbol 1004 MovieClip Frame 1
stop();
Symbol 1024 MovieClip Frame 1
stop();
Symbol 1024 MovieClip Frame 2
var level_sound = new Sound(this);
level_sound.attachSound("level" + _parent.level);
level_sound.start();
level_sound.setVolume(100);
this.onEnterFrame = function () {
if (_parent.gametime <= (_parent.totaltime - 2)) {
level_sound.setVolume(_parent.levvol);
} else {
_parent.levvol = _parent.levvol - 4;
level_sound.setVolume(_parent.levvol);
}
};
Symbol 1025 MovieClip Frame 1
stop();
Symbol 1025 MovieClip Frame 2
var error_sound = new Sound(this);
this.onEnterFrame = function () {
_parent.errvol = _parent.errvol + ((_parent.errords - _parent.errvol) / 10);
error_sound.setVolume(_parent.errvol);
};
Symbol 1068 MovieClip Frame 1
stop();
Symbol 1075 MovieClip Frame 1
_parent.init();
Symbol 1075 MovieClip Frame 30
stop();
_parent.startGame();
Symbol 1137 MovieClip Frame 1
stop();
Symbol 1137 MovieClip Frame 2
var level_sound = new Sound(this);
level_sound.attachSound("level" + _parent.level);
level_sound.start();
level_sound.setVolume(100);
Symbol 1190 MovieClip Frame 1
function setMode() {
easy_mc.gotoAndStop("select");
hard_mc.gotoAndStop("deselect");
easy_mc.onRollOver = function () {
tip_mc.gotoAndStop("easy");
};
hard_mc.onRollOver = function () {
tip_mc.gotoAndStop("hard");
};
hard_mc.onRollOut = function () {
tip_mc.gotoAndStop("out");
};
easy_mc.onRollOut = function () {
tip_mc.gotoAndStop("out");
};
easy_mc.onRelease = function () {
this.gotoAndStop("select");
hard_mc.gotoAndStop("deselect");
mode = "easy";
};
hard_mc.onRelease = function () {
this.gotoAndStop("select");
easy_mc.gotoAndStop("deselect");
mode = "hard";
};
}
function randRange(min, max) {
var _local1 = Math.floor((Math.random() * ((max - min) + 1)) + min);
return(_local1);
}
function onFinishTween() {
var key = key_arr[0];
var fade = eval (mode + "fade_arr")[level];
var delayed = eval (mode + "delay_arr")[level];
var inttime = (delayed * 1000);
keyinterval = setInterval(tempInterval, inttime);
gs.TweenMax.to(key, fade, {_alpha:0, delay:delayed, onComplete:makeKey});
}
function tempInterval() {
currentclip.candie = true;
trace(currentclip.candie);
clearInterval(keyinterval);
}
function init() {
pointer_mc._visible = false;
gametime = 0;
sucessmeter_mc.gotoAndStop(1);
pointer_mc.gotoAndStop(1);
colorblink_mc._visible = false;
musician_mc.gotoAndStop(level);
levelbg_mc.gotoAndStop(level);
}
function startGame() {
trace("Level : " + level);
instrument = "";
correctcount = 0;
count = 0;
wrongcount = 0;
keycount = 0;
key_arr = [];
gamemode = "init";
bg_mc._width = eval (mode + "keys_arr")[level] * keyw;
xspeed = 1;
yspeed = 0.1;
curvex = 0;
angle = 0;
centery = curvemask_mc._height / 2;
range = curvemask_mc._height / 4;
intervalid = setInterval(startTimer, 1000);
curve_mc.moveTo(0, centery);
curve_mc.lineStyle(2, 16711680, 100);
Key.addListener(keyListener);
levelsound_mc.gotoAndStop(2);
errorsound_mc.gotoAndStop(2);
levvol = levelstartds;
errvol = errvol;
brightMusician("bright");
instrument = music_arr[level][count];
correctpressed = 0;
levelsound_mc.level_sound.attachSound("level" + level);
levelsound_mc.level_sound.start();
levelsound_mc.level_sound.setVolume(_parent.levelstartds);
musician_mc[instrument].gotoAndStop("play");
target = Math.floor((eval (mode + "keys_arr")[level] * per_arr[level]) / 100);
scale = Math.round(100 / eval (mode + "keys_arr")[level]);
trace((((target + "::") + scale) + "::") + (target * scale));
lightfocus_mc._visible = true;
keys_mc._x = xpos_arr[level][count];
keys_mc._y = ypos_arr[level];
trace((keys_mc._x + "::") + xpos_arr[level][count]);
if (level == 4) {
public_mc._visible = true;
} else {
public_mc._visible = false;
}
pointer_mc._visible = true;
pointer_mc.gotoAndStop(per_arr[level]);
}
function brightMusician(frame) {
var _local2 = 1;
while (_local2 < music_arr.length) {
var _local1 = 0;
while (_local1 < music_arr[level].length) {
musician_mc[music_arr[_local2][_local1]].gotoAndStop(frame);
_local1++;
}
_local2++;
}
musician_mc[instrument].gotoAndStop("play");
}
function startTimer() {
gametime++;
if (gametime == 1) {
gamemode = "playgame";
onEnterFrame = gameAnim;
keyAttach();
}
if ((gametime % sec_arr[level][count]) == 0) {
count++;
if (count == music_arr[level].length) {
count = 0;
}
instrument = music_arr[level][count];
brightMusician("bright");
}
if (sucessmeter_mc._currentframe >= pointer_mc._currentframe) {
gametime = 90;
}
if (gametime == totaltime) {
clearInterval(intervalid);
delete onEnterFrame;
if (sucessmeter_mc._currentframe >= pointer_mc._currentframe) {
if (level <= 3) {
gamemode = "levelcomplete";
} else {
gamemode = "gamecomplete";
}
} else if (level <= 3) {
gamemode = "levelover";
} else {
gamemode = "gameover";
}
gameOver();
}
}
function checkKey(pressedkey) {
if (!currentclip.candie) {
if (!currentclip.attacked) {
if (pressedkey == currentkey) {
correctpressed++;
currentclip.mark_mc.gotoAndStop("correct");
curve_mc.lineStyle(2, 65280, 100);
colorblink_mc._visible = false;
musician_mc[instrument].gotoAndStop("correct");
sucessmeter_mc.gotoAndStop(sucessmeter_mc._currentframe + scale);
trace((sucessmeter_mc._currentframe + "SS") + scale);
if (mode == "easy") {
score = score + 100;
} else {
score = score + 200;
}
correctcount++;
if (correctpressed >= 2) {
levelds = 100;
levvol = 100;
errords = 0;
} else {
levelds = 50;
errords = 50;
levvol = 50;
}
currentclip.attacked = true;
currentclip.candie = true;
} else {
wrongcount++;
currentkey = "";
attachErrorSound();
levelds = 0;
errords = 100;
curve_mc.lineStyle(2, 16711680, 100);
colorblink_mc._visible = true;
currentclip.mark_mc.gotoAndStop("incorrect");
currentclip.attacked = true;
currentclip.candie = true;
}
}
}
}
function attachErrorSound() {
levvol = 0;
errorsound_mc.error_sound.stop(errorsound);
correctpressed = 0;
errorsound = instrument;
errorsound_mc.error_sound.attachSound(errorsound);
errorsound_mc.error_sound.start();
musician_mc[instrument].gotoAndStop("play");
}
function gameOver() {
lightfocus_mc._visible = false;
curve_mc.clear();
levelsound_mc.level_sound.stop();
brightMusician("stand");
for (var all in keys_mc) {
delete keys_mc[all].removeMovieClip;
}
gotoAndStop(gamemode);
var game = eval (gamemode);
game.msg_mc.gotoAndStop(level);
}
stop();
var level = 1;
var intervalid;
var gametime;
var totaltime = 90;
var currentkey;
var instrument;
var target;
var levelstartds = 100;
var keydir_arr = ["", "left", "right", "up", "down"];
var music_arr = ["", ["guitar", "base", "drum"], ["guitar", "base", "drum", "keyboard", "drum"], ["guitar", "base", "drum", "keyboard", "rockguitar", "guitar", "rockguitar"], ["guitar", "base", "drum", "keyboard", "rockguitar", "rockpianao", "drum", "guitar"]];
var maxrange_arr = ["", [5, 8, 1], [6, 9, 1, 1, 1], [6, 10, 3, 2, 4, 6, 4], [6, 11, 3, 2, 6, 2, 3, 6]];
var sec_arr = ["", [10, 10, 10], [15, 15, 15, 15, 90], [10, 10, 10, 10, 10, 70, 90], [9, 9, 9, 9, 9, 15, 15, 15]];
var hardkeys_arr = ["", 66, 90, 110, 100];
var hardfade_arr = ["", 0.18, 0.1, 0.1, 0.1];
var harddelay_arr = ["", 1, 0.8, 0.61, 0.7];
var easykeys_arr = ["", 55, 85, 100, 90];
var easyfade_arr = ["", 0.21, 0.1, 0.1, 0.1];
var easydelay_arr = ["", 1.21, 0.86, 0.7, 0.8];
var per_arr = ["", 55, 60, 70, 80];
var xpos_arr = ["", [60, 310, 600], [56, 442, 622, 282, 622], [62, 442, 622, 222, 342, 62, 342], [22, 482, 642, 142, 382, 282, 622, 22]];
var ypos_arr = ["", 158, 186, 165, 192];
var currentclip;
var keyListener = new Object();
var angle;
var centery;
var range;
var xspeed;
var yspeed;
var bar;
var levvol = 100;
var errvol = 0;
var errords = errvol;
var errorsound;
var count = 0;
var correctpressed;
var keyw = 81.5;
var gamemode = "init";
var key_arr = new Array();
var correctcount;
var wrongcount;
var keycount;
var scale;
var keyinterval;
var score = 0;
var mode = "easy";
setMode();
keyListener.onKeyDown = function () {
if (Key.getCode() == 40) {
checkKey("down");
} else if (Key.getCode() == 38) {
checkKey("up");
} else if (Key.getCode() == 37) {
checkKey("left");
} else if (Key.getCode() == 39) {
checkKey("right");
} else {
trace("press the arrow key this is not the valid key");
}
};
keyAttach = function () {
var depth = keys_mc.getNextHighestDepth();
var key = keys_mc.attachMovie("key", "key_" + depth, depth);
keycount++;
trace((keycount + "::") + depth);
var lastkey = key_arr[key_arr.length - 1];
var randdir = randRange(1, 4);
key.gotoAndStop(randdir);
key.dir = keydir_arr[randdir];
key.attacked = false;
key.mark_mc.gotoAndStop("normal");
key.attacked = false;
key.cancurrent = true;
key.candie = false;
key._alpha = 0;
key_arr.push(key);
var fade = eval (mode + "fade_arr")[level];
trace(fade + ":::");
keys_mc._x = xpos_arr[level][count];
gs.TweenMax.to(key, fade, {_alpha:100, onComplete:onFinishTween});
if (level > 2) {
key._xscale = 80;
key._yscale = key._xscale;
}
};
makeKey = function () {
key_arr.splice(0, 1);
currentkey = "";
currentclip.removeMovieClip();
if (gametime < totaltime) {
keyAttach();
}
};
gameAnim = function () {
if (gamemode == "playgame") {
var _local3 = musician_mc[instrument]._x - lightfocus_mc._x;
var _local2 = musician_mc[instrument]._y - lightfocus_mc._y;
var _local4 = (Math.atan2(_local2, _local3) * 180) / Math.PI;
lightfocus_mc.ang = _local4;
lightfocus_mc._rotation = lightfocus_mc._rotation + ((lightfocus_mc.ang - lightfocus_mc._rotation) / 5);
curvex = curvex + xspeed;
curvey = centery + (Math.sin(angle) * range);
curvey = curve_mc.lineTo(curvex, curvey);
angle = angle + yspeed;
if (curve_mc._width <= (curvemask_mc._width * 2)) {
curve_mc._x = curve_mc._x - (xspeed / 2);
bg_mc._x = bg_mc._x - (xspeed / 2);
} else {
curve_mc._x = curve_mc._x - xspeed;
bg_mc._x = bg_mc._x - xspeed;
}
var _local5 = key_arr.length;
var _local1 = key_arr[0];
if ((_local1._alpha >= 60) && (!_local1.attacked)) {
_local1.mark_mc.gotoAndStop("blink");
if (_local1.cancurrent) {
currentclip = _local1;
currentkey = _local1.dir;
}
}
if ((!_local1.attacked) && (_local1.candie)) {
curve_mc.lineStyle(2, 16711680, 100);
_local1.mark_mc.gotoAndStop("incorrect");
colorblink_mc._visible = true;
wrongcount++;
levelds = 0;
errords = 100;
attachErrorSound();
_local1.attacked = true;
}
}
};
start_btn.onRelease = function () {
stopAllSounds();
gotoAndStop ("game");
};
Symbol 1190 MovieClip Frame 5
stop();
Symbol 1190 MovieClip Frame 15
next_btn.onRelease = function () {
level++;
stopAllSounds();
gotoAndStop ("game");
};
Symbol 1190 MovieClip Frame 25
_root._doGameOver(score, "gameover", true, 3000);
Symbol 1190 MovieClip Frame 35
_root._doGameOver(score, "gamecompleted", false, 3000);
Symbol 1190 MovieClip Frame 45
_root._doGameOver(score, "gameover", false, 3000);