STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/76810645?noj=FRM76810645-22DC" width="1" height="1"></div>

Cannon Man.swf

This is the info page for
Flash #135935

(Click the ID number above for more basic data on this flash file.)


Text
Play

Instructions

Controls

YOUR BEST DISTANCE WAS

GAME OVER!

oh dear....

TRY AGAIN!

SUBMIT SCORE?

NICE!

WOW THAT'S FAR!

HEY YOU'RE NOT AN
ASTRONAUT!

MAGNABALL is
being released!
GET READY!

OH DEAR.....

NOT GOOD, BUT NOT BAD!

TOTAL BALL CONTROL!

Time Bonus:

ORBS BONUS:

TOTAL SCORE:

PAUSED!

$

00000

00000

BEST:

RESTART

RESTART

DISTANCE:

MUSIC ON

MUSIC OFF

$50

Cost: 10
Range: 10
Damage:1
0

Force Field

0

Instructions

Help Cannon man fly further
then ever before!
HIS CANNON IS NOT WORKING
WELL SO BE CAREFUL HOW YOU
AIM IT!

Back

CONTROLS

Click the mouse once to point
the cannon, click again to get
good power, then sit back and
see how far cannon man can fly!

Loading Distances

copyright 2008 Phil Maxey Visuals by Michelle Maxey

Cann   n Man

o

MUSIC ON

MUSIC OFF

ActionScript [AS1/AS2]

Frame 1
_global.ipb_get_gname = function () { var _local4 = _root._url; var _local5 = ""; var _local2 = ""; var _local6 = _local4.lastIndexOf("\\") + 1; if ((_local6 == -1) || (_local6 == 0)) { _local6 = _local4.lastIndexOf("/") + 1; } var _local3 = _local6; var _local7 = String(_local4).length; while (_local3 < String(_local4).length) { _local2 = _local4.charAt(_local3); if (_local2 == ".") { break; } _local5 = _local5 + _local2; _local3++; } return(_local5); }; ipb_gname = _global.ipb_get_gname(); xx = new LoadVars(); xx.onLoad = function (success) { if (success) { _global.ipb_scoreVar = this.scoreVar; } }; fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt"; xx.load(fname);
Frame 2
sounds = new Object(); sounds.fire = new Sound(); sounds.fire.attachSound("Missile"); sounds.fireMissile = new Sound(); sounds.fireMissile.attachSound("Missile"); sounds.boing = new Sound(); sounds.boing.attachSound("boing"); musicObject = new Sound(this.createEmptyMovieClip("snd", 1000)); musicObject.attachSound("music"); sounds.doh = new Sound(); sounds.doh.attachSound("doh"); sounds.cheer = new Sound(); sounds.cheer.attachSound("cheer"); sounds.ExtraEnergy = new Sound(); sounds.ExtraEnergy.attachSound("GainBonus"); sounds.Artillery = new Sound(); sounds.Artillery.attachSound("Artillery"); sounds.Computer = new Sound(); sounds.Computer.attachSound("Computer"); sounds.LevelDefender = new Sound(); sounds.LevelDefender.attachSound("LevelDefender"); sounds.GameOverRobot = new Sound(); sounds.GameOverRobot.attachSound("GameOverRobot"); sounds.Appear = new Sound(); sounds.Appear.attachSound("Appear"); sounds.LoseEnergy = new Sound(); sounds.LoseEnergy.attachSound("ExUnderwaterShort"); musicObject.start(0, 1000); function setupGame() { Game = new GameGame(gameMc, this, 736, 576, 138, 32, startLives); Presentation = new GamePresentation(this); Presentation.setupSplashScreen(splashScreenElements); this.onEnterFrame = mainLoop; } function runSounds() { if (soundFade == "out") { soundFadeControl = soundFadeControl - 2; musicObject.setVolume(soundFadeControl); if (soundFadeControl == 0) { soundSwitch = "off"; soundFade = "done"; } } else if (soundFade == "in") { soundFadeControl = soundFadeControl + 2; musicObject.setVolume(soundFadeControl); if (soundFadeControl >= 50) { soundSwitch = "on"; soundFade = "done"; } } } function mainLoop() { runSounds(); if (Game.gameState == "setup") { Player.mC.TurretMc.play(); Game.deleteMeter(); Presentation.splashScreenMc.removeMovieClip(); obj.vx = 0; obj.vy = 0; Background = new GameBackground(this, xLevelStart, yLevelStart, 8, Game.levelWidth, Game.levelHeight); Game.lives = startLives; Player = new GamePlayer(Game.playerMc, this, 100, 2540); Game.score = 0; Game.setLives(); Game.setScore(); Game.gameState = "pre_start"; } else if (Game.gameState == "restart") { Player.mC.TurretMc.play(); Player.cannonMan.removeMovieClip(); Game.score = 0; Game.setScore(); Background.xPos = xLevelStart; Background.yPos = yLevelStart; Game.gameState = "pre_start"; } else if (Game.gameState == "game_over_restart") { Presentation.setupSplashScreen(splashScreenElements); Background.backgroundMc.removeMovieClip(); Player.cannonMan.removeMovieClip(); Game.gameState = "waiting_to_start"; } else if (Game.gameState == "pre_start") { Game.mainLoop(); Player.mainLoop(); Background.mainLoop(); } else if (Game.gameState == "start_game") { Game.mainLoop(); } else if (Game.gameState == "play") { Game.mainLoop(); Background.mainLoop(); } } function setupGoodGuy(mCName, xStart, yStart, grav, rg) { var goodGuyMc = Game.inGameObjectsMc.attachMovie(mCName, "gg" + Game.numberOfDropped, Game.numberOfDropped); var sp = Useful1.RandomNumber(5, 10); sp = sp / 10; Game.goodGuysArray.push(new GoodGuy(goodGuyMc, this, xStart, yStart, sp, mCName, grav, rg)); } function setupPickups() { var iy = 0; while (iy < Game.levelHeightBlocks) { var ix = 0; while (ix < Game.levelWidthBlocks) { var ind = ((iy * Game.levelWidthBlocks) + ix); if ((iy == 0) or (iy == (Game.levelHeightBlocks - 3))) { squareNamesArray[ind] = "edgeSquare"; } else if ((ix == 0) or (ix == (Game.levelWidthBlocks - 1))) { squareNamesArray[ind] = "edgeSquare"; } else { squareNamesArray[ind] = "square"; } ix++; } iy++; } } function setupPanel() { ix = 0; iy = 0; ii = 0; var i = 0; while (i < gameObjectNames.length) { var addd = Game.inGameStatsMc.ingamestatsmc; addd = addd.wg; trace(addd._name); addd = addd["w" + (i + 1)]; trace(addd._name); addd = addd.wb; trace(addd._name); Game.rightPanelGameObjects[i] = addd; Game.rightPanelGameObjects[i].indexA = i; Game.rightPanelGameObjects[i].gameObjectBtn.onRelease = clickRightPanelObject; Game.rightPanelGameObjects[i].gameObjectBtn.onRollOver = rollOverRightPanelObject; Game.rightPanelGameObjects[i].gameObjectBtn.onRollOut = rollOutRightPanelObject; i++; } } function clickRightPanelObject() { trace(this._parent.indexA); Game.currentPickedUp = mousePointer.attachMovie(rightPanelGameObjectNames[this._parent.indexA], "pickedup", 1); if (gameObjectRange[this._parent.indexA] != 0) { rangeCircle = mousePointer.attachMovie(gameObjectRange[this._parent.indexA], "range", 0); rangeCircle._x = rangeCircle._x + (blockSize / 2); rangeCircle._y = rangeCircle._y + (blockSize / 2); } else { removeMovieClip(rangeCircle); } Game.currentPickedUp.indexA = this._parent.indexA; } function rollOverRightPanelObject() { trace("roll over"); } function rollOutRightPanelObject() { trace("roll out"); } function dropGameObject() { var xx = _xmouse; var yy = _ymouse; if (Game.currentPickedUp != undefined) { if (checkIfOverLapping() == true) { var topBit = 0; trace(Game.currentPickedUp.indexA); var costOfGameObject = gameObjectCost[Game.currentPickedUp.indexA]; var money2 = Game.score; money2 = money2 - costOfGameObject; if (money2 >= 0) { setupGoodGuy("magnet1", xx, yy, 0.7, 100); if (rt.gameObjectNames[currentPickedUp.indexA] != "magnet") { } Game.numberOfDropped++; } } } } function checkIfOverLapping() { if ((_xmouse > (736 - blockSize)) or (_xmouse < blockSize)) { return(false); } return(true); } var gameMc = this.createEmptyMovieClip("gameMc", 0); var Useful1 = new Useful(); var scrollOff = 0; var startReal = true; var Game; var Presentation; var Player; var Background; var Wave; var SoundClass; var parallaxLayersNames = new Array(); obj = {x:ball._x, y:ball._y, vx:3, vy:0}; var xLevelStart = 0; var yLevelStart = -2100; var ballMc; var squareNamesArray = new Array(); var mousePointer = this.attachMovie("crosshair", "crosshair", 50); mousePointer.yOld = 0; var titleInfo = {mCName:"title", xPos:75, yPos:30}; var playInfo = {mCName:"playBtnAnim", xPos:380, yPos:150}; var instructionsInfo = {mCName:"instructionsBtnAnim", xPos:270, yPos:220}; var controlsInfo = {mCName:"controlsBtnAnim", xPos:290, yPos:250}; var highscoresInfo = {mCName:"highscoresBtnAnim", xPos:270, yPos:315}; var SplashMusicBtn = {mCName:"SplashMusicBtn", xPos:490, yPos:358}; var splashScreenElements = [titleInfo, playInfo, instructionsInfo, controlsInfo, highscoresInfo, SplashMusicBtn]; var startLives = 3000; mousePointer.onEnterFrame = function () { this._x = _xmouse; yOld = this._y; this._y = _ymouse; }; this.onMouseUp = function () { mouseButton = 0; if (Game.gameState == "play") { obj.clip.guy.gotoAndStop(1); Player.gliding = 0; } }; this.onMouseDown = function () { mouseButton = 1; if (_root._ymouse < 500) { if (Game.gameState == "start_game") { Game.deleteMeter(); Player.fireGun(); } else if (Game.gameState == "pre_start") { Player.mC.TurretMc.stop(); Game.gameState = "start_game"; Game.setupMeter(); } else if (Game.gameState == "play") { } } }; var soundControl = 1; var soundFade; var soundFadeControl = 100; soundMc.soundBtn.onRelease = function () { if (soundControl == 0) { soundControl = 1; soundFade = "in"; soundMc.soundControlMc.gotoAndStop(1); } else { soundControl = 0; soundFade = "out"; soundMc.soundControlMc.gotoAndStop(2); } }; var soundSwitch = "on"; var rightPanelGameObjectNames = new Array("gameObject4", "gameObject3", "gameObject1", "gameObject2", "gameObject5", "gameObject1", "gameObject1", "gameObject1", "gameObject1"); var gameObjectNames = new Array("moneyDrop", "manWithBat", "tower1", "redTurret", "blueTurret", "spaceMine", "blueForceField", "towerBase", "towerBase", "towerBase", "towerBase"); var gameObjectCost = Array(1, 10, 20, 15, 5, 4, 3, 2, 1); var gameObjectRange = Array("shortRangeCircle", "longRangeCircle", 0, 0, 0, 0, 0, 0); setupGame(); setupPanel(); var blockSize = 32; stop();
Symbol 436 MovieClip Frame 1
if (yy.savescore == 1) { if (ipb_score == undefined) { ipb_score = eval (_global.ipb_scoreVar); } xx = new LoadVars(); xx.arcadegid = _root.ibpro_gameid; xx.gscore = ipb_score; xx.gname = _global.ipb_get_gname(); xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2; xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST"); stop(); } _global.ipbSend = function (ipb_score) { _root._visible = false; _root.enabled = false; xx = new LoadVars(); yy = new LoadVars(); xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST"); };
Symbol 46 MovieClip [M_stars1] Frame 15
this.removeMovieClip();
Symbol 47 MovieClip [starAnim] Frame 1
i = 1; heart.onEnterFrame = function () { if (_currentframe != 13) { myMovie = heart.duplicateMovieClip("heart" + i, i); myMovie._rotation = Math.random() * 360; myMovie._xscale = scale; myMovie._yscale = scale; scale = (Math.random() * 80) + 20; i++; } };
Symbol 47 MovieClip [starAnim] Frame 24
this.removeMovieClip(); stop();
Symbol 77 MovieClip [gameOverMsgAnim] Frame 88
_parent._parent._parent._parent._parent.Game.gameState = "game_over_restart"; stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 82 Button
on (release) { _parent._parent.play(); }
Symbol 85 Button
on (release) { gotoAndStop ("submitScore"); }
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 4
play();
Symbol 89 MovieClip Frame 65
_parent._parent.play(); stop();
Symbol 89 MovieClip Frame 66
function moveOn() { _root.micro = _parent._parent._parent._parent._parent._parent._parent.Game.score; _global.ipbSend(); } mochi.MochiScores.showLeaderboard({boardID:"", score:_parent._parent._parent._parent._parent._parent._parent.Game.score, onClose:moveOn, onError:moveOn}); stop();
Symbol 91 MovieClip [loseLifeMsgAnim] Frame 10
stop();
Symbol 91 MovieClip [loseLifeMsgAnim] Frame 22
if (_parent._parent._parent._parent._parent.Game.gameState != "restart") { _parent._parent._parent._parent._parent.Game.gameState = "restart"; } this.removeMovieClip();
Symbol 97 MovieClip [getReadyMsgAnim] Frame 46
_parent._parent._parent._parent._parent.Game.gameState = "start_game"; this.removeMovieClip();
Symbol 110 MovieClip [levelCompleteMsgs] Frame 1
stop();
Symbol 112 MovieClip [levelCompleteMsgAnim] Frame 15
msg.titleMc.gotoAndStop(howWellDone);
Symbol 112 MovieClip [levelCompleteMsgAnim] Frame 31
_parent._parent._parent._parent._parent.Game.gameState = "display_bonus"; stop();
Symbol 112 MovieClip [levelCompleteMsgAnim] Frame 81
_parent._parent._parent._parent._parent.Game.gameState = "start_new_level"; stop();
Symbol 116 MovieClip [pausedMsgAnim] Frame 33
stop();
Symbol 116 MovieClip [pausedMsgAnim] Frame 42
this.removeMovieClip();
Symbol 137 MovieClip [CannonManRoll] Frame 1
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 143 MovieClip [bullet] Frame 1
stop();
Symbol 149 MovieClip Frame 256
_parent.myObject.mCDeath();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 13
myObject.fireNow();
Symbol 201 MovieClip Frame 1
stop();
Symbol 207 MovieClip [mainface] Frame 1
stop();
Symbol 211 MovieClip [goldLostAnim] Frame 16
this.removeMovieClip();
Symbol 216 MovieClip [square] Frame 1
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 258 MovieClip [man with pistol anim] Frame 1
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 345 Button
on (release) { gotoAndStop (1); }
Symbol 350 Button
on (release) { mochi.MochiScores.closeLeaderboard(); gotoAndStop (1); }
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
stop();
Symbol 351 MovieClip Frame 4
function moveOn() { if (this._currentframe == 4) { gotoAndStop (1); } } var leaderBoardMc = this.createEmptyMovieClip("leaderBoard", 1); leaderBoardMc._x = -340; leaderBoardMc._y = -280; mochi.MochiScores.showLeaderboard({boardID:"82a0c2163cad0b29", clip:leaderBoardMc, onClose:moveOn});
Symbol 389 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 1
stop();
Instance of Symbol 389 MovieClip in Symbol 410 MovieClip [bgIsland] Frame 1
onClipEvent (load) { d = _parent._parent._parent.RandomNumber(10, 100); } onClipEvent (enterFrame) { if (_currentframe == 1) { d--; if (d == 0) { d = _parent._parent._parent.RandomNumber(10, 150); play(); } } }
Instance of Symbol 392 MovieClip in Symbol 410 MovieClip [bgIsland] Frame 1
onClipEvent (load) { d = _parent._parent._parent.RandomNumber(10, 100); } onClipEvent (enterFrame) { if (_currentframe == 1) { d--; if (d == 0) { d = _parent._parent._parent.RandomNumber(10, 150); play(); } } }
Instance of Symbol 395 MovieClip in Symbol 410 MovieClip [bgIsland] Frame 1
onClipEvent (load) { d = _parent._parent._parent.RandomNumber(10, 100); } onClipEvent (enterFrame) { if (_currentframe == 1) { d--; if (d == 0) { d = _parent._parent._parent.RandomNumber(10, 150); play(); } } }
Instance of Symbol 389 MovieClip in Symbol 418 MovieClip [backgroundDesertToBeach] Frame 1
onClipEvent (load) { d = _parent._parent._parent.RandomNumber(10, 100); } onClipEvent (enterFrame) { if (_currentframe == 1) { d--; if (d == 0) { d = _parent._parent._parent.RandomNumber(10, 150); play(); } } }
Instance of Symbol 392 MovieClip in Symbol 418 MovieClip [backgroundDesertToBeach] Frame 1
onClipEvent (load) { d = _parent._parent._parent.RandomNumber(10, 100); } onClipEvent (enterFrame) { if (_currentframe == 1) { d--; if (d == 0) { d = _parent._parent._parent.RandomNumber(10, 150); play(); } } }
Instance of Symbol 395 MovieClip in Symbol 418 MovieClip [backgroundDesertToBeach] Frame 1
onClipEvent (load) { d = _parent._parent._parent.RandomNumber(10, 100); } onClipEvent (enterFrame) { if (_currentframe == 1) { d--; if (d == 0) { d = _parent._parent._parent.RandomNumber(10, 150); play(); } } }
Symbol 421 MovieClip Frame 1
stop();
Symbol 423 MovieClip [SplashMusicBtn] Frame 1
musicBtn.onRelease = function () { if (musicMc._currentframe == 1) { this._parent._parent._parent._parent._parent.soundFade = "out"; musicMc.gotoAndStop(2); } else { this._parent._parent._parent._parent._parent.soundFade = "in"; musicMc.gotoAndStop(1); } };
Symbol 424 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores { static var boardID, onClose, onError; function MochiScores () { } static function setBoardID(boardID) { mochi.MochiScores.boardID = boardID; mochi.MochiServices.send("scores_setBoardID", {boardID:boardID}); } static function showLeaderboard(options) { if (options.clip != null) { if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) { mochi.MochiServices.disconnect(); mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip); } delete options.clip; } if (options.name != null) { if (typeof(options.name) == "object") { if (options.name.text != undefined) { options.name = options.name.text; } } } if (options.score != null) { if (typeof(options.score) == "object") { if (options.score.text != undefined) { options.score = options.score.text; } } } if (options.onDisplay != null) { options.onDisplay(); } else { mochi.MochiServices.__get__clip().stop(); } if (options.onClose != null) { onClose = options.onClose; } else { onClose = function () { mochi.MochiServices.__get__clip().play(); }; } if (options.onError != null) { onError = options.onError; } else { onError = onClose; } if (options.boardID == null) { if (boardID != null) { options.boardID = boardID; } } mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose); } static function closeLeaderboard() { mochi.MochiServices.send("scores_closeLeaderboard"); } static function getPlayerInfo(callbackObj, callbackMethod) { mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod); } static function submit(score, name, callbackObj, callbackMethod) { mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod); } static function requestList(callbackObj, callbackMethod) { mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod); } static function scoresArrayToObjects(scores) { var so = {}; var i; var j; var o; var row_obj; for (var item in scores) { if (typeof(scores[item]) == "object") { if ((scores[item].cols != null) && (scores[item].rows != null)) { so[item] = []; o = scores[item]; j = 0; while (j < o.rows.length) { row_obj = {}; i = 0; while (i < o.cols.length) { row_obj[o.cols[i]] = o.rows[j][i]; i++; } so[item].push(row_obj); j++; } } else { so[item] = {}; for (var param in scores[item]) { so[item][param] = scores[item][param]; } } } else { so[item] = scores[item]; } } return(so); } static function doClose(args) { if (args.error == true) { if (args.errorCode == undefined) { args.errorCode = "IOError"; } onError.apply(null, [args.errorCode]); } else { onClose.apply(); } } }
Symbol 425 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices { static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel; function MochiServices () { } static function get id() { return(_id); } static function get clip() { return(_container); } static function get childClip() { return(_clip); } static function getVersion() { return("1.31"); } static function allowDomains(server) { var hostname = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(hostname); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(hostname); } } return(hostname); } static function get isNetworkAvailable() { if (System.security) { var o = System.security; if (o.sandboxType == "localWithFile") { return(false); } } return(true); } static function set comChannelName(val) { if (val != undefined) { if (val.length > 3) { _sendChannelName = val + "_fromgame"; _rcvChannelName = val; initComChannels(); } } //return(__get__comChannelName()); } static function get connected() { return(_connected); } static function connect(id, clip, onError) { if ((!_connected) && (_clip == undefined)) { trace("MochiServices Connecting..."); _connecting = true; init(id, clip); } if (onError != undefined) { mochi.MochiServices.onError = onError; } else if (mochi.MochiServices.onError == undefined) { mochi.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } static function disconnect() { if (_connected || (_connecting)) { _connecting = (_connected = false); flush(true); if (_clip != undefined) { _clip.removeMovieClip(); delete _clip; } _listenChannel.close(); _rcvChannel.close(); } } static function init(id, clip) { _id = id; if (clip != undefined) { _container = clip; } else { _container = _root; } loadCommunicator(id, _container); } static function loadCommunicator(id, clip) { var clipname = ("_mochiservices_com_" + id); if (_clip != null) { return(_clip); } if (!isNetworkAvailable) { return(null); } allowDomains(_gatewayURL); _clip = clip.createEmptyMovieClip(clipname, 10336, false); _loader = new MovieClipLoader(); if (_loaderListener.waitInterval != null) { clearInterval(_loaderListener.waitInterval); } _loaderListener = {}; _loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) { trace("MochiServices could not load."); mochi.MochiServices.disconnect(); mochi.MochiServices.onError.apply(null, [errorCode]); }; _loaderListener.onLoadStart = function (target_mc) { this.isLoading = true; }; _loaderListener.startTime = getTimer(); _loaderListener.wait = function () { if ((getTimer() - this.startTime) > 10000) { if (!this.isLoading) { mochi.MochiServices.disconnect(); mochi.MochiServices.onError.apply(null, ["IOError"]); } clearInterval(this.waitInterval); } }; _loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000); _loader.addListener(_loaderListener); _loader.loadClip(_gatewayURL, _clip); _sendChannel = new LocalConnection(); _sendChannel._queue = []; _rcvChannel = new LocalConnection(); _rcvChannel.allowDomain = function (d) { return(true); }; _rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain; _rcvChannel._nextcallbackID = 0; _rcvChannel._callbacks = {}; listen(); return(_clip); } static function onStatus(infoObject) { if (!(infoObject.level === "error")) { } else { _connected = false; _listenChannel.connect(_listenChannelName); } } static function listen() { _listenChannel = new LocalConnection(); _listenChannel.handshake = function (args) { mochi.MochiServices.__set__comChannelName(args.newChannel); }; _listenChannel.allowDomain = function (d) { return(true); }; _listenChannel.allowInsecureDomain = _listenChannel.allowDomain; _listenChannel.connect(_listenChannelName); trace("Waiting for MochiAds services to connect..."); } static function initComChannels() { if (!_connected) { _sendChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()}); _rcvChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; _rcvChannel.onReceive = function (pkg) { var cb = pkg.callbackID; var cblst = this._callbacks[cb]; if (!cblst) { return(undefined); } var method = cblst.callbackMethod; var obj = cblst.callbackObject; if (obj && (typeof(method) == "string")) { method = obj[method]; } if (method != undefined) { method.apply(obj, pkg.args); } delete this._callbacks[cb]; }; _rcvChannel.onError = function () { mochi.MochiServices.onError.apply(null, ["IOError"]); }; _rcvChannel.connect(_rcvChannelName); trace("connected!"); _connecting = false; _connected = true; _listenChannel.close(); while (_sendChannel._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift()); } } } static function flush(error) { var request; var callback; while (_sendChannel._queue.length > 0) { request = _sendChannel._queue.shift(); delete callback; if (request.callbackID != null) { callback = _rcvChannel._callbacks[request.callbackID]; } delete _rcvChannel._callbacks[request.callbackID]; if (error) { handleError(request.args, callback.callbackObject, callback.callbackMethod); } } } static function handleError(args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ["NotConnected"]); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = "NotConnected"; if ((callbackObject != null) && (typeof(callbackMethod) == "string")) { callbackObject[callbackMethod](args); } else if (callbackMethod != null) { callbackMethod.apply(args); } } } static function send(methodName, args, callbackObject, callbackMethod) { if (_connected) { _sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID}); } else { if ((_clip == undefined) || (!_connecting)) { onError.apply(null, ["NotConnected"]); handleError(args, callbackObject, callbackMethod); flush(true); return(undefined); } _sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID}); } _rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod}; _rcvChannel._nextcallbackID++; } static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf"; static var _listenChannelName = "__mochiservices"; static var _connecting = false; static var _connected = false; }
Symbol 426 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd { function MochiAd () { } static function getVersion() { return("2.2"); } static function showPreGameAd(options) { var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }}; options = _parseOptions(options, DEFAULTS); var clip = options.clip; var ad_msec = 11000; var ad_timeout = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var wh = _getRes(options); var w = wh[0]; var h = wh[1]; mc._x = w * 0.5; mc._y = h * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk._x = w * -0.5; chk._y = h * -0.5; var bar = chk.createEmptyMovieClip("_mochiad_bar", 4); bar._x = 10; bar._y = h - 20; var bar_color = options.color; delete options.color; var bar_background = options.background; delete options.background; var bar_outline = options.outline; delete options.outline; var backing = bar.createEmptyMovieClip("_outline", 1); backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo(w - 20, 0); backing.lineTo(w - 20, 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); var inside = bar.createEmptyMovieClip("_inside", 2); inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo(w - 20, 0); inside.lineTo(w - 20, 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside._xscale = 0; var outline = bar.createEmptyMovieClip("_outline", 3); outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo(w - 20, 0); outline.lineTo(w - 20, 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (p > 0) { this._parent._alpha = p; } else { var _clip = this._parent._parent; MochiAd.unload(_clip); delete this.onEnterFrame; } }; mc.lc.adLoaded = function (width, height) { }; mc.lc.adjustProgress = function (msec) { var _chk = this.mc._mochiad_wait; _chk.server_control = true; _chk.started = getTimer(); _chk.ad_msec = msec; }; chk.onEnterFrame = function () { var _clip = this._parent._parent; var ad_clip = this._parent._mochiad_ctr; var elapsed = (getTimer() - this.started); var finished = false; var clip_total = _clip.getBytesTotal(); var clip_loaded = _clip.getBytesLoaded(); var clip_pcnt = ((100 * clip_loaded) / clip_total); var ad_pcnt = ((100 * elapsed) / chk.ad_msec); var _inside = this._mochiad_bar._inside; var pcnt = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt)); pcnt = Math.max(this.last_pcnt, pcnt); this.last_pcnt = pcnt; _inside._xscale = pcnt; if (!chk.showing) { var total = ad_clip.getBytesTotal(); if ((total > 0) || (typeof(total) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (elapsed > chk.ad_timeout) { finished = true; } } if (elapsed > chk.ad_msec) { finished = true; } if (((clip_total > 0) && (clip_loaded >= clip_total)) && (finished)) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; } static function showInterLevelAd(options) { var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }}; options = _parseOptions(options, DEFAULTS); var clip = options.clip; var ad_msec = 11000; var ad_timeout = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var wh = _getRes(options); var w = wh[0]; var h = wh[1]; mc._x = w * 0.5; mc._y = h * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (p > 0) { this._parent._alpha = p; } else { var _clip = this._parent._parent; MochiAd.unload(_clip); delete this.onEnterFrame; } }; mc.lc.adLoaded = function (width, height) { }; mc.lc.adjustProgress = function (msec) { var _chk = this.mc._mochiad_wait; _chk.server_control = true; _chk.started = getTimer(); _chk.ad_msec = msec - 250; }; chk.onEnterFrame = function () { var ad_clip = this._parent._mochiad_ctr; var elapsed = (getTimer() - this.started); var finished = false; if (!chk.showing) { var total = ad_clip.getBytesTotal(); if ((total > 0) || (typeof(total) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (elapsed > chk.ad_timeout) { finished = true; } } if (elapsed > chk.ad_msec) { finished = true; } if (finished) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; } static function showTimedAd(options) { showInterLevelAd(options); } static function showPreloaderAd(options) { showPreGameAd(options); } static function _allowDomains(server) { var hostname = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(hostname); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(hostname); } } return(hostname); } static function _loadCommunicator(options) { var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"}; options = _parseOptions(options, DEFAULTS); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var clip = options.clip; var clipname = ("_mochiad_com_" + options.id); if (!_isNetworkAvailable()) { return(null); } if (clip[clipname]) { return(clip[clipname].lc); } var server = (options.com_server + options.id); _allowDomains(server); delete options.id; delete options.com_server; var depth = options.depth; delete options.depth; var mc = clip.createEmptyMovieClip(clipname, depth); var lv = mc.createEmptyMovieClip("_mochiad_com", 1); for (var k in options) { lv[k] = options[k]; } var lc = new LocalConnection(); var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); lc.mc = mc; lc.name = name; lc.allowDomain = function (d) { return(true); }; lc.allowInsecureDomain = lc.allowDomain; lc.connect(name); mc.lc = lc; lv.lc = name; lc._id = 0; lc._queue = []; lc.rpcResult = function (cb_arg) { var cb = parseInt(cb_arg); var cblst = this._callbacks[cb]; if (!cblst) { return(undefined); } delete this._callbacks[cb]; var args = []; var i = 2; while (i < cblst.length) { args.push(cblst[i]); i++; } var i = 1; while (i < arguments.length) { args.push(arguments[i]); i++; } var method = cblst[1]; var obj = cblst[0]; if (obj && (typeof(method) == "string")) { method = obj[method]; } if (method) { method.apply(obj, args); } }; lc._didConnect = function (endpoint) { this._endpoint = endpoint; var q = this._queue; delete this._queue; var ds = this.doSend; var i = 0; while (i < q.length) { var item = q[i]; ds.apply(this, item); i++; } }; lc.doSend = function (args, cbobj, cbfn) { if (this._endpoint == null) { var qargs = []; var i = 0; while (i < arguments.length) { qargs.push(arguments[i]); i++; } this._queue.push(qargs); return(undefined); } this._id = this._id + 1; var id = this._id; if ((cbfn === undefined) || (cbfn === null)) { cbfn = cbobj; } this._callbacks[id] = [cbobj, cbfn]; var slc = new LocalConnection(); var ss = slc.send(this._endpoint, "rpc", id, args); }; lc._callbacks = {}; lc._callbacks[0] = [lc, "_didConnect"]; lv.st = getTimer(); lv.loadMovie(server + ".swf", "POST"); return(lc); } static function fetchHighScores(options, callbackObj, callbackMethod) { var lc = _loadCommunicator({id:options.id}); if (!lc) { return(false); } var fncall = ["fetchHighScores", options]; lc.doSend(["fetchHighScores", options], callbackObj, callbackMethod); return(true); } static function sendHighScore(options, callbackObj, callbackMethod) { var lc = _loadCommunicator({id:options.id}); if (!lc) { return(false); } var fncall = ["sendHighScore", options]; lc.doSend(["sendHighScore", options], callbackObj, callbackMethod); return(true); } static function load(options) { var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = _parseOptions(options, DEFAULTS); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var clip = options.clip; if (!_isNetworkAvailable()) { return(null); } if (clip._mochiad_loaded) { return(null); } var depth = options.depth; delete options.depth; var mc = clip.createEmptyMovieClip("_mochiad", depth); var wh = _getRes(options); options.res = (wh[0] + "x") + wh[1]; options.server = options.server + options.id; delete options.id; clip._mochiad_loaded = true; var lv = mc.createEmptyMovieClip("_mochiad_ctr", 1); for (var k in options) { lv[k] = options[k]; } var server = lv.server; delete lv.server; var hostname = _allowDomains(server); mc.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var lc = new LocalConnection(); var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); lc.mc = mc; lc.name = name; lc.hostname = hostname; lc.allowDomain = function (d) { return(true); }; lc.allowInsecureDomain = lc.allowDomain; lc.connect(name); mc.lc = lc; lv.lc = name; lv.st = getTimer(); lv.loadMovie(server + ".swf", "POST"); return(mc); } static function unload(clip) { if (typeof(clip) == "undefined") { clip = _root; } if (clip.clip && (clip.clip._mochiad)) { clip = clip.clip; } if (!clip._mochiad) { return(false); } clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return(true); } static function _isNetworkAvailable() { if (System.security) { var o = System.security; if (o.sandboxType == "localWithFile") { return(false); } } return(true); } static function _getRes(options) { var b = options.clip.getBounds(); var w = 0; var h = 0; if (typeof(options.res) != "undefined") { var xy = options.res.split("x"); w = parseFloat(xy[0]); h = parseFloat(xy[1]); } else { w = b.xMax - b.xMin; h = b.yMax - b.yMin; } if ((w == 0) || (h == 0)) { w = Stage.width; h = Stage.height; } return([w, h]); } static function _parseOptions(options, defaults) { var optcopy = {}; for (var k in defaults) { optcopy[k] = defaults[k]; } if (options) { for (var k in options) { optcopy[k] = options[k]; } } if (_root.mochiad_options) { var pairs = _root.mochiad_options.split("&"); var i = 0; while (i < pairs.length) { var kv = pairs[i].split("="); optcopy[unescape(kv[0])] = unescape(kv[1]); i++; } } if (optcopy.id == "test") { trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); } return(optcopy); } }
Symbol 427 MovieClip [__Packages.GamePlayer] Frame 0
class GamePlayer { var missileDistFromGun, root, shotsFired, shotsLimit, numberOfMissiles, scrollSpeed, keypress, jumpTime, mouseButton, gliding, mC, shotStrength, angleDir, cannonMan; function GamePlayer (clip, rt, xStart, yStart) { missileDistFromGun = 80; xOrigin = xStart; yOrigin = yStart; dx = 0; root = rt; dy = 0; angle = 100; shotsFired = 0; shotsLimit = 2; xPos = 0; yPos = 0; xVel = 0; yVel = 0; xVelOld = 0; numberOfMissiles = 0; yVelOld = 0; scrollSpeed = 10; keypress = 0; jump = 0; jumpTime = 10; mouseButton = 0; gliding = 0; mC = clip; shotStrength = 6; angleDir = 4; var gun = mC.attachMovie("Turret", "TurretMc", 1); updatePosition(); } function mainLoop() { if (root.startReal == true) { angle = mC.TurretMc.gun._rotation; var ang = ((angle * Math.PI) / 180); xVel = Math.cos(ang); yVel = Math.sin(ang); } else { var temp = root.Useful1.localToGlobalXY(mC); dy = temp.newY - _root.mousePointer._y; dx = temp.newX - _root.mousePointer._x; angle = Math.atan2(dy, dx); mC.TurretMc.gun._rotation = (angle * 180) / Math.PI; xVel = Math.cos(angle); yVel = Math.sin(angle); } } function fireGun() { mC.TurretMc.gun.g5.cannon.myObject = this; mC.TurretMc.gun.g5.cannon.play(); root.Game.gameState = "play"; } function fireNow() { root.Game.cannonManFlying = 1; root.sounds.fire.start(0, 1); var missileName = "bullet"; cannonMan = root.Game.ballMc.attachMovie(missileName, "man", 1); root.obj.clip = cannonMan; var cannonManShadow = root.Game.inGameMissilesMc.attachMovie("cannonManShadow", "manShadow", 200); root.obj.shadowMc = cannonManShadow; var endOfGunX = (-(xVel * missileDistFromGun)); var endOfGunY = (-(yVel * missileDistFromGun)); root.obj.x = mC._x + endOfGunX; root.obj.y = mC._y + endOfGunY; root.obj.y = root.obj.y + root.Background.yPos; root.obj.y = root.obj.y - 40; var ss = (shotStrength / 2); root.obj.vx = -(xVel * ss); root.obj.vy = -(yVel * ss); root.Game.yeehawStart = 10; } function updatePosition() { var oldX = mC._x; var oldY = mC._y; mC._x = xOrigin + xPos; mC._y = yOrigin + yPos; } var xOrigin = 0; var yOrigin = 0; var xPos = 0; var yPos = 0; var s = 0; var playerleft = 0; var playerright = 0; var jump = 0; var moveplayerup = 0; var playerdown = 0; var playerup = 0; var Oldplayerup = 0; var Oldplayerdown = 0; var Oldplayerright = 0; var Oldplayerleft = 0; var xVel = 0; var yVel = 0; var xVelOld = 0; var yVelOld = 0; var santaspeed = 2; var multidirectional = 0; var dx = 0; var dy = 0; var angle = 0; }
Symbol 428 MovieClip [__Packages.Game] Frame 0
class Game { var root, startGame, money, energy; function Game (m, e, rt) { root = rt; startGame = 0; money = m; energy = e; } function increaseMoney(increase) { money = money + increase; } function decreaseMoney(decrease) { money = money - decrease; } function increaseEnergy(increase) { energy = energy - increase; if (energy <= 0) { energy = 0; } } function decreaseEnergy(decrease) { energy = energy - decrease; if (energy <= 0) { startGame = 0; root._parent.gotoAndStop("gameOver"); } } }
Symbol 429 MovieClip [__Packages.GoodGuy] Frame 0
class GoodGuy { var root, mC, range, arrayIndex, hits, gravity, delayToFire, gotGold, energyBarOn, xDir, target, homing, ringDrop, movingCloser, spriteType, goldMc, energyMc; function GoodGuy (clip, rt, xStart, yStart, sp, st, grav, rg) { root = rt; mC = clip; range = rg; arrayIndex = 0; hits = 0; gravity = grav; xOrigin = xStart; yOrigin = yStart; xOrigin = xOrigin - (root.Background.xOrigin + root.Background.xPos); yOrigin = yOrigin - (root.Background.yOrigin + root.Background.yPos); xPos = 0; yPos = 0; xVel = 0; yVel = 0; delayToFire = 30; angle = 0.2; gotGold = 0; energyBarOn = 0; degrees = 0; radius = 255; centerX = root.movieWidth / 2; centerY = root.movieHeight / 2; speed = sp; xDir = 1; target = undefined; numberOfMissiles = 0; energyStart = 100; energy = energyStart; homing = 0; ringDrop = 20; movingCloser = 0; delayToFire = 50; spriteType = st; updatePosition(); } function applyGravity() { yVel = yVel + 1; } function main(index1, index2) { if (spriteType == "man") { fireMissile(); moveEnemy(); checkForTurret(); } else if (spriteType == "turret") { applyGravity(); groundCollision(); fireMissile(); } updatePosition(); } function fireMissile() { if (target == undefined) { target = root.Game.findTarget(); } var dx = (mC._x - target.mC._x); var dy = ((mC._y - 60) - target.mC._y); var angle2 = Math.atan2(dy, dx); mC.gun._rotation = (angle2 * 180) / Math.PI; delayToFire--; if (delayToFire == 0) { delayToFire = 100; var missileName = "bullet"; var mc = root.Game.inGameMissilesMc.attachMovie(missileName, "missile" + numberOfMissiles, numberOfMissiles); var r = ((angle * 180) / Math.PI); mc._rotation = r + 180; numberOfMissiles++; var missileDistFromGun = 40; trace(mC._x); trace(mC._y); root.Game.missilesArray.push(new Missile2(mc, mC._x, mC._y, root, missileName)); } } function checkForTurret() { if (gotGold == 0) { if (mC.m.hitTest(root.playerMc)) { gotGold = 1; goldMc = mC.attachMovie("bagOfGold", "g", 1); goldMc._y = -10; changeDirection(); } } } function groundCollision() { var yVel2 = yVel; var yVel3 = yVel; if (yVel3 < 0) { yVel3 = (yVel3 - yVel3) - yVel3; } var xm = (mC._x + root.Background.mC._x); var ym = (mC._y + root.Background.mC._y); var i = 0; while (i < int(yVel3)) { if (root.Game.inGameBackgroundMc.hitTest(xm, ym + i, true)) { trace("hit"); break; } i++; } trace(i); yVel = yVel - int(yVel2); yVel = i + yVel; } function moveEnemy() { var yVel2 = yVel; var yVel3 = yVel; if (yVel3 < 0) { yVel3 = (yVel3 - yVel3) - yVel3; } var xm = (mC._x + root.Background.mC._x); var ym = (mC._y + root.Background.mC._y); var i = 0; while (i < int(yVel3)) { if (root.Game.inGameBackgroundMc.hitTest(xm, ym + i, true)) { trace("hit"); break; } i++; } trace(i); yVel = yVel - int(yVel2); yVel = i + yVel; xVel = xDir * speed; updatePosition(); var xm = (mC._x + root.Background.mC._x); var ym = (mC._y + root.Background.mC._y); if (root.Game.inGameBackgroundMc.hitTest(xm, ym + i, true)) { var hit = 0; var i = 0; while (i < 10) { yPos--; mC._x = xOrigin + xPos; mC._y = yOrigin + yPos; if (root.Game.inGameBackgroundMc.hitTest(mC._x + root.scrollIndexX, mC._y, true) == false) { trace("free"); hit = 1; break; } i++; } if (hit == 0) { changeDirection(); } } if (xPos > 1000) { xDir = -1; } else if (xPos < -180) { xDir = 1; if (gotGold == 1) { root.Game.grabMoney(this); } } if (xVel > 0) { mC._xscale = -100; } else { mC._xscale = 100; } } function changeDirection() { if (xDir < 0) { xDir = 1; } else { xDir = -1; } } function decreaseEnergy() { energy = energy - 10; if (energyBarOn == 0) { energyBarOn = 1; energyMc = mC.attachMovie("energyBar2", "energyBar" + root.scoreIndex, root.scoreIndex + 12000); energyMc.enemy = this; } energyMc._x = 0; energyMc._y = -35; var e = (energy / 10); trace(energyMc._name); energyMc.bar.bar._y = int(10 - e); if (energy <= 0) { if (gotGold == 1) { var sticky = root.inGameBackMc.attachMovie("goldLostAnim", "goldFound" + root.lostGold, root.lostGold); sticky.g.g.text = "+1"; root.Game.increaseMoney(); var x1 = ((root.inGameBackMc._x - root.inGameBackMc._x) - root.inGameBackMc._x); sticky._x = mC._x + x1; sticky._y = mC._y - root.inGameBackMc._y; sticky._x + 340; trace(sticky._x); trace(sticky._y); } remove(); } } function remove(i, i3) { var i = 0; while (i < root.enemyArray.length) { if (this == root.enemyArray[i]) { arrayIndex = i; } i++; } mC.removeMovieClip(); root.enemyArray.splice(i, 1); } function updatePosition() { xPos = xPos + xVel; yPos = yPos + yVel; mC._x = xOrigin + xPos; mC._y = yOrigin + yPos; } var xOrigin = 0; var yOrigin = 0; var xPos = 0; var yPos = 0; var xVel = 0; var yVel = 0; var angle = 0; var degrees = 0; var centerX = 0; var centerY = 0; var radius = 0; var speed = 0; var cost = 0; var playerleft = 0; var playerright = 0; var gameObjectType = ""; var energyStart = 0; var energy = 0; var delayToFireMissile = 60; var numberOfMissiles = 0; }
Symbol 430 MovieClip [__Packages.Missile2] Frame 0
class Missile2 { var root, mC, mType, velocities, arrayIndex; function Missile2 (clip, xStart, yStart, rt, type, xv, yv) { root = rt; xOrigin = xStart; yOrigin = yStart - 60; xPos = 0; yPos = 0; xVel = 1; yVel = 0; mC = clip; mType = type; var tarX = root.Game.enemyArray[0].mC._x; var tarY = root.Game.enemyArray[0].mC._y; velocities = root.Useful.getArcVelocity(0, 10, xOrigin, yOrigin, tarX, tarY); xVel = -(xv * 20); yVel = -(yv * 20); updatePosition(); } function missileControl(ii) { updatePosition(); applyGravity(); } function checkForBug() { var bugDist = root.getDistance(mC, root.home); if (bugDist > 680) { remove(); } } function createRock() { var mc = root.rocksMc.attachMovie("rock", "rock" + root.rocksNumber, root.rocksNumber); root.rocksNumber++; mc._x = mC._x; mc._y = mC._y; root.deadSporesArray.push(mc); } function mCDeath() { var explosion = root.Game.inGameExplosionsMc.attachMovie("explosion", "explosion" + root.scoreIndex, root.scoreIndex); explosion._x = mC._x; explosion._y = mC._y; remove(); return(undefined); } function plotSticky(xx, yy) { var sticky = root.inGameBackMc.attachMovie("StickyProjectile", "sticky" + root.stickies, root.stickies); var x1 = ((root.inGameBackMc._x - root.inGameBackMc._x) - root.inGameBackMc._x); sticky._x = mC._x + x1; sticky._y = yy - root.inGameBackMc._y; root.stickies++; root.stickysArray.push(new Sticky(root, mC._x, mC._y, sticky)); } function collisionDetection() { if (yVel > 0) { var yVel2 = yVel; var yVel3 = yVel; if (yVel3 < 0) { yVel3 = (yVel3 - yVel3) - yVel3; } var hit = false; var yHit = 0; var i = 0; while (i < int(yVel3)) { var xm = (mC._x + root.Background.mC._x); var ym = (mC._y + root.Background.mC._y); if (root.Game.inGameBackgroundMc.hitTest(xm, ym + i, true)) { mCDeath(); hit = true; yHit = i; i = int(yVel3); } i++; } if (hit == true) { yVel = yVel - int(yVel2); yVel = yHit + yVel; } } var i = 0; while (i < root.enemyArray.length) { if (mC.hitTest(root.enemyArray[i].mC)) { root.enemyArray[i].decreaseEnergy(); mCDeath(); } i++; } } function remove() { var i1 = 0; while (i1 < root.missilesArray.length) { if (this == root.missilesArray[i1]) { arrayIndex = i1; } i1++; } mC.removeMovieClip(); root.missilesArray.splice(arrayIndex, 1); root.Player.shotsFired--; if (root.Player.shotsFired < 0) { root.Player.shotsFired = 0; } } function checkForOffStage(ii) { if (mC._x < 0) { remove(); } if (mC._y < 0) { remove(); } if (mC._x > root.Game.movieWidth) { remove(); } if (mC._y > 170) { remove(); } } function applyGravity() { yVel = yVel + 1; } function updatePosition() { xPos = xPos + xVel; yPos = yPos + yVel; var oldX = mC._x; var oldY = mC._y; mC._x = xOrigin + xPos; mC._y = yOrigin + yPos; var dx = (mC._x - oldX); var dy = (mC._y - oldY); var angle2 = Math.atan2(dy, dx); mC._rotation = (angle2 * 180) / Math.PI; trace("missile y"); trace(mC._y); } var xOrigin = 0; var yOrigin = 0; var xPos = 0; var yPos = 0; var xVel = 0; var yVel = 0; }
Symbol 431 MovieClip [__Packages.Sticky] Frame 0
class Sticky { var root, mC, arrayIndex; function Sticky (rt, xStart, yStart, clip) { root = rt; xOrigin = xStart; yOrigin = yStart; xPos = 0; yPos = 0; xVel = 0; yVel = 0; mC = clip; mC.myObject = this; } function main() { applyGravity(); collisionDetection(); updatePosition(); } function mCDeath() { remove(); return(undefined); } function collisionDetection() { if (yVel > 0) { trace("sticky"); var yVel2 = yVel; var yVel3 = yVel; if (yVel3 < 0) { yVel3 = (yVel3 - yVel3) - yVel3; } var hit = false; var yHit = 0; trace(mC._x); trace(mC._y); trace(root.inGameBackMc._x); trace(root.inGameBackMc._y); trace(xOrigin); trace(yOrigin); var x1 = ((root.inGameBackMc._x - root.inGameBackMc._x) - root.inGameBackMc._x); var xx = (xOrigin + x1); var obg = new Object(); obg.x1 = mC._x; obg.y1 = mC._y; root.inGameBackMc.localToGlobal(obg.x1, obg.y1); var i = 0; while (i < int(yVel3)) { var xm = (mC._x + root.inGameBackMc._x); xm = xm + root.scrollIndexX; var ym = ((mC._y = mC._y + root.inGameBackMc._y)); ym = ym + 10; if (root.inGameBackMc.hitTest(xm, ym + i, true)) { hit = true; yHit = i; i = int(yVel3); } i++; } if (hit == true) { trace("yHit"); trace(yHit); yVel = yVel - int(yVel2); yVel = yHit + yVel; } } } function remove() { var i = 0; while (i < root.stickysArray.length) { if (this == root.stickysArray[i]) { arrayIndex = i; } i++; } mC.removeMovieClip(); root.stickysArray.splice(arrayIndex, 1); } function applyGravity() { yVel = yVel + 16; } function updatePosition() { xPos = xPos + xVel; yPos = yPos + yVel; var oldX = mC._x; var oldY = mC._y; var x1 = ((root.inGameBackMc._x - root.inGameBackMc._x) - root.inGameBackMc._x); var xx = (xOrigin + x1); var yy = (yOrigin - root.inGameBackMc._y); mC._x = xx + xPos; mC._y = yy + yPos; } var xOrigin = 0; var yOrigin = 0; var xPos = 0; var yPos = 0; var xVel = 0; var yVel = 0; }
Symbol 432 MovieClip [__Packages.GamePresentation] Frame 0
class GamePresentation { var rt, mC, splashScreenMc, elementMc, btnType, myObject; function GamePresentation (rt2) { rt = rt2; mC = rt.Game.presentationMc; } function setupSplashScreen(elementsPositions) { splashScreenMc = mC.attachMovie("SplashScreen", "splashscreenmc", 1); var i = 0; while (i < elementsPositions.length) { var info = elementsPositions[i]; elementMc = splashScreenMc.attachMovie(info.mCName, info.mCName, i); elementMc._x = info.xPos; elementMc._y = info.yPos; if (info.mCName != "title") { elementMc.btn.btnType = info.mCName; elementMc.btn.splashScreenMc = splashScreenMc; elementMc.btn.myObject = this; elementMc.btn.onRelease = clickRightSplashSceenBtn; elementMc.btn.onRollOver = rollOverSplashSceenBtn; elementMc.btn.onRollOut = rollOutSplashSceenBtn; } i++; } } function clickRightSplashSceenBtn() { if (btnType == "playBtnAnim") { myObject.rt.Game.gameState = "setup"; mochi.MochiScores.closeLeaderboard(); } else if (btnType == "instructionsBtnAnim") { splashScreenMc.screens.gotoAndStop("showinstructions"); mochi.MochiScores.closeLeaderboard(); } else if (btnType == "controlsBtnAnim") { splashScreenMc.screens.gotoAndStop("showcontrols"); mochi.MochiScores.closeLeaderboard(); } else if (btnType == "highscoresBtnAnim") { if (splashScreenMc._currentframe != 4) { splashScreenMc.screens.gotoAndStop("showhighscores"); } } } function rollOverSplashSceenBtn() { if (btnType == "playBtnAnim") { } else if (btnType == "instructionsBtnAnim") { } else if (btnType == "controlsBtnAnim") { } else if (btnType == "highscoresBtnAnim") { } } function rollOutSplashSceenBtn() { if (btnType == "playBtnAnim") { } else if (btnType == "instructionsBtnAnim") { } else if (btnType == "controlsBtnAnim") { } else if (btnType == "highscoresBtnAnim") { } } function RandomNumber(x, y) { return(Math.round(Math.random() * (y - x)) + x); } function getArcVelocity(gravity, speed, xStart, yStart, xEnd, yEnd) { var velocities = new Object(); var xd = (xEnd - xStart); var yd = (yEnd - yStart); var dist = Math.sqrt((xd * xd) + (yd * yd)); var steps = Math.ceil(dist / speed); velocities.gravity = gravity; velocities.steps = steps; velocities.xStep = xd / steps; velocities.yStep = yd / steps; if (gravity > 0) { velocities.yStep = velocities.yStep - ((steps * gravity) / 2); } return(velocities); } function localToGlobalXY(mc1) { var temp = new Object(); temp.newX = 0; temp.newY = 0; var clip = mc1; while (clip != _root) { var xs = (temp.newX * (clip._xscale / 100)); var ys = (temp.newY * (clip._yscale / 100)); var r = (clip._rotation * (Math.PI/180)); temp.newX = (xs * Math.cos(r)) - (ys * Math.sin(r)); temp.newY = (xs * Math.sin(r)) + (ys * Math.cos(r)); temp.newX = temp.newX + clip._x; temp.newY = temp.newY + clip._y; clip = clip._parent; } return(temp); } function radian(degree) { return((Math.PI/180) * degree); } function addThrust(rot, speed) { var thrustVectors = new Object(); thrustVectors.xVel = Math.cos(radian(rot)) * speed; thrustVectors.yVel = Math.sin(radian(rot)) * speed; return(thrustVectors); } }
Symbol 433 MovieClip [__Packages.GameGame] Frame 0
class GameGame { var mC, rt, movieWidth, yeehawStart, movieHeight, blockSize, levelWidthBlocks, levelHeightBlocks, levelWidth, levelHeight, gameState, lostGold, inGameMc, presentationMc, inGameActionMc, inGameStatsMc, inGameContainerMc, ballMc, inGameMsgsMc, playerMc, inGameBackgroundParallaxMc, inGameBackgroundMc, inGameEnemyMc, inGameMissilesMc, inGameExplosionsMc, inGameScoreMc, inGameObjectsMc, missilesArray, enemyArray, goodGuysArray, targetArray, numberOfDropped, rightPanelGameObjects, gameObjects, backgroundSquaresArray, currentPickedUp, score, bestScore, starAnimDelay, lives, meterLevel, meterLevelSpeed, gameStartDelay, meterLevelDir, bounceCount, imflyingStart, xMidway, yMidway, starTrails, cannonManFlying, powerMeter, msgMc; function GameGame (mc, rt2, sw, sh, levelW, levelH, startLives) { mC = mc; rt = rt2; movieWidth = sw; yeehawStart = 0; movieHeight = sh; blockSize = 32; levelWidthBlocks = levelW; levelHeightBlocks = levelH; levelWidth = levelWidthBlocks * blockSize; levelHeight = levelHeightBlocks * blockSize; gameState = "loading"; lostGold = 0; inGameMc = mC.createEmptyMovieClip("inGameMc", 0); presentationMc = mC.createEmptyMovieClip("presentationMc", 1); inGameActionMc = inGameMc.createEmptyMovieClip("inGameActionMc", 0); inGameStatsMc = inGameMc.createEmptyMovieClip("inGameStatsMc", 1); inGameContainerMc = inGameActionMc.createEmptyMovieClip("inGameBackgroundMc", 9); ballMc = inGameActionMc.createEmptyMovieClip("cannonman", 10); inGameMsgsMc = inGameActionMc.createEmptyMovieClip("cannonman", 11); playerMc = inGameContainerMc.createEmptyMovieClip("player", 6); inGameBackgroundParallaxMc = inGameActionMc.createEmptyMovieClip("inGameBackgroundParallaxMc2", 0); inGameBackgroundMc = inGameContainerMc.createEmptyMovieClip("inGameBackgroundMc", 0); inGameEnemyMc = inGameContainerMc.createEmptyMovieClip("inGameEnemysMc", 1); inGameMissilesMc = inGameContainerMc.createEmptyMovieClip("inGameMissilesMc", 2); inGameExplosionsMc = inGameContainerMc.createEmptyMovieClip("inGameExplosionsMc", 3); inGameScoreMc = inGameContainerMc.createEmptyMovieClip("inGameScoresMc", 4); inGameObjectsMc = inGameContainerMc.createEmptyMovieClip("inGameObjectsMc", 5); missilesArray = new Array(); enemyArray = new Array(); goodGuysArray = new Array(); targetArray = new Array(); numberOfDropped = 0; rightPanelGameObjects = new Array(); gameObjects = new Array(); backgroundSquaresArray = new Array(); currentPickedUp = undefined; score = 0; bestScore = 0; starAnimDelay = 4; lives = startLives; meterLevel = 0; meterLevelSpeed = 20; gameStartDelay = 20; meterLevelDir = meterLevelSpeed; bounceCount = 0; imflyingStart = 0; xMidway = 0; yMidway = 0; starTrails = 0; cannonManFlying = 0; setupPanel(); } function setupPanel() { var statsMc = inGameStatsMc.attachMovie("weapons", "ingamestatsmc", 1); statsMc._y = movieHeight - (blockSize * 2); var addd = statsMc.wg; addd = addd.stats; addd.musicBtn.myObject = this; addd.musicBtn.myMc = addd; addd.quitBtn.myObject = this; if (rt.soundSwitch == "off") { addd.musicBtn._parent.music.gotoAndStop(2); } addd.musicBtn.onRelease = function () { if (this.myMc.music._currentframe == 1) { this.myObject.rt.soundFade = "out"; this.myMc.music.gotoAndStop("off"); } else { this.myObject.rt.soundFade = "in"; this.myMc.music.gotoAndStop("on"); } }; addd.quitBtn.onRelease = function () { this.myObject.rt.Game.gameStartDelay = 10; this.myObject.rt.Game.deleteMeter(); this.myObject.rt.Game.cannonManFlying = 0; this.myObject.rt.obj.vx = 0; this.myObject.rt.obj.vy = 0; this.myObject.rt.obj.clip._rotation = 0; this.myObject.rt.Game.msgMc.removeMovieClip(); this.myObject.rt.obj.shadowMc.removeMovieClip(); this.myObject.rt.Game.gameState = "restart"; }; } function deleteMeter() { powerMeter.removeMovieClip(); } function displayMeter() { rt.mousePointer.attachMovie("shotStrengthMeter", "meter", 2); } function setupMeter() { powerMeter = playerMc.attachMovie("shotStrengthMeter", "meter", 2); } function gameOver(hitTop) { yeehawStart = 0; imflyingStart = 0; if (gameState == "play") { gameStartDelay = 10; cannonManFlying = 0; lives--; rt.obj.vx = 0; rt.obj.vy = 0; rt.obj.clip._rotation = 0; setLives(); if (score > bestScore) { bestScore = score; setBest(); } if (lives == 0) { gameState = "game_over"; msgMc = inGameMsgsMc.attachMovie("gameOverMsgAnim", "gameover", 1); msgMc._x = movieWidth / 2; msgMc._y = movieHeight / 2; msgMc.m.msg.score.text = bestScore; } else { gameState = "lose_life"; msgMc = inGameMsgsMc.attachMovie("loseLifeMsgAnim", "loselife", 1); msgMc._x = movieWidth / 2; msgMc._y = movieHeight / 2; if (hitTop == true) { msgMc.m.msg.gotoAndPlay("notastro"); rt.obj.clip.gotoAndStop(1); rt.sounds.doh.start(0, 1); } else if (hitTop == false) { if (score < 1000) { msgMc.m.msg.gotoAndStop("bad"); rt.obj.clip.gotoAndStop(3); rt.sounds.doh.start(0, 1); } else if (score < 10000) { msgMc.m.msg.gotoAndStop("ok"); rt.sounds.cheer.start(0, 1); rt.obj.clip.gotoAndStop(4); } else if (score < 35000) { rt.obj.clip.gotoAndStop(4); rt.sounds.cheer.start(0, 1); msgMc.m.msg.gotoAndStop("good"); } else { rt.obj.clip.gotoAndStop(4); rt.sounds.cheer.start(0, 1); msgMc.m.msg.gotoAndStop("good"); } } } } } function scrollX() { var xDiff = (rt.obj.x - xMidway); rt.obj.x = xMidway; rt.Background.xVel = xDiff; var amountNotScrolled = rt.Background.scrollBackgroundH(); if (amountNotScrolled != xDiff) { var ballToMove = amountNotScrolled; rt.obj.x = rt.obj.x - ballToMove; } } function scrollY() { var yDiff = (rt.obj.y - yMidway); trace("ydiff"); trace(yDiff); rt.obj.y = yMidway; trace(rt.obj.y); rt.Background.yVel = yDiff; var amountNotScrolled = rt.Background.scrollBackgroundV(); if (amountNotScrolled != yDiff) { var ballToMove = amountNotScrolled; rt.obj.y = rt.obj.y - ballToMove; } } function mainLoop() { var i = 0; while (i < missilesArray.length) { missilesArray[i].missileControl(i); i++; } var i = 0; while (i < enemyArray.length) { enemyArray[i].main(i); i++; } if (gameState == "start_game") { rt.Player.shotStrength = -powerMeter.level._y; } if (gameState == "play") { doStarTrail(); if (rt.obj.vy != 0) { if (rt.Player.gliding == 0) { rt.obj.vy = rt.obj.vy + 0.2; } else { rt.obj.vy = rt.obj.vy + 0.01; } xMidway = movieWidth / 2; var xOld = rt.obj.x; var yOld = rt.obj.y; if (rt.obj.vx > 0) { if (rt.obj.x == xMidway) { rt.obj.x = rt.obj.x + rt.obj.vx; if (rt.obj.x > xMidway) { scrollX(); } } else if (rt.obj.x < xMidway) { rt.obj.x = rt.obj.x + rt.obj.vx; if (rt.obj.x > xMidway) { scrollX(); } } else if (rt.obj.x > xMidway) { rt.obj.x = rt.obj.x + rt.obj.vx; if (rt.obj.x > 800) { gameOver(false); } } } else if (rt.obj.vx < 0) { if (rt.obj.x == xMidway) { rt.obj.x = rt.obj.x + rt.obj.vx; if (rt.obj.x < xMidway) { scrollX(); } } else if (rt.obj.x < xMidway) { rt.obj.x = rt.obj.x + rt.obj.vx; if (rt.obj.x < 0) { gameOver(false); } } else if (rt.obj.x > xMidway) { rt.obj.x = rt.obj.x + rt.obj.vx; if (rt.obj.x < xMidway) { scrollX(); } } } yMidway = movieHeight / 2; trace("ymidway"); trace(yMidway); if (rt.obj.vy > 0) { if (rt.obj.y == yMidway) { rt.obj.y = rt.obj.y + rt.obj.vy; if (rt.obj.y > yMidway) { scrollY(); } } else if (rt.obj.y < yMidway) { rt.obj.y = rt.obj.y + rt.obj.vy; if (rt.obj.y > yMidway) { scrollY(); } } else if (rt.obj.y > yMidway) { rt.obj.y = rt.obj.y + rt.obj.vy; if (rt.obj.y > 300) { rt.obj.clip.gotoAndStop("roll"); } else { rt.obj.clip.gotoAndStop(1); } if (rt.obj.y > 450) { rt.obj.vx = rt.obj.vx / 1.4; if (rt.obj.vx < 0) { if (rt.obj.vx > -1) { gameOver(false); } } else if (rt.obj.vx < 1) { gameOver(false); } rt.sounds.boing.start(0, 1); bounceCount++; if (bounceCount == 1) { imflyingStart = 20; } rt.obj.vy = rt.obj.vy / 1.4; if (rt.obj.vy < 0) { rt.obj.vy = (rt.obj.vy - rt.obj.vy) - rt.obj.vy; } else { rt.obj.vy = -rt.obj.vy; } } } } else if (rt.obj.vy < 0) { if (rt.obj.y < 300) { rt.obj.clip.gotoAndStop(1); } trace("moving up"); if (rt.obj.y == yMidway) { trace("middle"); rt.obj.y = rt.obj.y + rt.obj.vy; if (rt.obj.y < yMidway) { scrollY(); } } else if (rt.obj.y < yMidway) { trace("top"); trace(rt.obj.y); rt.obj.y = rt.obj.y + rt.obj.vy; trace(rt.obj.y); trace(rt.obj.vy); if (rt.obj.y < -50) { gameOver(true); } } else if (rt.obj.y > yMidway) { trace("bottom"); trace(rt.obj.y); rt.obj.y = rt.obj.y + rt.obj.vy; trace(rt.obj.y); trace(rt.obj.vy); if (rt.obj.y < yMidway) { trace("scrollY"); scrollY(); } } } } else { rt.obj.x = rt.obj.x + rt.obj.vx; rt.obj.y = rt.obj.y + rt.obj.vy; } increaseScore(rt.obj.vx); } rt.obj.clip._x = rt.obj.x; rt.obj.clip._y = rt.obj.y; if (rt.obj.y < 300) { var angle2 = Math.atan2(rt.obj.vy, rt.obj.vx); rt.obj.clip._rotation = (angle2 * 180) / Math.PI; } else if (gameState == "play") { if (cannonManFlying == 1) { gameStartDelay--; if (gameStartDelay == 0) { gameStartDelay = 1; rt.obj.clip._rotation = rt.obj.clip._rotation + int(rt.obj.vx * 2); } else { var angle2 = Math.atan2(rt.obj.vy, rt.obj.vx); rt.obj.clip._rotation = (angle2 * 180) / Math.PI; } } } if (cannonManFlying == 1) { rt.obj.shadowMc._y = 2580; rt.obj.shadowMc._x = -rt.Background.xPos; trace(rt.Background.xPos); rt.obj.shadowMc._x = rt.obj.shadowMc._x + rt.obj.x; var shadowScale = (rt.obj.y / 285); shadowScale = shadowScale * 100; rt.obj.shadowMc._xscale = shadowScale - 70; rt.obj.shadowMc._yscale = rt.obj.shadowMc._xscale; trace("shadow scale!!!!"); trace(shadowScale); } } function doStarTrail() { if (cannonManFlying == 1) { starAnimDelay--; if (starAnimDelay == 0) { starAnimDelay = 4; msgMc = inGameExplosionsMc.attachMovie("starAnim", "stars" + starTrails, starTrails); msgMc._x = rt.obj.x; msgMc._x = msgMc._x - rt.Background.xOrigin; msgMc._x = msgMc._x - rt.Background.xPos; msgMc._y = rt.obj.y; msgMc._y = msgMc._y - rt.Background.yOrigin; msgMc._y = msgMc._y - rt.Background.yPos; starTrails++; } } } function decreaseScore() { } function increaseScore(increase) { score = int(score + increase); if (score > 0) { setScore(); } } function setLives() { var addd = inGameStatsMc.ingamestatsmc; addd = addd.wg; addd = addd.stats; addd.lives.text = lives; } function setScore() { var addd = inGameStatsMc.ingamestatsmc; addd = addd.wg; addd = addd.stats; if (score < 10) { addd.score.text = "0000" + score; } else if (score < 100) { addd.score.text = "000" + score; } else if (score < 1000) { addd.score.text = "00" + score; } else if (score < 10000) { addd.score.text = "0" + score; } else { addd.score.text = score; } } function setBest() { var addd = inGameStatsMc.ingamestatsmc; addd = addd.wg; addd = addd.stats; if (bestScore < 10) { addd.bestScore.text = "0000" + bestScore; } else if (bestScore < 100) { addd.bestScore.text = "000" + bestScore; } else if (bestScore < 1000) { addd.bestScore.text = "00" + bestScore; } else if (bestScore < 10000) { addd.bestScore.text = "0" + bestScore; } else { addd.bestScore.text = bestScore; } } }
Symbol 434 MovieClip [__Packages.GameBackground] Frame 0
class GameBackground { var rt, maxScrollSpeed, xOrigin, yOrigin, xPos, yPos, xVel, yVel, xLevelWidth, yLevelHeight, backgroundMc, mC, backgroundParallaxMc; function GameBackground (rt2, xs, ys, maxS, xm, ym) { rt = rt2; maxScrollSpeed = maxS; xOrigin = 0; yOrigin = 0; xPos = xs; yPos = ys; xVel = 0; yVel = 0; xLevelWidth = xm - rt.Game.movieWidth; yLevelHeight = ym - rt.Game.movieHeight; backgroundMc = rt.Game.inGameBackgroundMc.attachMovie("background", "inGameBackMc", 0); mC = rt.Game.inGameContainerMc; updatePosition(); var ix = 1; while (ix < 10) { var ind = ix; var backTile = rt.Game.inGameBackgroundMc.attachMovie("frontScreenBack", "backgroundSquares" + ind, ind + 1); backTile._x = backTile._x + (ix * 700); backTile._y = backTile._y + 2478; ix++; } var ix = 10; while (ix < 15) { var ind = ix; var backTile = rt.Game.inGameBackgroundMc.attachMovie("backgroundScrollCity", "backgroundSquares" + ind, ind + 1); backTile._x = backTile._x + (ix * 700); ix++; } var ix = 15; while (ix < 20) { var ind = ix; var backTile = rt.Game.inGameBackgroundMc.attachMovie("backgroundScrollMoutains", "backgroundSquares" + ind, ind + 1); backTile._x = backTile._x + (ix * 700); ix++; } var ind = 20; var backTile = rt.Game.inGameBackgroundMc.attachMovie("bgMountainsToDesert", "bgMD" + ind, ind + 1); backTile._x = backTile._x + (ind * 700); var ix = 21; while (ix < 25) { var ind = ix; var backTile = rt.Game.inGameBackgroundMc.attachMovie("bgdesert", "bgdesert" + ind, ind + 1); backTile._x = backTile._x + (ix * 700); ix++; } var ind = 25; var backTile = rt.Game.inGameBackgroundMc.attachMovie("backgroundDesertToBeach", "bgDB" + ind, ind + 1); backTile._x = backTile._x + (ind * 700); var ix = 26; while (ix < 35) { var ind = ix; var backTile = rt.Game.inGameBackgroundMc.attachMovie("bgIsland", "bgIsland" + ind, ind + 1); backTile._x = backTile._x + (ix * 700); ix++; } var ix = 2; while (ix < 7) { var ind = ix; var backTile = rt.Game.inGameBackgroundMc.attachMovie("satellite", "satellite" + ind, ind + 35); backTile._x = backTile._x + (ix * 700); backTile._x = backTile._x + rt.Useful1.RandomNumber(0, 300); backTile._y = backTile._y + rt.Useful1.RandomNumber(100, 500); ix++; } var ix = 6; while (ix < 17) { var ind = ix; var backTile = rt.Game.inGameBackgroundMc.attachMovie("heli", "heli" + ind, ind + 45); backTile._x = backTile._x + (ix * 700); backTile._x = backTile._x + rt.Useful1.RandomNumber(0, 500); backTile._y = backTile._y + rt.Useful1.RandomNumber(1400, 2000); ix++; } var ix = 2; while (ix < 27) { var ind = ix; var backTile = rt.Game.inGameBackgroundMc.attachMovie("bird", "bird" + ind, ind + 65); backTile._x = backTile._x + (ix * 700); backTile._x = backTile._x + rt.Useful1.RandomNumber(0, 500); backTile._y = backTile._y + rt.Useful1.RandomNumber(1400, 2000); ix++; } var ix = 15; while (ix < 20) { var ind = ix; var backTile = rt.Game.inGameBackgroundMc.attachMovie("snowman", "snowman" + ind, ind + 85); backTile._x = backTile._x + (ix * 700); backTile._x = backTile._x + rt.Useful1.RandomNumber(0, 300); backTile._y = backTile._y + 2540; ix++; } backgroundParallaxMc = new Array(); var i = 0; while (i < rt.parallaxLayersNames.length) { backgroundParallaxMc[i] = rt.Game.inGameBackgroundParallaxMc.attachMovie(rt.parallaxLayersNames[i], "inGameBackPMc" + i, i); backgroundParallaxMc[i]._x = backgroundParallaxMc[i]._x + (rt.Game.movieWidth / 2); backgroundParallaxMc[i]._y = backgroundParallaxMc[i]._y + yOrigin; backgroundParallaxMc[i]._alpha = 50 - (i * 20); i++; } } function mainLoop() { if (rt.Game.gameState == "pre_start2") { if (rt._xmouse > 650) { xVel = xVel + 1; var maxScrollSpeedNeg = (-maxScrollSpeed); if (xVel < maxScrollSpeedNeg) { xVel = maxScrollSpeedNeg; } scrollBackgroundH(); } else if (rt._xmouse < 50) { xVel = xVel - 1; if (xVel > maxScrollSpeed) { xVel = maxScrollSpeed; } scrollBackgroundH(); } else if (xVel > 0) { xVel = xVel - 2; if (xVel < 1) { xVel = 0; } else { scrollBackgroundH(); } } else if (xVel < 0) { xVel = xVel + 2; if (xVel > -1) { xVel = 0; } else { scrollBackgroundH(); } } if (rt._ymouse > 550) { yVel = yVel + 1; var maxScrollSpeedNeg = (-maxScrollSpeed); if (yVel < maxScrollSpeedNeg) { yVel = maxScrollSpeedNeg; } scrollBackgroundV(); } else if (rt._ymouse < 50) { yVel = yVel - 1; if (yVel > maxScrollSpeed) { yVel = maxScrollSpeed; } scrollBackgroundV(); } else if (yVel > 0) { yVel = yVel - 2; if (yVel < 1) { yVel = 0; } else { scrollBackgroundV(); } } else if (yVel < 0) { yVel = yVel + 2; if (yVel > -1) { yVel = 0; } else { scrollBackgroundV(); } } } updatePosition(); } function scrollBackgroundH() { var xDiff = xVel; xPos = xPos - xVel; if (xVel > 0) { var negNumber = -28000; if (xPos < negNumber) { xDiff = xPos - negNumber; xPos = negNumber; xVel = 0; } } else if (xPos > 0) { xDiff = xPos; xPos = 0; xVel = 0; } var i = 0; while (i < rt.parallaxLayersNames.length) { backgroundParallaxMc[i]._x = backgroundParallaxMc[i]._x + (xVel / (3 + i)); i++; } return(xDiff); } function scrollBackgroundV() { var yDiff = yVel; yPos = yPos - yVel; if (yVel > 0) { var negNumber = rt.yLevelStart; if (yPos < negNumber) { trace("STOP SCROLL"); yDiff = yPos - negNumber; yPos = negNumber; yVel = 0; } } else if (yPos > 0) { trace("STOP SCROLL"); yDiff = yPos; yPos = 0; yVel = 0; } var i = 0; while (i < rt.parallaxLayersNames.length) { backgroundParallaxMc[i]._y = backgroundParallaxMc[i]._y + (yVel / (3 + i)); i++; } return(yDiff); } function updatePosition() { var oldX = mC._x; var oldY = mC._y; mC._x = xOrigin + xPos; mC._y = yOrigin + yPos; } }
Symbol 435 MovieClip [__Packages.Useful] Frame 0
class Useful { function Useful () { } function getDistance(mc1, mc2) { var dx2 = mc1._x; var dy2 = mc1._y; var dx = mc2._x; var dy = mc2._y; dx = dx2 - dx; dy = dy2 - dy; return(Math.sqrt((dx * dx) + (dy * dy))); } function RandomNumber(x, y) { return(Math.round(Math.random() * (y - x)) + x); } function getArcVelocity(gravity, speed, xStart, yStart, xEnd, yEnd) { var velocities = new Object(); var xd = (xEnd - xStart); var yd = (yEnd - yStart); var dist = Math.sqrt((xd * xd) + (yd * yd)); var steps = Math.ceil(dist / speed); velocities.gravity = gravity; velocities.steps = steps; velocities.xStep = xd / steps; velocities.yStep = yd / steps; if (gravity > 0) { velocities.yStep = velocities.yStep - ((steps * gravity) / 2); } return(velocities); } function localToGlobalXY(mc1) { var temp = new Object(); temp.newX = 0; temp.newY = 0; var clip = mc1; while (clip != _root) { var xs = (temp.newX * (clip._xscale / 100)); var ys = (temp.newY * (clip._yscale / 100)); var r = (clip._rotation * (Math.PI/180)); temp.newX = (xs * Math.cos(r)) - (ys * Math.sin(r)); temp.newY = (xs * Math.sin(r)) + (ys * Math.cos(r)); temp.newX = temp.newX + clip._x; temp.newY = temp.newY + clip._y; clip = clip._parent; } return(temp); } function radian(degree) { return((Math.PI/180) * degree); } function addThrust(rot, speed) { var thrustVectors = new Object(); thrustVectors.xVel = Math.cos(radian(rot)) * speed; thrustVectors.yVel = Math.sin(radian(rot)) * speed; return(thrustVectors); } }

Library Items

Symbol 436 MovieClipUsed by:Timeline
Symbol 1 Sound [music]
Symbol 2 Sound [Missile]
Symbol 3 Sound [doh]
Symbol 4 Sound [cheer]
Symbol 5 Sound [boing]
Symbol 6 GraphicUsed by:12
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:12
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:12
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:6 8 10 11Used by:13
Symbol 13 MovieClip [bird]Uses:12
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip [satellite]Uses:14
Symbol 16 GraphicUsed by:19
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:19
Symbol 19 MovieClip [heli]Uses:16 18
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:25
Symbol 22 GraphicUsed by:25
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:23Used by:25 410 418
Symbol 25 MovieClip [frontScreenBack]Uses:21 22 24Used by:39 42 326 360 382 385 412 413
Symbol 26 GraphicUsed by:39
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:27Used by:39 42
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:39 42
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:39 42 412
Symbol 33 GraphicUsed by:39
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:34Used by:39
Symbol 36 GraphicUsed by:39
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:37Used by:39
Symbol 39 MovieClip [backgroundScrollCity]Uses:25 26 28 30 32 33 35 36 38
Symbol 40 GraphicUsed by:42
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClip [backgroundScrollMoutains]Uses:25 40 28 30 32 41
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClipUses:43Used by:45
Symbol 45 MovieClipUses:44Used by:46
Symbol 46 MovieClip [M_stars1]Uses:45Used by:47
Symbol 47 MovieClip [starAnim]Uses:46
Symbol 48 FontUsed by:49 55 60 72 73 74 78 79 83 86 87 88 113 342 343 344 346 347 348 361 419 420
Symbol 49 TextUses:48Used by:50 52 53
Symbol 50 MovieClipUses:49Used by:51
Symbol 51 MovieClipUses:50Used by:53
Symbol 52 MovieClipUses:49Used by:53
Symbol 53 ButtonUses:51 52 49Used by:54
Symbol 54 MovieClip [playBtnAnim]Uses:53
Symbol 55 TextUses:48Used by:56 58
Symbol 56 MovieClipUses:55Used by:57 58
Symbol 57 MovieClipUses:56Used by:58
Symbol 58 ButtonUses:57 56 55Used by:59
Symbol 59 MovieClip [instructionsBtnAnim]Uses:58
Symbol 60 TextUses:48Used by:61 63
Symbol 61 MovieClipUses:60Used by:62 63
Symbol 62 MovieClipUses:61Used by:63
Symbol 63 ButtonUses:62 61 60Used by:64
Symbol 64 MovieClip [controlsBtnAnim]Uses:63
Symbol 437 BitmapUsed by:68 359
Symbol 68 GraphicUses:437Used by:69
Symbol 69 MovieClip [highscoresBtnAnim]Uses:68
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:70Used by:75 89 114
Symbol 72 EditableTextUses:48Used by:75
Symbol 73 EditableTextUses:48Used by:75
Symbol 74 EditableTextUses:48Used by:75
Symbol 75 MovieClipUses:71 72 73 74Used by:76
Symbol 76 MovieClip [gameOverMsg]Uses:75Used by:77
Symbol 77 MovieClip [gameOverMsgAnim]Uses:76
Symbol 78 TextUses:48Used by:89
Symbol 79 TextUses:48Used by:80 82
Symbol 80 MovieClipUses:79Used by:82 89
Symbol 81 GraphicUsed by:82
Symbol 82 ButtonUses:80 81 79Used by:89
Symbol 83 TextUses:48Used by:84 85
Symbol 84 MovieClipUses:83Used by:85
Symbol 85 ButtonUses:84 83Used by:89
Symbol 86 TextUses:48Used by:89
Symbol 87 TextUses:48Used by:89
Symbol 88 TextUses:48Used by:89
Symbol 89 MovieClipUses:71 78 82 85 86 87 88 80Used by:90
Symbol 90 MovieClip [loseLifeMsg]Uses:89Used by:91
Symbol 91 MovieClip [loseLifeMsgAnim]Uses:90
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClipUses:92Used by:96
Symbol 94 FontUsed by:95 107 108 109 100 101 102 105 106
Symbol 95 TextUses:94Used by:96
Symbol 96 MovieClip [getReadyMsg]Uses:93 95Used by:97
Symbol 97 MovieClip [getReadyMsgAnim]Uses:96
Symbol 107 TextUses:94Used by:110
Symbol 108 TextUses:94Used by:110
Symbol 109 TextUses:94Used by:110
Symbol 110 MovieClip [levelCompleteMsgs]Uses:107 108 109Used by:111
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClipUses:98Used by:111
Symbol 100 TextUses:94Used by:111
Symbol 101 TextUses:94Used by:111
Symbol 102 TextUses:94Used by:111
Symbol 103 FontUsed by:104
Symbol 104 EditableTextUses:103Used by:111
Symbol 105 EditableTextUses:94Used by:111
Symbol 106 EditableTextUses:94Used by:111
Symbol 111 MovieClipUses:99 100 101 102 104 105 106 110Used by:112
Symbol 112 MovieClip [levelCompleteMsgAnim]Uses:111
Symbol 113 TextUses:48Used by:114
Symbol 114 MovieClipUses:71 113Used by:115
Symbol 115 MovieClipUses:114Used by:116
Symbol 116 MovieClip [pausedMsgAnim]Uses:115
Symbol 119 GraphicUsed by:120 384 410 418 422
Symbol 120 MovieClip [shotStrenthMeterLevel]Uses:119Used by:121
Symbol 117 GraphicUsed by:118
Symbol 118 MovieClipUses:117Used by:121
Symbol 121 MovieClip [shotStrengthMeter]Uses:118 120
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClip [CannonManRoll]Uses:136Used by:138
Symbol 138 MovieClip [rollAnim]Uses:137Used by:143
Symbol 122 GraphicUsed by:135
Symbol 123 GraphicUsed by:124
Symbol 124 MovieClipUses:123Used by:130
Symbol 125 GraphicUsed by:126
Symbol 126 MovieClipUses:125Used by:127
Symbol 127 MovieClipUses:126Used by:128
Symbol 128 MovieClipUses:127Used by:129
Symbol 129 MovieClipUses:128Used by:130
Symbol 130 MovieClipUses:124 129Used by:135
Symbol 131 GraphicUsed by:135
Symbol 132 GraphicUsed by:135
Symbol 133 GraphicUsed by:135
Symbol 134 GraphicUsed by:135
Symbol 135 MovieClipUses:122 130 131 132 133 134Used by:143
Symbol 139 GraphicUsed by:140
Symbol 140 MovieClipUses:139Used by:143
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClipUses:141Used by:143
Symbol 143 MovieClip [bullet]Uses:135 138 140 142
Symbol 144 GraphicUsed by:149
Symbol 145 GraphicUsed by:149
Symbol 146 GraphicUsed by:149
Symbol 147 GraphicUsed by:149
Symbol 148 GraphicUsed by:149
Symbol 149 MovieClipUses:144 145 146 147 148Used by:150
Symbol 150 MovieClip [StickyProjectile]Uses:149
Symbol 154 GraphicUsed by:155
Symbol 155 MovieClipUses:154Used by:193
Symbol 156 GraphicUsed by:192
Symbol 157 GraphicUsed by:192
Symbol 158 GraphicUsed by:192
Symbol 159 GraphicUsed by:192
Symbol 160 ShapeTweeningUsed by:192
Symbol 161 ShapeTweeningUsed by:192
Symbol 162 GraphicUsed by:192
Symbol 163 ShapeTweeningUsed by:192
Symbol 164 ShapeTweeningUsed by:192
Symbol 165 ShapeTweeningUsed by:192
Symbol 166 ShapeTweeningUsed by:192
Symbol 167 ShapeTweeningUsed by:192
Symbol 168 ShapeTweeningUsed by:192
Symbol 169 ShapeTweeningUsed by:192
Symbol 170 ShapeTweeningUsed by:192
Symbol 171 ShapeTweeningUsed by:192
Symbol 172 ShapeTweeningUsed by:192
Symbol 173 ShapeTweeningUsed by:192
Symbol 174 ShapeTweeningUsed by:192
Symbol 175 ShapeTweeningUsed by:192
Symbol 176 ShapeTweeningUsed by:192
Symbol 177 ShapeTweeningUsed by:192
Symbol 178 ShapeTweeningUsed by:192
Symbol 179 ShapeTweeningUsed by:192
Symbol 180 ShapeTweeningUsed by:192
Symbol 181 ShapeTweeningUsed by:192
Symbol 182 ShapeTweeningUsed by:192
Symbol 183 GraphicUsed by:192
Symbol 184 ShapeTweeningUsed by:192
Symbol 185 GraphicUsed by:192
Symbol 186 ShapeTweeningUsed by:192
Symbol 187 GraphicUsed by:192
Symbol 188 ShapeTweeningUsed by:192
Symbol 189 ShapeTweeningUsed by:192
Symbol 190 GraphicUsed by:192
Symbol 191 GraphicUsed by:192
Symbol 192 MovieClipUses:156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191Used by:193
Symbol 193 MovieClipUses:155 192Used by:194 360
Symbol 194 MovieClipUses:193Used by:195
Symbol 195 MovieClip [gun]Uses:194Used by:198
Symbol 151 GraphicUsed by:152
Symbol 152 MovieClipUses:151Used by:198
Symbol 153 MovieClipUsed by:198
Symbol 196 GraphicUsed by:197
Symbol 197 MovieClipUses:196Used by:198 360
Symbol 198 MovieClip [Turret]Uses:152 153 195 197
Symbol 201 MovieClipUsed by:202
Symbol 202 MovieClip [hair]Uses:201Used by:203 206
Symbol 199 BitmapUsed by:200
Symbol 200 GraphicUses:199Used by:203
Symbol 203 MovieClipUses:200 202Used by:207
Symbol 204 BitmapUsed by:205
Symbol 205 GraphicUses:204Used by:206
Symbol 206 MovieClipUses:205 202Used by:207
Symbol 207 MovieClip [mainface]Uses:203 206
Symbol 208 FontUsed by:209 286 294
Symbol 209 EditableTextUses:208Used by:210
Symbol 210 MovieClip [goldLost]Uses:209Used by:211
Symbol 211 MovieClip [goldLostAnim]Uses:210
Symbol 212 ShapeTweeningUsed by:216
Symbol 213 GraphicUsed by:216
Symbol 214 ShapeTweeningUsed by:216
Symbol 215 GraphicUsed by:216
Symbol 216 MovieClip [square]Uses:212 213 214 215
Symbol 217 GraphicUsed by:218 340
Symbol 218 MovieClipUses:217Used by:219
Symbol 219 MovieClipUses:218Used by:220
Symbol 220 MovieClip [crosshair]Uses:219
Symbol 222 FontUsed by:223 224 225 226 228 231 232 233
Symbol 223 EditableTextUses:222Used by:237
Symbol 224 EditableTextUses:222Used by:237
Symbol 225 TextUses:222Used by:237
Symbol 226 TextUses:222Used by:227 230
Symbol 227 MovieClipUses:226Used by:230
Symbol 228 TextUses:222Used by:230
Symbol 229 GraphicUsed by:230
Symbol 230 ButtonUses:227 228 229 226Used by:237
Symbol 231 TextUses:222Used by:237
Symbol 232 TextUses:222Used by:234
Symbol 233 TextUses:222Used by:234
Symbol 234 MovieClipUses:232 233Used by:237
Symbol 235 GraphicUsed by:236
Symbol 236 ButtonUses:235Used by:237
Symbol 237 MovieClip [score]Uses:223 224 225 230 231 234 236Used by:241
Symbol 221 GraphicUsed by:241
Symbol 238 GraphicUsed by:241
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClipUses:239Used by:241
Symbol 241 MovieClipUses:221 237 238 240Used by:242
Symbol 242 MovieClip [weapons]Uses:241
Symbol 243 BitmapUsed by:244
Symbol 244 GraphicUses:243Used by:245
Symbol 245 MovieClipUses:244Used by:250
Symbol 246 FontUsed by:247
Symbol 247 EditableTextUses:246Used by:250
Symbol 248 GraphicUsed by:249 292
Symbol 249 ButtonUses:248Used by:250 296 298 299 304
Symbol 250 MovieClip [weaponBox]Uses:245 247 249Used by:260 263 275 279
Symbol 251 GraphicUsed by:258
Symbol 252 GraphicUsed by:253
Symbol 253 MovieClipUses:252Used by:258
Symbol 254 GraphicUsed by:258
Symbol 255 GraphicUsed by:258
Symbol 256 GraphicUsed by:258
Symbol 257 GraphicUsed by:258
Symbol 258 MovieClip [man with pistol anim]Uses:251 253 254 255 256 257Used by:259 297
Symbol 259 MovieClip [r]Uses:258Used by:260
Symbol 260 MovieClip [weapon4]Uses:250 259
Symbol 261 GraphicUsed by:262
Symbol 262 MovieClipUses:261Used by:263 295
Symbol 263 MovieClip [weapon3]Uses:250 262
Symbol 264 GraphicUsed by:265
Symbol 265 MovieClipUses:264Used by:274
Symbol 266 GraphicUsed by:274
Symbol 267 GraphicUsed by:268
Symbol 268 MovieClipUses:267Used by:274
Symbol 269 GraphicUsed by:274
Symbol 270 GraphicUsed by:271
Symbol 271 MovieClipUses:270Used by:274
Symbol 272 GraphicUsed by:274
Symbol 273 GraphicUsed by:274
Symbol 274 MovieClipUses:265 266 268 269 271 272 273Used by:275 291
Symbol 275 MovieClip [weapon2]Uses:250 274
Symbol 277 GraphicUsed by:278
Symbol 278 MovieClip [magnet1]Uses:277Used by:279 299
Symbol 276 GraphicUsed by:279
Symbol 279 MovieClip [weapon1]Uses:250 276 278
Symbol 280 GraphicUsed by:281
Symbol 281 MovieClipUses:280Used by:283
Symbol 282 GraphicUsed by:283
Symbol 283 MovieClip [statsMc]Uses:281 282Used by:284
Symbol 284 MovieClip [inGameStats]Uses:283
Symbol 285 GraphicUsed by:289
Symbol 286 TextUses:208Used by:289
Symbol 287 FontUsed by:288
Symbol 288 TextUses:287Used by:289
Symbol 289 MovieClip [explain]Uses:285 286 288
Symbol 290 GraphicUsed by:291
Symbol 291 MovieClip [manWithBat]Uses:290 274Used by:293
Symbol 292 ButtonUses:248Used by:293
Symbol 293 MovieClip [gameObject3]Uses:291 292
Symbol 294 EditableTextUses:208Used by:295
Symbol 295 MovieClip [tower1]Uses:262 294Used by:296
Symbol 296 MovieClip [gameObject1]Uses:295 249
Symbol 297 MovieClip [redTurret]Uses:258Used by:298
Symbol 298 MovieClip [gameObject2]Uses:297 249
Symbol 299 MovieClip [gameObject4]Uses:278 249
Symbol 300 GraphicUsed by:301
Symbol 301 MovieClipUses:300Used by:302
Symbol 302 MovieClipUses:301Used by:303
Symbol 303 MovieClip [spaceMine]Uses:302Used by:304
Symbol 304 MovieClip [gameObject5]Uses:303 249
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:323
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:323
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:309Used by:323
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:323
Symbol 313 BitmapUsed by:314
Symbol 314 GraphicUses:313Used by:323
Symbol 315 BitmapUsed by:316
Symbol 316 GraphicUses:315Used by:323
Symbol 317 BitmapUsed by:318
Symbol 318 GraphicUses:317Used by:323
Symbol 319 BitmapUsed by:320
Symbol 320 GraphicUses:319Used by:323
Symbol 321 BitmapUsed by:322
Symbol 322 GraphicUses:321Used by:323
Symbol 323 MovieClipUses:306 308 310 312 314 316 318 320 322Used by:324
Symbol 324 MovieClip [ball]Uses:323
Symbol 326 MovieClip [backgroundScroll]Uses:25Used by:327 410 418
Symbol 325 GraphicUsed by:327
Symbol 327 MovieClip [background]Uses:325 326
Symbol 328 MovieClip [sss]
Symbol 329 GraphicUsed by:330
Symbol 330 MovieClipUses:329Used by:360
Symbol 331 GraphicUsed by:332
Symbol 332 MovieClipUses:331Used by:360
Symbol 333 GraphicUsed by:360
Symbol 334 GraphicUsed by:360
Symbol 335 GraphicUsed by:337
Symbol 336 GraphicUsed by:337
Symbol 337 MovieClipUses:335 336Used by:360
Symbol 338 GraphicUsed by:360
Symbol 339 GraphicUsed by:340
Symbol 340 MovieClipUses:217 339Used by:360
Symbol 341 GraphicUsed by:351
Symbol 342 EditableTextUses:48Used by:351
Symbol 343 TextUses:48Used by:351
Symbol 344 TextUses:48Used by:345 350
Symbol 345 ButtonUses:344Used by:351
Symbol 346 EditableTextUses:48Used by:351
Symbol 347 TextUses:48Used by:351
Symbol 348 TextUses:48Used by:349
Symbol 349 MovieClipUses:348Used by:351
Symbol 350 ButtonUses:344Used by:351
Symbol 351 MovieClipUses:341 342 343 345 346 347 349 350Used by:360
Symbol 352 FontUsed by:353
Symbol 353 TextUses:352Used by:360
Symbol 359 GraphicUses:437Used by:360
Symbol 360 MovieClip [SplashScreen]Uses:25 330 332 333 193 197 334 337 338 340 351 353 359
Symbol 361 TextUses:48Used by:366
Symbol 362 FontUsed by:363
Symbol 363 EditableTextUses:362Used by:366
Symbol 364 GraphicUsed by:366
Symbol 365 GraphicUsed by:366
Symbol 366 MovieClip [ptitle]Uses:361 363 364 365Used by:368
Symbol 367 GraphicUsed by:368
Symbol 368 MovieClip [title]Uses:366 367
Symbol 369 GraphicUsed by:370
Symbol 370 MovieClip [ballShadow]Uses:369
Symbol 371 GraphicUsed by:372
Symbol 372 MovieClipUses:371Used by:373
Symbol 373 MovieClip [edgeSquare]Uses:372
Symbol 374 GraphicUsed by:375
Symbol 375 MovieClipUses:374Used by:376
Symbol 376 MovieClip [cannonManShadow]Uses:375
Symbol 377 GraphicUsed by:378
Symbol 378 MovieClip [snowman]Uses:377
Symbol 379 GraphicUsed by:382
Symbol 380 GraphicUsed by:381
Symbol 381 MovieClipUses:380Used by:382
Symbol 382 MovieClip [backgroundJungle]Uses:25 379 381
Symbol 383 GraphicUsed by:384
Symbol 384 MovieClipUses:119 383Used by:385 412 413 416
Symbol 385 MovieClip [bgdesert]Uses:25 384
Symbol 386 GraphicUsed by:410
Symbol 387 GraphicUsed by:388
Symbol 388 MovieClipUses:387Used by:389
Symbol 389 MovieClipUses:388Used by:410 418
Symbol 390 GraphicUsed by:391
Symbol 391 MovieClipUses:390Used by:392
Symbol 392 MovieClipUses:391Used by:410 418
Symbol 393 GraphicUsed by:394
Symbol 394 MovieClipUses:393Used by:395
Symbol 395 MovieClipUses:394Used by:410 418
Symbol 396 GraphicUsed by:397
Symbol 397 MovieClipUses:396Used by:398 402
Symbol 398 MovieClipUses:397Used by:410 418
Symbol 399 GraphicUsed by:400
Symbol 400 MovieClipUses:399Used by:401
Symbol 401 MovieClipUses:400Used by:410 418
Symbol 402 MovieClipUses:397Used by:410 418
Symbol 403 GraphicUsed by:410 418
Symbol 404 GraphicUsed by:405
Symbol 405 MovieClipUses:404Used by:409
Symbol 406 GraphicUsed by:409
Symbol 407 GraphicUsed by:408
Symbol 408 MovieClipUses:407Used by:409
Symbol 409 MovieClipUses:405 406 408Used by:410 418
Symbol 410 MovieClip [bgIsland]Uses:386 24 389 392 395 119 398 401 402 403 409 326
Symbol 411 GraphicUsed by:412
Symbol 412 MovieClip [bgMountainsToDesert]Uses:25 384 411 32
Symbol 413 MovieClip [bgDesertToBeach]Uses:25 384
Symbol 414 GraphicUsed by:418
Symbol 415 GraphicUsed by:416
Symbol 416 MovieClipUses:415 384Used by:418
Symbol 417 GraphicUsed by:418
Symbol 418 MovieClip [backgroundDesertToBeach]Uses:414 24 389 392 395 119 398 401 402 403 416 409 417 326
Symbol 419 TextUses:48Used by:421
Symbol 420 TextUses:48Used by:421
Symbol 421 MovieClipUses:419 420Used by:423
Symbol 422 ButtonUses:119Used by:423
Symbol 423 MovieClip [SplashMusicBtn]Uses:421 422
Symbol 424 MovieClip [__Packages.mochi.MochiScores]
Symbol 425 MovieClip [__Packages.mochi.MochiServices]
Symbol 426 MovieClip [__Packages.MochiAd]
Symbol 427 MovieClip [__Packages.GamePlayer]
Symbol 428 MovieClip [__Packages.Game]
Symbol 429 MovieClip [__Packages.GoodGuy]
Symbol 430 MovieClip [__Packages.Missile2]
Symbol 431 MovieClip [__Packages.Sticky]
Symbol 432 MovieClip [__Packages.GamePresentation]
Symbol 433 MovieClip [__Packages.GameGame]
Symbol 434 MovieClip [__Packages.GameBackground]
Symbol 435 MovieClip [__Packages.Useful]

Instance Names

"heart"Symbol 47 MovieClip [starAnim] Frame 1Symbol 46 MovieClip [M_stars1]
"btn"Symbol 54 MovieClip [playBtnAnim] Frame 1Symbol 53 Button
"btn"Symbol 59 MovieClip [instructionsBtnAnim] Frame 1Symbol 58 Button
"btn"Symbol 64 MovieClip [controlsBtnAnim] Frame 1Symbol 63 Button
"btn"Symbol 69 MovieClip [highscoresBtnAnim] Frame 1Symbol 68 Graphic
"score"Symbol 75 MovieClip Frame 1Symbol 74 EditableText
"msg"Symbol 76 MovieClip [gameOverMsg] Frame 1Symbol 75 MovieClip
"m"Symbol 77 MovieClip [gameOverMsgAnim] Frame 1Symbol 76 MovieClip [gameOverMsg]
"tryagain"Symbol 89 MovieClip Frame 4Symbol 80 MovieClip
"msg"Symbol 90 MovieClip [loseLifeMsg] Frame 1Symbol 89 MovieClip
"m"Symbol 91 MovieClip [loseLifeMsgAnim] Frame 1Symbol 90 MovieClip [loseLifeMsg]
"timeBonus"Symbol 111 MovieClip Frame 1Symbol 104 EditableText
"orbsBonus"Symbol 111 MovieClip Frame 1Symbol 105 EditableText
"totalScore"Symbol 111 MovieClip Frame 1Symbol 106 EditableText
"titleMc"Symbol 111 MovieClip Frame 1Symbol 110 MovieClip [levelCompleteMsgs]
"msg"Symbol 112 MovieClip [levelCompleteMsgAnim] Frame 15Symbol 111 MovieClip
"back"Symbol 121 MovieClip [shotStrengthMeter] Frame 1Symbol 118 MovieClip
"level"Symbol 121 MovieClip [shotStrengthMeter] Frame 1Symbol 120 MovieClip [shotStrenthMeterLevel]
"guy"Symbol 143 MovieClip [bullet] Frame 1Symbol 135 MovieClip
"roll"Symbol 143 MovieClip [bullet] Frame 2Symbol 138 MovieClip [rollAnim]
"guy"Symbol 143 MovieClip [bullet] Frame 3Symbol 140 MovieClip
"guy"Symbol 143 MovieClip [bullet] Frame 4Symbol 142 MovieClip
"cannon"Symbol 194 MovieClip Frame 1Symbol 193 MovieClip
"g5"Symbol 195 MovieClip [gun] Frame 1Symbol 194 MovieClip
"gun"Symbol 198 MovieClip [Turret] Frame 1Symbol 195 MovieClip [gun]
"hairgroup"Symbol 202 MovieClip [hair] Frame 1Symbol 201 MovieClip
"hair"Symbol 203 MovieClip Frame 1Symbol 202 MovieClip [hair]
"hair"Symbol 206 MovieClip Frame 1Symbol 202 MovieClip [hair]
"h"Symbol 207 MovieClip [mainface] Frame 1Symbol 203 MovieClip
"h"Symbol 207 MovieClip [mainface] Frame 2Symbol 206 MovieClip
"g"Symbol 210 MovieClip [goldLost] Frame 1Symbol 209 EditableText
"g"Symbol 211 MovieClip [goldLostAnim] Frame 1Symbol 210 MovieClip [goldLost]
"score"Symbol 237 MovieClip [score] Frame 1Symbol 223 EditableText
"bestScore"Symbol 237 MovieClip [score] Frame 1Symbol 224 EditableText
"quitBtn"Symbol 237 MovieClip [score] Frame 1Symbol 230 Button
"music"Symbol 237 MovieClip [score] Frame 1Symbol 234 MovieClip
"musicBtn"Symbol 237 MovieClip [score] Frame 1Symbol 236 Button
"stats"Symbol 241 MovieClip Frame 1Symbol 237 MovieClip [score]
"wg"Symbol 242 MovieClip [weapons] Frame 1Symbol 241 MovieClip
"price"Symbol 250 MovieClip [weaponBox] Frame 1Symbol 247 EditableText
"gameObjectBtn"Symbol 250 MovieClip [weaponBox] Frame 1Symbol 249 Button
"s"Symbol 259 MovieClip [r] Frame 1Symbol 258 MovieClip [man with pistol anim]
"m"Symbol 259 MovieClip [r] Frame 1Symbol 258 MovieClip [man with pistol anim]
"wb"Symbol 260 MovieClip [weapon4] Frame 1Symbol 250 MovieClip [weaponBox]
"wb"Symbol 263 MovieClip [weapon3] Frame 1Symbol 250 MovieClip [weaponBox]
"wb"Symbol 275 MovieClip [weapon2] Frame 1Symbol 250 MovieClip [weaponBox]
"m"Symbol 275 MovieClip [weapon2] Frame 1Symbol 274 MovieClip
"wb"Symbol 279 MovieClip [weapon1] Frame 1Symbol 250 MovieClip [weaponBox]
"m"Symbol 291 MovieClip [manWithBat] Frame 1Symbol 274 MovieClip
"gameObjectBtn"Symbol 293 MovieClip [gameObject3] Frame 1Symbol 292 Button
"peopleIn"Symbol 295 MovieClip [tower1] Frame 1Symbol 294 EditableText
"gameObjectBtn"Symbol 296 MovieClip [gameObject1] Frame 1Symbol 249 Button
"s"Symbol 297 MovieClip [redTurret] Frame 1Symbol 258 MovieClip [man with pistol anim]
"m"Symbol 297 MovieClip [redTurret] Frame 1Symbol 258 MovieClip [man with pistol anim]
"gameObjectBtn"Symbol 298 MovieClip [gameObject2] Frame 1Symbol 249 Button
"gameObjectBtn"Symbol 299 MovieClip [gameObject4] Frame 1Symbol 249 Button
"gameObjectBtn"Symbol 304 MovieClip [gameObject5] Frame 1Symbol 249 Button
"b"Symbol 327 MovieClip [background] Frame 1Symbol 326 MovieClip [backgroundScroll]
"screens"Symbol 360 MovieClip [SplashScreen] Frame 1Symbol 351 MovieClip
"b"Symbol 410 MovieClip [bgIsland] Frame 49Symbol 326 MovieClip [backgroundScroll]
"b"Symbol 418 MovieClip [backgroundDesertToBeach] Frame 49Symbol 326 MovieClip [backgroundScroll]
"musicMc"Symbol 423 MovieClip [SplashMusicBtn] Frame 1Symbol 421 MovieClip
"musicBtn"Symbol 423 MovieClip [SplashMusicBtn] Frame 1Symbol 422 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 1 as "music"
ExportAssets (56)Timeline Frame 1Symbol 2 as "Missile"
ExportAssets (56)Timeline Frame 1Symbol 3 as "doh"
ExportAssets (56)Timeline Frame 1Symbol 4 as "cheer"
ExportAssets (56)Timeline Frame 1Symbol 5 as "boing"
ExportAssets (56)Timeline Frame 1Symbol 13 as "bird"
ExportAssets (56)Timeline Frame 1Symbol 15 as "satellite"
ExportAssets (56)Timeline Frame 1Symbol 19 as "heli"
ExportAssets (56)Timeline Frame 1Symbol 25 as "frontScreenBack"
ExportAssets (56)Timeline Frame 1Symbol 39 as "backgroundScrollCity"
ExportAssets (56)Timeline Frame 1Symbol 42 as "backgroundScrollMoutains"
ExportAssets (56)Timeline Frame 1Symbol 46 as "M_stars1"
ExportAssets (56)Timeline Frame 1Symbol 47 as "starAnim"
ExportAssets (56)Timeline Frame 1Symbol 54 as "playBtnAnim"
ExportAssets (56)Timeline Frame 1Symbol 59 as "instructionsBtnAnim"
ExportAssets (56)Timeline Frame 1Symbol 64 as "controlsBtnAnim"
ExportAssets (56)Timeline Frame 1Symbol 69 as "highscoresBtnAnim"
ExportAssets (56)Timeline Frame 1Symbol 76 as "gameOverMsg"
ExportAssets (56)Timeline Frame 1Symbol 77 as "gameOverMsgAnim"
ExportAssets (56)Timeline Frame 1Symbol 90 as "loseLifeMsg"
ExportAssets (56)Timeline Frame 1Symbol 91 as "loseLifeMsgAnim"
ExportAssets (56)Timeline Frame 1Symbol 96 as "getReadyMsg"
ExportAssets (56)Timeline Frame 1Symbol 97 as "getReadyMsgAnim"
ExportAssets (56)Timeline Frame 1Symbol 110 as "levelCompleteMsgs"
ExportAssets (56)Timeline Frame 1Symbol 112 as "levelCompleteMsgAnim"
ExportAssets (56)Timeline Frame 1Symbol 116 as "pausedMsgAnim"
ExportAssets (56)Timeline Frame 1Symbol 120 as "shotStrenthMeterLevel"
ExportAssets (56)Timeline Frame 1Symbol 121 as "shotStrengthMeter"
ExportAssets (56)Timeline Frame 1Symbol 137 as "CannonManRoll"
ExportAssets (56)Timeline Frame 1Symbol 138 as "rollAnim"
ExportAssets (56)Timeline Frame 1Symbol 143 as "bullet"
ExportAssets (56)Timeline Frame 1Symbol 150 as "StickyProjectile"
ExportAssets (56)Timeline Frame 1Symbol 195 as "gun"
ExportAssets (56)Timeline Frame 1Symbol 198 as "Turret"
ExportAssets (56)Timeline Frame 1Symbol 202 as "hair"
ExportAssets (56)Timeline Frame 1Symbol 207 as "mainface"
ExportAssets (56)Timeline Frame 1Symbol 210 as "goldLost"
ExportAssets (56)Timeline Frame 1Symbol 211 as "goldLostAnim"
ExportAssets (56)Timeline Frame 1Symbol 216 as "square"
ExportAssets (56)Timeline Frame 1Symbol 220 as "crosshair"
ExportAssets (56)Timeline Frame 1Symbol 237 as "score"
ExportAssets (56)Timeline Frame 1Symbol 242 as "weapons"
ExportAssets (56)Timeline Frame 1Symbol 250 as "weaponBox"
ExportAssets (56)Timeline Frame 1Symbol 258 as "man with pistol anim"
ExportAssets (56)Timeline Frame 1Symbol 259 as "r"
ExportAssets (56)Timeline Frame 1Symbol 260 as "weapon4"
ExportAssets (56)Timeline Frame 1Symbol 263 as "weapon3"
ExportAssets (56)Timeline Frame 1Symbol 275 as "weapon2"
ExportAssets (56)Timeline Frame 1Symbol 278 as "magnet1"
ExportAssets (56)Timeline Frame 1Symbol 279 as "weapon1"
ExportAssets (56)Timeline Frame 1Symbol 283 as "statsMc"
ExportAssets (56)Timeline Frame 1Symbol 284 as "inGameStats"
ExportAssets (56)Timeline Frame 1Symbol 289 as "explain"
ExportAssets (56)Timeline Frame 1Symbol 291 as "manWithBat"
ExportAssets (56)Timeline Frame 1Symbol 293 as "gameObject3"
ExportAssets (56)Timeline Frame 1Symbol 295 as "tower1"
ExportAssets (56)Timeline Frame 1Symbol 296 as "gameObject1"
ExportAssets (56)Timeline Frame 1Symbol 297 as "redTurret"
ExportAssets (56)Timeline Frame 1Symbol 298 as "gameObject2"
ExportAssets (56)Timeline Frame 1Symbol 299 as "gameObject4"
ExportAssets (56)Timeline Frame 1Symbol 303 as "spaceMine"
ExportAssets (56)Timeline Frame 1Symbol 304 as "gameObject5"
ExportAssets (56)Timeline Frame 1Symbol 324 as "ball"
ExportAssets (56)Timeline Frame 1Symbol 326 as "backgroundScroll"
ExportAssets (56)Timeline Frame 1Symbol 327 as "background"
ExportAssets (56)Timeline Frame 1Symbol 328 as "sss"
ExportAssets (56)Timeline Frame 1Symbol 360 as "SplashScreen"
ExportAssets (56)Timeline Frame 1Symbol 366 as "ptitle"
ExportAssets (56)Timeline Frame 1Symbol 368 as "title"
ExportAssets (56)Timeline Frame 1Symbol 370 as "ballShadow"
ExportAssets (56)Timeline Frame 1Symbol 373 as "edgeSquare"
ExportAssets (56)Timeline Frame 1Symbol 376 as "cannonManShadow"
ExportAssets (56)Timeline Frame 1Symbol 378 as "snowman"
ExportAssets (56)Timeline Frame 1Symbol 382 as "backgroundJungle"
ExportAssets (56)Timeline Frame 1Symbol 385 as "bgdesert"
ExportAssets (56)Timeline Frame 1Symbol 410 as "bgIsland"
ExportAssets (56)Timeline Frame 1Symbol 412 as "bgMountainsToDesert"
ExportAssets (56)Timeline Frame 1Symbol 413 as "bgDesertToBeach"
ExportAssets (56)Timeline Frame 1Symbol 418 as "backgroundDesertToBeach"
ExportAssets (56)Timeline Frame 1Symbol 423 as "SplashMusicBtn"
ExportAssets (56)Timeline Frame 1Symbol 424 as "__Packages.mochi.MochiScores"
ExportAssets (56)Timeline Frame 1Symbol 425 as "__Packages.mochi.MochiServices"
ExportAssets (56)Timeline Frame 1Symbol 426 as "__Packages.MochiAd"
ExportAssets (56)Timeline Frame 1Symbol 427 as "__Packages.GamePlayer"
ExportAssets (56)Timeline Frame 1Symbol 428 as "__Packages.Game"
ExportAssets (56)Timeline Frame 1Symbol 429 as "__Packages.GoodGuy"
ExportAssets (56)Timeline Frame 1Symbol 430 as "__Packages.Missile2"
ExportAssets (56)Timeline Frame 1Symbol 431 as "__Packages.Sticky"
ExportAssets (56)Timeline Frame 1Symbol 432 as "__Packages.GamePresentation"
ExportAssets (56)Timeline Frame 1Symbol 433 as "__Packages.GameGame"
ExportAssets (56)Timeline Frame 1Symbol 434 as "__Packages.GameBackground"
ExportAssets (56)Timeline Frame 1Symbol 435 as "__Packages.Useful"
EnableDebugger2 (64)Timeline Frame 131 bytes "..$1$yO$BKcj3UqQ8bjwjJxRoE2lm.."
DebugMX1 (63)Timeline Frame 1

Labels

"bad"Symbol 89 MovieClip Frame 1
"ok"Symbol 89 MovieClip Frame 2
"good"Symbol 89 MovieClip Frame 3
"notastro"Symbol 89 MovieClip Frame 4
"submitScore"Symbol 89 MovieClip Frame 66
"flying"Symbol 143 MovieClip [bullet] Frame 1
"roll"Symbol 143 MovieClip [bullet] Frame 2
"hitsad"Symbol 143 MovieClip [bullet] Frame 3
"hithappy"Symbol 143 MovieClip [bullet] Frame 4
"male"Symbol 207 MovieClip [mainface] Frame 1
"female"Symbol 207 MovieClip [mainface] Frame 2
"on"Symbol 234 MovieClip Frame 1
"off"Symbol 234 MovieClip Frame 2
"fire"Symbol 258 MovieClip [man with pistol anim] Frame 2
"showinstructions"Symbol 351 MovieClip Frame 2
"showcontrols"Symbol 351 MovieClip Frame 3
"showhighscores"Symbol 351 MovieClip Frame 4




http://swfchan.com/28/135935/info.shtml
Created: 9/2 -2019 08:36:16 Last modified: 9/2 -2019 08:36:16 Server time: 22/12 -2024 12:31:32