Frame 1
function rightclick() {
getURL (_root.gm_url(_root.urlwznum), "_blank");
}
function gm_url(wznum) {
if (wznum == undefined) {
wznum = 2;
}
var _local2 = new LocalConnection();
var _local3 = _local2.domain();
var _local4 = "priates-bubbles";
str = ((("http://www.bubblesniper.com/?utm_source=" + _local3) + "&utm_medium=ourgames&utm_campaign=") + _local4) + "&utm_content=";
if (wznum == 1) {
str = str + "intro";
}
if (wznum == 2) {
str = str + "pregame";
}
if (wznum == 3) {
str = str + "gplay";
}
return(str);
}
stop();
var fmm01_menu = new ContextMenu();
fmm01_menu.hideBuiltInItems();
_root.menu = fmm01_menu;
var item = new ContextMenuItem("www.bubblesniper.com", rightclick);
fmm01_menu.customItems[0] = item;
_root.urlwznum = 1;
Frame 2
function initArray(W, sel) {
myMap = new Array();
i = 0;
while (i < _root.maxH) {
myMap[i] = [];
myMap[i][0] = i % 2;
j = 1;
while (j <= _root.maxW) {
if (i < W) {
myMap[i][j] = selArr[createRandom(sel)];
} else {
myMap[i][j] = 0;
}
j++;
}
i++;
}
}
function createRandom(sel) {
var _local1;
_local1 = random(sel) + 1;
return(_local1);
}
function initTie(a) {
var _local3 = 0;
while (_local3 < a) {
var _local2 = 1;
while (_local2 <= _root.maxW) {
if (myMap[_local3][_local2] != 0) {
tx = (tileW * _local2) - ((tileW * myMap[_local3][0]) / 2);
ty = ((tileW * (_local3 + 1)) - (tileW / 2)) - (4 * _local3);
DuplicateTile(tx, ty, _local3, _local2);
}
_local2++;
}
_local3++;
}
}
function DuplicateTile(tX, tY, a, b) {
var _local4 = _root.nowpath.getNextHighestDepth();
myTile = _root.nowpath.attachMovie("tile", (("myTile" + a) + "_") + b, _local4);
myTile.pao_mc.gotoAndStop(myMap[a][b]);
myTile.n = myMap[a][b];
myTile.hID = a;
myTile.wID = b;
myTile._x = tX;
myTile._y = tY;
myTile.mydhx = tX;
myTile.mydhy = tY;
}
function addpao(a, b, n, gx, gy) {
_root.myMap[a][b] = n;
tx = (tileW * b) - ((tileW * myMap[a][0]) / 2);
ty = ((tileW * (a + 1)) - (tileW / 2)) - (4 * a);
DuplicateTile(tx, ty, a, b);
paodh_fun(a, b, gx, gy);
creattmparr(myMap.length);
_root.checkcount = 0;
_root.dzpaoarr = new Array();
OneCheck(a, b, n);
if (_root.checkcount >= 3) {
i = 0;
while (i < _root.dzpaoarr.length) {
_root.myMap[_root.dzpaoarr[i]][_root.dzpaoarr[i + 1]] = 0;
i = i + 2;
}
allCheck(true);
} else {
allCheck(false);
}
}
function paodh_fun(a, b, gx, gy) {
_root.nowpath[(("myTile" + a) + "_") + b].paodh_mcfun(gx, gy, 3);
_root.nowpath[(("myTile" + a) + "_") + (b - 1)].paodh_mcfun(gx, gy, 4);
_root.nowpath[(("myTile" + a) + "_") + (b + 1)].paodh_mcfun(gx, gy, 4);
_root.nowpath[(("myTile" + (a - 1)) + "_") + b].paodh_mcfun(gx, gy, 4);
_root.nowpath[(("myTile" + (a - 2)) + "_") + b].paodh_mcfun(gx, gy, 5);
_root.nowpath[(("myTile" + (a - 1)) + "_") + (b + 1)].paodh_mcfun(gx, gy, 4);
_root.nowpath[(("myTile" + (a - 1)) + "_") + (b - 1)].paodh_mcfun(gx, gy, 4);
}
function creattmparr(W) {
_root.tmparr = new Array();
i = 0;
while (i < W) {
tmparr[i] = [];
tmparr[i][0] = myMap[i][0];
j = 1;
while (j <= _root.maxW) {
tmparr[i][j] = 0;
j++;
}
i++;
}
}
function OneCheck(a, b, n) {
if ((a >= 0) && (b > 0)) {
if (tmparr[a][b] == 0) {
if (myMap[a][b] == n) {
tmparr[a][b] = 1;
_root.dzpaoarr.push(a);
_root.dzpaoarr.push(b);
_root.checkcount++;
if (tmparr[a][0] == 1) {
OneCheck(a - 1, b - 1, n);
OneCheck(a - 1, b, n);
OneCheck(a + 1, b - 1, n);
OneCheck(a + 1, b, n);
} else {
OneCheck(a - 1, b, n);
OneCheck(a - 1, b + 1, n);
OneCheck(a + 1, b, n);
OneCheck(a + 1, b + 1, n);
}
OneCheck(a, b - 1, n);
OneCheck(a, b + 1, n);
}
}
}
}
function allCheck(iscreat) {
creattmparr(myMap.length);
_root.maxline = 0;
i = 1;
while (i <= _root.maxW) {
if (myMap[0][i] != 0) {
Check(0, i);
}
i++;
}
if (_root.maxline >= 13) {
trace("full-gamegover");
_root.tck_mc.gotoAndStop(2);
delete _root.paotong_mc.onEnterFrame;
_root.chick = false;
} else {
if (iscreat) {
clearnop();
cleardzpao();
} else {
_root.chick = true;
}
_root.popfly_mc.creatpop();
}
}
function Check(a, b) {
if ((a >= 0) && (b > 0)) {
if (tmparr[a][b] == 0) {
if (myMap[a][b] != 0) {
if (_root.maxline < a) {
_root.maxline = a;
}
tmparr[a][b] = 1;
if (tmparr[a][0] == 1) {
Check(a - 1, b - 1);
Check(a - 1, b);
Check(a + 1, b - 1);
Check(a + 1, b);
} else {
Check(a - 1, b);
Check(a - 1, b + 1);
Check(a + 1, b);
Check(a + 1, b + 1);
}
Check(a, b - 1);
Check(a, b + 1);
} else {
tmparr[a][b] = -1;
}
}
}
}
function cleardzpao() {
mywaittime = 0;
while (_root.dzpaoarr.length > 0) {
ispaobao = true;
b = _root.dzpaoarr.pop();
a = _root.dzpaoarr.pop();
mywaittime++;
_root.nowpath[(("myTile" + a) + "_") + b].waittime = mywaittime * 4;
if (_root.dzpaoarr.length == 0) {
_root.nowpath[(("myTile" + a) + "_") + b].endpao = true;
} else {
_root.nowpath[(("myTile" + a) + "_") + b].endpao = false;
}
if (mywaittime <= 9) {
_root.nowpath[(("myTile" + a) + "_") + b].scnum = mywaittime;
_root.score = _root.score + _root.myscore_arr[mywaittime];
} else {
_root.nowpath[(("myTile" + a) + "_") + b].scnum = 9;
_root.score = _root.score + _root.myscore_arr[9];
}
_root.nowpath[(("myTile" + a) + "_") + b].onEnterFrame = function () {
if (this.waittime > 0) {
this.waittime--;
if (this.waittime == 3) {
_root.nowpath.attachMovie("score_dh", (("score_dh" + this.hID) + "_") + this.wID, _root.nowpath.getNextHighestDepth());
_root.nowpath[(("score_dh" + this.hID) + "_") + this.wID]._x = this._x;
_root.nowpath[(("score_dh" + this.hID) + "_") + this.wID]._y = this._y;
_root.nowpath[(("score_dh" + this.hID) + "_") + this.wID].gotoAndStop(this.scnum);
}
} else if (this._alpha > 0) {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
this._alpha = this._alpha - 3;
_root.nowpath[(("score_dh" + this.hID) + "_") + this.wID]._y--;
} else {
if (this.endpao) {
_root.chick = true;
if (_root.isaddnewline) {
_root.isaddnewline = false;
_root.moveArray();
}
}
delete this.onEnterFrame;
_root.nowpath[(("score_dh" + this.hID) + "_") + this.wID].removeMovieClip();
this.removeMovieClip();
}
};
}
_root.zhi_sound.start();
}
function clearnop() {
i = 0;
while (i < _root.maxH) {
j = 1;
while (j <= _root.maxW) {
if (tmparr[i][j] == 0) {
if (myMap[i][j] != 0) {
_root.dzpaoarr.push(i);
_root.dzpaoarr.push(j);
myMap[i][j] = 0;
}
}
j++;
}
i++;
}
}
function moveArray() {
this.waittimer = 30;
this.onEnterFrame = function () {
if (this.waittimer > 0) {
this.waittimer--;
} else {
delete this.onEnterFrame;
i = _root.maxH;
while (i > 0) {
myMap[i] = myMap[i - 1];
i--;
}
myMap[0] = new Array();
myMap[0][0] = (myMap[1][0] + 1) % 2;
j = 1;
while (j <= _root.maxW) {
myMap[0][j] = selArr[createRandom(selArr[0])];
j++;
}
_root.maingame_mc.newclip_mc.removeMovieClip();
_root.maingame_mc.createEmptyMovieClip("newclip_mc", 10);
_root.nowpath = _root.maingame_mc.newclip_mc;
initTie(myMap.length);
_root.nowpath.moveTie();
}
};
}
function myHitTest(mc1, mc2) {
var _local3 = Math.sqrt(((mc1._x - mc2._x) * (mc1._x - mc2._x)) + ((mc1._y - mc2._y) * (mc1._y - mc2._y)));
if (_local3 <= (((mc1._width + mc2._width) / 2) - 4)) {
return(true);
}
return(false);
}
function HitRotation(mc1, mc2) {
return((Math.atan2(mc1._y - mc2._y, mc1._x - mc2._x) / Math.PI) * 180);
}
stop();
_root.urlwznum = 2;
_root.mgurl = "http://www.bubblesniper.com";
if (_root.bg_sound == undefined) {
_root.bg_sound = new Sound(this);
_root.bg_sound.attachSound("bg_sound");
_root.bg_sound.onSoundComplete = function () {
this.start();
};
_root.bg_sound.start();
_root.dong_sound = new Sound(this);
_root.dong_sound.attachSound("dong_sound");
_root.zhi_sound = new Sound(this);
_root.zhi_sound.attachSound("zhi_sound");
_root.she_sound = new Sound(this);
_root.she_sound.attachSound("she_sound");
}
MovieClip.prototype.listnum = function (num) {
if (num >= 0) {
for (tmpn in this) {
this[tmpn].gotoAndStop(1);
}
this.ws = 1;
while (num > 0) {
tmpa = num % 10;
this["n" + this.ws].gotoAndStop(tmpa + 1);
num = int(num / 10);
this.ws++;
}
} else {
for (tmpn in this) {
this[tmpn].gotoAndStop(11);
}
}
};
_root.isaddnewline = false;
var tileW = 36;
var myMap = [];
var score = 0;
var totalscore = 0;
_root.maxH = 14;
_root.maxW = 19;
_root.myscore_arr = new Array(0, 10, 10, 10, 25, 50, 100, 250, 500, 1000);
_root.nowlevel = 1;
var selArr = new Array(6, 1, 2, 3, 4, 5, 6);
_root.checkcount = 0;
MovieClip.prototype.paodh_mcfun = function (gx, gy, bs) {
new mx.transitions.Tween(this, "_x", mx.transitions.easing.Strong.easeOut, this.mydhx, this.mydhx + (gx / bs), bs * 6, false);
this.tween_handler = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Strong.easeOut, this.mydhy, this.mydhy + (gy / bs), bs * 6, false);
this.tween_handler.mymc = this;
this.tween_handler.bs = bs;
this.tween_handler.onMotionFinished = function () {
new mx.transitions.Tween(this.mymc, "_x", mx.transitions.easing.Strong.easeOut, this.mymc.mydhx + (gx / bs), this.mymc.mydhx, this.bs * 6, false);
new mx.transitions.Tween(this.mymc, "_y", mx.transitions.easing.Strong.easeOut, this.mymc.mydhy + (gy / bs), this.mymc.mydhy, this.bs * 6, false);
};
};
var tmparr = [];
MovieClip.prototype.creatpop = function () {
this.fp_mc.n = this.dp_mc.n;
this.fp_mc.pao_mc.gotoAndStop(this.fp_mc.n);
_root.paotong_mc.fp_mc.pao_mc.gotoAndStop(this.fp_mc.n);
_root.paotong_mc.fp_mc._visible = true;
this.dp_mc.n = _root.selArr[_root.createRandom(_root.selArr[0])];
this.dp_mc.pao_mc.gotoAndStop(this.dp_mc.n);
_root.xyj_mc.play();
};
MovieClip.prototype.moveTie = function () {
_root.chick = false;
this.waittimer = 30;
this.onEnterFrame = function () {
if (this.waittimer > 0) {
this.waittimer--;
} else {
_root.maingame_mc.newclip_mc.removeMovieClip();
_root.maingame_mc.createEmptyMovieClip("newclip_mc", 10);
_root.nowpath = _root.maingame_mc.newclip_mc;
initTie(myMap.length);
_root.chick = true;
}
};
};
MovieClip.prototype.newpop = function () {
this.fp_mc.n = _root.selArr[_root.createRandom(_root.selArr[0])];
this.fp_mc.pao_mc.gotoAndStop(this.fp_mc.n);
_root.paotong_mc.fp_mc.pao_mc.gotoAndStop(this.fp_mc.n);
_root.paotong_mc.fp_mc._visible = true;
this.dp_mc.n = _root.selArr[_root.createRandom(_root.selArr[0])];
this.dp_mc.pao_mc.gotoAndStop(this.dp_mc.n);
};
MovieClip.prototype.firepop = function () {
_root.person_mc.gotoAndPlay(2);
_root.she_sound.start();
_root.chick = false;
this.fp_mc._visible = false;
_root.paotong_mc.fp_mc._visible = false;
_root.paotong_mc.dh_mc.play();
this.attachMovie("tile", "dan_mc", 10);
this.dan_mc.n = this.fp_mc.n;
this.dan_mc.pao_mc.gotoAndStop(this.dan_mc.n);
this.dan_mc._x = this.fp_mc._x;
this.dan_mc._y = this.fp_mc._y;
this.dan_mc.dx = this._xmouse - this.dan_mc._x;
this.dan_mc.dy = this._ymouse - this.dan_mc._y;
this.dan_mc.dxy = Math.sqrt(Math.pow(this.dan_mc.dx, 2) + Math.pow(this.dan_mc.dy, 2));
this.dan_mc.onEnterFrame = function () {
if ((((this._x < -100) || (this._x > 800)) || (this._y < 0)) || (this._y > 650)) {
this.removeMovieClip();
}
this._x = this._x + ((this.dx / this.dxy) * _root.shesu);
this._y = this._y + ((this.dy / this.dxy) * _root.shesu);
if (((this._x < (this._width / 2)) && (this.dx < 0)) || ((this._x > (700 - (this._width / 2))) && (this.dx > 0))) {
this.dx = this.dx * -1;
}
if ((this._y < (this._height / 2)) && (this.dy < 0)) {
a = 0;
b = Math.round((this._x + ((_root.tileW * _root.myMap[0][0]) / 2)) / _root.tileW);
_root.addpao(a, b, this.n, (this.dx / this.dxy) * _root.shesu, (this.dy / this.dxy) * _root.shesu);
this._parent.fp_mc._visible = true;
_root.dong_sound.start();
this.removeMovieClip();
delete this.onEnterFrame;
return(undefined);
}
for (var _local3 in _root.maingame_mc.newclip_mc) {
if (typeof(_root.maingame_mc.newclip_mc[_local3]) == "movieclip") {
if (myHitTest(this, _root.maingame_mc.newclip_mc[_local3])) {
tmprota = HitRotation(this, _root.maingame_mc.newclip_mc[_local3]);
bb = (b = _root.maingame_mc.newclip_mc[_local3].wID);
ba = (a = _root.maingame_mc.newclip_mc[_local3].hID);
bn = _root.maingame_mc.newclip_mc[_local3].n;
if ((tmprota <= 150) && (tmprota > 90)) {
if (myMap[a][0] == 1) {
b--;
}
a++;
} else if ((tmprota <= 90) && (tmprota > 30)) {
if (myMap[a][0] == 0) {
b++;
}
a++;
} else if (((tmprota > 150) && (tmprota <= 180)) || ((tmprota < -150) && (tmprota > -180))) {
b--;
} else if ((tmprota <= 30) && (tmprota > -30)) {
b++;
} else if ((tmprota >= -150) && (tmprota < -90)) {
if (myMap[a][0] == 1) {
b--;
}
a--;
} else if ((tmprota >= -90) && (tmprota <= -30)) {
if (myMap[a][0] == 0) {
b++;
}
a--;
}
if (b > _root.maxW) {
b--;
trace(tmprota);
}
if (b < 1) {
b++;
trace(tmprota);
}
if (myMap[a][b] == 0) {
_root.addpao(a, b, this.n, (this.dx / this.dxy) * _root.shesu, (this.dy / this.dxy) * _root.shesu);
} else {
continue;
}
this._parent.fp_mc._visible = true;
_root.dong_sound.start();
this.removeMovieClip();
delete this.onEnterFrame;
break;
}
}
}
};
};
Instance of Symbol 97 MovieClip "logo_mc" in Frame 2
on (release) {
getURL (_root.gm_url(_root.urlwznum), "_blank");
}
Frame 3
_root.urlwznum = 3;
_root.maingame_mc.createEmptyMovieClip("newclip_mc", 10);
_root.nowpath = _root.maingame_mc.newclip_mc;
var score = 0;
var bonus = 0;
initArray(6, selArr[0]);
initTie(myMap.length);
allCheck(false);
_root.chick = true;
_root.onMouseDown = function () {
if (chick) {
if (_root.hit_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.popfly_mc.firepop();
}
}
};
_root.shesu = 20;
_root.popfly_mc.newpop();
_root.reset_btn.onPress = function () {
_root.nowframe = _root._currentframe;
_root.gotoAndStop("clear");
};
this.mg_btn.onRelease = function () {
getURL (_root.gm_url(_root.urlwznum), "_blank");
};
_root.tck_mc.gotoAndStop(3);
_root.urlwznum = 3;
Frame 4
_root.gotoAndStop(_root.nowframe);
Symbol 19 MovieClip [tile] Frame 1
stop();
Symbol 19 MovieClip [tile] Frame 20
if (int(Math.random() * 100) < 2) {
play();
} else {
gotoAndPlay (1);
}
Symbol 19 MovieClip [tile] Frame 50
gotoAndPlay (1);
Symbol 31 Button
on (release) {
getURL (_root.gm_url(_root.urlwznum), "_blank");
}
Symbol 41 MovieClip Frame 100
stop();
Symbol 45 Button
on (release) {
_root.play();
}
Symbol 46 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
var _local3 = _root.getBytesLoaded();
var _local4 = _root.getBytesTotal();
var _local5 = Math.round((_local3 / _local4) * 100);
trace((_local3 / _local4) * 100);
if (_local3 >= _local4) {
nextFrame();
delete this.onEnterFrame;
}
};
Instance of Symbol 41 MovieClip "loader" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
gotoAndStop(percent);
if (loaded == (total * 100)) {
_root.gotoAndPlay(2);
}
}
Symbol 46 MovieClip Frame 2
stop();
Symbol 138 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 139 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 140 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 141 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 142 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 62 MovieClip Frame 13
stop();
Symbol 88 MovieClip Frame 115
this.play_btn.onRelease = function () {
_root.nextFrame();
};
this.mg_btn.onRelease = function () {
getURL (_root.gm_url(_root.urlwznum), "_blank");
};
Symbol 88 MovieClip Frame 129
stop();
Symbol 93 MovieClip Frame 1
stop();
this.stop_btn.onPress = function () {
_root.gasoundp = _root.bg_sound.position / 1000;
_root.bg_sound.stop();
nextFrame();
};
Symbol 93 MovieClip Frame 2
this.play_btn.onPress = function () {
_root.bg_sound.start(_root.gasoundp);
prevFrame();
};
Symbol 106 MovieClip Frame 1
this.chick = true;
this.onEnterFrame = function () {
if (_root.hit_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
this._rotation = (Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x) / Math.PI) * 180;
}
};
_root.zstar_mc._visible = false;
Symbol 108 MovieClip Frame 1
this.maxtimer = 1200;
this.timer = 0;
this.onEnterFrame = function () {
if (!_root.isaddnewline) {
this.timer++;
if (this.timer > this.maxtimer) {
_root.isaddnewline = true;
this.timer = 0;
this.maxtimer = this.maxtimer * 0.96;
}
}
};
Symbol 111 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 1
this.score = _root.score;
this.onEnterFrame = function () {
if (this.score < _root.score) {
this.score = this.score + 5;
} else if (this.score > _root.score) {
this.score = _root.score;
}
this.listnum(this.score);
};
Symbol 134 MovieClip Frame 1
this.score_mc.listnum(_root.score);
this.ok_btn.onPress = function () {
_root.nowframe = "begin";
_root.gotoAndStop("clear");
};
Symbol 136 MovieClip Frame 1
this.useHandCursor = false;
this.onPress = function () {
};
Symbol 137 MovieClip Frame 2
this.tk_mc._y = -350;
new mx.transitions.Tween(this.tk_mc, "_y", mx.transitions.easing.Elastic.easeOut, -350, 0, 40, false);