Section 1
//MC_AVALANCHE_1 (Avalanche_fla.MC_AVALANCHE_1)
package Avalanche_fla {
import fl.motion.*;
import flash.geom.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MC_AVALANCHE_1 extends MovieClip {
public var _enemyRate:Number;
public var _gravity:Number;
public var livesIcon_mc:MovieClip;
public var _itemSnd:SND_item;
public var _jumpSnd:SND_jump;
public var _stagePosX:int;
public var _stagePosY:int;
public var _currentTime:Number;
public var _bombSnd:SND_bomb;
public var muteMusic_mc:MovieClip;
public var _squashSnd:SND_squash;
public var _particleCount:int;
public var lives_txt:TextField;
public var _itemRateCount:Number;
public var _levelUpSnd:SND_levelUp;
public var _stepSlimeSnd:SND_stepSlime;
public var _totalScore:int;
public var _hurtSquashSnd:SND_hurtSquash;
public var _capSnd:SND_cap;
public var _ouchSnd:SND_ouch;
public var _musicSnd:SND_music;
public var _explodeSnd:SND_explode;
public var _currentLevel:int;
public var _timeDelta:Number;
public var _enemyTypes:Number;
public var land_mc:MovieClip;
public var mute_mc:MovieClip;
public var pause_mc:MC_pause;
public var _enemySide:int;
public var _enemyRateCount:Number;
public var _coinRate:Number;
public var _coinRateCount:Number;
public var stageArea_mc:MovieClip;
public var _gameStage:int;
public var _fallSnd:SND_fall;
public var _pauseMute:Boolean;
public var player_mc:MovieClip;
public var coinsIcon_mc:MovieClip;
public var magnetEffect_mc:MC_magnetEffect;
public var coins_txt:TextField;
public var _punchSnd:SND_punch;
public var quality_mc:MovieClip;
public var _coinSnd:SND_coin;
public var _boulderSnd:SND_boulder;
public var _camShake:Number;
public var _lastTime:Number;
public var _particleLimit:int;
public var back_mc:MovieClip;
public var _itemRate:Number;
public var _gameQuality:int;
public var _pause:Boolean;
public var _buzzsawSnd:SND_buzzsaw;
public var _musicChannel:SoundChannel;
public function MC_AVALANCHE_1(){
addFrameScript(0, frame1);
}
public function pauseGame(_arg1:MouseEvent){
stage.removeEventListener(Event.DEACTIVATE, mouseLeaveStage);
_pause = true;
var _local2:MovieClip = new MovieClip();
addChild(_local2);
_local2.graphics.beginFill(0, 0.5);
_local2.graphics.drawRect(0, 0, stageArea_mc.width, stageArea_mc.height);
_local2.graphics.endFill();
_local2.addEventListener(MouseEvent.MOUSE_UP, resumeGame);
if (muteMusic_mc.currentFrame == 1){
_pauseMute = true;
muteMusic_mc.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_UP));
};
player_mc.stop();
}
public function mouseLeaveStage(_arg1:Event){
stage.removeEventListener(Event.DEACTIVATE, mouseLeaveStage);
pause_mc.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_UP));
}
public function hurt(_arg1:int=1, _arg2:Number=1, _arg3:int=1){
if (player_mc._hurtTime <= 0){
player_mc._hurtTime = _arg2;
player_mc._hurtType = _arg3;
player_mc._lives = (player_mc._lives - _arg1);
lives_txt.text = player_mc._lives.toString();
if (player_mc._lives <= 0){
fall(player_mc, 200, -400, -2, 0.95, false);
player_mc._shadow.removeEventListener(Event.ENTER_FRAME, shadowAnimation);
removeChild(player_mc._shadow);
gameOver();
};
};
}
public function mute(_arg1:MouseEvent):void{
mute_mc.removeEventListener(MouseEvent.MOUSE_UP, mute);
mute_mc.addEventListener(MouseEvent.MOUSE_UP, unmute);
mute_mc.gotoAndStop(2);
SoundMixer.soundTransform = new SoundTransform(0);
}
public function unmuteMusic(_arg1:MouseEvent):void{
muteMusic_mc.removeEventListener(MouseEvent.MOUSE_UP, unmuteMusic);
muteMusic_mc.addEventListener(MouseEvent.MOUSE_UP, muteMusic);
muteMusic_mc.gotoAndStop(1);
_musicChannel.soundTransform = new SoundTransform(1);
}
public function createItem(_arg1:int=1, _arg2:Number=15, _arg3:Number=0, _arg4:Number=0, _arg5:MovieClip=null){
var _local7:MC_coin;
var _local8:MC_lifeItem;
var _local9:MC_magnetItem;
var _local10:MC_bootsItem;
var _local11:MC_capItem;
var _local12:MC_starItem;
var _local6:MovieClip = new MovieClip();
switch (_arg1){
case 1:
_local7 = new MC_coin();
_local6 = _local7;
if (Math.random() < 0.7){
_local6._coins = 1;
_local6.scaleX = (_local6.scaleY = 0.5);
} else {
if (Math.random() < 0.7){
_local6._coins = 5;
_local6.scaleX = (_local6.scaleY = 0.7);
} else {
_local6._coins = 10;
_local6.scaleX = (_local6.scaleY = 1);
};
};
_local6._magnetPickup = true;
_local6._pickUpTarget = coinsIcon_mc;
break;
case 2:
_local8 = new MC_lifeItem();
_local6 = _local8;
_local8.y = -(_local6.height);
_local6._life = 1;
_local6._pickUpTarget = livesIcon_mc;
break;
case 3:
_local9 = new MC_magnetItem();
_local6 = _local9;
_local6._magnetTime = 10;
_local6._magnetRange = 200;
_local6._pickUpTarget = player_mc;
break;
case 4:
_local10 = new MC_bootsItem();
_local6 = _local10;
_local6._bootsTime = 10;
_local6._bootsSpeed = 2;
_local6._pickUpTarget = player_mc;
break;
case 5:
_local11 = new MC_capItem();
_local6 = _local11;
_local6._cap = 1;
_local6._pickUpTarget = player_mc;
break;
case 6:
_local12 = new MC_starItem();
_local6 = _local12;
_local6._starTime = 1;
_local6._starCoins = 10;
_local6._pickUpTarget = player_mc;
break;
default:
break;
};
_local6._size = (_local6.width * 0.5);
if (_arg5){
_local6.x = _arg5.x;
_local6.y = _arg5.y;
} else {
_local6.x = ((stageArea_mc.x + (stageArea_mc.width * 0.1)) + ((stageArea_mc.width * Math.random()) * 0.8));
_local6.y = -(_local6.height);
};
_local6._speedX = _arg3;
_local6._speedY = _arg4;
_local6._bounce = 0.5;
_local6._bounceMax = 5;
_local6._removeTime = _arg2;
createShadow(_local6, 2);
addChild(_local6);
_local6.addEventListener(Event.ENTER_FRAME, itemAnimation);
}
public function unmute(_arg1:MouseEvent):void{
mute_mc.removeEventListener(MouseEvent.MOUSE_UP, unmute);
mute_mc.addEventListener(MouseEvent.MOUSE_UP, mute);
mute_mc.gotoAndStop(1);
SoundMixer.soundTransform = new SoundTransform(1);
}
public function fadeOut(_arg1:Event){
if (_arg1.target._delayFade > 0){
_arg1.target._delayFade = (_arg1.target._delayFade - _timeDelta);
} else {
_arg1.target.alpha = (_arg1.target.alpha - _timeDelta);
};
if (_arg1.target.alpha <= 0){
removeChild(MovieClip(_arg1.target));
_arg1.target.removeEventListener(Event.ENTER_FRAME, fadeOut);
};
}
public function timeCheck(_arg1:Event){
_lastTime = _currentTime;
_currentTime = getTimer();
_timeDelta = ((_currentTime - _lastTime) * 0.001);
}
public function createShadow(_arg1:MovieClip, _arg2:Number=1){
var _local3:MC_shadow = new MC_shadow();
addChildAt(_local3, (getChildIndex(land_mc) + 1));
_local3.x = _arg1.x;
_local3.y = land_mc.y;
_local3.alpha = 0;
_local3.width = (_arg1._size * _arg2);
_local3.scaleY = _local3.scaleX;
_local3._object = _arg1;
_arg1._shadow = _local3;
_local3._scale = _arg2;
_local3.addEventListener(Event.ENTER_FRAME, shadowAnimation);
}
public function gameOverAnimation(_arg1:Event){
if (player_mc.currentLabel != "gameOver"){
player_mc.gotoAndPlay("gameOver");
};
if (_arg1.target._delay > 0){
_arg1.target._delay = (_arg1.target._delay - _timeDelta);
} else {
if (_arg1.target.alpha < 1){
_arg1.target.alpha = (_arg1.target.alpha + 0.1);
} else {
_gameStage = 2;
_arg1.target.removeEventListener(Event.ENTER_FRAME, gameOverAnimation);
_arg1.target.addEventListener(MouseEvent.MOUSE_UP, restartGame);
};
};
}
public function shadowAnimation(_arg1:Event){
_arg1.target.x = _arg1.target._object.x;
_arg1.target.width = ((_arg1.target._object._size * _arg1.target._scale) - ((_arg1.target.y - _arg1.target._object.y) * 0.003));
_arg1.target.scaleY = _arg1.target.scaleX;
_arg1.target.alpha = (1 - ((_arg1.target.y - _arg1.target._object.y) * 0.003));
}
public function pickUpAnimation(_arg1:Event){
_arg1.target.x = (_arg1.target.x - ((_arg1.target.x - _arg1.target._pickUpTarget.x) * 0.4));
_arg1.target.y = (_arg1.target.y - ((_arg1.target.y - _arg1.target._pickUpTarget.y) * 0.4));
if (Math.abs((_arg1.target.x - _arg1.target._pickUpTarget.x)) < 20){
flashObject(_arg1.target._pickUpTarget, 0xFFFFFF, 0.8, 0.8);
_arg1.target.removeEventListener(Event.ENTER_FRAME, pickUpAnimation);
removeChild(MovieClip(_arg1.target));
};
}
public function levelUp(){
_currentLevel++;
setDifficulty(_currentLevel);
back_mc.play();
var _local1:MC_levelUpEffect = new MC_levelUpEffect();
addChild(_local1);
_local1._delayFade = 1;
_local1.addEventListener(Event.ENTER_FRAME, fadeOut);
_levelUpSnd.play();
}
public function fallAnimation(_arg1:Event){
if (_pause == false){
_arg1.target.x = (_arg1.target.x + (_arg1.target._speedX * _timeDelta));
_arg1.target.y = (_arg1.target.y + (_arg1.target._speedY * _timeDelta));
_arg1.target._speedY = (_arg1.target._speedY + (1000 * _timeDelta));
_arg1.target.rotation = (_arg1.target.rotation - ((_arg1.target._speedX * _arg1.target._spin) * _timeDelta));
_arg1.target._spin = (_arg1.target._spin * _arg1.target._spinDamp);
if (_arg1.target.y > (stageArea_mc.height + _arg1.target.height)){
if (_arg1.target._destroy == true){
removeChild(MovieClip(_arg1.target));
};
_arg1.target.removeEventListener(Event.ENTER_FRAME, fallAnimation);
};
};
}
function frame1(){
_gameStage = 0;
_stagePosX = this.x;
_stagePosY = this.y;
_camShake = 0;
_enemySide = 1;
_particleCount = 0;
_particleLimit = 200;
_coinSnd = new SND_coin();
_hurtSquashSnd = new SND_hurtSquash();
_itemSnd = new SND_item();
_levelUpSnd = new SND_levelUp();
_punchSnd = new SND_punch();
_jumpSnd = new SND_jump();
_fallSnd = new SND_fall();
_boulderSnd = new SND_boulder();
_bombSnd = new SND_bomb();
_stepSlimeSnd = new SND_stepSlime();
_buzzsawSnd = new SND_buzzsaw();
_explodeSnd = new SND_explode();
_squashSnd = new SND_squash();
_ouchSnd = new SND_ouch();
_capSnd = new SND_cap();
_musicSnd = new SND_music();
mute_mc.buttonMode = true;
mute_mc.addEventListener(MouseEvent.MOUSE_UP, mute);
mute_mc.gotoAndStop(1);
stage.quality = "high";
_gameQuality = 3;
quality_mc.buttonMode = true;
quality_mc.addEventListener(MouseEvent.MOUSE_UP, quality);
_lastTime = 0;
_currentTime = 0;
_timeDelta = 0;
addEventListener(Event.ENTER_FRAME, timeCheck);
initialization();
pause_mc.buttonMode = true;
_pause = false;
_pauseMute = false;
muteMusic_mc.buttonMode = true;
muteMusic_mc.addEventListener(MouseEvent.MOUSE_UP, muteMusic);
muteMusic_mc.gotoAndStop(1);
}
public function fall(_arg1:MovieClip, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0, _arg6:Boolean=true){
_arg1._speedX = _arg2;
_arg1._speedY = _arg3;
_arg1._spin = _arg4;
_arg1._spinDamp = _arg5;
_arg1._destroy = _arg6;
_arg1.addEventListener(Event.ENTER_FRAME, fallAnimation);
}
public function animation(_arg1:Event):void{
if (_pause == false){
if (player_mc._hurtTime > 0){
} else {
if (player_mc._onLand == false){
if (player_mc._speedY < 0){
if (player_mc.currentLabel != "jump"){
player_mc.gotoAndPlay("jump");
};
} else {
if (player_mc.currentLabel != "fall"){
player_mc.gotoAndPlay("fall");
};
};
} else {
if (Math.abs(player_mc._speedX) > 50){
if (player_mc._slime == true){
if (player_mc.currentLabel != "runSlow"){
player_mc.gotoAndPlay("runSlow");
};
} else {
if (player_mc.currentLabel != "run"){
player_mc.gotoAndPlay("run");
};
};
} else {
if (player_mc.currentLabel != "stand"){
player_mc.gotoAndPlay("stand");
};
};
};
};
if (player_mc.currentLabel != "ouch"){
if (mouseX > (player_mc.x + (player_mc._size * 0.5))){
player_mc.scaleX = player_mc._initScaleX;
if (player_mc._speedX < (player_mc._maxSpeedX * player_mc._bootsSpeed)){
player_mc._speedX = (player_mc._speedX + (player_mc._acceleration * player_mc._bootsSpeed));
};
} else {
if (mouseX < (player_mc.x - (player_mc._size * 0.5))){
player_mc.scaleX = -(player_mc._initScaleX);
if (player_mc._speedX > (-(player_mc._maxSpeedX) * player_mc._bootsSpeed)){
player_mc._speedX = (player_mc._speedX - (player_mc._acceleration * player_mc._bootsSpeed));
};
} else {
player_mc._speedX = (player_mc._speedX * player_mc._speedDamp);
};
};
};
player_mc.x = (player_mc.x + (player_mc._speedX * _timeDelta));
if (player_mc.x > (stageArea_mc.width - (player_mc._size * 0.5))){
player_mc.x = (stageArea_mc.width - (player_mc._size * 0.5));
};
if (player_mc.x < (player_mc._size * 0.5)){
player_mc.x = (player_mc._size * 0.5);
};
player_mc.y = (player_mc.y + (player_mc._speedY * _timeDelta));
player_mc._speedY = (player_mc._speedY + _gravity);
if (player_mc.y > (land_mc.y - (player_mc._size * 0.5))){
player_mc.y = (land_mc.y - (player_mc._size * 0.5));
player_mc._speedY = 0;
player_mc.rotation = 0;
player_mc._onLand = true;
};
if (player_mc._slime == true){
player_mc._slime = false;
};
if ((((player_mc._jumping == true)) && ((player_mc._onLand == true)))){
player_mc._speedY = -(player_mc._jumpPower);
player_mc._onLand = false;
};
_enemyRateCount = (_enemyRateCount + _timeDelta);
if (_enemyRateCount >= _enemyRate){
createEnemy(Math.floor((Math.random() * _enemyTypes)));
_enemyRateCount = 0;
};
_coinRateCount = (_coinRateCount + _timeDelta);
if (_coinRateCount >= _coinRate){
createItem(1, 10);
_coinRateCount = 0;
};
_itemRateCount = (_itemRateCount + _timeDelta);
if (_itemRateCount >= _itemRate){
if (Math.random() < 0.9){
createItem((2 + Math.ceil((Math.random() * 4))), 15);
} else {
createItem(2, 20);
};
_itemRateCount = 0;
};
if (player_mc._magnetTime <= 0){
player_mc._magnetRange = 0;
magnetEffect_mc.visible = false;
} else {
player_mc._magnetTime = (player_mc._magnetTime - _timeDelta);
};
if (player_mc._bootsTime <= 0){
player_mc._bootsSpeed = 1;
} else {
player_mc._bootsTime = (player_mc._bootsTime - _timeDelta);
explode(player_mc, "sparkle", 30, 1, 0.5, 5, -50, stageArea_mc.height);
};
if (player_mc._hurtTime > 0){
player_mc._hurtTime = (player_mc._hurtTime - _timeDelta);
};
if (player_mc._starTime > 0){
player_mc._starTime = (player_mc._starTime - _timeDelta);
};
if (_camShake > 0){
_camShake = (_camShake * 0.8);
this.x = (_stagePosX + ((Math.random() - 0.5) * _camShake));
this.y = (_stagePosY + ((Math.random() - 0.5) * _camShake));
} else {
if (((!((this.x == _stagePosX))) || (!((this.y == _stagePosY))))){
this.x = _stagePosX;
this.y = _stagePosY;
};
};
magnetEffect_mc.x = player_mc.x;
magnetEffect_mc.y = player_mc.y;
};
}
public function startGameClick(_arg1:MouseEvent):void{
if (_arg1.currentTarget.currentLabel == "intro"){
_arg1.currentTarget.gotoAndStop("loop");
} else {
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_UP, startGameClick);
removeChild(MovieClip(_arg1.currentTarget));
startGame();
};
}
public function muteMusic(_arg1:MouseEvent):void{
muteMusic_mc.removeEventListener(MouseEvent.MOUSE_UP, muteMusic);
muteMusic_mc.addEventListener(MouseEvent.MOUSE_UP, unmuteMusic);
muteMusic_mc.gotoAndStop(2);
_musicChannel.soundTransform = new SoundTransform(0);
}
public function flashObject(_arg1:MovieClip, _arg2:uint=0xFFFFFF, _arg3:Number=0.7, _arg4:Number=1){
_arg1._tintAlpha = _arg4;
_arg1._tintColor = new Color();
_arg1._tintColor.setTint(_arg2, _arg1._tintAlpha);
_arg1.transform.colorTransform = _arg1._tintColor;
_arg1._color = _arg2;
_arg1._tintFade = _arg3;
_arg1.addEventListener(Event.ENTER_FRAME, flashAnimation);
}
public function startGame(){
_gameStage = 1;
_gravity = 40;
player_mc._initScaleX = player_mc.scaleX;
player_mc._initScaleY = player_mc.scaleY;
player_mc._size = player_mc.height;
createShadow(player_mc, 0.5);
player_mc._speedX = 0;
player_mc._maxSpeedX = 500;
player_mc._acceleration = 100;
player_mc._speedDamp = 0.5;
player_mc._speedY = 0;
player_mc._jumpPower = 600;
player_mc._jumping = false;
player_mc._onLand = true;
player_mc._lives = 5;
lives_txt.text = player_mc._lives.toString();
player_mc._hurtTime = 0;
player_mc._coins = 0;
coins_txt.text = player_mc._coins.toString();
player_mc._magnetTime = 0;
player_mc._magnetRange = 0;
player_mc._bootsTime = 0;
player_mc._bootsSpeed = 1;
player_mc._cap = 0;
player_mc.cap_mc.visible = false;
player_mc._slime = false;
_currentLevel = 1;
setDifficulty(_currentLevel);
var _local1:MC_readyGo = new MC_readyGo();
addChild(_local1);
_local1.x = (stageArea_mc.width * 0.5);
_local1.y = (stageArea_mc.height * 0.5);
_local1.addEventListener(Event.ENTER_FRAME, readyGoAnim);
}
public function readyGoAnim(_arg1:Event):void{
this.addChild(MovieClip(_arg1.target));
if (_arg1.target.currentFrame == 30){
addEventListener(Event.ENTER_FRAME, animation);
pause_mc.addEventListener(MouseEvent.MOUSE_UP, pauseGame);
stage.addEventListener(MouseEvent.MOUSE_DOWN, jumpStart);
stage.addEventListener(MouseEvent.MOUSE_UP, jumpEnd);
};
if (_arg1.target.currentFrame == _arg1.target.totalFrames){
_arg1.target.removeEventListener(Event.ENTER_FRAME, readyGoAnim);
this.removeChild(MovieClip(_arg1.target));
};
}
public function initialization():void{
stageArea_mc.visible = false;
var _local1:MC_gameStartScreen = new MC_gameStartScreen();
addChild(_local1);
_local1.addEventListener(MouseEvent.MOUSE_UP, startGameClick);
_musicChannel = _musicSnd.play(0, int.MAX_VALUE);
}
public function flashAnimation(_arg1:Event){
if (_pause == false){
_arg1.target._tintAlpha = (_arg1.target._tintAlpha * _arg1.target._tintFade);
_arg1.target._tintColor = new Color();
_arg1.target._tintColor.setTint(_arg1.target._color, _arg1.target._tintAlpha);
_arg1.target.transform.colorTransform = _arg1.target._tintColor;
if (_arg1.target._tintAlpha <= 0){
_arg1.target.removeEventListener(Event.ENTER_FRAME, flashAnimation);
};
};
}
public function slimeAnimation(_arg1:Event){
if (_arg1.target._slimeTime > 0){
_arg1.target._slimeTime = (_arg1.target._slimeTime - _timeDelta);
} else {
if (_arg1.target.currentLabel != "out"){
_arg1.target.gotoAndPlay("out");
};
};
if (player_mc.hitTestObject(MovieClip(_arg1.target))){
player_mc._speedX = (player_mc._speedX * 0.5);
player_mc._slime = true;
};
if (_arg1.target.currentFrame == _arg1.target.totalFrames){
removeChild(MovieClip(_arg1.target));
_arg1.target.removeEventListener(Event.ENTER_FRAME, slimeAnimation);
};
}
public function restartGame(_arg1:MouseEvent){
var _local2:String = stage.loaderInfo.url;
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_level0");
}
public function itemAnimation(_arg1:Event){
if (_pause == false){
_arg1.target.x = (_arg1.target.x + (_arg1.target._speedX * _timeDelta));
if (_arg1.target.x > stageArea_mc.width){
_arg1.target.x = stageArea_mc.width;
_arg1.target._speedX = (_arg1.target._speedX * -1);
};
if (_arg1.target.x < 0){
_arg1.target.x = 0;
_arg1.target._speedX = (_arg1.target._speedX * -1);
};
if (_arg1.target._bounceMax > 0){
_arg1.target.y = (_arg1.target.y + (_arg1.target._speedY * _timeDelta));
_arg1.target._speedY = (_arg1.target._speedY + _gravity);
};
if (((((_arg1.target.y + (_arg1.target._size * 0.5)) > (land_mc.y - (_arg1.target._size * 0.5)))) && ((_arg1.target._speedY > 0)))){
_arg1.target.y = (land_mc.y - _arg1.target._size);
if (_arg1.target._bounceMax > 0){
_arg1.target._bounceMax--;
_arg1.target._speedY = (_arg1.target._speedY * -(_arg1.target._bounce));
} else {
_arg1.target._speedY = 0;
_arg1.target._bounce = 0;
};
};
if (player_mc.hitTestObject(MovieClip(_arg1.target))){
_arg1.target._pickedUp = true;
if (_arg1.target._coins){
player_mc._coins = (player_mc._coins + _arg1.target._coins);
coins_txt.text = player_mc._coins.toString();
if (player_mc._coins >= player_mc._coinsToLevelUp){
levelUp();
};
} else {
if (_arg1.target._life){
player_mc._lives = (player_mc._lives + _arg1.target._life);
lives_txt.text = player_mc._lives.toString();
} else {
if (_arg1.target._magnetTime){
player_mc._magnetTime = _arg1.target._magnetTime;
player_mc._magnetRange = _arg1.target._magnetRange;
magnetEffect_mc.visible = true;
} else {
if (_arg1.target._bootsTime){
player_mc._bootsTime = _arg1.target._bootsTime;
player_mc._bootsSpeed = _arg1.target._bootsSpeed;
} else {
if (_arg1.target._cap){
player_mc._cap = _arg1.target._cap;
player_mc.cap_mc.visible = true;
} else {
if (_arg1.target._starTime){
player_mc._starTime = _arg1.target._starTime;
player_mc._starCoins = _arg1.target._starCoins;
};
};
};
};
};
};
if (_arg1.target._coins){
_coinSnd.play();
} else {
_itemSnd.play();
};
_arg1.target._shadow.removeEventListener(Event.ENTER_FRAME, shadowAnimation);
removeChild(MovieClip(_arg1.target._shadow));
_arg1.target.removeEventListener(Event.ENTER_FRAME, itemAnimation);
_arg1.target.addEventListener(Event.ENTER_FRAME, pickUpAnimation);
};
if (_arg1.target._removeTime > 0){
_arg1.target._removeTime = (_arg1.target._removeTime - _timeDelta);
if (_arg1.target._removeTime < 2){
if ((_arg1.target._removeTime % 6)){
if (_arg1.target.alpha == 1){
_arg1.target.alpha = 0;
} else {
_arg1.target.alpha = 1;
};
};
};
} else {
_arg1.target._shadow.removeEventListener(Event.ENTER_FRAME, shadowAnimation);
removeChild(MovieClip(_arg1.target._shadow));
removeChild(MovieClip(_arg1.target));
_arg1.target.removeEventListener(Event.ENTER_FRAME, itemAnimation);
};
if ((((player_mc._magnetTime > 0)) && ((_arg1.target._magnetPickup == true)))){
if ((((Math.abs((player_mc.x - _arg1.target.x)) < player_mc._magnetRange)) && ((Math.abs((player_mc.y - _arg1.target.y)) < player_mc._magnetRange)))){
_arg1.target.x = (_arg1.target.x - ((_arg1.target.x - player_mc.x) * 0.2));
_arg1.target.y = (_arg1.target.y - ((_arg1.target.y - player_mc.y) * 0.2));
};
};
};
}
public function setDifficulty(_arg1:int=1){
player_mc._coinsToLevelUp = (200 * _arg1);
_enemyTypes = (1.5 + (0.5 * _arg1));
if (_enemyTypes > 5){
_enemyTypes = 5;
};
_coinRate = 0.5;
_coinRateCount = 0;
_itemRate = 12;
_itemRateCount = 0;
_enemyRate = (3 - (0.2 * _arg1));
if (_enemyRate < 1.6){
_enemyRate = 1.6;
};
_enemyRateCount = 0;
}
public function resumeGame(_arg1:MouseEvent){
stage.addEventListener(Event.DEACTIVATE, mouseLeaveStage);
_pause = false;
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_UP, resumeGame);
removeChild(MovieClip(_arg1.currentTarget));
if ((((_pauseMute == true)) && ((muteMusic_mc.currentFrame == 2)))){
_pauseMute = false;
muteMusic_mc.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_UP));
};
player_mc.play();
}
public function explodeAnimation(_arg1:Event):void{
if (_pause == false){
_arg1.target.x = (_arg1.target.x + (_arg1.target._speedX * _timeDelta));
_arg1.target.y = (_arg1.target.y + (_arg1.target._speedY * _timeDelta));
if (_arg1.target.y > _arg1.target._floorY){
_arg1.target.y = _arg1.target._floorY;
_arg1.target._speedY = (_arg1.target._speedY * -(_arg1.target._bounce));
};
_arg1.target.rotation = (_arg1.target.rotation + ((_arg1.target._speedX * 10) * _timeDelta));
_arg1.target._speedX = (_arg1.target._speedX * _arg1.target._speedDecay);
_arg1.target._speedY = (_arg1.target._speedY * _arg1.target._speedDecay);
_arg1.target._speedY = (_arg1.target._speedY + (_arg1.target._gravity * _timeDelta));
_arg1.target.nextFrame();
_arg1.target.scaleX = (_arg1.target.scaleY = (_arg1.target.scaleY - (1 * _timeDelta)));
if (_arg1.target.scaleX <= 0){
_particleCount--;
removeChild(MovieClip(_arg1.target));
_arg1.target.removeEventListener(Event.ENTER_FRAME, explodeAnimation);
};
};
}
public function jumpEnd(_arg1:MouseEvent){
player_mc._jumping = false;
if (player_mc._speedY < 0){
player_mc._speedY = (player_mc._speedY * 0.5);
};
}
public function explode(_arg1:MovieClip, _arg2:String="explosion", _arg3:Number=0, _arg4:int=10, _arg5:Number=1, _arg6:Number=5, _arg7:Number=-60, _arg8:Number=1000, _arg9:Number=-1){
var _local10:MovieClip;
var _local11:Number;
var _local12:MC_explosion;
var _local13:MC_sparkle;
while (_arg4 > 0) {
if (_particleCount < _particleLimit){
_particleCount++;
_local10 = new MovieClip();
if (_arg2 == "explosion"){
_local12 = new MC_explosion();
_local10 = _local12;
} else {
if (_arg2 == "sparkle"){
_local13 = new MC_sparkle();
_local10 = _local13;
};
};
addChildAt(_local10, getChildIndex(_arg1));
_local10.x = (_arg1.x + ((Math.random() - 0.5) * _arg6));
_local10.y = (_arg1.y + ((Math.random() - 0.5) * _arg6));
_local10.scaleX = (_local10.scaleY = (((Math.random() * 0.5) + 0.5) * _arg5));
_local10._speedX = ((_local10.x - _arg1.x) * 40);
_local10._speedY = ((_local10.y - _arg1.y) * 40);
_local10._gravity = _arg7;
_local10._speedDecay = 0.8;
_local10._floorY = _arg8;
_local10._bounce = _arg9;
_local11 = Math.sqrt((Math.pow((_arg1.y - _local10.y), 2) + Math.pow((_arg1.x - _local10.x), 2)));
_local10.gotoAndStop(Math.ceil((_local10.totalFrames * (_local11 / (_arg6 * 4)))));
_local10.y = (_local10.y + _arg3);
_local10.addEventListener(Event.ENTER_FRAME, explodeAnimation);
};
_arg4--;
};
}
public function gameOver(){
removeEventListener(Event.ENTER_FRAME, animation);
var _local1:MC_gameOverScreen = new MC_gameOverScreen();
addChild(_local1);
_local1.coins_txt.text = (player_mc._coins.toString() + " X 50");
_local1.level_txt.text = (_currentLevel.toString() + " X 1000");
_local1.totalScore_mc.totalScore_txt.text = ((player_mc._coins * 50) + (_currentLevel * 1000)).toString();
_local1.alpha = 0;
_local1._delay = 2;
_local1.addEventListener(Event.ENTER_FRAME, gameOverAnimation);
}
public function createEnemy(_arg1:int=1){
var _local3:MC_boulder;
var _local4:MC_buzzsaw;
var _local5:MC_bomb;
var _local6:MC_slime;
var _local2:MovieClip = new MovieClip();
switch (_arg1){
case 1:
_local3 = new MC_boulder();
_local2 = _local3;
_local2.y = -(_local2.height);
_local2._size = (_local2.width * 0.5);
_local2._speedY = 0;
_local2.rotation = (Math.random() * 360);
_local2._rotateSpeed = 1;
_local2._bounce = 0.7;
_local2._bounceMax = 3;
_local2._sound = _boulderSnd;
_local2._hurtType = "squash";
break;
case 2:
_local4 = new MC_buzzsaw();
_local2 = _local4;
_local2.y = -(_local2.height);
_local2._size = (_local2.width * 0.5);
_local2._speedY = 0;
_local2.rotation = (Math.random() * 360);
_local2._rotateSpeed = 2;
_local2._bounce = 0;
_local2._bounceMax = 1;
_local2._sound = _buzzsawSnd;
_local2._hurtType = "ouch";
_local2._spinTime = 1;
_local2._spinSpeed = 15;
_local2.gotoAndStop(1);
break;
case 3:
_local5 = new MC_bomb();
_local2 = _local5;
_local2.y = -(_local2.height);
_local2._size = (_local2.width * 0.5);
_local2._speedY = 0;
_local2.rotation = (Math.random() * 360);
_local2._rotateSpeed = 1;
_local2._bounce = 0.2;
_local2._bounceMax = 4;
_local2._sound = _bombSnd;
_local2._hurtType = "squash";
_local2._explodeTime = (_local2._explodeTimeCount = 3);
_local2._explodeRange = 150;
break;
case 4:
_local6 = new MC_slime();
_local2 = _local6;
_local2.y = -(_local2.height);
_local2._size = (_local2.width * 0.5);
_local2._speedY = 0;
_local2.rotation = 0;
_local2._rotateSpeed = 0;
_local2._bounce = 0.9;
_local2._bounceMax = 10;
_local2._sound = _stepSlimeSnd;
_local2._hurtType = "squash";
_local2._slimeTime = 3;
break;
default:
break;
};
if (_enemySide == 1){
_enemySide = -1;
_local2.x = (stageArea_mc.x + ((stageArea_mc.width * Math.random()) * 0.2));
_local2._speedX = (120 * (Math.random() + 0.5));
} else {
_enemySide = 1;
_local2.x = ((stageArea_mc.x + stageArea_mc.width) - ((stageArea_mc.width * Math.random()) * 0.2));
_local2._speedX = (-120 * (Math.random() + 0.5));
};
createShadow(_local2, 2);
addChild(_local2);
_local2.addEventListener(Event.ENTER_FRAME, enemyAnimation);
}
public function enemyAnimation(_arg1:Event){
var _local2:MC_slimePuddle;
var _local3:int;
var _local4:MC_cap;
var _local5:MC_blast;
var _local6:int;
if (_pause == false){
_arg1.target.x = (_arg1.target.x + (_arg1.target._speedX * _timeDelta));
_arg1.target.y = (_arg1.target.y + (_arg1.target._speedY * _timeDelta));
_arg1.target._speedY = (_arg1.target._speedY + _gravity);
if ((((_arg1.target._spinTime > 0)) && ((_arg1.target._spinSpeed == 0)))){
_arg1.target._spinTime = (_arg1.target._spinTime - _timeDelta);
_arg1.target.x = (_arg1.target.x - (_arg1.target._speedX * _timeDelta));
};
if (((((_arg1.target.y + (_arg1.target._size * 0.5)) > (land_mc.y - (_arg1.target._size * 0.5)))) && ((_arg1.target._speedY > 0)))){
_arg1.target.y = (land_mc.y - _arg1.target._size);
if (_arg1.target._bounceMax > 0){
_arg1.target._bounceMax--;
_arg1.target._speedY = (_arg1.target._speedY * -(_arg1.target._bounce));
_camShake = (-0.03 * _arg1.target._speedY);
_arg1.target._sound.play();
} else {
_arg1.target._speedY = 0;
_arg1.target._bounce = 0;
};
if (_arg1.target._spinSpeed > 0){
_arg1.target._speedX = (_arg1.target._speedX * _arg1.target._spinSpeed);
_arg1.target._spinSpeed = 0;
_arg1.target.play();
};
if (_arg1.target._slimeTime > 0){
_local2 = new MC_slimePuddle();
addChildAt(_local2, getChildIndex(player_mc));
_local2.x = _arg1.target.x;
_local2.y = land_mc.y;
_local2._slimeTime = _arg1.target._slimeTime;
_local2.addEventListener(Event.ENTER_FRAME, slimeAnimation);
};
};
if (_arg1.target._explodeRange > 0){
if (_arg1.target._explodeTime > 0){
_arg1.target._explodeTime = (_arg1.target._explodeTime - _timeDelta);
_local3 = Math.round((_arg1.target.totalFrames - (_arg1.target.totalFrames * (_arg1.target._explodeTime / _arg1.target._explodeTimeCount))));
_arg1.target.gotoAndStop(_local3);
} else {
explode(MovieClip(_arg1.target), "explosion", 0, 30, 1, 30, 0, land_mc.y);
explode(MovieClip(_arg1.target), "explosion", 0, 10, 2, 10, 0, land_mc.y);
if (Math.sqrt((Math.pow((player_mc.x - _arg1.target.x), 2) + Math.pow((player_mc.y - _arg1.target.y), 2))) < _arg1.target._explodeRange){
hurt(1, 1.5);
player_mc.gotoAndPlay("ouch");
player_mc._speedY = -(player_mc._jumpPower);
player_mc._speedX = ((player_mc.x - _arg1.target.x) * 2);
player_mc._onLand = false;
_ouchSnd.play();
};
_arg1.target.x = (-2 * _arg1.target.width);
_camShake = 20;
_explodeSnd.play();
};
};
_arg1.target.rotation = (_arg1.target.rotation + ((_arg1.target._speedX * _arg1.target._rotateSpeed) * _timeDelta));
if (MovieClip(_arg1.target).hitTestPoint(player_mc.x, player_mc.y, true)){
if (player_mc._hurtTime <= 0){
player_mc._hurtType = _arg1.target._hurtType;
if (player_mc._hurtType == "squash"){
if (player_mc.y < _arg1.target.y){
player_mc._speedY = -(player_mc._jumpPower);
} else {
if (player_mc._cap > 0){
hurt(0, 0.5);
player_mc._cap--;
if (player_mc._cap <= 0){
player_mc.cap_mc.visible = false;
_local4 = new MC_cap();
addChild(_local4);
_local4.x = player_mc.x;
_local4.y = (player_mc.y - (player_mc._size * 0.5));
if (Math.random() > 0.5){
fall(_local4, (100 * (Math.random() + 1)), -400, 10, 0.9);
} else {
fall(_local4, (-100 * (Math.random() + 1)), -400, 10, 0.9);
};
};
_arg1.target.y = (_arg1.target.y - player_mc._size);
_arg1.target._speedY = (_arg1.target._speedY * -(_arg1.target._bounce));
_capSnd.play();
} else {
hurt(1, 3);
player_mc.gotoAndPlay("squash");
if (_arg1.target._speedY > 0){
player_mc._speedY = _arg1.target._speedY;
};
player_mc._jumping = false;
_arg1.target._speedY = (_arg1.target._speedY * -(_arg1.target._bounce));
_arg1.target._bounceMax++;
_camShake = (-0.03 * _arg1.target._speedY);
_squashSnd.play();
};
};
} else {
if (player_mc._hurtType == "ouch"){
hurt(1, 1.5);
player_mc.gotoAndPlay("ouch");
player_mc._speedY = -(player_mc._jumpPower);
player_mc._onLand = false;
_ouchSnd.play();
};
};
};
};
if (player_mc._starTime > 0){
_local5 = new MC_blast();
addChild(_local5);
_local5.x = _arg1.target.x;
_local5.y = _arg1.target.y;
_local5._delayFade = 0;
_local5.addEventListener(Event.ENTER_FRAME, fadeOut);
_local6 = player_mc._starCoins;
while (_local6) {
_local6--;
createItem(1, 10, ((Math.random() - 0.5) * 400), (-(Math.random()) * 400), MovieClip(_arg1.target));
};
_arg1.target.x = (-2 * _arg1.target.width);
};
if ((((_arg1.target.x < -(_arg1.target.width))) || ((_arg1.target.x > ((stageArea_mc.x + stageArea_mc.width) + _arg1.target.width))))){
_arg1.target._shadow.removeEventListener(Event.ENTER_FRAME, shadowAnimation);
removeChild(MovieClip(_arg1.target._shadow));
removeChild(MovieClip(_arg1.target));
_arg1.target.removeEventListener(Event.ENTER_FRAME, enemyAnimation);
};
};
}
public function jumpStart(_arg1:MouseEvent){
if (((((((!((_arg1.target.name == "pause_mc"))) && (!((_arg1.target.name == "quality_mc"))))) && (!((_arg1.target.name == "muteMusic_mc"))))) && (!((_arg1.target.name == "mute_mc"))))){
if (player_mc._hurtTime <= 0){
player_mc._jumping = true;
};
};
}
public function quality(_arg1:MouseEvent):void{
if (_gameQuality < 3){
_gameQuality++;
} else {
_gameQuality = 1;
};
if (_gameQuality == 1){
stage.quality = "low";
} else {
if (_gameQuality == 2){
stage.quality = "medium";
} else {
if (_gameQuality == 3){
stage.quality = "high";
};
};
};
}
}
}//package Avalanche_fla
Section 2
//MC_background_2 (Avalanche_fla.MC_background_2)
package Avalanche_fla {
import flash.display.*;
public dynamic class MC_background_2 extends MovieClip {
public function MC_background_2(){
addFrameScript(0, frame1, 19, frame20, 39, frame40, 59, frame60, 79, frame80, 99, frame100, 119, frame120, 139, frame140, 159, frame160, 179, frame180, 199, frame200, 219, frame220, 239, frame240, 259, frame260, 279, frame280, 299, frame300, 319, frame320, 339, frame340, 359, frame360, 379, frame380);
}
function frame140(){
stop();
}
function frame240(){
stop();
}
function frame120(){
stop();
}
function frame220(){
stop();
}
function frame100(){
stop();
}
function frame80(){
stop();
}
function frame300(){
stop();
}
function frame60(){
stop();
}
function frame40(){
stop();
}
function frame1(){
stop();
}
function frame200(){
stop();
}
function frame380(){
stop();
}
function frame360(){
stop();
}
function frame340(){
stop();
}
function frame20(){
stop();
}
function frame320(){
stop();
}
function frame180(){
stop();
}
function frame280(){
stop();
}
function frame160(){
stop();
}
function frame260(){
stop();
}
}
}//package Avalanche_fla
Section 3
//MC_moreGames_52 (Avalanche_fla.MC_moreGames_52)
package Avalanche_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class MC_moreGames_52 extends MovieClip {
public function MC_moreGames_52(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.MOUSE_UP, linkClick);
}
public function linkClick(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("http://clitgames.com");
navigateToURL(_local2, "_blank");
}
}
}//package Avalanche_fla
Section 4
//MC_playerIdle_6 (Avalanche_fla.MC_playerIdle_6)
package Avalanche_fla {
import flash.display.*;
public dynamic class MC_playerIdle_6 extends MovieClip {
public var cap_mc:MC_cap;
public function MC_playerIdle_6(){
addFrameScript(15, frame16, 34, frame35, 42, frame43, 48, frame49, 65, frame66, 79, frame80, 87, frame88, 95, frame96);
}
function frame49(){
gotoAndPlay("fall");
}
function frame88(){
gotoAndPlay("ouch");
}
function frame80(){
gotoAndPlay("squash");
}
function frame16(){
gotoAndPlay("stand");
}
function frame96(){
gotoAndPlay("gameOver");
}
function frame43(){
stop();
}
function frame66(){
gotoAndPlay("run");
}
function frame35(){
gotoAndPlay("run");
}
}
}//package Avalanche_fla
Section 5
//Symbol2_36 (Avalanche_fla.Symbol2_36)
package Avalanche_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Symbol2_36 extends MovieClip {
public var clitgames:MovieClip;
public function Symbol2_36(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.MOUSE_UP, linkClick);
}
public function linkClick(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("http://clitgames.com");
navigateToURL(_local2, "_blank");
}
}
}//package Avalanche_fla
Section 6
//Symbol3_14 (Avalanche_fla.Symbol3_14)
package Avalanche_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public dynamic class Symbol3_14 extends MovieClip {
public var coins_txt:TextField;
public function Symbol3_14(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.MOUSE_UP, linkClick);
}
public function linkClick(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("http://clitgames.com");
navigateToURL(_local2, "_blank");
}
}
}//package Avalanche_fla
Section 7
//Color (fl.motion.Color)
package fl.motion {
import flash.geom.*;
import flash.display.*;
public class Color extends ColorTransform {
private var _tintColor:Number;// = 0
private var _tintMultiplier: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){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
private function deriveTintColor():uint{
var _local1:Number = (1 / this.tintMultiplier);
var _local2:uint = Math.round((this.redOffset * _local1));
var _local3:uint = Math.round((this.greenOffset * _local1));
var _local4:uint = Math.round((this.blueOffset * _local1));
var _local5:uint = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function set brightness(_arg1:Number):void{
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
var _local2:Number = (1 - Math.abs(_arg1));
var _local3:Number = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
private function parseXML(_arg1:XML=null):Color{
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
var _local2:XML = _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 function get tintColor():uint{
return (this._tintColor);
}
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));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function setTint(_arg1:uint, _arg2:Number):void{
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
var _local3:uint = ((_arg1 >> 16) & 0xFF);
var _local4:uint = ((_arg1 >> 8) & 0xFF);
var _local5:uint = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number = (1 - _arg3);
var _local5:uint = ((_arg1 >> 24) & 0xFF);
var _local6:uint = ((_arg1 >> 16) & 0xFF);
var _local7:uint = ((_arg1 >> 8) & 0xFF);
var _local8:uint = (_arg1 & 0xFF);
var _local9:uint = ((_arg2 >> 24) & 0xFF);
var _local10:uint = ((_arg2 >> 16) & 0xFF);
var _local11:uint = ((_arg2 >> 8) & 0xFF);
var _local12:uint = (_arg2 & 0xFF);
var _local13:uint = ((_local5 * _local4) + (_local9 * _arg3));
var _local14:uint = ((_local6 * _local4) + (_local10 * _arg3));
var _local15:uint = ((_local7 * _local4) + (_local11 * _arg3));
var _local16:uint = ((_local8 * _local4) + (_local12 * _arg3));
var _local17:uint = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number = (1 - _arg3);
var _local5:ColorTransform = 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 8
//MC_blast (MC_blast)
package {
import flash.display.*;
public dynamic class MC_blast extends MovieClip {
}
}//package
Section 9
//MC_bomb (MC_bomb)
package {
import flash.display.*;
public dynamic class MC_bomb extends MovieClip {
}
}//package
Section 10
//MC_bootsItem (MC_bootsItem)
package {
import flash.display.*;
public dynamic class MC_bootsItem extends MovieClip {
}
}//package
Section 11
//MC_boulder (MC_boulder)
package {
import flash.display.*;
public dynamic class MC_boulder extends MovieClip {
}
}//package
Section 12
//MC_buzzsaw (MC_buzzsaw)
package {
import flash.display.*;
public dynamic class MC_buzzsaw extends MovieClip {
public function MC_buzzsaw(){
addFrameScript(43, frame44);
}
function frame44(){
gotoAndStop("loop");
}
}
}//package
Section 13
//MC_cap (MC_cap)
package {
import flash.display.*;
public dynamic class MC_cap extends MovieClip {
}
}//package
Section 14
//MC_capItem (MC_capItem)
package {
import flash.display.*;
public dynamic class MC_capItem extends MovieClip {
}
}//package
Section 15
//MC_coin (MC_coin)
package {
import flash.display.*;
public dynamic class MC_coin extends MovieClip {
}
}//package
Section 16
//MC_explosion (MC_explosion)
package {
import flash.display.*;
public dynamic class MC_explosion extends MovieClip {
public function MC_explosion(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package
Section 17
//MC_gameOverScreen (MC_gameOverScreen)
package {
import flash.display.*;
import flash.text.*;
public dynamic class MC_gameOverScreen extends MovieClip {
public var coins_txt:TextField;
public var level_txt:TextField;
public var totalScore_mc:MovieClip;
}
}//package
Section 18
//MC_gameStartScreen (MC_gameStartScreen)
package {
import flash.display.*;
public dynamic class MC_gameStartScreen extends MovieClip {
public var cap_mc:MC_cap;
public function MC_gameStartScreen(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package
Section 19
//MC_levelUpEffect (MC_levelUpEffect)
package {
import flash.display.*;
import flash.text.*;
public dynamic class MC_levelUpEffect extends MovieClip {
public var coins_txt:TextField;
}
}//package
Section 20
//MC_lifeItem (MC_lifeItem)
package {
import flash.display.*;
public dynamic class MC_lifeItem extends MovieClip {
public var livesIcon_mc:MovieClip;
}
}//package
Section 21
//MC_magnetEffect (MC_magnetEffect)
package {
import flash.display.*;
public dynamic class MC_magnetEffect extends MovieClip {
}
}//package
Section 22
//MC_magnetItem (MC_magnetItem)
package {
import flash.display.*;
public dynamic class MC_magnetItem extends MovieClip {
}
}//package
Section 23
//MC_pause (MC_pause)
package {
import flash.display.*;
public dynamic class MC_pause extends MovieClip {
}
}//package
Section 24
//MC_player (MC_player)
package {
import flash.display.*;
public dynamic class MC_player extends MovieClip {
public var hitArea_mc:MovieClip;
public function MC_player(){
addFrameScript(3, frame4, 13, frame14, 38, frame39, 53, frame54, 68, frame69);
}
function frame14(){
stop();
}
function frame39(){
gotoAndPlay("run");
}
function frame4(){
gotoAndPlay("stand");
}
function frame54(){
stop();
}
function frame69(){
stop();
}
}
}//package
Section 25
//MC_readyGo (MC_readyGo)
package {
import flash.display.*;
import flash.text.*;
public dynamic class MC_readyGo extends MovieClip {
public var description_txt:TextField;
}
}//package
Section 26
//MC_shadow (MC_shadow)
package {
import flash.display.*;
public dynamic class MC_shadow extends MovieClip {
}
}//package
Section 27
//MC_slime (MC_slime)
package {
import flash.display.*;
public dynamic class MC_slime extends MovieClip {
}
}//package
Section 28
//MC_slimePuddle (MC_slimePuddle)
package {
import flash.display.*;
public dynamic class MC_slimePuddle extends MovieClip {
public function MC_slimePuddle(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package
Section 29
//MC_sparkle (MC_sparkle)
package {
import flash.display.*;
public dynamic class MC_sparkle extends MovieClip {
}
}//package
Section 30
//MC_spinBlur (MC_spinBlur)
package {
import flash.display.*;
public dynamic class MC_spinBlur extends MovieClip {
}
}//package
Section 31
//MC_star (MC_star)
package {
import flash.display.*;
public dynamic class MC_star extends MovieClip {
}
}//package
Section 32
//MC_starItem (MC_starItem)
package {
import flash.display.*;
public dynamic class MC_starItem extends MovieClip {
}
}//package
Section 33
//SND_bomb (SND_bomb)
package {
import flash.media.*;
public dynamic class SND_bomb extends Sound {
}
}//package
Section 34
//SND_boulder (SND_boulder)
package {
import flash.media.*;
public dynamic class SND_boulder extends Sound {
}
}//package
Section 35
//SND_buzzsaw (SND_buzzsaw)
package {
import flash.media.*;
public dynamic class SND_buzzsaw extends Sound {
}
}//package
Section 36
//SND_cap (SND_cap)
package {
import flash.media.*;
public dynamic class SND_cap extends Sound {
}
}//package
Section 37
//SND_coin (SND_coin)
package {
import flash.media.*;
public dynamic class SND_coin extends Sound {
}
}//package
Section 38
//SND_explode (SND_explode)
package {
import flash.media.*;
public dynamic class SND_explode extends Sound {
}
}//package
Section 39
//SND_fall (SND_fall)
package {
import flash.media.*;
public dynamic class SND_fall extends Sound {
}
}//package
Section 40
//SND_hurtSquash (SND_hurtSquash)
package {
import flash.media.*;
public dynamic class SND_hurtSquash extends Sound {
}
}//package
Section 41
//SND_item (SND_item)
package {
import flash.media.*;
public dynamic class SND_item extends Sound {
}
}//package
Section 42
//SND_jump (SND_jump)
package {
import flash.media.*;
public dynamic class SND_jump extends Sound {
}
}//package
Section 43
//SND_levelUp (SND_levelUp)
package {
import flash.media.*;
public dynamic class SND_levelUp extends Sound {
}
}//package
Section 44
//SND_music (SND_music)
package {
import flash.media.*;
public dynamic class SND_music extends Sound {
}
}//package
Section 45
//SND_ouch (SND_ouch)
package {
import flash.media.*;
public dynamic class SND_ouch extends Sound {
}
}//package
Section 46
//SND_punch (SND_punch)
package {
import flash.media.*;
public dynamic class SND_punch extends Sound {
}
}//package
Section 47
//SND_squash (SND_squash)
package {
import flash.media.*;
public dynamic class SND_squash extends Sound {
}
}//package
Section 48
//SND_step (SND_step)
package {
import flash.media.*;
public dynamic class SND_step extends Sound {
}
}//package
Section 49
//SND_stepSlime (SND_stepSlime)
package {
import flash.media.*;
public dynamic class SND_stepSlime extends Sound {
}
}//package