Frame 1
stop();
onEnterFrame = function () {
var _local2;
_local2 = int(_root.getBytesTotal() / 1024);
carregado = int(_root.getBytesLoaded() / 1024);
porcentagem = int((carregado / _local2) * 100);
barra._xscale = porcentagem;
if (porcentagem == 100) {
_root.play();
delete onEnterFrame;
}
};
Frame 11
function over() {
var _local2 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 105, 1, true);
_local2 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 105, 1, true);
}
function out() {
var _local3 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 105, 100, 1, true);
var _local2 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 105, 100, 1, true);
}
fscommand ("Showmenu", false);
_root.b1.btn_txt.text = "play";
_root.b2.btn_txt.text = "how?";
var music = new Sound();
music.attachSound("music_intro");
music.onSoundComplete = function () {
music.start();
};
b1.onRollOver = over;
b1.onRollOut = out;
b2.onRollOver = over;
b2.onRollOut = out;
b1.onRelease = function () {
_root.play();
};
b2.onRelease = function () {
instruc_mc.play();
};
var j = 20;
while (j > 0) {
bolha.duplicateMovieClip("newBolha" + j, j);
j--;
}
linkKana.onRollOver = over;
linkKana.onRollOut = out;
linkKana.onRelease = function () {
getURL ("http://kanamura.googlepages.com");
};
linkNelas.onRollOver = over;
linkNelas.onRollOut = out;
linkNelas.onRelease = function () {
getURL ("http://organelas.googlepages.com");
};
Frame 20
stop();
fscommand ("Showmenu", false);
Frame 21
stop();
objeto_mc.gotoAndStop(1);
objeto_mc._xscale = (objeto_mc._yscale = 100);
objeto_mc._x = 150;
objeto_mc._y = 230;
var i = 35;
while (i > 0) {
bolha_mc.duplicateMovieClip("newBolha" + i, i);
i--;
}
var k = 10;
while (k > 0) {
clava_mc.duplicateMovieClip("newClava" + k, k);
k--;
}
_root.pontos = 0;
onEnterFrame = function () {
escudo._x = objeto_mc._x;
escudo._y = objeto_mc._y;
escudo._xscale = objeto_mc._xscale;
escudo._yscale = objeto_mc._yscale;
};
Frame 22
function over() {
var _local3 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 105, 1, true);
var _local2 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 105, 1, true);
}
function out() {
var _local3 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 105, 100, 1, true);
var _local2 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 105, 100, 1, true);
}
stop();
_root.objeto_mc.play();
b3.onRollOver = over;
b3.onRollOut = out;
b3.btn_txt.text = "again";
b3.onRelease = function () {
_root.gotoAndPlay("game");
};
b4.onRollOver = over;
b4.onRollOut = out;
b4.btn_txt.text = "main";
b4.onRelease = function () {
stopAllSounds();
_root.gotoAndPlay("main");
};
Symbol 9 MovieClip Frame 30
gotoAndPlay (1);
Symbol 107 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 108 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 109 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 110 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 5
stop();
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 5
stop();
Symbol 36 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
stop();
var speed = randRange(2, 6);
this._x = randRange(20, 280);
this._y = randRange(450, 650);
this._alpha = randRange(20, 90);
this._xscale = (this._yscale = randRange(15, 100));
onEnterFrame = function () {
this._y = this._y - speed;
if (this._y < (-this._height)) {
this._y = randRange(450, 650);
this._x = randRange(20, 280);
this._xscale = (this._yscale = randRange(15, 100));
this._alpha = randRange(20, 90);
}
};
this.onRollOver = function () {
this.play();
};
Symbol 39 MovieClip Frame 1
stop();
_parent.music.start();
this.onPress = function () {
this.play();
};
Symbol 39 MovieClip Frame 2
stop();
_parent.music.stop();
Symbol 73 MovieClip Frame 1
Symbol 73 MovieClip Frame 20
gotoAndPlay (1);
Symbol 80 MovieClip Frame 1
cruz_btn.onRelease = function () {
_parent._parent.instruc_mc.gotoAndPlay(11);
};
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 10
stop();
Symbol 86 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
stop();
var speed = randRange(2, 6);
this._x = randRange(20, 280);
this._y = randRange(450, 650);
this._xscale = (this._yscale = randRange(8, 25));
onEnterFrame = function () {
this._y = this._y - speed;
if (this._y < (-this._height)) {
this._y = randRange(450, 650);
this._x = randRange(20, 280);
this._xscale = (this._yscale = randRange(8, 25));
}
if (this.hitTest(_root.objeto_mc)) {
_root.objeto_mc._xscale = _root.objeto_mc._xscale + 0.7;
_root.objeto_mc._yscale = _root.objeto_mc._yscale + 0.7;
this.play();
}
};
Symbol 86 MovieClip Frame 2
_root.pontos = _root.pontos + 10;
Symbol 90 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (Key.isDown(37)) {
this._x = this._x - 5;
if (this._x < (2 + (this._width / 2))) {
this._x = 2 + (this._width / 2);
}
}
if (Key.isDown(39)) {
this._x = this._x + 5;
if (this._x > ((Stage.width - (this._width / 2)) - 2)) {
this._x = (Stage.width - (this._width / 2)) - 2;
}
}
if (Key.isDown(38)) {
this._y = this._y - 5;
if (this._y < (2 - (this._height / 2))) {
this._y = 2 - (this._height / 2);
}
}
if (Key.isDown(40)) {
this._y = this._y + 5;
if (this._y > ((Stage.height - (this._height / 2)) - 2)) {
this._y = (Stage.height - (this._height / 2)) - 2;
}
}
};
Symbol 90 MovieClip Frame 4
stop();
Symbol 92 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
stop();
var speed = randRange(2, 10);
this._y = randRange(-700, -500);
this._x = randRange(20, 280);
onEnterFrame = function () {
this._y = this._y + speed;
if (this._y > Stage.height) {
this._x = randRange(20, 280);
this._y = randRange(-700, -500);
}
if (this.hitTest(_parent.objeto_mc)) {
_parent.escudo.gotoAndPlay(2);
this.play();
}
};
Symbol 92 MovieClip Frame 2
_root.pontos = _root.pontos + 5;
Symbol 95 MovieClip Frame 20
gotoAndPlay (1);
Symbol 97 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
stop();
var speed = randRange(2, 10);
this._y = randRange(-700, -500);
this._x = randRange(20, 280);
onEnterFrame = function () {
this._y = this._y + speed;
if (this._y > Stage.height) {
this._x = randRange(20, 280);
this._y = randRange(-700, -500);
}
if (this.hitTest(_parent.objeto_mc)) {
_parent.objeto_mc._xscale = _parent.objeto_mc._xscale - 7;
_parent.objeto_mc._yscale = _parent.objeto_mc._yscale - 7;
if (_root.objeto_mc._xscale < 30) {
_root.objeto_mc._xscale = (_root.objeto_mc._yscale = 30);
}
this.play();
}
};
Symbol 99 MovieClip Frame 2
_root.pontos = _root.pontos + 5;
Symbol 102 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var speed = randRange(2, 6);
this._x = randRange(20, 280);
this._y = randRange(0, -200);
this._xscale = (this._yscale = randRange(8, 25));
onEnterFrame = function () {
this._y = this._y + speed;
if (this._y > Stage.height) {
this._y = randRange(0, -200);
this._x = randRange(20, 280);
}
if (this.hitTest(_root.objeto_mc) && (_parent.escudo._currentframe == 1)) {
_root.gotoAndStop("over");
}
};
Symbol 106 MovieClip Frame 20
stop();