Frame 1
TIME_MAX = 180;
Frame 3
if (_framesloaded >= _totalframes) {
gotoAndPlay (8);
} else {
gotoAndPlay (4);
}
Frame 5
if (_framesloaded >= _totalframes) {
gotoAndPlay (8);
} else {
gotoAndPlay (4);
}
Frame 8
function gameOver(timeover) {
_root.cursor.StopSound();
Mouse.show();
_root.isGameOver = true;
_root.score = _root.mc_score.getPoint();
_root.cursor.hide();
if (timeover) {
this.gotoAndPlay("timeover");
} else {
this.gotoAndPlay("over");
}
}
server = "http://www.sonymusic.co.jp/cgi-bin/ennichi/natsu.cgi";
game_id = 2;
isGameOver = false;
score = 0;
Frame 84
this.stop();
Instance of Symbol 31 MovieClip "timer" in Frame 84
onClipEvent (load) {
prevTime = 0;
startTime = getTimer();
}
onClipEvent (enterFrame) {
if (_root.isGameOver) {
return(undefined);
}
nt = getTimer() - startTime;
tm = (1000 * _root.TIME_MAX) - nt;
if (tm < 0) {
tm = 0;
}
if (prevTime != tm) {
prevTime = tm;
k3 = String(parseInt(tm / 60000) % 60);
k2 = String(parseInt(tm / 1000) % 60);
if (k2.length == 1) {
k2 = "0" + k2;
}
f_Time = (k3 + ":") + k2;
if (tm == 0) {
_root.gameOver(true);
}
}
}
Instance of Symbol 35 MovieClip in Frame 84
onClipEvent (load) {
state = 0;
}
onClipEvent (mouseDown) {
if (_root.isGameOver) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
if ((state < 8) && (_root.cursor.getState() == 2)) {
state++;
this.gotoAndStop(8 + state);
if (state == 8) {
_root.mc_score.nextFrame();
this.play();
}
_root.cursor.normal();
}
}
}
Instance of Symbol 48 MovieClip in Frame 84
onClipEvent (load) {
state = 0;
}
onClipEvent (enterFrame) {
if (_root.isGameOver) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
if ((state == 0) && (_root.cursor.getState() == 3)) {
this.gotoAndStop(2);
state = 1;
}
} else if (state == 1) {
this.gotoAndStop(1);
state = 0;
}
}
onClipEvent (mouseDown) {
if (_root.isGameOver) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
if ((state != 2) && (_root.cursor.getState() == 3)) {
state = 3;
this.gotoAndPlay(3);
_root.cursor.normal();
}
}
}
Instance of Symbol 65 MovieClip "cursor" in Frame 84
onClipEvent (load) {
function AddSound() {
yakiCnt++;
soundObj.setVolume((yakiCnt * 10) + 10);
if (yakiCnt == 1) {
soundObj.start(0, 999999);
}
}
function RemoveSound() {
yakiCnt--;
soundObj.setVolume((yakiCnt * 10) + 10);
if (yakiCnt == 0) {
soundObj.stop();
}
}
function StopSound() {
soundObj.stop();
vakiCnt = 0;
}
yakiCnt = 0;
isDrag = true;
state = 0;
Mouse.hide();
this.gotoAndStop("tsutsuki");
soundObj = new Sound(this);
soundObj.attachSound("yaku");
}
onClipEvent (unload) {
Mouse.show();
}
onClipEvent (mouseMove) {
if (_root.isGameOver) {
return(undefined);
}
if (isDrag) {
_x = (_x + _xmouse);
_y = (_y + _ymouse);
updateAfterEvent();
}
}
Frame 118
this.stop();
Symbol 18 MovieClip Frame 1
this.stop();
Symbol 18 MovieClip Frame 6
state = 0;
gotoAndStop (1);
Symbol 35 MovieClip Frame 8
this.stop();
Symbol 35 MovieClip Frame 30
state = 0;
if (_root.pack.pack_in()) {
this.stop();
} else {
this.gotoAndPlay(1);
}
Symbol 41 MovieClip Frame 14
gotoAndPlay (7);
Symbol 43 MovieClip Frame 1
id = _parent._name.charAt(_parent._name.length - 1);
state = 0;
this.stop();
Symbol 43 MovieClip Frame 25
this.stop();
Symbol 43 MovieClip Frame 31
this.stop();
Symbol 43 MovieClip Frame 37
this.stop();
Symbol 43 MovieClip Frame 60
this.stop();
Instance of Symbol 43 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.isGameOver) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.cursor.rolloverHole(state);
}
if ((0 < state) && (3 >= state)) {
chgTbl = [4000, 4000, 2000];
if ((chgTbl[state - 1] * ((id == 5) ? 0.7 : 1)) < (getTimer() - startTime)) {
this.gotoAndPlay(_currentframe + 1);
startTime = getTimer() + (Math.random() * 1000);
state++;
if (state == 4) {
_root.timer.startTime = _root.timer.startTime - 5000;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.isGameOver) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (state == 0) {
if (_root.cursor.gu_set()) {
startTime = getTimer() + (Math.random() * 1000);
state = 1;
this.gotoAndPlay(2);
Mouse.show();
_root.cursor.AddSound();
}
} else if ((state >= 3) and (_root.cursor.getState() == 0)) {
_root.cursor.RemoveSound();
this.gotoAndStop("ana");
_root.cursor.tsutsuku(state);
state = 0;
}
}
}
Instance of Symbol 43 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.isGameOver) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.cursor.rolloverHole(state);
}
if ((0 < state) && (3 >= state)) {
chgTbl = [4000, 4000, 2000];
if ((chgTbl[state - 1] * ((id == 5) ? 0.7 : 1)) < (getTimer() - startTime)) {
this.gotoAndPlay(_currentframe + 1);
startTime = getTimer() + (Math.random() * 1000);
state++;
if (state == 4) {
_root.timer.startTime = _root.timer.startTime - 5000;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.isGameOver) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (state == 0) {
if (_root.cursor.gu_set()) {
startTime = getTimer() + (Math.random() * 1000);
state = 1;
this.gotoAndPlay(2);
Mouse.show();
_root.cursor.AddSound();
}
} else if ((state >= 3) and (_root.cursor.getState() == 0)) {
_root.cursor.RemoveSound();
this.gotoAndStop("ana");
_root.cursor.tsutsuku(state);
state = 0;
}
}
}
Symbol 47 MovieClip Frame 1
function pack_in() {
_root.score = _root.score + 10;
this.play();
if (_root.score < 100) {
return(0);
}
return(1);
}
this.stop();
Symbol 47 MovieClip Frame 10
this.stop();
Symbol 47 MovieClip Frame 20
this.stop();
Symbol 47 MovieClip Frame 30
this.stop();
Symbol 47 MovieClip Frame 40
this.stop();
Symbol 47 MovieClip Frame 50
this.stop();
Symbol 47 MovieClip Frame 60
this.stop();
Symbol 47 MovieClip Frame 70
this.stop();
Symbol 47 MovieClip Frame 80
this.stop();
Symbol 47 MovieClip Frame 90
this.stop();
Symbol 47 MovieClip Frame 100
_root.gameOver(false);
this.stop();
Symbol 48 MovieClip Frame 1
this.stop();
Symbol 48 MovieClip Frame 6
state = 0;
gotoAndStop (1);
Symbol 58 MovieClip Frame 1
function getPoint() {
return((_currentframe - 1) * 10);
}
function setPoint(sc) {
this.gotoAndStop(Math.floor(sc / 10) + 1);
}
this.stop();
Symbol 63 MovieClip Frame 1
id = _parent._name.charAt(_parent._name.length - 1);
state = 0;
this.stop();
Symbol 63 MovieClip Frame 25
this.stop();
Symbol 63 MovieClip Frame 31
this.stop();
Symbol 63 MovieClip Frame 37
this.stop();
Symbol 63 MovieClip Frame 60
this.stop();
Symbol 65 MovieClip Frame 1
function rolloverHole(aState) {
if (isDrag && (state == 0)) {
if (aState == 0) {
this.gotoAndStop("guire");
} else {
this.gotoAndStop("tsutsuki");
}
}
}
function gu_set() {
if (isDrag && (state == 0)) {
_x = (_x + _xmouse);
_y = (_y + _ymouse);
isDrag = false;
state = 1;
_root.cursor.gotoAndPlay(2);
return(true);
}
return(false);
}
function tsutsuku(aState) {
this.gotoAndStop("tsutsuki_go");
this.tako.gotoAndStop("st" + aState);
state = 2 + (aState == 4);
}
function getState() {
return(state);
}
function normal() {
this.gotoAndStop("tsutsuki");
state = 0;
}
function hide() {
_visible = false;
}
this.stop();
Symbol 65 MovieClip Frame 29
isDrag = true;
if (!_root.isGameOver) {
Mouse.hide();
}
_x = (_x + _xmouse);
_y = (_y + _ymouse);
state = 0;
this.stop();
Symbol 65 MovieClip Frame 31
this.stop();
Symbol 75 Button
on (press) {
_root.gotoAndPlay("play");
}
Symbol 79 MovieClip Frame 1
function getPoint() {
return((_currentframe - 1) * 10);
}
function setPoint(sc) {
this.gotoAndStop(Math.floor(sc / 10) + 1);
}
this.stop();
Instance of Symbol 79 MovieClip in Symbol 81 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(Math.floor(_root.score / 10) + 1);
}
Symbol 81 MovieClip Frame 16
this.stop();
Symbol 85 Button
on (press) {
_root.gotoAndPlay("play");
}
Symbol 93 MovieClip Frame 30
if (_root.score == 100) {
this.gotoAndPlay("ten100");
} else if (_root.score >= 70) {
this.gotoAndPlay("over70");
}
Symbol 93 MovieClip Frame 42
this.stop();
Symbol 93 MovieClip Frame 77
if (isSaveRecord) {
this.gotoAndPlay("skip");
} else {
isSaveRecord = true;
}
Symbol 93 MovieClip Frame 78
this.stop();
Instance of Symbol 84 MovieClip in Symbol 93 MovieClip Frame 78
onClipEvent (load) {
game_id = _root.game_id;
this.loadVariables(_root.server, "POST");
}
onClipEvent (data) {
all_clear = parseInt(all_clear);
if (all_clear) {
getURL ("javascript:wopen('http://www.sonymusic.co.jp/2001summer/game/present.html');");
}
_parent.gotoAndPlay("skip");
}
Symbol 93 MovieClip Frame 85
this.stop();
Symbol 93 MovieClip Frame 106
if (isSaveRecord) {
this.gotoAndPlay("skip2");
} else {
isSaveRecord = true;
}
Symbol 93 MovieClip Frame 107
this.stop();
Instance of Symbol 91 MovieClip in Symbol 93 MovieClip Frame 107
onClipEvent (load) {
game_id = _root.game_id;
this.loadVariables(_root.server, "POST");
}
onClipEvent (data) {
all_clear = parseInt(all_clear);
if (all_clear) {
getURL ("javascript:wopen('http://www.sonymusic.co.jp/2001summer/game/present.html');");
}
_parent.gotoAndPlay("skip2");
}
Symbol 93 MovieClip Frame 114
this.stop();