Frame 2
if (this.getBytesTotal() <= this.getBytesLoaded()) {
this.gotoAndPlay(11);
}
Frame 3
LoadingBar._visible = false;
this.onEnterFrame = function () {
var _local2 = this.getBytesTotal();
var _local4 = this.getBytesLoaded();
this.LoadingBar.Bar._xscale = (_local4 * 100) / _local2;
this.LoadingBar._visible = true;
if (_local2 <= _local4) {
var _local3;
_local3 = new Sound();
_local3.setVolume(0);
this.LoadingBar._visible = false;
this.gotoAndPlay(11);
delete this.onEnterFrame;
}
};
stop();
Frame 11
var snd;
snd = new Sound();
snd.setVolume(100);
delete snd;
Frame 12
var appi = (new app.Golf());
appi.init();
var gm = app.sys.SysInfo.__get__GameMode();
gm.setNormalMode();
this.onEnterFrame = function () {
appi.move();
};
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 579 MovieClip [DebugMC] Frame 1
stop();
Symbol 582 MovieClip [FPSMC] Frame 1
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 585 MovieClip [__Packages.app.sys.GameMode] Frame 0
class app.sys.GameMode
{
var m_mode;
function GameMode () {
m_mode = GM_NORMAL;
}
function setRankingMode() {
m_mode = GM_RANKING;
}
function setNormalMode() {
m_mode = GM_NORMAL;
}
function isRankingMode() {
return(m_mode == GM_RANKING);
}
function isNormalMode() {
return(m_mode == GM_NORMAL);
}
static var GM_NORMAL = 1;
static var GM_RANKING = 2;
}
Symbol 586 MovieClip [__Packages.app.Golf] Frame 0
class app.Golf
{
var m_mode, m_flowObject, m_oldFlowObject;
function Golf () {
m_mode = AFM_START;
}
function init() {
var _local3;
util.MovieClipFactory.init();
util.MovieClipFactory.append(_root, app.sys.Screen.OT_TOP_NUM);
_local3 = util.MovieClipFactory.create(app.sys.Screen.OT_GAME, "NoMaskMC", "MASK");
util.MovieClipFactory.append(_local3.dummy, app.sys.Screen.OT_SCREEN_NUM);
_local3._visible = true;
_local3 = util.MovieClipFactory.get(app.sys.Screen.OT_SCREEN + 0);
util.MovieClipFactory.append(_local3, app.sys.Screen.OT_GAME_NUM);
_local3 = util.MovieClipFactory.get(app.sys.Screen.OT_SCREEN + 1);
util.MovieClipFactory.append(_local3, app.sys.Screen.OT_GAME_NUM);
util.MovieClipFactory.setBasePosition(app.sys.Screen.OT_BACKGROUND);
util.MovieClipFactory.setBaseNumber(app.sys.Screen.OT_GAME_NUM);
util.MovieClipFactory.setGroupPos(app.sys.Screen.OT_SCREEN);
util.MovieClipFactory.reset();
app.sys.SysInfo.initFirst();
app.sys.SysInfo.WorkList.init();
app.sys.SysInfo.SoundManager.init();
var _local4 = false;
app.sys.SysInfo.Debug.init(0, app.sys.Screen.HEIGHT);
app.sys.SysInfo.Debug.setActive(_local4);
app.sys.SysInfo.Debug.setVisible(_local4);
if (_local4) {
new app.sys.FPS(0, app.sys.Screen.HEIGHT - 20);
}
m_flowObject = undefined;
m_oldFlowObject = undefined;
}
function move() {
var _local2;
var _local3;
_local2 = m_mode;
do {
_local3 = false;
switch (_local2) {
case AFM_START :
_local2 = AFM_TITLE;
app.sys.SysInfo.initGame();
_local3 = true;
break;
case AFM_TITLE :
app.sys.SysInfo.updateAttr();
util.MovieClipFactory.flip();
m_oldFlowObject = m_flowObject;
m_flowObject = new app.flow.FlowTitle(m_oldFlowObject);
_local2 = AFM_TITLE_LOOP;
_local3 = true;
break;
case AFM_TITLE_LOOP :
if (moveFlowObject()) {
switch (m_flowObject.getResult()) {
case app.sys.SceneGraph.EID_FLOW_START :
app.sys.SysInfo.initGame();
_local2 = AFM_GAMEMAIN;
_local3 = true;
break;
case app.sys.SceneGraph.EID_FLOW_CONTINUE :
app.sys.SysInfo.continueGameLoop();
_local2 = AFM_GAMEMAIN;
_local3 = true;
break;
}
m_flowObject.destroy();
m_flowObject = undefined;
}
break;
case AFM_GAMEMAIN :
app.sys.SysInfo.initStage();
app.sys.SysInfo.updateAttr();
m_oldFlowObject = m_flowObject;
m_flowObject = new app.flow.FlowGameMain(m_oldFlowObject);
_local2 = AFM_GAMEMAIN_LOOP;
_local3 = true;
break;
case AFM_GAMEMAIN_LOOP :
if (moveFlowObject()) {
switch (m_flowObject.getResult()) {
case app.sys.SceneGraph.EID_FLOW_STAGECLEAR :
if (app.sys.SysInfo.isLastCourse()) {
_local2 = AFM_SCORE;
app.sys.SysInfo.endGame();
} else {
_local2 = AFM_SCORE;
}
_local3 = true;
break;
default :
}
m_flowObject.destroy();
m_flowObject = undefined;
}
break;
case AFM_SCORE :
app.sys.SysInfo.updateAttr();
m_oldFlowObject = m_flowObject;
m_flowObject = new app.flow.FlowScore(m_oldFlowObject);
_local2 = AFM_SCORE_LOOP;
_local3 = true;
break;
case AFM_SCORE_LOOP :
if (moveFlowObject()) {
switch (m_flowObject.getResult()) {
case app.sys.SceneGraph.EID_FLOW_NEXT :
if (app.sys.SysInfo.isLastCourse()) {
_local2 = AFM_TITLE;
} else {
_local2 = AFM_GAMEMAIN;
}
app.sys.SysInfo.clearStage();
break;
default :
}
m_flowObject.destroy();
m_flowObject = undefined;
}
break;
}
} while (_local3);
m_mode = _local2;
}
function moveFlowObject() {
var _local2 = m_flowObject.getMode();
app.sys.SysInfo.Debug.reset();
app.sys.SysInfo.move();
app.sys.SysInfo.SoundManager.move();
m_flowObject.move(_local2);
m_flowObject.disp(_local2);
app.sys.SysInfo.Debug.disp();
return(m_flowObject.isEnd());
}
static var AFM_START = 0;
static var AFM_TITLE = 5;
static var AFM_TITLE_LOOP = 6;
static var AFM_GAMEMAIN = 9;
static var AFM_GAMEMAIN_LOOP = 10;
static var AFM_SCORE = 13;
static var AFM_SCORE_LOOP = 14;
static var AFM_GAMECLEAR = 17;
static var AFM_GAMECLEAR_LOOP = 18;
}
Symbol 587 MovieClip [__Packages.app.flow.Flow] Frame 0
class app.flow.Flow
{
var m_mode, m_preFlow, m_context, m_result, m_isDestroy;
function Flow (mode, preFlow) {
m_mode = mode;
m_preFlow = preFlow;
m_context = new app.sys.Context(app.sys.SysInfo.getAttr(), util.MovieClipFactory.getBase());
m_result = 0;
m_isDestroy = false;
}
function move(mode) {
}
function disp(mode) {
}
function isEnd() {
return(m_result != 0);
}
function destroy() {
m_isDestroy = true;
}
function event(id) {
m_result = id;
}
function getResult() {
return(m_result);
}
function getMode() {
return(m_mode);
}
function isDestroy() {
return(m_isDestroy);
}
function getContext() {
return(m_context);
}
static var FM_TITLE = 0;
static var FM_STAGESTART = 1;
static var FM_GAME = 2;
static var FM_FLOORCLEAR = 3;
static var FM_SCORE = 4;
static var FM_GAMEOVER = 5;
static var FM_GAMECLEAR = 6;
static var FM_OTHER = 7;
}
Symbol 588 MovieClip [__Packages.app.sys.Context] Frame 0
class app.sys.Context
{
var m_attr, m_base;
function Context (attr, base) {
m_attr = attr;
m_base = base;
}
function getAttr() {
return(m_attr);
}
function getBase() {
return(m_base);
}
}
Symbol 589 MovieClip [__Packages.sys.WorkList] Frame 0
class sys.WorkList
{
var m_list, m_attr;
function WorkList () {
m_list = new util.List();
}
function setAttr(attr) {
m_attr = attr;
}
function append(obj) {
return(m_list.push(obj, m_attr));
}
function appendWithAttr(obj, attr) {
return(m_list.push(obj, attr));
}
function cut(obj) {
obj.cut();
}
function callMove() {
var _local2 = m_list.getFirst();
var _local4 = [];
var _local3;
while (!m_list.isLast(_local2)) {
if (!_local2.m_data.move()) {
_local4.push(_local2);
}
_local2 = _local2.m_next;
}
_local3 = _local4.length - 1;
while (_local3 >= 0) {
_local4[_local3].m_data.destroy();
_local3--;
}
}
function callCtrl() {
var _local2 = m_list.getFirst();
var _local4 = [];
var _local3;
while (!m_list.isLast(_local2)) {
if (!_local2.m_data.ctrl()) {
_local4.push(_local2);
}
_local2 = _local2.m_next;
}
_local3 = _local4.length - 1;
while (_local3 >= 0) {
_local4[_local3].m_data.destroy();
_local3--;
}
}
function callDisp() {
var _local2 = m_list.getFirst();
while (!m_list.isLast(_local2)) {
_local2.m_data.disp();
_local2 = _local2.m_next;
}
}
function callDestroy() {
var _local2 = m_list.getFirst();
while (!m_list.isLast(_local2)) {
_local2.m_data.destroy();
_local2 = m_list.getFirst();
}
}
function callDestroyByAttr(attr) {
var _local2 = m_list.getFirst();
var _local4 = [];
var _local3;
while (!m_list.isLast(_local2)) {
if (_local2.getAttr() == attr) {
_local4.push(_local2);
}
_local2 = _local2.m_next;
}
_local3 = _local4.length - 1;
while (_local3 >= 0) {
_local4[_local3].m_data.destroy();
_local3--;
}
}
}
Symbol 590 MovieClip [__Packages.util.List] Frame 0
class util.List
{
var m_top, m_last;
function List () {
m_top = new util.ListItem(undefined);
m_last = new util.ListItem(undefined);
m_top.m_next = m_last;
m_last.m_prev = m_top;
}
function push(data, attr) {
var _local3;
var _local2;
_local2 = new util.ListItem(data, attr);
_local3 = m_last.m_prev;
m_last.m_prev = _local2;
_local3.m_next = _local2;
_local2.m_prev = _local3;
_local2.m_next = m_last;
return(_local2);
}
function pop() {
var _local2;
var _local3;
_local2 = m_last.m_prev;
_local2.m_prev.m_next = m_last;
m_last.m_prev = _local2.m_prev;
_local3 = _local2.get();
return(_local3);
}
function unshift(data, attr) {
var _local3;
var _local2;
_local2 = new util.ListItem(data, attr);
_local3 = m_top.m_next;
m_top.m_next = _local2;
_local3.m_prev = _local2;
_local2.m_prev = m_top;
_local2.m_next = _local3;
return(_local2);
}
function shift() {
var _local2;
var _local3;
_local2 = m_top.m_next;
_local2.m_next.m_prev = m_top;
m_top.m_next = _local2.m_next;
_local3 = _local2.get();
return(_local3);
}
function cut(data) {
data.cut();
}
function getFirst() {
return(m_top.m_next);
}
function isLast(data) {
return(data == m_last);
}
function getLength() {
var _local3;
var _local2;
_local2 = m_top;
_local3 = 0;
while (_local2.m_next != m_last) {
_local2 = _local2.m_next;
_local3++;
}
return(_local3);
}
}
Symbol 591 MovieClip [__Packages.util.ListItem] Frame 0
class util.ListItem
{
var m_prev, m_next, m_data, m_attr;
function ListItem (data, attr) {
m_prev = undefined;
m_next = undefined;
m_data = data;
m_attr = attr;
}
function get() {
return(m_data);
}
function cut() {
m_prev.m_next = m_next;
m_next.m_prev = m_prev;
}
function getAttr() {
return(m_attr);
}
}
Symbol 592 MovieClip [__Packages.app.sys.SceneGraph] Frame 0
class app.sys.SceneGraph
{
var m_listener, m_context, m_scenePos, m_activeList, m_time, m_waitTime, m_waitEvent, m_encountEvent, m_labelList, m_isStop, m_frameCount, m_isFrame, m_sceneList;
function SceneGraph () {
m_listener = [];
}
function init(context) {
m_context = context;
m_scenePos = 0;
m_activeList = [];
m_time = 0;
m_waitTime = 0;
m_waitEvent = undefined;
m_encountEvent = undefined;
m_labelList = {};
m_isStop = false;
m_frameCount = 0;
m_isFrame = false;
}
function setScene(sceneList) {
var _local2;
var _local3;
m_sceneList = sceneList;
_local2 = m_sceneList.length - 1;
while (_local2 >= 0) {
_local3 = m_sceneList[_local2];
if (_local3.type == "LABEL") {
m_labelList[_local3.name] = _local2 + 1;
}
_local2--;
}
}
function move() {
var _local2;
var _local3;
var _local5;
var _local4;
if (m_isStop) {
return(undefined);
}
if (((m_waitEvent != undefined) && (m_waitEvent == m_encountEvent)) || ((m_waitEvent == undefined) && (m_time >= m_waitTime))) {
if (m_waitEvent != undefined) {
m_waitEvent = undefined;
m_time = 0;
} else {
m_time = m_time - m_waitTime;
}
do {
if (m_scenePos >= m_sceneList.length) {
break;
}
_local2 = m_sceneList[m_scenePos++];
_local4 = true;
switch (_local2.type) {
case "WAIT" :
m_waitTime = _local2.time;
m_waitEvent = undefined;
_local4 = false;
break;
case "WAITEVENT" :
m_encountEvent = undefined;
m_waitEvent = _local2.id;
_local4 = false;
break;
case "BRANCHEVENT" :
if (_local2.id == m_encountEvent) {
if (_local2.name == undefined) {
m_scenePos = 0;
} else {
m_scenePos = m_labelList[_local2.name];
}
m_time = 0;
}
break;
case "SENDEVENT" :
sendEvent(_local2.id);
break;
case "PLAYER" :
break;
case "LABEL" :
break;
case "LOOP" :
if (_local2.name == undefined) {
m_scenePos = 0;
} else {
m_scenePos = m_labelList[_local2.name];
}
break;
case "ATTR" :
app.sys.SysInfo.updateAttr();
break;
case "FRAME" :
if (_local2.flag == "ON") {
m_isFrame = true;
app.sys.SysInfo.setStart(true);
} else {
m_isFrame = false;
app.sys.SysInfo.setStart(false);
}
break;
default :
m_activeList.push({scene:_local2, time:0, count:0});
}
} while (_local4);
}
_local3 = m_activeList.length - 1;
while (_local3 >= 0) {
_local2 = m_activeList[_local3];
if (_local2.scene.type == "ENEMY") {
_local5 = enemy(_local2);
} else if (_local2.scene.type == "SOUND") {
_local5 = sound(_local2);
}
if (_local5) {
m_activeList.splice(_local3, 1);
}
_local3--;
}
m_time = m_time + app.sys.SysInfo.getSpeed();
if (m_isFrame) {
m_frameCount++;
}
}
function destroy() {
}
function stop() {
m_isStop = true;
}
function clearActiveList() {
m_activeList = [];
}
function getFrame() {
return(m_frameCount);
}
function enemy(obj) {
var _local8;
if (obj.time >= obj.scene.interval) {
var _local6;
var _local3;
_local6 = {};
for (_local3 in obj.scene.param) {
_local6[_local3] = obj.scene.param[_local3];
}
if (obj.scene.inc != undefined) {
for (_local3 in obj.scene.inc) {
_local6[_local3] = _local6[_local3] + (obj.scene.inc[_local3] * obj.count);
}
}
if (obj.scene.random != undefined) {
for (_local3 in obj.scene.random) {
var _local5;
var _local7;
var _local4;
_local5 = obj.scene.random[_local3].min;
_local7 = obj.scene.random[_local3].max;
_local4 = (Math.random() * (_local7 - _local5)) + _local5;
if (obj.scene.random[_local3].neg != undefined) {
if (Math.random() < 0.5) {
_local4 = -_local4;
}
}
_local6[_local3] = _local4;
}
}
_local6.count = obj.count;
_local8 = app.sys.EnemyFactory.create(m_context, obj.scene.id, _local6, obj.time - obj.scene.interval);
obj.time = obj.time - obj.scene.interval;
obj.count++;
}
obj.time = obj.time + app.sys.SysInfo.getSpeed();
return(obj.count >= obj.scene.count);
}
function sound(obj) {
if (obj.scene.action == "PlayMusic") {
app.sys.SysInfo.SoundManager.playMusic(obj.scene.id, obj.scene.mode);
} else if (obj.scene.action == "FadeOut") {
app.sys.SysInfo.SoundManager.fadeOutMusic(obj.scene.id, obj.scene.time);
}
return(true);
}
function onEvent(eventID, param) {
switch (eventID) {
case EID_PLAYER_IN :
case EID_ENEMY_IN :
case EID_GAME_OVER :
case EID_STAGE_CLEAR :
case EID_SC_GAME_START :
m_encountEvent = eventID;
sendEvent(eventID, param);
break;
default :
sendEvent(eventID, param);
}
}
function addListener(listener) {
var _local2;
for (_local2 in m_listener) {
if (listener == m_listener[_local2]) {
return(undefined);
}
}
m_listener.push(listener);
}
function removeListener(listener) {
var _local2;
for (_local2 in m_listener) {
if (listener == m_listener[_local2]) {
m_listener.splice(_local2, 1);
return(undefined);
}
}
}
function sendEvent(eventID, param) {
var _local3;
var _local2;
_local2 = m_listener.length - 1;
while (_local2 >= 0) {
_local3 = app.sys.SceneGraphListener(m_listener[_local2]);
_local3.onSceneGraphEvent(eventID, param);
_local2--;
}
}
static var EID_PLAYER_IN = 1;
static var EID_ENEMY_IN = 2;
static var EID_GAME_START = 3;
static var EID_GAME_OVER = 4;
static var EID_STAGE_CLEAR = 5;
static var EID_GAME_END = 6;
static var EID_ENEMY_DESTROY = 7;
static var EID_STAGE_FINISH = 8;
static var EID_FLOW_START = 10;
static var EID_FLOW_CONTINUE = 11;
static var EID_FLOW_STAGECLEAR = 12;
static var EID_FLOW_GAMEOVER = 13;
static var EID_FLOW_TITLE = 14;
static var EID_FLOW_NEXT = 15;
static var EID_STAGECONTROLL = 20;
static var EID_SC_TITLE_IN = 30;
static var EID_SC_TITLE_IN_END = 31;
static var EID_SC_GAME_IN = 40;
static var EID_SC_GAME_IN_END = 41;
static var EID_SC_GAME_START = 42;
static var EID_SC_GAMEOVER_IN = 50;
static var EID_SC_GAMEOVER_IN_END = 51;
static var EID_SC_FLOORCLEAR_IN = 60;
static var EID_SC_FLOORCLEAR_IN_END = 61;
static var EID_SC_STAGECLEAR_IN = 70;
static var EID_SC_STAGECLEAR_IN_END = 71;
static var EID_SC_GAMECLEAR_IN = 80;
static var EID_SC_GAMECLEAR_IN_END = 81;
static var EID_SC_STORY_IN = 90;
static var EID_SC_STORY_IN_END = 91;
static var EID_GAME_NEXT = 100;
}
Symbol 593 MovieClip [__Packages.app.sys.EnemyFactory] Frame 0
class app.sys.EnemyFactory
{
function EnemyFactory () {
}
static function create(context, id, param, count) {
var _local3 = 0;
var _local1;
var _local2 = app.enemy;
do {
_local1 = id.indexOf(".", _local3);
if (_local1 == -1) {
_local2 = _local2[id.substring(_local3)];
} else {
_local2 = _local2[id.substring(_local3, _local1)];
_local3 = _local1 + 1;
}
} while (_local1 != -1);
return(_local2.create(context, param, count));
}
}
Symbol 594 MovieClip [__Packages.app.enemy.EnemyList] Frame 0
class app.enemy.EnemyList
{
function EnemyList () {
}
}
Symbol 595 MovieClip [__Packages.sys.WorkItem] Frame 0
class sys.WorkItem
{
function WorkItem () {
}
function init() {
}
function reset() {
}
function move() {
return(true);
}
function ctrl() {
return(true);
}
function disp() {
}
function destroy() {
}
function ctrlAndDisp() {
return(true);
}
}
Symbol 596 MovieClip [__Packages.app.enemy.Enemy] Frame 0
class app.enemy.Enemy extends sys.WorkItem
{
var m_context;
function Enemy (context) {
super();
m_context = context;
}
static var EM_ENEMY = 0;
static var EM_POWERUP = 1;
static var EM_MAX = 2;
}
Symbol 597 MovieClip [__Packages.sys.Listener] Frame 0
interface sys.Listener
{
}
Symbol 598 MovieClip [__Packages.app.sys.SceneGraphListener] Frame 0
interface app.sys.SceneGraphListener extends sys.Listener
{
}
Symbol 599 MovieClip [__Packages.app.sys.Debug] Frame 0
class app.sys.Debug
{
var m_mc, m_active, m_visible, m_str;
function Debug () {
}
function init(x, y) {
m_mc = util.MovieClipFactory.create(app.sys.Screen.OT_SYSTEM, "DebugMC", "Debug");
m_mc._x = x;
m_mc._y = y;
m_active = false;
m_visible = false;
m_str = "";
}
function reset() {
if (m_active) {
m_str = "";
}
}
function setActive(active) {
if (active) {
output = activeOutput;
disp = activeDisp;
} else {
output = undefined;
disp = noDisp;
}
m_active = active;
}
function setVisible(visible) {
m_visible = visible;
}
function activeOutput(str) {
m_str = m_str + (str + newline);
}
function activeDisp() {
m_mc.str = m_str;
m_mc._visible = m_visible;
}
function noDisp() {
m_mc._visible = m_visible;
}
function output() {
}
function disp() {
}
function destroy() {
m_mc.removeMovieClip();
}
function isActive() {
return(m_active);
}
}
Symbol 600 MovieClip [__Packages.util.MovieClipFactory] Frame 0
class util.MovieClipFactory
{
static var m_idx, m_depthList, m_mcList, m_basePos, m_baseNum, m_baseNow, m_baseGroupPos;
function MovieClipFactory () {
}
static function init() {
m_idx = 0;
m_depthList = [];
m_mcList = [];
m_basePos = -1;
m_baseNum = -1;
m_baseNow = 0;
m_baseGroupPos = 0;
}
static function reset() {
var _local1 = 0;
while (_local1 < m_idx) {
var _local2 = m_mcList[_local1];
m_depthList[_local1] = _local2.getNextHighestDepth();
_local1++;
}
}
static function append(mc, idx) {
var _local1 = 0;
while (_local1 < idx) {
mc.createEmptyMovieClip("mcf" + _local1, _local1);
m_mcList.push(mc["mcf" + _local1]);
m_depthList.push(0);
_local1++;
}
m_idx = m_idx + idx;
}
static function get(mcidx) {
return(m_mcList[mcidx]);
}
static function setBasePosition(pos) {
m_basePos = pos;
}
static function setBaseNumber(num) {
m_baseNum = num;
}
static function flip() {
if (m_baseNow == 0) {
m_baseNow = 1;
} else {
m_baseNow = 0;
}
}
static function setGroupPos(pos) {
m_baseGroupPos = pos;
}
static function setHighDepth(isHigh) {
var _local2;
var _local1;
if (m_baseNow == 0) {
_local2 = m_mcList[m_baseGroupPos];
_local1 = m_mcList[m_baseGroupPos + 1];
} else {
_local2 = m_mcList[m_baseGroupPos + 1];
_local1 = m_mcList[m_baseGroupPos];
}
if ((_local2.getDepth() > _local1.getDepth()) != isHigh) {
_local2.swapDepths(_local1);
}
}
static function getCurrentMC() {
return(m_mcList[m_baseGroupPos + m_baseNow]);
}
static function getCurrentMCDepth() {
return(m_baseGroupPos + m_baseNow);
}
static function getBase() {
return(m_baseNow);
}
static function create(mcidx, idname, name) {
var _local3;
var _local4;
var _local2;
if (name == undefined) {
name = "mcfo";
}
_local4 = m_depthList[mcidx];
_local2 = m_mcList[mcidx];
_local3 = _create(_local2, idname, name, _local4);
m_depthList[mcidx]++;
return(_local3);
}
static function createWithBase(mcidx, idname, name, base) {
mcidx = mcidx + (m_baseNum * base);
return(create(mcidx, idname, name));
}
static function createOnMc(mc, idname, name) {
var _local4;
var _local1;
if (name == undefined) {
name = "mcfo";
}
_local1 = mc.MCF_idx;
if (_local1 == undefined) {
_local1 = 1;
}
_local4 = _create(mc, idname, name, _local1);
mc.MCF_idx = _local1 + 1;
return(_local4);
}
static function _create(mc, idname, name, depth) {
var _local2;
name = (name + "_") + depth;
mc.attachMovie(idname, name, depth);
_local2 = mc[name];
_local2._visible = false;
if (_local2 == undefined) {
}
return(_local2);
}
}
Symbol 601 MovieClip [__Packages.app.sys.Screen] Frame 0
class app.sys.Screen
{
function Screen () {
}
static var WIDTH = 530;
static var HEIGHT = 400;
static var GAME_WIDTH = 530;
static var GAME_HEIGHT = 400;
static var OT_MENU = 0;
static var OT_GAME = 1;
static var OT_SYSTEM = 2;
static var OT_UTIL = 3;
static var OT_TOP_NUM = 4;
static var OT_SCREEN = 4;
static var OT_SCREEN_NUM = 2;
static var OT_BACKGROUND = 6;
static var OT_BGSTAR = 7;
static var OT_BGBACK = 8;
static var OT_ENEMY = 9;
static var OT_PLAYER = 10;
static var OT_BULLET = 11;
static var OT_BGFRONT = 12;
static var OT_STATUS = 13;
static var OT_GAME_NUM = 8;
}
Symbol 602 MovieClip [__Packages.app.sys.SoundManager] Frame 0
class app.sys.SoundManager
{
var m_mc, m_fadeCount, m_fadeTime, m_seIndex, m_seList, m_music, m_musicData, m_musicIndex, m_cnt;
function SoundManager () {
m_mc = _root.createEmptyMovieClip("Sounds", 10000);
m_fadeCount = 0;
m_fadeTime = 0;
m_seIndex = 0;
m_seList = [];
var _local3 = 0;
while (_local3 < 7) {
m_seList.push(undefined);
_local3++;
}
m_music = undefined;
m_musicData = undefined;
m_musicIndex = 0;
m_cnt = 0;
}
function playSE(sename, vol) {
var _local2;
var _local6;
var _local4;
var _local5;
var _local3;
if (vol == undefined) {
vol = 100;
}
_local2 = m_seList[m_seIndex];
freeSound(_local2);
_local3 = m_cnt;
_local6 = "snd" + _local3;
_local2 = m_mc.createEmptyMovieClip(_local6, _local3);
_local2.seid = _local3;
_local5 = app.sys.SoundResource.getSEInfo(sename);
_local4 = new Sound(_local2);
_local4.attachSound(_local5.id);
_local4.setVolume((vol * _local5.vol) / 100);
_local4.start();
_local2.snd = _local4;
_local2.vol = _local5.vol;
m_cnt++;
m_seList[m_seIndex] = _local2;
m_seIndex++;
if (m_seIndex >= m_seList.length) {
m_seIndex = 0;
}
return(_local3);
}
function playSEWithLoop(sename, vol) {
var _local2;
var _local6;
var _local4;
var _local5;
var _local3;
if (vol == undefined) {
vol = 100;
}
_local2 = m_seList[m_seIndex];
freeSound(_local2);
_local3 = m_cnt;
_local6 = "snd" + _local3;
_local2 = m_mc.createEmptyMovieClip(_local6, _local3);
_local2.seid = _local3;
_local5 = app.sys.SoundResource.getSEInfo(sename);
_local4 = new Sound(_local2);
_local4.attachSound(_local5.id);
_local4.setVolume((vol * _local5.vol) / 100);
_local4.start(0, 9999);
_local2.snd = _local4;
_local2.vol = _local5.vol;
m_cnt++;
m_seList[m_seIndex] = _local2;
m_seIndex++;
if (m_seIndex >= m_seList.length) {
m_seIndex = 0;
}
return(_local3);
}
function playMusic(musicname, mode) {
var _local2;
var _local3;
var _local4;
if (mode == "DIFFERENT") {
if ((m_music != undefined) && (m_music.idname == musicname)) {
return(undefined);
}
}
freeSound(m_music);
m_fadeTime = 0;
m_fadeCount = 0;
_local3 = "msc" + m_cnt;
_local2 = m_mc.createEmptyMovieClip(_local3, m_cnt);
_local4 = new Sound(_local2);
_local2.snd = _local4;
_local2.volume = 100;
_local2.idname = musicname;
m_cnt++;
m_music = _local2;
m_musicIndex = 0;
m_musicData = app.sys.SoundResource.getMusicData(musicname);
playMusicOne();
}
function playMusicOne() {
var _local3;
var _local2 = m_music.snd;
if (m_musicData.length <= m_musicIndex) {
return(undefined);
}
_local3 = m_musicData[m_musicIndex];
_local2.attachSound(_local3.id);
if (_local3.loop != 0) {
_local2.start(0, _local3.loop);
_local2.onSoundComplete = playNextSound;
} else {
_local2.start(0, 9999);
}
_local2.setVolume(m_music.volume);
m_musicIndex++;
}
function setVolume(id, vol) {
var _local2;
for (var _local5 in m_seList) {
_local2 = m_seList[_local5];
if (_local2.seid == id) {
_local2.snd.setVolume((vol * _local2.vol) / 100);
break;
}
}
}
function setMusicVolume(vol) {
m_music.volume = vol;
m_music.snd.setVolume(m_music.volume);
}
function stopSE(id) {
var _local2;
for (var _local4 in m_seList) {
_local2 = m_seList[_local4];
if (_local2.seid == id) {
freeSound(_local2);
m_seList[_local4] = undefined;
break;
}
}
}
function stopMusic() {
if (m_music != undefined) {
freeSound(m_music);
m_music = undefined;
}
m_fadeTime = 0;
m_fadeCount = 0;
}
function stopAll() {
var _local3;
var _local4;
var _local2 = m_seList.length - 1;
while (_local2 >= 0) {
_local3 = m_seList[_local2];
freeSound(_local3);
_local2--;
}
stopMusic();
_local4 = new Sound();
_local4.stop();
}
function move() {
if (m_fadeTime != 0) {
m_fadeCount = m_fadeCount + app.sys.SysInfo.getRate();
if (m_fadeCount >= m_fadeTime) {
freeSound(m_music);
m_music = undefined;
m_fadeTime = 0;
m_fadeCount = 0;
} else {
m_music.volume = 100 - ((m_fadeCount * 100) / m_fadeTime);
m_music.snd.setVolume(m_music.volume);
}
}
}
function fadeOutMusic(musicname, time) {
if ((m_music != undefined) && (m_music.idname != musicname)) {
m_fadeTime = time;
m_fadeCount = 0;
}
}
function freeSound(mc) {
if (mc != undefined) {
mc.snd.onSoundComplete = undefined;
mc.snd.stop();
delete mc.snd;
mc.removeMovieClip();
}
}
static function playNextSound() {
app.sys.SysInfo.SoundManager.playMusicOne();
}
}
Symbol 603 MovieClip [__Packages.app.sys.SoundResource] Frame 0
class app.sys.SoundResource
{
function SoundResource () {
}
static function getSEInfo(name) {
return(SeResource[name]);
}
static function getMusicData(name) {
return(MusicResource[name]);
}
static var SeResource = {CupIn:{id:"SE_CupIn", vol:100}, ShotI:{id:"SE_ShotI", vol:100}, ShotD:{id:"SE_ShotD", vol:100}, ShotP:{id:"SE_ShotP", vol:100}, GreenStep:{id:"SE_GreenStep", vol:100}, ShotWind:{id:"SE_ShotWind", vol:100}, Banker:{id:"SE_Banker", vol:100}, Fairway:{id:"SE_Fairway", vol:100}, Rough:{id:"SE_Rough", vol:50}, Water:{id:"SE_Water", vol:100}, Wood:{id:"SE_Wood", vol:100}, CheerMini:{id:"SE_CheerMini", vol:100}, CheerBig:{id:"SE_CheerBig", vol:100}, CheerBad:{id:"SE_CheerBad", vol:100}, Menu_OK:{id:"SE_OK", vol:50}, Menu_Select:{id:"SE_Select", vol:50}, Bird:{id:"SE_Bird", vol:30}, Wind:{id:"SE_Wind", vol:30}, End:{}};
static var MusicResource = {Title:[{id:"BGM_Title", length:0, loop:1}], End:[]};
}
Symbol 604 MovieClip [__Packages.app.sys.Option] Frame 0
class app.sys.Option
{
var m_hiScore, m_holeScore;
function Option () {
m_hiScore = 0;
m_holeScore = 99;
}
function load() {
var _local2;
_local2 = SharedObject.getLocal((SO_ID + "_") + VERSION);
if (_local2.data.HiScore == undefined) {
_local2.data.HiScore = 0;
}
if (_local2.data.HoleScore == undefined) {
_local2.data.HoleScore = 99;
}
HiScore = (_local2.data.HiScore);
HoleScore = (_local2.data.HoleScore);
}
function save() {
var _local2;
_local2 = SharedObject.getLocal((SO_ID + "_") + VERSION);
_local2.data.HiScore = HiScore;
_local2.data.HoleScore = HoleScore;
_local2.flush(256);
}
function get HiScore() {
return(m_hiScore);
}
function set HiScore(score) {
if (m_hiScore < score) {
m_hiScore = score;
}
//return(HiScore);
}
function get HoleScore() {
return(m_holeScore);
}
function set HoleScore(score) {
if (m_holeScore > score) {
m_holeScore = score;
}
//return(HoleScore);
}
static var SO_ID = "YGF";
static var VERSION = 0;
}
Symbol 605 MovieClip [__Packages.app.sys.SysInfo] Frame 0
class app.sys.SysInfo
{
static var m_lastCourse, m_scoreList, m_parList, m_carryList, m_course, m_isStart;
function SysInfo () {
}
static function initFirst() {
Option.load();
m_lastCourse = -1;
setStart(false);
}
static function initGame() {
clearScore();
initCourseNum();
}
static function continueGameLoop() {
continueCourseNum();
}
static function initStage() {
setStart(false);
}
static function clearStage() {
incCourseNum();
}
static function endGame() {
saveCourseNum();
saveScore();
Option.save();
}
static function clearGame() {
}
static function reset() {
}
static function move() {
}
static function disp() {
if (Debug.isActive()) {
}
}
static function clearScore() {
m_scoreList = [];
m_parList = [];
m_carryList = [];
var _local1 = 0;
while (_local1 < GP_COURSE_MAX) {
m_scoreList.push(-1);
m_parList.push(-1);
m_carryList.push(-1);
_local1++;
}
}
static function setScore(score, par, carry) {
m_scoreList[m_course] = score;
m_parList[m_course] = par;
m_carryList[m_course] = carry;
}
static function getScore(course) {
return(m_scoreList[course]);
}
static function getPar(course) {
return(m_parList[course]);
}
static function getCarry(course) {
return(m_carryList[course]);
}
static function saveScore() {
var _local3;
var _local2;
var _local1;
_local3 = 0;
_local2 = 0;
_local1 = 0;
while (_local1 < GP_COURSE_MAX) {
_local3 = _local3 + (m_scoreList[_local1] - m_parList[_local1]);
if (_local2 < m_carryList[_local1]) {
_local2 = m_carryList[_local1];
}
_local1++;
}
Option.HiScore = _local2;
Option.HoleScore = _local3;
}
static function isStart() {
return(m_isStart);
}
static function setStart(flag) {
m_isStart = flag;
}
static function getRate() {
return(1000 / getFrameRate());
}
static function getFrameRate() {
return(24);
}
static function getSpeed() {
return(getRate());
}
static function initCourseNum() {
m_course = 0;
}
static function getCourseNum() {
return(m_course);
}
static function incCourseNum() {
m_course++;
}
static function continueCourseNum() {
m_course = m_lastCourse;
}
static function saveCourseNum() {
m_lastCourse = m_course;
}
static function isLastCourse() {
return(m_course >= (GP_COURSE_MAX - 1));
}
static function isContinue() {
return(m_lastCourse >= 0);
}
static function updateAttr() {
m_attr++;
m_WorkList.setAttr(m_attr);
}
static function getAttr() {
return(m_attr);
}
static function get WorkList() {
return(m_WorkList);
}
static function get SceneGraph() {
return(m_SceneGraph);
}
static function get Debug() {
return(m_Debug);
}
static function get SoundManager() {
return(m_SoundManager);
}
static function get Option() {
return(m_Option);
}
static function get GameMode() {
return(m_GameMode);
}
static var m_WorkList = new sys.WorkList();
static var m_SceneGraph = new app.sys.SceneGraph();
static var m_Debug = new app.sys.Debug();
static var m_SoundManager = new app.sys.SoundManager();
static var m_Option = new app.sys.Option();
static var m_GameMode = new app.sys.GameMode();
static var m_enemySpeed = 1000;
static var m_attr = 0;
static var ONE = 960;
static var GP_COURSE_MAX = 9;
}
Symbol 606 MovieClip [__Packages.app.sys.FPS] Frame 0
class app.sys.FPS
{
var m_lastSec, m_count, m_dispCount, m_mc, m_wl;
function FPS (x, y) {
m_lastSec = Math.floor(getTimer() / 1000);
m_count = 1;
m_dispCount = 1;
m_mc = util.MovieClipFactory.create(app.sys.Screen.OT_UTIL, "FPSMC", "FPS");
m_wl = app.sys.SysInfo.WorkList.append(this);
m_mc._x = x;
m_mc._y = y;
m_mc._visible = true;
m_mc.fps = 0;
}
function move() {
var _local2 = Math.floor(getTimer() / 1000);
if (_local2 == m_lastSec) {
m_count++;
} else {
m_mc.fps = ((m_count + "(") + m_dispCount) + ")";
m_lastSec = _local2;
m_count = 1;
m_dispCount = 0;
}
return(true);
}
function ctrl() {
return(true);
}
function disp() {
m_dispCount++;
m_mc._visible = true;
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
}
Symbol 607 MovieClip [__Packages.app.flow.FlowTitle] Frame 0
class app.flow.FlowTitle extends app.flow.Flow implements app.sys.SceneGraphListener
{
var m_context, m_isDestroy, m_result;
function FlowTitle (preFlow) {
super(app.flow.Flow.FM_TITLE, preFlow);
util.MovieClipFactory.setHighDepth(true);
app.sys.SysInfo.SceneGraph.addListener(this);
new app.enemy.Menu.TitleMenu(m_context, this, preFlow);
}
function move(mode) {
app.sys.SysInfo.WorkList.callMove();
app.sys.SysInfo.WorkList.callCtrl();
}
function disp(mode) {
app.sys.SysInfo.WorkList.callDisp();
}
function destroy() {
app.sys.SysInfo.SceneGraph.removeListener(this);
app.sys.SysInfo.WorkList.callDestroyByAttr(m_context.getAttr());
app.sys.SysInfo.SoundManager.stopAll();
m_isDestroy = true;
}
function onSceneGraphEvent(eventID, param) {
if (((eventID == app.sys.SceneGraph.EID_FLOW_START) || (eventID == app.sys.SceneGraph.EID_FLOW_CONTINUE)) || (eventID == app.sys.SceneGraph.EID_FLOW_NEXT)) {
m_result = eventID;
}
}
}
Symbol 608 MovieClip [__Packages.app.enemy.Menu.TitleMenu] Frame 0
class app.enemy.Menu.TitleMenu extends app.enemy.Enemy
{
var m_mcMenu, m_context, m_mcManual, m_wl, m_checkMouseDrag, m_checkMouseClick, m_checkMouseRelease, m_checkMouseMove, m_mode, m_titleMenuIdx, m_manualMenuIdx, m_nextMenuIdx, m_scrollY, m_curMenuIdx, m_btnMcList, m_mcCursor;
function TitleMenu (context, nowFlow, preFlow) {
super(context);
m_mcMenu = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "TitleMenuMC", "TitleMenu", m_context.getBase());
m_mcMenu._x = app.sys.Screen.WIDTH / 2;
m_mcMenu._y = app.sys.Screen.HEIGHT / 2;
m_mcMenu.gotoAndStop(1);
m_mcMenu._visible = true;
m_mcManual = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "ManualMC", "Manual", m_context.getBase());
m_mcManual._x = app.sys.Screen.WIDTH / 2;
m_mcManual._y = app.sys.Screen.HEIGHT / 2;
m_mcManual.gotoAndStop(1);
m_mcManual._visible = true;
initCursor();
createCursor();
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
Mouse.addListener(this);
m_checkMouseDrag = false;
m_checkMouseClick = false;
m_checkMouseRelease = false;
m_checkMouseMove = false;
m_mode = MODE_TITLE_MENU_INIT;
m_titleMenuIdx = 0;
m_manualMenuIdx = 0;
m_nextMenuIdx = -1;
m_scrollY = 0;
app.sys.SysInfo.SceneGraph.addListener(this);
app.sys.SysInfo.SoundManager.playMusic("Title");
}
function move() {
switch (m_mode) {
case MODE_TITLE_MENU_INIT :
m_curMenuIdx = MENU_TITLE;
initMenu(MENU_TITLE);
m_nextMenuIdx = -1;
m_mode = MODE_TITLE_MENU;
break;
case MODE_TITLE_MENU :
if (moveTitle()) {
switch (m_nextMenuIdx) {
case START :
m_mode = MODE_TITLE_MENU_END;
app.sys.SysInfo.SceneGraph.onEvent(app.sys.SceneGraph.EID_FLOW_START, undefined);
hideCursor();
destroyCursor();
break;
case MANUAL :
m_mode = MODE_MANUAL_MENU_INIT;
hideCursor();
}
}
break;
case MODE_MANUAL_MENU_INIT :
m_curMenuIdx = MENU_MANUAL;
initMenu(MENU_MANUAL);
m_nextMenuIdx = -1;
m_scrollY = m_mcManual.ScrollBar._y;
m_mode = MODE_MANUAL_MENU;
break;
case MODE_MANUAL_MENU :
if (moveManual()) {
if (!(m_nextMenuIdx === START)) {
} else {
m_mode = MODE_TITLE_MENU_INIT;
hideCursor();
}
}
break;
case MODE_TITLE_MENU_END :
}
m_checkMouseClick = false;
m_checkMouseRelease = false;
m_checkMouseMove = false;
moveClowd();
return(true);
}
function moveTitle() {
var _local6 = -1;
if (m_checkMouseMove || (m_checkMouseClick)) {
var _local2;
var _local5;
var _local4;
var _local3;
_local4 = m_mcMenu._xmouse;
_local3 = m_mcMenu._ymouse;
_local5 = -1;
_local2 = m_btnMcList.length - 1;
while (_local2 >= 0) {
if (hitCheck(_local2, _local4, _local3)) {
showCursor(_local4, _local3);
_local5 = _local2;
break;
}
_local2--;
}
if (_local5 != -1) {
if (m_checkMouseClick) {
_local6 = _local5;
app.sys.SysInfo.SoundManager.playSE("Menu_OK");
} else if (m_titleMenuIdx != _local5) {
app.sys.SysInfo.SoundManager.playSE("Menu_Select");
}
m_titleMenuIdx = _local5;
} else {
hideCursor();
}
}
if (_local6 != -1) {
switch (_local6) {
case TITLE_START :
m_nextMenuIdx = START;
break;
case TITLE_MANUAL :
m_nextMenuIdx = MANUAL;
}
}
return(_local6 != -1);
}
function moveManual() {
var _local7 = -1;
if (m_checkMouseDrag) {
var _local6 = m_mcManual;
m_scrollY = _local6._ymouse;
if (m_scrollY > (_local6.ScrollBar._y + _local6.ScrollBar._height)) {
m_scrollY = _local6.ScrollBar._y + _local6.ScrollBar._height;
} else if (m_scrollY < _local6.ScrollBar._y) {
m_scrollY = _local6.ScrollBar._y;
}
if (m_checkMouseRelease) {
m_checkMouseDrag = false;
}
showCursor(m_mcManual._xmouse, m_mcManual._ymouse);
} else if (m_checkMouseMove || (m_checkMouseClick)) {
var _local2;
var _local5;
var _local4;
var _local3;
_local4 = m_mcManual._xmouse;
_local3 = m_mcManual._ymouse;
_local5 = -1;
_local2 = m_btnMcList.length - 1;
while (_local2 >= 0) {
if (hitCheck(_local2, _local4, _local3)) {
showCursor(_local4, _local3);
_local5 = _local2;
break;
}
_local2--;
}
if (_local5 != -1) {
if (m_checkMouseClick) {
if (_local5 == MANUAL_SCROLL) {
m_checkMouseDrag = true;
} else {
_local7 = _local5;
app.sys.SysInfo.SoundManager.playSE("Menu_OK");
}
} else if (m_manualMenuIdx != _local5) {
app.sys.SysInfo.SoundManager.playSE("Menu_Select");
}
m_manualMenuIdx = _local5;
} else {
hideCursor();
}
}
if (_local7 != -1) {
if (!(_local7 === MANUAL_TITLE)) {
} else {
m_nextMenuIdx = START;
}
}
return(_local7 != -1);
}
function moveClowd() {
var _local2;
_local2 = m_mcMenu.BG;
_local2.Clowd3._x = _local2.Clowd3._x + 1;
if (_local2.Clowd3._x >= ((app.sys.Screen.WIDTH / 2) + (_local2.Clowd3._width / 2))) {
_local2.Clowd3._x = _local2.Clowd3._x - (app.sys.Screen.WIDTH + _local2.Clowd3._width);
}
_local2.Clowd2._x = _local2.Clowd2._x + 0.666666666666667;
if (_local2.Clowd2._x >= ((app.sys.Screen.WIDTH / 2) + (_local2.Clowd2._width / 2))) {
_local2.Clowd2._x = _local2.Clowd2._x - (app.sys.Screen.WIDTH + _local2.Clowd2._width);
}
_local2.Clowd1._x = _local2.Clowd1._x + 0.333333333333333;
if (_local2.Clowd1._x >= ((app.sys.Screen.WIDTH / 2) + (_local2.Clowd1._width / 2))) {
_local2.Clowd1._x = _local2.Clowd1._x - (app.sys.Screen.WIDTH + _local2.Clowd1._width);
}
}
function ctrl() {
return(true);
}
function disp() {
var _local2;
switch (m_curMenuIdx) {
case MENU_TITLE :
_local2 = m_btnMcList[m_titleMenuIdx];
m_mcMenu.SelectBar._x = _local2._x;
m_mcMenu.SelectBar._y = _local2._y;
m_mcManual._visible = false;
break;
case MENU_MANUAL :
_local2 = m_mcManual;
_local2.ScrollPos._y = m_scrollY;
_local2._visible = true;
var _local5;
var _local4;
var _local6;
var _local3;
_local5 = m_scrollY - _local2.ScrollBar._y;
_local4 = _local2.ScrollBar._height;
_local6 = (_local2.ScrollImage._height - 300) + 30;
_local3 = (_local6 * _local5) / _local4;
_local2.ScrollImage._y = -170 - _local3;
}
}
function destroy() {
app.sys.SysInfo.SceneGraph.removeListener(this);
Key.removeListener(this);
Mouse.removeListener(this);
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mcMenu.removeMovieClip();
m_mcManual.removeMovieClip();
}
function initMenu(idx) {
var _local2;
m_btnMcList = [];
switch (idx) {
case MENU_TITLE :
_local2 = m_mcMenu;
m_btnMcList.push(_local2.GameStartBtn);
m_btnMcList.push(_local2.ManualBtn);
break;
case MENU_MANUAL :
_local2 = m_mcManual;
m_btnMcList.push(_local2.TitleBtn);
m_btnMcList.push(_local2.ScrollPos);
}
}
function hitCheck(btnIdx, x, y) {
var _local2 = m_btnMcList[btnIdx];
return(hitCheckMC(_local2, x, y));
}
function updateBtn(mc, rollmc, x, y) {
var _local2 = hitCheckMC(mc, x, y);
rollmc._visible = _local2;
return(_local2);
}
function hitCheckMC(mcb, x, y) {
if (((((mcb._x - (mcb._width / 2)) <= x) && ((mcb._x + (mcb._width / 2)) >= x)) && ((mcb._y - (mcb._height / 2)) <= y)) && ((mcb._y + (mcb._height / 2)) >= y)) {
return(true);
}
return(false);
}
function onMouseDown() {
m_checkMouseClick = true;
}
function onMouseMove() {
m_checkMouseMove = true;
}
function onMouseUp() {
m_checkMouseRelease = true;
}
function onMouseWheel() {
}
function initCursor() {
m_mcCursor = undefined;
}
function createCursor() {
if (m_mcCursor != undefined) {
destroyCursor();
}
m_mcCursor = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "CursorMC", "Cursor", m_context.getBase());
m_mcCursor._visible = false;
}
function destroyCursor() {
if (m_mcCursor != undefined) {
m_mcCursor.removeMovieClip();
m_mcCursor = undefined;
}
}
function showCursor(x, y) {
var _local2 = m_mcCursor;
_local2._x = (app.sys.Screen.WIDTH / 2) + x;
_local2._y = (app.sys.Screen.HEIGHT / 2) + y;
_local2._visible = true;
Mouse.hide();
}
function showCursor2(x, y) {
var _local2 = m_mcCursor;
_local2._x = x;
_local2._y = y;
_local2._visible = true;
Mouse.hide();
}
function hideCursor() {
var _local2 = m_mcCursor;
_local2._visible = false;
Mouse.show();
}
static var MENU_TITLE = 0;
static var MENU_MANUAL = 1;
static var TITLE_START = 0;
static var TITLE_MANUAL = 1;
static var TITLE_MAX = 1;
static var MANUAL_TITLE = 0;
static var MANUAL_SCROLL = 1;
static var MANUAL_MAX = 1;
static var START = 0;
static var MANUAL = 1;
static var MODE_TITLE_MENU_INIT = 0;
static var MODE_TITLE_MENU = 1;
static var MODE_MANUAL_MENU_INIT = 2;
static var MODE_MANUAL_MENU = 3;
static var MODE_TITLE_MENU_END = 4;
}
Symbol 609 MovieClip [__Packages.app.flow.FlowGameMain] Frame 0
class app.flow.FlowGameMain extends app.flow.Flow implements app.sys.SceneGraphListener
{
var m_context, m_isDestroy, m_result;
function FlowGameMain (preFlow) {
super(app.flow.Flow.FM_GAME, preFlow);
app.sys.SysInfo.SceneGraph.init(m_context);
app.sys.SysInfo.SceneGraph.addListener(this);
app.sys.SysInfo.SceneGraph.setScene([]);
app.sys.SysInfo.Option.setGameQuality();
util.MovieClipFactory.setHighDepth(false);
new app.enemy.Menu.GameMainMenu(m_context, this, preFlow);
}
function move(mode) {
app.sys.SysInfo.SceneGraph.move();
app.sys.SysInfo.WorkList.callMove();
app.sys.SysInfo.WorkList.callCtrl();
}
function disp(mode) {
app.sys.SysInfo.disp();
app.sys.SysInfo.WorkList.callDisp();
}
function destroy() {
app.sys.SysInfo.SceneGraph.removeListener(this);
app.sys.SysInfo.SceneGraph.destroy();
app.sys.SysInfo.WorkList.callDestroyByAttr(m_context.getAttr());
app.sys.SysInfo.SoundManager.stopAll();
m_isDestroy = true;
}
function onSceneGraphEvent(eventID, param) {
if (eventID == app.sys.SceneGraph.EID_FLOW_STAGECLEAR) {
m_result = eventID;
}
}
}
Symbol 610 MovieClip [__Packages.app.enemy.Menu.GameMainMenu] Frame 0
class app.enemy.Menu.GameMainMenu extends app.enemy.Enemy implements app.sys.SceneGraphListener
{
var m_nowFlow, m_preFlow, m_mode, m_count, m_hole, m_data, m_wl, m_context, m_checkMouseClick, m_checkMouseMove, m_soundWindTime, m_soundWindID, m_soundBirdTime, m_soundGreenID, m_mc2DMask, m_mc3DMask, m_frame, m_course2D, m_course3D, m_player, m_billboard, m_windStatus, m_clubStatus, m_ballStatus, m_courseInfo, m_shotBar, m_shotButton, m_changeButtonLeft, m_changeButtonRight, m_club, m_shot, m_shotDist, m_giveup, m_windDir, m_windPower, m_ballX, m_ballY, m_ground, m_oldGround, m_subMode, m_holeWindow, m_leftDist, m_shotWindow, m_powerTime, m_impactTime, m_shotTime, m_powerPoint, m_impactPoint, m_result, m_shotSpeed, m_shotRad, m_shotDir, m_shotSpin, m_shotMoveDir, m_shotMiss, m_shotPowerRate, m_airReg, m_moveX, m_moveY, m_moveH, m_boundCount, m_safeX, m_safeY, m_powerD, m_powerH, m_shotCount, m_resultWindow, m_holeoutWindow, m_soundWindRest, m_isWait, m_eventID, m_mcCursor;
function GameMainMenu (context, nowFlow, preFlow) {
super(context);
m_nowFlow = nowFlow;
m_preFlow = preFlow;
m_mode = MD_INIT;
m_count = 0;
m_hole = app.sys.SysInfo.getCourseNum() + 1;
m_data = app.data.Hole.getData(m_hole);
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
m_checkMouseClick = false;
m_checkMouseMove = false;
m_soundWindTime = Math.random() * SOUND_WIND_TIME;
m_soundWindID = -1;
m_soundBirdTime = Math.random() * SOUND_BIRD_TIME;
m_soundGreenID = -1;
Mouse.addListener(this);
app.sys.SysInfo.SceneGraph.addListener(this);
}
function move() {
switch (m_mode) {
case MD_INIT :
m_mc2DMask = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "Course2DMaskMC", "Course2DMask", m_context.getBase());
m_mc2DMask._visible = true;
m_mc3DMask = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "Course3DMaskMC", "Course2DMask", m_context.getBase());
m_mc3DMask._visible = true;
m_frame = new app.enemy.Frame(m_context);
m_course2D = new app.enemy.Course2D(m_context, m_mc2DMask.dummy, m_hole);
m_course3D = new app.enemy.Course3D(m_context, m_mc3DMask.dummy);
m_player = new app.enemy.Player(m_context, m_mc3DMask.dummy);
m_billboard = new app.enemy.Billboard(m_context, m_mc3DMask.dummy);
m_windStatus = new app.enemy.WindStatus(m_context);
m_clubStatus = new app.enemy.ClubStatus(m_context);
m_ballStatus = new app.enemy.BallStatus(m_context);
m_courseInfo = new app.enemy.CourseInfo(m_context);
m_shotBar = new app.enemy.ShotBar(m_context);
m_shotButton = new app.enemy.ShotButton(m_context);
m_changeButtonLeft = new app.enemy.ChangeButton(m_context, app.enemy.ChangeButton.CH_BTN_LEFT);
m_changeButtonRight = new app.enemy.ChangeButton(m_context, app.enemy.ChangeButton.CH_BTN_RIGHT);
initCursor();
createCursor();
m_club = 0;
m_shot = 0;
m_shotDist = 0;
m_giveup = false;
m_windDir = Math.floor(Math.random() * 8);
m_windPower = Math.floor(Math.random() * 9) + 1;
m_ballX = transReal(m_data.TeaX);
m_ballY = transReal(m_data.TeaY);
m_ground = app.enemy.Param.GROUND_FAIRWAY;
m_oldGround = m_ground;
m_course2D.setPosition(transDisp(m_ballX), transDisp(m_ballY), 0);
m_course2D.showBall();
m_course2D.hideArrow();
m_course2D.setDir(Math.atan2(m_data.PinY - m_data.TeaY, m_data.PinX - m_data.TeaX) / (Math.PI/180));
m_course3D.setData(m_data);
m_course3D.setPosition(transDisp(m_ballX), transDisp(m_ballY));
m_course3D.setBallPosition(transDisp(m_ballX), transDisp(m_ballY), 0);
m_course3D.setDir(m_course2D.getDir());
m_course3D.hideBall();
m_course3D.setOffset(8192);
m_courseInfo.setCourseNumber(m_hole);
m_courseInfo.setLeftDistance(Math.round(transReal(Math.sqrt(Math.pow(m_data.PinY - m_data.TeaY, 2) + Math.pow(m_data.PinX - m_data.TeaX, 2)))));
m_courseInfo.setParCount(m_data.Par);
m_courseInfo.setShotCount(m_shot + 1);
m_windStatus.setDir(m_windDir);
m_windStatus.setPower(m_windPower);
m_clubStatus.setClub(ClubParam[m_club].type, ClubParam[m_club].name);
m_shotBar.setDistance((ClubParam[m_club].distance * app.enemy.Param.getGround(app.enemy.Param.GROUND_GREEN).per[ClubParam[m_club].type]) / 100);
m_shotBar.setShotParam(ClubParam[m_club].speed.power, ClubParam[m_club].speed.impact, ClubParam[m_club].speed.shot);
m_ballStatus.setGround(m_ground);
m_ballStatus.clear();
m_mode = MD_AD;
break;
case MD_AD :
m_mode = MD_AD_MV;
m_count = 0;
m_subMode = 0;
break;
case MD_AD_MV :
if (adMove()) {
m_course3D.showBall();
m_mode = MD_CSINFO;
}
break;
case MD_CSINFO :
m_mode = MD_CSINFO_MV;
m_holeWindow = new app.enemy.HoleWindow(m_context, m_mc2DMask.dummy, app.sys.SysInfo.getCourseNum() + 1, Math.round(transReal(Math.sqrt(Math.pow(m_data.PinY - m_data.TeaY, 2) + Math.pow(m_data.PinX - m_data.TeaX, 2)))), m_data.Par);
break;
case MD_CSINFO_MV :
if (m_holeWindow.isEnd()) {
m_mode = MD_SHOTINFO;
m_holeWindow.destroy();
delete m_holeWindow;
}
break;
case MD_SHOTINFO :
m_ground = m_course2D.checkLandType(transDisp(m_ballX), transDisp(m_ballY));
if (m_ground == app.enemy.Param.GROUND_GREEN) {
m_club = 13;
} else if (m_ground == app.enemy.Param.GROUND_BANKER) {
m_club = 12;
} else {
var _local5;
var _local2;
_local5 = Math.round(transReal(Math.sqrt(Math.pow(m_data.PinY - transDisp(m_ballY), 2) + Math.pow(m_data.PinX - transDisp(m_ballX), 2))));
if (m_ground == app.enemy.Param.GROUND_ROUGH) {
m_club = 3;
} else {
m_club = 0;
}
_local2 = 11;
while (_local2 >= m_club) {
if (((ClubParam[_local2].distance * app.enemy.Param.getGround(m_ground).per[ClubParam[_local2].type]) / 100) >= _local5) {
m_club = _local2;
break;
}
_local2--;
}
}
m_ground = m_course2D.checkLandType(transDisp(m_ballX), transDisp(m_ballY));
m_oldGround = m_ground;
m_course2D.setPosition(transDisp(m_ballX), transDisp(m_ballY), 0);
m_course2D.showBall();
m_course2D.setDir(Math.atan2(m_data.PinY - transDisp(m_ballY), m_data.PinX - transDisp(m_ballX)) / (Math.PI/180));
m_course3D.setBallPosition(transDisp(m_ballX), transDisp(m_ballY), 0);
m_course3D.setPosition(transDisp(m_ballX), transDisp(m_ballY));
m_course3D.setDir(m_course2D.getDir());
m_leftDist = Math.round(transReal(Math.sqrt(Math.pow(m_data.PinY - transDisp(m_ballY), 2) + Math.pow(m_data.PinX - transDisp(m_ballX), 2))));
m_courseInfo.setLeftDistance(m_leftDist);
m_courseInfo.setShotCount(m_shot + 1);
m_clubStatus.setClub(ClubParam[m_club].type, ClubParam[m_club].name);
if (m_shot == 0) {
m_shotBar.setDistance((ClubParam[m_club].distance * app.enemy.Param.getGround(app.enemy.Param.GROUND_GREEN).per[ClubParam[m_club].type]) / 100);
} else {
m_shotBar.setDistance((ClubParam[m_club].distance * app.enemy.Param.getGround(m_ground).per[ClubParam[m_club].type]) / 100);
}
m_shotBar.setShotParam(ClubParam[m_club].speed.power, ClubParam[m_club].speed.impact, ClubParam[m_club].speed.shot);
m_shotBar.clear();
m_ballStatus.setGround(m_ground);
m_ballStatus.clear();
m_player.setType(ClubParam[m_club].human);
m_player.setAnimeCount(1);
m_shotWindow = new app.enemy.ShotWindow(m_context, m_mc2DMask.dummy, m_shot + 1);
m_mode = MD_SHOTINFO_MV;
break;
case MD_SHOTINFO_MV :
if (m_shotWindow.isEnd()) {
m_mode = MD_SETUP;
m_shotWindow.destroy();
delete m_shotWindow;
}
break;
case MD_SETUP :
m_mode = MD_SETUP_MV;
m_course2D.showArrow();
m_changeButtonLeft.update();
m_changeButtonRight.update();
m_shotButton.update();
m_ballStatus.update();
m_shotBar.clear();
m_checkMouseClick = false;
m_checkMouseMove = false;
break;
case MD_SETUP_MV :
if (m_checkMouseMove) {
m_changeButtonLeft.update();
m_changeButtonRight.update();
m_shotButton.update();
m_ballStatus.update();
m_course2D.update();
if (m_changeButtonLeft.isHit()) {
showCursor();
} else if (m_changeButtonRight.isHit()) {
showCursor();
} else if (m_ballStatus.isHit()) {
showCursor();
} else if (m_shotButton.isHit()) {
showCursor();
} else if (m_course2D.isHit()) {
showCursor();
} else {
hideCursor();
}
}
if (m_checkMouseClick) {
if (m_changeButtonLeft.isHit()) {
m_club--;
if (m_club < 0) {
m_club = ClubParam.length - 1;
}
m_clubStatus.setClub(ClubParam[m_club].type, ClubParam[m_club].name);
m_player.setType(ClubParam[m_club].human);
if (m_shot == 0) {
m_shotBar.setDistance((ClubParam[m_club].distance * app.enemy.Param.getGround(app.enemy.Param.GROUND_GREEN).per[ClubParam[m_club].type]) / 100);
} else {
m_shotBar.setDistance((ClubParam[m_club].distance * app.enemy.Param.getGround(m_ground).per[ClubParam[m_club].type]) / 100);
}
m_shotBar.setShotParam(ClubParam[m_club].speed.power, ClubParam[m_club].speed.impact, ClubParam[m_club].speed.shot);
} else if (m_changeButtonRight.isHit()) {
m_club++;
if (m_club >= ClubParam.length) {
m_club = 0;
}
m_clubStatus.setClub(ClubParam[m_club].type, ClubParam[m_club].name);
m_player.setType(ClubParam[m_club].human);
if (m_shot == 0) {
m_shotBar.setDistance((ClubParam[m_club].distance * app.enemy.Param.getGround(app.enemy.Param.GROUND_GREEN).per[ClubParam[m_club].type]) / 100);
} else {
m_shotBar.setDistance((ClubParam[m_club].distance * app.enemy.Param.getGround(m_ground).per[ClubParam[m_club].type]) / 100);
}
m_shotBar.setShotParam(ClubParam[m_club].speed.power, ClubParam[m_club].speed.impact, ClubParam[m_club].speed.shot);
} else if (m_ballStatus.isHit()) {
m_ballStatus.setPoint();
} else if (m_shotButton.isHit()) {
m_mode = MD_SHOT_DI;
} else if (m_course2D.isHit()) {
m_course2D.calcDir();
var _local18;
var _local19;
var _local16;
_local18 = m_course2D.getDir();
_local19 = m_course2D.getX();
_local16 = m_course2D.getY();
m_course3D.setPosition(_local19, _local16);
m_course3D.setDir(_local18);
}
}
m_checkMouseClick = false;
m_checkMouseMove = false;
break;
case MD_SHOT_DI :
hideCursor();
m_mode = MD_SHOT_DI_MV;
m_powerTime = ClubParam[m_club].speed.power;
m_impactTime = ClubParam[m_club].speed.impact;
m_shotTime = ClubParam[m_club].speed.shot;
m_powerPoint = -1;
m_impactPoint = -1;
m_count = 0;
m_checkMouseClick = false;
m_checkMouseMove = false;
m_result = RESULT_NONE;
m_shotBar.clear();
m_shotBar.setShotParam(m_powerTime, m_impactTime, m_shotTime);
break;
case MD_SHOT_DI_MV :
m_count = m_count + app.sys.SysInfo.getRate();
if (moveShotDI()) {
switch (m_result) {
case RESULT_SHOT_OK :
m_mode = MD_SHOTANIME_DI;
break;
case RESULT_SHOT_FAIL :
default :
m_mode = MD_SETUP;
}
}
m_shotBar.setPowerBar(m_powerPoint);
m_shotBar.setImpactBar(m_impactPoint);
m_shotBar.setCount(m_count);
m_checkMouseClick = false;
m_checkMouseMove = false;
break;
case MD_SHOTANIME_DI :
var _local8;
if (m_shot == 0) {
_local8 = 100;
} else {
_local8 = app.enemy.Param.getGround(m_ground).per[ClubParam[m_club].type];
}
if (m_club == 13) {
m_shotSpeed = calcShotSpeed((m_powerPoint / m_powerTime) * _local8, ClubParam[m_club].shot.speed);
m_shotRad = 0;
m_shotDir = ((m_course2D.getDir() + 90) * Math.PI) / 180;
m_shotSpin = ClubParam[m_club].shot.spin;
m_shotMoveDir = 0;
m_shotMiss = false;
} else {
var _local9;
var _local13;
var _local15;
var _local7;
var _local6;
var _local10;
var _local11;
var _local14;
_local9 = m_shotBar.getImpactRate();
_local13 = m_ballStatus.getRadius() + (Math.PI/2);
_local15 = m_ballStatus.getDist();
_local7 = (Math.sin(_local13) * _local15) / 12;
_local6 = (Math.cos(_local13) * _local15) / 12;
if (_local6 > 0) {
_local10 = ClubParam[m_club].shot.radTop - ClubParam[m_club].shot.rad;
_local11 = ClubParam[m_club].shot.spinTop - ClubParam[m_club].shot.spin;
_local14 = ClubParam[m_club].shot.speedTop - ClubParam[m_club].shot.speed;
} else {
_local10 = ClubParam[m_club].shot.radBack - ClubParam[m_club].shot.rad;
_local11 = ClubParam[m_club].shot.spinBack - ClubParam[m_club].shot.spin;
_local14 = ClubParam[m_club].shot.speedBack - ClubParam[m_club].shot.speed;
}
_local6 = Math.abs(_local6);
m_shotPowerRate = m_powerPoint / m_powerTime;
m_shotSpeed = m_shotPowerRate * _local8;
m_shotRad = ((ClubParam[m_club].shot.rad + (_local10 * _local6)) * Math.PI) / 180;
m_shotSpin = ClubParam[m_club].shot.spin + (_local11 * _local6);
m_shotMoveDir = _local7;
if (Math.abs(_local9) < (ClubParam[m_club].speed.shot / 2)) {
m_shotDir = ((m_course2D.getDir() + 90) - ((_local9 / (ClubParam[m_club].speed.shot / 2)) * 5)) + (_local7 * 10);
m_shotDir = m_shotDir * (Math.PI/180);
m_shotMiss = false;
} else {
m_shotSpeed = m_shotSpeed / 3;
m_shotDir = (((m_course2D.getDir() + 90) + 2) - ((Math.random() * 10) * ((_local9 < 0) ? -1 : 1))) + (_local7 * 10);
m_shotDir = m_shotDir * (Math.PI/180);
m_shotMiss = true;
}
m_shotSpeed = calcShotSpeed(m_shotSpeed, ClubParam[m_club].shot.speed + _local14);
}
m_airReg = 0.0045;
m_moveX = 0;
m_moveY = 0;
m_moveH = 0;
m_boundCount = 0;
m_safeX = 0;
m_safeY = 0;
m_powerD = m_shotSpeed * Math.cos(m_shotRad);
m_powerH = m_shotSpeed * Math.sin(m_shotRad);
m_course2D.hideArrow();
m_shotBar.setCount(-1);
m_count = 0;
m_shotCount = 0;
m_mode = MD_SHOTANIME_DI_MV;
break;
case MD_SHOTANIME_DI_MV :
m_count++;
m_player.setAnimeCount(m_count);
if (m_player.isSoundTime()) {
switch (ClubParam[m_club].human) {
case "W" :
app.sys.SysInfo.SoundManager.playSE("ShotD");
break;
case "I" :
app.sys.SysInfo.SoundManager.playSE("ShotI");
break;
case "P" :
app.sys.SysInfo.SoundManager.playSE("ShotP");
}
}
if (m_player.isImpactEnd()) {
m_shotCount = m_shotCount + app.sys.SysInfo.getRate();
if (moveBall()) {
switch (m_ground) {
case app.enemy.Param.GROUND_IN :
m_mode = MD_HOLEOUT;
m_giveup = false;
if (m_shot == 0) {
m_shotDist = Math.sqrt((m_moveX * m_moveX) + (m_moveY * m_moveY));
}
break;
case app.enemy.Param.GROUND_FAIRWAY :
case app.enemy.Param.GROUND_ROUGH :
case app.enemy.Param.GROUND_BANKER :
case app.enemy.Param.GROUND_GREEN :
m_mode = MD_RESULT;
if (m_shot == 0) {
m_shotDist = Math.sqrt((m_moveX * m_moveX) + (m_moveY * m_moveY));
}
break;
case app.enemy.Param.GROUND_OB :
default :
case app.enemy.Param.GROUND_WATER :
m_mode = MD_RESULT;
}
if (m_soundGreenID != -1) {
app.sys.SysInfo.SoundManager.stopSE(m_soundGreenID);
m_soundGreenID = -1;
}
}
m_course2D.setPosition(transDisp(m_ballX + m_moveX), transDisp(m_ballY + m_moveY), m_moveH);
m_courseInfo.setLeftDistance(Math.round(transReal(Math.sqrt(Math.pow(m_data.PinX - transDisp(m_ballX + m_moveX), 2) + Math.pow(m_data.PinY - transDisp(m_ballY + m_moveY), 2)))));
m_course3D.setBallPosition(transDisp(m_ballX + m_moveX), transDisp(m_ballY + m_moveY), transDisp(m_moveH));
}
break;
case MD_RESULT :
m_mode = MD_RESULT_MV;
var _local3;
var _local17;
switch (m_ground) {
case app.enemy.Param.GROUND_FAIRWAY :
if ((m_oldGround == app.enemy.Param.GROUND_GREEN) || (m_shotMiss)) {
app.sys.SysInfo.SoundManager.playSE("CheerBad");
} else {
_local17 = Math.round(transReal(Math.sqrt(Math.pow(m_data.PinY - transDisp(m_ballY + m_moveY), 2) + Math.pow(m_data.PinX - transDisp(m_ballX + m_moveX), 2))));
if ((m_leftDist > _local17) && (m_shotPowerRate >= 0.8)) {
app.sys.SysInfo.SoundManager.playSE("CheerMini");
}
}
_local3 = "FAIRWAY";
break;
case app.enemy.Param.GROUND_ROUGH :
if ((m_oldGround == app.enemy.Param.GROUND_GREEN) || (m_shotMiss)) {
app.sys.SysInfo.SoundManager.playSE("CheerBad");
}
_local3 = "ROUGH";
break;
case app.enemy.Param.GROUND_BANKER :
app.sys.SysInfo.SoundManager.playSE("CheerBad");
_local3 = "BANKER";
break;
case app.enemy.Param.GROUND_GREEN :
if (m_oldGround != app.enemy.Param.GROUND_GREEN) {
app.sys.SysInfo.SoundManager.playSE("CheerMini");
_local3 = "GREEN";
} else {
app.sys.SysInfo.SoundManager.playSE("CheerBad");
_local3 = "";
}
break;
case app.enemy.Param.GROUND_WATER :
app.sys.SysInfo.SoundManager.playSE("CheerBad");
_local3 = "WATERHAZARD";
break;
case app.enemy.Param.GROUND_OB :
default :
app.sys.SysInfo.SoundManager.playSE("CheerBad");
_local3 = "OB";
}
m_resultWindow = new app.enemy.ResultWindow(m_context, m_mc2DMask.dummy, _local3);
break;
case MD_RESULT_MV :
if (m_resultWindow.isEnd()) {
switch (m_ground) {
case app.enemy.Param.GROUND_FAIRWAY :
case app.enemy.Param.GROUND_ROUGH :
case app.enemy.Param.GROUND_BANKER :
case app.enemy.Param.GROUND_GREEN :
m_ballX = m_ballX + m_moveX;
m_ballY = m_ballY + m_moveY;
break;
case app.enemy.Param.GROUND_WATER :
m_shot++;
m_ballX = m_ballX + m_safeX;
m_ballY = m_ballY + m_safeY;
break;
case app.enemy.Param.GROUND_OB :
default :
m_shot++;
}
m_resultWindow.destroy();
delete m_resultWindow;
if (m_shot < 9) {
m_shot++;
m_mode = MD_SHOTINFO;
} else {
m_giveup = true;
m_mode = MD_HOLEOUT;
}
}
break;
case MD_HOLEOUT :
var _local12;
_local12 = (m_shot + 1) - m_data.Par;
if (_local12 > 0) {
app.sys.SysInfo.SoundManager.playSE("CheerBad");
} else if (_local12 == 0) {
app.sys.SysInfo.SoundManager.playSE("CheerMini");
} else {
app.sys.SysInfo.SoundManager.playSE("CheerBig");
}
app.sys.SysInfo.setScore(m_shot + 1, m_data.Par, m_shotDist);
m_course3D.hideBall();
m_holeoutWindow = new app.enemy.HoleOutWindow(m_context, m_mc2DMask.dummy, m_shot + 1, m_data.Par, m_giveup);
m_mode = MD_HOLEOUT_MV;
break;
case MD_HOLEOUT_MV :
if (m_holeoutWindow.isEnd()) {
m_holeoutWindow.destroy();
delete m_holeoutWindow;
m_mode = MD_ENDAD;
}
break;
case MD_ENDAD :
m_mode = MD_ENDAD_MV;
m_count = 0;
m_subMode = 0;
break;
case MD_ENDAD_MV :
if (endAdMove()) {
destroyCursor();
m_mode = MD_END;
app.sys.SysInfo.SceneGraph.onEvent(app.sys.SceneGraph.EID_FLOW_STAGECLEAR, undefined);
}
break;
case MD_END :
}
m_soundWindTime = m_soundWindTime - app.sys.SysInfo.getRate();
if (m_soundWindTime < 0) {
m_soundWindRest = 5000 + (Math.random() * 5000);
m_soundWindID = app.sys.SysInfo.SoundManager.playSE("Wind");
m_soundWindTime = SOUND_WIND_TIME + (Math.random() * SOUND_WIND_TIME);
}
if (m_soundWindID > 0) {
var _local4;
m_soundWindRest = m_soundWindRest - app.sys.SysInfo.getRate();
_local4 = Math.floor(m_soundWindRest / 10);
if (_local4 >= 100) {
_local4 = 100;
}
_local4 = Math.floor((_local4 * m_windPower) / 10);
if (_local4 <= 0) {
app.sys.SysInfo.SoundManager.stopSE(m_soundWindID);
m_soundWindID = -1;
} else {
app.sys.SysInfo.SoundManager.setVolume(m_soundWindID, _local4);
}
}
m_soundBirdTime = m_soundBirdTime - app.sys.SysInfo.getRate();
if (m_soundBirdTime < 0) {
app.sys.SysInfo.SoundManager.playSE("Bird");
m_soundBirdTime = SOUND_BIRD_TIME + (Math.random() * SOUND_BIRD_TIME);
}
return(true);
}
function moveShotDI() {
if (m_powerPoint == -1) {
if (m_count <= (m_powerTime + app.sys.SysInfo.getRate())) {
if (m_checkMouseClick) {
m_powerPoint = m_count;
if (m_powerPoint > m_powerTime) {
m_powerPoint = m_powerTime;
}
if (m_club == 13) {
m_result = RESULT_SHOT_OK;
}
}
} else {
m_result = RESULT_SHOT_FAIL;
}
} else if (m_impactPoint == -1) {
if (m_count < (m_powerTime + m_impactTime)) {
if (m_count > m_powerTime) {
if (m_checkMouseClick) {
m_impactPoint = m_count;
m_result = RESULT_SHOT_OK;
}
}
} else {
m_result = RESULT_SHOT_FAIL;
}
}
return(m_result != RESULT_NONE);
}
function calcShotSpeed(power, speed) {
var _local6;
var _local7;
var _local4;
var _local3;
var _local5;
var _local9;
if (power < 0) {
power = 0;
}
if (power > 100) {
power = 100;
}
_local6 = (100 - power) / 5;
_local4 = Math.floor(_local6);
_local3 = _local4 + 1;
if (_local3 > 20) {
_local3 = 20;
}
_local7 = _local6 - _local4;
_local5 = ClubParam[m_club].power[_local4];
_local9 = ClubParam[m_club].power[_local3];
speed = (speed * (_local5 + ((_local9 - _local5) * _local7))) / 100;
return(speed);
}
function moveBall() {
var _local3;
var _local36;
var _local24;
var _local28;
var _local33;
var _local17;
var _local26;
var _local34;
var _local35;
var _local37;
var _local20;
var _local6;
var _local4;
var _local5;
var _local23;
var _local29;
var _local13;
var _local25;
var _local15;
var _local14;
var _local27;
var _local32;
var _local30;
var _local21;
_local3 = app.sys.SysInfo.getRate() * 2;
_local20 = Math.sqrt((m_powerH * m_powerH) + (m_powerD * m_powerD));
_local6 = Math.atan2(m_powerH, m_powerD);
_local4 = m_ballX + m_moveX;
_local5 = m_ballY + m_moveY;
if ((m_powerH == 0) && (m_moveH == 0)) {
if (m_ground == app.enemy.Param.GROUND_GREEN) {
_local25 = m_course2D.checkGreenParam(m_data.GreenTop, transDisp(m_ballX + m_moveX), transDisp(m_ballY + m_moveY));
_local27 = _local25.dir + (Math.PI/2);
if (_local25.step == 1) {
_local15 = m_powerD * Math.sin(m_shotDir);
_local14 = (-m_powerD) * Math.cos(m_shotDir);
_local32 = Math.sin(_local27);
_local30 = -Math.cos(_local27);
_local15 = _local15 + (((_local32 * 1.5) * _local3) / 1000);
_local14 = _local14 + (((_local30 * 1.5) * _local3) / 1000);
m_shotDir = Math.atan2(_local14, _local15) + (Math.PI/2);
m_powerD = Math.sqrt((_local15 * _local15) + (_local14 * _local14));
}
if (m_soundGreenID == -1) {
m_soundGreenID = app.sys.SysInfo.SoundManager.playSEWithLoop("GreenStep");
}
_local21 = Math.floor(m_powerD * 10);
if (_local21 > 100) {
_local21 = 100;
}
app.sys.SysInfo.SoundManager.setVolume(m_soundGreenID, _local21);
}
_local36 = (m_powerD * _local3) / 1000;
m_moveX = m_moveX + transYard(((m_powerD * Math.sin(m_shotDir)) * _local3) / 1000);
m_moveY = m_moveY + transYard((((-m_powerD) * Math.cos(m_shotDir)) * _local3) / 1000);
m_powerD = m_powerD - ((app.enemy.Param.getGround(m_ground).reg * _local3) / 1000);
if (m_powerD < 0) {
m_powerD = 0;
}
} else {
_local36 = (m_powerD * _local3) / 1000;
m_moveX = m_moveX + transYard(((m_powerD * Math.sin(m_shotDir)) * _local3) / 1000);
m_moveY = m_moveY + transYard((((-m_powerD) * Math.cos(m_shotDir)) * _local3) / 1000);
m_moveH = m_moveH + ((m_powerH * _local3) / 1000);
_local13 = m_moveH / 20;
if (_local13 > 1) {
_local13 = 1;
}
_local13 = _local13 / 3;
m_moveX = m_moveX + transYard((((WindParam[m_windDir].x * m_windPower) * _local13) * _local3) / 1000);
m_moveY = m_moveY + transYard((((WindParam[m_windDir].y * m_windPower) * _local13) * _local3) / 1000);
_local24 = (((m_airReg * _local20) * _local20) * _local3) / 1000;
_local28 = _local24 * Math.sin(_local6 + Math.PI);
_local33 = _local24 * Math.cos(_local6 + Math.PI);
_local17 = ((_local6 > 0.20943951023932) ? (0.418879020478639 - _local6) : (_local6));
if (_local17 < 0) {
_local17 = 0;
}
_local17 = _local17 * 0.05;
_local23 = _local20 + (((0.134051758528676 * m_shotSpin) / 60) * 2);
_local26 = (((_local17 * _local23) * _local23) * _local3) / 1000;
_local34 = _local26 * Math.sin(_local6 + (Math.PI/2));
_local35 = _local26 * Math.cos(_local6 + (Math.PI/2));
m_powerH = m_powerH - ((9.8 * _local3) / 1000);
m_powerH = m_powerH + _local28;
m_powerD = m_powerD + _local33;
m_powerH = m_powerH + _local34;
m_powerD = m_powerD + _local35;
m_shotDir = m_shotDir - (((((m_shotMoveDir * Math.PI) / 180) * 3) * _local3) / 1000);
if (m_soundGreenID != -1) {
app.sys.SysInfo.SoundManager.stopSE(m_soundGreenID);
m_soundGreenID = 1;
}
}
m_ground = m_course2D.checkLandType(transDisp(m_ballX + m_moveX), transDisp(m_ballY + m_moveY));
if (m_ground != app.enemy.Param.GROUND_WATER) {
m_safeX = m_moveX;
m_safeY = m_moveY;
}
if (m_moveH < 5) {
var _local10;
var _local9;
var _local2;
_local10 = transDisp(m_ballX + m_moveX);
_local9 = transDisp(m_ballY + m_moveY);
_local2 = m_data.Tree.length - 1;
while (_local2 >= 0) {
if ((Math.abs(_local10 - m_data.Tree[_local2][0]) < 1) && (Math.abs(_local9 - m_data.Tree[_local2][2]) < 1)) {
m_shotDir = m_shotDir + (Math.PI + ((((Math.random() * 90) - 45) * Math.PI) / 180));
m_shotDir = m_shotDir % (Math.PI*2);
m_powerD = (((Math.random() / 2) + 0.5) * m_powerD) / 2;
m_powerH = m_powerH / 2;
m_moveX = _local4 - m_ballX;
m_moveY = _local5 - m_ballY;
app.sys.SysInfo.SoundManager.playSE("Wood");
}
_local2--;
}
}
if (m_moveH < 0) {
if (((m_ground == app.enemy.Param.GROUND_FAIRWAY) || (m_ground == app.enemy.Param.GROUND_ROUGH)) || (m_ground == app.enemy.Param.GROUND_GREEN)) {
_local29 = app.enemy.Param.getGround(m_ground).bound;
m_powerH = (-m_powerH) * ((0.25 * _local29) / 100);
m_powerD = m_powerD - (((0.134051758528676 * m_shotSpin) / 60) / 2);
m_powerD = m_powerD / 1.25;
m_shotSpin = 0;
if (m_powerH < 1) {
m_powerH = 0;
m_shotMoveDir = 0;
}
if (m_boundCount == 0) {
switch (m_ground) {
case app.enemy.Param.GROUND_FAIRWAY :
case app.enemy.Param.GROUND_GREEN :
app.sys.SysInfo.SoundManager.playSE("Fairway");
break;
case app.enemy.Param.GROUND_ROUGH :
app.sys.SysInfo.SoundManager.playSE("Rough");
}
}
m_boundCount++;
} else {
switch (m_ground) {
case app.enemy.Param.GROUND_WATER :
app.sys.SysInfo.SoundManager.playSE("Water");
break;
case app.enemy.Param.GROUND_BANKER :
app.sys.SysInfo.SoundManager.playSE("Banker");
break;
case app.enemy.Param.GROUND_OB :
app.sys.SysInfo.SoundManager.playSE("Rough");
}
m_powerH = 0;
m_powerD = 0;
m_shotMoveDir = 0;
}
m_moveH = 0;
}
if ((m_ground == app.enemy.Param.GROUND_GREEN) && (m_moveH == 0)) {
var _local8;
var _local7;
var _local31;
var _local11;
var _local18;
var _local12;
var _local16;
var _local22;
var _local19 = false;
_local8 = transReal(m_data.PinX);
_local7 = transReal(m_data.PinY);
_local31 = Math.sqrt(Math.pow(_local8 - (m_ballX + m_moveX), 2) + Math.pow(_local7 - (m_ballY + m_moveY), 2));
if (_local31 < 0.08) {
_local19 = true;
} else {
_local11 = m_ballX + m_moveX;
_local18 = m_ballY + m_moveY;
if ((_local11 - _local4) == 0) {
_local12 = 1;
_local16 = 0;
_local22 = -_local11;
} else {
_local12 = (_local18 - _local5) / (_local11 - _local4);
_local16 = -1;
_local22 = _local18 - (_local11 * _local12);
}
if ((Math.abs(((_local8 * _local12) + (_local16 * _local7)) + _local22) / Math.sqrt((_local12 * _local12) + (_local16 * _local16))) < 0.08) {
if (((((_local4 < _local8) && (_local8 < _local11)) || ((_local11 < _local8) && (_local8 < _local4))) || ((_local5 < _local7) && (_local7 < _local18))) || ((_local18 < _local7) && (_local7 < _local5))) {
_local19 = true;
}
}
}
if (_local19) {
if (m_powerD <= 6) {
m_ground = app.enemy.Param.GROUND_IN;
m_powerD = 0;
m_moveX = _local8 - m_ballX;
m_moveY = _local7 - m_ballY;
app.sys.SysInfo.SoundManager.playSE("CupIn");
} else {
m_shotDir = m_shotDir + (((((((Math.random() > 0.5) ? 1 : -1) * Math.random()) * 20) + 25) * Math.PI) / 180);
m_powerD = m_powerD / 0.8;
}
}
}
return(m_powerD == 0);
}
function adMove() {
switch (m_subMode) {
case 0 :
m_count = m_count + app.sys.SysInfo.getRate();
if (m_count >= AD_IN_TIME) {
m_count = m_count - AD_IN_TIME;
m_subMode++;
m_billboard.setPosition(0);
m_course3D.setOffset(4096);
} else {
m_billboard.setPosition(4096 - ((m_count / AD_IN_TIME) * 4096));
m_course3D.setOffset(8192 - ((m_count / AD_IN_TIME) * 4096));
}
break;
case 1 :
m_count = m_count + app.sys.SysInfo.getRate();
if (m_count >= AD_WAIT_TIME) {
m_count = m_count - AD_WAIT_TIME;
m_subMode++;
}
break;
case 2 :
m_count = m_count + app.sys.SysInfo.getRate();
if (m_count >= AD_OUT_TIME) {
m_count = m_count - AD_OUT_TIME;
m_subMode = -1;
m_billboard.setPosition(-4096);
m_player.setPosition(0);
m_course3D.setOffset(0);
} else {
m_billboard.setPosition(((-m_count) / AD_IN_TIME) * 4096);
m_player.setPosition(4096 - ((m_count / AD_IN_TIME) * 4096));
m_course3D.setOffset(4096 - ((m_count / AD_IN_TIME) * 4096));
}
}
return(m_subMode == -1);
}
function endAdMove() {
switch (m_subMode) {
case 0 :
m_count = m_count + app.sys.SysInfo.getRate();
if (m_count >= AD_IN_TIME) {
m_count = m_count - AD_IN_TIME;
m_subMode++;
m_billboard.setPosition(0);
m_player.setPosition(-4096);
m_course3D.setOffset(-4096);
} else {
m_billboard.setPosition(4096 - ((m_count / AD_IN_TIME) * 4096));
m_player.setPosition(((-m_count) / AD_IN_TIME) * 4096);
m_course3D.setOffset(((-m_count) / AD_IN_TIME) * 4096);
}
break;
case 1 :
m_count = m_count + app.sys.SysInfo.getRate();
if (m_count < (AD_WAIT_TIME * 2)) {
break;
}
m_count = m_count - (AD_WAIT_TIME * 2);
m_subMode = -1;
}
return(m_subMode == -1);
}
function ctrl() {
return(true);
}
function disp() {
}
function destroy() {
app.sys.SysInfo.SceneGraph.removeListener(this);
m_frame.destroy();
m_course2D.destroy();
m_course3D.destroy();
m_player.destroy();
m_billboard.destroy();
m_windStatus.destroy();
m_clubStatus.destroy();
m_ballStatus.destroy();
m_courseInfo.destroy();
m_shotBar.destroy();
m_shotButton.destroy();
m_changeButtonLeft.destroy();
m_changeButtonRight.destroy();
m_mc2DMask.removeMovieClip();
m_mc3DMask.removeMovieClip();
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
}
function transReal(pos) {
return(pos * TOREAL);
}
function transYard(pos) {
return(pos * TOYARD);
}
function transDisp(pos) {
return(pos * TODISP);
}
function onSceneGraphEvent(eventID, param) {
switch (eventID) {
case app.sys.SceneGraph.EID_GAME_OVER :
case app.sys.SceneGraph.EID_STAGE_FINISH :
m_isWait = false;
m_eventID = eventID;
break;
case app.sys.SceneGraph.EID_SC_GAMEOVER_IN :
case app.sys.SceneGraph.EID_SC_GAME_IN_END :
case app.sys.SceneGraph.EID_SC_FLOORCLEAR_IN_END :
case app.sys.SceneGraph.EID_SC_STAGECLEAR_IN_END :
m_isWait = false;
}
}
function onMouseDown() {
m_checkMouseClick = true;
}
function onMouseMove() {
m_checkMouseMove = true;
}
function onMouseUp() {
}
function onMouseWheel() {
}
function initCursor() {
m_mcCursor = undefined;
}
function createCursor() {
if (m_mcCursor != undefined) {
destroyCursor();
}
m_mcCursor = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "CursorMC", "Cursor", m_context.getBase());
m_mcCursor._visible = false;
}
function destroyCursor() {
if (m_mcCursor != undefined) {
m_mcCursor.removeMovieClip();
m_mcCursor = undefined;
}
}
function showCursor(x, y) {
var _local2 = m_mcCursor;
var _local3 = util.MovieClipFactory.get(app.sys.Screen.OT_STATUS);
_local2._x = _local3._xmouse;
_local2._y = _local3._ymouse;
_local2._visible = true;
Mouse.hide();
}
function hideCursor() {
var _local2 = m_mcCursor;
_local2._visible = false;
Mouse.show();
}
static var MD_INIT = 0;
static var MD_AD = 1;
static var MD_AD_MV = 2;
static var MD_CSINFO = 3;
static var MD_CSINFO_MV = 4;
static var MD_SHOTINFO = 5;
static var MD_SHOTINFO_MV = 6;
static var MD_SETUP = 7;
static var MD_SETUP_MV = 8;
static var MD_SHOT_DI = 9;
static var MD_SHOT_DI_MV = 10;
static var MD_SHOTANIME_DI = 13;
static var MD_SHOTANIME_DI_MV = 14;
static var MD_RESULT = 15;
static var MD_RESULT_MV = 16;
static var MD_GIVEUP = 17;
static var MD_GIVEUP_MV = 18;
static var MD_HOLEOUT = 19;
static var MD_HOLEOUT_MV = 20;
static var MD_ENDAD = 21;
static var MD_ENDAD_MV = 22;
static var MD_END = 23;
static var ClubParam = [{name:"1W", type:"W", human:"W", speed:{power:1500, impact:1000, shot:120}, power:[100, 94.22, 88.81, 83.77, 78.92, 73.69, 69.59, 65.3, 61.01, 57.09, 53.36, 49.81, 45.9, 43.1, 40.3, 39.18, 36.38, 32.84, 27.43, 20.52, 2.05], distance:230, shot:{speed:53.6, rad:11, spin:2500, speedTop:52.3, speedBack:52.2, spinTop:0, spinBack:3500, radTop:9, radBack:13}}, {name:"2W", type:"W", human:"W", speed:{power:1500, impact:1000, shot:160}, power:[100, 94.65, 89.51, 84.57, 79.84, 75.31, 71.4, 66.87, 62.96, 59.26, 55.14, 51.65, 48.56, 45.27, 42.39, 39.71, 36.83, 33.13, 28.19, 20.78, 1.85], distance:210, shot:{speed:48.6, rad:12, spin:2600, speedTop:47.5, speedBack:48.6, spinTop:100, spinBack:3600, radTop:10, radBack:14}}, {name:"3W", type:"W", human:"W", speed:{power:1500, impact:1000, shot:160}, power:[100, 94.98, 90.18, 85.62, 81.28, 76.94, 73.06, 68.95, 64.84, 60.96, 57.53, 53.88, 50.68, 47.49, 44.98, 42.01, 38.58, 34.47, 29.22, 21.46, 2.28], distance:190, shot:{speed:43.8, rad:13, spin:2700, speedTop:43.3, speedBack:43.7, spinTop:200, spinBack:3700, radTop:11, radBack:15}}, {name:"2I", type:"I", human:"I", speed:{power:1500, impact:1000, shot:200}, power:[100, 94.99, 89.98, 85.68, 81.38, 77.33, 73.03, 68.97, 65.16, 61.1, 57.76, 54.42, 51.07, 47.49, 44.87, 41.53, 37.95, 33.89, 28.4, 21.24, 2.63], distance:180, shot:{speed:41.9, rad:15, spin:3000, speedTop:41.2, speedBack:42, spinTop:500, spinBack:4000, radTop:13, radBack:17}}, {name:"3I", type:"I", human:"I", speed:{power:1500, impact:1000, shot:200}, power:[100, 94.96, 90.68, 85.89, 82.12, 77.83, 74.06, 69.52, 66.25, 62.22, 58.44, 55.42, 51.89, 48.36, 45.59, 42.57, 39.04, 34.51, 28.46, 21.66, 2.77], distance:170, shot:{speed:39.7, rad:16, spin:3100, speedTop:39.5, speedBack:39.8, spinTop:600, spinBack:4100, radTop:14, radBack:18}}, {name:"4I", type:"I", human:"I", speed:{power:1500, impact:1000, shot:200}, power:[100, 95.47, 91.2, 87.2, 82.67, 78.93, 74.67, 70.93, 66.93, 63.2, 59.73, 56.27, 53.07, 49.6, 46.93, 43.47, 39.47, 35.2, 29.07, 21.87, 2.93], distance:160, shot:{speed:37.5, rad:17, spin:3200, speedTop:37.5, speedBack:37.7, spinTop:700, spinBack:4200, radTop:15, radBack:19}}, {name:"5I", type:"I", human:"I", speed:{power:1500, impact:1000, shot:200}, power:[100, 95.22, 91.29, 87.08, 82.87, 78.93, 75, 71.35, 67.7, 63.76, 60.67, 57.02, 53.93, 50.28, 47.47, 43.82, 40.17, 35.39, 29.49, 21.91, 3.37], distance:150, shot:{speed:36, rad:18, spin:3300, speedTop:35.5, speedBack:35.5, spinTop:800, spinBack:4300, radTop:16, radBack:20}}, {name:"6I", type:"I", human:"I", speed:{power:1500, impact:1000, shot:200}, power:[100, 95.83, 91.67, 87.2, 83.63, 79.46, 75.89, 72.32, 68.45, 64.88, 61.61, 58.33, 54.76, 52.08, 48.81, 45.24, 41.07, 36.01, 30.06, 22.32, 3.57], distance:140, shot:{speed:33.6, rad:19, spin:3400, speedTop:34, speedBack:33.6, spinTop:900, spinBack:4400, radTop:17, radBack:21}}, {name:"7I", type:"I", human:"I", speed:{power:1500, impact:1000, shot:200}, power:[100, 95.89, 92.09, 87.97, 83.86, 80.38, 76.58, 73.1, 69.3, 66.14, 62.66, 59.49, 56.01, 53.16, 49.68, 45.89, 42.09, 36.71, 30.7, 22.78, 3.48], distance:130, shot:{speed:31.6, rad:20, spin:3500, speedTop:32.3, speedBack:31.7, spinTop:1000, spinBack:4500, radTop:18, radBack:22}}, {name:"8I", type:"I", human:"I", speed:{power:1500, impact:1000, shot:200}, power:[100, 95.97, 92.28, 88.26, 84.56, 80.54, 77.18, 73.49, 70.47, 66.78, 63.42, 60.07, 57.72, 54.03, 50.67, 46.98, 42.28, 37.92, 31.54, 23.49, 3.69], distance:120, shot:{speed:29.8, rad:21, spin:3600, speedTop:30.3, speedBack:29.7, spinTop:1100, spinBack:4600, radTop:19, radBack:23}}, {name:"9I", type:"I", human:"I", speed:{power:1500, impact:1000, shot:200}, power:[100, 96.06, 92.47, 88.89, 84.59, 81.72, 77.78, 74.19, 71.33, 67.38, 64.52, 61.65, 58.78, 54.84, 51.61, 47.67, 43.73, 37.99, 32.26, 23.66, 3.94], distance:110, shot:{speed:27.9, rad:22, spin:3700, speedTop:28.7, speedBack:27.8, spinTop:1200, spinBack:4700, radTop:20, radBack:24}}, {name:"PW", type:"PW", human:"I", speed:{power:1500, impact:1000, shot:240}, power:[100, 95.86, 92.11, 88.72, 85.34, 81.58, 78.2, 74.81, 71.43, 68.05, 65.04, 61.65, 59.02, 55.26, 51.88, 47.37, 42.86, 37.97, 31.2, 22.93, 4.14], distance:100, shot:{speed:26.6, rad:30, spin:4000, speedTop:26.9, speedBack:27.1, spinTop:1500, spinBack:5000, radTop:26, radBack:34}}, {name:"SW", type:"SW", human:"I", speed:{power:1500, impact:1000, shot:240}, power:[100, 96.25, 92.92, 89.58, 86.67, 83.33, 80, 76.67, 73.75, 70.42, 67.08, 63.75, 60.42, 57.08, 52.92, 48.33, 43.33, 37.92, 32.08, 23.33, 5.42], distance:80, shot:{speed:24, rad:40, spin:4200, speedTop:23.6, speedBack:24.8, spinTop:1700, spinBack:5200, radTop:36, radBack:44}}, {name:"PT", type:"PT", human:"P", speed:{power:1500, impact:0, shot:0}, power:[100, 97.06, 94.71, 91.76, 88.82, 86.47, 83.53, 80, 77.06, 73.53, 70, 66.47, 62.94, 58.82, 54.12, 49.41, 44.12, 38.24, 31.18, 21.76, 0.59], distance:40, shot:{speed:17, rad:0, spin:0, speedTop:17, speedBack:17, spinTop:0, spinBack:0, radTop:0, radBack:0}}];
static var WindParam = [{x:0, y:1}, {x:0.707, y:0.707}, {x:1, y:0}, {x:0.707, y:-0.707}, {x:0, y:-1}, {x:-0.707, y:-0.707}, {x:-1, y:0}, {x:-0.707, y:0.707}];
static var RESULT_NONE = 0;
static var RESULT_SHOT_FAIL = 10;
static var RESULT_SHOT_OK = 11;
static var TOREAL = 2.18722659667542;
static var TOYARD = 1.09361329833771;
static var TODISP = 0.4572;
static var AD_IN_TIME = 1000;
static var AD_WAIT_TIME = 1000;
static var AD_OUT_TIME = 1000;
static var SOUND_WIND_TIME = 20000;
static var SOUND_BIRD_TIME = 35000;
}
Symbol 611 MovieClip [__Packages.app.enemy.Frame] Frame 0
class app.enemy.Frame extends app.enemy.Enemy
{
var m_mc, m_context, m_wl;
function Frame (context) {
super(context);
m_mc = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_BACKGROUND, "FrameMC", "FrameMC", m_context.getBase());
m_mc._x = 0;
m_mc._y = 0;
m_mc._visible = true;
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function move() {
return(true);
}
function ctrl() {
return(true);
}
function disp() {
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
}
Symbol 612 MovieClip [__Packages.app.enemy.Course2D] Frame 0
class app.enemy.Course2D extends app.enemy.Enemy
{
var m_mcHole, m_mcBall, m_mcArrow, m_mode, m_isUpdate, m_mag, m_nextMag, m_cx, m_cy, m_nextCx, m_nextCy, m_greenX, m_greenY, m_ground, m_wl, m_context, m_x, m_y, m_isShowBall, m_h, m_dir, m_isShowArrow, m_isHit;
function Course2D (context, parentMC, hole) {
super(context);
m_mcHole = util.MovieClipFactory.createOnMc(parentMC, ("Hole0" + hole) + "MC", "Hole0" + hole);
m_mcHole._x = POS_X;
m_mcHole._y = POS_Y;
m_mcHole.gotoAndStop(1);
m_mcHole._visible = true;
m_mcHole.Cup.stop();
m_mcBall = util.MovieClipFactory.createOnMc(parentMC, "BallMC", "BallMC");
m_mcBall.gotoAndStop(1);
m_mcArrow = util.MovieClipFactory.createOnMc(parentMC, "ArrowMC", "BallMC");
m_mode = 0;
m_isUpdate = true;
m_mag = 1;
m_nextMag = 1;
m_cx = WIDTH / 2;
m_cy = HEIGHT / 2;
m_nextCx = WIDTH / 2;
m_nextCy = HEIGHT / 2;
m_greenX = m_cx - ((WIDTH / 2) / m_mag);
m_greenY = m_cy - ((HEIGHT / 2) / m_mag);
m_ground = app.enemy.Param.GROUND_FAIRWAY;
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function ctrl() {
if (m_isUpdate) {
if (greenCheck()) {
var _local4;
var _local3;
var _local2;
_local4 = Math.abs(m_mcHole.Cup._x - m_x);
_local3 = Math.abs(m_mcHole.Cup._y - m_y);
_local2 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local2 < 10) {
m_nextMag = 12;
m_nextCx = m_mcHole.Cup._x;
m_nextCy = m_mcHole.Cup._y;
} else if (_local2 < 20) {
m_nextMag = 6;
m_nextCx = m_mcHole.Cup._x;
m_nextCy = m_mcHole.Cup._y;
} else {
m_nextMag = 4;
m_nextCx = m_mcHole.Green._x + (m_mcHole.Green._width / 2);
m_nextCy = m_mcHole.Green._y + (m_mcHole.Green._height / 2);
}
} else {
m_nextMag = 1;
m_nextCx = WIDTH / 2;
m_nextCy = HEIGHT / 2;
}
}
if (((m_cx != m_nextCx) || (m_cy != m_nextCy)) || (m_mag != m_nextMag)) {
m_cx = m_nextCx;
m_cy = m_nextCy;
m_mag = m_nextMag;
m_greenX = m_cx - ((WIDTH / 2) / m_mag);
m_greenY = m_cy - ((HEIGHT / 2) / m_mag);
}
return(true);
}
function disp() {
if (m_isUpdate) {
m_mcHole._xscale = (m_mcHole._yscale = m_mag * 100);
m_mcHole._x = POS_X - (m_greenX * m_mag);
m_mcHole._y = POS_Y - (m_greenY * m_mag);
m_mcBall._x = POS_X + ((m_x - m_greenX) * m_mag);
m_mcBall._y = POS_Y + ((m_y - m_greenY) * m_mag);
m_mcBall._visible = m_isShowBall;
m_mcBall._xscale = (m_mcBall._yscale = 50 + (m_h * 2));
m_mcArrow._x = POS_X + ((m_x - m_greenX) * m_mag);
m_mcArrow._y = POS_Y + ((m_y - m_greenY) * m_mag);
m_mcArrow._rotation = m_dir + 90;
m_mcArrow._visible = m_isShowArrow;
m_mcHole.Cup._xscale = (m_mcHole.Cup._yscale = 4 / m_mag);
m_isUpdate = false;
}
}
function destroy() {
m_mcHole.removeMovieClip();
m_mcBall.removeMovieClip();
m_mcArrow.removeMovieClip();
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
}
function setPosition(x, y, h) {
m_x = x;
m_y = y;
m_h = h;
m_isUpdate = true;
}
function setDir(dir) {
m_dir = dir;
m_isUpdate = true;
}
function showArrow() {
m_isShowArrow = true;
m_isUpdate = true;
}
function hideArrow() {
m_isShowArrow = false;
m_isUpdate = true;
}
function showBall() {
m_isShowBall = true;
}
function hideBall() {
m_isShowBall = false;
}
function update() {
var _local4;
var _local3;
_local4 = _root._xmouse;
_local3 = _root._ymouse;
if ((((POS_X <= _local4) && ((POS_X + WIDTH) >= _local4)) && (POS_Y <= _local3)) && ((POS_Y + HEIGHT) >= _local3)) {
m_isHit = true;
} else {
m_isHit = false;
}
}
function isHit() {
return(m_isHit);
}
function calcDir() {
var _local4;
var _local3;
if (greenCheck()) {
_local4 = _root._xmouse - (POS_X + ((m_x - m_greenX) * m_mag));
_local3 = _root._ymouse - (POS_Y + ((m_y - m_greenY) * m_mag));
} else {
_local4 = _root._xmouse - (POS_X + m_x);
_local3 = _root._ymouse - (POS_Y + m_y);
}
m_dir = Math.atan2(_local3, _local4) / (Math.PI/180);
m_isUpdate = true;
}
function getDir() {
return(m_dir);
}
function getX() {
return(m_x);
}
function getY() {
return(m_y);
}
function greenCheck() {
return(m_ground == app.enemy.Param.GROUND_GREEN);
}
function checkLandType(x, y) {
var _local4;
_local4 = {x:x, y:y};
m_mcHole.localToGlobal(_local4);
x = _local4.x;
y = _local4.y;
if (m_mcHole.Green.hitTest(x, y, false)) {
if (m_mcHole.Green.hitTest(x, y, true)) {
m_ground = app.enemy.Param.GROUND_GREEN;
return(app.enemy.Param.GROUND_GREEN);
}
}
if (m_mcHole.Banker.hitTest(x, y, false)) {
if (m_mcHole.Banker.hitTest(x, y, true)) {
m_ground = app.enemy.Param.GROUND_BANKER;
return(app.enemy.Param.GROUND_BANKER);
}
}
if (m_mcHole.Water.hitTest(x, y, false)) {
if (m_mcHole.Water.hitTest(x, y, true)) {
m_ground = app.enemy.Param.GROUND_WATER;
return(app.enemy.Param.GROUND_WATER);
}
}
if (m_mcHole.Fairway.hitTest(x, y, false)) {
if (m_mcHole.Fairway.hitTest(x, y, true)) {
m_ground = app.enemy.Param.GROUND_FAIRWAY;
return(app.enemy.Param.GROUND_FAIRWAY);
}
}
if (m_mcHole.Rough.hitTest(x, y, false)) {
if (m_mcHole.Rough.hitTest(x, y, true)) {
m_ground = app.enemy.Param.GROUND_FAIRWAY;
return(app.enemy.Param.GROUND_ROUGH);
}
}
return(app.enemy.Param.GROUND_OB);
}
function checkGreenParam(topPosList, x, y) {
var _local3 = {};
var _local14;
var _local11;
var _local10;
var _local5;
var _local4;
var _local6;
var _local2;
var _local8;
var _local7;
_local14 = {x:x, y:y};
m_mcHole.localToGlobal(_local14);
_local11 = _local14.x;
_local10 = _local14.y;
_local3.step = 0;
_local3.no = -1;
_local6 = 2;
while (_local6 >= 1) {
_local2 = 0;
do {
_local8 = (("Green-" + _local6) + "-") + _local2;
_local7 = m_mcHole.Green[_local8];
if (_local7 == undefined) {
break;
}
if (_local7.hitTest(_local11, _local10, true)) {
_local3.step = _local6;
_local3.no = _local2;
_local5 = x - topPosList[_local2][0];
_local4 = y - topPosList[_local2][1];
_local3.dir = Math.atan2(_local4, _local5);
_local3.dist = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
break;
}
_local2++;
} while (true);
if (_local3.no != -1) {
break;
}
_local6--;
}
return(_local3);
}
static var POS_X = 283;
static var POS_Y = 8;
static var WIDTH = 238;
static var HEIGHT = 303;
}
Symbol 613 MovieClip [__Packages.app.enemy.Param] Frame 0
class app.enemy.Param
{
function Param () {
}
static function getGround(idx) {
return(GroundParam[idx]);
}
static var GROUND_FAIRWAY = 0;
static var GROUND_ROUGH = 1;
static var GROUND_BANKER = 2;
static var GROUND_GREEN = 3;
static var GROUND_WATER = 4;
static var GROUND_OB = 5;
static var GROUND_IN = 6;
static var GroundParam = [{type:0, id:"FAIRWAY", bound:100, per:{W:90, I:100, PW:100, SW:100, PT:80}, reg:6}, {type:1, id:"ROUGH", bound:80, per:{W:30, I:90, PW:95, SW:95, PT:80}, reg:8}, {type:2, id:"BANKER", bound:0, per:{W:20, I:80, PW:95, SW:95, PT:10}, reg:20}, {type:3, id:"GREEN", bound:100, per:{W:100, I:100, PW:100, SW:100, PT:100}, reg:4}, {type:4, id:"WATER", bound:0, per:{W:0, I:0, PW:0, SW:0, PT:0}, reg:1000}, {type:5, id:"OB", bound:0, per:{W:0, I:0, PW:0, SW:0, PT:0}, reg:1000}];
}
Symbol 614 MovieClip [__Packages.app.enemy.Course3D] Frame 0
class app.enemy.Course3D extends app.enemy.Enemy
{
var m_camera, m_isChange, m_offsetRate, m_mcBG, m_mc, m_mcFog, m_mcTree, m_mcTreeBase, m_wl, m_context, m_data, m_holeData, m_mcTreeMcList, m_mcBall, m_isBallChange, m_ballShow, m_ballX, m_ballY, m_ballZ;
function Course3D (context, parentMC) {
super(context);
m_camera = {};
m_camera.x = 0;
m_camera.y = 0;
m_camera.z = 0;
m_camera.ry = 0;
m_camera.rx = -7;
m_isChange = true;
m_offsetRate = 0;
m_mcBG = util.MovieClipFactory.createOnMc(parentMC, "3DBGMC", "3DBG");
m_mcBG._x = 10;
m_mcBG._y = -88;
m_mcBG._visible = true;
m_mc = util.MovieClipFactory.createOnMc(parentMC, "DummyMC", "CourseMC");
m_mc._x = 10;
m_mc._y = 8;
m_mc._visible = true;
m_mcFog = util.MovieClipFactory.createOnMc(parentMC, "3DFogMC", "BgFogMC");
m_mcFog._x = 10;
m_mcFog._y = 62;
m_mcFog._visible = true;
m_mcTree = util.MovieClipFactory.createOnMc(parentMC, "DummyMC", "TreeMC");
m_mcTree._x = 10;
m_mcTree._y = 8;
m_mcTree._visible = true;
m_mcTreeBase = undefined;
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function move() {
var _local3;
var _local2;
var _local1;
return(true);
}
function ctrl() {
return(true);
}
function disp() {
if (m_isChange) {
var _local11;
m_mc.clear();
_local11 = m_data;
var _local5 = 0;
while (_local5 < _local11.length) {
var _local7 = _local11[_local5];
var _local14;
_local14 = trans(_local7.data);
_local14 = clipH(_local14, 1);
_local14 = projection(_local14, PROGECT);
_local14 = clipXY(_local14, 0, HEIGHT);
_local14 = clipXY(_local14, 0, WIDTH);
draw(_local7.COLOR, _local14);
_local5++;
}
m_mcBG._x = 10 - (((90 - (m_camera.ry % 90)) * 600) / 90);
var _local12;
var _local15;
var _local3;
var _local17;
var _local16;
var _local14 = trans(m_holeData.Tree);
_local5 = _local14.length - 1;
while (_local5 >= 0) {
if (_local14[_local5].z <= PROGECT) {
_local14.splice(_local5, 1);
} else {
_local14[_local5].type = 0;
}
_local5--;
}
_local15 = trans([[m_holeData.PinX, 0, m_holeData.PinY]]);
if (_local15[0].z > 0) {
_local15[0].type = 1;
_local14.push(_local15[0]);
}
_local14.sortOn("z", 18);
_local12 = projection(_local14, PROGECT);
_local5 = _local14.length - 1;
while (_local5 >= 0) {
var _local9;
var _local6;
_local17 = _local12[_local5].x;
if (_local14[_local5].type == 0) {
_local9 = (PROGECT / _local14[_local5].z) * 750;
_local6 = ((110 * _local9) / 2) / 100;
if (((_local17 + _local6) < 0) || ((_local17 - _local6) > WIDTH)) {
_local14.splice(_local5, 1);
_local12.splice(_local5, 1);
}
}
_local5--;
}
m_mcTreeBase.removeMovieClip();
m_mcTreeBase = util.MovieClipFactory.createOnMc(m_mcTree, "DummyMC", "Base");
m_mcTreeBase._x = 0;
m_mcTreeBase._y = 0;
m_mcTreeBase._visible = true;
m_mcTreeMcList = [];
m_mcBall = undefined;
_local3 = util.MovieClipFactory.createOnMc(m_mcTreeBase, "DummyMC", "Dummy");
_local3._x = (_local3._y = 0);
_local3.z = Number.POSITIVE_INFINITY;
_local3._visible = true;
m_mcTreeMcList.push(_local3);
_local5 = 0;
while (_local5 < _local14.length) {
if (_local14[_local5].type == 0) {
_local3 = util.MovieClipFactory.createOnMc(m_mcTreeBase, "TreeMC", "Tree");
_local3._xscale = (_local3._yscale = (PROGECT / _local14[_local5].z) * 750);
} else if (_local14[_local5].type == 1) {
_local3 = util.MovieClipFactory.createOnMc(m_mcTreeBase, "CupMC", "Cup");
_local3._xscale = (_local3._yscale = (PROGECT / _local14[_local5].z) * 25);
_local3.stop();
}
_local3._x = _local12[_local5].x;
_local3._y = _local12[_local5].y;
_local3._visible = true;
if (_local14[_local5].z >= 5000) {
var _local4;
var _local2;
var _local10;
_local4 = Math.floor((_local14[_local5].z - 10000) / 250);
if (_local4 > 75) {
_local4 = 75;
}
_local2 = {};
_local2.ra = (_local2.ga = (_local2.ba = 100 - _local4));
_local2.rb = (_local2.gb = (_local2.bb = Math.floor((256 * _local4) / 100)));
_local2.aa = 100;
_local2.ab = 0;
_local10 = new Color(_local3);
_local10.setTransform(_local2);
}
_local3 = util.MovieClipFactory.createOnMc(m_mcTreeBase, "DummyMC", "Dummy");
_local3._x = (_local3._y = 0);
_local3.z = _local14[_local5].z;
_local3._visible = true;
m_mcTreeMcList.push(_local3);
_local5++;
}
m_isChange = false;
m_isBallChange = true;
}
if (m_isBallChange) {
var _local8;
var _local13;
if (m_mcBall != undefined) {
m_mcBall.removeMovieClip();
m_mcBall = undefined;
}
if (m_ballShow) {
var _local14 = trans([[m_ballX, m_ballY, m_ballZ]]);
var _local12 = projection(_local14, PROGECT);
_local13 = _local14[0].z;
var _local5 = m_mcTreeMcList.length - 1;
while (_local5 >= 0) {
_local8 = m_mcTreeMcList[_local5];
if (_local8.z > _local13) {
var _local3 = util.MovieClipFactory.createOnMc(_local8, "BallMC", "Ball");
_local3._x = _local12[0].x;
_local3._y = _local12[0].y;
_local3._xscale = (_local3._yscale = (PROGECT / _local13) * 75);
_local3._visible = true;
_local3.stop();
m_mcBall = _local3;
break;
}
_local5--;
}
}
m_isBallChange = false;
}
}
function trans(carray) {
var _local13;
var _local12;
var _local11;
var _local10;
var _local5;
var _local4;
var _local6;
var _local9;
var _local7;
var _local8;
var _local14;
_local14 = [];
_local6 = Math.sin((Math.PI/180) * m_camera.ry);
_local9 = Math.cos((Math.PI/180) * m_camera.ry);
_local7 = Math.sin((Math.PI/180) * m_camera.rx);
_local8 = Math.cos((Math.PI/180) * m_camera.rx);
var _local2 = 0;
while (_local2 < carray.length) {
_local13 = (carray[_local2][0] * SCALE) - (m_camera.x * SCALE);
_local12 = (carray[_local2][1] * SCALE) - m_camera.y;
_local11 = ((HEIGHT - carray[_local2][2]) * SCALE) - (m_camera.z * SCALE);
_local10 = (_local9 * _local13) + (_local6 * _local11);
_local5 = _local12;
_local4 = ((-_local6) * _local13) + (_local9 * _local11);
_local13 = _local10;
_local12 = (_local8 * _local5) - (_local7 * _local4);
_local11 = ((_local7 * _local5) + (_local8 * _local4)) + 512;
_local13 = _local13 + ((m_offsetRate * OFFSET_X) / 4096);
_local14.push({x:_local13, y:_local12, z:_local11});
_local2++;
}
return(_local14);
}
function clipH(pointList, clipMin) {
var _local16;
var _local3;
var _local10;
var _local9;
var _local6;
var _local5;
var _local4;
var _local1;
var _local12;
var _local11;
var _local13;
var _local8;
_local8 = [];
_local16 = pointList.length - 1;
_local10 = pointList[_local16].x;
_local9 = pointList[_local16].y;
_local6 = pointList[_local16].z;
_local3 = 0;
while (_local3 <= _local16) {
_local5 = pointList[_local3].x;
_local4 = pointList[_local3].y;
_local1 = pointList[_local3].z;
if ((_local1 > clipMin) && (_local6 > clipMin)) {
_local8.push({x:_local5, y:_local4, z:_local1});
} else if ((_local1 > clipMin) || (_local6 > clipMin)) {
_local13 = _local6 - _local1;
_local12 = (_local10 - _local5) / _local13;
_local11 = (_local9 - _local4) / _local13;
_local13 = (clipMin + 1) - _local1;
_local8.push({x:_local5 + (_local13 * _local12), y:_local4 + (_local13 * _local11), z:clipMin + 1});
if (_local1 > clipMin) {
_local8.push({x:_local5, y:_local4, z:_local1});
}
}
_local10 = _local5;
_local9 = _local4;
_local6 = _local1;
_local3++;
}
return(_local8);
}
function projection(pointList, h) {
var _local10;
var _local1;
var _local5;
var _local4;
var _local2;
var _local8;
var _local7;
var _local9;
_local9 = [];
_local10 = pointList.length - 1;
_local1 = 0;
while (_local1 <= _local10) {
_local5 = pointList[_local1].x;
_local4 = pointList[_local1].y;
_local2 = pointList[_local1].z;
_local8 = ((_local5 * h) / _local2) + (WIDTH / 2);
_local7 = (((-_local4) * h) / _local2) + (HEIGHT / 2);
_local9.push({x:_local8, y:_local7});
_local1++;
}
return(_local9);
}
function clipXY(pointList, cmin, cmax) {
var _local13;
var _local8;
var _local10;
var _local5;
var _local2;
var _local1;
var _local7;
var _local6;
_local6 = [];
_local13 = pointList.length - 1;
_local10 = pointList[_local13].x;
_local5 = pointList[_local13].y;
_local8 = 0;
while (_local8 <= _local13) {
_local2 = pointList[_local8].x;
_local1 = pointList[_local8].y;
if ((((_local1 > cmin) && (_local1 < cmax)) && (_local5 > cmin)) && (_local5 < cmax)) {
_local6.push({x:_local1, y:_local2});
} else if (((_local5 < cmin) && (_local1 < cmin)) || ((_local5 > cmax) && (_local1 > cmax))) {
} else {
_local7 = (_local10 - _local2) / (_local5 - _local1);
if (_local5 > _local1) {
if (_local5 > cmax) {
_local6.push({x:cmax, y:_local2 + ((cmax - _local1) * _local7)});
}
if (_local1 >= cmin) {
_local6.push({x:_local1, y:_local2});
} else {
_local6.push({x:cmin, y:_local2 + ((cmin - _local1) * _local7)});
}
} else {
if (_local5 < cmin) {
_local6.push({x:cmin, y:_local2 + ((cmin - _local1) * _local7)});
}
if (_local1 <= cmax) {
_local6.push({x:_local1, y:_local2});
} else {
_local6.push({x:cmax, y:_local2 + ((cmax - _local1) * _local7)});
}
}
}
_local10 = _local2;
_local5 = _local1;
_local8++;
}
return(_local6);
}
function draw(col, pointList) {
if (pointList.length < 2) {
return(undefined);
}
m_mc.beginFill(col, 100);
m_mc.moveTo(pointList[0].x, pointList[0].y);
var _local2 = pointList.length - 1;
while (_local2 >= 1) {
m_mc.lineTo(pointList[_local2].x, pointList[_local2].y);
_local2--;
}
m_mc.endFill();
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
m_mcTreeBase.removeMovieClip();
m_mcTree.removeMovieClip();
m_mcFog.removeMovieClip();
m_mcBG.removeMovieClip();
m_mc.removeMovieClip();
}
function setData(holeData) {
m_holeData = holeData;
m_data = holeData.Data;
}
function setPosition(x, y) {
m_camera.x = x;
m_camera.y = 128;
m_camera.z = HEIGHT - y;
m_isChange = true;
}
function setDir(dir) {
m_camera.ry = (360 - (dir - 270)) % 360;
m_isChange = true;
}
function setBallPosition(x, y, height) {
m_ballX = x;
m_ballZ = y;
m_ballY = height;
m_isBallChange = true;
}
function hideBall() {
m_ballShow = false;
}
function showBall() {
m_ballShow = true;
}
function setOffset(rate) {
m_offsetRate = rate;
m_isChange = true;
}
static var WIDTH = 264;
static var HEIGHT = 303;
static var PROGECT = 512;
static var SCALE = 100;
static var OFFSET_X = 350;
}
Symbol 615 MovieClip [__Packages.app.enemy.WindStatus] Frame 0
class app.enemy.WindStatus extends app.enemy.Enemy
{
var m_mc, m_context, m_isUpdate, m_dir, m_power, m_wl;
function WindStatus (context) {
super(context);
m_mc = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "WindStatusMC", "WindStatus", m_context.getBase());
m_mc._x = 454;
m_mc._y = 316;
m_mc.gotoAndStop(1);
m_mc._visible = true;
m_isUpdate = true;
m_dir = 1;
m_power = 0;
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function disp() {
if (m_isUpdate) {
m_mc.power.text = m_power;
m_mc.dir.gotoAndStop(m_dir + 1);
m_isUpdate = false;
}
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
function setDir(dir) {
m_isUpdate = true;
m_dir = dir;
}
function setPower(power) {
m_isUpdate = true;
m_power = power;
}
static var WIND_NORTH = 0;
static var WIND_NORTHWEST = 1;
static var WIND_WEST = 2;
static var WIND_SOUTHWEST = 3;
static var WIND_SOUTH = 4;
static var WIND_SOUTHEAST = 5;
static var WIND_EAST = 6;
static var WIND_NORTHEAST = 7;
}
Symbol 616 MovieClip [__Packages.app.enemy.ClubStatus] Frame 0
class app.enemy.ClubStatus extends app.enemy.Enemy
{
var m_mc, m_context, m_isUpdate, m_type, m_name, m_wl;
function ClubStatus (context) {
super(context);
m_mc = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "ClubStatusMC", "ClubStatus", m_context.getBase());
m_mc._x = 372;
m_mc._y = 316;
m_mc.gotoAndStop(1);
m_mc._visible = true;
m_isUpdate = true;
m_type = "W";
m_name = "1W";
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function disp() {
if (m_isUpdate) {
switch (m_type) {
case "W" :
m_mc.gotoAndStop(1);
break;
case "I" :
m_mc.gotoAndStop(2);
break;
case "PW" :
case "SW" :
m_mc.gotoAndStop(3);
break;
case "PT" :
m_mc.gotoAndStop(4);
}
m_mc.ClubName.text = m_name;
m_isUpdate = false;
}
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
function setClub(type, name) {
m_type = type;
m_name = name;
m_isUpdate = true;
}
}
Symbol 617 MovieClip [__Packages.app.enemy.BallStatus] Frame 0
class app.enemy.BallStatus extends app.enemy.Enemy
{
var m_mc, m_context, m_isUpdate, m_ground, m_x, m_y, m_wl, m_isHit;
function BallStatus (context) {
super(context);
m_mc = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "BallStatusMC", "BallStatus", m_context.getBase());
m_mc._x = 288;
m_mc._y = 316;
m_mc.gotoAndStop(1);
m_mc._visible = true;
m_isUpdate = true;
m_ground = 1;
m_x = m_mc._width / 2;
m_y = m_mc._height / 2;
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function disp() {
if (m_isUpdate) {
switch (m_ground) {
case app.enemy.Param.GROUND_FAIRWAY :
m_mc.gotoAndStop(1);
break;
case app.enemy.Param.GROUND_ROUGH :
m_mc.gotoAndStop(2);
break;
case app.enemy.Param.GROUND_BANKER :
m_mc.gotoAndStop(3);
}
m_mc.ShotPoint._x = m_x;
m_mc.ShotPoint._y = m_y;
m_isUpdate = false;
}
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
function setGround(ground) {
m_isUpdate = true;
m_ground = ground;
}
function setPoint() {
var _local4;
var _local3;
var _local6;
var _local5;
m_isUpdate = true;
m_x = _root._xmouse - m_mc._x;
m_y = _root._ymouse - m_mc._y;
_local4 = m_x - (m_mc._width / 2);
_local3 = m_y - (m_mc._height / 2);
_local6 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local6 > RADIUS) {
_local5 = Math.atan2(_local3, _local4);
m_x = (Math.cos(_local5) * RADIUS) + (m_mc._width / 2);
m_y = (Math.sin(_local5) * RADIUS) + (m_mc._height / 2);
}
}
function update() {
var _local4;
var _local3;
_local4 = _root._xmouse;
_local3 = _root._ymouse;
if ((((m_mc._x <= _local4) && ((m_mc._x + m_mc._width) >= _local4)) && (m_mc._y <= _local3)) && ((m_mc._y + m_mc._height) >= _local3)) {
m_isHit = true;
} else {
m_isHit = false;
}
m_isUpdate = true;
}
function isHit() {
return(m_isHit);
}
function clear() {
m_isUpdate = true;
m_x = m_mc._width / 2;
m_y = m_mc._height / 2;
}
function getRadius() {
var _local4;
var _local3;
var _local2;
_local4 = m_x - (m_mc._width / 2);
_local3 = m_y - (m_mc._height / 2);
_local2 = Math.atan2(_local3, _local4);
return(_local2);
}
function getDist() {
var _local4;
var _local3;
var _local2;
_local4 = m_x - (m_mc._width / 2);
_local3 = m_y - (m_mc._height / 2);
_local2 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local2 > RADIUS) {
_local2 = RADIUS;
}
return(_local2);
}
static var RADIUS = 12;
}
Symbol 618 MovieClip [__Packages.app.enemy.CourseInfo] Frame 0
class app.enemy.CourseInfo extends app.enemy.Enemy
{
var m_mc, m_context, m_isUpdate, m_shotCount, m_parCount, m_courseNumber, m_leftDistance, m_wl;
function CourseInfo (context) {
super(context);
m_mc = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "CourseInfoMC", "CourseInfo", m_context.getBase());
m_mc._x = 12;
m_mc._y = 338;
m_mc.gotoAndStop(1);
m_mc._visible = true;
m_isUpdate = true;
m_shotCount = 0;
m_parCount = 0;
m_courseNumber = 1;
m_leftDistance = 0;
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function disp() {
if (m_isUpdate) {
m_mc.ShotCount.text = m_shotCount;
m_mc.ParCount.text = m_parCount;
m_mc.CourseNumber.text = m_courseNumber;
m_mc.LeftDistance.text = m_leftDistance + "y";
m_isUpdate = false;
}
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
function setShotCount(shotCount) {
m_isUpdate = true;
m_shotCount = shotCount;
}
function setParCount(parCount) {
m_isUpdate = true;
m_parCount = parCount;
}
function setCourseNumber(courseNumber) {
m_isUpdate = true;
m_courseNumber = courseNumber;
}
function setLeftDistance(leftDistance) {
m_isUpdate = true;
m_leftDistance = leftDistance;
}
}
Symbol 619 MovieClip [__Packages.app.enemy.ShotBar] Frame 0
class app.enemy.ShotBar extends app.enemy.Enemy
{
var m_mc, m_context, m_isUpdate, m_distance, m_powerTime, m_impactTime, m_powerCount, m_impactCount, m_count, m_wl, m_shotTime;
function ShotBar (context) {
super(context);
m_mc = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "ShotBarMC", "ShotBar", m_context.getBase());
m_mc._x = 86;
m_mc._y = 316;
m_mc.gotoAndStop(1);
m_mc._visible = true;
m_isUpdate = true;
m_distance = 0;
m_powerTime = -1;
m_impactTime = -1;
m_powerCount = -1;
m_impactCount = -1;
m_count = -1;
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function disp() {
if (m_isUpdate) {
var _local2;
m_mc.HalfDistance.text = Math.floor(m_distance / 2) + "y";
m_mc.FullDistance.text = Math.floor(m_distance) + "y";
if (m_impactTime != 0) {
m_mc.ShotArea._width = (184 / m_impactTime) * m_shotTime;
m_mc.ShotArea._visible = true;
} else {
m_mc.ShotArea._visible = false;
}
if (m_powerCount == -1) {
m_mc.PowerBar._visible = false;
} else {
m_mc.PowerBar._x = 24 + ((160 * m_powerCount) / m_powerTime);
m_mc.PowerBar._visible = true;
}
if (m_impactCount == -1) {
m_mc.ImpactBar._visible = false;
} else {
m_mc.ImpactBar._x = 184 - ((184 * (m_impactCount - m_powerTime)) / m_impactTime);
m_mc.ImpactBar._visible = true;
}
if (m_count == -1) {
m_mc.MoveBar._visible = false;
} else {
if ((m_powerTime >= m_count) || (m_powerCount == -1)) {
if (m_powerTime <= m_count) {
m_mc.MoveBar._width = 160;
} else {
m_mc.MoveBar._width = (160 * m_count) / m_powerTime;
}
m_mc.MoveBar._rotation = 0;
} else {
_local2 = (184 * (m_count - m_powerTime)) / m_impactTime;
if (_local2 <= 160) {
m_mc.MoveBar._width = 160 - _local2;
m_mc.MoveBar._rotation = 0;
} else {
m_mc.MoveBar._width = _local2 - 160;
m_mc.MoveBar._rotation = 180;
}
}
m_mc.MoveBar._visible = true;
}
m_isUpdate = false;
}
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
function setDistance(distance) {
m_isUpdate = true;
m_distance = distance;
}
function setShotParam(powerTime, impactTime, shotTime) {
m_powerTime = powerTime;
m_impactTime = impactTime;
m_shotTime = shotTime;
}
function setPowerBar(powerCount) {
m_powerCount = powerCount;
}
function setImpactBar(impactCount) {
m_impactCount = impactCount;
}
function setCount(count) {
m_count = count;
m_isUpdate = true;
}
function clear() {
m_powerCount = -1;
m_impactCount = -1;
m_count = -1;
m_isUpdate = true;
}
function getImpactRate() {
return((m_impactCount - m_powerTime) - ((m_impactTime * 160) / 184));
}
}
Symbol 620 MovieClip [__Packages.app.enemy.ShotButton] Frame 0
class app.enemy.ShotButton extends app.enemy.Enemy
{
var m_mc, m_context, m_isUpdate, m_wl, m_isHit;
function ShotButton (context) {
super(context);
m_mc = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "ShotButtonMC", "ShotButton", m_context.getBase());
m_mc._x = 12;
m_mc._y = 316;
m_mc.gotoAndStop(1);
m_mc._visible = true;
m_isUpdate = true;
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function disp() {
if (m_isUpdate) {
m_isUpdate = false;
}
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
function update() {
var _local4;
var _local3;
_local4 = _root._xmouse;
_local3 = _root._ymouse;
if ((((m_mc._x <= _local4) && ((m_mc._x + m_mc._width) >= _local4)) && (m_mc._y <= _local3)) && ((m_mc._y + m_mc._height) >= _local3)) {
m_isHit = true;
} else {
m_isHit = false;
}
m_isUpdate = true;
}
function isHit() {
return(m_isHit);
}
function clear() {
m_isHit = false;
m_isUpdate = true;
}
}
Symbol 621 MovieClip [__Packages.app.enemy.ChangeButton] Frame 0
class app.enemy.ChangeButton extends app.enemy.Enemy
{
var m_dir, m_mc, m_context, m_isUpdate, m_wl, m_isHit;
function ChangeButton (context, dir) {
super(context);
m_dir = dir;
m_mc = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "ChangeButtonMC", "ChangeButton", m_context.getBase());
m_mc._x = 372 + ((m_dir == CH_BTN_LEFT) ? 0 : 64);
m_mc._y = 340;
m_mc._rotation = ((m_dir == CH_BTN_LEFT) ? 0 : 180);
m_mc.gotoAndStop(1);
m_mc._visible = true;
m_isUpdate = true;
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function disp() {
if (m_isUpdate) {
m_isUpdate = false;
}
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
function update() {
var _local4;
var _local3;
_local4 = _root._xmouse;
_local3 = _root._ymouse;
if (((((m_mc._x - (m_mc._width / 2)) <= _local4) && ((m_mc._x + (m_mc._width / 2)) >= _local4)) && ((m_mc._y - (m_mc._height / 2)) <= _local3)) && ((m_mc._y + (m_mc._height / 2)) >= _local3)) {
m_isHit = true;
} else {
m_isHit = false;
}
m_isUpdate = true;
}
function isHit() {
return(m_isHit);
}
function clear() {
m_isHit = false;
m_isUpdate = true;
}
static var CH_BTN_LEFT = 0;
static var CH_BTN_RIGHT = 1;
}
Symbol 622 MovieClip [__Packages.app.enemy.Player] Frame 0
class app.enemy.Player extends app.enemy.Enemy
{
var m_mc, m_type, m_count, m_rate, m_isUpdate, m_wl, m_context;
function Player (context, parentMC) {
super(context);
m_mc = util.MovieClipFactory.createOnMc(parentMC, "PlayerMC", "Player");
m_mc._x = POS_X;
m_mc._y = POS_Y;
m_mc.gotoAndStop(1);
m_mc._visible = false;
m_type = "W";
m_count = 0;
m_rate = 4096;
m_isUpdate = true;
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function move() {
return(true);
}
function ctrl() {
return(true);
}
function disp() {
if (m_isUpdate) {
var _local2;
switch (m_type) {
case "W" :
m_mc.gotoAndStop(1);
break;
case "I" :
m_mc.gotoAndStop(2);
break;
case "P" :
m_mc.gotoAndStop(3);
}
_local2 = m_count;
if (_local2 > m_mc.Human._totalFrames) {
_local2 = m_mc.human._totalFrames;
}
if (_local2 < 1) {
_local2 = 1;
}
m_mc.Human.gotoAndStop(_local2);
m_mc._x = POS_X + ((MOVE_X * m_rate) / 4096);
m_mc._visible = true;
m_isUpdate = false;
}
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
function setType(type) {
m_type = type;
m_isUpdate = true;
}
function setAnimeCount(count) {
m_count = count;
m_isUpdate = true;
}
function isImpactEnd() {
var _local2 = 1;
switch (m_type) {
case "W" :
_local2 = 18;
break;
case "I" :
_local2 = 18;
break;
case "P" :
_local2 = 24;
}
return(m_count > _local2);
}
function isSoundTime() {
var _local2 = 0;
switch (m_type) {
case "W" :
_local2 = 16;
break;
case "I" :
_local2 = 16;
break;
case "P" :
_local2 = 23;
}
return(m_count == _local2);
}
function setPosition(rate) {
m_rate = rate;
m_isUpdate = true;
}
static var POS_X = 142;
static var POS_Y = 288;
static var MOVE_X = 280;
}
Symbol 623 MovieClip [__Packages.app.enemy.Billboard] Frame 0
class app.enemy.Billboard extends app.enemy.Enemy
{
var m_mc, m_rate, m_isUpdate, m_wl, m_context;
function Billboard (context, parentMC) {
super(context);
m_mc = util.MovieClipFactory.createOnMc(parentMC, "BillboardMC", "Billboard");
m_mc._x = POS_X;
m_mc._y = POS_Y;
m_mc.gotoAndStop(1);
m_mc._visible = false;
m_rate = 4096;
m_isUpdate = false;
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function move() {
return(true);
}
function ctrl() {
return(true);
}
function disp() {
if (m_isUpdate) {
m_mc._x = POS_X + ((m_rate * MOVE_X) / 4096);
m_mc._visible = true;
m_isUpdate = false;
}
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
function setPosition(rate) {
m_rate = rate;
m_isUpdate = true;
}
static var POS_X = 142;
static var POS_Y = 248;
static var MOVE_X = 280;
}
Symbol 624 MovieClip [__Packages.app.enemy.TextWindow] Frame 0
class app.enemy.TextWindow extends app.enemy.Enemy
{
var m_wl, m_context, m_count, m_x, m_y, m_visible, m_mc;
function TextWindow (context) {
super(context);
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
m_count = 0;
m_x = START_X;
m_y = START_Y;
m_visible = true;
}
function move() {
m_count = m_count + app.sys.SysInfo.getRate();
if (m_count < IN_TIME) {
m_y = START_Y + (Math.sin(((Math.PI/2) * m_count) / IN_TIME) * MOVE_Y);
} else if (m_count < (IN_TIME + DISP_TIME)) {
m_y = START_Y + MOVE_Y;
} else if (m_count < ((IN_TIME + DISP_TIME) + OUT_TIME)) {
m_y = (START_Y + MOVE_Y) + ((1 - Math.cos(((Math.PI/2) * ((m_count - IN_TIME) - DISP_TIME)) / OUT_TIME)) * MOVE_Y);
} else {
m_visible = false;
}
return(true);
}
function disp() {
m_mc._x = m_x;
m_mc._y = m_y;
m_mc._visible = m_visible;
}
function destroy() {
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
function isEnd() {
return(!m_visible);
}
static var START_X = 405;
static var START_Y = -30;
static var MOVE_Y = 185;
static var IN_TIME = 500;
static var DISP_TIME = 2000;
static var OUT_TIME = 500;
}
Symbol 625 MovieClip [__Packages.app.enemy.HoleWindow] Frame 0
class app.enemy.HoleWindow extends app.enemy.TextWindow
{
var m_mc;
function HoleWindow (context, parentMC, hole, yard, par) {
super(context);
m_mc = util.MovieClipFactory.createOnMc(parentMC, "HoleWindowMC", "HoleWindow");
m_mc.gotoAndStop(1);
m_mc._visible = false;
m_mc.Hole.text = hole;
m_mc.Yard.text = yard;
m_mc.Par.text = par;
}
function destroy() {
super.destroy();
}
}
Symbol 626 MovieClip [__Packages.app.enemy.ShotWindow] Frame 0
class app.enemy.ShotWindow extends app.enemy.TextWindow
{
var m_mc;
function ShotWindow (context, parentMC, shot) {
super(context);
m_mc = util.MovieClipFactory.createOnMc(parentMC, "ShotWindowMC", "ShotWindow");
m_mc.gotoAndStop(1);
m_mc._visible = false;
m_mc.Shot.text = shot;
}
function destroy() {
super.destroy();
}
}
Symbol 627 MovieClip [__Packages.app.enemy.ResultWindow] Frame 0
class app.enemy.ResultWindow extends app.enemy.TextWindow
{
var m_mc, m_visible;
function ResultWindow (context, parentMC, result) {
super(context);
m_mc = util.MovieClipFactory.createOnMc(parentMC, "ResultWindowMC", "ResultWindow");
var _local3;
switch (result) {
case "FAIRWAY" :
_local3 = 1;
break;
case "ROUGH" :
_local3 = 2;
break;
case "BANKER" :
_local3 = 3;
break;
case "WATERHAZARD" :
_local3 = 4;
break;
case "OB" :
_local3 = 5;
break;
case "GREEN" :
_local3 = 6;
break;
default :
_local3 = 0;
}
if (_local3 > 0) {
m_mc.gotoAndStop(_local3);
} else {
m_visible = false;
m_mc._visible = false;
}
}
function destroy() {
super.destroy();
}
}
Symbol 628 MovieClip [__Packages.app.enemy.HoleOutWindow] Frame 0
class app.enemy.HoleOutWindow extends app.enemy.TextWindow
{
var m_mc;
function HoleOutWindow (context, parentMC, shot, par, isGiveUp) {
super(context);
m_mc = util.MovieClipFactory.createOnMc(parentMC, "HoleOutWindowMC", "HoleOutWindow");
var _local3;
if (shot == 1) {
_local3 = 1;
} else if (isGiveUp) {
_local3 = 10;
} else if ((shot - par) == -3) {
_local3 = 2;
} else if ((shot - par) == -2) {
_local3 = 3;
} else if ((shot - par) == -1) {
_local3 = 4;
} else if ((shot - par) == 0) {
_local3 = 5;
} else if ((shot - par) == 1) {
_local3 = 6;
} else if ((shot - par) == 2) {
_local3 = 7;
} else if ((shot - par) == 3) {
_local3 = 8;
} else {
_local3 = -1;
}
if (_local3 > 0) {
m_mc.gotoAndStop(_local3);
} else {
m_mc.gotoAndStop(9);
if (shot > par) {
m_mc.Window.Shot.text = "+" + (shot - par);
} else {
m_mc.Window.Shot.text = "-" + (par - shot);
}
}
}
function destroy() {
super.destroy();
}
}
Symbol 629 MovieClip [__Packages.app.data.Hole] Frame 0
class app.data.Hole
{
function Hole () {
}
static function getData(hole) {
var _local1;
switch (hole) {
case 1 :
_local1 = app.data.Hole01.getData();
break;
case 2 :
_local1 = app.data.Hole02.getData();
break;
case 3 :
_local1 = app.data.Hole03.getData();
break;
case 4 :
_local1 = app.data.Hole04.getData();
break;
case 5 :
_local1 = app.data.Hole05.getData();
break;
case 6 :
_local1 = app.data.Hole06.getData();
break;
case 7 :
_local1 = app.data.Hole07.getData();
break;
case 8 :
_local1 = app.data.Hole08.getData();
break;
case 9 :
_local1 = app.data.Hole09.getData();
}
return(_local1);
}
}
Symbol 630 MovieClip [__Packages.app.data.Hole01] Frame 0
class app.data.Hole01
{
function Hole01 () {
}
static function getData() {
return(HoleData);
}
static var HoleData = {Par:4, PinX:135.1, PinY:53, TeaX:126.6, TeaY:273.1, GreenTop:[[125.3, 53.9], [143.8, 54.7]], Data:[{TYPE:"OK", COLOR:4690497, data:[[168.1, 0, 294.6], [110.8, 0, 294.6], [85.5, 0, 285.3], [67.5, 0, 261.7], [67.5, 0, 220], [56, 0, 198.6], [43.3, 0, 180.3], [50, 0, 147.6], [66.7, 0, 122.4], [76.5, 0, 76.8], [83.3, 0, 56], [110.1, 0, 22.9], [143.3, 0, 22.9], [164.1, 0, 33.5], [176.2, 0, 60.3], [164.1, 0, 99.8], [184, 0, 140.4], [184, 0, 206.3]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[149.9, 0, 286.4], [102.9, 0, 286.4], [81.3, 0, 258.9], [81.3, 0, 203], [96.8, 0, 160.8], [82, 0, 125.7], [91, 0, 74.1], [113.2, 0, 31.3], [139.6, 0, 29.3], [159.1, 0, 39.5], [168.3, 0, 56], [159.1, 0, 72.5], [151.9, 0, 89.5], [151.9, 0, 131.2], [131.6, 0, 157.5], [143.2, 0, 186.1], [143.2, 0, 223.3], [168.3, 0, 253.4], [159.1, 0, 278.1]]}, {TYPE:"SHOT", COLOR:10868384, data:[[136.8, 0, 279.3], [116.3, 0, 279.3], [116.3, 0, 266.1], [136.8, 0, 266.1]]}, {TYPE:"WATER", COLOR:9688550, data:[]}, {TYPE:"BANKER", COLOR:11443048, data:[[77, 0, 191.7], [61.5, 0, 183.4], [61.5, 0, 153.9], [78.5, 0, 142.3], [87.7, 0, 158.8]]}, {TYPE:"BANKER", COLOR:11443048, data:[[164.8, 0, 192.8], [147.7, 0, 183.4], [141.6, 0, 158.3], [157.1, 0, 137.9], [173.8, 0, 158.8]]}, {TYPE:"GREEN", COLOR:10868384, data:[[142.2, 0, 69.4], [127.9, 0, 69.4], [118.3, 0, 62.9], [117.1, 0, 55.3], [120.2, 0, 47.2], [127.8, 0, 44], [141.6, 0, 44], [150.3, 0, 49.4], [152.7, 0, 59.6]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[128.4, 0, 61.2], [124.7, 0, 62.3], [120.1, 0, 61.2], [119.4, 0, 54.9], [121.4, 0, 49.5], [128.7, 0, 47], [131.3, 0, 49.6]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[150.1, 0, 59.2], [144.9, 0, 61.9], [141.1, 0, 59.7], [139.2, 0, 51.5], [143.5, 0, 48], [148.6, 0, 50.9]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[125.8, 0, 59.9], [123.1, 0, 59.9], [121.8, 0, 54.7], [123.6, 0, 50.4], [128.3, 0, 48.2], [130.1, 0, 50.3], [127.8, 0, 57.8]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[147.7, 0, 58], [144.9, 0, 59.9], [142.1, 0, 58.5], [140.8, 0, 52], [143.9, 0, 49.6], [146.6, 0, 51.9]]}], Tree:[[162.8, 0, 286.8], [139.4, 0, 294.6], [110.8, 0, 294.6], [77.2, 0, 263.4], [73.1, 0, 231.3], [71.8, 0, 207], [53.3, 0, 164.6], [68.9, 0, 139.6], [79.5, 0, 94.5], [90.3, 0, 59.6], [103.2, 0, 31.4], [143.3, 0, 22.9], [176.2, 0, 60.3], [164.1, 0, 99.8], [165.8, 0, 127.5], [174.7, 0, 148.6], [154.2, 0, 204.1], [163.5, 0, 230.1]]};
}
Symbol 631 MovieClip [__Packages.app.data.Hole02] Frame 0
class app.data.Hole02
{
function Hole02 () {
}
static function getData() {
return(HoleData);
}
static var HoleData = {Par:4, PinX:111.8, PinY:80.7, TeaX:126.6, TeaY:226.6, GreenTop:[[102.7, 75.3], [120.8, 77]], Data:[{TYPE:"OK", COLOR:4690497, data:[[145.3, 0, 248.1], [96.5, 0, 248.1], [81.3, 0, 222.1], [89.2, 0, 191.2], [69.3, 0, 140.6], [69.3, 0, 95.2], [81.7, 0, 65], [108.6, 0, 46], [122.7, 0, 46], [147.4, 0, 66.7], [171.1, 0, 114.8], [162.8, 0, 154.8], [162.8, 0, 231]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[138.1, 0, 239.8], [102.9, 0, 239.8], [93.9, 0, 221.8], [104.3, 0, 195.2], [93.9, 0, 168.2], [81.5, 0, 139.6], [81.5, 0, 118.1], [97.5, 0, 118.1], [116.8, 0, 134.4], [122.3, 0, 150.7], [132.3, 0, 181.2], [149.9, 0, 211.8], [149.9, 0, 227.5]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[102, 0, 108.3], [84.2, 0, 108.3], [84.2, 0, 87.9], [90.1, 0, 66.1], [108.5, 0, 55.5], [122.2, 0, 55.5], [137.9, 0, 70], [137.9, 0, 80.2], [127.3, 0, 96.5]]}, {TYPE:"SHOT", COLOR:10868384, data:[[136.8, 0, 232.7], [116.3, 0, 232.7], [116.3, 0, 219.6], [136.8, 0, 219.6]]}, {TYPE:"WATER", COLOR:9688550, data:[]}, {TYPE:"BANKER", COLOR:11443048, data:[[151.2, 0, 159.8], [136.6, 0, 159.8], [130, 0, 144.9], [123.4, 0, 130.1], [104.1, 0, 117.6], [104.1, 0, 112.3], [132.8, 0, 102.5], [149.3, 0, 102.5], [158.2, 0, 116.4], [158.2, 0, 139.5]]}, {TYPE:"GREEN", COLOR:10868384, data:[[119.1, 0, 91.3], [104.8, 0, 91.3], [95.3, 0, 84.8], [94, 0, 77.3], [97, 0, 69.2], [104.7, 0, 66], [118.5, 0, 66], [127.2, 0, 71.3], [129.6, 0, 81.6]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[105.3, 0, 83.2], [101.6, 0, 84.2], [97, 0, 83.2], [96.3, 0, 76.8], [98.3, 0, 71.4], [105.6, 0, 68.9], [108.2, 0, 71.5], [106.9, 0, 77.3]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[121.8, 0, 83.8], [118, 0, 81.7], [116.1, 0, 73.5], [120.4, 0, 70], [125.5, 0, 72.8], [127, 0, 81.2]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[102.7, 0, 81.8], [100, 0, 81.8], [98.7, 0, 76.7], [100.5, 0, 72.3], [105.2, 0, 70.2], [107, 0, 72.3], [104.8, 0, 79.8]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[124.6, 0, 79.9], [121.8, 0, 81.8], [119, 0, 80.4], [117.7, 0, 73.9], [120.8, 0, 71.5], [123.5, 0, 73.8]]}], Tree:[[144.4, 0, 244.1], [97.8, 0, 240], [89.7, 0, 213.4], [92.8, 0, 184.4], [77.8, 0, 145.4], [76.5, 0, 115.1], [90.3, 0, 59.6], [122.2, 0, 52], [138.3, 0, 92.9], [165.8, 0, 127.5], [141.3, 0, 172.9], [151.5, 0, 193.2], [155.1, 0, 221.6]]};
}
Symbol 632 MovieClip [__Packages.app.data.Hole03] Frame 0
class app.data.Hole03
{
function Hole03 () {
}
static function getData() {
return(HoleData);
}
static var HoleData = {Par:4, PinX:69, PinY:72, TeaX:115.7, TeaY:244.3, GreenTop:[[75.3, 60.7], [84.8, 76]], Data:[{TYPE:"OK", COLOR:4690497, data:[[137.7, 0, 265.4], [94.6, 0, 265.4], [65.3, 0, 235.8], [65.3, 0, 200.6], [79.8, 0, 169.4], [67, 0, 151.1], [67, 0, 122.8], [45, 0, 96], [52.3, 0, 40.5], [90.6, 0, 31.1], [161.8, 0, 39.9], [183, 0, 54], [207.8, 0, 111.2], [207.8, 0, 146.9], [193.7, 0, 166.9], [174.7, 0, 183.8], [164.5, 0, 244.8]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[131.7, 0, 257.2], [98.8, 0, 257.2], [79.8, 0, 229.7], [79.8, 0, 211.8], [100.3, 0, 186.9], [126.4, 0, 173.3], [137.2, 0, 159.8], [148.1, 0, 128.1], [141.8, 0, 98.8], [111.8, 0, 74.3], [95, 0, 92.5], [69, 0, 92.5], [53, 0, 88], [58, 0, 53], [85.3, 0, 45.4], [121.8, 0, 58], [162.7, 0, 88.5], [168.3, 0, 127.7], [158.3, 0, 154.5], [158.3, 0, 178.1], [151.8, 0, 204.8], [151.8, 0, 238.2]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[106.9, 0, 168.2], [87.8, 0, 162.3], [78, 0, 145.2], [76.6, 0, 112.9], [92.8, 0, 102.6], [112.3, 0, 123.2], [123, 0, 152.5]]}, {TYPE:"SHOT", COLOR:10868384, data:[[125.8, 0, 250.5], [105.4, 0, 250.5], [105.5, 0, 237.3], [125.8, 0, 237.3]]}, {TYPE:"WATER", COLOR:9688550, data:[]}, {TYPE:"BANKER", COLOR:11443048, data:[[183.8, 0, 160.5], [167.9, 0, 151.9], [176.2, 0, 118.2], [165.4, 0, 81], [129.7, 0, 52.6], [146.6, 0, 43.5], [177.1, 0, 59.5], [198.6, 0, 113.3], [198.6, 0, 140.1]]}, {TYPE:"BANKER", COLOR:11443048, data:[[128.8, 0, 134.1], [121.1, 0, 114.2], [99.5, 0, 97.2], [111.5, 0, 84.6], [135.9, 0, 102.5], [140.9, 0, 126.1]]}, {TYPE:"GREEN", COLOR:10868384, data:[[90.5, 0, 85], [74.2, 0, 86.4], [64, 0, 76.3], [63.3, 0, 63.6], [69.3, 0, 55.8], [78.8, 0, 50.6], [87.1, 0, 53], [96.8, 0, 62.8], [98.1, 0, 73.9]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[72, 0, 69.2], [68.3, 0, 67.5], [66, 0, 63.3], [71.3, 0, 57], [77.7, 0, 53.5], [86.5, 0, 56.3], [84.8, 0, 60.6]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[89, 0, 82.7], [76, 0, 84], [72.3, 0, 76.3], [88.3, 0, 68], [94.6, 0, 67.8], [95.5, 0, 74]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[74.6, 0, 65.7], [71.2, 0, 66.1], [69.3, 0, 64.2], [73.2, 0, 58.5], [78.3, 0, 55.9], [83.7, 0, 57.3], [82.6, 0, 59.9]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[88.5, 0, 80.8], [77.2, 0, 82], [75.3, 0, 76.5], [89.1, 0, 69.5], [93.4, 0, 69.5], [93.3, 0, 73.5]]}], Tree:[[136.8, 0, 266.4], [94.6, 0, 265.4], [73.1, 0, 234.3], [82.7, 0, 192.3], [124.4, 0, 166.3], [67, 0, 151.1], [114.4, 0, 117.1], [68.9, 0, 108.8], [45, 0, 96], [61.5, 0, 45.5], [125.7, 0, 42.6], [161.8, 0, 39.9], [195.4, 0, 82.6], [204, 0, 113.1], [207.2, 0, 149.1], [167.8, 0, 180.6], [163.5, 0, 230.1]]};
}
Symbol 633 MovieClip [__Packages.app.data.Hole04] Frame 0
class app.data.Hole04
{
function Hole04 () {
}
static function getData() {
return(HoleData);
}
static var HoleData = {Par:5, PinX:180, PinY:40, TeaX:170, TeaY:260, GreenTop:[[177.3, 42.4]], Data:[{TYPE:"OK", COLOR:4690497, data:[[220.8, 0, 281.6], [110.8, 0, 281.6], [83.3, 0, 289.8], [46.6, 0, 265.1], [9.9, 0, 248.7], [28.3, 0, 215.8], [9.9, 0, 191.1], [14.7, 0, 157.9], [9.9, 0, 133.4], [28.3, 0, 108.8], [37.5, 0, 75.8], [55.2, 0, 67.4], [119.4, 0, 18.1], [174.4, 0, 9.8], [230, 0, 34.8], [211.7, 0, 67.7], [156.6, 0, 92.3], [165.8, 0, 141.7], [188.6, 0, 174.6], [170.2, 0, 215.8], [220.8, 0, 223.9]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[193.3, 0, 273.4], [129.1, 0, 273.4], [120, 0, 265.1], [74.1, 0, 240.4], [46.6, 0, 207.5], [37.5, 0, 166.3], [65, 0, 125.3], [92.5, 0, 100.6], [83.3, 0, 67.7], [156.6, 0, 18.3], [202.4, 0, 26.5], [211.7, 0, 43], [202.4, 0, 59.4], [174.9, 0, 67.7], [138.3, 0, 59.4], [110.8, 0, 84.1], [110.8, 0, 117], [101.6, 0, 149.9], [110.8, 0, 174.6], [110.8, 0, 215.8], [129.1, 0, 232.2], [156.6, 0, 223.9], [193.3, 0, 223.9], [211.7, 0, 240.4], [202.4, 0, 265.1]]}, {TYPE:"SHOT", COLOR:10868384, data:[[180.2, 0, 266.2], [159.7, 0, 266.2], [159.8, 0, 253.1], [180.2, 0, 253.1]]}, {TYPE:"WATER", COLOR:9688550, data:[[159.3, 0, 127.8], [150.1, 0, 133.4], [138.3, 0, 133.4], [125.3, 0, 109], [125.3, 0, 92.3], [135.3, 0, 79.5], [149.8, 0, 75.8], [156.6, 0, 84.1], [150.1, 0, 89.6], [152.4, 0, 108.8]]}, {TYPE:"BANKER", COLOR:11443048, data:[[65, 0, 108.8], [46.6, 0, 117], [46.6, 0, 100.6], [55.8, 0, 84.1], [74.1, 0, 75.8], [83.3, 0, 92.3]]}, {TYPE:"BANKER", COLOR:11443048, data:[[170.2, 0, 199.8], [138.3, 0, 207.5], [129.1, 0, 191.1], [120, 0, 158.2], [129.1, 0, 141.7], [147.4, 0, 141.7], [174.9, 0, 174.6]]}, {TYPE:"GREEN", COLOR:10868384, data:[[185.6, 0, 56.4], [171.3, 0, 56.4], [161.8, 0, 49.9], [160.5, 0, 42.3], [163.6, 0, 34.1], [170.7, 0, 30.9], [184.9, 0, 30.9], [193.7, 0, 36.4], [196.1, 0, 46.6]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[185.3, 0, 53.4], [171.6, 0, 53.4], [163.5, 0, 48.1], [162.7, 0, 42.3], [164.8, 0, 36.4], [170.8, 0, 33.5], [185.3, 0, 33.5], [191.9, 0, 37.9], [193.5, 0, 46.1]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[184.6, 0, 51.2], [172.9, 0, 51.2], [166.4, 0, 46.9], [165.2, 0, 41.6], [166.9, 0, 37.3], [171.7, 0, 35.1], [184.3, 0, 35.1], [190, 0, 38.9], [191.1, 0, 44.9]]}], Tree:[[220.8, 0, 281.6], [200, 0, 281.6], [140, 0, 281.6], [110.8, 0, 281.6], [83.3, 0, 289.8], [46.6, 0, 265.1], [9.9, 0, 248.7], [9.9, 0, 191.1], [9.9, 0, 133.4], [28.3, 0, 108.8], [37.5, 0, 75.8], [55.2, 0, 67.4], [83.3, 0, 43], [110, 0, 24.5], [230, 0, 34.8], [211.7, 0, 67.7], [156.6, 0, 92.3], [165.8, 0, 141.7], [120, 0, 140], [130, 0, 210], [170.2, 0, 215.8], [188.6, 0, 174.6], [220.8, 0, 223.9]]};
}
Symbol 634 MovieClip [__Packages.app.data.Hole05] Frame 0
class app.data.Hole05
{
function Hole05 () {
}
static function getData() {
return(HoleData);
}
static var HoleData = {Par:4, PinX:94.8, PinY:68.5, TeaX:121.7, TeaY:244.6, GreenTop:[[86.3, 62.1]], Data:[{TYPE:"OK", COLOR:4690497, data:[[146.6, 0, 266.1], [94.1, 0, 266.1], [60.1, 0, 207.2], [69, 0, 148.5], [49.9, 0, 128.9], [44, 0, 85.7], [71.6, 0, 46.8], [99.2, 0, 34.9], [147.3, 0, 34.9], [177.3, 0, 55.3], [198.5, 0, 108.5], [198.5, 0, 159.9], [185.1, 0, 228.2], [168.1, 0, 254.5]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[144.9, 0, 257.9], [104.6, 0, 257.9], [82.7, 0, 226.5], [77, 0, 194.7], [77, 0, 146.2], [93.3, 0, 115.8], [116.5, 0, 115.8], [135, 0, 142.1], [135, 0, 169.6], [162.9, 0, 191], [171.4, 0, 205.5], [171.4, 0, 223.6], [154.1, 0, 249.7]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[166.1, 0, 119], [144.3, 0, 119], [130.3, 0, 112.4], [120, 0, 94.3], [90.1, 0, 88.5], [69.8, 0, 96.5], [62.2, 0, 79.4], [76, 0, 51.5], [103.3, 0, 42.1], [147.7, 0, 42.1], [166.6, 0, 60.6], [172.3, 0, 99.8]]}, {TYPE:"SHOT", COLOR:10868384, data:[[131.8, 0, 250.8], [111.3, 0, 250.8], [111.4, 0, 237.6], [131.8, 0, 237.6]]}, {TYPE:"WATER", COLOR:9688550, data:[[124.3, 0, 111], [90.5, 0, 111], [75, 0, 138.6], [63.5, 0, 127], [71.8, 0, 102.1], [90, 0, 91.9], [115.6, 0, 97.3]]}, {TYPE:"BANKER", COLOR:11443048, data:[[180.4, 0, 178.1], [158.4, 0, 178.1], [144.5, 0, 160.6], [144.5, 0, 133], [163.8, 0, 126.3], [188.8, 0, 158.1]]}, {TYPE:"GREEN", COLOR:10868384, data:[[110.2, 0, 73.3], [97.8, 0, 80.5], [83.8, 0, 82.5], [75.8, 0, 80.3], [71, 0, 68.5], [76, 0, 59.3], [87, 0, 55], [104.3, 0, 55], [113.6, 0, 62.2]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[85, 0, 69.3], [78.4, 0, 70.4], [73.8, 0, 68.1], [77.5, 0, 61], [87.3, 0, 56.8], [97.5, 0, 56.8], [100.2, 0, 60.9], [92, 0, 65]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[85.4, 0, 67.5], [79, 0, 69.3], [76.2, 0, 67.5], [78.3, 0, 61.9], [87.5, 0, 58.2], [97, 0, 58.2], [98.3, 0, 61], [91.4, 0, 63.5]]}], Tree:[[151.6, 0, 263.4], [94.3, 0, 254.9], [68.8, 0, 203.8], [71.6, 0, 171.3], [56.8, 0, 128.4], [57.9, 0, 96.5], [61.8, 0, 63.6], [89.5, 0, 41.8], [133.1, 0, 39.4], [173.3, 0, 73.8], [182.6, 0, 110.4], [185.5, 0, 139.8], [136.3, 0, 134.3], [173.3, 0, 192.8], [177.9, 0, 228.7]]};
}
Symbol 635 MovieClip [__Packages.app.data.Hole06] Frame 0
class app.data.Hole06
{
function Hole06 () {
}
static function getData() {
return(HoleData);
}
static var HoleData = {Par:4, PinX:99, PinY:82.7, TeaX:121.7, TeaY:226.6, GreenTop:[[116.2, 80.3]], Data:[{TYPE:"OK", COLOR:4690497, data:[[153.1, 0, 248.1], [94.1, 0, 248.1], [74, 0, 211.1], [51.9, 0, 117.4], [57.3, 0, 84.7], [108.8, 0, 49.5], [152.7, 0, 58.5], [186.1, 0, 98.4], [195.1, 0, 140.4], [185.1, 0, 210.2], [168.1, 0, 236.5]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[135.6, 0, 239.9], [104.6, 0, 239.9], [98, 0, 211], [102.1, 0, 198.3], [93.3, 0, 177.7], [72.2, 0, 166.9], [58.9, 0, 119.9], [67.8, 0, 114.5], [84.5, 0, 128.3], [91.2, 0, 149.2], [108.6, 0, 149.2], [130.1, 0, 178.4], [138.3, 0, 205.6], [138.3, 0, 226.5]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[126.4, 0, 131.4], [110.1, 0, 115.3], [104, 0, 101.1], [84.7, 0, 91.3], [84.7, 0, 75.3], [109.2, 0, 58.7], [150.1, 0, 67.1], [163.6, 0, 86.8], [159.5, 0, 102.9], [135.9, 0, 113.4]]}, {TYPE:"SHOT", COLOR:10868384, data:[[131.8, 0, 232.8], [111.3, 0, 232.8], [111.4, 0, 219.6], [131.8, 0, 219.6]]}, {TYPE:"WATER", COLOR:9688550, data:[[153.3, 0, 229.7], [143.4, 0, 224.3], [143.4, 0, 199.5], [135.5, 0, 175.8], [110.3, 0, 145.2], [94.8, 0, 145.2], [89.3, 0, 124.9], [73.5, 0, 114], [78.8, 0, 97.9], [98.4, 0, 103.6], [104.2, 0, 121.8], [121.4, 0, 134.4], [141.9, 0, 159.9], [172.1, 0, 174.8], [172.1, 0, 195.6], [166.2, 0, 214.3]]}, {TYPE:"BANKER", COLOR:11443048, data:[[173.3, 0, 167.9], [144.5, 0, 154.9], [130.5, 0, 135.7], [138.8, 0, 117.4], [163.8, 0, 108.3], [188.8, 0, 140.1], [180.4, 0, 160.1]]}, {TYPE:"GREEN", COLOR:10868384, data:[[132.9, 0, 96.7], [105.9, 0, 99.3], [87.8, 0, 89.3], [87.8, 0, 76.4], [109.5, 0, 61.1], [148.7, 0, 68.6], [150.8, 0, 78.8], [145.3, 0, 89.5]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[131.4, 0, 94.7], [106.9, 0, 96.8], [91, 0, 88], [91, 0, 77.2], [110, 0, 64], [145.3, 0, 71], [147.3, 0, 78], [142.8, 0, 86.9]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[130.1, 0, 92], [108.3, 0, 93.7], [93.1, 0, 86.9], [93.1, 0, 77.7], [110.3, 0, 66.3], [143.3, 0, 72.2], [144.3, 0, 78], [141.2, 0, 85.7]]}], Tree:[[143.6, 0, 233.6], [98.5, 0, 242.1], [87.8, 0, 193.8], [63.6, 0, 150.2], [64.5, 0, 103.8], [77, 0, 75.7], [108.9, 0, 54.2], [150.8, 0, 62.3], [168.3, 0, 105.2], [185.5, 0, 128], [180.2, 0, 178.2], [173.1, 0, 215.8]]};
}
Symbol 636 MovieClip [__Packages.app.data.Hole07] Frame 0
class app.data.Hole07
{
function Hole07 () {
}
static function getData() {
return(HoleData);
}
static var HoleData = {Par:3, PinX:99, PinY:128.9, TeaX:121.7, TeaY:190.4, GreenTop:[[104.2, 128.3]], Data:[{TYPE:"OK", COLOR:4690497, data:[[153.1, 0, 211.9], [94.1, 0, 211.9], [58.5, 0, 181.2], [49.7, 0, 127.8], [60.3, 0, 103.5], [75.3, 0, 91.6], [97.6, 0, 81.4], [139, 0, 81.4], [164.3, 0, 89.1], [181.8, 0, 106.1], [188.8, 0, 142.5], [185.1, 0, 174], [168.1, 0, 200.3]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[135.6, 0, 203.8], [104.6, 0, 203.8], [98.8, 0, 194.3], [105.5, 0, 176.8], [112.6, 0, 172], [133.1, 0, 172], [141.3, 0, 196.8]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[169.8, 0, 166.8], [158.6, 0, 155.5], [141.7, 0, 149.9], [97.3, 0, 156.2], [87.5, 0, 149.4], [83.7, 0, 141.3], [83.7, 0, 130.4], [90, 0, 119.4], [119.7, 0, 117], [129, 0, 131.8], [151.3, 0, 134.3], [169.7, 0, 145.8], [177.2, 0, 160.5]]}, {TYPE:"SHOT", COLOR:10868384, data:[[131.8, 0, 196.6], [111.3, 0, 196.6], [111.4, 0, 183.4], [131.8, 0, 183.4]]}, {TYPE:"WATER", COLOR:9688550, data:[[143.2, 0, 196], [134.3, 0, 169.8], [111.8, 0, 169.8], [103.8, 0, 174.7], [96.7, 0, 193.3], [83.8, 0, 189.9], [66.7, 0, 160.1], [62.2, 0, 141.6], [62.2, 0, 127.1], [68.7, 0, 109.6], [89, 0, 99.2], [115.2, 0, 104.6], [118.6, 0, 114.6], [89.4, 0, 117.3], [80.3, 0, 130.8], [80.3, 0, 141.6], [85.3, 0, 152.2], [96.5, 0, 159.1], [141.2, 0, 152.6], [157.3, 0, 158.1], [168.4, 0, 168.4], [162.9, 0, 184.9], [153.3, 0, 193.5]]}, {TYPE:"BANKER", COLOR:11443048, data:[[171.2, 0, 142.5], [152.4, 0, 131.7], [130.8, 0, 129.3], [121.2, 0, 115.7], [117.8, 0, 104.1], [124.5, 0, 95.3], [156.9, 0, 98.9], [174.2, 0, 109.3], [177.4, 0, 127.4]]}, {TYPE:"GREEN", COLOR:10868384, data:[[121.6, 0, 150.4], [98, 0, 153.7], [89.5, 0, 148.2], [86.5, 0, 140.7], [86.5, 0, 129.9], [91.5, 0, 121.6], [117.8, 0, 119.6], [125.2, 0, 132.2], [126.7, 0, 142.3]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[116.7, 0, 137.6], [94.8, 0, 137.6], [90.3, 0, 129.1], [93.3, 0, 123.2], [106.4, 0, 122.1], [116.3, 0, 123.2], [121.5, 0, 131.3]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[106.5, 0, 134.2], [97.3, 0, 134.2], [94, 0, 131.9], [93.1, 0, 128.4], [95.5, 0, 124.8], [106.8, 0, 123.7], [114.8, 0, 125.3], [113, 0, 131.7]]}], Tree:[[143.6, 0, 204.2], [98.5, 0, 204.5], [63.6, 0, 178.6], [58.8, 0, 121.2], [85.7, 0, 93.5], [125.3, 0, 89.8], [168.3, 0, 95.5], [179.7, 0, 147.2], [170.6, 0, 184.4]]};
}
Symbol 637 MovieClip [__Packages.app.data.Hole08] Frame 0
class app.data.Hole08
{
function Hole08 () {
}
static function getData() {
return(HoleData);
}
static var HoleData = {Par:5, PinX:172.2, PinY:69, TeaX:96, TeaY:265, GreenTop:[[164.1, 50], [171.6, 68.3]], Data:[{TYPE:"OK", COLOR:4690497, data:[[144.3, 0, 281.9], [90.8, 0, 293.9], [50.9, 0, 267.1], [50.9, 0, 223.7], [21.2, 0, 114.7], [21.2, 0, 54], [56.3, 0, 23.1], [105.3, 0, 14.8], [165.4, 0, 14.8], [189, 0, 27.4], [216.2, 0, 90.9], [221.7, 0, 173.7], [205.2, 0, 204.9], [211.8, 0, 228.9]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[128.1, 0, 273.6], [106.1, 0, 278.4], [82.8, 0, 278.4], [73.7, 0, 270.1], [73.7, 0, 256.1], [83.7, 0, 239.7], [67.8, 0, 213.8], [56.8, 0, 121.6], [78, 0, 97.8], [101.1, 0, 93], [118.3, 0, 113.4], [112.7, 0, 144.6], [94.8, 0, 174.4], [97.1, 0, 208.3], [110.8, 0, 222.3], [127.5, 0, 214.4], [137.3, 0, 189.3], [152.2, 0, 173.8], [156.7, 0, 158.7], [160.8, 0, 158.7], [160.8, 0, 183.4], [152, 0, 231.8]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[167.1, 0, 122.3], [154.6, 0, 119.8], [148.8, 0, 95.1], [155, 0, 83.7], [152.3, 0, 67], [133.7, 0, 54.9], [112, 0, 69], [73.5, 0, 75.8], [67.3, 0, 70.8], [77.1, 0, 53.5], [106.8, 0, 43.7], [123.8, 0, 28.8], [150.7, 0, 25.4], [163.4, 0, 29.9], [180.3, 0, 49.8], [185.9, 0, 80], [171.8, 0, 100.8]]}, {TYPE:"SHOT", COLOR:10868384, data:[[106.2, 0, 271.2], [85.7, 0, 271.2], [85.8, 0, 258.1], [106.2, 0, 258.1]]}, {TYPE:"WATER", COLOR:9688550, data:[[124.8, 0, 143.2], [118.2, 0, 143.2], [124, 0, 112.3], [103.4, 0, 88.3], [74.5, 0, 93.2], [54.6, 0, 113.8], [38, 0, 122.8], [27.8, 0, 112.6], [27.8, 0, 77.5], [43.5, 0, 48.5], [75, 0, 26.6], [106.4, 0, 20.5], [117.3, 0, 26.1], [102.7, 0, 38.9], [71.7, 0, 49.7], [59, 0, 71.2], [72.3, 0, 81.1], [108.1, 0, 74.3], [127.3, 0, 80.3], [142.5, 0, 95.6], [147.2, 0, 116.2]]}, {TYPE:"BANKER", COLOR:11443048, data:[[193.8, 0, 197.7], [181.3, 0, 203.1], [167.8, 0, 181.1], [167.8, 0, 149.7], [152.4, 0, 154.8], [145.6, 0, 170.7], [133.4, 0, 183.7], [124.2, 0, 210.3], [111.2, 0, 216.3], [102.1, 0, 205.5], [99.8, 0, 175.9], [115.7, 0, 150.9], [127.3, 0, 150.9], [141.8, 0, 128], [150.7, 0, 123.3], [167.8, 0, 129.2], [174.4, 0, 122.7], [176.7, 0, 102.9], [193.9, 0, 83], [204.6, 0, 88.2], [209.7, 0, 110], [204.7, 0, 173.2]]}, {TYPE:"GREEN", COLOR:10868384, data:[[181.9, 0, 78.7], [172.8, 0, 81.3], [162.2, 0, 76.4], [159.9, 0, 64.2], [152.3, 0, 55.1], [154.1, 0, 47], [160.2, 0, 40.3], [171.7, 0, 43.8], [177.4, 0, 50.9]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[170, 0, 56], [161.1, 0, 57.7], [158.1, 0, 53.4], [158.1, 0, 46.6], [161.6, 0, 43.1], [170, 0, 45.5], [173.5, 0, 52.3]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[179.6, 0, 76.3], [172.4, 0, 78.4], [166.8, 0, 73.5], [164.8, 0, 61.8], [171.1, 0, 59], [177.6, 0, 63.4]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[168.8, 0, 54.4], [162.2, 0, 55.9], [159.8, 0, 52.1], [159.8, 0, 47.3], [162.4, 0, 45.1], [169.4, 0, 47.1], [170.9, 0, 51.4]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[177.3, 0, 74.5], [173.1, 0, 76.1], [168.7, 0, 72.2], [167.2, 0, 63.5], [171.2, 0, 61.6], [174.8, 0, 63.5]]}], Tree:[[120.3, 0, 281.9], [65.5, 0, 270.4], [49.5, 0, 193.3], [50.5, 0, 136.5], [28.6, 0, 65], [47.6, 0, 39.3], [101, 0, 29.5], [137.2, 0, 21.1], [179.7, 0, 31.9], [193.3, 0, 72.7], [117.7, 0, 146.3], [121, 0, 215], [166.2, 0, 203.3], [213.7, 0, 162.4], [198.6, 0, 231.1], [165.9, 0, 244.4]]};
}
Symbol 638 MovieClip [__Packages.app.data.Hole09] Frame 0
class app.data.Hole09
{
function Hole09 () {
}
static function getData() {
return(HoleData);
}
static var HoleData = {Par:5, PinX:158, PinY:49.5, TeaX:103.2, TeaY:261.1, GreenTop:[[151.5, 50.3], [148.2, 65.2]], Data:[{TYPE:"OK", COLOR:4690497, data:[[178.1, 0, 282.6], [129.4, 0, 290.1], [71, 0, 282.6], [45, 0, 250], [30.5, 0, 208], [30.5, 0, 158.4], [48.9, 0, 126.3], [55.2, 0, 67.8], [71.4, 0, 41.9], [120.1, 0, 10.9], [153.3, 0, 10.9], [174.1, 0, 21.6], [193, 0, 60.3], [186.2, 0, 81], [213.7, 0, 199.5]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[127.2, 0, 280.3], [79.5, 0, 274.4], [58, 0, 246.9], [58, 0, 191], [75.5, 0, 168.9], [100.9, 0, 161.3], [119.8, 0, 174.1], [119.8, 0, 211.3], [141.9, 0, 241.4]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[118.8, 0, 135.3], [97.8, 0, 140.7], [81.7, 0, 116.1], [67.2, 0, 109.2], [67.2, 0, 98.2], [75.7, 0, 82.3], [89.6, 0, 82.3], [96.9, 0, 102.3], [119, 0, 110.9], [122.3, 0, 125.1]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[163.6, 0, 85.7], [135.7, 0, 85.7], [124.2, 0, 70.3], [117.6, 0, 40.8], [106.6, 0, 33], [110.3, 0, 24.1], [122.2, 0, 15.9], [152.2, 0, 15.9], [169.2, 0, 26.7], [182.1, 0, 59.9], [176.8, 0, 75.9]]}, {TYPE:"FAREWAY", COLOR:7979124, data:[[175.8, 0, 209.8], [162.2, 0, 204.8], [150.7, 0, 158.9], [128.2, 0, 137.9], [132.5, 0, 124.8], [130, 0, 108.7], [143.2, 0, 92.8], [164.2, 0, 92.8], [176.6, 0, 109.7], [187.3, 0, 165.8], [181.3, 0, 197.7]]}, {TYPE:"SHOT", COLOR:10868384, data:[[113.3, 0, 267.3], [92.9, 0, 267.3], [93, 0, 254.1], [113.3, 0, 254.1]]}, {TYPE:"WATER", COLOR:9688550, data:[[175, 0, 274.4], [151.1, 0, 274.4], [143.3, 0, 264.6], [151.5, 0, 240.1], [129.6, 0, 209.7], [129.6, 0, 173.1], [102, 0, 153.6], [102, 0, 146.6], [121.5, 0, 141], [144, 0, 163], [156.5, 0, 209.5], [175.8, 0, 217.4], [189.2, 0, 238.1]]}, {TYPE:"BANKER", COLOR:11443048, data:[[93.5, 0, 158.7], [71.5, 0, 165.5], [55.6, 0, 147], [64.3, 0, 117], [78.4, 0, 124.1], [93.5, 0, 143.5]]}, {TYPE:"BANKER", COLOR:11443048, data:[[122.6, 0, 105.4], [103.9, 0, 97.9], [94.7, 0, 78.2], [75, 0, 78.2], [68.5, 0, 67.7], [76.8, 0, 48.4], [100.7, 0, 36.7], [112.1, 0, 45.6], [117, 0, 70.3], [131.2, 0, 92]]}, {TYPE:"GREEN", COLOR:10868384, data:[[154.9, 0, 73.6], [140.3, 0, 71.2], [132.7, 0, 62.5], [132.7, 0, 48.6], [137.2, 0, 41], [149.4, 0, 36.3], [159.5, 0, 39.3], [168.8, 0, 48.8], [168.8, 0, 63.1]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[156.9, 0, 59.8], [140, 0, 56.5], [136.8, 0, 49.5], [140.3, 0, 42.3], [148.1, 0, 40.3], [157.1, 0, 42.3], [165.7, 0, 48.2], [165.7, 0, 56.9]]}, {TYPE:"GREEN_1", COLOR:11196583, data:[[154.3, 0, 71], [142.4, 0, 69.5], [138.3, 0, 64.4], [143.4, 0, 60], [154.9, 0, 62], [158.1, 0, 65.8]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[156.9, 0, 58], [141.8, 0, 54.8], [138.6, 0, 49.2], [141.7, 0, 44.5], [147.8, 0, 42.7], [156.2, 0, 44.3], [163.5, 0, 48.4], [163.5, 0, 55.3]]}, {TYPE:"GREEN_2", COLOR:12706494, data:[[152.5, 0, 68.6], [143.8, 0, 67.5], [140.6, 0, 64.8], [143.9, 0, 61.7], [153.2, 0, 63], [155.3, 0, 65.8]]}], Tree:[[162.8, 0, 280.9], [119.7, 0, 284.4], [68.1, 0, 269.9], [45.5, 0, 219.9], [45.8, 0, 166.3], [59, 0, 106.2], [67.7, 0, 59.6], [103.2, 0, 31.4], [170.1, 0, 23.6], [187.9, 0, 60.3], [125.8, 0, 118.3], [186.7, 0, 122.5], [196.8, 0, 176.4], [191.6, 0, 216]]};
}
Symbol 639 MovieClip [__Packages.app.flow.FlowScore] Frame 0
class app.flow.FlowScore extends app.flow.Flow implements app.sys.SceneGraphListener
{
var m_context, m_isDestroy, m_result;
function FlowScore (preFlow) {
super(app.flow.Flow.FM_SCORE, preFlow);
util.MovieClipFactory.setHighDepth(true);
app.sys.SysInfo.SceneGraph.addListener(this);
new app.enemy.Menu.ScoreMenu(m_context, this, preFlow);
}
function move(mode) {
app.sys.SysInfo.WorkList.callMove();
app.sys.SysInfo.WorkList.callCtrl();
}
function disp(mode) {
app.sys.SysInfo.WorkList.callDisp();
}
function destroy() {
app.sys.SysInfo.SceneGraph.removeListener(this);
app.sys.SysInfo.WorkList.callDestroyByAttr(m_context.getAttr());
m_isDestroy = true;
}
function onSceneGraphEvent(eventID, param) {
if (eventID == app.sys.SceneGraph.EID_FLOW_NEXT) {
m_result = eventID;
}
}
}
Symbol 640 MovieClip [__Packages.app.enemy.Menu.ScoreMenu] Frame 0
class app.enemy.Menu.ScoreMenu extends app.enemy.Enemy
{
var m_mcMenu, m_context, m_checkMouseClick, m_checkMouseMove, m_mode, m_curMenuIdx, m_scoreMenuIdx, m_nextMenuIdx, m_wl, m_btnMcList, m_mcCursor;
function ScoreMenu (context, nowFlow, preFlow) {
super(context);
m_mcMenu = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "ScoreMenuMC", "ScoreMenu", m_context.getBase());
m_mcMenu._x = app.sys.Screen.WIDTH / 2;
m_mcMenu._y = app.sys.Screen.HEIGHT / 2;
m_mcMenu.gotoAndStop(1);
m_mcMenu._visible = true;
var _local7 = m_mcMenu.ResultWindow;
var _local8 = 0;
var _local9 = 0;
var _local4;
var _local6;
var _local5;
var _local3;
_local5 = 0;
while (_local5 < MAX_HOLE) {
_local3 = "Par0" + (_local5 + 1);
_local4 = app.sys.SysInfo.getPar(_local5);
if (_local4 == -1) {
_local7[_local3].text = "";
} else {
_local7[_local3].text = _local4;
_local9 = _local9 + _local4;
}
_local3 = "Score0" + (_local5 + 1);
_local6 = app.sys.SysInfo.getScore(_local5);
if (_local6 == -1) {
_local7[_local3].text = "";
} else {
if (_local6 == _local4) {
_local7[_local3].text = "0";
} else if (_local6 < _local4) {
_local7[_local3].text = "-" + (_local4 - _local6);
} else {
_local7[_local3].text = "+" + (_local6 - _local4);
}
_local8 = _local8 + _local6;
}
_local5++;
}
if (_local8 == _local9) {
_local7.ScoreTotal.text = "0";
} else if (_local8 < _local9) {
_local7.ScoreTotal.text = "-" + (_local9 - _local8);
} else {
_local7.ScoreTotal.text = "+" + (_local8 - _local9);
}
initCursor();
m_checkMouseClick = false;
m_checkMouseMove = false;
m_mode = MODE_SCORE_MENU_INIT;
if (app.sys.SysInfo.isLastCourse()) {
m_curMenuIdx = MENU_RESULT;
m_scoreMenuIdx = SCORERESULT_TITLE;
m_nextMenuIdx = -1;
} else {
m_curMenuIdx = MENU_NEXT;
m_scoreMenuIdx = SCORE_NEXT;
m_nextMenuIdx = -1;
}
Mouse.addListener(this);
m_wl = app.sys.SysInfo.WorkList.appendWithAttr(this, m_context.getAttr());
}
function move() {
switch (m_mode) {
case MODE_SCORE_MENU_INIT :
initMenu(m_curMenuIdx);
createCursor();
m_mode = MODE_SCORE_MENU;
break;
case MODE_SCORE_MENU :
if (moveTitle()) {
switch (m_nextMenuIdx) {
case START :
m_mode = MODE_SCORE_MENU_END;
app.sys.SysInfo.SceneGraph.onEvent(app.sys.SceneGraph.EID_FLOW_NEXT, undefined);
hideCursor();
destroyCursor();
break;
case TITLE :
m_mode = MODE_SCORE_MENU_END;
app.sys.SysInfo.SceneGraph.onEvent(app.sys.SceneGraph.EID_FLOW_NEXT, undefined);
hideCursor();
destroyCursor();
}
}
break;
case MODE_SCORE_MENU_END :
}
m_checkMouseClick = false;
m_checkMouseMove = false;
moveClowd();
return(true);
}
function moveTitle() {
var _local6 = -1;
if (m_checkMouseMove || (m_checkMouseClick)) {
var _local2;
var _local5;
var _local4;
var _local3;
_local4 = m_mcMenu._xmouse;
_local3 = m_mcMenu._ymouse;
_local5 = -1;
_local2 = m_btnMcList.length - 1;
while (_local2 >= 0) {
if (hitCheck(_local2, _local4, _local3)) {
showCursor(_local4, _local3);
_local5 = _local2;
break;
}
_local2--;
}
if (_local5 != -1) {
if (m_checkMouseClick) {
_local6 = _local5;
app.sys.SysInfo.SoundManager.playSE("Menu_OK");
} else if (m_scoreMenuIdx != _local5) {
app.sys.SysInfo.SoundManager.playSE("Menu_Select");
}
m_scoreMenuIdx = _local5;
} else {
hideCursor();
}
}
if (_local6 != -1) {
if (m_curMenuIdx == MENU_NEXT) {
if (!(_local6 === SCORE_NEXT)) {
} else {
m_nextMenuIdx = START;
}
} else if (!(_local6 === SCORERESULT_TITLE)) {
} else {
m_nextMenuIdx = TITLE;
}
}
return(_local6 != -1);
}
function moveClowd() {
var _local2;
_local2 = m_mcMenu.BG;
_local2.Clowd3._x = _local2.Clowd3._x + 1;
if (_local2.Clowd3._x >= ((app.sys.Screen.WIDTH / 2) + (_local2.Clowd3._width / 2))) {
_local2.Clowd3._x = _local2.Clowd3._x - (app.sys.Screen.WIDTH + _local2.Clowd3._width);
}
_local2.Clowd2._x = _local2.Clowd2._x + 0.666666666666667;
if (_local2.Clowd2._x >= ((app.sys.Screen.WIDTH / 2) + (_local2.Clowd2._width / 2))) {
_local2.Clowd2._x = _local2.Clowd2._x - (app.sys.Screen.WIDTH + _local2.Clowd2._width);
}
_local2.Clowd1._x = _local2.Clowd1._x + 0.333333333333333;
if (_local2.Clowd1._x >= ((app.sys.Screen.WIDTH / 2) + (_local2.Clowd1._width / 2))) {
_local2.Clowd1._x = _local2.Clowd1._x - (app.sys.Screen.WIDTH + _local2.Clowd1._width);
}
}
function ctrl() {
return(true);
}
function disp() {
var _local2;
switch (m_curMenuIdx) {
case MENU_NEXT :
_local2 = m_btnMcList[m_scoreMenuIdx];
m_mcMenu.SelectBar._x = _local2._x;
m_mcMenu.SelectBar._y = _local2._y;
m_mcMenu.NextBtn._visible = true;
m_mcMenu.TitleBtn._visible = false;
m_mcMenu.RankingBtn._visible = false;
break;
case MENU_RESULT :
_local2 = m_btnMcList[m_scoreMenuIdx];
m_mcMenu.SelectBar._x = _local2._x;
m_mcMenu.SelectBar._y = _local2._y;
m_mcMenu.NextBtn._visible = false;
m_mcMenu.TitleBtn._visible = true;
m_mcMenu.RankingBtn._visible = true;
}
}
function destroy() {
Mouse.removeListener(this);
app.sys.SysInfo.WorkList.cut(m_wl);
delete m_wl;
m_mcMenu.removeMovieClip();
}
function initMenu(idx) {
var _local2;
m_btnMcList = [];
switch (idx) {
case MENU_NEXT :
_local2 = m_mcMenu;
m_btnMcList.push(_local2.NextBtn);
break;
case MENU_RESULT :
_local2 = m_mcMenu;
m_btnMcList.push(_local2.TitleBtn);
}
}
function hitCheck(btnIdx, x, y) {
var _local2 = m_btnMcList[btnIdx];
return(hitCheckMC(_local2, x, y));
}
function updateBtn(mc, rollmc, x, y) {
var _local2 = hitCheckMC(mc, x, y);
rollmc._visible = _local2;
return(_local2);
}
function hitCheckMC(mcb, x, y) {
if (((((mcb._x - (mcb._width / 2)) <= x) && ((mcb._x + (mcb._width / 2)) >= x)) && ((mcb._y - (mcb._height / 2)) <= y)) && ((mcb._y + (mcb._height / 2)) >= y)) {
return(true);
}
return(false);
}
function onMouseDown() {
m_checkMouseClick = true;
}
function onMouseMove() {
m_checkMouseMove = true;
}
function onMouseUp() {
}
function onMouseWheel() {
}
function initCursor() {
m_mcCursor = undefined;
}
function createCursor() {
if (m_mcCursor != undefined) {
destroyCursor();
}
m_mcCursor = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "CursorMC", "Cursor", m_context.getBase());
m_mcCursor._visible = false;
}
function destroyCursor() {
if (m_mcCursor != undefined) {
m_mcCursor.removeMovieClip();
m_mcCursor = undefined;
}
}
function showCursor(x, y) {
var _local2 = m_mcCursor;
_local2._x = (app.sys.Screen.WIDTH / 2) + x;
_local2._y = (app.sys.Screen.HEIGHT / 2) + y;
_local2._visible = true;
Mouse.hide();
}
function showCursor2(x, y) {
var _local2 = m_mcCursor;
_local2._x = x;
_local2._y = y;
_local2._visible = true;
Mouse.hide();
}
function hideCursor() {
var _local2 = m_mcCursor;
_local2._visible = false;
Mouse.show();
}
static var MENU_NEXT = 0;
static var MENU_RESULT = 1;
static var SCORE_NEXT = 0;
static var SCORE_MAX = 0;
static var SCORERESULT_TITLE = 0;
static var SCORERESULT_MAX = 0;
static var START = 0;
static var TITLE = 1;
static var MODE_SCORE_MENU_INIT = 0;
static var MODE_SCORE_MENU = 1;
static var MODE_SCORE_MENU_END = 2;
static var MAX_HOLE = 9;
}