Frame 1
cyload._x = cyload._x + ((((650 * (this.getBytesLoaded() / this.getBytesTotal())) - 55) - cyload._x) / 3);
Frame 2
if ((this.getBytesLoaded() / this.getBytesTotal()) < 0.99) {
this.gotoAndPlay(1);
}
Frame 4
stop();
var ROOT = this;
breaking.onPress = function () {
ROOT.play();
};
Frame 29
function garb() {
with (game) {
if (Key.isDown(83)) {
cyclone._visible = false;
} else {
cyclone._visible = true;
}
cyclone.swapDepths((1100 * int(cyclone._y)) - 1);
cyclone._x = cyclone._x + ((_root._xmouse - cyclone._x) / 30);
if (_root._ymouse < 185) {
cyclone._y = cyclone._y + ((185 - cyclone._y) / 30);
} else if (_root._ymouse > 395) {
cyclone._y = cyclone._y + ((395 - cyclone._y) / 30);
} else {
cyclone._y = cyclone._y + (((_root._ymouse + ((_root._ymouse - 200) / 3)) - cyclone._y) / 50);
}
cObjs = grid.getObjs(int(cyclone._x / 50), int((cyclone._y - 190) / 50));
var i = 0;
while (i < cObjs.length) {
cObjs[0].play();
cObjs.splice(0, 1);
i++;
}
if (!Key.isDown(65)) {
with (pallete) {
clear();
lineStyle(2, 3351057);
moveTo(cyclone._x, cyclone._y);
lineTo((cyclone._x + random(19)) - 9, (cyclone._y + random(15)) - 7);
lineStyle(2, 6697762);
moveTo(cyclone._x, cyclone._y);
lineTo((cyclone._x + random(19)) - 9, (cyclone._y + random(15)) - 7);
}
palMap.draw(pallete);
}
if (!Key.isDown(68)) {
attachMovie("cloud" + (random(2) + 1), "adfad", ((1100 * int((cyclone._y + 2) + random(4))) + (2 * random(500))) - 499, {_x:cyclone._x + ((random(71) - 35) / 3), _y:cyclone._y, xvel:(random(11) - 5) / 2, yvel:(-random(9)) / 3});
}
}
}
stop();
var blur = (new flash.filters.BlurFilter(3, 3, 3));
var grassBlur = (new flash.filters.BlurFilter(2, 3, 1));
var bitmap = (new flash.display.BitmapData(640, 480, false, 0));
var point = (new flash.geom.Point(0, 0));
var rect = (new flash.geom.Rectangle(0, 0, 640, 480));
var matrix = [0, -1, 0, -1, 4, -1, 0, -1, 0];
var convolution = (new flash.filters.ConvolutionFilter());
convolution.matrixX = 3;
convolution.matrixY = 3;
convolution.matrix = matrix;
convolution.divisor = 1;
var yoff = 5;
var xoff = 100;
this.createEmptyMovieClip("game", 7);
game.createEmptyMovieClip("cyclone", 5);
game.createEmptyMovieClip("pallete", 3);
game.createEmptyMovieClip("land", 2);
var landMap = (new flash.display.BitmapData(550, 400, false, 1140224));
var palMap = (new flash.display.BitmapData(550, 400, true, 16777215));
var i = 0;
while (i < 100) {
var randX = random(550);
var randY = random(230);
game.pallete.lineStyle(3, 6697762);
game.pallete.moveTo(randX, randY);
game.pallete.lineTo((randX + random(19)) - 9, (randY + random(15)) - 7);
i++;
}
landMap.draw(game.pallete);
landMap.applyFilter(landMap, rect, point, blur);
landMap.applyFilter(landMap, rect, point, blur);
var i = 0;
while (i < 5550) {
var randX = random(550);
var randY = random(230);
game.pallete.lineStyle(2, 39202);
game.pallete.moveTo(randX, randY);
game.pallete.lineTo((randX + random(9)) - 4, (randY + random(15)) - 7);
game.pallete.lineStyle(2, 6736896);
game.pallete.moveTo(randX, randY);
game.pallete.lineTo((randX + random(9)) - 4, (randY + random(15)) - 7);
game.pallete.lineStyle(2, 52224);
game.pallete.moveTo(randX, randY);
game.pallete.lineTo((randX + random(9)) - 4, (randY + random(15)) - 7);
game.pallete.lineStyle(2, 26112);
game.pallete.moveTo(randX, randY);
game.pallete.lineTo((randX + random(9)) - 4, (randY + random(15)) - 7);
i++;
}
landMap.draw(game.pallete);
landMap.applyFilter(landMap, rect, point, blur);
game.pallete.clear();
var i = 0;
while (i < 9550) {
var randX = random(550);
var randY = random(230);
game.pallete.lineStyle(1, 3381504);
game.pallete.moveTo(randX, randY);
game.pallete.lineTo(randX + ((random(9) - 4) / 5), (randY + random(15)) - 7);
game.pallete.lineStyle(1, 26129);
game.pallete.moveTo(randX, randY);
game.pallete.lineTo(randX + ((random(9) - 4) / 5), (randY + random(15)) - 7);
game.pallete.lineStyle(1, 39168);
game.pallete.moveTo(randX, randY);
game.pallete.lineTo(randX + ((random(9) - 4) / 5), (randY + random(15)) - 7);
i++;
}
landMap.draw(game.pallete);
landMap.applyFilter(landMap, rect, point, grassBlur);
game.pallete.clear();
game.pallete.attachBitmap(palMap, 1);
game.land.attachBitmap(landMap, 1);
game.land._y = 180;
var i = 0;
while (i < 80) {
var j = 0;
while (j < 15) {
var scaleVar = (0.8 * ((((80 - i) + (yoff * yoff)) + random(21)) - 10));
var d = game.cyclone.getNextHighestDepth();
var obj = game.cyclone.attachMovie("tornado_part", ("tornado_part" + (15 * i)) + j, d, {_x:0, _y:((1.8 * i) - 135) + (random(4) / 2), _xscale:scaleVar, _yscale:(3 * scaleVar) / 4});
obj.part.gotoAndPlay(random(39) + 1);
obj.part.graphic.gotoAndStop(random(3) + 1);
obj.part.graphic.image._xscale = (obj.part.graphic.image._yscale = xoff);
j++;
}
xoff = xoff + 0.5;
yoff = yoff * 0.97;
i++;
}
game.cyclone.attachMovie("face", "face", 1200, {_x:0, _y:-85});
game.cyclone._x = 200;
game.cyclone._y = 200;
setInterval(garb, 10);
var grid = new GridManager(12, 5);
var i = 0;
while (i < 250) {
var rand = (random(200) + 190);
var X = (random(500) + 25);
var obj = new MovieClip();
if (random(9) == 0) {
obj = game.attachMovie("small_house", "house", (1100 * rand) + (2 * X), {_x:X, _y:rand});
} else if (random(3) == 0) {
obj = game.attachMovie("medium_tree", "tree", (1100 * rand) + (2 * X), {_x:X, _y:rand});
} else if (random(3) == 0) {
obj = game.attachMovie("people1", "person", (1100 * rand) + (2 * X), {_x:X, _y:rand});
} else {
obj = game.attachMovie("small_bush", "bush", (1100 * rand) + (2 * X), {_x:X, _y:rand});
}
obj.cacheAsBitmap = true;
grid.addObj(int(X / 50), int((rand - 190) / 50), obj);
i++;
}
var cObjs;
Symbol 71 MovieClip [__Packages.GridManager] Frame 0
class GridManager
{
var grid;
function GridManager (w, h) {
grid = new Array(h);
var _local3 = 0;
while (_local3 < h) {
grid[_local3] = new Array(15);
var _local2 = 0;
while (_local2 < 15) {
grid[_local3][_local2] = new GridHolder();
_local2++;
}
_local3++;
}
}
function addObj(X, Y, obj) {
grid[Y][X].addObj(obj);
}
function getObjs(X, Y) {
return(grid[Y][X].getObjs());
}
function removeGrid(X, Y) {
grid[X][Y] = new GridHolder();
}
function printGrid() {
var _local7 = 0;
while (_local7 < grid.length) {
var _local5 = 0;
while (_local5 < grid[0].length) {
var _local6 = grid[_local7][_local5].getObjs();
var _local3 = ((("AT " + _local7) + ":") + _local5) + ": ";
var _local2 = 0;
while (_local2 < _local6.length) {
var _local4 = _local6[_local2];
_local3 = _local3 + (_local4._y + ":");
_local3 = _local3 + (_local4._x + "||");
_local2++;
}
trace(_local3);
_local5++;
}
_local7++;
}
}
}
Symbol 72 MovieClip [__Packages.GridHolder] Frame 0
class GridHolder
{
var objs;
function GridHolder () {
objs = new Array();
}
function addObj(obj) {
objs.push(obj);
}
function getObjs() {
return(objs);
}
function remove(at) {
objs.splice(at, 1);
}
}
Symbol 13 MovieClip [medium_tree] Frame 1
stop();
Symbol 13 MovieClip [medium_tree] Frame 19
this.removeMovieClip();
Symbol 15 MovieClip [people1] Frame 1
stop();
Symbol 15 MovieClip [people1] Frame 15
this.removeMovieClip();
Symbol 17 MovieClip [small_house] Frame 1
stop();
Symbol 17 MovieClip [small_house] Frame 15
this.removeMovieClip();
Symbol 22 MovieClip [cloud1] Frame 1
_alpha = (_alpha - 5);
_rotation = (_rotation + rvel);
_x = (_x + xvel);
_y = (_y + yvel);
xvel = xvel * 0.9;
yvel = yvel * 0.9;
if (_alpha < 4) {
this.removeMovieClip();
}
Symbol 22 MovieClip [cloud1] Frame 2
_alpha = (_alpha - 5);
_rotation = (_rotation + rvel);
_x = (_x + xvel);
_y = (_y + yvel);
xvel = xvel * 0.9;
yvel = yvel * 0.9;
if (_alpha < 4) {
this.removeMovieClip();
}
Symbol 24 MovieClip [cloud2] Frame 1
_alpha = (_alpha - 5);
_rotation = (_rotation + rvel);
_x = (_x + xvel);
_y = (_y + yvel);
xvel = xvel * 0.9;
yvel = yvel * 0.9;
if (_alpha < 4) {
this.removeMovieClip();
}
Symbol 24 MovieClip [cloud2] Frame 2
_alpha = (_alpha - 5);
_rotation = (_rotation + rvel);
_x = (_x + xvel);
_y = (_y + yvel);
xvel = xvel * 0.9;
yvel = yvel * 0.9;
if (_alpha < 4) {
this.removeMovieClip();
}
Symbol 25 MovieClip [clouds] Frame 1
var rand = ((random(71) - 35) / 3);
this.attachMovie("cloud" + (random(2) + 1), "cloud", random(300), {_x:rand / 8, _y:random(15) - 20, xvel:(((rand / 10) + (random(11) - 5)) - off) / 3, yvel:(-random(10)) / 32, rvel:random(21) - 10});
Symbol 25 MovieClip [clouds] Frame 2
var rand = ((random(71) - 35) / 3);
this.attachMovie("cloud" + (random(2) + 1), "cloud", random(300), {_x:rand / 8, _y:random(15) - 20, xvel:(((rand / 10) + (random(11) - 5)) - off) / 3, yvel:(-random(10)) / 32, rvel:random(21) - 10});
Symbol 27 MovieClip [small_bush] Frame 1
stop();
Symbol 27 MovieClip [small_bush] Frame 15
this.removeMovieClip();