Frame 1
function itemHandler1(obj, item) {
getURL ("http://newgrounds.com");
}
function itemHandler1(obj, item) {
getURL ("http://newgrounds.com");
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
item1 = new ContextMenuItem("Visit Newgrounds", itemHandler1);
myMenu.customItems.push(item1);
myMenu.customItems.push(new ContextMenuItem("Visit Newgrounds", itemHandler1));
_root.menu = myMenu;
var depth = 0;
onEnterFrame = function () {
newPart = "particle" + depth;
_root.attachMovie("particle", newPart, depth);
_root[newPart]._x = _root._xmouse;
_root[newPart]._y = _root._ymouse;
_root[newPart]._rotation = random(360);
_root[newPart].onEnterFrame = function () {
if (this._currentframe == 40) {
this.removeMovieClip();
}
};
depth++;
};
Frame 2
stop();
Frame 3
stop();
fuerza = 1;
velocidad = 0;
puntuacion = 0;
puntos = 0;
girar = false;
_root.onEnterFrame = function () {
velocidad = velocidad + fuerza;
objeto._y = objeto._y + velocidad;
if (objeto._y > 360) {
objeto._y = 360;
velocidad = velocidad * -0.7;
}
if (Key.isDown(38)) {
_root.objeto._y = _root.objeto._y - 5;
}
if (Key.isDown(37)) {
_root.objeto._x = _root.objeto._x - 5;
_root.objeto._rotation = _root.objeto._rotation - 8;
}
if (Key.isDown(39)) {
_root.objeto._x = _root.objeto._x + 5;
_root.objeto._rotation = _root.objeto._rotation + 8;
}
if (_root.objeto._x > 530) {
_root.objeto._x = 530;
}
if (_root.objeto._x < 0) {
_root.objeto._x = 0;
}
if (_root.objeto._y < 0) {
_root.objeto._y = 0;
}
if (_root.point.hitTest(_root.objeto)) {
_root.point._x = random(430) + 70;
_root.point._y = random(330) + 10;
_root.puntuacion = Number(_root.puntuacion) + 10;
_root.puntos = Number(_root.puntos) + 10;
_root.nivel1.bola.bolas[i].xVel = _root.nivel1.bola.bolas[i].xVel + 1;
_root.nivel1.bola.bolas[i].yVel = _root.nivel1.bola.bolas[i].yVel + 1;
}
if (_root.puntuacion > 30) {
gotoAndPlay (4);
_root.objeto._x = 12;
_root.objeto._y = 153;
_root.txt.gotoAndPlay("niv2");
}
};
Frame 4
stop();
fuerza = 1;
velocidad = 0;
puntuacion = 0;
girar = false;
_root.onEnterFrame = function () {
velocidad = velocidad + fuerza;
objeto._y = objeto._y + velocidad;
if (objeto._y > 360) {
objeto._y = 360;
velocidad = velocidad * -0.7;
}
if (Key.isDown(38)) {
_root.objeto._y = _root.objeto._y - 5;
}
if (Key.isDown(37)) {
_root.objeto._x = _root.objeto._x - 5;
_root.objeto._rotation = _root.objeto._rotation - 8;
}
if (Key.isDown(39)) {
_root.objeto._x = _root.objeto._x + 5;
_root.objeto._rotation = _root.objeto._rotation + 8;
}
if (_root.objeto._x > 530) {
_root.objeto._x = 530;
}
if (_root.objeto._x < 0) {
_root.objeto._x = 0;
}
if (_root.objeto._y < 0) {
_root.objeto._y = 0;
}
if (_root.point.hitTest(_root.objeto)) {
_root.point._x = random(430) + 70;
_root.point._y = random(330) + 10;
_root.puntuacion = Number(_root.puntuacion) + 10;
_root.puntos = Number(_root.puntos) + 10;
}
if (_root.puntuacion > 30) {
gotoAndPlay (5);
_root.objeto._x = 12;
_root.objeto._y = 153;
_root.txt.gotoAndPlay("niv3");
}
};
Frame 5
stop();
fuerza = 1;
velocidad = 0;
puntuacion = 0;
girar = false;
_root.onEnterFrame = function () {
velocidad = velocidad + fuerza;
objeto._y = objeto._y + velocidad;
if (objeto._y > 360) {
objeto._y = 360;
velocidad = velocidad * -0.7;
}
if (Key.isDown(38)) {
_root.objeto._y = _root.objeto._y - 5;
}
if (Key.isDown(37)) {
_root.objeto._x = _root.objeto._x - 5;
_root.objeto._rotation = _root.objeto._rotation - 8;
}
if (Key.isDown(39)) {
_root.objeto._x = _root.objeto._x + 5;
_root.objeto._rotation = _root.objeto._rotation + 8;
}
if (_root.objeto._x > 530) {
_root.objeto._x = 530;
}
if (_root.objeto._x < 0) {
_root.objeto._x = 0;
}
if (_root.objeto._y < 0) {
_root.objeto._y = 0;
}
if (_root.point.hitTest(_root.objeto)) {
_root.point._x = random(430) + 70;
_root.point._y = random(330) + 10;
_root.puntuacion = Number(_root.puntuacion) + 10;
_root.puntos = Number(_root.puntos) + 10;
_root.nivel1.bola.bolas[i].xVel = _root.nivel1.bola.bolas[i].xVel + 1;
_root.nivel1.bola.bolas[i].yVel = _root.nivel1.bola.bolas[i].yVel + 1;
}
if (_root.puntuacion > 40) {
gotoAndPlay (6);
_root.objeto._x = 12;
_root.objeto._y = 153;
_root.txt.gotoAndPlay("niv4");
}
};
Frame 6
stop();
fuerza = 1;
velocidad = 0;
puntuacion = 0;
girar = false;
_root.onEnterFrame = function () {
velocidad = velocidad + fuerza;
objeto._y = objeto._y + velocidad;
if (objeto._y > 360) {
objeto._y = 360;
velocidad = velocidad * -0.7;
}
if (Key.isDown(38)) {
_root.objeto._y = _root.objeto._y - 5;
}
if (Key.isDown(37)) {
_root.objeto._x = _root.objeto._x - 5;
_root.objeto._rotation = _root.objeto._rotation - 8;
}
if (Key.isDown(39)) {
_root.objeto._x = _root.objeto._x + 5;
_root.objeto._rotation = _root.objeto._rotation + 8;
}
if (_root.objeto._x > 530) {
_root.objeto._x = 530;
}
if (_root.objeto._x < 0) {
_root.objeto._x = 0;
}
if (_root.objeto._y < 0) {
_root.objeto._y = 0;
}
if (_root.point.hitTest(_root.objeto)) {
_root.point._x = random(430) + 70;
_root.point._y = random(330) + 10;
_root.puntuacion = Number(_root.puntuacion) + 10;
_root.puntos = Number(_root.puntos) + 10;
_root.nivel1.bola.bolas[i].xVel = _root.nivel1.bola.bolas[i].xVel + 1;
_root.nivel1.bola.bolas[i].yVel = _root.nivel1.bola.bolas[i].yVel + 1;
}
if (_root.puntuacion > 50) {
gotoAndPlay (7);
_root.objeto._x = 12;
_root.objeto._y = 153;
_root.txt.gotoAndPlay("niv5");
}
};
Frame 7
stop();
fuerza = 1;
velocidad = 0;
puntuacion = 0;
girar = false;
_root.onEnterFrame = function () {
velocidad = velocidad + fuerza;
objeto._y = objeto._y + velocidad;
if (objeto._y > 360) {
objeto._y = 360;
velocidad = velocidad * -0.7;
}
if (Key.isDown(38)) {
_root.objeto._y = _root.objeto._y - 5;
}
if (Key.isDown(37)) {
_root.objeto._x = _root.objeto._x - 5;
_root.objeto._rotation = _root.objeto._rotation - 8;
}
if (Key.isDown(39)) {
_root.objeto._x = _root.objeto._x + 5;
_root.objeto._rotation = _root.objeto._rotation + 8;
}
if (_root.objeto._x > 530) {
_root.objeto._x = 530;
}
if (_root.objeto._x < 0) {
_root.objeto._x = 0;
}
if (_root.objeto._y < 0) {
_root.objeto._y = 0;
}
if (_root.point.hitTest(_root.objeto)) {
_root.point._x = random(430) + 70;
_root.point._y = random(330) + 10;
_root.puntuacion = Number(_root.puntuacion) + 10;
_root.puntos = Number(_root.puntos) + 10;
_root.nivel1.bola.bolas[i].xVel = _root.nivel1.bola.bolas[i].xVel + 1;
_root.nivel1.bola.bolas[i].yVel = _root.nivel1.bola.bolas[i].yVel + 1;
}
if (_root.puntuacion > 50) {
gotoAndPlay (8);
_root.objeto._x = 12;
_root.objeto._y = 153;
_root.txt.gotoAndPlay("niv6");
}
};
Frame 8
stop();
fuerza = 1;
velocidad = 0;
puntuacion = 0;
girar = false;
_root.onEnterFrame = function () {
velocidad = velocidad + fuerza;
objeto._y = objeto._y + velocidad;
if (objeto._y > 360) {
objeto._y = 360;
velocidad = velocidad * -0.7;
}
if (Key.isDown(38)) {
_root.objeto._y = _root.objeto._y - 5;
}
if (Key.isDown(37)) {
_root.objeto._x = _root.objeto._x - 5;
_root.objeto._rotation = _root.objeto._rotation - 8;
}
if (Key.isDown(39)) {
_root.objeto._x = _root.objeto._x + 5;
_root.objeto._rotation = _root.objeto._rotation + 8;
}
if (_root.objeto._x > 530) {
_root.objeto._x = 530;
}
if (_root.objeto._x < 0) {
_root.objeto._x = 0;
}
if (_root.objeto._y < 0) {
_root.objeto._y = 0;
}
if (_root.point.hitTest(_root.objeto)) {
_root.point._x = random(430) + 70;
_root.point._y = random(330) + 10;
_root.puntuacion = Number(_root.puntuacion) + 10;
_root.puntos = Number(_root.puntos) + 10;
_root.nivel1.bola.bolas[i].xVel = _root.nivel1.bola.bolas[i].xVel + 1;
_root.nivel1.bola.bolas[i].yVel = _root.nivel1.bola.bolas[i].yVel + 1;
}
if (_root.puntuacion > 60) {
gotoAndPlay (9);
_root.objeto._x = 12;
_root.objeto._y = 153;
_root.txt.gotoAndPlay("niv7");
}
};
Frame 9
stop();
fuerza = 1;
velocidad = 0;
puntuacion = 0;
girar = false;
_root.onEnterFrame = function () {
velocidad = velocidad + fuerza;
objeto._y = objeto._y + velocidad;
if (objeto._y > 360) {
objeto._y = 360;
velocidad = velocidad * -0.7;
}
if (Key.isDown(38)) {
_root.objeto._y = _root.objeto._y - 5;
}
if (Key.isDown(37)) {
_root.objeto._x = _root.objeto._x - 5;
_root.objeto._rotation = _root.objeto._rotation - 8;
}
if (Key.isDown(39)) {
_root.objeto._x = _root.objeto._x + 5;
_root.objeto._rotation = _root.objeto._rotation + 8;
}
if (_root.objeto._x > 530) {
_root.objeto._x = 530;
}
if (_root.objeto._x < 0) {
_root.objeto._x = 0;
}
if (_root.objeto._y < 0) {
_root.objeto._y = 0;
}
if (_root.point.hitTest(_root.objeto)) {
_root.point._x = random(430) + 70;
_root.point._y = random(330) + 10;
_root.puntuacion = Number(_root.puntuacion) + 10;
_root.puntos = Number(_root.puntos) + 10;
_root.nivel1.bola.bolas[i].xVel = _root.nivel1.bola.bolas[i].xVel + 1;
_root.nivel1.bola.bolas[i].yVel = _root.nivel1.bola.bolas[i].yVel + 1;
}
if (_root.puntuacion > 60) {
gotoAndPlay (10);
_root.objeto._x = 12;
_root.objeto._y = 153;
_root.txt.gotoAndPlay("niv8");
}
};
Frame 10
stop();
fuerza = 1;
velocidad = 0;
puntuacion = 0;
girar = false;
_root.onEnterFrame = function () {
velocidad = velocidad + fuerza;
objeto._y = objeto._y + velocidad;
if (objeto._y > 360) {
objeto._y = 360;
velocidad = velocidad * -0.7;
}
if (Key.isDown(38)) {
_root.objeto._y = _root.objeto._y - 5;
}
if (Key.isDown(37)) {
_root.objeto._x = _root.objeto._x - 5;
_root.objeto._rotation = _root.objeto._rotation - 8;
}
if (Key.isDown(39)) {
_root.objeto._x = _root.objeto._x + 5;
_root.objeto._rotation = _root.objeto._rotation + 8;
}
if (_root.objeto._x > 530) {
_root.objeto._x = 530;
}
if (_root.objeto._x < 0) {
_root.objeto._x = 0;
}
if (_root.objeto._y < 0) {
_root.objeto._y = 0;
}
if (_root.point.hitTest(_root.objeto)) {
_root.point._x = random(430) + 70;
_root.point._y = random(330) + 10;
_root.puntuacion = Number(_root.puntuacion) + 10;
_root.puntos = Number(_root.puntos) + 10;
_root.nivel1.bola.bolas[i].xVel = _root.nivel1.bola.bolas[i].xVel + 1;
_root.nivel1.bola.bolas[i].yVel = _root.nivel1.bola.bolas[i].yVel + 1;
}
if (_root.puntuacion > 60) {
gotoAndPlay (11);
_root.objeto._x = 12;
_root.objeto._y = 153;
_root.txt.gotoAndPlay("niv9");
}
};
Frame 11
stop();
fuerza = 1;
velocidad = 0;
puntuacion = 0;
girar = false;
_root.onEnterFrame = function () {
velocidad = velocidad + fuerza;
objeto._y = objeto._y + velocidad;
if (objeto._y > 360) {
objeto._y = 360;
velocidad = velocidad * -0.7;
}
if (Key.isDown(38)) {
_root.objeto._y = _root.objeto._y - 5;
}
if (Key.isDown(37)) {
_root.objeto._x = _root.objeto._x - 5;
_root.objeto._rotation = _root.objeto._rotation - 8;
}
if (Key.isDown(39)) {
_root.objeto._x = _root.objeto._x + 5;
_root.objeto._rotation = _root.objeto._rotation + 8;
}
if (_root.objeto._x > 530) {
_root.objeto._x = 530;
}
if (_root.objeto._x < 0) {
_root.objeto._x = 0;
}
if (_root.objeto._y < 0) {
_root.objeto._y = 0;
}
if (_root.point.hitTest(_root.objeto)) {
_root.point._x = random(430) + 70;
_root.point._y = random(330) + 10;
_root.puntuacion = Number(_root.puntuacion) + 10;
_root.puntos = Number(_root.puntos) + 10;
_root.nivel1.bola.bolas[i].xVel = _root.nivel1.bola.bolas[i].xVel + 1;
_root.nivel1.bola.bolas[i].yVel = _root.nivel1.bola.bolas[i].yVel + 1;
}
if (_root.puntuacion > 60) {
gotoAndPlay (12);
_root.objeto._x = 12;
_root.objeto._y = 153;
_root.txt.gotoAndPlay("niv10");
}
};
Frame 12
stop();
fuerza = 1;
velocidad = 0;
puntuacion = 0;
girar = false;
_root.onEnterFrame = function () {
velocidad = velocidad + fuerza;
objeto._y = objeto._y + velocidad;
if (objeto._y > 360) {
objeto._y = 360;
velocidad = velocidad * -0.7;
}
if (Key.isDown(38)) {
_root.objeto._y = _root.objeto._y - 5;
}
if (Key.isDown(37)) {
_root.objeto._x = _root.objeto._x - 5;
_root.objeto._rotation = _root.objeto._rotation - 8;
}
if (Key.isDown(39)) {
_root.objeto._x = _root.objeto._x + 5;
_root.objeto._rotation = _root.objeto._rotation + 8;
}
if (_root.objeto._x > 530) {
_root.objeto._x = 530;
}
if (_root.objeto._x < 0) {
_root.objeto._x = 0;
}
if (_root.objeto._y < 0) {
_root.objeto._y = 0;
}
if (_root.point.hitTest(_root.objeto)) {
_root.point._x = random(430) + 70;
_root.point._y = random(330) + 10;
_root.puntuacion = Number(_root.puntuacion) + 10;
_root.puntos = Number(_root.puntos) + 10;
_root.nivel1.bola.bolas[i].xVel = _root.nivel1.bola.bolas[i].xVel + 1;
_root.nivel1.bola.bolas[i].yVel = _root.nivel1.bola.bolas[i].yVel + 1;
}
if (_root.puntuacion > 90) {
gotoAndPlay (12);
_root.objeto._x = 12;
_root.objeto._y = 153;
_root.txt.gotoAndPlay("gameover");
}
};
Frame 13
stop();
Symbol 6 MovieClip [ball] Frame 1
function doit(ball) {
new mx.transitions.Tween(eval (ball), "_x", mx.transitions.easing.Strong.easeOut, eval (ball)._x, randRange(0, Stage.width), 1, true);
new mx.transitions.Tween(eval (ball), "_y", mx.transitions.easing.Strong.easeOut, eval (ball)._y, randRange(0, Stage.height), 1, true);
ranker = randRange(50, 200);
new mx.transitions.Tween(eval (ball), "_xscale", mx.transitions.easing.Strong.easeOut, eval (ball)._xscale, ranker, 1, true);
new mx.transitions.Tween(eval (ball), "_yscale", mx.transitions.easing.Strong.easeOut, eval (ball)._yscale, ranker, 1, true);
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
setInterval(doit, 500, this);
Symbol 17 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
_root.gotoAndStop(2);
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.loader.bar)) {
this.nextFrame();
}
}
Symbol 18 MovieClip Frame 2
gotoAndPlay (1);
Symbol 137 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 138 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 139 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 140 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 60 Button
on (press) {
_root.gotoAndStop(3);
}
Symbol 68 Button
on (press) {
gotoAndStop (1);
_root.objeto._x = 12;
_root.objeto._y = 153;
_root.puntos = 0;
_root.score = 0;
}
Instance of Symbol 9 MovieClip [bola] "bola" in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
max = 1;
bolas = new Array();
var screen = _root.src.getBounds(_root);
var i = 0;
while (i < max) {
attachMovie("bola", "bola" + i, i);
bolas[i] = this["bola" + i];
bolas[i]._x = random(screen.xMax);
bolas[i]._y = random(screen.yMax);
bolas[i].xVel = (int(random(2)) + 2) * (1 - (random(2) * 2));
bolas[i].yVel = (int(random(2)) + 2) * (1 - (random(2) * 2));
i++;
}
_root.nivel1.bola.bolainicial._alpha = 0;
}
onClipEvent (enterFrame) {
var i = 0;
while (i < max) {
bolas[i]._x = bolas[i]._x + bolas[i].xVel;
bolas[i]._y = bolas[i]._y + bolas[i].yVel;
if (bolas[i].xVel > 5) {
bolas[i].xVel = 5;
}
if (bolas[i].yVel > 5) {
bolas[i].yVel = 5;
}
if (bolas[i].hitTest(_root.limite1)) {
bolas[i].xVel = bolas[i].xVel + random(2);
bolas[i].yVel = -(bolas[i].yVel + random(2));
}
if (bolas[i].hitTest(_root.limite2)) {
bolas[i].xVel = bolas[i].xVel - random(2);
bolas[i].yVel = -(bolas[i].yVel - random(2));
}
if (bolas[i].hitTest(_root.limite3)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.limite4)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.objeto.chivato)) {
_root.objeto._x = 0;
_root.objeto._y = 100;
_root.objeto.gotoAndStop(1);
_root.puntuacion = 0;
_root.puntos = _root.puntos - 10;
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(bolas[i]);
myColoredObject.setRGB(myColor);
bolas[i].yVel = bolas[i].yVel * 1.9;
bolas[i].xVel = bolas[i].xVel * 1.9;
}
i++;
}
}
Symbol 92 MovieClip Frame 35
stop();
Symbol 92 MovieClip Frame 70
stop();
Symbol 92 MovieClip Frame 105
stop();
Symbol 92 MovieClip Frame 140
stop();
Symbol 92 MovieClip Frame 175
stop();
Symbol 92 MovieClip Frame 210
stop();
Symbol 92 MovieClip Frame 245
stop();
Symbol 92 MovieClip Frame 280
stop();
Symbol 92 MovieClip Frame 315
stop();
Symbol 92 MovieClip Frame 350
stop();
Symbol 96 Button
on (press) {
_root.gotoAndStop(2);
}
Instance of Symbol 9 MovieClip [bola] "bola" in Symbol 99 MovieClip Frame 1
onClipEvent (load) {
max = 1;
bolas = new Array();
var screen = _root.src.getBounds(_root);
var i = 0;
while (i < max) {
attachMovie("bola", "bola" + i, i);
bolas[i] = this["bola" + i];
bolas[i]._x = random(screen.xMax);
bolas[i]._y = random(screen.yMax);
bolas[i].xVel = (int(random(5)) + 3) * (1 - (random(2) * 2));
bolas[i].yVel = (int(random(5)) + 3) * (1 - (random(2) * 2));
i++;
}
_root.nivel2.bola.bolainicial._alpha = 0;
}
onClipEvent (enterFrame) {
var i = 0;
while (i < max) {
bolas[i]._x = bolas[i]._x + bolas[i].xVel;
bolas[i]._y = bolas[i]._y + bolas[i].yVel;
if (bolas[i].xVel > 5) {
bolas[i].xVel = 5;
}
if (bolas[i].yVel > 5) {
bolas[i].yVel = 5;
}
if (bolas[i].hitTest(_root.limite1)) {
bolas[i].xVel = bolas[i].xVel + random(2);
bolas[i].yVel = -(bolas[i].yVel + random(2));
}
if (bolas[i].hitTest(_root.limite2)) {
bolas[i].xVel = bolas[i].xVel - random(2);
bolas[i].yVel = -(bolas[i].yVel - random(2));
}
if (bolas[i].hitTest(_root.limite3)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.limite4)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.objeto.chivato)) {
_root.objeto._x = 0;
_root.objeto._y = 100;
_root.objeto.gotoAndStop(1);
_root.puntuacion = 0;
_root.puntos = _root.puntos - 10;
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(bolas[i]);
myColoredObject.setRGB(myColor);
bolas[i].yVel = bolas[i].yVel * 1.9;
bolas[i].xVel = bolas[i].xVel * 1.9;
}
i++;
}
}
Instance of Symbol 9 MovieClip [bola] "bola" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
max = 2;
bolas = new Array();
var screen = _root.src.getBounds(_root);
var i = 0;
while (i < max) {
attachMovie("bola", "bola" + i, i);
bolas[i] = this["bola" + i];
bolas[i]._x = random(screen.xMax);
bolas[i]._y = random(screen.yMax);
bolas[i].xVel = (int(random(2)) + 1) * (1 - (random(2) * 2));
bolas[i].yVel = (int(random(2)) + 1) * (1 - (random(2) * 2));
i++;
}
_root.nivel3.bola.bolainicial._alpha = 0;
}
onClipEvent (enterFrame) {
var i = 0;
while (i < max) {
bolas[i]._x = bolas[i]._x + bolas[i].xVel;
bolas[i]._y = bolas[i]._y + bolas[i].yVel;
if (bolas[i].xVel > 5) {
bolas[i].xVel = 5;
}
if (bolas[i].yVel > 5) {
bolas[i].yVel = 5;
}
if (bolas[i].hitTest(_root.limite1)) {
bolas[i].xVel = bolas[i].xVel + random(2);
bolas[i].yVel = -(bolas[i].yVel + random(2));
}
if (bolas[i].hitTest(_root.limite2)) {
bolas[i].xVel = bolas[i].xVel - random(2);
bolas[i].yVel = -(bolas[i].yVel - random(2));
}
if (bolas[i].hitTest(_root.limite3)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.limite4)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.objeto.chivato)) {
_root.objeto._x = 0;
_root.objeto._y = 100;
_root.objeto.gotoAndStop(1);
_root.puntuacion = 0;
_root.puntos = _root.puntos - 10;
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(bolas[i]);
myColoredObject.setRGB(myColor);
bolas[i].yVel = bolas[i].yVel * 1.9;
bolas[i].xVel = bolas[i].xVel * 1.9;
}
i++;
}
}
Instance of Symbol 9 MovieClip [bola] "bola" in Symbol 105 MovieClip Frame 1
onClipEvent (load) {
max = 2;
bolas = new Array();
var screen = _root.src.getBounds(_root);
var i = 0;
while (i < max) {
attachMovie("bola", "bola" + i, i);
bolas[i] = this["bola" + i];
bolas[i]._x = random(screen.xMax);
bolas[i]._y = random(screen.yMax);
bolas[i].xVel = (int(random(2)) + 3) * (1 - (random(2) * 2));
bolas[i].yVel = (int(random(2)) + 3) * (1 - (random(2) * 2));
i++;
}
_root.nivel4.bola.bolainicial._alpha = 0;
}
onClipEvent (enterFrame) {
var i = 0;
while (i < max) {
bolas[i]._x = bolas[i]._x + bolas[i].xVel;
bolas[i]._y = bolas[i]._y + bolas[i].yVel;
if (bolas[i].xVel > 5) {
bolas[i].xVel = 5;
}
if (bolas[i].yVel > 5) {
bolas[i].yVel = 5;
}
if (bolas[i].hitTest(_root.limite1)) {
bolas[i].xVel = bolas[i].xVel + random(2);
bolas[i].yVel = -(bolas[i].yVel + random(2));
}
if (bolas[i].hitTest(_root.limite2)) {
bolas[i].xVel = bolas[i].xVel - random(2);
bolas[i].yVel = -(bolas[i].yVel - random(2));
}
if (bolas[i].hitTest(_root.limite3)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.limite4)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.objeto.chivato)) {
_root.objeto._x = 0;
_root.objeto._y = 100;
_root.objeto.gotoAndStop(1);
_root.puntuacion = 0;
_root.puntos = _root.puntos - 10;
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(bolas[i]);
myColoredObject.setRGB(myColor);
bolas[i].yVel = bolas[i].yVel * 1.9;
bolas[i].xVel = bolas[i].xVel * 1.9;
}
i++;
}
}
Instance of Symbol 9 MovieClip [bola] "bola" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
max = 4;
bolas = new Array();
var screen = _root.src.getBounds(_root);
var i = 0;
while (i < max) {
attachMovie("bola", "bola" + i, i);
bolas[i] = this["bola" + i];
bolas[i]._x = random(screen.xMax);
bolas[i]._y = random(screen.yMax);
bolas[i].xVel = (int(random(2)) + 0.2) * (1 - (random(2) * 2));
bolas[i].yVel = (int(random(2)) + 0.2) * (1 - (random(2) * 2));
i++;
}
_root.nivel5.bola.bolainicial._alpha = 0;
}
onClipEvent (enterFrame) {
var i = 0;
while (i < max) {
bolas[i]._x = bolas[i]._x + bolas[i].xVel;
bolas[i]._y = bolas[i]._y + bolas[i].yVel;
if (bolas[i].xVel > 5) {
bolas[i].xVel = 5;
}
if (bolas[i].yVel > 5) {
bolas[i].yVel = 5;
}
if (bolas[i].hitTest(_root.limite1)) {
bolas[i].xVel = bolas[i].xVel + random(2);
bolas[i].yVel = -(bolas[i].yVel + random(2));
}
if (bolas[i].hitTest(_root.limite2)) {
bolas[i].xVel = bolas[i].xVel - random(2);
bolas[i].yVel = -(bolas[i].yVel - random(2));
}
if (bolas[i].hitTest(_root.limite3)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.limite4)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.objeto.chivato)) {
_root.objeto._x = 0;
_root.objeto._y = 100;
_root.objeto.gotoAndStop(1);
_root.puntuacion = 0;
_root.puntos = _root.puntos - 10;
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(bolas[i]);
myColoredObject.setRGB(myColor);
bolas[i].yVel = bolas[i].yVel * 1.9;
bolas[i].xVel = bolas[i].xVel * 1.9;
}
i++;
}
}
Instance of Symbol 9 MovieClip [bola] "bola" in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
max = 4;
bolas = new Array();
var screen = _root.src.getBounds(_root);
var i = 0;
while (i < max) {
attachMovie("bola", "bola" + i, i);
bolas[i] = this["bola" + i];
bolas[i]._x = random(screen.xMax);
bolas[i]._y = random(screen.yMax);
bolas[i].xVel = (int(random(2)) + 1) * (1 - (random(2) * 2));
bolas[i].yVel = (int(random(2)) + 1) * (1 - (random(2) * 2));
i++;
}
_root.nivel6.bola.bolainicial._alpha = 0;
}
onClipEvent (enterFrame) {
var i = 0;
while (i < max) {
bolas[i]._x = bolas[i]._x + bolas[i].xVel;
bolas[i]._y = bolas[i]._y + bolas[i].yVel;
if (bolas[i].xVel > 5) {
bolas[i].xVel = 5;
}
if (bolas[i].yVel > 5) {
bolas[i].yVel = 5;
}
if (bolas[i].hitTest(_root.limite1)) {
bolas[i].xVel = bolas[i].xVel + random(2);
bolas[i].yVel = -(bolas[i].yVel + random(2));
}
if (bolas[i].hitTest(_root.limite2)) {
bolas[i].xVel = bolas[i].xVel - random(2);
bolas[i].yVel = -(bolas[i].yVel - random(2));
}
if (bolas[i].hitTest(_root.limite3)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.limite4)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.objeto.chivato)) {
_root.objeto._x = 0;
_root.objeto._y = 100;
_root.objeto.gotoAndStop(1);
_root.puntuacion = 0;
_root.puntos = _root.puntos - 10;
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(bolas[i]);
myColoredObject.setRGB(myColor);
bolas[i].yVel = bolas[i].yVel * 1.9;
bolas[i].xVel = bolas[i].xVel * 1.9;
}
i++;
}
}
Instance of Symbol 9 MovieClip [bola] "bola" in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
max = 4;
bolas = new Array();
var screen = _root.src.getBounds(_root);
var i = 0;
while (i < max) {
attachMovie("bola", "bola" + i, i);
bolas[i] = this["bola" + i];
bolas[i]._x = random(screen.xMax);
bolas[i]._y = random(screen.yMax);
bolas[i].xVel = (int(random(2)) + 2) * (1 - (random(2) * 2));
bolas[i].yVel = (int(random(2)) + 2) * (1 - (random(2) * 2));
i++;
}
_root.nivel7.bola.bolainicial._alpha = 0;
}
onClipEvent (enterFrame) {
var i = 0;
while (i < max) {
bolas[i]._x = bolas[i]._x + bolas[i].xVel;
bolas[i]._y = bolas[i]._y + bolas[i].yVel;
if (bolas[i].xVel > 5) {
bolas[i].xVel = 5;
}
if (bolas[i].yVel > 5) {
bolas[i].yVel = 5;
}
if (bolas[i].hitTest(_root.limite1)) {
bolas[i].xVel = bolas[i].xVel + random(2);
bolas[i].yVel = -(bolas[i].yVel + random(2));
}
if (bolas[i].hitTest(_root.limite2)) {
bolas[i].xVel = bolas[i].xVel - random(2);
bolas[i].yVel = -(bolas[i].yVel - random(2));
}
if (bolas[i].hitTest(_root.limite3)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.limite4)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.objeto.chivato)) {
_root.objeto._x = 0;
_root.objeto._y = 100;
_root.objeto.gotoAndStop(1);
_root.puntuacion = 0;
_root.puntos = _root.puntos - 10;
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(bolas[i]);
myColoredObject.setRGB(myColor);
bolas[i].yVel = bolas[i].yVel * 1.9;
bolas[i].xVel = bolas[i].xVel * 1.9;
}
i++;
}
}
Instance of Symbol 9 MovieClip [bola] "bola" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
max = 3;
bolas = new Array();
var screen = _root.src.getBounds(_root);
var i = 0;
while (i < max) {
attachMovie("bola", "bola" + i, i);
bolas[i] = this["bola" + i];
bolas[i]._x = random(screen.xMax);
bolas[i]._y = random(screen.yMax);
bolas[i].xVel = (int(random(2)) + 6) * (1 - (random(2) * 2));
bolas[i].yVel = (int(random(2)) + 6) * (1 - (random(2) * 2));
i++;
}
_root.nivel8.bola.bolainicial._alpha = 0;
}
onClipEvent (enterFrame) {
var i = 0;
while (i < max) {
bolas[i]._x = bolas[i]._x + bolas[i].xVel;
bolas[i]._y = bolas[i]._y + bolas[i].yVel;
if (bolas[i].xVel > 5) {
bolas[i].xVel = 5;
}
if (bolas[i].yVel > 5) {
bolas[i].yVel = 5;
}
if (bolas[i].hitTest(_root.limite1)) {
bolas[i].xVel = bolas[i].xVel + random(2);
bolas[i].yVel = -(bolas[i].yVel + random(2));
}
if (bolas[i].hitTest(_root.limite2)) {
bolas[i].xVel = bolas[i].xVel - random(2);
bolas[i].yVel = -(bolas[i].yVel - random(2));
}
if (bolas[i].hitTest(_root.limite3)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.limite4)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.objeto.chivato)) {
_root.objeto._x = 0;
_root.objeto._y = 100;
_root.objeto.gotoAndStop(1);
_root.puntuacion = 0;
_root.puntos = _root.puntos - 10;
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(bolas[i]);
myColoredObject.setRGB(myColor);
bolas[i].yVel = bolas[i].yVel * 1.9;
bolas[i].xVel = bolas[i].xVel * 1.9;
}
i++;
}
}
Instance of Symbol 9 MovieClip [bola] "bola" in Symbol 117 MovieClip Frame 1
onClipEvent (load) {
max = 4;
bolas = new Array();
var screen = _root.src.getBounds(_root);
var i = 0;
while (i < max) {
attachMovie("bola", "bola" + i, i);
bolas[i] = this["bola" + i];
bolas[i]._x = random(screen.xMax);
bolas[i]._y = random(screen.yMax);
bolas[i].xVel = (int(random(2)) + 5) * (1 - (random(2) * 2));
bolas[i].yVel = (int(random(2)) + 5) * (1 - (random(2) * 2));
i++;
}
_root.nivel9.bola.bolainicial._alpha = 0;
}
onClipEvent (enterFrame) {
var i = 0;
while (i < max) {
bolas[i]._x = bolas[i]._x + bolas[i].xVel;
bolas[i]._y = bolas[i]._y + bolas[i].yVel;
if (bolas[i].xVel > 5) {
bolas[i].xVel = 5;
}
if (bolas[i].yVel > 5) {
bolas[i].yVel = 5;
}
if (bolas[i].hitTest(_root.limite1)) {
bolas[i].xVel = bolas[i].xVel + random(2);
bolas[i].yVel = -(bolas[i].yVel + random(2));
}
if (bolas[i].hitTest(_root.limite2)) {
bolas[i].xVel = bolas[i].xVel - random(2);
bolas[i].yVel = -(bolas[i].yVel - random(2));
}
if (bolas[i].hitTest(_root.limite3)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.limite4)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.objeto.chivato)) {
_root.objeto._x = 0;
_root.objeto._y = 100;
_root.objeto.gotoAndStop(1);
_root.puntuacion = 0;
_root.puntos = _root.puntos - 10;
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(bolas[i]);
myColoredObject.setRGB(myColor);
bolas[i].yVel = bolas[i].yVel * 1.9;
bolas[i].xVel = bolas[i].xVel * 1.9;
}
i++;
}
}
Instance of Symbol 9 MovieClip [bola] "bola" in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
max = 7;
bolas = new Array();
var screen = _root.src.getBounds(_root);
var i = 0;
while (i < max) {
attachMovie("bola", "bola" + i, i);
bolas[i] = this["bola" + i];
bolas[i]._x = random(screen.xMax);
bolas[i]._y = random(screen.yMax);
bolas[i].xVel = (int(random(2)) + 0.1) * (1 - (random(2) * 2));
bolas[i].yVel = (int(random(2)) + 0.1) * (1 - (random(2) * 2));
i++;
}
_root.nivel10.bola.bolainicial._alpha = 0;
}
onClipEvent (enterFrame) {
var i = 0;
while (i < max) {
bolas[i]._x = bolas[i]._x + bolas[i].xVel;
bolas[i]._y = bolas[i]._y + bolas[i].yVel;
if (bolas[i].xVel > 5) {
bolas[i].xVel = 5;
}
if (bolas[i].yVel > 5) {
bolas[i].yVel = 5;
}
if (bolas[i].hitTest(_root.limite1)) {
bolas[i].xVel = bolas[i].xVel + random(2);
bolas[i].yVel = -(bolas[i].yVel + random(2));
}
if (bolas[i].hitTest(_root.limite2)) {
bolas[i].xVel = bolas[i].xVel - random(2);
bolas[i].yVel = -(bolas[i].yVel - random(2));
}
if (bolas[i].hitTest(_root.limite3)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.limite4)) {
bolas[i].xVel = -bolas[i].xVel;
bolas[i].yVel = bolas[i].yVel;
}
if (bolas[i].hitTest(_root.objeto.chivato)) {
_root.objeto._x = 0;
_root.objeto._y = 100;
_root.objeto.gotoAndStop(1);
_root.puntuacion = 0;
_root.puntos = _root.puntos - 10;
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(bolas[i]);
myColoredObject.setRGB(myColor);
bolas[i].yVel = bolas[i].yVel * 1.9;
bolas[i].xVel = bolas[i].xVel * 1.9;
}
i++;
}
}
Symbol 136 MovieClip Frame 120
stop();