Combined Code
movieClip 25 {
}
movieClip 26 ring {
}
movieClip 28 {
}
movieClip 29 bigpopo {
instance of movieClip 28 {
onClipEvent (rollOver) {
this.useHandCursor = false;
}
onClipEvent (load) {
se02 = new Sound();
se02.attachSound('hit');
dr = 0;
dx = 0;
dy = 0;
swhit = 1;
flpopo = 1;
}
onClipEvent (enterFrame) {
++flpopo;
if (flpopo < 16) {
var mybmpdata = flash.display.BitmapData.loadBitmap('bmpopo01');
} else {
if (flpopo < 31) {
var mybmpdata = flash.display.BitmapData.loadBitmap('bmpopo02');
} else {
var mybmpdata = flash.display.BitmapData.loadBitmap('bmpopo01');
flpopo = 1;
}
}
this.attachBitmap(mybmpdata, 0);
_parent._x += this.dx;
_parent._y += this.dy;
_parent._rotation += this.dr;
this.onPress = function () {
colora = mybmpdata.getPixel32(this._xmouse, this._ymouse);
if (this.colora != 0) {
if (this.swhit > 0) {
se02.start();
_root.popotime += _root.count3;
_root.hits += 1;
_root.score += (10 + _root.combo) * 10;
_root.spp += 0.001;
_root.combo = 30;
_root.count3 = 0;
seed = Math.random();
this.dx = -45 + (1 - seed) * 70;
this.dy += (20 + seed * 10) * -1;
if (this.dx >= 0) {
this.dr += 50 + Math.random() * 30;
} else {
this.dr += (50 + Math.random() * 30) * -1;
}
this.swhit = 0;
_root.bpopoc = 0;
}
}
};
}
}
}
movieClip 34 {
}
movieClip 35 popo {
instance of movieClip 34 {
onClipEvent (rollOver) {
this.useHandCursor = false;
}
onClipEvent (load) {
se02 = new Sound();
se02.attachSound('hit');
dr = 0;
dx = 0;
dy = 0;
swhit = 1;
}
onClipEvent (enterFrame) {
this._x += this.dx;
this._y += this.dy;
this._rotation += this.dr;
this.onPress = function () {
if (this.swhit > 0) {
se02.start();
if (_root.hits < 1) {
_root.hits += 1;
_root.score += 10 + _root.combo;
_root.spp += 0.001;
_root.combo = 30;
_root.count3 = 0;
} else {
if (_root.hits < 99999) {
_root.popotime += _root.count3;
_root.hits += 1;
_root.score += 10 + _root.combo;
_root.spp += 0.001;
_root.combo = 30;
_root.count3 = 0;
}
}
_root.scoreArea._visible = true;
_root.hitsArea._visible = true;
_root.twi._visible = true;
seed = Math.random();
this.dx = (-45 + (1 - seed) * 70) * _root.spp;
this.dy += (15 + seed * 10) * -1 * _root.spp;
if (this.dx >= 0) {
this.dr += (50 + Math.random() * 30) * _root.spp;
} else {
this.dr += (50 + Math.random() * 30) * -1 * _root.spp;
}
this.swhit = 0;
}
};
}
}
}
frame 1 {
vol.swapDepths(60000);
}
frame 1 {
this.soundA = new Sound();
this.soundA.start();
bytesTotal = _root.getBytesTotal();
bytesLoaded = _root.getBytesLoaded();
var loadedcontsPercent = (bytesLoaded / bytesTotal) * 100;
percentTextArea.text = Math.round(loadedcontsPercent) + '% Orangejuice';
mpopo._x = loadedcontsPercent * 6.4;
}
movieClip 37 {
}
// unknown tag 88 length 43
movieClip 44 {
frame 1 {
this.stop();
}
frame 2 {
this.stop();
}
}
instance vol of movieClip 44 {
onClipEvent (load) {
volsw = 1;
}
onClipEvent (release) {
if (volsw == 1) {
_root.soundA.setVolume(0);
_root.vol.gotoAndStop('off');
volsw = 0;
} else {
if (volsw == 0) {
_root.soundA.setVolume(100);
_root.vol.gotoAndStop('on');
volsw = 1;
}
}
}
}
frame 2 {
if (loadedcontsPercent == 100) {
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}
}
frame 3 {
this.stop();
}
frame 3 {
bu.swapDepths(30000);
}
frame 3 {
function ExecuteFunc() {
this._x += this.dx;
if (this._x > 950) {
this.removeMovieClip();
}
if (this._x < -300) {
this.removeMovieClip();
}
if (this._y > 580) {
this.removeMovieClip();
}
if (this._y < -100) {
this.removeMovieClip();
}
}
function bigExecuteFunc() {
this._x += this.dx;
if (this._x > 866) {
this.removeMovieClip();
}
if (this._x < -226) {
this.removeMovieClip();
}
if (this._y > 580) {
this.removeMovieClip();
}
if (this._y < -100) {
this.removeMovieClip();
}
}
function ringExecuteFunc() {
++this.flr;
if (this.flr > 9) {
this.removeMovieClip();
}
}
scoreArea._visible = false;
hitsArea._visible = false;
twi._visible = false;
var count = 0;
var count2 = 0;
var count3 = 0;
var countbig = 0;
var depth = 20000;
var depth2 = 5000;
var depth3 = 40000;
var score = 0;
var hits = 0;
var combo = 0;
var popotime = 0;
var bpopoc = 0;
var spp = 1;
var oldX = _root.bu._x;
var oldX = _root.bu._y;
onEnterFrame = function () {
if (_root.bu.cntc != 0 & _root.bu.cntc % 2 == 0) {
var v4 = _root.bu._x - oldX;
var v5 = _root.bu._y - oldY;
var v6 = Math.atan(v5 / v4) + (v4 >= 0 ? 0 : Math.PI);
depth3 += 1;
var v3 = _root.attachMovie('ring', 'new_mc' + depth3, depth3);
v3._x = _root.bu._x;
v3._y = _root.bu._y;
v3._rotation = v6 * 180 / Math.PI + 90;
v3.flr = 0;
v3.onEnterFrame = ringExecuteFunc;
}
oldX = _root.bu._x;
oldY = _root.bu._y;
if (depth3 >= 50000) {
depth3 = 40000;
}
if (hits < 10) {
hitsArea.text = '0000' + hits + 'Hits';
} else {
if (hits < 100) {
hitsArea.text = '000' + hits + 'Hits';
} else {
if (hits < 1000) {
hitsArea.text = '00' + hits + 'Hits';
} else {
if (hits < 10000) {
hitsArea.text = '0' + hits + 'Hits';
} else {
if (hits < 100000) {
hitsArea.text = hits + 'Hits';
}
}
}
}
}
scoreArea.text = 'Score' + score;
if (popotime + count3 < 10800000) {
++count3;
}
++count;
++count2;
if (combo > 0) {
combo -= 1;
}
if (count > 10) {
count = 0;
depth -= 1;
var v2 = _root.attachMovie('popo', 'new_mc' + depth, depth);
v2._x = -168.5 + Math.random() * 100;
v2._y = 230.5;
v2.dx = (3 + Math.random() * 10) * spp;
v2.onEnterFrame = ExecuteFunc;
depth -= 1;
v2 = _root.attachMovie('popo', 'new_mc' + depth, depth);
v2._xscale = -100;
v2._x = 808.5 + Math.random() * 100;
v2._y = 230.5;
v2.dx = (3 + Math.random() * 10) * -1 * spp;
v2.onEnterFrame = ExecuteFunc;
}
if (count2 > 50000) {
count2 = 0;
depth += 10000;
}
if (hits != 0 & hits % 100 == 0 & bpopoc == 0) {
LR = Math.random();
if (LR > 0.5) {
depth2 -= 1;
bpopoc = 1;
v2 = _root.attachMovie('bigpopo', 'new_mc' + depth2, depth2);
v2._x = -126;
v2._y = 142;
v2.dx = 2;
v2.onEnterFrame = bigExecuteFunc;
} else {
depth2 -= 1;
bpopoc = 1;
v2 = _root.attachMovie('bigpopo', 'new_mc' + depth2, depth2);
v2._xscale = -100;
v2._x = 766;
v2._y = 142;
v2.dx = -2;
v2.onEnterFrame = bigExecuteFunc;
}
}
if (countbig == 1000) {
countbig = 0;
depth += 1000;
}
};
}
movieClip 46 {
}
movieClip 47 {
frame 65 {
stop();
}
}
movieClip 48 {
}
// unknown tag 88 length 43
movieClip 53 {
}
instance twi of movieClip 53 {
onClipEvent (release) {
timeh = Math.floor(_root.popotime / 108000);
timem = Math.floor((_root.popotime - timeh * 108000) / 1800);
times = Math.floor((_root.popotime - timeh * 108000 - timem * 1800) / 30);
if (timeh > 99) {
getURL('javascript:windowOpenTO(\'' + _root.hits + '\', \'' + _root.score + '\');', '');
} else {
if (timeh > 0) {
getURL('javascript:windowOpenTH(\'' + timeh + '\', \'' + timem + '\', \'' + times + '\', \'' + _root.hits + '\', \'' + _root.score + '\');', '');
} else {
if (timem > 0) {
getURL('javascript:windowOpenTM(\'' + timem + '\', \'' + times + '\', \'' + _root.hits + '\', \'' + _root.score + '\');', '');
} else {
getURL('javascript:windowOpenTS(\'' + times + '\', \'' + _root.hits + '\', \'' + _root.score + '\');', '');
}
}
}
}
}
movieClip 55 {
}
instance bu of movieClip 55 {
onClipEvent (rollOver) {
if (this.waitsw == 0) {
se01.start();
}
myColor = new Color(this);
myColor.setRGB(0);
}
onClipEvent (rollOut) {
myColor = new Color(this);
myColor.setRGB(16777215);
}
onClipEvent (load) {
se01 = new Sound();
se01.attachSound('srct');
se03 = new Sound();
se03.attachSound('dcd');
theX = this._x;
theY = this._y;
sw_c = 0;
cnsw = 0;
cntc = 0;
waitsw = 0;
wait = 0;
}
onClipEvent (press) {
if (this.waitsw == 0) {
se03.start();
waitsw = 1;
}
}
onClipEvent (enterFrame) {
if (this.waitsw == 1) {
++wait;
}
if (this.wait == 30) {
getURL('http://daidai-mixjuice.com/information/', '');
}
}
}