Frame 3
stop();
Main.main(this);
Symbol 12 Button
on (release) {
gotoAndPlay (38);
}
Instance of Symbol 16 MovieClip "mButtonGroup" in Symbol 22 MovieClip [lib_screen_preloader] Frame 12
/* no clip actions */
Symbol 24 MovieClip [__Packages.tinymantis.GameObject] Frame 0
class tinymantis.GameObject
{
function GameObject (className) {
mClassName = className;
}
function gotoState(inState) {
if (mStateMachineMap == null) {
mStateMachineMap = new Array();
}
var _local3 = sStateMap[mClassName][inState];
if (!mStateMachineMap[_local3]) {
mStateMachineMap[_local3] = new tinymantis.StateMachine(this);
}
mStateMachineMap[_local3].setState(inState);
}
function isInState(inState) {
var _local3 = 0;
var _local4 = mStateMachineMap.length;
for ( ; _local3 < _local4 ; _local3++) {
if (mStateMachineMap[_local3].mCurrState == inState) {
return(true);
}
}
return(false);
}
function update() {
var _local2 = 0;
var _local3 = mStateMachineMap.length;
for ( ; _local2 < _local3 ; _local2++) {
if (mStateMachineMap[_local2]) {
mStateMachineMap[_local2].update();
}
}
}
static function buildStateGroup(inClassName, inStateGroup, inGroupIndex) {
if (typeof(sStateMap[inClassName]) == "undefined") {
sStateMap[inClassName] = new Object();
}
var _local5 = 0;
for ( ; _local5 < inStateGroup.length ; _local5++) {
sStateMap[inClassName][inStateGroup[_local5]] = inGroupIndex;
}
}
var mStateMachineMap = null;
var mClassName = "";
var mStateParam = null;
static var sStateMap = new Object();
}
Symbol 25 MovieClip [__Packages.tinymantis.Delegate] Frame 0
class tinymantis.Delegate
{
function Delegate () {
}
static function create(target, handler) {
var extraArgs = arguments.slice(2);
var delegate;
delegate = function () {
var _local2 = arguments.concat(extraArgs, [delegate]);
return(handler.apply(target, _local2));
};
return(delegate);
}
}
Symbol 26 MovieClip [__Packages.Screen] Frame 0
#initclip
if (!Screen) {
//(_global.Screen = function (libname, parent) {
super("Screen");
if (libname) {
this.pMovieClip = parent.attachMovie(libname, libname, parent.getNextHighestDepth());
this.pMovieClip.onEnterFrame = tinymantis.Delegate.create(this, this.update);
this.mStateParam = new Object();
this.pMovieClip._alpha = 0;
this.pMovieClip._x = Stage.width / 2;
this.pMovieClip._y = Stage.height / 2;
}
}) extends tinymantis.GameObject
var _local1 = (_global.Screen /* register */).prototype;
(_global.Screen /* register */).initStateMachine = function () {
tinymantis.GameObject.buildStateGroup("Screen", new Array("idle", "fadein", "fadeout", "flyin", "flyout", "dead", "topscore"), 0);
};
(_global.Screen /* register */).getBackground = function () {
if (_root.mBackground == undefined) {
_root.mBackground = _root.attachMovie("lib_background", "background", _root.getNextHighestDepth());
_root.mBackground.swapDepths(0);
}
return(_root.mBackground);
};
(_global.Screen /* register */).getEmptyNode = function () {
if (_root.mEmptyNode == undefined) {
_root.mEmptyNode = _root.createEmptyMovieClip("node", _root.getNextHighestDepth());
}
return(_root.mEmptyNode);
};
(_global.Screen /* register */).removeBackground = function () {
if (_root.mBackground != undefined) {
_root.mBackground.removeMovieClip();
_root.mBackground = undefined;
}
if (_root.mEmptyNode != undefined) {
_root.mEmptyNode.removeMovieClip();
_root.mEmptyNode = undefined;
}
};
_local1.__get__clip = function () {
return(this.pMovieClip);
};
_local1.__set__visible = function (vis) {
this.pMovieClip._alpha = (vis ? 100 : 0);
return(this.__get__visible());
};
_local1.fadein_update = function () {
this.pMovieClip._alpha = this.pMovieClip._alpha + 12;
if (this.pMovieClip._alpha >= 100) {
this.gotoState("idle");
}
};
_local1.fadeout_update = function () {
this.pMovieClip._alpha = this.pMovieClip._alpha - 12;
if (this.pMovieClip._alpha <= 0) {
this.gotoState("dead");
}
};
_local1.flyin_enter = function () {
this.mStateParam.end_x = Stage.width / 2;
this.mStateParam.end_y = Stage.height / 2;
this.mStateParam.start_x = this.mStateParam.end_x;
this.mStateParam.start_y = this.mStateParam.end_y + 38;
};
_local1.fly_update = function (percent) {
this.pMovieClip._x = (percent * this.mStateParam.end_x) + ((1 - percent) * this.mStateParam.start_x);
this.pMovieClip._y = (percent * this.mStateParam.end_y) + ((1 - percent) * this.mStateParam.start_y);
};
_local1.flyin_update = function () {
this.fadein_update();
this.fly_update(Math.sin(((this.pMovieClip._alpha / 100) * Math.PI) / 2));
};
_local1.flyout_enter = function () {
this.mStateParam.start_x = Stage.width / 2;
this.mStateParam.start_y = Stage.height / 2;
this.mStateParam.end_x = this.mStateParam.start_x;
this.mStateParam.end_y = this.mStateParam.start_y - 38;
};
_local1.flyout_update = function () {
this.fadeout_update();
this.fly_update(Math.sin(((1 - (this.pMovieClip._alpha / 100)) * Math.PI) / 2));
};
_local1.dead_update = function () {
this.pMovieClip.removeMovieClip();
this.pMovieClip = null;
};
_local1.addProperty("visible", function () {
}, _local1.__set__visible);
_local1.addProperty("clip", _local1.__get__clip, function () {
});
ASSetPropFlags(_local1, null, 1);
}
#endinitclip
Symbol 27 MovieClip [__Packages.PreloaderScreen] Frame 0
#initclip
if (!PreloaderScreen) {
//(_global.PreloaderScreen = function () {
super("lib_screen_preloader", Screen.getBackground());
this.pMovieClip.stop();
GSRoot.singleton.initialize();
}) extends Screen
var _local1 = (_global.PreloaderScreen /* register */).prototype;
_local1.idle_update = function () {
var _local2 = 0;
if (_root.getBytesTotal() > 0) {
_local2 = _root.getBytesLoaded() / _root.getBytesTotal();
}
if (_local2 < 1) {
var _local3 = Math.ceil(10 * _local2) + 1;
this.pMovieClip.gotoAndStop(Math.min(_local3, this.pMovieClip._currentframe + 1));
} else {
this.pMovieClip.play();
}
if (this.pMovieClip._currentframe == this.pMovieClip._totalframes) {
this.pMovieClip.stop();
_root.play();
this.gotoState("dead");
}
};
_local1.dead_enter = function () {
this.mStateParam.timer = 1;
};
_local1.dead_update = function () {
if ((--this.mStateParam.timer) < 0) {
super.dead_update();
}
};
ASSetPropFlags(_local1, null, 1);
}
#endinitclip
Symbol 28 MovieClip [__Packages.org.flashdevelop.utils.TraceLevel] Frame 0
class org.flashdevelop.utils.TraceLevel
{
function TraceLevel () {
}
static var INFO = 0;
static var DEBUG = 1;
static var WARNING = 2;
static var ERROR = 3;
static var FATAL = 4;
}
Symbol 29 MovieClip [__Packages.Preloader] Frame 0
class Preloader
{
function Preloader () {
}
static function init() {
_root.stop();
_root.onEnterFrame = init_update;
return(true);
}
static function init_update() {
_root.onEnterFrame = null;
Screen.initStateMachine();
var _local2 = new PreloaderScreen();
_local2.gotoState("flyin");
}
//ASSetPropFlags(_local1, null, 1);
static var initDone = init();
}
Symbol 30 MovieClip [__Packages.tinymantis.StateMachine] Frame 0
class tinymantis.StateMachine
{
function StateMachine (inParent) {
mParent = inParent;
}
function resetState() {
mParent[mCurrState + "_exit"]();
mCurrState = (mNextState = null);
}
function setState(inState) {
mNextState = inState;
}
function update() {
if (mNextState) {
mParent[mCurrState + "_exit"]();
mCurrState = mNextState;
mNextState = null;
mParent[mCurrState + "_enter"]();
}
if (mCurrState != null) {
mParent[mCurrState + "_update"]();
}
}
var mParent = null;
var mNextState = null;
var mCurrState = null;
}
Symbol 31 MovieClip [__Packages.org.flashdevelop.utils.FlashConnect] Frame 0
class org.flashdevelop.utils.FlashConnect
{
static var messages, movie, counter, socket, interval;
function FlashConnect () {
}
static function send(message) {
if (messages == null) {
initialize();
}
messages.push(message);
}
static function trace(message, level) {
var _local4 = createMsgNode(message, level);
send(_local4);
}
static function mtrace(message, method, path, line) {
if (path.indexOf(":") < 0) {
if (movie == undefined) {
var _local6 = _global.unescape(_level0._url).split("///");
if (_local6.length == 1) {
_local6 = _global.unescape(_level0._url).split("//");
}
if (_local6[0] == "file:") {
movie = _local6[1];
movie = movie.substr(0, movie.lastIndexOf("\\") + 1).split("|").join(":");
} else {
movie = new String("");
}
}
path = movie + path;
}
var _local7 = path.split("/").join("\\");
var _local8 = (((_local7 + ":") + line) + ":") + message;
trace(_local8, org.flashdevelop.utils.TraceLevel.DEBUG);
}
static function initialize() {
counter = 0;
messages = new Array();
socket = new XMLSocket();
socket.onData = function (data) {
org.flashdevelop.utils.FlashConnect.onReturnData(data);
};
socket.onConnect = function (success) {
if (success) {
org.flashdevelop.utils.FlashConnect.status = 1;
} else {
org.flashdevelop.utils.FlashConnect.status = -1;
}
org.flashdevelop.utils.FlashConnect.onConnection();
};
interval = _global.setInterval(sendStack, 50);
socket.connect(host, port);
}
static function createMsgNode(message, level) {
if (_global.isNaN(level)) {
level = org.flashdevelop.utils.TraceLevel.DEBUG;
}
var _local4 = new XMLNode(1, null);
var _local5 = new XMLNode(3, _global.escape(message));
_local4.attributes.state = level.toString();
_local4.attributes.cmd = "trace";
_local4.nodeName = "message";
_local4.appendChild(_local5);
return(_local4);
}
static function sendStack() {
if ((messages.length > 0) && (status == 1)) {
var _local2 = new XML();
var _local3 = _local2.createElement("flashconnect");
while (messages.length != 0) {
counter++;
if (counter > limit) {
_global.clearInterval(interval);
var _local4 = new String("FlashConnect aborted. You have reached the limit of maximum messages.");
var _local5 = createMsgNode(_local4, org.flashdevelop.utils.TraceLevel.ERROR);
_local3.appendChild(_local5);
break;
}
var _local6 = XMLNode(messages.shift());
_local3.appendChild(_local6);
}
_local2.appendChild(_local3);
socket.send(_local2);
}
}
static var status = 0;
static var limit = 1000;
static var host = "localhost";
static var port = 1978;
}
Symbol 32 MovieClip [__Packages.GSRoot] Frame 0
class GSRoot
{
static var singleton;
var isDev, mtvnGSPath;
function GSRoot () {
}
static function __get__singleton() {
if (_singleton == null) {
_singleton = new GSRoot();
}
return(_singleton);
}
function __get__isDev() {
return(_root.GSPath == null);
}
function __get__mtvnGSPath() {
if (isDev) {
return(pMtvnGSPath);
}
return(_root.GSPath + pMtvnGSPath);
}
function initialize() {
if (!isDev) {
pGameId = _global.parseInt(_root.game_id);
pSiteId = _global.parseInt(_root.site_id);
} else {
_root.game_id = pGameId;
_root.site_id = pSiteId;
}
if (!pLoaded) {
load(mtvnGSPath);
}
}
function __get__loaded() {
return(pLoaded);
}
function load(url) {
var _local3 = new Object();
_local3.onLoadInit = function (target_mc) {
GSRoot.singleton.onGSRootLoad(target_mc);
};
var _local4 = _root.createEmptyMovieClip("GSRoot_mc", _root.getNextHighestDepth());
var _local5 = new MovieClipLoader();
_local5.addListener(_local3);
var _local6 = _local5.loadClip(url, _local4);
}
function onGSRootLoad(target_mc) {
pLoaded = true;
pGameServices = new GameServices(_gameServicesCallback);
pScoreSubmit = new GSScoreSubmit(_gameServicesCallback);
pSendToFriend = new GSSendToFriend(_sendToFriendCallback);
GameServices.initGameTracking(null, false);
}
function showGSStartupInfo() {
var _local2 = GameServices.getSiteId();
var _local3 = GameServices.getSessionId();
var _local4 = pSendToFriend.getPlaybackId();
return((((((((("Loaded from " + mtvnGSPath) + "; version ") + GameServices.getVersionString()) + "\nSiteId=") + _local2) + "; SessionId=") + _local3) + "; PlaybackId=") + _local4);
}
function submitScore(initials, score, startIndex, numScores, callback) {
pScoreListCallback = callback;
GSScoreSubmit.unauthSubmitScoreGetScores(score, score, "", initials, startIndex, numScores, 0, 0);
}
function getScores(startIndex, numScores, callback) {
pScoreListCallback = callback;
GSScoreSubmit.unauthLeaderBoard(startIndex, numScores, 0, 0);
}
function _gameServicesCallback(gsResponseInfo, whichCommand) {
if (gsResponseInfo.isError()) {
} else if (gsResponseInfo.success) {
switch (whichCommand) {
case "SetUserScoreGetScores" :
case "SetUserScoreGetScoresUnauth" :
case "GetScoreRanks" :
case "GetScoreRanksUnauth" :
case "GetUserScoreRanks" :
case "GetUserRatingRanks" :
case "GetRatingRanks" :
var _local4 = new Array();
var _local5 = gsResponseInfo.results;
var _local6 = 0;
for ( ; _local6 < _local5.length ; _local6++) {
var _local7 = new Object();
_local7.name = _local5[_local6].user_name;
_local7.score = _global.parseInt(_local5[_local6].score);
_local4.push(_local7);
}
if (singleton.pScoreListCallback) {
singleton.pScoreListCallback(_local4);
}
break;
case "SetUserScoreGetRank" :
case "SetUserScoreGetRankUnauth" :
case "GetSiteUserRank" :
var _local8 = gsResponseInfo.outparams.user_rank;
break;
case "GetRegistrationStatus" :
case "UserLogin" :
var _local9 = gsResponseInfo.results[0];
GameServices.loadAvatar(1, _root, "myAvatar", _root.getNextHighestDepth());
break;
case "GetUserGameGroupExperiencePoints" :
case "GetUserGameExperiencePoints" :
case "GetUserSiteExperiencePoints" :
var _local10 = gsResponseInfo.results[0].experience_points;
}
if (whichCommand.indexOf("SetUserScore") != -1) {
}
}
}
function _sendToFriendCallback(action) {
}
//_local1.addProperty("loaded", _local1.__get__loaded, function () {
});
//_local1.addProperty("isDev", _local1.__get__isDev, function () {
});
//_local1.addProperty("mtvnGSPath", _local1.__get__mtvnGSPath, function () {
});
//(_global.GSRoot /* register */).addProperty("singleton", (_global.GSRoot /* register */).__get__singleton, function () {
});
//ASSetPropFlags(_local1, null, 1);
static var _singleton = null;
var pGameId = 6;
var pSiteId = 10;
var pUserId = 10;
var pUserName = "gameServices";
var pUserPassword = "GGXXGG";
var pMtvnGSPath = "gs1.swf";
var pSubmitUrl = "http://gs.mtv-q.mtvi.com/community.php";
var pScoreListCallback = null;
var pGameServices = null;
var pScoreSubmit = null;
var pSendToFriend = null;
var pLoaded = false;
}
Symbol 55 Button
on (release) {
gotoAndPlay (106);
}
Symbol 75 Button
on (release) {
gotoAndPlay (96);
}
Symbol 81 Button
on (release) {
gotoAndPlay (38);
}
Symbol 85 Button
on (release) {
gotoAndPlay (48);
}
Symbol 111 MovieClip Frame 23
gotoAndPlay (4);
Symbol 20480 MovieClip [__Packages.GameCamera] Frame 0
class GameCamera
{
var pX, pY, pFollowSpeed, pFocusElement, pShakePower;
function GameCamera () {
pX = (pY = 0);
pFollowSpeed = 0.5;
}
function updateElement(element) {
element.setCameraPosition(pX, pY);
}
function setFollowSpeed(speed) {
pFollowSpeed = speed;
}
function setFocus(element) {
pFocusElement = element;
}
function shake(power) {
pShakePower = power;
}
function update() {
if (pFocusElement) {
var _local2 = pFocusElement.y - (Main.HEIGHT / 2);
pY = Math.max(0, pY + ((_local2 - pY) * pFollowSpeed));
}
if (pShakePower) {
pY = pY + (pShakePower * 0.5);
pShakePower = Math.floor(pShakePower * 0.6);
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20481 MovieClip [__Packages.GameElement] Frame 0
#initclip
if (!GameElement) {
//(_global.GameElement = function (classname) {
super(classname);
this.pX = (this.pY = 0);
}) extends tinymantis.GameObject
var _local1 = (_global.GameElement /* register */).prototype;
_local1.__get__clip = function () {
return(this.pMovieClip);
};
_local1.__set__x = function (inx) {
this.pX = inx;
return(this.__get__x());
};
_local1.__set__y = function (iny) {
this.pY = iny;
return(this.__get__y());
};
_local1.__get__x = function () {
return(this.pX);
};
_local1.__get__y = function () {
return(this.pY);
};
_local1.setCameraPosition = function (inx, iny) {
this.pMovieClip._x = this.pX - inx;
this.pMovieClip._y = iny - this.pY;
};
_local1.addProperty("y", _local1.__get__y, _local1.__set__y);
_local1.addProperty("x", _local1.__get__x, _local1.__set__x);
_local1.addProperty("clip", _local1.__get__clip, function () {
});
ASSetPropFlags(_local1, null, 1);
}
#endinitclip
Symbol 20482 MovieClip [__Packages.FloatScore] Frame 0
#initclip
if (!FloatScore) {
//(_global.FloatScore = function (parent) {
super("FloatScore");
this.pMovieClip = parent.attachMovie("lib_floatscore", "floatscore" + FloatScore.spIndex, parent.getNextHighestDepth());
FloatScore.spIndex++;
this.gotoState("idle");
}) extends GameElement
var _local1 = (_global.FloatScore /* register */).prototype;
(_global.FloatScore /* register */).initStateMachine = function () {
tinymantis.GameObject.buildStateGroup("FloatScore", new Array("idle", "dead"), 0);
};
_local1.setColor = function (color) {
var _local3 = this.pMovieClip.mTextField;
_local3.textColor = color;
};
_local1.setText = function (txt, size) {
var _local4 = this.pMovieClip.mTextField;
var _local5 = _local4.getTextFormat();
_local5.size = size;
_local4.setNewTextFormat(_local5);
_local4.text = txt.toUpperCase();
_local4._y = -_local4.textHeight;
};
_local1.idle_update = function () {
if ((++this.pTimer) > 10) {
this.pMovieClip._alpha = this.pMovieClip._alpha - 8;
if (this.pMovieClip._alpha <= 0) {
this.gotoState("dead");
}
}
};
_local1.dead_update = function () {
this.pMovieClip.removeMovieClip();
this.pMovieClip = null;
};
ASSetPropFlags(_local1, null, 1);
(_global.FloatScore /* register */).spIndex = 0;
_local1.pTimer = 0;
}
#endinitclip
Symbol 20483 MovieClip [__Packages.StartupScreen] Frame 0
#initclip
if (!StartupScreen) {
//(_global.StartupScreen = function () {
super("lib_screen_startup", Screen.getBackground());
this.pOpeningSoundChannel = tinymantis.SoundManager.sSingleton.playSound("s_openingsong.wav", false);
}) extends Screen
var _local1 = (_global.StartupScreen /* register */).prototype;
_local1.onPlay = function () {
var _local2 = new GoalScreen();
_local2.gotoState("fadein");
this.gotoState("fadeout");
};
_local1.onHiscores = function () {
var _local2 = new HiscoresScreen(null, 0);
_local2.gotoState("fadein");
this.gotoState("fadeout");
};
_local1.enableButtons = function (enable) {
this.pMovieClip.mButtonGroup.mButtonPlay.enabled = enable;
this.pMovieClip.mButtonGroup.mButtonHiscores.enabled = enable;
this.pMovieClip.mButtonGroup.mButtonTakeout.enabled = enable;
};
_local1.idle_enter = function () {
this.pMovieClip.mButtonGroup.mButtonPlay.onRelease = tinymantis.Delegate.create(this, this.onPlay);
this.pMovieClip.mButtonGroup.mButtonHiscores.onRelease = tinymantis.Delegate.create(this, this.onHiscores);
};
ASSetPropFlags(_local1, null, 1);
}
#endinitclip
Symbol 20484 MovieClip [__Packages.GoalScreen] Frame 0
#initclip
if (!GoalScreen) {
//(_global.GoalScreen = function () {
super("lib_screen_goal", Screen.getBackground());
}) extends Screen
var _local1 = (_global.GoalScreen /* register */).prototype;
_local1.onNext = function () {
var _local2 = new BonusesScreen();
_local2.gotoState("fadein");
this.gotoState("fadeout");
};
_local1.idle_enter = function () {
this.pMovieClip.mButtonNext.onRelease = tinymantis.Delegate.create(this, this.onNext);
};
ASSetPropFlags(_local1, null, 1);
}
#endinitclip
Symbol 20485 MovieClip [__Packages.BonusesScreen] Frame 0
#initclip
if (!BonusesScreen) {
//(_global.BonusesScreen = function () {
super("lib_screen_bonuses", Screen.getBackground());
}) extends Screen
var _local1 = (_global.BonusesScreen /* register */).prototype;
_local1.onPlay = function () {
var _local2 = new GameScreen();
_local2.gotoState("fadein");
this.gotoState("flyout");
};
_local1.idle_enter = function () {
this.pMovieClip.mButtonPlay.onRelease = tinymantis.Delegate.create(this, this.onPlay);
};
_local1.flyout_exit = function () {
};
ASSetPropFlags(_local1, null, 1);
}
#endinitclip
Symbol 20486 MovieClip [__Packages.GameoverScreen] Frame 0
#initclip
if (!GameoverScreen) {
//(_global.GameoverScreen = function () {
super("lib_screen_gameover", Screen.getEmptyNode());
this.pMovieClip.mScoreField.text = tinymantis.Utils.presentNumber(GameScreen.singleton.getScore());
var _local3 = this.pMovieClip.mInitialField;
_local3.restrict = "A-Z";
_local3.maxChars = 3;
_local3.text = "";
}) extends Screen
var _local1 = (_global.GameoverScreen /* register */).prototype;
_local1.onNext = function () {
var _local2 = new HiscoresScreen(this.pMovieClip.mInitialField.text, GameScreen.singleton.getScore());
_local2.gotoState("fadein");
this.gotoState("fadeout");
};
_local1.idle_enter = function () {
Selection.setFocus(this.pMovieClip.mInitialField);
this.pMovieClip.mButtonNext.onRelease = tinymantis.Delegate.create(this, this.onNext);
};
ASSetPropFlags(_local1, null, 1);
}
#endinitclip
Symbol 20487 MovieClip [__Packages.tinymantis.SoundManager] Frame 0
class tinymantis.SoundManager
{
static var _sSingleton;
function SoundManager (inNumChannels) {
var _local3 = 0;
for ( ; _local3 < inNumChannels ; _local3++) {
addSound();
}
}
static function __get__sSingleton() {
if (_sSingleton == undefined) {
_sSingleton = new tinymantis.SoundManager(20);
}
return(_sSingleton);
}
function isChannelPlaying(index) {
if ((index >= 0) && (index < mSoundIsPlaying.length)) {
return(mSoundIsPlaying[index]);
}
return(false);
}
function playSound(inSoundName, loop) {
var _local4 = -1;
var _local5 = 0;
for ( ; _local5 < mSoundIsPlaying.length ; _local5++) {
if (!mSoundIsPlaying[_local5]) {
mSoundIsPlaying[_local5] = true;
_local4 = _local5;
break;
}
}
if (_local4 != -1) {
var _local6 = mSoundPool[_local4];
_local6.attachSound(inSoundName);
if (_local6 == undefined) {
throw new Error("there is no sound at index" + _local4);
}
if (loop) {
_local6.start(0, 100000);
} else {
_local6.start();
}
_local6.setVolume(100);
} else {
throw new Error("Not enough sound channels!!! Increase the number of channels");
}
return(_local4);
}
function stopSound(inIndex) {
var _local3 = mSoundPool[inIndex];
if (_local3 == undefined) {
throw new Error("there is no sound at index" + inIndex);
}
_local3.stop();
freeSound(inIndex);
return(-1);
}
function freeSound(inIndex) {
mSoundIsPlaying[inIndex] = false;
}
function setVolume(inIndex, inVolume) {
var _local4 = mSoundPool[inIndex];
if (_local4 == undefined) {
throw new Error("there is no sound at index" + inIndex);
}
_local4.setVolume(inVolume);
}
function addSound() {
var _local2 = _root.createEmptyMovieClip("sm" + mCounter, _root.getNextHighestDepth());
var _local3 = new Sound(_local2);
_local3.index = mSoundPool.length;
_local3.onSoundComplete = function () {
tinymantis.SoundManager.sSingleton.freeSound(this.index);
};
mSoundPool.push(_local3);
mSoundParentPool.push(_local2);
mSoundIsPlaying.push(false);
mCounter++;
}
var mSoundPool = new Array();
var mSoundParentPool = new Array();
var mSoundIsPlaying = new Array();
var mCounter = 100000;
}
Symbol 20488 MovieClip [__Packages.Ninja] Frame 0
#initclip
if (!Ninja) {
//(_global.Ninja = function (parent) {
super("Ninja");
this.pMovieClip = parent.attachMovie("lib_ninja", "ninja", parent.getNextHighestDepth());
this.pBodyClip = this.pMovieClip.mBody;
this.pHitarea = this.pMovieClip.mHitarea;
this.pHitarea._visible = false;
this.gotoState("idle");
this.mStateParam = new Object();
this.pX = Main.WIDTH / 2;
this.pJumpout = false;
}) extends GameElement
var _local1 = (_global.Ninja /* register */).prototype;
(_global.Ninja /* register */).initStateMachine = function () {
tinymantis.GameObject.buildStateGroup("Ninja", new Array("idle", "ready", "jump", "run", "land", "ground", "jumpout"), 0);
};
_local1.jumpout = function () {
this.pJumpout = true;
this.gotoState("jumpout");
};
_local1.onMousePress = function () {
if (this.isInState("idle") || (this.isInState("run"))) {
this.gotoState("ready");
}
};
_local1.onMouseRelease = function () {
if (this.isInState("ready")) {
this.gotoState("jump");
}
};
_local1.updateFacing = function () {
this.pBodyClip._xscale = ((this.pMovieClip._xmouse < 0) ? 100 : -100);
};
_local1.updateMouseMove = function () {
this.x = this.x + (this.pMovieClip._xmouse * 0.08);
};
_local1.__get__hitarea = function () {
return(this.pHitarea);
};
_local1.land = function (leaf) {
this.pLandLeaf = leaf;
if (this.pJumpSpeed > 0) {
this.gotoState((this.pJumpout ? "jumpout" : "jump"));
this.pBodyClip.gotoAndStop("ready");
} else {
this.gotoState("land");
this.y = this.pLandLeaf.y;
}
};
_local1.idle_enter = function () {
this.pBodyClip.gotoAndStop("idle");
};
_local1.idle_update = function () {
if (Math.abs(this.pMovieClip._xmouse) > this.pMoveThreshold) {
this.gotoState("run");
}
};
_local1.run_enter = function () {
this.pBodyClip.gotoAndStop("run");
};
_local1.run_update = function () {
if (Math.abs(this.pMovieClip._xmouse) < this.pMoveThreshold) {
this.gotoState("idle");
} else {
this.updateFacing();
}
this.x = this.x + (this.pMovieClip._xmouse * 0.1);
};
_local1.ready_enter = function () {
this.pBodyClip.gotoAndStop("ready");
this.updateFacing();
};
_local1.land_enter = function () {
this.mStateParam.land_timer = 1;
this.pBodyClip.gotoAndStop("land");
};
_local1.land_update = function () {
if ((--this.mStateParam.land_timer) < 0) {
this.gotoState((this.pJumpout ? "jumpout" : "jump"));
}
this.y = this.y + ((this.pLandLeaf.y - this.y) * 0.5);
};
_local1.jump_enter = function () {
this.pBodyClip.gotoAndStop("jump");
this.pJumpSpeed = 20;
tinymantis.SoundManager.sSingleton.playSound("ninja_jump.wav", false);
};
_local1.jump_update = function () {
var _local2 = -160;
this.pJumpSpeed = Math.max(_local2, this.pJumpSpeed - Main.GRAVITY);
this.y = this.y + this.pJumpSpeed;
if (this.pJumpSpeed < -80) {
var _local3 = (80 + this.pJumpSpeed) / (80 + _local2);
var _local4 = (_local3 * 1) + ((1 - _local3) * 0.5);
GameScreen.singleton.getCamera().setFollowSpeed(_local4);
}
if (this.pJumpSpeed <= 0) {
this.pBodyClip.gotoAndStop("fall");
}
this.updateMouseMove();
this.updateFacing();
if (this.y <= 0) {
this.y = 0;
this.gotoState("ground");
GameScreen.singleton.shakeScreen();
}
};
_local1.jumpout_enter = function () {
this.jump_enter();
this.mStateParam.camera_speed = 0.5;
this.mStateParam.speed_x = ((this.pX > (Main.WIDTH / 2)) ? -1 : 1) * 14;
this.pBodyClip._xscale = ((this.mStateParam.speed_x > 0) ? -100 : 100);
this.pJumpSpeed = this.pJumpSpeed * 1.5;
};
_local1.jumpout_update = function () {
var _local2 = -160;
this.pJumpSpeed = Math.max(_local2, this.pJumpSpeed - Main.GRAVITY);
this.y = this.y + this.pJumpSpeed;
this.mStateParam.camera_speed = Math.max(0, this.mStateParam.camera_speed - 0.025);
GameScreen.singleton.getCamera().setFollowSpeed(this.mStateParam.camera_speed);
this.x = this.x + this.mStateParam.speed_x;
};
_local1.ground_enter = function () {
this.pBodyClip.gotoAndStop("ground");
this.mStateParam.timer = 20;
tinymantis.SoundManager.sSingleton.playSound("ninja_hitground.wav", false);
};
_local1.ground_update = function () {
if ((--this.mStateParam.timer) == 0) {
GameScreen.singleton.gameover();
}
};
_local1.addProperty("hitarea", _local1.__get__hitarea, function () {
});
ASSetPropFlags(_local1, null, 1);
_local1.pMoveThreshold = 5;
_local1.pJumpSpeed = 0;
}
#endinitclip
Symbol 20489 MovieClip [__Packages.tinymantis.ScrollBar] Frame 0
class tinymantis.ScrollBar
{
var pMovieClip, iThumb, iUp, iDown, iBack, _mPreDragY, _mDragOffset, _mIndex, _mRange, _mPosition, _mCallback, _mRangeUnit;
function ScrollBar (clip) {
pMovieClip = clip;
iThumb = pMovieClip.iThumb;
iUp = pMovieClip.iUp;
iDown = pMovieClip.iDown;
iBack = pMovieClip.iBack;
iThumb.onPress = tinymantis.Delegate.create(this, thumbDown);
iThumb.onMouseMove = tinymantis.Delegate.create(this, thumbDrag);
iThumb.onRelease = tinymantis.Delegate.create(this, thumbRelease);
iThumb.onReleaseOutside = tinymantis.Delegate.create(this, thumbRelease);
iUp.onRelease = tinymantis.Delegate.create(this, up);
iDown.onRelease = tinymantis.Delegate.create(this, down);
}
function thumbDown() {
_mInDrag = true;
_mPreDragY = iThumb._y;
_mDragOffset = iThumb._y - pMovieClip._ymouse;
}
function thumbDrag() {
var _local2 = _mIndex;
var _local3 = iBack._height - iThumb._height;
if (_mInDrag) {
var _local4 = pMovieClip._ymouse + _mDragOffset;
if (_local4 < iBack._y) {
_local4 = iBack._y;
} else if (_local4 > (iBack._y + _local3)) {
_local4 = iBack._y + _local3;
}
if (_mRange != null) {
var _local5 = (_local4 - iBack._y) / _local3;
_mPosition = int(_local5 * _mRange) / _mRange;
_local4 = iBack._y + (_mPosition * _local3);
_mIndex = int(_mPosition * _mRange);
} else {
_mPosition = (_local4 - iBack._y) / _local3;
}
iThumb._y = _local4;
if ((_mIndex == null) || (_mIndex != _local2)) {
_mCallback();
}
}
}
function up() {
setPosition(_mPosition - _mRangeUnit, _mCallback);
}
function down() {
setPosition(_mPosition + _mRangeUnit, _mCallback);
}
function thumbRelease() {
_mInDrag = false;
}
function setCallback(callback) {
_mCallback = callback;
}
function onLoad() {
setPosition(0);
}
function setRange(inRange) {
_mRange = inRange - 1;
_mRangeUnit = 1 / _mRange;
}
function setPosition(inPos, callback) {
inPos = Math.max(0, Math.min(1, inPos));
var _local4 = iBack._height - iThumb._height;
_mPosition = inPos;
if (_mRange != null) {
_mPosition = Math.round(inPos * _mRange) / _mRange;
_mIndex = Math.round(_mPosition * _mRange);
}
var _local5 = _mPosition * _local4;
iThumb._y = iBack._y + _local5;
if (callback) {
callback();
}
}
function getPosition() {
return(_mPosition);
}
function getIndex() {
return(_mIndex);
}
var _mInDrag = false;
}
Symbol 20490 MovieClip [__Packages.Leaf] Frame 0
#initclip
if (!Leaf) {
//(_global.Leaf = function (type, parent) {
super("Leaf");
this.pType = type;
switch (this.pType) {
case Leaf.TYPE_LEAF :
var _local5 = "lib_leaf";
break;
case Leaf.TYPE_FEATHER :
_local5 = "lib_feather";
break;
case Leaf.TYPE_RED_FEATHER :
_local5 = "lib_red_feather";
}
var _local6 = parent.getNextHighestDepth();
this.pMovieClip = parent.attachMovie(_local5, "leaf" + _local6, _local6);
this.pMovieClip._xscale = ((Math.random() > 0.5) ? 100 : -100);
this.pHitarea = this.pMovieClip.mHitarea;
this.pHitarea._visible = false;
this.pFading = false;
this.mStateParam = new Object();
this.gotoState("idle");
}) extends GameElement
var _local1 = (_global.Leaf /* register */).prototype;
(_global.Leaf /* register */).initStateMachine = function () {
tinymantis.GameObject.buildStateGroup("Leaf", new Array("idle", "score", "dead"), 0);
};
_local1.getType = function () {
return(this.pType);
};
_local1.idle_update = function () {
this.y = this.y - Leaf.FALLING_SPEED;
if (this.pFading) {
this.pMovieClip._alpha = this.pMovieClip._alpha - 10;
if (this.pMovieClip._alpha <= 0) {
this.gotoState("dead");
}
} else if (this.y < Leaf.HEIGHT_LIMIT) {
this.pFading = true;
}
var _local2 = GameScreen.singleton.getNinja();
if (this.pHitarea.hitTest(_local2.hitarea)) {
this.gotoState("score");
_local2.land(this);
GameScreen.singleton.leafScore(this);
}
};
_local1.setCameraPosition = function (inx, iny) {
super.setCameraPosition(inx, iny);
if (iny > this.pY) {
this.pFading = true;
}
};
_local1.score_enter = function () {
this.mStateParam.oy = this.y;
this.mStateParam.speed = 16;
this.mStateParam.acc = 5;
};
_local1.score_update = function () {
if (this.mStateParam.speed > 0) {
this.y = this.y - this.mStateParam.speed;
this.mStateParam.speed = this.mStateParam.speed - this.mStateParam.acc;
} else {
this.y = this.y + ((this.mStateParam.oy - this.y) * 0.5);
}
this.pMovieClip._alpha = this.pMovieClip._alpha - 10;
if (this.pMovieClip._alpha <= 0) {
this.gotoState("dead");
}
};
_local1.dead_enter = function () {
this.pMovieClip.removeMovieClip();
this.pMovieClip = null;
};
ASSetPropFlags(_local1, null, 1);
(_global.Leaf /* register */).TYPE_LEAF = 0;
(_global.Leaf /* register */).TYPE_FEATHER = 1;
(_global.Leaf /* register */).TYPE_RED_FEATHER = 2;
(_global.Leaf /* register */).FALLING_SPEED = 1;
(_global.Leaf /* register */).HEIGHT_LIMIT = 50;
}
#endinitclip
Symbol 20491 MovieClip [__Packages.GameBackground] Frame 0
#initclip
if (!GameBackground) {
//(_global.GameBackground = function (parent) {
super("GameBackground");
this.pMovieClip = parent.createEmptyMovieClip("gamebg", parent.getNextHighestDepth());
this.pSkyloop0 = this.pMovieClip.attachMovie("lib_skyloop", "loop0", this.pMovieClip.getNextHighestDepth());
this.pSkyloop1 = this.pMovieClip.attachMovie("lib_skyloop", "loop1", this.pMovieClip.getNextHighestDepth());
this.pGround = this.pMovieClip.attachMovie("lib_background", "bg_ground", this.pMovieClip.getNextHighestDepth());
this.pGround._y = -this.pGround._height;
}) extends GameElement
var _local1 = (_global.GameBackground /* register */).prototype;
_local1.setCameraPosition = function (inx, iny) {
super.setCameraPosition(inx, iny);
var _local5 = Math.floor(Math.max(0, (iny - this.pGround._height) / this.pSkyloop0._height));
this.pSkyloop0._y = (-this.pGround._height) - (_local5 * this.pSkyloop0._height);
this.pSkyloop1._y = this.pSkyloop0._y - this.pSkyloop1._height;
};
ASSetPropFlags(_local1, null, 1);
}
#endinitclip
Symbol 20492 MovieClip [__Packages.tinymantis.Utils] Frame 0
class tinymantis.Utils
{
function Utils () {
}
static function presentNumber(num) {
var _local3 = "";
if (num > 0) {
var _local4 = "" + num;
while (true) {
if (_local4.length > 3) {
_local3 = ("," + _local4.substr(_local4.length - 3)) + _local3;
_local4 = _local4.substr(0, _local4.length - 3);
} else {
_local3 = _local4 + _local3;
break;
}
}
} else {
_local3 = "0";
}
return(_local3);
}
static function stringAddTabs(str) {
var _local3 = "";
while (true) {
if (str.length > 1) {
_local3 = ("\t" + str.substr(str.length - 1)) + _local3;
str = str.substr(0, str.length - 1);
} else {
_local3 = str + _local3;
break;
}
}
return(_local3);
}
static function setTextFieldTabs(field, interval, numdigits) {
var _local5 = new Array();
var _local6 = 0;
for ( ; _local6 < numdigits ; _local6++) {
_local5.push(interval * _local6);
}
var _local7 = field.getNewTextFormat();
_local7.tabStops = _local5;
field.setNewTextFormat(_local7);
}
}
Symbol 20493 MovieClip [__Packages.GameScreen] Frame 0
#initclip
if (!GameScreen) {
//(_global.GameScreen = function () {
super(null, null);
GameScreen.singleton = this;
this.pMovieClip = _root.createEmptyMovieClip("game", _root.getNextHighestDepth());
this.pMovieClip.onEnterFrame = tinymantis.Delegate.create(this, this.update);
this.pMovieClip._y = Main.HEIGHT;
this.pMovieClip._alpha = 0;
this.pCamera = new GameCamera();
this.pGameElements = new Array();
this.pGameElements.push(new GameBackground(this.pMovieClip));
this.pLeafNode = this.pMovieClip.createEmptyMovieClip("leaf_node", this.pMovieClip.getNextHighestDepth());
this.pNinja = new Ninja(this.pMovieClip);
this.pGameElements.push(this.pNinja);
this.pCamera.setFocus(this.pNinja);
this.pCamera.updateElement(this.pNinja);
this.pScoreNode = this.pMovieClip.createEmptyMovieClip("score_node", this.pMovieClip.getNextHighestDepth());
this.pHudScore = this.pMovieClip.attachMovie("lib_hud_score", "hud_score", this.pMovieClip.getNextHighestDepth());
this.pHudScore._x = 2;
this.pHudScore._y = (-this.pMovieClip._y) - 2;
this.pMovieClip.onPress = tinymantis.Delegate.create(this.pNinja, this.pNinja.onMousePress);
this.pMovieClip.onRelease = tinymantis.Delegate.create(this.pNinja, this.pNinja.onMouseRelease);
this.setScore(0);
this.pLeafScore = 1;
tinymantis.SoundManager.sSingleton.playSound("start_game.wav", false);
}) extends Screen
var _local1 = (_global.GameScreen /* register */).prototype;
_local1.getCamera = function () {
return(this.pCamera);
};
_local1.leafScore = function (leaf) {
var _local3 = this.createFloatScore();
_local3.x = leaf.x;
_local3.y = leaf.y;
switch (leaf.getType()) {
case Leaf.TYPE_FEATHER :
_local3.setText("double", 15);
this.setScore(this.getScore() * 2);
tinymantis.SoundManager.sSingleton.playSound("multiplier.wav", false);
break;
case Leaf.TYPE_LEAF :
this.setScore(this.getScore() + this.pLeafScore);
_local3.setText(tinymantis.Utils.presentNumber(this.pLeafScore), 19);
this.pLeafScore = this.pLeafScore + 1;
break;
case Leaf.TYPE_RED_FEATHER :
_local3.setColor(15611960);
_local3.setText("Score Penalty!\nConcentrate!", 14);
this.setScore(Math.floor(this.getScore() / 2));
tinymantis.SoundManager.sSingleton.playSound("multiplier.wav", false);
}
};
_local1.setScore = function (score) {
var _local3 = 2000000000 /* 0x77359400 */;
if (score >= _local3) {
score = _local3;
if (!this.isInState("topscore")) {
this.gotoState("topscore");
}
}
this.pScores = score;
this.pHudScore.mTextField.text = tinymantis.Utils.presentNumber(this.pScores);
};
_local1.getScore = function () {
return(this.pScores);
};
_local1.gameover = function () {
this.pMovieClip.onPress = null;
this.pMovieClip.onRelease = null;
var _local2 = new GameoverScreen();
_local2.gotoState("flyin");
};
_local1.createFloatScore = function () {
var _local2 = new FloatScore(this.pScoreNode);
this.pGameElements.push(_local2);
return(_local2);
};
_local1.getNinja = function () {
return(this.pNinja);
};
_local1.shakeScreen = function () {
this.pCamera.shake(30);
};
_local1.idle_enter = function () {
Screen.removeBackground();
this.pMovieClip.useHandCursor = false;
};
_local1.idle_update = function () {
this.pCamera.update();
var _local2 = 0;
var _local3 = 0;
for ( ; _local3 < this.pGameElements.length ; _local3++) {
var _local4 = this.pGameElements[_local3];
_local4.update();
if (_local4.clip == null) {
this.pGameElements[_local3] = this.pGameElements[this.pGameElements.length - 1];
this.pGameElements.pop();
_local3--;
}
}
var _local5 = 0;
for ( ; _local5 < this.pGameElements.length ; _local5++) {
var _local6 = this.pGameElements[_local5];
this.pCamera.updateElement(_local6);
_local2 = Math.max(_local2, _local6.y);
}
var _local7 = this.pNinja.y + Main.HEIGHT;
if (_local2 < _local7) {
var _local8 = 50;
var _local9 = (_local2 + 50) + (Math.random() * 150);
var _local10 = ((Math.random() < 0.035) ? (Leaf.TYPE_FEATHER) : (Leaf.TYPE_LEAF));
var _local11 = new Leaf(_local10, this.pLeafNode);
_local11.x = (Math.random() * (Main.WIDTH - (_local8 * 2))) + _local8;
_local11.y = _local9;
this.pCamera.updateElement(_local11);
this.pGameElements.push(_local11);
_local2 = _local9;
}
};
_local1.dead_enter = function () {
if (this.pSoundChannels) {
var _local2 = 0;
for ( ; _local2 < this.pSoundChannels.length ; _local2++) {
tinymantis.SoundManager.sSingleton.stopSound(this.pSoundChannels[_local2]);
}
this.pSoundChannels = null;
}
};
_local1.topscore_enter = function () {
var _local2 = this.pMovieClip.attachMovie("lib_game_message", "msgclip", this.pMovieClip.getNextHighestDepth());
_local2.mField.text = "You are enlightened, young Ninja!\nTop Score!";
_local2._x = (Main.WIDTH / 2) - this.pMovieClip._x;
_local2._y = ((Main.HEIGHT / 2) - _local2._height) - this.pMovieClip._y;
this.pNinja.jumpout();
this.mStateParam = new Object();
this.mStateParam.timer = 45;
};
_local1.topscore_update = function () {
this.idle_update();
if ((--this.mStateParam.timer) == 0) {
this.gameover();
} else if (this.mStateParam.timer < 0) {
this.pMovieClip.msgclip._alpha = this.pMovieClip.msgclip._alpha - 10;
if (this.pMovieClip.msgclip._alpha <= 0) {
this.pMovieClip.msgclip._visible = false;
}
}
};
ASSetPropFlags(_local1, null, 1);
}
#endinitclip
Symbol 20494 MovieClip [__Packages.HiscoresScreen] Frame 0
#initclip
if (!HiscoresScreen) {
//(_global.HiscoresScreen = function (initials, score) {
super("lib_screen_hiscores", Screen.getEmptyNode());
if (initials && (score > 0)) {
GSRoot.singleton.submitScore(initials, score, 1, 100, tinymantis.Delegate.create(this, this.onScoreList));
} else {
GSRoot.singleton.getScores(1, 100, tinymantis.Delegate.create(this, this.onScoreList));
}
this.pItemRoot = this.pMovieClip.createEmptyMovieClip("itemroot", this.pMovieClip.getNextHighestDepth());
this.pScrollBar = new tinymantis.ScrollBar(this.pMovieClip.mScrollBar);
this.pScrollBar.setPosition(0, null);
}) extends Screen
var _local1 = (_global.HiscoresScreen /* register */).prototype;
_local1.onScoreList = function (scorelist) {
var _local3 = 0;
for ( ; _local3 < scorelist.length ; _local3++) {
var _local4 = scorelist[_local3];
var _local5 = this.pItemRoot.attachMovie("lib_hiscore_item", "item" + _local3, this.pItemRoot.getNextHighestDepth());
var _local6 = _local4.name.toUpperCase();
var _local7 = 0;
for ( ; (_local7 < 3) && (_local6.length > _local7) ; _local7++) {
_local5["mNameField" + _local7].text = _local6.charAt(_local7);
}
_local5.mScoreField.text = tinymantis.Utils.presentNumber(_local4.score);
_local5._y = -73 + (_local3 * this.pItemHeight);
_local5.mRankField.text = ("" + (_local3 + 1)) + ".";
}
var _local8 = this.pMovieClip.attachMovie("lib_rect", "itemmask", this.pMovieClip.getNextHighestDepth());
_local8._width = Main.WIDTH;
_local8._height = 10 * this.pItemHeight;
_local8._x = (-Main.WIDTH) / 2;
_local8._y = -73;
this.pItemRoot.setMask(_local8);
this.pScrollBar.setRange(scorelist.length - 9);
this.pScrollBar.setCallback(tinymantis.Delegate.create(this, this.onScrollBar));
};
_local1.onScrollBar = function () {
this.pItemRoot._y = (-this.pScrollBar.getIndex()) * this.pItemHeight;
};
_local1.onPlay = function () {
this.gotoState("flyout");
GameScreen.singleton.gotoState("fadeout");
Screen.getBackground();
};
_local1.idle_enter = function () {
this.pMovieClip.mButtonPlay.onRelease = tinymantis.Delegate.create(this, this.onPlay);
};
_local1.flyout_exit = function () {
Screen.removeBackground();
var _local2 = new StartupScreen();
_local2.gotoState("flyin");
};
ASSetPropFlags(_local1, null, 1);
_local1.pItemHeight = 15.5;
}
#endinitclip
Symbol 20495 MovieClip [__Packages.Main] Frame 0
class Main
{
function Main () {
}
static function main() {
Button.prototype.onRollOver = onButtonRollover;
Button.prototype.onPress = onButtonDown;
FloatScore.initStateMachine();
Screen.initStateMachine();
Ninja.initStateMachine();
Leaf.initStateMachine();
var _local2 = new StartupScreen();
_local2.gotoState("idle");
_local2.visible = true;
playMusicLoop();
}
static function onButtonRollover() {
tinymantis.SoundManager.sSingleton.playSound("button_mouseover.wav", false);
}
static function onButtonDown() {
tinymantis.SoundManager.sSingleton.playSound("button_mousedown.wav", false);
}
static function playMusicLoop() {
var _local2 = new Array();
_local2.push(tinymantis.SoundManager.sSingleton.playSound("backgroundloop.wav", true));
_local2.push(tinymantis.SoundManager.sSingleton.playSound("backgroundloop2.wav", true));
return(_local2);
}
//ASSetPropFlags(_local1, null, 1);
static var WIDTH = 400;
static var HEIGHT = 400;
static var GRAVITY = 1;
}