Frame 1
function gotoFrame(ff) {
_root.oScreen.play();
_root.gtFrame = ff;
}
stop();
var lvl = 1;
var gtFrame = 1;
var qty = 1;
var myFx = true;
var sndo = true;
var tmpBonus = 300;
var bPlay = false;
var lives = 5;
Object.prototype.setCookie = function (c, n, v) {
var _local1 = SharedObject.getLocal(c);
_local1.data[n] = v;
_local1.flush();
};
Object.prototype.getCookie = function (c, n) {
var _local1 = SharedObject.getLocal(c);
return(_local1.data[n]);
};
var iPlayed = this.getCookie("database", "iPlayed");
if (((iPlayed == null) || (iPlayed == undefined)) || (iPlayed == false)) {
iPlayed = true;
var topLevel = 1;
var cheat = false;
_root.setCookie("database", "iPlayed", _root.iPlayed);
_root.setCookie("database", "topLevel", _root.topLevel);
_root.setCookie("database", "cheat", _root.cheat);
} else {
var topLevel = this.getCookie("database", "topLevel");
var cheat = this.getCookie("database", "cheat");
}
trace("top level: " + topLevel);
fscommand ("trapallkeys", "true");
Stage.showMenu = false;
mochi.as2.MochiServices.connect("b177dc2ad81531a9");
var CPMStarContentSpotID = "0";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=703Q67F83794");
Instance of Symbol 63 MovieClip in Frame 1
onClipEvent (enterFrame) {
this.bar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.play();
}
}
onClipEvent (load) {
}
Instance of Symbol 70 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(107);
}
Frame 2
stop();
_root.adBox.removeMovieClip("");
Frame 3
stop();
Frame 4
stop();
var avisos = [true, true, true, true, true, true, true, true, true, true, true];
Instance of Symbol 59 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 59 MovieClip in Frame 7
onClipEvent (load) {
gotoAndStop (2);
}
Frame 8
stop();
lvl = this.getCookie("database", "topLevel");
lives = 5;
Frame 10
function parts(px, py, rot, fsp, psp) {
pins++;
prt = _root.allSc.prtcls.attachMovie("fpart", "p" + pins, pins);
prt._x = px + (Math.cos(rot * mul) * radius);
prt._y = py + (Math.sin(rot * mul) * radius);
prt.rot = rot;
if (psp != undefined) {
prt.sp = psp;
} else {
prt.sp = 3;
}
if (fsp != undefined) {
prt.fsp = fsp;
} else {
prt.fsp = 3;
}
}
function makeExplo(px, py, ssc) {
pins++;
expl = _root.allSc.prtcls.attachMovie("explo", "e" + pins, pins);
expl._x = px;
expl._y = py;
expl._xscale = (expl._yscale = ssc);
if (_root.sndo) {
_root.makeSound("explo2");
}
}
function makeHit(px, py, rrot, ssc) {
pins++;
expl = _root.allSc.prtcls.attachMovie("exploHit", "e" + pins, pins);
expl._x = px;
expl._y = py;
expl._rotation = rrot;
expl._xscale = (expl._yscale = ssc);
}
function blurIt() {
myBitmap.draw(bgMc);
mMul = 0.8;
myBitmap.colorTransform(myBitmap.rectangle, new flash.geom.ColorTransform(myRgb[0], myRgb[1], myRgb[2], mMul, myRgb[4], myRgb[5], myRgb[6], myRgb[7]));
}
function makeSound(ssnd) {
mys.attachSound(ssnd);
mys.start();
}
if (!bPlay) {
var score = 0;
if (cheat) {
tmpBonus = 400;
} else {
tmpBonus = 200;
}
bPlay = true;
}
var ps = false;
var lpassed = false;
var ralf = 1;
var pins = 0;
var prt;
var mul = (Math.PI/180);
var radius = 14;
var expl;
stop();
var myBitmap = (new flash.display.BitmapData(640, 400, true, 16777215));
_root.bgg.attachBitmap(myBitmap, 0);
var bFilter = (new flash.filters.BlurFilter(5, 5, 1));
var bgMc = _root.allSc;
var mMul = 0;
var myRgb = [0, 0, 0, 0, 0, 0, 0, 0];
var myColorSet = (random(6) + 1);
if (myColorSet == 1) {
myRgb = [1, 0, 0, mMul, 225, 150, 250, 0];
} else if (myColorSet == 2) {
myRgb = [1, 1, 1, mMul, -255, 40, 188, 0];
} else if (myColorSet == 3) {
myRgb = [1, 1, 1, mMul, -58, -255, 20, 0];
} else if (myColorSet == 4) {
myRgb = [1, 1, 1, mMul, -138, 40, -255, 0];
} else if (myColorSet == 5) {
myRgb = [1, 1, 1, mMul, 0, -255, -32, 0];
} else if (myColorSet == 6) {
myRgb = [1, 1, 1, mMul, 0, -62, -255, 0];
}
myRgb = [1, 1, 1, mMul, -62, -255, 0, 0];
var timex;
var thistime;
var oldtime = 0;
var ifps = 0;
var iframes = 0;
var fps;
getFps = function () {
timex = getTimer() / 1000;
thistime = timex - oldtime;
if (thistime >= 1) {
ifps = iframes;
iframes = 0;
oldtime++;
} else {
iframes++;
}
fps = Math.round((ifps / 35) * 100) + "%";
};
var mys = new Sound();
Frame 11
if (lpassed) {
score = score + ((100 + Math.round(lvl * 5)) + tmpBonus);
if (cheat) {
tmpBonus = 400;
} else {
tmpBonus = 200;
}
if ((lvl > topLevel) && (lvl < 51)) {
topLevel = lvl;
this.setCookie("database", "topLevel", lvl);
}
lives = lives + 3;
lives = Math.min(lives, 25);
} else {
tmpBonus = tmpBonus - 40;
if (tmpBonus < 0) {
tmpBonus = 0;
}
lives--;
if (lives <= 0) {
gotoAndStop (16);
}
}
allSc.removeMovieClip("");
play();
Frame 12
gotoAndStop(_currentframe - 2);
Frame 13
function parts(px, py, rot, fsp) {
pins++;
prt = _root.allSc.prtcls.attachMovie("fpart", "p" + pins, pins);
prt._x = px + (Math.cos(rot * mul) * radius);
prt._y = py + (Math.sin(rot * mul) * radius);
prt.rot = rot;
prt.sp = 3;
if (fsp != undefined) {
prt.fsp = fsp;
} else {
prt.fsp = 3;
}
}
var score = 0;
var ps = false;
var ralf = 1;
var pins = 0;
var prt;
var mul = (Math.PI/180);
var radius = 14;
stop();
Frame 14
_root.cheat = true;
this.setCookie("database", "cheat", _root.cheat);
Frame 16
stop();
stopAllSounds();
Instance of Symbol 59 MovieClip in Frame 16
onClipEvent (load) {
gotoAndStop (2);
}
Frame 17
var o = {n:[6, 9, 15, 7, 14, 13, 2, 8, 15, 2, 10, 5, 0, 6, 6, 6], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:score});
Frame 19
gotoAndStop (4);
Frame 21
var o = {n:[6, 9, 15, 7, 14, 13, 2, 8, 15, 2, 10, 5, 0, 6, 6, 6], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID});
stop();
Instance of Symbol 439 MovieClip in Frame 22
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
if (_x < (-w)) {
_x = (640 + w);
_y = (random(300) + 90);
} else if (_x > (640 + w)) {
_x = (-w);
_y = (random(300) + 90);
}
_x = (_x + xv);
}
onClipEvent (load) {
var xv = (random(3) - random(3));
if (xv == 0) {
xv = -3;
}
var rr = (random(10) - random(10));
var w = (_width / 2);
_y = (random(300) + 90);
_yscale = (30 + random(40));
_xscale = (30 + random(40));
}
Frame 23
gotoAndStop (4);
Symbol 13 MovieClip [blank] Frame 1
_visible = false;
Symbol 16 MovieClip [b7] Frame 1
var mul = (Math.PI/180);
var cs = Math.cos(rotation * mul);
var sn = Math.sin(rotation * mul);
var tb = _root.allSc.tb;
var c = 0;
var b;
var pgen = 0;
var pfreq = 3;
var rrot;
var ralf = _root.ralf;
if (noParticles == undefined) {
pact = true;
} else {
pact = false;
}
onEnterFrame = function () {
_x = (_x + (speed * cs));
_y = (_y + (speed * sn));
c = 0;
_alpha = (_alpha - ralf);
if (_alpha <= 0) {
this.removeMovieClip("");
}
if ((((_x < -20) || (_x > 660)) || (_y < -20)) || (_y > 430)) {
this.removeMovieClip("");
}
if (pact) {
pgen++;
if (pgen >= pfreq) {
rrot = (rotation + 160) + random(40);
_root.parts(_x, _y, rrot, 6);
}
}
};
stop();
Symbol 20 MovieClip Frame 1
var chmin = [-1, 1];
var sp = ((random(7) + 4) * chmin[random(2)]);
if (_parent.sscale == undefined) {
_yscale = 100;
_xscale = 100;
} else {
_yscale = _parent.sscale;
_xscale = _parent.sscale;
}
Symbol 22 MovieClip Frame 1
var nc = (_parent.life / 10);
var crate;
var c = 0;
var chmin = [-1, 1];
var sp = ((random(7) + 4) * chmin[random(2)]);
stop();
Symbol 23 MovieClip [bdemo] Frame 1
var mul = (Math.PI/180);
var cs = Math.cos(rotation * mul);
var sn = Math.sin(rotation * mul);
var trot;
var pgen = 0;
var pfreq = 3;
var pact;
var ralf = _root.ralf;
if (noParticles == undefined) {
pact = true;
} else {
pact = false;
}
onEnterFrame = function () {
_x = (_x + (speed * cs));
_y = (_y + (speed * sn));
if (life <= 0) {
_parent.totalDestroyed--;
this.removeMovieClip("");
}
if ((((_x < -20) || (_x > 660)) || (_y < -20)) || (_y > 430)) {
trace("removed");
this.removeMovieClip("");
}
_alpha = (_alpha - ralf);
if (_alpha <= 0) {
this.removeMovieClip("");
}
};
Symbol 27 MovieClip [bdemo3] Frame 1
var mul = (Math.PI/180);
var cs = Math.cos(rotation * mul);
var sn = Math.sin(rotation * mul);
var trot;
var pgen = 0;
var pfreq = 3;
stop();
if (noParticles == undefined) {
pact = true;
} else {
pact = false;
}
onEnterFrame = function () {
_x = (_x + (speed * cs));
_y = (_y + (speed * sn));
if ((life <= 0) && (_currentframe == 1)) {
_root.score = _root.score + 200;
_parent.notDestroyed++;
speed = 0;
play();
}
if ((((_x < -20) || (_x > 660)) || (_y < -20)) || (_y > 430)) {
_parent.notDestroyed++;
this.removeMovieClip("");
}
inner._rotation = inner._rotation + inner.sp;
if (pact) {
pgen++;
if (pgen >= pfreq) {
trot = inner._rotation;
_root.parts(_x, _y, trot);
pgen = 0;
}
}
};
Symbol 27 MovieClip [bdemo3] Frame 14
this.removeMovieClip("");
Symbol 28 MovieClip [bdemo2] Frame 1
var mul = (Math.PI/180);
var cs = Math.cos(rotation * mul);
var sn = Math.sin(rotation * mul);
var trot;
var pgen = 0;
var pfreq = 3;
trace("maneimes: " + _name);
stop();
if (noParticles == undefined) {
pact = true;
} else {
pact = false;
}
onEnterFrame = function () {
_x = (_x + (speed * cs));
_y = (_y + (speed * sn));
if ((((_x < -20) || (_x > 660)) || (_y < -20)) || (_y > 430)) {
_parent.notDestroyed++;
this.removeMovieClip("");
}
inner._rotation = inner._rotation + inner.sp;
if (pact) {
pgen++;
if (pgen >= pfreq) {
trot = inner._rotation;
_root.parts(_x, _y, trot);
pgen = 0;
}
}
};
Symbol 32 MovieClip [crate] Frame 1
inner._x = 2 + random(5);
Symbol 34 MovieClip [fpart] Frame 1
var scale = 100;
var mul = _root.mul;
onEnterFrame = function () {
scale = scale - fsp;
_yscale = scale;
_xscale = scale;
if (scale <= 0) {
this.removeMovieClip("");
}
_x = (_x + (Math.cos(rot * mul) * sp));
_y = (_y + (Math.sin(rot * mul) * sp));
};
Symbol 37 MovieClip [exploHit] Frame 1
var n = (7 + random(7));
var c = 0;
var rr;
var vv;
do {
rr = random(360);
vv = 5 + random(5);
_root.parts(_x, _y, rr, 4, vv);
c++;
} while (c < n);
Symbol 37 MovieClip [exploHit] Frame 4
this.removeMovieClip("");
Symbol 40 MovieClip Frame 10
_parent.removeMovieClip("");
Symbol 41 MovieClip [explo] Frame 1
var n = (14 + random(20));
var c = 0;
var rr;
var vv;
do {
rr = random(360);
vv = 5 + random(5);
_root.parts(_x, _y, rr, 4, vv);
c++;
} while (c < n);
Symbol 46 MovieClip [b3] Frame 1
var mul = (Math.PI/180);
var cs = Math.cos(rotation * mul);
var sn = Math.sin(rotation * mul);
var trot;
var pgen = 0;
var pfreq = 3;
trace("maneimes: " + _name);
if (noParticles == undefined) {
pact = true;
} else {
pact = false;
}
onEnterFrame = function () {
_x = (_x + (speed * cs));
_y = (_y + (speed * sn));
if ((((_x < -20) || (_x > 660)) || (_y < -20)) || (_y > 430)) {
_parent.notDestroyed++;
this.removeMovieClip("");
}
inner._rotation = inner._rotation + inner.sp;
if (pact) {
pgen++;
if (pgen >= pfreq) {
trot = inner._rotation;
_root.parts(_x, _y, trot);
pgen = 0;
}
}
};
Symbol 47 MovieClip [b4] Frame 1
var mul = (Math.PI/180);
var cs = Math.cos(rotation * mul);
var sn = Math.sin(rotation * mul);
var trot;
var pgen = 0;
var pfreq = 3;
stop();
if (noParticles == undefined) {
pact = true;
} else {
pact = false;
}
onEnterFrame = function () {
_x = (_x + (speed * cs));
_y = (_y + (speed * sn));
if ((life <= 0) && (_currentframe == 1)) {
_root.score = _root.score + 200;
_parent.notDestroyed++;
speed = 0;
play();
}
if ((((_x < -20) || (_x > 660)) || (_y < -20)) || (_y > 430)) {
_parent.notDestroyed++;
this.removeMovieClip("");
}
inner._rotation = inner._rotation + inner.sp;
if (pact) {
pgen++;
if (pgen >= pfreq) {
trot = inner._rotation;
_root.parts(_x, _y, trot);
pgen = 0;
}
}
};
Symbol 47 MovieClip [b4] Frame 14
this.removeMovieClip("");
Symbol 49 MovieClip [b2] Frame 1
var mul = (Math.PI/180);
var cs = Math.cos(rotation * mul);
var sn = Math.sin(rotation * mul);
var tb = _root.allSc.tb;
var c = 0;
var b;
var pgen = 0;
var pfreq = 3;
var rrot;
_rotation = rotation;
if (noParticles == undefined) {
pact = true;
} else {
pact = false;
}
onEnterFrame = function () {
_x = (_x + (speed * cs));
_y = (_y + (speed * sn));
_rotation = rotation;
c = 0;
do {
b = _root.allSc["b" + c];
if (ha.hitTest(b.ha)) {
trace("hit");
b.life = b.life - 10;
b.inner["cr" + b.inner.nc].removeMovieClip("");
b.inner.nc--;
_root.makeHit(_x, _y, rotation, 50);
if (_root.sndo) {
_root.msk.hs.gotoAndPlay(2);
}
this.removeMovieClip("");
}
c++;
} while (c <= tb);
if ((((_x < -20) || (_x > 660)) || (_y < -20)) || (_y > 430)) {
this.removeMovieClip("");
}
if (pact) {
pgen++;
if (pgen >= pfreq) {
rrot = (rotation + 160) + random(40);
_root.parts(_x, _y, rrot, 6);
}
}
};
stop();
Symbol 51 MovieClip Frame 1
var nc = (_parent.life / 10);
var crate;
var hole;
var c = 0;
var chmin = [-1, 1];
var sp = ((random(10) + 7) * chmin[random(2)]);
while (c < nc) {
c++;
crate = this.attachMovie("crate", "cr" + c, c);
crate._rotation = ((360 / nc) * c) + random(20);
}
stop();
Symbol 52 MovieClip [b1] Frame 1
var mul = (Math.PI/180);
var cs = Math.cos(rotation * mul);
var sn = Math.sin(rotation * mul);
var trot;
var pgen = 0;
var pfreq = 3;
var pact;
if (noParticles == undefined) {
pact = true;
} else {
pact = false;
}
onEnterFrame = function () {
_x = (_x + (speed * cs));
_y = (_y + (speed * sn));
if (life <= 0) {
_root.score = _root.score + 50;
_root.makeExplo(_x, _y, 100);
_parent.totalDestroyed--;
_parent.notDestroyed++;
this.removeMovieClip("");
}
if ((((_x < -20) || (_x > 660)) || (_y < -20)) || (_y > 430)) {
_parent.notDestroyed++;
trace("removed");
this.removeMovieClip("");
}
inner._rotation = inner._rotation + inner.sp;
if (pact) {
pgen++;
if (pgen >= pfreq) {
pgen = 0;
while (pgen <= inner.nc) {
trot = inner["cr" + pgen]._rotation + inner._rotation;
_root.parts(_x, _y, trot);
pgen++;
}
pgen = 0;
}
}
};
Symbol 54 Button
on (release) {
getURL ("http://www.minijuegos.com", "_blank");
}
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 7
_root.gotoAndStop(_root.gtFrame);
Symbol 440 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.0");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 441 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.as2.MochiServices.clip;
}
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 442 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 167 MovieClip Frame 100
_root.play();
Symbol 168 Button
on (release) {
getURL ("http://www.giddelcreations.com", "_blank");
}
Symbol 170 Button
on (release) {
getURL ("http://www.giddelcreations.com", "_blank");
}
Symbol 192 MovieClip Frame 40
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 46
stop();
Symbol 211 MovieClip Frame 75
stop();
Symbol 216 MovieClip Frame 123
stop();
_root.gotoFrame(4);
Symbol 251 MovieClip Frame 1
gotoAndStop(_parent._parent.myNum);
stop();
Symbol 252 MovieClip Frame 1
_visible = false;
var c = 0;
stop();
onEnterFrame = function () {
c++;
if (c >= _parent.myC) {
play();
}
};
Symbol 252 MovieClip Frame 2
_visible = true;
delete onEnterFrame;
Symbol 252 MovieClip Frame 25
stop();
Symbol 253 MovieClip Frame 36
stop();
Instance of Symbol 218 MovieClip in Symbol 254 MovieClip Frame 1
on (release) {
_root.gotoFrame(8);
}
Instance of Symbol 218 MovieClip in Symbol 254 MovieClip Frame 1
on (release) {
_root.gotoFrame(5);
}
Instance of Symbol 218 MovieClip in Symbol 254 MovieClip Frame 1
on (release) {
getURL ("http://www.minijuegos.com", "_blank");
}
Instance of Symbol 218 MovieClip in Symbol 254 MovieClip Frame 1
on (release) {
_root.gotoFrame(7);
}
Instance of Symbol 222 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 4);
}
Instance of Symbol 224 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 4);
}
Instance of Symbol 218 MovieClip in Symbol 254 MovieClip Frame 1
on (release) {
_root.gotoFrame(21);
}
Instance of Symbol 253 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
var myNum = 1;
var myC = 0;
}
Instance of Symbol 253 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
var myNum = 2;
var myC = 4;
}
Instance of Symbol 253 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
var myNum = 3;
var myC = 8;
}
Instance of Symbol 253 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
var myNum = 4;
var myC = 12;
}
Instance of Symbol 253 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
var myNum = 5;
var myC = 16;
}
Instance of Symbol 256 MovieClip "i2" in Symbol 257 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x + ((tx - _x) * pplus));
}
onClipEvent (load) {
var pplus = 0.3;
var tx;
if (_root.sndo) {
tx = _root.men2.t4._x;
} else {
tx = _root.men2.t5._x;
}
}
Instance of Symbol 256 MovieClip "i1" in Symbol 257 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x + ((tx - _x) * pplus));
}
onClipEvent (load) {
var pplus = 0.3;
var tx;
if (_root.qty == 1) {
tx = _root.men2.t1._x;
} else if (_root.qty == 2) {
tx = _root.men2.t2._x;
} else {
tx = _root.men2.t3._x;
}
}
Instance of Symbol 256 MovieClip "i3" in Symbol 257 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x + ((tx - _x) * pplus));
}
onClipEvent (load) {
var pplus = 0.3;
var tx;
if (_root.sndo) {
tx = _root.men2.t4._x;
} else {
tx = _root.men2.t5._x;
}
}
Instance of Symbol 218 MovieClip in Symbol 257 MovieClip Frame 1
on (release) {
_root.sndo = true;
_root.men2.i2.tx = _root.men2.t4._x;
}
Instance of Symbol 218 MovieClip in Symbol 257 MovieClip Frame 1
on (release) {
_root.gotoFrame(4);
}
Instance of Symbol 218 MovieClip in Symbol 257 MovieClip Frame 1
on (release) {
_root.qty = 1;
_root._quality = "HIGH";
_root.men2.i1.tx = _root.men2.t1._x;
}
Instance of Symbol 218 MovieClip in Symbol 257 MovieClip Frame 1
on (release) {
_root.qty = 2;
_root._quality = "MEDIUM";
_root.men2.i1.tx = _root.men2.t2._x;
}
Instance of Symbol 218 MovieClip in Symbol 257 MovieClip Frame 1
on (release) {
_root.qty = 3;
_root._quality = "LOW";
_root.men2.i1.tx = _root.men2.t3._x;
}
Instance of Symbol 218 MovieClip in Symbol 257 MovieClip Frame 1
on (release) {
_root.sndo = false;
_root.men2.i2.tx = _root.men2.t5._x;
}
Instance of Symbol 218 MovieClip in Symbol 257 MovieClip Frame 1
on (release) {
_root.myFx = true;
_root.men2.i3.tx = _root.men2.t6._x;
}
Instance of Symbol 218 MovieClip in Symbol 257 MovieClip Frame 1
on (release) {
_root.myFx = false;
_root.men2.i3.tx = _root.men2.t7._x;
}
Instance of Symbol 253 MovieClip "t4" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
var myNum = 12;
var myC = 20;
}
Instance of Symbol 253 MovieClip "t5" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
var myNum = 13;
var myC = 24;
}
Instance of Symbol 253 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
var myNum = 7;
var myC = 40;
}
Instance of Symbol 253 MovieClip "t1" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
var myNum = 20;
var myC = 4;
}
Instance of Symbol 253 MovieClip "t2" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
var myNum = 21;
var myC = 8;
}
Instance of Symbol 253 MovieClip "t3" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
var myNum = 22;
var myC = 12;
}
Instance of Symbol 253 MovieClip "t6" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
var myNum = 12;
var myC = 32;
}
Instance of Symbol 253 MovieClip "t7" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
var myNum = 13;
var myC = 36;
}
Instance of Symbol 253 MovieClip "t1" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
var myNum = 15;
var myC = 0;
}
Instance of Symbol 253 MovieClip "t4" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
var myNum = 16;
var myC = 16;
}
Instance of Symbol 253 MovieClip "t6" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
var myNum = 17;
var myC = 28;
}
Instance of Symbol 218 MovieClip in Symbol 265 MovieClip Frame 1
on (release) {
_root.gotoFrame(4);
}
Instance of Symbol 253 MovieClip in Symbol 265 MovieClip Frame 1
onClipEvent (load) {
var myNum = 7;
var myC = 0;
}
Symbol 271 Button
on (press) {
if (lvl < _root.topLevel) {
lvl++;
}
}
Symbol 272 Button
on (press) {
if (lvl > 1) {
lvl--;
}
}
Symbol 273 MovieClip Frame 1
onEnterFrame = function () {
if (lvl > _root.topLevel) {
lvl = _root.topLevel;
} else if (lvl < 1) {
lvl = 1;
}
_root.lvl = this.lvl;
};
this.lvl = _root.lvl;
Instance of Symbol 218 MovieClip in Symbol 273 MovieClip Frame 1
on (release) {
_root.bPlay = false;
_root.gotoFrame(10);
}
Instance of Symbol 218 MovieClip in Symbol 273 MovieClip Frame 1
on (release) {
_root.gotoFrame(13);
}
Instance of Symbol 253 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
var myNum = 1;
var myC = 0;
}
Instance of Symbol 253 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
var myNum = 11;
var myC = 8;
}
Instance of Symbol 224 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 4);
}
Instance of Symbol 224 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 4);
}
Instance of Symbol 224 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 4);
}
Symbol 276 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
if (_root.sndo) {
nextFrame();
} else {
stop();
}
stop();
Symbol 278 MovieClip Frame 2
Symbol 288 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 1
gotoAndStop(_parent.dd);
Instance of Symbol 13 MovieClip [blank] in Symbol 313 MovieClip Frame 1
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.avisos[_parent.dd] = false;
_parent.swapDepths(0);
_parent.removeMovieClip("");
}
}
Symbol 313 MovieClip Frame 28
gotoAndPlay (1);
Symbol 316 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 329 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 65
_root.lvl++;
_root.gotoFrame(11);
Symbol 330 MovieClip Frame 125
_root.gotoFrame(11);
Symbol 384 MovieClip Frame 1
gotoAndStop(_root.lvl);
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 1
stop();
var c = 1;
var tb = (_parent.totalWeapons + 2);
var tb2 = (_parent.tb + 1);
var mc;
var rot = (_rotation - 90);
var nrot;
var cnt = 5;
onEnterFrame = function () {
tb = _parent.totalWeapons + 1;
tb2 = _parent.tb + 1;
c = 1;
do {
mc = _parent["r" + c];
if (this.hitTest(mc._x, mc._y, true) && (cnt > 5)) {
nrot = 360 - (mc.rotation - (_rotation * 2));
mc.rotation = nrot;
mc.cs = Math.cos(nrot * mc.mul);
mc.sn = Math.sin(nrot * mc.mul);
cnt = 0;
inner.play();
}
c++;
} while (c <= tb);
c = 1;
do {
mc = _parent["b" + c];
if (this.hitTest(mc._x, mc._y, true) && (cnt > 2)) {
nrot = 360 - (mc.rotation - (_rotation * 2));
mc.rotation = nrot;
mc.cs = Math.cos(nrot * mc.mul);
mc.sn = Math.sin(nrot * mc.mul);
cnt = 0;
inner.play();
}
c++;
} while (c <= tb2);
cnt++;
};
Symbol 406 MovieClip Frame 1
if (_root.lvl > 50) {
trace("yepa");
_root.gotoAndStop(14);
}
this.swapDepths(1);
this.lives = _root.lives;
var larr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 11, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 18, 24, 25, 26, 52, 27, 29, 30, 31, 28, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 9, 10, 51, 52];
gotoAndStop(larr[_root.lvl]);
var speed = 4;
var rspeed = 4;
var totalWeapons = 1;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Instance of Symbol 288 MovieClip "cannon1" in Symbol 406 MovieClip Frame 1
onClipEvent (load) {
var good = true;
}
Instance of Symbol 313 MovieClip in Symbol 406 MovieClip Frame 1
onClipEvent (load) {
var dd = 7;
if (_root.avisos[dd] == false) {
this.swapDepths(0);
this.removeMovieClip("");
}
}
Instance of Symbol 313 MovieClip in Symbol 406 MovieClip Frame 1
onClipEvent (load) {
var dd = 8;
if (_root.avisos[dd] == false) {
this.swapDepths(0);
this.removeMovieClip("");
}
}
Instance of Symbol 13 MovieClip [blank] "eng" in Symbol 406 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.totalDestroyed <= _parent.nh) {
passed = true;
_parent.lpassed.play();
_root.lpassed = true;
}
if ((_parent.tbackup == _parent.notDestroyed) && (!passed)) {
_parent.lpassed.gotoAndPlay("npassed");
_parent.tbackup--;
}
if (dms) {
dmc++;
if (dmc >= 40) {
dmc = 0;
dmbins = 1;
dmrins = 1;
if (dmins > 20) {
dmins = 0;
}
}
if (dmc == 1) {
dmvc = 0;
while (dmvc < _parent.tb) {
dmvc++;
dmins++;
b = _parent.dms.attachMovie("bdemo", "b" + dmbins, dmins);
b.gotoAndStop(_parent.cannonGood[dmbins]);
b.speed = _parent.speed;
b.rotation = _parent["cannon" + dmbins]._rotation;
b._x = _parent["cannon" + dmbins]._x;
b._y = _parent["cannon" + dmbins]._y;
b.noParticles = true;
b.life = 1000;
dmbins++;
}
} else if ((dmc > 1) && (dmc <= (_parent.totalWeapons + 1))) {
dmins++;
b = _parent.dms.attachMovie("b7", "r" + dmrins, dmins);
b.speed = _parent.rspeed;
b.rotation = _parent["gun" + dmrins]._rotation;
b._x = _parent["gun" + dmrins]._x;
b._y = _parent["gun" + dmrins]._y;
b.noParticles = true;
dmrins++;
}
}
if (myFx) {
beff++;
if (beff >= bto) {
_root.blurIt();
beff = 0;
}
}
_parent.score = _root.score;
gcnt = 1;
do {
gmc = _parent["gun" + gcnt];
gmc.gotoAndStop(1);
gcnt++;
} while (gcnt < _parent.totalWeapons);
_parent["gun" + rins].gotoAndStop(2);
_parent.bns = _root.tmpBonus;
}
onClipEvent (keyDown) {
if (Key.isDown(k) && (!_root.ps)) {
if (ph == 1) {
vc = 0;
while (vc < _parent.tb) {
vc++;
ins++;
if (_parent.cannonGood[bins] == 1) {
b = _parent.attachMovie("b1", "b" + bins, ins);
} else if (_parent.cannonGood[bins] == 2) {
b = _parent.attachMovie("b3", "b" + bins, ins);
} else if (_parent.cannonGood[bins] == 3) {
b = _parent.attachMovie("b4", "b" + bins, ins);
}
b.speed = _parent.speed;
b.rotation = _parent["cannon" + bins]._rotation;
b._x = _parent["cannon" + bins]._x;
b._y = _parent["cannon" + bins]._y;
_parent["cannon" + bins].play();
b.life = _parent.totalHits[bins];
bins++;
}
_root.makeSound("h" + rins);
_parent.cm._x = _parent["gun" + rins]._x;
_parent.cm._y = _parent["gun" + rins]._y;
_parent.cm.gotoAndPlay(2);
} else if ((ph > 1) && (ph <= (_parent.totalWeapons + 1))) {
ins++;
b = _parent.attachMovie("b2", "r" + rins, ins);
b.speed = _parent.rspeed;
b.rotation = _parent["gun" + rins]._rotation;
b._x = _parent["gun" + rins]._x;
b._y = _parent["gun" + rins]._y;
_root.makeSound("h" + (rins + 1));
rins++;
if (rins <= _parent.totalWeapons) {
_parent.cm._x = _parent["gun" + rins]._x;
_parent.cm._y = _parent["gun" + rins]._y;
_parent.cm.gotoAndPlay(2);
}
}
ph++;
dms = false;
_parent.dms._visible = false;
}
if (Key.isDown(65) && (ph == 1)) {
if (dms) {
dms = false;
_parent.dms._visible = false;
} else {
dms = true;
_parent.dms._visible = true;
}
}
if (Key.isDown(82) && (!_root.lpassed)) {
_root.gotoFrame(11);
}
if (Key.isDown(70)) {
if (myFx) {
myFx = false;
_root.myFx = false;
_root.myBitmap.fillRect(_root.myBitmap.rectangle, 16777215);
} else {
myFx = true;
_root.myFx = true;
}
}
}
onClipEvent (load) {
var speed = _parent.speed;
var rspeed = _parent.rspeed;
var k = 32;
var ph = 1;
var b;
var cannon = _parent.cannon;
var bins = 1;
var rins = 1;
var ins = 1;
var dms = false;
var dmc = 0;
var dmph = 1;
var dmbins = 1;
var dmrins = 1;
var dmins = 1;
var dmk = 65;
var dmr = 0;
var dmvc = 0;
var vc = 0;
var beff = 0;
var bto = 3;
var passed = false;
var gcnt;
var gmc;
var myFx = _root.myFx;
var myCang = _parent.cannonGood;
}
Symbol 406 MovieClip Frame 2
var speed = 4;
var rspeed = 4;
var totalWeapons = 2;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Instance of Symbol 313 MovieClip in Symbol 406 MovieClip Frame 2
onClipEvent (load) {
var dd = 2;
if (_root.avisos[dd] == false) {
this.swapDepths(0);
this.removeMovieClip("");
}
}
Symbol 406 MovieClip Frame 3
var speed = 4;
var rspeed = 4;
var totalWeapons = 3;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Instance of Symbol 313 MovieClip in Symbol 406 MovieClip Frame 3
onClipEvent (load) {
var dd = 9;
if (_root.avisos[dd] == false) {
this.swapDepths(0);
this.removeMovieClip("");
}
}
Symbol 406 MovieClip Frame 4
var speed = 4;
var rspeed = 4;
var totalWeapons = 3;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 5
var speed = 4;
var rspeed = 4;
var totalWeapons = 1;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 6
var speed = 4;
var rspeed = 4;
var totalWeapons = 5;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 50, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 7
var speed = 4;
var rspeed = 4;
var totalWeapons = 3;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 10, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 7
onClipEvent (load) {
var good = true;
}
Instance of Symbol 313 MovieClip in Symbol 406 MovieClip Frame 7
onClipEvent (load) {
var dd = 3;
if (_root.avisos[dd] == false) {
this.swapDepths(0);
this.removeMovieClip("");
}
}
Symbol 406 MovieClip Frame 8
var speed = 4;
var rspeed = 4;
var totalWeapons = 4;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 9
var speed = 4;
var rspeed = 4;
var totalWeapons = 4;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 10
var speed = 4;
var rspeed = 4;
var totalWeapons = 2;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 10, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 11
var speed = 4;
var rspeed = 4;
var totalWeapons = 5;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 12
var speed = 4;
var rspeed = 4;
var totalWeapons = 3;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 13
var speed = 4;
var rspeed = 4;
var totalWeapons = 3;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 14
var speed = 4;
var rspeed = 4;
var totalWeapons = 4;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 10, 10, 10];
var cannonGood = [0, 1, 3, 2];
var notDestroyed = 0;
var nh = 1;
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 14
onClipEvent (load) {
var good = true;
}
Instance of Symbol 313 MovieClip in Symbol 406 MovieClip Frame 14
onClipEvent (load) {
var dd = 5;
if (_root.avisos[dd] == false) {
this.swapDepths(0);
this.removeMovieClip("");
}
}
Symbol 406 MovieClip Frame 15
var speed = 4;
var rspeed = 4;
var totalWeapons = 2;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 10, 10, 10];
var cannonGood = [0, 1, 3, 2];
var notDestroyed = 0;
var nh = 1;
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 15
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 16
var speed = 4;
var rspeed = 4;
var totalWeapons = 1;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 10, 10, 10];
var cannonGood = [0, 1, 2, 2];
var notDestroyed = 0;
var nh = 1;
Instance of Symbol 313 MovieClip in Symbol 406 MovieClip Frame 16
onClipEvent (load) {
var dd = 6;
if (_root.avisos[dd] == false) {
this.swapDepths(0);
this.removeMovieClip("");
}
}
Symbol 406 MovieClip Frame 17
var speed = 4;
var rspeed = 4;
var totalWeapons = 2;
var tb = 3;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 10, 10, 10];
var cannonGood = [0, 1, 2, 3];
var notDestroyed = 0;
var nh = 2;
Instance of Symbol 288 MovieClip "cannon3" in Symbol 406 MovieClip Frame 17
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon1" in Symbol 406 MovieClip Frame 17
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 18
var speed = 4;
var rspeed = 4;
var totalWeapons = 2;
var tb = 4;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2];
var notDestroyed = 0;
var nh = 3;
Instance of Symbol 288 MovieClip "cannon4" in Symbol 406 MovieClip Frame 18
onClipEvent (load) {
var good = true;
}
Instance of Symbol 313 MovieClip in Symbol 406 MovieClip Frame 18
onClipEvent (load) {
var dd = 1;
if (_root.avisos[dd] == false) {
this.swapDepths(0);
this.removeMovieClip("");
}
}
Symbol 406 MovieClip Frame 19
var speed = 4;
var rspeed = 4;
var totalWeapons = 1;
var tb = 5;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 10, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 4;
Instance of Symbol 288 MovieClip "cannon5" in Symbol 406 MovieClip Frame 19
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 20
var speed = 4;
var rspeed = 4;
var totalWeapons = 3;
var tb = 3;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10];
var cannonGood = [0, 3, 1, 2, 2];
var notDestroyed = 0;
var nh = 2;
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 20
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon1" in Symbol 406 MovieClip Frame 20
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 21
var speed = 4;
var rspeed = 4;
var totalWeapons = 7;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 40, 20, 10, 10];
var cannonGood = [0, 1, 1, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 22
var speed = 4;
var rspeed = 4;
var totalWeapons = 3;
var tb = 3;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10];
var cannonGood = [0, 1, 2, 2, 2];
var notDestroyed = 0;
var nh = 2;
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 22
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon3" in Symbol 406 MovieClip Frame 22
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 23
var speed = 4;
var rspeed = 4;
var totalWeapons = 2;
var tb = 5;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 4;
Instance of Symbol 288 MovieClip "cannon4" in Symbol 406 MovieClip Frame 23
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon5" in Symbol 406 MovieClip Frame 23
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 23
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon3" in Symbol 406 MovieClip Frame 23
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 24
var speed = 4;
var rspeed = 4;
var totalWeapons = 2;
var tb = 4;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 3;
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 24
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon4" in Symbol 406 MovieClip Frame 24
onClipEvent (load) {
var good = true;
}
Instance of Symbol 313 MovieClip in Symbol 406 MovieClip Frame 24
onClipEvent (load) {
var dd = 4;
if (_root.avisos[dd] == false) {
this.swapDepths(0);
this.removeMovieClip("");
}
}
Symbol 406 MovieClip Frame 25
var speed = 4;
var rspeed = 4;
var totalWeapons = 1;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Instance of Symbol 288 MovieClip "cannon1" in Symbol 406 MovieClip Frame 25
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 26
var speed = 4;
var rspeed = 4;
var totalWeapons = 2;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 27
var speed = 4;
var rspeed = 8;
var totalWeapons = 3;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 28
var speed = 4;
var rspeed = 8;
var totalWeapons = 2;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 29
var speed = 5;
var rspeed = 4;
var totalWeapons = 2;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 30
var speed = 5;
var rspeed = 4;
var totalWeapons = 4;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 31
var speed = 5;
var rspeed = 5;
var totalWeapons = 4;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 1;
Instance of Symbol 288 MovieClip "cannon1" in Symbol 406 MovieClip Frame 31
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 31
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 32
var speed = 4;
var rspeed = 4;
var totalWeapons = 4;
var tb = 4;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 10, 10, 10, 10];
var cannonGood = [0, 1, 3, 3, 3, 2];
var notDestroyed = 0;
var nh = 3;
Instance of Symbol 288 MovieClip "cannon4" in Symbol 406 MovieClip Frame 32
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 32
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon3" in Symbol 406 MovieClip Frame 32
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon1" in Symbol 406 MovieClip Frame 32
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 33
var speed = 5;
var rspeed = 4;
var totalWeapons = 2;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 10, 10, 10, 10];
var cannonGood = [0, 1, 1, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 34
var speed = 9;
var rspeed = 4;
var totalWeapons = 4;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 35
var speed = 8;
var rspeed = 4;
var totalWeapons = 5;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 50, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 36
var speed = 5;
var rspeed = 4;
var totalWeapons = 4;
var tb = 4;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 10, 10, 10, 10];
var cannonGood = [0, 1, 1, 1, 1, 2];
var notDestroyed = 0;
var nh = 0;
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 36
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon3" in Symbol 406 MovieClip Frame 36
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon4" in Symbol 406 MovieClip Frame 36
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 37
var speed = 5;
var rspeed = 4;
var totalWeapons = 3;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Instance of Symbol 288 MovieClip "cannon1" in Symbol 406 MovieClip Frame 37
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 38
var speed = 5;
var rspeed = 6;
var totalWeapons = 2;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 39
var speed = 5;
var rspeed = 4;
var totalWeapons = 2;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 40
var speed = 4;
var rspeed = 4;
var totalWeapons = 4;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 41
var speed = 5;
var rspeed = 7;
var totalWeapons = 1;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 42
var speed = 4;
var rspeed = 7;
var totalWeapons = 3;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Instance of Symbol 288 MovieClip "cannon1" in Symbol 406 MovieClip Frame 42
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 43
var speed = 5;
var rspeed = 7;
var totalWeapons = 2;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 10, 10, 10, 10];
var cannonGood = [0, 1, 1, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Instance of Symbol 288 MovieClip "cannon1" in Symbol 406 MovieClip Frame 43
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 43
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 44
var speed = 5;
var rspeed = 7;
var totalWeapons = 1;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 45
var speed = 3;
var rspeed = 11;
var totalWeapons = 1;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 10, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 46
var speed = 12;
var rspeed = 8;
var totalWeapons = 3;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 47
var speed = 5;
var rspeed = 10;
var totalWeapons = 3;
var tb = 5;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 3];
var notDestroyed = 0;
var nh = 4;
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 47
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon3" in Symbol 406 MovieClip Frame 47
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon4" in Symbol 406 MovieClip Frame 47
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon5" in Symbol 406 MovieClip Frame 47
onClipEvent (load) {
var good = true;
}
Instance of Symbol 13 MovieClip [blank] in Symbol 406 MovieClip Frame 47
onClipEvent (enterFrame) {
if (_parent.eng.ph > (_parent.totalWeapons + 1)) {
c++;
if (c == 52) {
_parent.lpassed.gotoAndPlay("npassed");
}
}
}
onClipEvent (load) {
var c = 0;
}
Symbol 406 MovieClip Frame 48
var speed = 5;
var rspeed = 10;
var totalWeapons = 3;
var tb = 5;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 10, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 3];
var notDestroyed = 0;
var nh = 4;
Instance of Symbol 13 MovieClip [blank] in Symbol 406 MovieClip Frame 48
onClipEvent (enterFrame) {
if (_parent.eng.ph > (_parent.totalWeapons + 2)) {
c++;
if (c == 52) {
_parent.lpassed.gotoAndPlay("npassed");
}
}
}
onClipEvent (load) {
var c = 0;
}
Symbol 406 MovieClip Frame 49
var speed = 5;
var rspeed = 7;
var totalWeapons = 3;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Symbol 406 MovieClip Frame 50
var speed = 3;
var rspeed = 10;
var totalWeapons = 3;
var tb = 2;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 1;
Instance of Symbol 288 MovieClip "cannon2" in Symbol 406 MovieClip Frame 50
onClipEvent (load) {
var good = true;
}
Instance of Symbol 288 MovieClip "cannon1" in Symbol 406 MovieClip Frame 50
onClipEvent (load) {
var good = true;
}
Symbol 406 MovieClip Frame 51
var speed = 5;
var rspeed = 10;
var totalWeapons = 3;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 20, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Instance of Symbol 288 MovieClip "cannon1" in Symbol 406 MovieClip Frame 51
onClipEvent (load) {
var good = true;
}
Instance of Symbol 13 MovieClip [blank] in Symbol 406 MovieClip Frame 51
onClipEvent (enterFrame) {
rr = rr + 1.5;
_parent.cannon1._x = px + (Math.cos(rr * mul) * 61);
_parent.cannon1._y = py + (Math.sin(rr * mul) * 61);
_parent.cannon1._rotation = rr;
}
onClipEvent (keyDown) {
}
onClipEvent (load) {
var mul = (Math.PI/180);
var rr = 0;
var px = 336;
var py = 198;
}
Symbol 406 MovieClip Frame 52
var speed = 3;
var rspeed = 7;
var totalWeapons = 4;
var tb = 1;
var totalDestroyed = tb;
var tbackup = tb;
var totalHits = [0, 30, 20, 10, 10, 10];
var cannonGood = [0, 1, 2, 2, 2, 2];
var notDestroyed = 0;
var nh = 0;
Instance of Symbol 13 MovieClip [blank] in Symbol 406 MovieClip Frame 52
onClipEvent (enterFrame) {
rr = rr + 2;
_parent.cannon1._x = px + (Math.cos(rr * mul) * 200);
_parent.aaa._x = _parent.cannon1._x;
}
onClipEvent (keyDown) {
}
onClipEvent (load) {
var mul = (Math.PI/180);
var rr = 0;
var px = 336;
var py = 198;
}
Instance of Symbol 405 MovieClip in Symbol 406 MovieClip Frame 53
onClipEvent (enterFrame) {
c = 0;
do {
ast = this["a" + c];
ast._x = ast._x - (arr[c] * 0.2);
if (ast._x < -100) {
ast._x = 740;
ast._y = random(400) + 40;
}
c++;
} while (c < tot);
}
onClipEvent (load) {
var c = 0;
var tot = (10 + random(20));
var arr = new Array();
var ast;
var tmp;
while (c < tot) {
tmp = 20 + random(50);
arr.push(tmp);
ast = this.attachMovie("aster", "a" + c, c);
ast._x = random(300) + 140;
ast._y = random(400) + 40;
ast._xscale = (ast._yscale = arr[c]);
c++;
}
}
Symbol 426 MovieClip Frame 1
stop();
_root.ps = true;
Instance of Symbol 52 MovieClip [b1] in Symbol 426 MovieClip Frame 1
onClipEvent (load) {
var life = 20;
}
Instance of Symbol 49 MovieClip [b2] in Symbol 426 MovieClip Frame 1
onClipEvent (load) {
var rotation = 270;
}
Symbol 426 MovieClip Frame 3
_root.ps = false;
Instance of Symbol 13 MovieClip [blank] in Symbol 426 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.allSc.totalDestroyed == 0) {
_parent.gotoAndStop(8);
}
c++;
if (c >= 120) {
_parent.gotoAndStop(6);
}
}
onClipEvent (load) {
var c = 0;
}
Symbol 426 MovieClip Frame 7
_parent.play();
gotoAndStop (3);
Symbol 426 MovieClip Frame 10
_parent.gotoAndStop(4);
_root.ps = true;
Symbol 426 MovieClip Frame 11
_root.ps = false;
Instance of Symbol 13 MovieClip [blank] in Symbol 426 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.allSc.totalDestroyed == 0) {
_parent.gotoAndStop(17);
}
c++;
if (c >= 120) {
_parent.gotoAndStop(15);
}
}
onClipEvent (load) {
var c = 0;
}
Symbol 426 MovieClip Frame 16
_parent.play();
trace("yajupa");
gotoAndStop (11);
Symbol 426 MovieClip Frame 17
_root.ps = true;
Instance of Symbol 52 MovieClip [b1] in Symbol 426 MovieClip Frame 18
onClipEvent (load) {
var life = 10;
}
Instance of Symbol 52 MovieClip [b1] in Symbol 426 MovieClip Frame 18
onClipEvent (load) {
var life = 20;
}
Instance of Symbol 52 MovieClip [b1] in Symbol 426 MovieClip Frame 18
onClipEvent (load) {
var life = 30;
}
Instance of Symbol 52 MovieClip [b1] in Symbol 426 MovieClip Frame 18
onClipEvent (load) {
var life = 40;
}
Instance of Symbol 47 MovieClip [b4] in Symbol 426 MovieClip Frame 19
onClipEvent (enterFrame) {
life = 100;
}
Instance of Symbol 402 MovieClip in Symbol 426 MovieClip Frame 19
onClipEvent (load) {
var c = 0;
}
onClipEvent (enterFrame) {
c++;
if (c > 45) {
c = 0;
gotoAndPlay (2);
}
}
Symbol 426 MovieClip Frame 21
_root.gotoFrame(8);
Symbol 427 MovieClip Frame 1
var speed = 4;
var rspeed = 4;
var totalWeapons = 1;
var tb = 1;
var totalDestroyed = tb;
var totalHits = [0, 10, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
Instance of Symbol 288 MovieClip "cannon1" in Symbol 427 MovieClip Frame 1
onClipEvent (load) {
var good = true;
}
Instance of Symbol 13 MovieClip [blank] in Symbol 427 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.totalDestroyed <= 0) {
trace("level passed!!!");
}
if (dms) {
dmc++;
if (dmc >= 40) {
dmc = 0;
dmbins = 1;
dmrins = 1;
if (dmins > 20) {
dmins = 0;
}
}
if (dmc == 1) {
dmvc = 0;
while (dmvc < _parent.tb) {
dmvc++;
dmins++;
b = _parent.dms.attachMovie("bdemo", "b" + dmbins, dmins);
b.gotoAndStop(_parent.cannonGood[dmbins]);
b.speed = speed;
b.rotation = _parent["cannon" + dmbins]._rotation;
b._x = _parent["cannon" + dmbins]._x;
b._y = _parent["cannon" + dmbins]._y;
b.noParticles = true;
b.life = 1000;
dmbins++;
}
} else if ((dmc > 1) && (dmc <= (_parent.totalWeapons + 1))) {
dmins++;
b = _parent.dms.attachMovie("b2", "r" + dmrins, dmins);
b.speed = rspeed;
b.rotation = _parent["gun" + dmrins]._rotation;
b._x = _parent["gun" + dmrins]._x;
b._y = _parent["gun" + dmrins]._y;
b.noParticles = true;
dmrins++;
}
}
gcnt = 1;
do {
gmc = _parent["gun" + gcnt];
gmc.gotoAndStop(1);
gcnt++;
} while (gcnt < _parent.totalWeapons);
_parent["gun" + rins].gotoAndStop(2);
}
onClipEvent (keyDown) {
if (Key.isDown(k) && (!_root.ps)) {
if (ph == 1) {
vc = 0;
while (vc < _parent.tb) {
vc++;
ins++;
if (_parent.cannonGood[bins] == 1) {
b = _parent.attachMovie("b1", "b" + bins, ins);
} else if (_parent.cannonGood[bins] == 2) {
b = _parent.attachMovie("b3", "b" + bins, ins);
} else if (_parent.cannonGood[bins] == 3) {
b = _parent.attachMovie("b4", "b" + bins, ins);
}
b.speed = speed;
b.rotation = _parent["cannon" + bins]._rotation;
b._x = _parent["cannon" + bins]._x;
b._y = _parent["cannon" + bins]._y;
_parent["cannon" + bins].play();
b.life = _parent.totalHits[bins];
bins++;
}
} else if ((ph > 1) && (ph <= (_parent.totalWeapons + 1))) {
ins++;
b = _parent.attachMovie("b2", "r" + rins, ins);
b.speed = rspeed;
b.rotation = _parent["gun" + rins]._rotation;
b._x = _parent["gun" + rins]._x;
b._y = _parent["gun" + rins]._y;
rins++;
}
ph++;
dms = false;
_parent.dms._visible = false;
}
if (Key.isDown(65)) {
if (dms) {
dms = false;
_parent.dms._visible = false;
} else {
dms = true;
_parent.dms._visible = true;
}
}
}
onClipEvent (load) {
var speed = _parent.speed;
var rspeed = _parent.rspeed;
var k = 32;
var ph = 1;
var b;
var cannon = _parent.cannon;
var bins = 1;
var rins = 1;
var ins = 1;
var dms = false;
var dmc = 0;
var dmph = 1;
var dmbins = 1;
var dmrins = 1;
var dmins = 1;
var dmk = 65;
var dmr = 0;
var dmvc = 0;
var vc = 0;
var gcnt;
var gmc;
}
Instance of Symbol 426 MovieClip in Symbol 427 MovieClip Frame 1
onClipEvent (keyDown) {
if (Key.isDown(32)) {
nextFrame();
}
}
Symbol 427 MovieClip Frame 3
gotoAndStop (1);
Symbol 427 MovieClip Frame 4
var speed = 4;
var rspeed = 4;
var totalWeapons = 2;
var tb = 1;
var totalDestroyed = tb;
var totalHits = [0, 20, 20, 10, 10];
var cannonGood = [0, 1, 1, 2];
Instance of Symbol 13 MovieClip [blank] in Symbol 427 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_parent.totalDestroyed <= 0) {
trace("level passed!!!");
}
if (dms) {
dmc++;
if (dmc >= 40) {
dmc = 0;
dmbins = 1;
dmrins = 1;
if (dmins > 20) {
dmins = 0;
}
}
if (dmc == 1) {
dmvc = 0;
while (dmvc < _parent.tb) {
dmvc++;
dmins++;
b = _parent.dms.attachMovie("bdemo", "b" + dmbins, dmins);
b.gotoAndStop(_parent.cannonGood[dmbins]);
b.speed = speed;
b.rotation = _parent["cannon" + dmbins]._rotation;
b._x = _parent["cannon" + dmbins]._x;
b._y = _parent["cannon" + dmbins]._y;
b.noParticles = true;
b.life = 1000;
dmbins++;
}
} else if ((dmc > 1) && (dmc <= (_parent.totalWeapons + 1))) {
dmins++;
b = _parent.dms.attachMovie("b2", "r" + dmrins, dmins);
b.speed = rspeed;
b.rotation = _parent["gun" + dmrins]._rotation;
b._x = _parent["gun" + dmrins]._x;
b._y = _parent["gun" + dmrins]._y;
b.noParticles = true;
dmrins++;
}
}
gcnt = 1;
do {
gmc = _parent["gun" + gcnt];
gmc.gotoAndStop(1);
gcnt++;
} while (gcnt < _parent.totalWeapons);
_parent["gun" + rins].gotoAndStop(2);
}
onClipEvent (keyDown) {
if (Key.isDown(k) && (!_root.ps)) {
if (ph == 1) {
vc = 0;
while (vc < _parent.tb) {
vc++;
ins++;
if (_parent.cannonGood[bins] == 1) {
b = _parent.attachMovie("b1", "b" + bins, ins);
} else if (_parent.cannonGood[bins] == 2) {
b = _parent.attachMovie("b3", "b" + bins, ins);
} else if (_parent.cannonGood[bins] == 3) {
b = _parent.attachMovie("b4", "b" + bins, ins);
}
b.speed = speed;
b.rotation = _parent["cannon" + bins]._rotation;
b._x = _parent["cannon" + bins]._x;
b._y = _parent["cannon" + bins]._y;
_parent["cannon" + bins].play();
b.life = _parent.totalHits[bins];
bins++;
}
_parent.cm._x = _parent["gun" + rins]._x;
_parent.cm._y = _parent["gun" + rins]._y;
_parent.cm.gotoAndPlay(2);
} else if ((ph > 1) && (ph <= (_parent.totalWeapons + 1))) {
ins++;
b = _parent.attachMovie("b2", "r" + rins, ins);
b.speed = rspeed;
b.rotation = _parent["gun" + rins]._rotation;
b._x = _parent["gun" + rins]._x;
b._y = _parent["gun" + rins]._y;
rins++;
if (rins <= _parent.totalWeapons) {
_parent.cm._x = _parent["gun" + rins]._x;
_parent.cm._y = _parent["gun" + rins]._y;
_parent.cm.gotoAndPlay(2);
}
}
ph++;
dms = false;
_parent.dms._visible = false;
}
if (Key.isDown(65)) {
if (dms) {
dms = false;
_parent.dms._visible = false;
} else {
dms = true;
_parent.dms._visible = true;
}
}
}
onClipEvent (load) {
var speed = _parent.speed;
var rspeed = _parent.rspeed;
var k = 32;
var ph = 1;
var b;
var cannon = _parent.cannon;
var bins = 1;
var rins = 1;
var ins = 1;
var dms = false;
var dmc = 0;
var dmph = 1;
var dmbins = 1;
var dmrins = 1;
var dmins = 1;
var dmk = 65;
var dmr = 0;
var dmvc = 0;
var vc = 0;
var gcnt;
var gmc;
}
Symbol 427 MovieClip Frame 6
gotoAndStop (4);
Symbol 433 MovieClip Frame 1
onEnterFrame = function () {
if (lvl > _root.topLevel) {
lvl = _root.topLevel;
} else if (lvl < 1) {
lvl = 1;
}
_root.lvl = this.lvl;
};
this.lvl = _root.lvl;
Instance of Symbol 218 MovieClip in Symbol 433 MovieClip Frame 1
on (release) {
_root.gotoFrame(16);
}
Instance of Symbol 253 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (load) {
var myNum = 32;
var myC = 32;
}
Symbol 436 MovieClip Frame 1
var sscore = _root.score;
Instance of Symbol 222 MovieClip in Symbol 436 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 4);
}
Instance of Symbol 218 MovieClip in Symbol 436 MovieClip Frame 1
on (release) {
_root.nextFrame();
}
Instance of Symbol 218 MovieClip in Symbol 436 MovieClip Frame 1
on (release) {
_root.gotoFrame(8);
}
Instance of Symbol 218 MovieClip in Symbol 436 MovieClip Frame 1
on (release) {
getURL ("http://www.minijuegos.com", "_blank");
}
Instance of Symbol 218 MovieClip in Symbol 436 MovieClip Frame 1
on (release) {
_root.gotoFrame(4);
}
Instance of Symbol 253 MovieClip in Symbol 436 MovieClip Frame 1
onClipEvent (load) {
var myNum = 25;
var myC = 4;
}
Instance of Symbol 253 MovieClip in Symbol 436 MovieClip Frame 1
onClipEvent (load) {
var myNum = 2;
var myC = 8;
}
Instance of Symbol 253 MovieClip in Symbol 436 MovieClip Frame 1
onClipEvent (load) {
var myNum = 26;
var myC = 12;
}
Instance of Symbol 253 MovieClip in Symbol 436 MovieClip Frame 1
onClipEvent (load) {
var myNum = 27;
var myC = 16;
}
Instance of Symbol 253 MovieClip in Symbol 436 MovieClip Frame 1
onClipEvent (load) {
var myNum = 30;
var myC = 0;
}