Section 1
//baby_24 (woods_fla.baby_24)
package woods_fla {
import flash.display.*;
public dynamic class baby_24 extends MovieClip {
public function baby_24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package woods_fla
Section 2
//baby_die_25 (woods_fla.baby_die_25)
package woods_fla {
import flash.display.*;
public dynamic class baby_die_25 extends MovieClip {
public function baby_die_25(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package woods_fla
Section 3
//bag_31 (woods_fla.bag_31)
package woods_fla {
import flash.display.*;
public dynamic class bag_31 extends MovieClip {
public function bag_31(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package woods_fla
Section 4
//box_5 (woods_fla.box_5)
package woods_fla {
import flash.display.*;
public dynamic class box_5 extends MovieClip {
public function box_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package woods_fla
Section 5
//building1_19 (woods_fla.building1_19)
package woods_fla {
import flash.display.*;
public dynamic class building1_19 extends MovieClip {
public function building1_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package woods_fla
Section 6
//can_26 (woods_fla.can_26)
package woods_fla {
import flash.display.*;
public dynamic class can_26 extends MovieClip {
public function can_26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package woods_fla
Section 7
//can_fall_28 (woods_fla.can_fall_28)
package woods_fla {
import flash.display.*;
public dynamic class can_fall_28 extends MovieClip {
public function can_fall_28(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package woods_fla
Section 8
//cup_3 (woods_fla.cup_3)
package woods_fla {
import flash.display.*;
public dynamic class cup_3 extends MovieClip {
public function cup_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package woods_fla
Section 9
//cup_fall_4 (woods_fla.cup_fall_4)
package woods_fla {
import flash.display.*;
public dynamic class cup_fall_4 extends MovieClip {
public function cup_fall_4(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package woods_fla
Section 10
//hydrant_22 (woods_fla.hydrant_22)
package woods_fla {
import flash.display.*;
public dynamic class hydrant_22 extends MovieClip {
public function hydrant_22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package woods_fla
Section 11
//MainTimeline (woods_fla.MainTimeline)
package woods_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var woman:uint;
public var obsticle:Array;
public var timer1:Timer;
public var bg2:MovieClip;
public var channel1:SoundChannel;
public var channel2:SoundChannel;
public var wife:MovieClip;
public var score:uint;
public var mute:Boolean;
public var speedMax:uint;
public var depthArr:Array;
public var ramkol:MovieClip;
public var text1:TextField;
public var toDouble:uint;
public var yBoost:Number;
public var logo:SimpleButton;
public var speedMax2:uint;
public var firstRun:Boolean;
public var line1:MovieClip;
public var ob1:Obsticle;
public var ob2:Obsticle;
public var keyIsDown:Array;
public var bg:MovieClip;
public var speed:Number;
public var track:uint;
public var scoreDisplay:MovieClip;
public var trackHeight:uint;
public var playerWill:int;
public var yBoostMax:uint;
public var player:MovieClip;
public var go:SimpleButton;
public var gameMenu:MovieClip;
public var counter:uint;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function bgLoop(){
bg.x = (bg.x - (speed * 0.75));
if ((bg.x + bg.width) < 0){
bg.gotoAndStop((int((Math.random() * bg.totalFrames)) + 1));
bg.x = 640;
};
bg2.x = (bg2.x - (speed * 0.5));
if (bg2.x < -640){
bg2.x = (bg2.x + 640);
};
}
public function clearAll(){
while (numChildren > 0) {
removeChild(getChildAt(0));
};
while (depthArr.length > 0) {
depthArr[0] = null;
depthArr.splice(0, 1);
};
timer1.reset();
}
public function tempLoop(_arg1:Event){
var _local2:Number = (loaderInfo.bytesLoaded / loaderInfo.bytesTotal);
text1.text = (String(Math.floor((_local2 * 100))) + "%");
if (_local2 >= 1){
removeEventListener(Event.ENTER_FRAME, tempLoop);
play();
};
}
public function gameLoop(_arg1:Event){
var _local2:uint;
var _local3:MovieClip;
if (keyIsDown[Keyboard.ESCAPE]){
gameOver();
clearAll();
gotoAndStop("main");
return;
};
if (keyIsDown[Keyboard.DOWN]){
yBoost = (yBoost + 4);
playerWill = 1;
} else {
if (keyIsDown[Keyboard.UP]){
yBoost = (yBoost - 4);
playerWill = -1;
} else {
_local2 = (Math.round((player.y / trackHeight)) * trackHeight);
if ((((playerWill == 1)) && ((_local2 < player.y)))){
_local2 = (_local2 + trackHeight);
} else {
if ((((playerWill == -1)) && ((_local2 > player.y)))){
_local2 = (_local2 - trackHeight);
};
};
yBoost = ((_local2 - player.y) / 2);
};
};
if (Math.abs(yBoost) > yBoostMax){
yBoost = ((Math.abs(yBoost) / yBoost) * yBoostMax);
};
player.y = (player.y + yBoost);
if (player.y < (trackHeight * 2)){
player.y = (trackHeight * 2);
};
if (player.y > (trackHeight * 4)){
player.y = (trackHeight * 4);
};
wife.yBoost = (((player.y + 3) - wife.y) / 2);
if (Math.abs(wife.yBoost) > wife.yBoostMax){
wife.yBoost = ((Math.abs(wife.yBoost) / wife.yBoost) * wife.yBoostMax);
};
wife.y = (wife.y + wife.yBoost);
wife.x = (wife.x + (speedMax - speed));
if ((player.x - wife.x) < 220){
gameOver();
};
if (speed < speedMax){
speed = (speed + 1);
};
score = timer1.currentCount;
scoreDisplay.text1.text = String(score);
if (score >= (toDouble * 2)){
toDouble = score;
channel2 = new snd_milestone().play();
scoreDisplay.play();
if (obsticle.length < 4){
_local3 = new Obsticle();
obsticle.push(_local3);
depthArr.push(_local3);
_local3.x = -64;
};
};
bgLoop();
lineLoop();
obsticleLoop();
arrangeDepth();
counter++;
if (counter == 100){
counter = 0;
if ((((speed >= speedMax)) && ((speedMax < speedMax2)))){
speedMax = (speedMax + 2);
speed = speedMax;
};
};
}
public function lineLoop(){
var _local1:Object = line1;
_local1.x = (_local1.x - speed);
if (_local1.x < -640){
_local1.x = (_local1.x + 640);
};
}
public function obsticleLoop(){
var _local1:Object;
var _local2:Object;
for each (_local1 in obsticle) {
if (((((((!(_local1.colided)) && ((Math.abs((_local1.y - player.y)) < 20)))) && ((_local1.x < player.x)))) && (((_local1.x - player.x) > -200)))){
_local1.colided = true;
if (_local1.clip != null){
_local1.clip.gotoAndStop(2);
};
player.gotoAndStop(2);
speed = (speed - 5);
if (speed < 0){
speed = 0;
};
counter = 0;
channel2 = new snd_hit().play(100, 0);
};
_local1.x = (_local1.x - speed);
if (_local1.x < -100){
_local1.x = (640 + int(((Math.random() * 400) + 100)));
for each (_local2 in obsticle) {
if (Math.abs((_local2.x - _local1.x)) < 64){
_local1.x = (_local2.x + 64);
};
};
_local1.y = (int(((Math.random() * 3) + 2)) * trackHeight);
_local1.tree = false;
_local1.gotoAndStop(int(((Math.random() * _local1.totalFrames) + 1)));
if (_local1.clip != null){
_local1.clip.gotoAndStop(1);
};
_local1.colided = false;
};
};
}
function frame1(){
stop();
firstRun = true;
stage.scaleMode = StageScaleMode.NO_SCALE;
if (loaderInfo.bytesLoaded >= loaderInfo.bytesTotal){
gotoAndStop(2);
} else {
addEventListener(Event.ENTER_FRAME, tempLoop);
};
}
public function mouseHandler(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "go"){
gotoAndStop("game");
} else {
if (_arg1.currentTarget.name == "quit"){
clearAll();
gotoAndStop("main");
} else {
if (_arg1.currentTarget.name == "again"){
clearAll();
gotoAndStop("main");
gotoAndStop("game");
} else {
if (_arg1.currentTarget.name == "logo"){
navigateToURL(new URLRequest("http://www.break.com"), "_blank");
};
};
};
};
}
public function gameOver(){
speed = 0;
stage.removeEventListener(Event.ENTER_FRAME, gameLoop);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyHandler);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyHandler);
timer1.stop();
wife.visible = false;
if (!keyIsDown[Keyboard.ESCAPE]){
player.gotoAndStop(3);
};
}
public function keyHandler(_arg1:KeyboardEvent){
keyIsDown[_arg1.keyCode] = (_arg1.type == KeyboardEvent.KEY_DOWN);
}
function frame2(){
stop();
logo.addEventListener(MouseEvent.MOUSE_DOWN, mouseHandler);
if (firstRun){
firstRun = false;
mute = false;
channel1 = new SoundChannel();
channel2 = new SoundChannel();
channel1 = new snd_music1().play(0, 1000);
};
go.addEventListener(MouseEvent.MOUSE_DOWN, mouseHandler);
}
function frame3(){
stop();
stage.focus = stage;
score = 0;
counter = 0;
keyIsDown = new Array();
track = 0;
trackHeight = 120;
speed = 0;
speedMax = 20;
speedMax2 = 35;
yBoost = 0;
yBoostMax = 12;
obsticle = [ob1, ob2];
depthArr = new Array(wife, player, ob1, ob2);
timer1 = new Timer(500, 0);
toDouble = 25;
woman = (1 + Math.round(Math.random()));
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyHandler);
stage.addEventListener(KeyboardEvent.KEY_UP, keyHandler);
stage.addEventListener(Event.ENTER_FRAME, gameLoop);
gameMenu.stop();
gameMenu.visible = false;
timer1.start();
}
public function arrangeDepth(){
depthArr.sortOn("y", Array.NUMERIC);
var _local1:uint;
while (_local1 < depthArr.length) {
if (((depthArr[_local1].tree) || (!(depthArr[_local1].colided)))){
addChild(depthArr[_local1]);
};
_local1++;
};
}
}
}//package woods_fla
Section 12
//mc_player_32 (woods_fla.mc_player_32)
package woods_fla {
import flash.display.*;
public dynamic class mc_player_32 extends MovieClip {
public function mc_player_32(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package woods_fla
Section 13
//menu_39 (woods_fla.menu_39)
package woods_fla {
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.events.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class menu_39 extends MovieClip {
public var text1:TextField;
public var again:SimpleButton;
public var quit:SimpleButton;
public function menu_39(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
text1.text = String(MovieClip(parent).score);
again.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(parent).mouseHandler);
quit.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(parent).mouseHandler);
}
}
}//package woods_fla
Section 14
//mistress_15 (woods_fla.mistress_15)
package woods_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mistress_15 extends MovieClip {
public function mistress_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
gotoAndStop(MovieClip(root).woman);
}
}
}//package woods_fla
Section 15
//ramkol_17 (woods_fla.ramkol_17)
package woods_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class ramkol_17 extends MovieClip {
public function ramkol_17(){
addFrameScript(0, frame1);
}
function frame1(){
buttonMode = true;
addEventListener(MouseEvent.MOUSE_DOWN, mouseHandler);
if (MovieClip(parent).mute){
gotoAndStop("off");
} else {
gotoAndStop("on");
};
}
public function mouseHandler(_arg1:MouseEvent){
if (MovieClip(parent).mute){
MovieClip(parent).mute = false;
gotoAndStop("on");
SoundMixer.soundTransform = new SoundTransform(1);
} else {
MovieClip(parent).mute = true;
gotoAndStop("off");
SoundMixer.soundTransform = new SoundTransform(0);
};
}
}
}//package woods_fla
Section 16
//scoreDisplay_43 (woods_fla.scoreDisplay_43)
package woods_fla {
import flash.display.*;
import flash.text.*;
import flash.geom.*;
public dynamic class scoreDisplay_43 extends MovieClip {
public var text1:TextField;
public var tempTransform:ColorTransform;
public function scoreDisplay_43(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
tempTransform = new ColorTransform();
tempTransform.color = 0x666666;
this.transform.colorTransform = tempTransform;
}
function frame2(){
tempTransform.color = 0xDF0000;
this.transform.colorTransform = tempTransform;
}
}
}//package woods_fla
Section 17
//smoke2_6 (woods_fla.smoke2_6)
package woods_fla {
import flash.display.*;
public dynamic class smoke2_6 extends MovieClip {
public function smoke2_6(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package woods_fla
Section 18
//suv_destroy_35 (woods_fla.suv_destroy_35)
package woods_fla {
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.events.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class suv_destroy_35 extends MovieClip {
public function suv_destroy_35(){
addFrameScript(71, frame72, 119, frame120);
}
function frame72(){
MovieClip(parent.parent).gameMenu.visible = true;
MovieClip(parent.parent).gameMenu.play();
MovieClip(parent.parent).addChild(MovieClip(parent.parent).gameMenu);
}
function frame120(){
stop();
}
}
}//package woods_fla
Section 19
//suv_drive_hurt_34 (woods_fla.suv_drive_hurt_34)
package woods_fla {
import flash.display.*;
public dynamic class suv_drive_hurt_34 extends MovieClip {
public function suv_drive_hurt_34(){
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(parent).gotoAndStop(1);
}
}
}//package woods_fla
Section 20
//tree_7 (woods_fla.tree_7)
package woods_fla {
import flash.display.*;
public dynamic class tree_7 extends MovieClip {
public function tree_7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package woods_fla
Section 21
//tree_shake_12 (woods_fla.tree_shake_12)
package woods_fla {
import flash.display.*;
public dynamic class tree_shake_12 extends MovieClip {
public function tree_shake_12(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package woods_fla
Section 22
//wife_holder_38 (woods_fla.wife_holder_38)
package woods_fla {
import flash.display.*;
public dynamic class wife_holder_38 extends MovieClip {
public var clip:MovieClip;
public var yBoost:int;
public var yBoostMax:uint;
public function wife_holder_38(){
addFrameScript(0, frame1);
}
function frame1(){
yBoost = 0;
yBoostMax = 8;
}
}
}//package woods_fla
Section 23
//Obsticle (Obsticle)
package {
import flash.display.*;
public dynamic class Obsticle extends MovieClip {
public var clip:MovieClip;
public var tree:Boolean;
public function Obsticle(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
tree = false;
}
function frame9(){
tree = true;
}
}
}//package
Section 24
//snd_hit (snd_hit)
package {
import flash.media.*;
public dynamic class snd_hit extends Sound {
}
}//package
Section 25
//snd_milestone (snd_milestone)
package {
import flash.media.*;
public dynamic class snd_milestone extends Sound {
}
}//package
Section 26
//snd_music1 (snd_music1)
package {
import flash.media.*;
public dynamic class snd_music1 extends Sound {
}
}//package