Section 1
//bonusPop_2 (ASTROFLYER14_fla.bonusPop_2)
package ASTROFLYER14_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class bonusPop_2 extends MovieClip {
public var i:Number;
public var starSound:Sound;
public function bonusPop_2(){
addFrameScript(0, frame1, 1, frame2, 20, frame21, 58, frame59);
}
function frame1(){
gotoAndStop(29);
}
function frame21(){
stop();
}
function frame2(){
starSound = new starSound01();
if (MovieClip(parent).soundOn){
starSound.play();
};
}
function frame59(){
stop();
}
}
}//package ASTROFLYER14_fla
Section 2
//door_26 (ASTROFLYER14_fla.door_26)
package ASTROFLYER14_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class door_26 extends MovieClip {
public var originY:Number;
public var position:Number;
public var sp:int;
public var doorSet:MovieClip;
public var rot:uint;
public function door_26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.rotation = rot;
originY = this.y;
addEventListener(Event.ENTER_FRAME, spin);
addEventListener(Event.REMOVED_FROM_STAGE, die);
}
public function spin(_arg1:Event){
position = (position + ((sp * MovieClip(parent.parent.parent).timeDiff) / 1000));
this.y = (originY + (Math.sin(position) * 30));
}
public function die(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, spin);
removeEventListener(Event.REMOVED_FROM_STAGE, die);
}
}
}//package ASTROFLYER14_fla
Section 3
//fsMessage_18 (ASTROFLYER14_fla.fsMessage_18)
package ASTROFLYER14_fla {
import flash.display.*;
public dynamic class fsMessage_18 extends MovieClip {
public function fsMessage_18(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package ASTROFLYER14_fla
Section 4
//mainMenu_7 (ASTROFLYER14_fla.mainMenu_7)
package ASTROFLYER14_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import mochi.*;
import flash.media.*;
import flash.system.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class mainMenu_7 extends MovieClip {
public var nextLevelButton:SimpleButton;
public var gotAllStars:Boolean;
public var lcSound:Sound;
public var restartButton:SimpleButton;
public var moreLevelButton:SimpleButton;
public var submitButton:SimpleButton;
public var mcGotAllStars:MovieClip;
public var crashSound:Sound;
public var startGameButton:SimpleButton;
public var astroLink:URLRequest;
public var lifeMsg:MovieClip;
public function mainMenu_7(){
addFrameScript(0, frame1, 11, frame12, 12, frame13, 34, frame35, 49, frame50, 74, frame75, 87, frame88, 99, frame100, 124, frame125, 129, frame130, 137, frame138, 149, frame150, 179, frame180, 200, frame201, 223, frame224, 249, frame250, 279, frame280, 300, frame301, 323, frame324, 349, frame350, 379, frame380, 400, frame401, 423, frame424);
}
function frame75(){
stop();
startGameButton.addEventListener(MouseEvent.CLICK, startIt);
restartButton.addEventListener(MouseEvent.CLICK, restartIt);
}
public function startIt(_arg1:MouseEvent){
var event = _arg1;
var _local3 = MovieClip(parent);
with (_local3) {
clearGame();
resetAll();
nextBlock = levelStarts[level];
startGame();
startGameButton.removeEventListener(MouseEvent.CLICK, startIt);
};
this.gotoAndPlay(15);
}
function frame201(){
stop();
nextLevelButton.addEventListener(MouseEvent.CLICK, nextLevel);
}
function frame88(){
this.visible = false;
stop();
this.stage.frameRate = 75;
}
function frame280(){
if (gotAllStars){
mcGotAllStars.gotoAndStop(2);
};
gotAllStars = false;
}
function frame12(){
stop();
startGameButton.addEventListener(MouseEvent.CLICK, startIt);
}
public function submitIt(_arg1:MouseEvent){
if (!MovieClip(parent).scoreSubmitted){
MovieClip(parent).scoreSubmit();
MovieClip(parent).kongScoreSubmit();
MovieClip(parent).scoreSubmitted = true;
};
}
public function nextLevel(_arg1:MouseEvent){
var event = _arg1;
nextLevelButton.removeEventListener(MouseEvent.CLICK, restartIt);
var _local3 = MovieClip(parent);
with (_local3) {
nextBlock = levelStarts[level];
startGame();
};
this.gotoAndPlay(202);
}
function frame1(){
gotAllStars = false;
lcSound = new lcSound01();
crashSound = new crashSound01();
astroLink = new URLRequest("http://www.astroflyer.com");
}
function frame13(){
SoundMixer.stopAll();
}
function frame100(){
MovieClip(parent).reFog(0xFFFFFF, 0);
MovieClip(parent).boostOff();
if (MovieClip(parent).musicChannel != null){
MovieClip(parent).musicChannel.stop();
};
if (MovieClip(parent).soundOn){
crashSound.play();
};
if (MovieClip(parent).fullScreen){
MovieClip(parent).goFullScreen();
};
}
function frame224(){
this.visible = false;
stop();
this.stage.frameRate = 75;
}
function frame350(){
MovieClip(parent).reFog(0xFFFFFF, 0);
MovieClip(parent).boostOff();
if (MovieClip(parent).musicChannel != null){
MovieClip(parent).musicChannel.stop();
};
if (MovieClip(parent).soundOn){
lcSound.play();
};
}
function frame180(){
if (gotAllStars){
mcGotAllStars.gotoAndStop(2);
};
gotAllStars = false;
}
public function moreLevelClick(_arg1:MouseEvent){
navigateToURL(astroLink, "_blank");
}
public function restartIt(_arg1:MouseEvent){
var event = _arg1;
restartButton.removeEventListener(MouseEvent.CLICK, restartIt);
var _local3 = MovieClip(parent);
with (_local3) {
nextBlock = levelStarts[level];
startGame();
};
this.gotoAndPlay(80);
}
function frame35(){
this.stage.frameRate = 75;
this.visible = false;
stop();
}
function frame324(){
this.visible = false;
stop();
this.stage.frameRate = 75;
}
function frame401(){
stop();
startGameButton.addEventListener(MouseEvent.CLICK, startIt);
submitButton.addEventListener(MouseEvent.CLICK, submitIt);
}
function frame125(){
lifeMsg.visible = false;
lifeMsg.buttonMode = true;
stop();
if (MovieClip(parent).demo){
lifeMsg.visible = true;
lifeMsg.addEventListener(MouseEvent.CLICK, moreLevelClick);
};
startGameButton.addEventListener(MouseEvent.CLICK, startIt);
submitButton.addEventListener(MouseEvent.CLICK, submitIt);
MovieClip(parent).exitFullScreen();
MovieClip(parent).kongScoreSubmit();
}
function frame50(){
MovieClip(parent).reFog(0xFFFFFF, 0);
MovieClip(parent).boostOff();
if (MovieClip(parent).musicChannel != null){
MovieClip(parent).musicChannel.stop();
};
if (MovieClip(parent).soundOn){
crashSound.play();
};
}
function frame130(){
if (MovieClip(parent).demo){
lifeMsg.removeEventListener(MouseEvent.CLICK, moreLevelClick);
};
lifeMsg.visible = false;
}
function frame380(){
if (gotAllStars){
mcGotAllStars.gotoAndStop(2);
};
gotAllStars = false;
}
function frame138(){
this.visible = false;
stop();
this.stage.frameRate = 75;
}
function frame424(){
this.visible = false;
stop();
this.stage.frameRate = 75;
}
function frame250(){
MovieClip(parent).reFog(0xFFFFFF, 0);
MovieClip(parent).boostOff();
if (MovieClip(parent).musicChannel != null){
MovieClip(parent).musicChannel.stop();
};
if (MovieClip(parent).soundOn){
lcSound.play();
};
}
function frame301(){
stop();
moreLevelButton.addEventListener(MouseEvent.CLICK, moreLevelClick);
startGameButton.addEventListener(MouseEvent.CLICK, startIt);
submitButton.addEventListener(MouseEvent.CLICK, submitIt);
}
function frame150(){
MovieClip(parent).reFog(0xFFFFFF, 0);
MovieClip(parent).boostOff();
if (MovieClip(parent).musicChannel != null){
MovieClip(parent).musicChannel.stop();
};
if (MovieClip(parent).soundOn){
lcSound.play();
};
}
}
}//package ASTROFLYER14_fla
Section 5
//MainTimeline (ASTROFLYER14_fla.MainTimeline)
package ASTROFLYER14_fla {
import flash.events.*;
import flash.display.*;
import fl.motion.*;
import flash.geom.*;
import com.kongregate.as3.client.*;
import mochi.*;
import flash.media.*;
import flash.system.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var medQ:ContextMenuItem;
public var starspassed:uint;
public var mutButton:MovieClip;
public var music:Sound;
public var bonus:uint;
public var starsThisLevel:uint;
public var centerPoint:Point;
public var ship:hero;
public var bg:MovieClip;
public var crossHair:MovieClip;
public var speed:Number;
public var cm:ContextMenu;
public var starsGot:uint;
public var scoreSubmitted:Boolean;
public var timeDiff:uint;
public var score:uint;
public var mouseHid:Boolean;
public var fsMessage:MovieClip;
public var mainMenu:MovieClip;
public var speedTemp:Number;
public var astroLink:URLRequest;
public var fullScreenButton:SimpleButton;
public var levelStarts:Array;
public var textBonus:TextField;
public var newObject:Array;
public var menuItemLabel:String;
public var lives:uint;
public var scoreThisLevel:uint;
public var musicChannel:SoundChannel;
public var mouseRoom:uint;
public var loQ:ContextMenuItem;
public var mouseRoomY:uint;
public var cmi:ContextMenuItem;
public var fogColor:Number;
public var soundOn:Boolean;
public var bonusMultiplyer:uint;
public var txColor:Number;
public var nextBlock:uint;
public var textScore:TextField;
public var scoreSpark:MovieClip;
public var url:String;
public var gameOn:Boolean;
public var hiQ:ContextMenuItem;
public var level:uint;
public var mouseOffset:Point;
public var mouseHideButton:MovieClip;
public var tick:Timer;
public var mm:Boolean;
public var prevTime:uint;
public var bonusPop:MovieClip;
public var mouseOffsetSpring:Point;
public var boostMultiplierTemp:uint;
public var boostMultiplier:uint;
public var textLives:TextField;
public var kongregate:KongregateAPI;
public var boostAmount:Number;
public var demo:Boolean;
public var cTint:Color;
public function MainTimeline(){
addFrameScript(0, frame1, 9, frame10);
}
public function refreshBonus(){
if (bonusMultiplyer > 0){
textBonus.text = ((String(bonusMultiplyer) + "*") + String(bonus));
} else {
textBonus.text = "";
};
}
public function mute(){
if (soundOn){
if (musicChannel != null){
musicChannel.soundTransform = new SoundTransform(1, 0);
};
} else {
if (musicChannel != null){
musicChannel.soundTransform = new SoundTransform(0, 0);
};
};
}
public function killWall(){
this.removeChild(newObject.pop());
}
function frame10(){
stop();
scoreSubmitted = false;
demo = true;
soundOn = true;
mouseHid = true;
mm = false;
astroLink = new URLRequest("http://www.astroflyer.com");
starspassed = 0;
score = 0;
scoreThisLevel = 0;
starsThisLevel = 1000;
starsGot = 0;
bonus = 0;
bonusMultiplyer = 0;
lives = 0;
level = 0;
levelStarts = new Array(100, 235, 380, 560, 970, 1200, 1600, 1980, 2260, 2500);
gameOn = false;
fogColor = 0xFFFFFF;
txColor = 0;
cTint = new Color();
boostAmount = 1.6;
boostMultiplier = 10;
boostMultiplierTemp = 3;
speed = 0.04;
speedTemp = speed;
timeDiff = 0;
prevTime = getTimer();
centerPoint = new Point(300, 170);
mouseOffset = new Point(0, 0);
mouseOffsetSpring = new Point(0, 0);
mouseRoom = 30;
mouseRoomY = 20;
newObject = new Array();
tick = new Timer((15 / speed));
nextBlock = 3;
if (this.root.loaderInfo.url.indexOf("astroflyer.com") != -1){
demo = false;
};
if (this.root.loaderInfo.url.indexOf("gamereclaim.com") != -1){
demo = false;
};
refreshLives();
refreshScore();
refreshBonus();
nextWall();
crossHair.visible = false;
ship.visible = false;
addEventListener(Event.ENTER_FRAME, getTimeDiff);
mouseHideButton.addEventListener(MouseEvent.CLICK, mouseHide);
if (!demo){
fullScreenButton.addEventListener(MouseEvent.CLICK, handleClick);
} else {
fullScreenButton.addEventListener(MouseEvent.ROLL_OVER, fsMessageAppear);
fullScreenButton.addEventListener(MouseEvent.ROLL_OUT, fsMessageDisappear);
fullScreenButton.addEventListener(MouseEvent.CLICK, fsMessageClick);
};
mutButton.addEventListener(MouseEvent.CLICK, muteClick);
}
public function fsMessageDisappear(_arg1:MouseEvent){
fsMessage.visible = false;
}
public function pop(){
bonusPop.gotoAndPlay(2);
}
public function getMouseOffset(_arg1:Event){
mouseOffsetSpring.x = (mouseOffsetSpring.x + ((mouseX - mouseOffsetSpring.x) / (1 + (70 / timeDiff))));
mouseOffsetSpring.y = (mouseOffsetSpring.y + ((mouseY - mouseOffsetSpring.y) / (1 + (70 / timeDiff))));
mouseOffset.x = ((mouseOffsetSpring.x - centerPoint.x) / 5);
mouseOffset.y = ((mouseOffsetSpring.y - centerPoint.y) / 5);
if (mouseOffset.x > mouseRoom){
mouseOffset.x = mouseRoom;
} else {
if (mouseOffset.x < -(mouseRoom)){
mouseOffset.x = -(mouseRoom);
};
};
if (mouseOffset.y > mouseRoomY){
mouseOffset.y = mouseRoomY;
} else {
if (mouseOffset.y < -(mouseRoomY)){
mouseOffset.y = -(mouseRoomY);
};
};
}
public function handleClick(_arg1:MouseEvent):void{
goFullScreen();
}
function frame1(){
MochiAd.showPreGameAd({clip:root, id:"269a8e77d21d33ba", res:"600x340"});
MochiServices.connect("269a8e77d21d33ba", root);
stage.fullScreenSourceRect = new Rectangle(0, 0, 600, 340);
kongregate = new KongregateAPI();
this.addChild(kongregate);
menuItemLabel = "© Astroflyer";
url = "http://www.astroflyer.com";
cm = new ContextMenu();
cm.hideBuiltInItems();
cmi = new ContextMenuItem(menuItemLabel);
cmi.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemSelected);
medQ = new ContextMenuItem("MEDIUM QUALITY");
medQ.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, setMedQ);
hiQ = new ContextMenuItem("HIGH QUALITY");
hiQ.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, setHiQ);
loQ = new ContextMenuItem("LOW QUALITY");
loQ.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, setLoQ);
cm.customItems.push(cmi);
cm.customItems.push(hiQ);
cm.customItems.push(medQ);
cm.customItems.push(loQ);
this.contextMenu = cm;
}
public function refreshScore(){
textScore.text = ("SCORE: " + String(score));
}
public function fsMessageAppear(_arg1:MouseEvent){
if (mainMenu.visible){
fsMessage.visible = true;
};
}
public function doNothing(){
}
public function boostOff(){
removeEventListener(MouseEvent.MOUSE_DOWN, boost);
removeEventListener(MouseEvent.MOUSE_UP, brake);
speed = speedTemp;
ship.gotoAndStop(2);
boostMultiplier = 1;
}
public function popEnd(){
bonusPop.gotoAndPlay(50);
}
public function goFullScreen():void{
if (stage.displayState == StageDisplayState.NORMAL){
stage.displayState = StageDisplayState.FULL_SCREEN;
} else {
stage.displayState = StageDisplayState.NORMAL;
};
}
public function muteClick(_arg1:MouseEvent){
if (soundOn){
soundOn = false;
mutButton.gotoAndStop(3);
if (musicChannel != null){
musicChannel.soundTransform = new SoundTransform(0, 0);
};
} else {
soundOn = true;
mutButton.gotoAndStop(2);
if (musicChannel != null){
musicChannel.soundTransform = new SoundTransform(1, 0);
};
};
}
public function boostOn(){
speedTemp = speed;
addEventListener(MouseEvent.MOUSE_DOWN, boost);
addEventListener(MouseEvent.MOUSE_UP, brake);
}
public function refreshLives(){
textLives.text = ("LIVES: " + String(lives));
}
public function kongScoreSubmit(){
kongregate.scores.submit(score);
}
public function stopGame(){
removeEventListener(Event.ENTER_FRAME, getMouseOffset);
crossHair.visible = false;
ship.visible = false;
mouseOffsetSpring.x = 0;
mouseOffsetSpring.y = 0;
mouseOffset.x = 0;
mouseOffset.y = 0;
textBonus.text = "";
}
public function levelComplete(){
level++;
kongregate.stats.submit("Level", level);
starspassed = 0;
clearGame();
endCombo();
stopGame();
endCombo();
refreshBonus();
scoreThisLevel = 0;
if (starsGot >= starsThisLevel){
mainMenu.gotAllStars = true;
score = (score + 100000);
};
starsGot = 0;
refreshScore();
scoreSpark.gotoAndStop(1);
mainMenu.visible = true;
if (level >= (levelStarts.length - 1)){
mainMenu.gotoAndPlay(350);
} else {
if (((demo) && ((level >= 5)))){
mainMenu.gotoAndPlay(250);
} else {
mainMenu.gotoAndPlay(150);
};
};
this.stage.frameRate = 30;
}
public function tintColor(_arg1:Sprite, _arg2:Number, _arg3:Number):void{
cTint.setTint(_arg2, _arg3);
_arg1.transform.colorTransform = cTint;
}
public function fsMessageClick(_arg1:MouseEvent){
if (mainMenu.visible){
navigateToURL(astroLink, "_blank");
};
}
public function brake(_arg1:MouseEvent){
speed = speedTemp;
ship.gotoAndStop(2);
boostMultiplier = 1;
scoreSpark.gotoAndStop(1);
}
public function nextWall(){
newObject.unshift(new wall());
newObject[0].x = centerPoint.x;
newObject[0].y = centerPoint.y;
newObject[0].visible = false;
addChild(newObject[0]);
setChildIndex(newObject[0], 3);
newObject[0].wallSet.gotoAndStop(nextBlock);
nextBlock++;
}
public function scoreSubmit():void{
MochiScores.showLeaderboard({boardID:"a4b3baea92ae9856", score:score, onClose:function (){
stop();
}});
}
public function setLoQ(_arg1:ContextMenuEvent){
stage.quality = StageQuality.LOW;
}
public function endCombo(){
if (bonusMultiplyer > 0){
score = (score + (bonus * bonusMultiplyer));
scoreThisLevel = (bonus * bonusMultiplyer);
bonus = 0;
bonusMultiplyer = 0;
refreshBonus();
popEnd();
};
}
public function startGame(){
addEventListener(Event.ENTER_FRAME, getMouseOffset);
crossHair.visible = true;
ship.visible = true;
}
public function setMedQ(_arg1:ContextMenuEvent){
stage.quality = StageQuality.MEDIUM;
}
public function reFog(_arg1:uint, _arg2:uint){
var fogFrom:uint;
var st:Number;
var timer:Timer;
var reFogCore:Function;
var killReFogCore:Function;
var fogTo = _arg1;
var txTo = _arg2;
reFogCore = function (_arg1:TimerEvent){
st = (st + 0.02);
fogColor = Color.interpolateColor(fogFrom, fogTo, st);
tintColor(bg, fogColor, 1);
};
killReFogCore = function (_arg1:TimerEvent){
timer.removeEventListener(TimerEvent.TIMER, reFogCore);
timer.removeEventListener(TimerEvent.TIMER_COMPLETE, killReFogCore);
timer.stop();
};
fogFrom = fogColor;
st = 0;
timer = new Timer(10, 50);
timer.start();
timer.addEventListener(TimerEvent.TIMER, reFogCore);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, killReFogCore);
txColor = txTo;
textScore.textColor = txColor;
textBonus.textColor = txColor;
textLives.textColor = txColor;
}
public function mouseHide(_arg1:MouseEvent){
if (mouseHid){
mouseHideButton.gotoAndStop(2);
mouseHid = false;
} else {
mouseHideButton.gotoAndStop(1);
mouseHid = true;
};
}
public function exitFullScreen(){
stage.displayState = StageDisplayState.NORMAL;
}
public function boost(_arg1:MouseEvent){
speed = (speed * boostAmount);
ship.gotoAndStop(5);
boostMultiplier = boostMultiplierTemp;
scoreSpark.gotoAndPlay(2);
}
public function reTime(){
}
public function setHiQ(_arg1:ContextMenuEvent){
stage.quality = StageQuality.HIGH;
}
public function menuItemSelected(_arg1:ContextMenuEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest(url);
navigateToURL(_local2, "_blank");
}
public function resetAll(){
level = 0;
nextBlock = levelStarts[level];
lives = 5;
if (!demo){
lives = (lives + 2);
};
score = 0;
refreshLives();
bonus = 0;
bonusMultiplyer = 0;
}
public function gameOver(){
mainMenu.gotoAndPlay(100);
}
public function getTimeDiff(_arg1:Event){
timeDiff = (getTimer() - prevTime);
prevTime = getTimer();
if (timeDiff > 75){
timeDiff = 75;
};
if (newObject[0].distanc > 12){
nextWall();
};
if (mouseHid){
if (((ship.visible) && ((this.mouseY <= 300)))){
if (mm){
Mouse.hide();
mm = false;
};
} else {
if (!mm){
Mouse.show();
mm = true;
};
};
};
}
public function playerDie(){
lives--;
refreshLives();
score = (score - scoreThisLevel);
scoreThisLevel = 0;
bonus = 0;
bonusMultiplyer = 0;
starsGot = 0;
refreshBonus();
refreshScore();
scoreSpark.gotoAndStop(1);
mainMenu.visible = true;
mainMenu.gotoAndPlay(50);
this.stage.frameRate = 30;
if (lives == 0){
gameOver();
};
}
public function clearGame(){
var _local1:uint;
_local1 = 0;
while (_local1 < newObject.length) {
newObject[_local1].wallSet.gotoAndStop(1);
nextBlock = 1;
_local1++;
};
}
}
}//package ASTROFLYER14_fla
Section 6
//mcGotAllStars_12 (ASTROFLYER14_fla.mcGotAllStars_12)
package ASTROFLYER14_fla {
import flash.display.*;
public dynamic class mcGotAllStars_12 extends MovieClip {
public function mcGotAllStars_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ASTROFLYER14_fla
Section 7
//mouseHideButton_19 (ASTROFLYER14_fla.mouseHideButton_19)
package ASTROFLYER14_fla {
import flash.display.*;
public dynamic class mouseHideButton_19 extends MovieClip {
public function mouseHideButton_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
}
}
}//package ASTROFLYER14_fla
Section 8
//mutButton_17 (ASTROFLYER14_fla.mutButton_17)
package ASTROFLYER14_fla {
import flash.display.*;
public dynamic class mutButton_17 extends MovieClip {
public function mutButton_17(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(2);
this.buttonMode = true;
}
}
}//package ASTROFLYER14_fla
Section 9
//scoreSpark_3 (ASTROFLYER14_fla.scoreSpark_3)
package ASTROFLYER14_fla {
import flash.display.*;
public dynamic class scoreSpark_3 extends MovieClip {
public function scoreSpark_3(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
}
}//package ASTROFLYER14_fla
Section 10
//stars_23 (ASTROFLYER14_fla.stars_23)
package ASTROFLYER14_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class stars_23 extends MovieClip {
public function stars_23(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(parent).bonus = 150;
rotation = 40;
MovieClip(parent.parent.parent).starspassed++;
}
}
}//package ASTROFLYER14_fla
Section 11
//wallSet_21 (ASTROFLYER14_fla.wallSet_21)
package ASTROFLYER14_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class wallSet_21 extends MovieClip {
public var bonus:uint;
public var wheel:MovieClip;
public var door:MovieClip;
public function wallSet_21(){
addFrameScript(0, frame1, 1, frame2, 35, frame36, 100, frame101, 106, frame107, 205, frame206, 234, frame235, 241, frame242, 276, frame277, 354, frame355, 379, frame380, 385, frame386, 529, frame530, 537, frame538, 548, frame549, 559, frame560, 580, frame581, 602, frame603, 616, frame617, 636, frame637, 659, frame660, 681, frame682, 695, frame696, 715, frame716, 763, frame764, 776, frame777, 857, frame858, 871, frame872, 891, frame892, 946, frame947, 963, frame964, 969, frame970, 978, frame979, 979, frame980, 981, frame982, 983, frame984, 984, frame985, 986, frame987, 988, frame989, 989, frame990, 991, frame992, 997, frame998, 1001, frame1002, 1005, frame1006, 1014, frame1015, 1015, frame1016, 1017, frame1018, 1019, frame1020, 1020, frame1021, 1022, frame1023, 0x0400, frame1025, 1025, frame1026, 1027, frame1028, 1033, frame1034, 1037, frame1038, 1041, frame1042, 1046, frame1047, 1052, frame1053, 1054, frame1055, 1057, frame1058, 1059, frame1060, 1065, frame1066, 1069, frame1070, 1073, frame1074, 1082, frame1083, 1083, frame1084, 1085, frame1086, 1087, frame1088, 1088, frame1089, 1090, frame1091, 1092, frame1093, 1093, frame1094, 1095, frame1096, 1101, frame1102, 1105, frame1106, 1113, frame1114, 1115, frame1116, 1117, frame1118, 1118, frame1119, 1120, frame1121, 1122, frame1123, 1123, frame1124, 1125, frame1126, 1131, frame1132, 1135, frame1136, 1139, frame1140, 1150, frame1151, 1177, frame1178, 1199, frame1200, 1206, frame1207, 1228, frame1229, 1242, frame1243, 1262, frame1263, 0x0505, frame1286, 1307, frame1308, 1321, frame1322, 1341, frame1342, 1389, frame1390, 1402, frame1403, 1483, frame1484, 1497, frame1498, 1517, frame1518, 1580, frame1581, 1600, frame1601, 1619, frame1620, 1666, frame1667, 1700, frame1701, 1702, frame1703, 1705, frame1706, 1709, frame1710, 1712, frame1713, 1714, frame1715, 1716, frame1717, 1718, frame1719, 1721, frame1722, 1725, frame1726, 1728, frame1729, 1730, frame1731, 1734, frame1735, 1736, frame1737, 1739, frame1740, 1743, frame1744, 1746, frame1747, 1748, frame1749, 1753, frame1754, 1756, frame1757, 1760, frame1761, 1763, frame1764, 1765, frame1766, 1767, frame1768, 1769, frame1770, 1772, frame1773, 1776, frame1777, 1779, frame1780, 1781, frame1782, 1785, frame1786, 1787, frame1788, 1790, frame1791, 1794, frame1795, 1797, frame1798, 0x0707, frame1800, 1802, frame1803, 1805, frame1806, 1807, frame1808, 1811, frame1812, 1813, frame1814, 1816, frame1817, 1820, frame1821, 1823, frame1824, 1825, frame1826, 1947, frame1948, 1979, frame1980, 2014, frame2015, 2052, frame2053, 2073, frame2074, 2123, frame2124, 2231, frame2232, 2259, frame2260, 2273, frame2274, 2279, frame2280, 2286, frame2287, 2293, frame2294, 2299, frame2300, 2303, frame2304, 2306, frame2307, 2309, frame2310, 2312, frame2313, 2315, frame2316, 2318, frame2319, 2321, frame2322, 2324, frame2325, 2327, frame2328, 2330, frame2331, 2333, frame2334, 2349, frame2350, 2353, frame2354, 2358, frame2359, 2363, frame2364, 2367, frame2368, 2371, frame2372, 2375, frame2376, 2380, frame2381, 2385, frame2386, 2389, frame2390, 2395, frame2396, 2398, frame2399, 2401, frame2402, 2404, frame2405, 2407, frame2408, 2410, frame2411, 2413, frame2414, 2416, frame2417, 2419, frame2420, 2422, frame2423, 2478, frame2479, 2499, frame2500, 2506, frame2507, 2528, frame2529, 2542, frame2543, 2562, frame2563, 2585, frame2586, 2607, frame2608, 2621, frame2622, 2641, frame2642, 2689, frame2690, 2702, frame2703, 2783, frame2784, 2797, frame2798, 2817, frame2818, 2880, frame2881, 2999, frame3000, 3011, frame3012, 3023, frame3024, 3035, frame3036, 3036, frame3037, 3037, frame3038);
}
function frame2386(){
this.wheel.rot = 100;
this.wheel.sp = -0.38;
this.wheel.wheelSet.gotoAndStop(9);
}
function frame277(){
MovieClip(parent.parent).reFog(0x3300, 0xFFFFFF);
}
function frame1060(){
this.wheel.rot = 20;
this.wheel.sp = -0.12;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame2274(){
this.wheel.rot = 190;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame2396(){
this.wheel.rot = 100;
this.wheel.sp = -0.1;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame1066(){
this.wheel.rot = 190;
this.wheel.sp = -0.13;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame1980(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
speed = 0.1;
starsThisLevel = 1;
boostAmount = 1.4;
reFog(0xFFFFFF, 0);
boostOn();
music = new musicLevel07();
musicChannel = music.play(0, 20, null);
musicChannel.soundTransform = new SoundTransform(0, 0);
mute();
};
}
function frame2399(){
this.wheel.rot = 130;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(7);
}
function frame716(){
MovieClip(parent.parent).reFog(0xFF00CC, 0);
}
function frame1620(){
MovieClip(parent.parent).reFog(14741723, 1135889);
}
function frame1744(){
this.door.rot = 0;
this.door.sp = -2;
this.door.position = 550;
this.door.doorSet.gotoAndStop(2);
}
function frame1740(){
this.door.rot = 50;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame2703(){
MovieClip(parent.parent).reFog(0xFFFFFF, 0);
}
function frame1749(){
this.door.rot = 40;
this.door.sp = -2;
this.door.position = 900;
this.door.doorSet.gotoAndStop(2);
}
function frame1747(){
this.door.rot = 20;
this.door.sp = -2;
this.door.position = 300;
this.door.doorSet.gotoAndStop(2);
}
function frame3000(){
this.wheel.rot = 100;
this.wheel.sp = 1;
}
function frame1070(){
this.wheel.rot = 190;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame2390(){
this.wheel.rot = 20;
this.wheel.sp = 0.3;
this.wheel.wheelSet.gotoAndStop(9);
}
function frame1074(){
this.wheel.rot = 190;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame3012(){
}
function frame603(){
MovieClip(parent.parent).reFog(153, 0);
}
function frame964(){
MovieClip(parent.parent).levelComplete();
}
function frame1754(){
this.door.rot = 5;
this.door.sp = -2;
this.door.position = 500;
this.door.doorSet.gotoAndStop(2);
}
function frame2287(){
this.wheel.rot = 140;
this.wheel.sp = 0.08;
this.wheel.wheelSet.gotoAndStop(8);
}
function frame2280(){
this.wheel.rot = 190;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(7);
}
function frame1757(){
this.door.rot = 50;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame1518(){
MovieClip(parent.parent).reFog(0xFF00CC, 0);
}
function frame970(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
speed = 0.08;
starsThisLevel = 32;
boostAmount = 1.4;
reFog(16777181, 0);
boostOn();
music = new musicLevel05();
musicChannel = music.play(0, 20, null);
mute();
};
}
function frame1084(){
this.wheel.rot = 20;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame2053(){
MovieClip(parent.parent).reFog(3394815, 0xFFFFFF);
}
function frame1086(){
this.wheel.rot = 20;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1088(){
this.wheel.rot = 100;
this.wheel.sp = -0.14;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame2294(){
this.wheel.rot = 190;
this.wheel.sp = 0.09;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame1764(){
this.door.rot = 20;
this.door.sp = -2;
this.door.position = 300;
this.door.doorSet.gotoAndStop(2);
}
function frame2608(){
MovieClip(parent.parent).reFog(0xFFFFFF, 0);
}
function frame858(){
MovieClip(parent.parent).reFog(153, 0);
}
function frame1083(){
this.wheel.rot = 100;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1403(){
MovieClip(parent.parent).reFog(0xFFFFFF, 0);
}
function frame2(){
MovieClip(parent.parent).nextBlock = 1;
}
function frame979(){
this.wheel.rot = 100;
this.wheel.sp = -0.1;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame617(){
MovieClip(parent.parent).reFog(3054690, 0);
}
function frame984(){
this.wheel.rot = 100;
this.wheel.sp = -0.04;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame985(){
this.wheel.rot = 20;
this.wheel.sp = -0.13;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1(){
bonus = 0;
}
function frame982(){
this.wheel.rot = 20;
this.wheel.sp = -0.15;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1094(){
this.wheel.rot = 20;
this.wheel.sp = -0.04;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1089(){
this.wheel.rot = 20;
this.wheel.sp = -0.08;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1096(){
this.wheel.rot = 20;
this.wheel.sp = -0.07;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame2622(){
MovieClip(parent.parent).reFog(11184738, 0);
}
function frame980(){
this.wheel.rot = 20;
this.wheel.sp = -0.18;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame989(){
this.wheel.rot = 100;
this.wheel.sp = -0.14;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1093(){
this.wheel.rot = 100;
this.wheel.sp = 0.07;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1773(){
this.door.rot = 50;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame1768(){
this.door.rot = 10;
this.door.sp = -2;
this.door.position = 600;
this.door.doorSet.gotoAndStop(2);
}
function frame1761(){
this.door.rot = 0;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame1091(){
this.wheel.rot = 20;
this.wheel.sp = -0.1;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame2507(){
MovieClip(parent.parent).reFog(10944511, 0);
}
function frame2500(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
speed = 0.11;
starsThisLevel = 146;
boostAmount = 1.4;
reFog(0xFFFFFF, 0);
boostOn();
music = new musicLevel06();
musicChannel = music.play(0, 20, null);
mute();
};
}
function frame1766(){
this.door.rot = 40;
this.door.sp = -2;
this.door.position = 900;
this.door.doorSet.gotoAndStop(2);
}
function frame990(){
this.wheel.rot = 20;
this.wheel.sp = -0.12;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1770(){
this.door.rot = 5;
this.door.sp = -2;
this.door.position = 550;
this.door.doorSet.gotoAndStop(2);
}
function frame872(){
MovieClip(parent.parent).reFog(3054690, 0);
}
function frame3038(){
this.wheel.rot = 100;
this.wheel.sp = -1;
this.wheel.wheelSet.gotoAndStop(2);
}
function frame992(){
this.wheel.rot = 20;
this.wheel.sp = -0.12;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame2074(){
MovieClip(parent.parent).reFog(0xFFFFFF, 0);
}
function frame36(){
MovieClip(parent.parent).nextBlock = 5;
}
function frame1786(){
this.door.rot = 10;
this.door.sp = -2;
this.door.position = 600;
this.door.doorSet.gotoAndStop(2);
}
function frame637(){
MovieClip(parent.parent).reFog(0xFF00CC, 0);
}
function frame1777(){
this.door.rot = 0;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame1308(){
MovieClip(parent.parent).reFog(0xFFFFFF, 0);
}
function frame987(){
this.wheel.rot = 20;
this.wheel.sp = -0.12;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame998(){
this.wheel.rot = 190;
this.wheel.sp = -0.13;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame3037(){
this.door.rot = 10;
this.door.sp = -2;
this.door.position = 600;
}
function frame1780(){
this.door.rot = 20;
this.door.sp = -2;
this.door.position = 300;
this.door.doorSet.gotoAndStop(2);
}
function frame1782(){
this.door.rot = 40;
this.door.sp = -2;
this.door.position = 900;
this.door.doorSet.gotoAndStop(2);
}
function frame3036(){
}
function frame764(){
MovieClip(parent.parent).reFog(3054690, 0);
}
function frame1667(){
this.door.rot = 10;
this.door.sp = -2;
this.door.position = 1200;
this.door.doorSet.gotoAndStop(2);
}
function frame2881(){
MovieClip(parent.parent).levelComplete();
}
function frame1795(){
this.door.rot = 0;
this.door.sp = -2;
this.door.position = 550;
this.door.doorSet.gotoAndStop(2);
}
function frame2402(){
this.wheel.rot = 100;
this.wheel.sp = 0.12;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame1788(){
this.door.rot = 5;
this.door.sp = -2;
this.door.position = 500;
this.door.doorSet.gotoAndStop(2);
}
function frame2408(){
this.wheel.rot = 200;
this.wheel.sp = -0.12;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame1798(){
this.door.rot = 20;
this.door.sp = -2;
this.door.position = 300;
this.door.doorSet.gotoAndStop(2);
}
function frame1791(){
this.door.rot = 50;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame2405(){
this.wheel.rot = 180;
this.wheel.sp = -0.11;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame2529(){
MovieClip(parent.parent).reFog(11431422, 0);
}
function frame3024(){
this.wheel.rot = 100;
this.wheel.sp = 1;
}
function frame892(){
MovieClip(parent.parent).reFog(0xFF00CC, 0);
}
function frame530(){
this.wheel.rot = 100;
this.wheel.sp = -0.6;
this.wheel.wheelSet.gotoAndStop(2);
}
function frame2642(){
MovieClip(parent.parent).reFog(16755404, 0);
}
function frame777(){
MovieClip(parent.parent).reFog(153, 0);
}
function frame538(){
MovieClip(parent.parent).reFog(0xFFFFFF, 0xFFFFFF);
}
function frame1200(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
speed = 0.1;
starsThisLevel = 168;
boostAmount = 1.4;
reFog(0xFFFFFF, 0);
boostOn();
music = new musicLevel06();
musicChannel = music.play(0, 20, null);
mute();
};
}
function frame1322(){
MovieClip(parent.parent).reFog(11184738, 0);
}
function frame2414(){
this.wheel.rot = 130;
this.wheel.sp = -0.1;
this.wheel.wheelSet.gotoAndStop(7);
}
function frame1207(){
MovieClip(parent.parent).reFog(10944511, 0);
}
function frame2411(){
this.wheel.rot = 100;
this.wheel.sp = -0.13;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame660(){
MovieClip(parent.parent).reFog(16724889, 0);
}
function frame549(){
MovieClip(parent.parent).levelComplete();
}
function frame2300(){
this.wheel.rot = 190;
this.wheel.sp = -0.12;
this.wheel.wheelSet.gotoAndStop(7);
}
function frame2543(){
MovieClip(parent.parent).reFog(16751714, 0);
}
function frame2307(){
this.wheel.rot = 100;
this.wheel.sp = -0.08;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame2417(){
this.wheel.rot = 100;
this.wheel.sp = 0.12;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame2304(){
this.door.rot = 20;
this.door.sp = -2;
this.door.position = 200;
this.door.doorSet.gotoAndStop(2);
}
function frame2784(){
MovieClip(parent.parent).reFog(0xFFFFFF, 0);
}
function frame2423(){
this.wheel.rot = 200;
this.wheel.sp = -0.11;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame2420(){
this.wheel.rot = 180;
this.wheel.sp = -0.1;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame1342(){
MovieClip(parent.parent).reFog(16755404, 0);
}
function frame2313(){
this.wheel.rot = 100;
this.wheel.sp = 0.095;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame1106(){
this.wheel.rot = 190;
this.wheel.sp = -0.08;
this.wheel.wheelSet.gotoAndStop(5);
}
function frame2310(){
this.wheel.rot = 130;
this.wheel.sp = -0.07;
this.wheel.wheelSet.gotoAndStop(7);
}
function frame1229(){
MovieClip(parent.parent).reFog(11431422, 0);
}
function frame1581(){
MovieClip(parent.parent).levelComplete();
}
function frame2316(){
this.wheel.rot = 180;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame1102(){
this.wheel.rot = 190;
this.wheel.sp = -0.07;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame2798(){
MovieClip(parent.parent).reFog(3054690, 0);
}
function frame560(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
reFog(5364991, 0);
speed = 0.065;
boostAmount = 1.3;
boostOn();
starsThisLevel = 41;
music = new musicLevel04();
musicChannel = music.play(0, 10, null);
mute();
};
}
function frame682(){
MovieClip(parent.parent).reFog(153, 0);
}
function frame2319(){
this.wheel.rot = 200;
this.wheel.sp = -0.1;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame206(){
MovieClip(parent.parent).levelComplete();
}
function frame2563(){
MovieClip(parent.parent).reFog(0xFFFFFF, 0);
}
function frame2322(){
this.wheel.rot = 100;
this.wheel.sp = -0.095;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame1114(){
this.wheel.rot = 20;
this.wheel.sp = -0.18;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame2325(){
this.wheel.rot = 130;
this.wheel.sp = -0.08;
this.wheel.wheelSet.gotoAndStop(7);
}
function frame1116(){
this.wheel.rot = 20;
this.wheel.sp = -0.15;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1119(){
this.wheel.rot = 20;
this.wheel.sp = -0.13;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1118(){
this.wheel.rot = 100;
this.wheel.sp = -0.04;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame2328(){
this.wheel.rot = 100;
this.wheel.sp = 0.1;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame2690(){
MovieClip(parent.parent).reFog(3054690, 0);
}
function frame1121(){
this.wheel.rot = 20;
this.wheel.sp = -0.12;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame696(){
MovieClip(parent.parent).reFog(3054690, 0);
}
function frame1002(){
this.wheel.rot = 190;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame1124(){
this.wheel.rot = 20;
this.wheel.sp = -0.12;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1006(){
this.wheel.rot = 190;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame1484(){
MovieClip(parent.parent).reFog(0xFFFFFF, 0);
}
function frame1243(){
MovieClip(parent.parent).reFog(16751714, 0);
}
function frame1123(){
this.wheel.rot = 100;
this.wheel.sp = -0.14;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame2334(){
this.wheel.rot = 200;
this.wheel.sp = -0.11;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame1803(){
this.door.rot = 0;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame1126(){
this.wheel.rot = 20;
this.wheel.sp = -0.12;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame1806(){
this.door.rot = 20;
this.door.sp = -2;
this.door.position = 300;
this.door.doorSet.gotoAndStop(2);
}
function frame2331(){
this.wheel.rot = 180;
this.wheel.sp = -0.1;
this.wheel.wheelSet.gotoAndStop(6);
}
function frame101(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
speed = 0.15;
boostAmount = 1.5;
reTime();
starsThisLevel = 36;
scoreSubmitted = false;
};
}
function frame107(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
speed = 0.03;
speedTemp = 0.04;
reTime();
boostOn();
music = new musicLevel01();
musicChannel = music.play(0, 10, null);
mute();
};
}
function frame2586(){
MovieClip(parent.parent).reFog(16755455, 0);
}
function frame1498(){
MovieClip(parent.parent).reFog(3054690, 0);
}
function frame581(){
MovieClip(parent.parent).reFog(16724889, 0);
}
function frame1016(){
this.wheel.rot = 20;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1018(){
this.wheel.rot = 20;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1812(){
this.door.rot = 10;
this.door.sp = -2;
this.door.position = 600;
this.door.doorSet.gotoAndStop(2);
}
function frame1800(){
this.door.rot = 40;
this.door.sp = -2;
this.door.position = 900;
this.door.doorSet.gotoAndStop(2);
}
function frame1015(){
this.wheel.rot = 100;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1817(){
this.door.rot = 50;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame1132(){
this.wheel.rot = 190;
this.wheel.sp = -0.13;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame1136(){
this.wheel.rot = 190;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame235(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
speed = 0.18;
starsThisLevel = 30;
};
}
function frame1140(){
this.wheel.rot = 190;
this.wheel.sp = -0.09;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame1020(){
this.wheel.rot = 100;
this.wheel.sp = -0.14;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1021(){
this.wheel.rot = 20;
this.wheel.sp = -0.08;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1025(){
this.wheel.rot = 100;
this.wheel.sp = 0.07;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1026(){
this.wheel.rot = 20;
this.wheel.sp = -0.04;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame2479(){
MovieClip(parent.parent).levelComplete();
}
function frame1028(){
this.wheel.rot = 20;
this.wheel.sp = -0.07;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame355(){
MovieClip(parent.parent).levelComplete();
}
function frame1826(){
this.door.rot = 40;
this.door.sp = -2;
this.door.position = 900;
this.door.doorSet.gotoAndStop(2);
}
function frame1706(){
this.door.rot = 50;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame1263(){
MovieClip(parent.parent).reFog(0xFFFFFF, 0);
}
function frame1701(){
this.door.rot = 10;
this.door.sp = -2;
this.door.position = 600;
this.door.doorSet.gotoAndStop(2);
}
function frame1023(){
this.wheel.rot = 20;
this.wheel.sp = -0.1;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1703(){
this.door.rot = 5;
this.door.sp = -2;
this.door.position = 500;
this.door.doorSet.gotoAndStop(2);
}
function frame1948(){
MovieClip(parent.parent).levelComplete();
}
function frame2350(){
this.wheel.rot = 130;
this.wheel.sp = -0.2;
this.wheel.wheelSet.gotoAndStop(9);
}
function frame1808(){
this.door.rot = 40;
this.door.sp = -2;
this.door.position = 900;
this.door.doorSet.gotoAndStop(2);
}
function frame1814(){
this.door.rot = 5;
this.door.sp = -2;
this.door.position = 500;
this.door.doorSet.gotoAndStop(2);
}
function frame1390(){
MovieClip(parent.parent).reFog(3054690, 0);
}
function frame1151(){
}
function frame242(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
speed = 0.035;
boostAmount = 1.4;
boostOn();
music = new musicLevel02();
musicChannel = music.play(0, 20, null);
mute();
};
}
function frame2364(){
this.wheel.rot = 250;
this.wheel.sp = -0.38;
this.wheel.wheelSet.gotoAndStop(9);
}
function frame1034(){
this.wheel.rot = 190;
this.wheel.sp = -0.07;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame2354(){
this.wheel.rot = 130;
this.wheel.sp = -0.08;
this.wheel.wheelSet.gotoAndStop(7);
}
function frame2368(){
this.wheel.rot = 178;
this.wheel.sp = 0.3;
this.wheel.wheelSet.gotoAndStop(9);
}
function frame1038(){
this.wheel.rot = 190;
this.wheel.sp = -0.08;
this.wheel.wheelSet.gotoAndStop(5);
}
function frame1710(){
this.door.rot = 0;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame2359(){
this.wheel.rot = 20;
this.wheel.sp = 0.35;
this.wheel.wheelSet.gotoAndStop(9);
}
function frame1715(){
this.door.rot = 40;
this.door.sp = -2;
this.door.position = 900;
this.door.doorSet.gotoAndStop(2);
}
function frame1717(){
this.door.rot = 10;
this.door.sp = -2;
this.door.position = 600;
this.door.doorSet.gotoAndStop(2);
}
function frame1719(){
this.door.rot = 5;
this.door.sp = -2;
this.door.position = 550;
this.door.doorSet.gotoAndStop(2);
}
function frame1713(){
this.door.rot = 20;
this.door.sp = -2;
this.door.position = 300;
this.door.doorSet.gotoAndStop(2);
}
function frame2124(){
MovieClip(parent.parent).reFog(3394815, 0xFFFFFF);
}
function frame1821(){
this.door.rot = 0;
this.door.sp = -2;
this.door.position = 550;
this.door.doorSet.gotoAndStop(2);
}
function frame1824(){
this.door.rot = 20;
this.door.sp = -2;
this.door.position = 300;
this.door.doorSet.gotoAndStop(2);
}
function frame2232(){
MovieClip(parent.parent).levelComplete();
}
function frame2372(){
this.wheel.rot = 100;
this.wheel.sp = -0.2;
this.wheel.wheelSet.gotoAndStop(9);
}
function frame1042(){
this.wheel.rot = 190;
this.wheel.sp = -0.11;
this.wheel.wheelSet.gotoAndStop(4);
}
function frame1286(){
MovieClip(parent.parent).reFog(16755455, 0);
}
function frame2376(){
this.wheel.rot = 250;
this.wheel.sp = -0.08;
this.wheel.wheelSet.gotoAndStop(7);
}
function frame1047(){
this.wheel.rot = 190;
this.wheel.sp = -0.1;
this.wheel.wheelSet.gotoAndStop(5);
}
function frame1601(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
speed = 0.093;
starsThisLevel = 14;
boostAmount = 1.4;
reFog(0xFFFFFF, 0);
boostOn();
music = new musicLevel04();
musicChannel = music.play(0, 20, null);
mute();
};
}
function frame2015(){
MovieClip(parent.parent).reFog(0, 0xFFFFFF);
}
function frame1726(){
this.door.rot = 0;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame1722(){
this.door.rot = 50;
this.door.sp = -2;
this.door.position = 800;
this.door.doorSet.gotoAndStop(2);
}
function frame380(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
reFog(69922, 0xFFFFFF);
speed = 0.04;
boostAmount = 1.4;
reTime();
boostOn();
starsThisLevel = 42;
};
}
function frame1729(){
this.door.rot = 20;
this.door.sp = -2;
this.door.position = 300;
this.door.doorSet.gotoAndStop(2);
}
function frame386(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
music = new musicLevel03();
musicChannel = music.play(0, 10, null);
mute();
};
}
function frame2260(){
var _local2 = MovieClip(parent.parent);
with (_local2) {
speed = 0.08;
starsThisLevel = 25;
boostAmount = 1.4;
reFog(0xFFFFFF, 0);
boostOn();
music = new musicLevel02();
musicChannel = music.play(0, 20, null);
mute();
};
}
function frame2818(){
MovieClip(parent.parent).reFog(0xFF00CC, 0);
}
function frame1055(){
this.wheel.rot = 190;
this.wheel.sp = -0.07;
this.wheel.wheelSet.gotoAndStop(5);
}
function frame1178(){
MovieClip(parent.parent).levelComplete();
}
function frame1058(){
this.wheel.rot = 20;
this.wheel.sp = -0.12;
this.wheel.wheelSet.gotoAndStop(3);
}
function frame1053(){
this.wheel.rot = 190;
this.wheel.sp = 0.1;
this.wheel.wheelSet.gotoAndStop(5);
}
function frame947(){
this.wheel.rot = 100;
this.wheel.sp = -0.6;
this.wheel.wheelSet.gotoAndStop(2);
}
function frame1737(){
this.door.rot = 5;
this.door.sp = -2;
this.door.position = 500;
this.door.doorSet.gotoAndStop(2);
}
function frame1731(){
this.door.rot = 40;
this.door.sp = -2;
this.door.position = 900;
this.door.doorSet.gotoAndStop(2);
}
function frame1735(){
this.door.rot = 10;
this.door.sp = -2;
this.door.position = 600;
this.door.doorSet.gotoAndStop(2);
}
function frame2381(){
this.wheel.rot = 300;
this.wheel.sp = 0.35;
this.wheel.wheelSet.gotoAndStop(9);
}
}
}//package ASTROFLYER14_fla
Section 12
//wheel01_24 (ASTROFLYER14_fla.wheel01_24)
package ASTROFLYER14_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class wheel01_24 extends MovieClip {
public var wheelSet:MovieClip;
public var sp:Number;
public var rot:uint;
public function wheel01_24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.rotation = rot;
addEventListener(Event.ENTER_FRAME, spin);
addEventListener(Event.REMOVED_FROM_STAGE, die);
}
public function spin(_arg1:Event){
this.rotation = (this.rotation + (MovieClip(parent.parent.parent).timeDiff * sp));
}
public function die(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, spin);
removeEventListener(Event.REMOVED_FROM_STAGE, die);
}
}
}//package ASTROFLYER14_fla
Section 13
//wheelSet_25 (ASTROFLYER14_fla.wheelSet_25)
package ASTROFLYER14_fla {
import flash.display.*;
public dynamic class wheelSet_25 extends MovieClip {
public function wheelSet_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ASTROFLYER14_fla
Section 14
//KongregateEvent (com.kongregate.as3.client.events.KongregateEvent)
package com.kongregate.as3.client.events {
import flash.events.*;
public class KongregateEvent extends Event {
public static const COMPLETE:String = "component_api_available";
public function KongregateEvent(_arg1:String){
super(_arg1);
}
}
}//package com.kongregate.as3.client.events
Section 15
//AbstractShadowService (com.kongregate.as3.client.services.AbstractShadowService)
package com.kongregate.as3.client.services {
import flash.events.*;
public class AbstractShadowService extends EventDispatcher {
protected function alert(_arg1:String, _arg2:String, _arg3="", _arg4:String=""):void{
trace(((((((("Kongregate API: " + _arg1) + ".") + _arg2) + "(") + _arg3) + ") ") + _arg4));
}
}
}//package com.kongregate.as3.client.services
Section 16
//HighScoreServiceShadow (com.kongregate.as3.client.services.HighScoreServiceShadow)
package com.kongregate.as3.client.services {
public class HighScoreServiceShadow extends AbstractShadowService implements IHighScoreServices {
private var mode:String;
public function HighScoreServiceShadow(){
mode = "";
}
public function submit(_arg1:Number, _arg2:String=null):void{
alert("IHighScoreServices", "submit", arguments);
}
public function connect():Boolean{
alert("IKongregateServices", "connect");
return (true);
}
public function requestList(_arg1:Function):void{
alert("IHighScoreServices", "requestList", "", (("[Mode: " + mode) + "]"));
_arg1({success:false});
}
public function setMode(_arg1:String):void{
alert("IHighScoreServices", "setMode", arguments);
this.mode = _arg1;
}
}
}//package com.kongregate.as3.client.services
Section 17
//IHighScoreServices (com.kongregate.as3.client.services.IHighScoreServices)
package com.kongregate.as3.client.services {
public interface IHighScoreServices {
function setMode(_arg1:String):void;
function submit(_arg1:Number, _arg2:String=null):void;
function requestList(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 18
//IKongregateServices (com.kongregate.as3.client.services.IKongregateServices)
package com.kongregate.as3.client.services {
import flash.events.*;
public interface IKongregateServices extends IEventDispatcher {
function getPlayerInfo(_arg1:Function):void;
function connect(_arg1:Number=-1):Boolean;
}
}//package com.kongregate.as3.client.services
Section 19
//IStatServices (com.kongregate.as3.client.services.IStatServices)
package com.kongregate.as3.client.services {
public interface IStatServices {
function submitArray(_arg1:Array):void;
function submit(_arg1:String, _arg2:Number):void;
}
}//package com.kongregate.as3.client.services
Section 20
//IUserServices (com.kongregate.as3.client.services.IUserServices)
package com.kongregate.as3.client.services {
public interface IUserServices {
function getName():String;
function getPlayerInfo(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 21
//KongregateServiceShadow (com.kongregate.as3.client.services.KongregateServiceShadow)
package com.kongregate.as3.client.services {
public class KongregateServiceShadow extends AbstractShadowService implements IKongregateServices {
public function getName():String{
alert("IKongregateServices", "getName");
return ("Guest");
}
public function connect(_arg1:Number=-1):Boolean{
alert("IKongregateServices", "connect", arguments);
return (true);
}
public function getPlayerInfo(_arg1:Function):void{
alert("IKongregateServices", "getPlayerInfo");
_arg1(new Object());
}
}
}//package com.kongregate.as3.client.services
Section 22
//StatServiceShadow (com.kongregate.as3.client.services.StatServiceShadow)
package com.kongregate.as3.client.services {
public class StatServiceShadow extends AbstractShadowService implements IStatServices {
public function submitArray(_arg1:Array):void{
alert("IStatServices", "submitArray", arguments);
}
public function submit(_arg1:String, _arg2:Number):void{
alert("IStatServices", "submitStat", arguments);
}
}
}//package com.kongregate.as3.client.services
Section 23
//UserServiceShadow (com.kongregate.as3.client.services.UserServiceShadow)
package com.kongregate.as3.client.services {
public class UserServiceShadow extends AbstractShadowService implements IUserServices {
public function getName():String{
alert("UserService", "getName");
return ("Guest");
}
public function getPlayerInfo(_arg1:Function):void{
alert("UserService", "getPlayerInfo");
_arg1({isGuest:true, name:"Guest", points:0, level:0, isMode:false, isAdmin:false, isDeveloper:false, avatarPath:"", chatAvatarPath:""});
}
}
}//package com.kongregate.as3.client.services
Section 24
//IAPIBootstrap (com.kongregate.as3.client.IAPIBootstrap)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
public interface IAPIBootstrap {
function init(_arg1:Event=null, _arg2:Stage=null):void;
function hideLog():void;
function showLog(_arg1:int=0):void;
}
}//package com.kongregate.as3.client
Section 25
//KongregateAPI (com.kongregate.as3.client.KongregateAPI)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
import com.kongregate.as3.client.services.*;
import com.kongregate.as3.client.events.*;
import flash.system.*;
import flash.net.*;
import flash.utils.*;
import flash.errors.*;
public class KongregateAPI extends Sprite {
private const VERSION:Number = 1;
private var loader:Loader;
private var loadedDomain:ApplicationDomain;
private static const CLASS_USER:String = "com.kongregate.as3.client.services.UserServices";
private static const CLASS_STATS:String = "com.kongregate.as3.client.services.StatServices";
private static const CLASS_SERVICES:String = "com.kongregate.as3.client.services.KongregateServices";
private static const CLASS_SCORES:String = "com.kongregate.as3.client.services.HighScoreServices";
private static const DEBUG_API_URL:String = "//Linuxpc/kongregate/public/flash/API_AS3.swf";
private static var _connected:Boolean;
private static var kUser:IUserServices;
private static var _loaded:Boolean;
private static var kServices:IKongregateServices;
private static var kScores:IHighScoreServices;
private static var mInstance:KongregateAPI;
private static var kStats:IStatServices;
private static var kAPI:IAPIBootstrap;
public function KongregateAPI(){
if (mInstance != null){
throw (new Error("Warning: KongregateAPI has been added to stage more than once or accessed improperly. Use getInstance() or a stage reference to access."));
};
mInstance = this;
this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
}
public function get loaded():Boolean{
return (_loaded);
}
public function get connected():Boolean{
return (_connected);
}
private function alertConnected(_arg1:TimerEvent=null):void{
var _local2:KongregateEvent;
var _local3:Boolean;
_local2 = new KongregateEvent(KongregateEvent.COMPLETE);
_local3 = this.dispatchEvent(_local2);
}
private function init(_arg1:Event):void{
var _local2:Object;
var _local3:String;
var _local4:URLRequest;
var _local5:LoaderContext;
this.removeEventListener(Event.ADDED_TO_STAGE, init);
_loaded = false;
_connected = false;
_local2 = LoaderInfo(root.loaderInfo).parameters;
_local3 = _local2.api_path;
if (_local3 == null){
trace("Alert: Kongregate API could not be loaded, due to local testing. API will load when the game is uploaded.");
createShadowServices();
return;
};
Security.allowDomain("*.kongregate.com");
Security.allowDomain("kongregatetrunk.com");
_local4 = new URLRequest(_local3);
_local5 = new LoaderContext(false);
_local5.applicationDomain = ApplicationDomain.currentDomain;
_local5.securityDomain = SecurityDomain.currentDomain;
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.load(_local4, _local5);
}
public function get api():IAPIBootstrap{
return (kAPI);
}
private function loadComplete(_arg1:Event):void{
getServices();
}
public function get scores():IHighScoreServices{
return (kScores);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
throw (new IOError(("API file not found. " + _arg1)));
}
public function get services():IKongregateServices{
return (kServices);
}
public function get stats():IStatServices{
return (kStats);
}
private function createShadowServices():void{
var _local1:Timer;
trace(">>> Kongregate Shadow Services instantiated for local development..");
kServices = new KongregateServiceShadow();
kScores = new HighScoreServiceShadow();
kStats = new StatServiceShadow();
kUser = new UserServiceShadow();
_local1 = new Timer(200, 1);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, alertConnected);
_local1.start();
_connected = true;
}
public function get user():IUserServices{
return (kUser);
}
private function getServices():void{
var _local1:ApplicationDomain;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = ApplicationDomain.currentDomain;
kAPI = IAPIBootstrap(loader.getChildAt(0));
this.addChild(loader);
_local2 = _local1.getDefinition(CLASS_SERVICES);
trace(_local2);
kServices = _local2.getInstance();
_local3 = _local1.getDefinition(CLASS_SCORES);
kScores = _local3.getInstance();
_local4 = _local1.getDefinition(CLASS_STATS);
kStats = _local4.getInstance();
_local5 = _local1.getDefinition(CLASS_USER);
kUser = _local5.getInstance();
kServices.connect(VERSION);
_loaded = true;
_connected = true;
alertConnected();
}
public static function getInstance():KongregateAPI{
if (!mInstance){
throw (new IllegalOperationError("You must add the Kongregate API component to the stage before attempting to access it."));
};
return (mInstance);
}
}
}//package com.kongregate.as3.client
Section 26
//Color (fl.motion.Color)
package fl.motion {
import flash.display.*;
import flash.geom.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 27
//MochiScores (mochi.MochiScores)
package mochi {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var options = _arg1;
if (options != null){
if (options.clip != null){
if ((options.clip is Sprite)){
MochiServices.setContainer(options.clip);
};
delete options.clip;
} else {
MochiServices.setContainer();
};
MochiServices.stayOnTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
//unresolved jump
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
//unresolved jump
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.play();
//unresolved jump
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
_local2 = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (_arg1 != null){
if (_arg1.error != null){
if (_arg1.error == true){
if (onErrorHandler != null){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
};
};
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi
Section 28
//MochiServices (mochi.MochiServices)
package mochi {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.net.*;
import flash.utils.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
private static var _sendChannel:LocalConnection;
private static var _rcvChannelName:String;
private static var _gatewayURL:String = "http://www.mochiads.com/static/lib/services/services.swf";
private static var _clip:MovieClip;
private static var _loader:Loader;
private static var _id:String;
private static var _listenChannel:LocalConnection;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _startTime:Number;
private static var _connecting:Boolean = false;
public static var onError:Object;
private static var _listenChannelName:String = "__mochiservices";
private static var _rcvChannel:LocalConnection;
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
onError("NotConnected");
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_clip._nextcallbackID++;
};
};
}
public static function get connected():Boolean{
return (_connected);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (_clip != null){
if (_clip._queue != null){
while (_clip._queue.length > 0) {
_local2 = _clip._queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _clip._callbacks[_local2.callbackID];
};
delete _clip._callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
public static function get childClip():Object{
return (_clip);
}
public static function get id():String{
return (_id);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function getVersion():String{
return ("1.31");
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_listenChannel.close();
_rcvChannel.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
Security.allowDomain("*");
Security.allowInsecureDomain("*");
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
return (_local2);
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
if (_clip.parent != null){
Sprite(_clip.parent).removeChild(_clip);
};
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_arg1 != null){
if ((_arg1 is Sprite)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is Sprite)){
Sprite(_container).addChild(_clip);
};
};
}
private static function onStatus(_arg1:StatusEvent):void{
switch (_arg1.level){
case "error":
_connected = false;
_listenChannel.connect(_listenChannelName);
break;
};
}
private static function initComChannels():void{
if (!_connected){
_sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion()});
_rcvChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_clip.onReceive = function (_arg1:Object):void{
var cb:String;
var cblst:Object;
var method:*;
var methodName:String;
var obj:Object;
var pkg = _arg1;
cb = pkg.callbackID;
cblst = this.client._callbacks[cb];
if (!cblst){
return;
};
method = cblst.callbackMethod;
methodName = "";
obj = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
//unresolved jump
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
};
};
};
delete this.client._callbacks[cb];
};
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
_rcvChannel.connect(_rcvChannelName);
_connecting = false;
_connected = true;
_listenChannel.close();
while (_clip._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function listen():void{
_listenChannel = new LocalConnection();
_listenChannel.client = _clip;
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
_listenChannel.allowDomain("*", "localhost");
_listenChannel.allowInsecureDomain("*", "localhost");
_listenChannel.connect(_listenChannelName);
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
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))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
public static function get clip():Object{
return (_container);
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
_rcvChannelName = _arg1;
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var clipname:String;
var f:Function;
var req:URLRequest;
var id = _arg1;
var clip = _arg2;
clipname = ("_mochiservices_com_" + id);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
MochiServices.allowDomains(_gatewayURL);
_clip = createEmptyMovieClip(clip, clipname, 10336, false);
_loader = new Loader();
_timer = new Timer(1000, 0);
_startTime = getTimer();
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
f = function (_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
MochiServices.disconnect();
MochiServices.onError("IOError");
};
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f);
req = new URLRequest(_gatewayURL);
_loader.load(req);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain("*", "localhost");
_rcvChannel.allowInsecureDomain("*", "localhost");
_rcvChannel.client = _clip;
_clip._nextcallbackID = 0;
_clip._callbacks = {};
listen();
return (_clip);
}
public static function bringToTop(_arg1:Event):void{
var e = _arg1;
if (MochiServices.clip != null){
if (MochiServices.childClip != null){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
};
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
if ((clip is DisplayObject)){
if (((!(_connected)) && ((_clip == null)))){
_connecting = true;
init(id, clip);
};
//unresolved jump
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var mc:MovieClip;
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
mc = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
try {
parent[name] = mc;
} catch(e:Error) {
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
mc["_name"] = name;
return (mc);
}
public static function connectWait(_arg1:TimerEvent):void{
if ((getTimer() - _startTime) > 10000){
if (!_connected){
_clip._mochiad_ctr_failed = true;
MochiServices.disconnect();
MochiServices.onError("IOError");
};
_timer.stop();
};
}
}
}//package mochi
Section 29
//blastSound01 (blastSound01)
package {
import flash.media.*;
public dynamic class blastSound01 extends Sound {
}
}//package
Section 30
//crashSound01 (crashSound01)
package {
import flash.media.*;
public dynamic class crashSound01 extends Sound {
}
}//package
Section 31
//hero (hero)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class hero extends MovieClip {
public var blastSound:Sound;
public var blastSoundChannel:SoundChannel;
public function hero(){
addFrameScript(0, frame1, 1, frame2, 4, frame5);
}
public function reposition(_arg1:Event){
this.x = (MovieClip(parent).centerPoint.x + (MovieClip(parent).mouseOffset.x * 4));
this.y = ((MovieClip(parent).centerPoint.y + (MovieClip(parent).mouseOffset.y * 2)) + 90);
rotation = (360 - MovieClip(parent).mouseOffset.x);
}
function frame1(){
blastSound = new blastSound01();
addEventListener(Event.ENTER_FRAME, reposition);
}
function frame5(){
if (MovieClip(parent).soundOn){
if (blastSoundChannel != null){
blastSoundChannel.stop();
};
blastSoundChannel = blastSound.play();
};
stop();
}
function frame2(){
stop();
}
}
}//package
Section 32
//lcSound01 (lcSound01)
package {
import flash.media.*;
public dynamic class lcSound01 extends Sound {
}
}//package
Section 33
//MochiAd (MochiAd)
package {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.net.*;
import flash.utils.*;
public class MochiAd {
public static function getVersion():String{
return ("2.5");
}
public static function showClickAwayAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var sendHostProgress:Boolean;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
sendHostProgress = false;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String;
_local2 = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_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 ():void{
var _local1:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local3:Object;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
DEFAULTS = {server:"http://", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest((server + ".swf"));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip;
_local4 = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Array;
_local3 = _arg2.getBounds(_arg2.root);
_local4 = 0;
_local5 = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array;
var _local4:Number;
_local3 = _arg2.split(".");
_local4 = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var sendHostProgress:Boolean;
var r:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
setTimeout(options.ad_finished, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
MochiAd._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
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();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
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_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
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 ():void{
var _local1:Number;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Object;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Object;
var _local10:Number;
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_local1 = this.parent.parent.root;
_local2 = this.parent._mochiad_ctr;
_local3 = (getTimer() - this.started);
_local4 = false;
_local5 = _local1.loaderInfo.bytesTotal;
_local6 = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
_local7 = ((100 * _local6) / _local5);
_local8 = ((100 * _local3) / chk.ad_msec);
_local9 = this._mochiad_bar._inside;
_local10 = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var f:Function;
var mc = _arg1;
f = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package
Section 34
//musicLevel01 (musicLevel01)
package {
import flash.media.*;
public dynamic class musicLevel01 extends Sound {
}
}//package
Section 35
//musicLevel02 (musicLevel02)
package {
import flash.media.*;
public dynamic class musicLevel02 extends Sound {
}
}//package
Section 36
//musicLevel03 (musicLevel03)
package {
import flash.media.*;
public dynamic class musicLevel03 extends Sound {
}
}//package
Section 37
//musicLevel04 (musicLevel04)
package {
import flash.media.*;
public dynamic class musicLevel04 extends Sound {
}
}//package
Section 38
//musicLevel05 (musicLevel05)
package {
import flash.media.*;
public dynamic class musicLevel05 extends Sound {
}
}//package
Section 39
//musicLevel06 (musicLevel06)
package {
import flash.media.*;
public dynamic class musicLevel06 extends Sound {
}
}//package
Section 40
//musicLevel07 (musicLevel07)
package {
import flash.media.*;
public dynamic class musicLevel07 extends Sound {
}
}//package
Section 41
//starSound01 (starSound01)
package {
import flash.media.*;
public dynamic class starSound01 extends Sound {
}
}//package
Section 42
//wall (wall)
package {
import flash.events.*;
import flash.display.*;
import fl.motion.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class wall extends MovieClip {
public var wallSet:MovieClip;
public var bb:Number;
public var distanc:Number;
public var offSet:Point;
public function wall(){
addFrameScript(0, frame1);
}
public function reposition(_arg1:Event){
distanc = (distanc + (MovieClip(parent).timeDiff * MovieClip(parent).speed));
bb = (200 - distanc);
if (bb < 1){
bb = 1;
};
scaleX = (0.8 + (distanc / Math.pow(bb, 1.25)));
scaleY = scaleX;
x = (MovieClip(parent).centerPoint.x + ((offSet.x - MovieClip(parent).mouseOffset.x) * scaleX));
y = (MovieClip(parent).centerPoint.y + ((offSet.y - MovieClip(parent).mouseOffset.y) * scaleY));
if (scaleX > 200){
crash();
removeEventListener(Event.ENTER_FRAME, reposition);
MovieClip(parent).killWall();
} else {
reTint();
};
}
function frame1(){
distanc = 0;
bb = 0;
offSet = new Point((this.x - MovieClip(parent).centerPoint.x), (this.y - MovieClip(parent).centerPoint.y));
addEventListener(Event.ENTER_FRAME, reposition);
addEventListener(Event.ENTER_FRAME, appear);
}
public function tintColor(_arg1:Sprite, _arg2:Number, _arg3:Number):void{
var _local4:Color;
_local4 = new Color();
_local4.setTint(_arg2, _arg3);
_arg1.transform.colorTransform = _local4;
}
public function crash(){
if (this.hitTestPoint(MovieClip(parent).centerPoint.x, MovieClip(parent).centerPoint.y, true)){
if (wallSet.bonus == 0){
MovieClip(parent).stopGame();
MovieClip(parent).clearGame();
MovieClip(parent).playerDie();
} else {
MovieClip(parent).bonus = (MovieClip(parent).bonus + wallSet.bonus);
wallSet.bonus = 0;
MovieClip(parent).bonusMultiplyer++;
MovieClip(parent).starsGot++;
MovieClip(parent).refreshBonus();
MovieClip(parent).pop();
};
} else {
if (wallSet.currentFrame > 100){
MovieClip(parent).score = (MovieClip(parent).score + (10 * MovieClip(parent).boostMultiplier));
MovieClip(parent).scoreThisLevel = (MovieClip(parent).scoreThisLevel + (10 * MovieClip(parent).boostMultiplier));
MovieClip(parent).refreshScore();
MovieClip(parent).endCombo();
};
};
}
public function appear(_arg1:Event){
if (distanc > 40){
this.visible = true;
removeEventListener(Event.ENTER_FRAME, appear);
};
}
public function reTint(){
tintColor(this, MovieClip(parent).fogColor, (1.25 - (distanc / 140)));
}
}
}//package