Frame 1
_root.checkOK = true;
Frame 5
_root._x = 0;
_root._y = 0;
nigoro.lib.samieru.NigoroFlashManager.startSystem(_root);
_root._lockroot = true;
_root.gotoAndPlay(8);
nextFrame();
Frame 6
stop();
Frame 8
var countflag;
stop();
Frame 9
if (nigoro.lib.samieru.NigoroFlashManager.isSystemStarted()) {
if (countflag == undefined) {
countflag = 100;
game = _root.attachMovie("mainprog", "mainprog1", 1);
trace("Started");
} else {
trace("bad");
}
nextFrame();
} else {
prevFrame();
}
Frame 10
stop();
Frame 11
stop();
Symbol 6 MovieClip [Defaults] Frame 1
#initclip 26
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 7 MovieClip [UIObjectExtensions] Frame 1
#initclip 27
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 8 MovieClip [UIObject] Frame 1
#initclip 28
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 9 MovieClip [Border] Frame 1
#initclip 29
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 10 MovieClip [RectBorder] Frame 1
#initclip 30
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 13 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 14 MovieClip Frame 1
#initclip 31
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 17 MovieClip [FocusRect] Frame 1
#initclip 32
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 18 MovieClip [FocusManager] Frame 1
#initclip 33
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 19 MovieClip [UIComponentExtensions] Frame 1
#initclip 34
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 20 MovieClip [UIComponent] Frame 1
#initclip 35
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 21 MovieClip [TextInput] Frame 1
#initclip 36
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 51 MovieClip Frame 1
function onRelease() {
pause_status = !nigoro.lib.samieru.NigoroFlashManager.isPause();
if (pause_status) {
gotoAndStop ("ON");
} else {
gotoAndStop ("OFF");
}
nigoro.lib.samieru.NigoroFlashManager.setPause(pause_status);
}
function onRollOver() {
hit_area._alpha = 0;
}
function onRollOut() {
hit_area._alpha = 20;
}
var pause_status;
pause_status = nigoro.lib.samieru.NigoroFlashManager.isPause();
if (pause_status) {
gotoAndStop ("ON");
}
Symbol 51 MovieClip Frame 2
stop();
Symbol 51 MovieClip Frame 3
stop();
Symbol 53 Button
on (release) {
getURL ("http://nigoro.jp/", "_blank", "GET");
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 1
function onRollOver() {
hit_area._alpha = 0;
}
function onRollOut() {
hit_area._alpha = 20;
}
Symbol 60 MovieClip Frame 2
stop();
Symbol 60 MovieClip Frame 3
stop();
Symbol 60 MovieClip Frame 4
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 1
function onRollOver() {
hit_area._alpha = 0;
}
function onRollOut() {
hit_area._alpha = 20;
}
Symbol 65 MovieClip Frame 2
stop();
Symbol 65 MovieClip Frame 3
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
function onRollOver() {
hit_area._alpha = 0;
}
function onRollOut() {
hit_area._alpha = 20;
}
hit_area._alpha = 20;
Symbol 70 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 3
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
function onRollOver() {
hit_area._alpha = 0;
}
function onRollOut() {
hit_area._alpha = 20;
}
Symbol 77 MovieClip Frame 2
stop();
Symbol 77 MovieClip Frame 3
stop();
Symbol 77 MovieClip Frame 4
stop();
Symbol 78 MovieClip Frame 1
function onQuality() {
if ((--swf_quality) < 0) {
swf_quality = 2;
}
switch (swf_quality) {
case 0 :
nigoro.lib.samieru.NigoroFlashManager.setFlashQuality("LOW");
bar_screen.gotoAndStop("Low");
return;
case 1 :
nigoro.lib.samieru.NigoroFlashManager.setFlashQuality("MEDIUM");
bar_screen.gotoAndStop("Mid");
return;
case 2 :
nigoro.lib.samieru.NigoroFlashManager.setFlashQuality("HIGH");
bar_screen.gotoAndStop("High");
}
}
function onBgmMute() {
bgm_mute = !bgm_mute;
if (bgm_mute) {
nigoro.lib.samieru.NigoroFlashManager.setBgmMute(true);
bar_bgm.gotoAndStop("BGMOFF");
} else {
nigoro.lib.samieru.NigoroFlashManager.setBgmMute(false);
bar_bgm.gotoAndStop("BGMON");
}
}
function onVolume() {
vol_level = vol_level + vol_dir;
if ((vol_level < 0) || (vol_level > 2)) {
vol_level = 1;
vol_dir = vol_dir * -1;
}
switch (vol_level) {
case 0 :
nigoro.lib.samieru.NigoroFlashManager.setMasterVolume(30);
bar_volume.gotoAndStop("MIN");
return;
case 1 :
nigoro.lib.samieru.NigoroFlashManager.setMasterVolume(65);
bar_volume.gotoAndStop("MID");
return;
case 2 :
nigoro.lib.samieru.NigoroFlashManager.setMasterVolume(100);
bar_volume.gotoAndStop("MAX");
}
}
function onMute() {
if (nigoro.lib.samieru.NigoroFlashManager.isMute()) {
nigoro.lib.samieru.NigoroFlashManager.setMute(false);
bar_mute.gotoAndStop("MuteOFF");
} else {
nigoro.lib.samieru.NigoroFlashManager.setMute(true);
bar_mute.gotoAndStop("MuteON");
}
}
var swf_quality = 2;
var vol_level = 1;
var vol_dir = -1;
var bgm_mute = false;
Instance of Symbol 60 MovieClip "bar_screen" in Symbol 78 MovieClip Frame 1
on (release) {
_parent.onQuality();
}
Instance of Symbol 65 MovieClip "bar_mute" in Symbol 78 MovieClip Frame 1
on (release) {
_parent.onMute();
}
Instance of Symbol 70 MovieClip "bar_bgm" in Symbol 78 MovieClip Frame 1
on (release) {
_parent.onBgmMute();
}
Instance of Symbol 77 MovieClip "bar_volume" in Symbol 78 MovieClip Frame 1
on (release) {
_parent.onVolume();
}
Symbol 78 MovieClip Frame 2
onVolume();
stop();
Symbol 88 MovieClip [__Packages.nigoro.lib.samieru.NigoroFlashManager] Frame 0
class nigoro.lib.samieru.NigoroFlashManager
{
static var BGM_LAYER, GAME_LEVEL, GAME_ID, PLAYER_NAME, MASTER_VOLUME, ACCESS_STATUS, NIGORO_SESSION_ID;
function NigoroFlashManager () {
}
static function startSystem(base_mc) {
BGM_LAYER = base_mc.createEmptyMovieClip("music_layer", base_mc.getNextHighestDepth());
GAME_LEVEL = 0;
GAME_ID = "";
PLAYER_NAME = "";
SYSTEM_STARTED = true;
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback("outOfSwf", null, outOfSwf);
}
}
static function setPlayerName(namestr) {
PLAYER_NAME = namestr;
}
static function getPlayerName() {
if ((PLAYER_NAME != undefined) && (PLAYER_NAME.length > 0)) {
return(PLAYER_NAME);
}
return("");
}
static function setFlashQuality(qt) {
_quality = qt;
}
static function isSystemStarted() {
return(SYSTEM_STARTED);
}
static function getBgmLayer() {
return(BGM_LAYER);
}
static function setBgmMute(flag) {
var _local1 = new Sound(getBgmLayer());
if (flag) {
_local1.setVolume(0);
} else {
_local1.setVolume(100);
}
}
static function isMute() {
return(MUTE);
}
static function setMute(flag) {
MUTE = flag;
if (MUTE) {
MASTER_SOUND.setVolume(0);
} else {
MASTER_SOUND.setVolume(MASTER_VOLUME);
}
}
static function setMasterVolume(vol) {
if (MUTE) {
MASTER_SOUND.setVolume(0);
} else {
MASTER_SOUND.setVolume(vol);
}
MASTER_VOLUME = vol;
}
static function setSWFFlag(flag) {
OUT_OF_SWF = flag;
}
static function isPause() {
return(PAUSED);
}
static function setPause(pause_flag) {
PAUSED = pause_flag;
}
static function outOfSwf() {
setSWFFlag(true);
}
static function getGameLevel() {
return(GAME_LEVEL);
}
static function getGameID() {
return(GAME_ID);
}
static function setGameLevel(level) {
GAME_LEVEL = level;
}
static function setGameID(id) {
GAME_ID = id;
}
static function getAccessStatus() {
return(ACCESS_STATUS);
}
static function setAccessStatus(status) {
ACCESS_STATUS = status;
}
static function checkGameClear() {
var _local2 = new nigoro.lib.samieru.event.GameClearListener();
var _local1 = new LoadVars();
_local1.id = GAME_ID;
_local1.level = GAME_LEVEL;
ACCESS_STATUS = 1;
NIGORO_SESSION_ID = "";
_local1.sendAndLoad("/register/clearcheck.php", _local2, "POST");
}
static function setNigoroSession(sid) {
NIGORO_SESSION_ID = sid;
}
static function getNigoroSession() {
return(NIGORO_SESSION_ID);
}
static var MASTER_SOUND = new Sound();
static var OUT_OF_SWF = false;
static var PAUSED = false;
static var ACCESS_STATUS_OK = 0;
static var ACCESS_STATUS_RUNNING = 1;
static var ACCESS_STATUS_ERROR = 2;
static var SYSTEM_STARTED = false;
static var MUTE = false;
}
Symbol 89 MovieClip [__Packages.nigoro.lib.samieru.event.GameClearListener] Frame 0
class nigoro.lib.samieru.event.GameClearListener extends LoadVars
{
var NIGORO;
function GameClearListener () {
super();
}
function onLoad(success) {
if (success) {
if ((NIGORO != "") && (NIGORO != "ERROR")) {
nigoro.lib.samieru.NigoroFlashManager.setNigoroSession(NIGORO);
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_OK);
} else {
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_ERROR);
}
} else {
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_ERROR);
}
}
}
Symbol 1 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 2 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 3 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.126";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 22 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 23 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 24 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 25 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 26 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 27 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 28 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 29 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 30 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 31 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 32 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.126";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 33 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 34 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 35 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 36 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 37 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 38 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 39 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 40 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 41 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 127 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 141 MovieClip [4numbers] Frame 1
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 300
stop();
Symbol 173 MovieClip [scrollObj] Frame 1
stop();
Symbol 177 Button
on (press) {
_root.game.Gs.sendSystem("RankingOff", 0, 0);
}
Symbol 182 MovieClip [endroll] Frame 1065
if (_root.game.Gs.getGameLv() < 3) {
_parent.gotoAndStop("NOtestplayer");
} else {
_parent.gotoAndStop("testplayer");
}
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 215 MovieClip [gameover] Frame 60
stop();
Symbol 398 MovieClip [NigoroDefaultFont] Frame 1
stop();
Symbol 400 MovieClip [damage] Frame 26
stop();
Symbol 406 MovieClip Frame 5400
stop();
Symbol 409 MovieClip [sky] Frame 1
stop();
Symbol 409 MovieClip [sky] Frame 30
stop();
Symbol 409 MovieClip [sky] Frame 60
stop();
Symbol 416 MovieClip [background] Frame 1
stop();
Symbol 416 MovieClip [background] Frame 30
stop();
Symbol 416 MovieClip [background] Frame 60
stop();
Symbol 419 MovieClip Frame 1
stop();
Symbol 426 MovieClip [DistantView] Frame 1
stop();
Symbol 426 MovieClip [DistantView] Frame 30
stop();
Symbol 426 MovieClip [DistantView] Frame 60
stop();
Symbol 433 MovieClip [road] Frame 1
stop();
Symbol 433 MovieClip [road] Frame 30
stop();
Symbol 433 MovieClip [road] Frame 60
stop();
Symbol 440 MovieClip [glass] Frame 1
stop();
Symbol 440 MovieClip [glass] Frame 30
stop();
Symbol 440 MovieClip [glass] Frame 60
stop();
Symbol 447 MovieClip [bank] Frame 1
stop();
Symbol 447 MovieClip [bank] Frame 30
stop();
Symbol 447 MovieClip [bank] Frame 60
stop();
Symbol 451 MovieClip [nearObj] Frame 1
stop();
Symbol 493 MovieClip Frame 1
stop();
Symbol 546 MovieClip [ayumi] Frame 1
stop();
Symbol 546 MovieClip [ayumi] Frame 132
gotoAndStop ("Wait");
Symbol 546 MovieClip [ayumi] Frame 214
stop();
Symbol 546 MovieClip [ayumi] Frame 215
stop();
Symbol 550 MovieClip [auto3rin] Frame 3
gotoAndPlay ("normal");
Symbol 550 MovieClip [auto3rin] Frame 15
gotoAndPlay ("normal");
Symbol 550 MovieClip [auto3rin] Frame 20
stop();
Symbol 550 MovieClip [auto3rin] Frame 23
gotoAndPlay ("normal");
Symbol 574 MovieClip [mogura] Frame 8
stop();
Symbol 584 MovieClip [HPitems] Frame 1
stop();
Symbol 601 MovieClip [miniObj] Frame 1
stop();
Symbol 606 MovieClip [hondana] Frame 1
stop();
Symbol 606 MovieClip [hondana] Frame 2
stop();
Symbol 606 MovieClip [hondana] Frame 10
gotoAndStop ("normal");
Symbol 606 MovieClip [hondana] Frame 11
stop();
Symbol 611 MovieClip [freezer] Frame 1
stop();
Symbol 611 MovieClip [freezer] Frame 2
stop();
Symbol 611 MovieClip [freezer] Frame 10
gotoAndStop ("normal");
Symbol 611 MovieClip [freezer] Frame 11
stop();
Symbol 616 MovieClip [tansu] Frame 1
stop();
Symbol 616 MovieClip [tansu] Frame 2
stop();
Symbol 616 MovieClip [tansu] Frame 10
gotoAndStop ("normal");
Symbol 616 MovieClip [tansu] Frame 11
stop();
Symbol 621 MovieClip [colorBox3] Frame 1
stop();
Symbol 621 MovieClip [colorBox3] Frame 2
stop();
Symbol 621 MovieClip [colorBox3] Frame 10
gotoAndStop ("normal");
Symbol 621 MovieClip [colorBox3] Frame 11
stop();
Symbol 624 MovieClip [monohosi] Frame 1
stop();
Symbol 624 MovieClip [monohosi] Frame 2
stop();
Symbol 624 MovieClip [monohosi] Frame 10
gotoAndStop ("normal");
Symbol 624 MovieClip [monohosi] Frame 11
stop();
Symbol 627 MovieClip [book2] Frame 1
stop();
Symbol 627 MovieClip [book2] Frame 2
stop();
Symbol 627 MovieClip [book2] Frame 10
gotoAndStop ("normal");
Symbol 627 MovieClip [book2] Frame 11
stop();
Symbol 632 MovieClip [box5] Frame 1
stop();
Symbol 632 MovieClip [box5] Frame 2
stop();
Symbol 632 MovieClip [box5] Frame 10
gotoAndStop ("normal");
Symbol 632 MovieClip [box5] Frame 11
stop();
Symbol 635 MovieClip [huton] Frame 1
stop();
Symbol 635 MovieClip [huton] Frame 2
stop();
Symbol 635 MovieClip [huton] Frame 10
gotoAndStop ("normal");
Symbol 635 MovieClip [huton] Frame 11
stop();
Symbol 640 MovieClip [television] Frame 1
stop();
Symbol 640 MovieClip [television] Frame 2
stop();
Symbol 640 MovieClip [television] Frame 10
gotoAndStop ("normal");
Symbol 640 MovieClip [television] Frame 11
stop();
Symbol 640 MovieClip [television] Frame 12
stop();
Symbol 645 MovieClip [box4] Frame 1
stop();
Symbol 645 MovieClip [box4] Frame 2
stop();
Symbol 645 MovieClip [box4] Frame 10
gotoAndStop ("normal");
Symbol 645 MovieClip [box4] Frame 11
stop();
Symbol 650 MovieClip [colorBox2] Frame 1
stop();
Symbol 650 MovieClip [colorBox2] Frame 2
stop();
Symbol 650 MovieClip [colorBox2] Frame 10
gotoAndStop ("normal");
Symbol 650 MovieClip [colorBox2] Frame 11
stop();
Symbol 655 MovieClip [box3] Frame 1
stop();
Symbol 655 MovieClip [box3] Frame 2
stop();
Symbol 655 MovieClip [box3] Frame 10
gotoAndStop ("normal");
Symbol 655 MovieClip [box3] Frame 11
stop();
Symbol 658 MovieClip [chabudai] Frame 1
stop();
Symbol 658 MovieClip [chabudai] Frame 2
stop();
Symbol 658 MovieClip [chabudai] Frame 10
gotoAndStop ("normal");
Symbol 658 MovieClip [chabudai] Frame 11
stop();
Symbol 661 MovieClip [book1] Frame 1
stop();
Symbol 661 MovieClip [book1] Frame 2
stop();
Symbol 661 MovieClip [book1] Frame 10
gotoAndStop ("normal");
Symbol 661 MovieClip [book1] Frame 11
stop();
Symbol 666 MovieClip [colorBox1] Frame 1
stop();
Symbol 666 MovieClip [colorBox1] Frame 2
stop();
Symbol 666 MovieClip [colorBox1] Frame 10
gotoAndStop ("normal");
Symbol 666 MovieClip [colorBox1] Frame 11
stop();
Symbol 669 MovieClip [denkiStand] Frame 1
stop();
Symbol 669 MovieClip [denkiStand] Frame 2
stop();
Symbol 669 MovieClip [denkiStand] Frame 10
gotoAndStop ("normal");
Symbol 669 MovieClip [denkiStand] Frame 11
stop();
Symbol 674 MovieClip [box2] Frame 1
stop();
Symbol 674 MovieClip [box2] Frame 2
stop();
Symbol 674 MovieClip [box2] Frame 10
gotoAndStop ("normal");
Symbol 674 MovieClip [box2] Frame 11
stop();
Symbol 675 MovieClip [box1] Frame 1
stop();
Symbol 675 MovieClip [box1] Frame 2
stop();
Symbol 675 MovieClip [box1] Frame 10
gotoAndStop ("normal");
Symbol 675 MovieClip [box1] Frame 11
stop();
Symbol 678 MovieClip [yakan] Frame 1
stop();
Symbol 678 MovieClip [yakan] Frame 2
stop();
Symbol 678 MovieClip [yakan] Frame 10
gotoAndStop ("normal");
Symbol 678 MovieClip [yakan] Frame 11
stop();
Symbol 703 MovieClip Frame 9
gotoAndPlay (1);
Symbol 703 MovieClip Frame 10
stop();
Symbol 703 MovieClip Frame 11
stop();
Symbol 703 MovieClip Frame 12
stop();
Symbol 703 MovieClip Frame 13
stop();
Symbol 771 MovieClip Frame 9
gotoAndPlay (1);
Symbol 771 MovieClip Frame 10
stop();
Symbol 771 MovieClip Frame 11
stop();
Symbol 771 MovieClip Frame 12
stop();
Symbol 771 MovieClip Frame 13
play();
Symbol 771 MovieClip Frame 45
gotoAndPlay ("eat1");
Symbol 771 MovieClip Frame 46
play();
Symbol 771 MovieClip Frame 78
gotoAndPlay ("eat2");
Symbol 771 MovieClip Frame 79
play();
Symbol 771 MovieClip Frame 111
gotoAndPlay ("eat3");
Symbol 771 MovieClip Frame 112
play();
Symbol 771 MovieClip Frame 144
gotoAndPlay ("eat4");
Symbol 771 MovieClip Frame 145
play();
Symbol 771 MovieClip Frame 177
gotoAndPlay ("eat5");
Symbol 800 MovieClip Frame 1265
stop();
Symbol 801 MovieClip [hasirio3] Frame 1
stop();
Symbol 801 MovieClip [hasirio3] Frame 243
stop();
Symbol 801 MovieClip [hasirio3] Frame 244
stop();
Symbol 801 MovieClip [hasirio3] Frame 269
stop();
Symbol 801 MovieClip [hasirio3] Frame 270
stop();
Symbol 801 MovieClip [hasirio3] Frame 305
stop();
Symbol 801 MovieClip [hasirio3] Frame 365
stop();
Symbol 804 MovieClip Frame 9
gotoAndPlay (1);
Symbol 804 MovieClip Frame 10
stop();
Symbol 804 MovieClip Frame 11
stop();
Symbol 804 MovieClip Frame 12
stop();
Symbol 804 MovieClip Frame 13
play();
Symbol 804 MovieClip Frame 45
gotoAndPlay ("eat1");
Symbol 804 MovieClip Frame 46
play();
Symbol 804 MovieClip Frame 78
gotoAndPlay ("eat2");
Symbol 804 MovieClip Frame 79
play();
Symbol 804 MovieClip Frame 111
gotoAndPlay ("eat3");
Symbol 804 MovieClip Frame 112
play();
Symbol 804 MovieClip Frame 144
gotoAndPlay ("eat4");
Symbol 804 MovieClip Frame 145
play();
Symbol 804 MovieClip Frame 177
gotoAndPlay ("eat5");
Symbol 805 MovieClip [hasirio2] Frame 1
stop();
Symbol 805 MovieClip [hasirio2] Frame 243
stop();
Symbol 805 MovieClip [hasirio2] Frame 244
stop();
Symbol 805 MovieClip [hasirio2] Frame 269
stop();
Symbol 805 MovieClip [hasirio2] Frame 270
stop();
Symbol 805 MovieClip [hasirio2] Frame 305
stop();
Symbol 805 MovieClip [hasirio2] Frame 365
stop();
Symbol 807 MovieClip Frame 9
gotoAndPlay (1);
Symbol 807 MovieClip Frame 10
stop();
Symbol 807 MovieClip Frame 11
stop();
Symbol 807 MovieClip Frame 12
stop();
Symbol 807 MovieClip Frame 13
play();
Symbol 807 MovieClip Frame 45
gotoAndPlay ("eat1");
Symbol 807 MovieClip Frame 46
play();
Symbol 807 MovieClip Frame 78
gotoAndPlay ("eat2");
Symbol 807 MovieClip Frame 79
play();
Symbol 807 MovieClip Frame 111
gotoAndPlay ("eat3");
Symbol 807 MovieClip Frame 112
play();
Symbol 807 MovieClip Frame 144
gotoAndPlay ("eat4");
Symbol 807 MovieClip Frame 145
play();
Symbol 807 MovieClip Frame 177
gotoAndPlay ("eat5");
Symbol 808 MovieClip Frame 9
gotoAndPlay (1);
Symbol 808 MovieClip Frame 10
stop();
Symbol 808 MovieClip Frame 11
stop();
Symbol 808 MovieClip Frame 12
stop();
Symbol 808 MovieClip Frame 13
play();
Symbol 808 MovieClip Frame 45
gotoAndPlay ("eat1");
Symbol 808 MovieClip Frame 46
play();
Symbol 808 MovieClip Frame 79
gotoAndPlay ("eat2");
Symbol 808 MovieClip Frame 80
play();
Symbol 808 MovieClip Frame 112
gotoAndPlay ("eat3");
Symbol 808 MovieClip Frame 113
play();
Symbol 808 MovieClip Frame 145
gotoAndPlay ("eat4");
Symbol 808 MovieClip Frame 146
play();
Symbol 808 MovieClip Frame 178
gotoAndPlay ("eat5");
Symbol 809 MovieClip [hasirio1] Frame 1
stop();
Symbol 809 MovieClip [hasirio1] Frame 243
stop();
Symbol 809 MovieClip [hasirio1] Frame 244
stop();
Symbol 809 MovieClip [hasirio1] Frame 269
stop();
Symbol 809 MovieClip [hasirio1] Frame 270
stop();
Symbol 809 MovieClip [hasirio1] Frame 305
stop();
Symbol 809 MovieClip [hasirio1] Frame 365
stop();
Symbol 811 MovieClip Frame 1
stop();
Symbol 815 MovieClip Frame 25
_parent.gotoAndStop(2);
Symbol 817 MovieClip [params] Frame 1
stop();
Symbol 818 MovieClip [mainprog] Frame 1
var Gs = new Hikkosi(this);
Symbol 818 MovieClip [mainprog] Frame 2
Gs.MainLoop();
Symbol 818 MovieClip [mainprog] Frame 3
this.gotoAndPlay("LoopPoint");
Symbol 823 MovieClip [Defaults] Frame 1
#initclip 121
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 824 MovieClip [UIObjectExtensions] Frame 1
#initclip 122
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 825 MovieClip [UIObject] Frame 1
#initclip 123
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 826 MovieClip [Border] Frame 1
#initclip 124
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 827 MovieClip [RectBorder] Frame 1
#initclip 125
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 830 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 831 MovieClip Frame 1
#initclip 126
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 834 MovieClip [FocusRect] Frame 1
#initclip 127
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 835 MovieClip [FocusManager] Frame 1
#initclip 128
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 836 MovieClip [UIComponentExtensions] Frame 1
#initclip 129
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 837 MovieClip [UIComponent] Frame 1
#initclip 130
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 838 MovieClip [TextInput] Frame 1
#initclip 131
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 839 MovieClip [__Packages.Hikkosi] Frame 0
class Hikkosi
{
static var messfont, st_mozi_no;
var gst, game_level, db, ftc, btc, dmc, bmc, mmc, fmc, cmc, omc, tmc, ari, lifebar, smpf, user_name, soundMC, s_bgm, coli, pause, titlespace, titleflag, fadecount, rank, rankmain, neterr, dnet, ranklevel, lightrank, now_play_level, now_play_score, now_play_name, rank_counter, ranklud, rankfd, nextkarasu, karasu_c, nextmogura, mogura_c, nextass, ass_c, rsp, systemProperty;
function Hikkosi (mc) {
var _local2;
gst = 0;
game_level = 3;
db = new nigoro.lib.duplex.DB.MiniDB();
ftc = new nigoro.lib.duplex.Task.TaskCenter(100, db);
btc = new nigoro.lib.duplex.Task.TaskCenter(10, db);
dmc = mc;
bmc = dmc.createEmptyMovieClip("back_g", dmc.getNextHighestDepth());
mmc = dmc.createEmptyMovieClip("midle_g", dmc.getNextHighestDepth());
fmc = dmc.createEmptyMovieClip("front_g", dmc.getNextHighestDepth());
cmc = dmc.createEmptyMovieClip("char_g", dmc.getNextHighestDepth());
omc = dmc.createEmptyMovieClip("over_g", dmc.getNextHighestDepth());
tmc = dmc.createEmptyMovieClip("top_g", dmc.getNextHighestDepth());
ari = new nigoro.lib.duplex.Math.Arithmetic(134);
lifebar = null;
smpf = new Array(12);
user_name = "";
soundMC = nigoro.lib.samieru.NigoroFlashManager.getBgmLayer();
s_bgm = new nigoro.lib.samieru.sound.MusicPlayer(soundMC.createEmptyMovieClip("BGMMCS", soundMC.getNextHighestDepth()));
s_bgm.attachSound("Opening.wav");
s_bgm.initPlay();
s_bgm.setLoopPoint(0);
coli = new nigoro.lib.duplex.Math.Collosion();
var _local3 = new nigoro.lib.duplex.Font.FontBase(tmc, "NigoroDefaultFont");
if (muteki) {
var _local4 = new nigoro.lib.duplex.Font.SampleFont(tmc, _local3);
_local4.setFontColor(255, 50, 50, 255);
_local4.setFontSize(21);
_local4.drawTypewriterStrings("TEST-muteki", 0, 0);
}
pause = false;
titlespace = true;
messfont = new Array(20);
_local2 = 0;
while (_local2 != 20) {
messfont[_local2] = new nigoro.lib.duplex.Font.SampleFont(tmc, _local3);
messfont[_local2].setFontColor(0, 0, 250, 255);
messfont[_local2].setFontSize(12);
_local2++;
}
st_mozi_no = 0;
titleflag = false;
}
static function setStateString(mess) {
return(undefined);
while (_local1 != 20) {
messfont[(_local2 + _local1) % 20].backSetFontPosition(0, -15);
_local1++;
}
st_mozi_no++;
}
function MainLoop() {
var _local5;
var _local6;
var _local3;
if (nigoro.lib.samieru.NigoroFlashManager.isPause()) {
if (!pause) {
pause = true;
_local3 = db.oneread("sora", "no", 0);
if (_local3 != null) {
_local6 = [7];
ftc.acssesTask(_local3, _local6);
}
}
return(undefined);
}
if (pause) {
_local3 = db.oneread("sora", "no", 0);
if (_local3 != null) {
_local6 = [8];
ftc.acssesTask(_local3, _local6);
}
pause = false;
}
btc.playTask();
switch (gst) {
case 0 :
acssesIniSystem();
gst = 2;
s_bgm.start(0);
fadecount = 100;
break;
case 2 :
if (titleflag) {
if (Selection.getFocus() != "_level0.main_mc.TitleInst.UserName.label") {
if (titlespace) {
if (!Key.isDown(32)) {
titlespace = false;
}
} else if (Key.isDown(32)) {
sendSystem("NameIn", _root.TitleInst.UserName.text, 0);
sendSystem("FadeOut", null, null);
_root.TitleInst.play();
}
} else if (Key.isDown(13)) {
Selection.setFocus(null);
}
}
break;
case 3 :
break;
case 4 :
break;
case 6 :
rank = tmc.attachMovie("rankingWindow", "rankingWindow" + tmc.getNextHighestDepth(), tmc.getNextHighestDepth());
ftc.setTask(new task.AlphaFade(rank, true, 80, 4));
rank._x = 53;
rank._y = 47;
rankmain = rank.attachMovie("rankingMain", "rankingMain" + rank.getNextHighestDepth(), rank.getNextHighestDepth());
rankmain._x = 0;
rankmain._y = 0;
neterr = rank.attachMovie("networkError", "networkError" + rank.getNextHighestDepth(), rank.getNextHighestDepth());
neterr._x = 10000;
neterr._y = 10000;
var _local9 = new nigoro.lib.duplex.Font.FontBase(rank, "NigoroDefaultFont");
_local3 = 0;
while (_local3 != 12) {
smpf[_local3] = new nigoro.lib.duplex.Font.SampleFont(rankmain, _local9);
smpf[_local3].setSpace(2);
_local3++;
}
smpf[10].setSpace(10);
gst = 108;
break;
case 108 :
dnet = new task.Net(user_name, ranklevel, 0, 1);
smpf[11].drawTypewriterStrings("DATA LOAD...", 36.1, 116.8);
smpf[10].setFontColor(128, 128, 128, 255);
smpf[10].drawTypewriterStrings("12345", 99.3, 82.2);
smpf[10].setFontColor(255, 0, 0, 255);
switch (ranklevel) {
case 1 :
smpf[10].controlFont(0, "chcol", 0);
break;
case 2 :
smpf[10].controlFont(1, "chcol", 0);
break;
case 3 :
smpf[10].controlFont(2, "chcol", 0);
break;
case 4 :
smpf[10].controlFont(3, "chcol", 0);
break;
case 5 :
smpf[10].controlFont(4, "chcol", 0);
}
gst = 7;
break;
case 7 :
dnet.run();
if (dnet.getEnd()) {
smpf[11].allDeleteFont();
lightrank = -1;
var _local7 = [36.1, 329.3];
var _local8 = [116.8, 139.8, 162.9, 186, 209.1];
if (dnet.isError()) {
if (dnet.errorMess() != 201) {
neterr._x = 252.6;
neterr._y = 138.1;
} else {
_local3 = 0;
while (_local3 != 10) {
smpf[_local3].drawTypewriterStrings("---- NO DATA ----", _local7[Math.floor(_local3 / 5)], _local8[_local3 % 5]);
_local3++;
}
}
} else {
_local6 = dnet.getObject();
var _local10 = _local6.length - 1;
var _local4;
_local3 = 0;
while (_local3 != 10) {
if (_local3 > _local10) {
smpf[_local3].drawTypewriterStrings("---- NO DATA ----", _local7[Math.floor(_local3 / 5)], _local8[_local3 % 5]);
} else {
_local4 = _local6[_local3];
if (now_play_level == ranklevel) {
if (now_play_score == Number(_local4.C_SCORE)) {
if (now_play_name == _local4.C_NAME) {
lightrank = _local3;
rank_counter = 255;
ranklud = false;
smpf[_local3].setFontColor(255, 0, 0, 255);
}
}
}
smpf[_local3].drawTypewriterStrings(rankString(_local4.CNT, _local4.C_NAME, _local4.C_SCORE), _local7[Math.floor(_local3 / 5)], _local8[_local3 % 5]);
smpf[_local3].setFontColor(0, 0, 0, 255);
}
_local3++;
}
}
gst = 107;
}
break;
case 107 :
Mouse.addListener(this);
gst = 8;
break;
case 8 :
if (lightrank != -1) {
smpf[lightrank].backSetFontColor(rank_counter, 0, 0, 255);
if (ranklud) {
rank_counter = rank_counter + 10;
if (rank_counter >= 255) {
rank_counter = 255;
ranklud = false;
}
} else {
rank_counter = rank_counter - 10;
if (rank_counter <= 0) {
rank_counter = 0;
ranklud = true;
}
}
}
break;
case 9 :
ftc.setTask(new task.AlphaFade(rank, false, 80, 4));
rankfd = 0;
gst = 110;
break;
case 110 :
rankfd++;
if (rankfd == 21) {
gst = 109;
}
break;
case 109 :
_local3 = 0;
while (_local3 != 11) {
smpf[_local3].allDeleteFont();
smpf[_local3] = null;
_local3++;
}
neterr.removeMovieClip();
neterr = null;
rankmain.removeMovieClip();
rankmain = null;
rank.removeMovieClip();
rank = null;
delete dnet;
dnet = null;
_root.TitleInst.STB._visible = true;
_root.TitleInst.UserName._visible = true;
_root.TitleInst.lv5._visible = true;
_root.TitleInst.lv4._visible = true;
_root.TitleInst.lv3._visible = true;
_root.TitleInst.lv2._visible = true;
_root.TitleInst.lv1._visible = true;
_root.TitleInst.UserName._visible = true;
_root.TitleInst.RKB._visible = true;
_root.TitleInst.Easy._visible = true;
_root.TitleInst.Hard._visible = true;
_root.TitleInst.Userword._visible = true;
gst = 2;
break;
case 10 :
nextkarasu = (ari.atRandom() % 100) + (100 / game_level);
karasu_c = 0;
nextmogura = (ari.atRandom() % 50) + (50 / game_level);
mogura_c = 0;
nextass = (ari.atRandom() % 200) + (((1250 / game_level) + (25 * (game_level - 1))) / game_level);
ass_c = 0;
ftc.setTask(new task.ScSora(bmc, "sky"));
ftc.setTask(new task.ScMap(bmc, "background", 220, data.ScSpeed.yama));
ftc.setTask(new task.ScMap(bmc, "DistantView", 220, data.ScSpeed.kabe));
ftc.setTask(new task.ScMap(fmc, "glass", 260, data.ScSpeed.kusamura));
ftc.setTask(new task.ScMap(fmc, "road", 260, data.ScSpeed.michi));
ftc.setTask(new task.Auto3rin(cmc, "auto3rin", 500, 283.3, 654, game_level));
ftc.setTask(new task.Hasirio(cmc, "hasirio3", 200, 245, game_level, tmc));
ftc.setTask(new task.ScMap(fmc, "bank", 380, data.ScSpeed.dote));
ftc.setTask(new task.Objkanri(mmc, cmc));
btc.setTask(new task.Hit(ftc, tmc, debug));
rsp = 50;
gst = 12;
break;
case 12 :
break;
case 13 :
_local5 = ftc.checkData("score", "no");
_local6 = [3, 0];
_local6 = ftc.acssesTask(_local5, _local6);
_local5 = 0;
while (_local5 != game_level) {
ftc.setTask(new task.Levelman(tmc, "levelNum", (_local6[0] + 623.2) + (_local5 * 14), _local6[1], _local5 * 10));
_local5++;
}
gst = 11;
break;
case 11 :
_local5 = ftc.checkData("sora", "no");
_local6 = [2];
_local6 = ftc.acssesTask(_local5, _local6);
if (_local6[0] == 0) {
karasu_c++;
if (nextkarasu < karasu_c) {
ftc.setTask(new task.Karasu(omc, "karasu", 728, 47 + ((ari.atRandom() % 10) * 10), 8, ari.atRandom() % 4, (ari.atRandom() % 300) + 200));
nextkarasu = ari.atRandom() % 100;
nextkarasu = nextkarasu + ((300 / game_level) + rsp);
karasu_c = 0;
rsp = rsp - 2;
}
mogura_c++;
if (nextmogura < mogura_c) {
ftc.setTask(new task.Mogura(omc, "mogura", 728, 263, 15));
nextmogura = ((ari.atRandom() % 50) + (200 / game_level)) + rsp;
mogura_c = 0;
}
ass_c++;
if (nextass < ass_c) {
ftc.setTask(new task.Assasin(omc, "bicycle", 728, 202, 30));
nextass = ((ari.atRandom() % 200) + (((2500 / game_level) + (25 * (game_level - 1))) / game_level)) + rsp;
ass_c = 0;
}
}
break;
case 14 :
fadecount = fadecount - 2;
s_bgm.fadeOut(2);
if (fadecount <= 0) {
gst = 12;
s_bgm.stop();
s_bgm.initPlay();
s_bgm.setVolume(100);
}
break;
case 100 :
ftc.flashTask();
btc.flashTask();
_root.gotoAndPlay("TitleMode");
s_bgm.start(0);
fadecount = 100;
titlespace = true;
gst = 2;
}
ftc.playTask();
}
function onMouseDown() {
var _local8 = new nigoro.lib.duplex.Math.Rect(152, 127, 16, 16);
var _local7 = new nigoro.lib.duplex.Math.Rect(172, 127, 16, 16);
var _local6 = new nigoro.lib.duplex.Math.Rect(193, 127, 16, 16);
var _local5 = new nigoro.lib.duplex.Math.Rect(215, 127, 16, 16);
var _local4 = new nigoro.lib.duplex.Math.Rect(236, 127, 16, 16);
if (coli.innerCheck(_local8, _root._xmouse, _root._ymouse)) {
if (ranklevel != 1) {
var _local3 = 0;
while (_local3 != 11) {
smpf[_local3].allDeleteFont();
_local3++;
}
neterr._x = 10000;
neterr._y = 10000;
ranklevel = 1;
gst = 108;
Mouse.removeListener(this);
return(undefined);
}
}
if (coli.innerCheck(_local7, _root._xmouse, _root._ymouse)) {
if (ranklevel != 2) {
var _local3 = 0;
while (_local3 != 11) {
smpf[_local3].allDeleteFont();
_local3++;
}
neterr._x = 10000;
neterr._y = 10000;
ranklevel = 2;
gst = 108;
Mouse.removeListener(this);
return(undefined);
}
}
if (coli.innerCheck(_local6, _root._xmouse, _root._ymouse)) {
if (ranklevel != 3) {
var _local3 = 0;
while (_local3 != 11) {
smpf[_local3].allDeleteFont();
_local3++;
}
neterr._x = 10000;
neterr._y = 10000;
ranklevel = 3;
gst = 108;
Mouse.removeListener(this);
return(undefined);
}
}
if (coli.innerCheck(_local5, _root._xmouse, _root._ymouse)) {
if (ranklevel != 4) {
var _local3 = 0;
while (_local3 != 11) {
smpf[_local3].allDeleteFont();
_local3++;
}
neterr._x = 10000;
neterr._y = 10000;
ranklevel = 4;
gst = 108;
Mouse.removeListener(this);
return(undefined);
}
}
if (coli.innerCheck(_local4, _root._xmouse, _root._ymouse)) {
if (ranklevel != 5) {
var _local3 = 0;
while (_local3 != 11) {
smpf[_local3].allDeleteFont();
_local3++;
}
neterr._x = 10000;
neterr._y = 10000;
ranklevel = 5;
gst = 108;
Mouse.removeListener(this);
return(undefined);
}
}
}
function acssesIniSystem() {
systemProperty = new Array();
systemProperty[0] = ["GameLevel", "\u30B2\u30FC\u30E0\u30EC\u30D9\u30EB\u3092\u4FDD\u6301\u3059\u308B\u5909\u6570\u3078\u306E\u30A2\u30AF\u30BB\u30B9"];
systemProperty[1] = ["SetScore", "\u30B9\u30B3\u30A2\u30D0\u30FC\u3092\u30B7\u30B9\u30C6\u30E0\u306E\u6700\u524D\u9762\u306B\u8FFD\u52A0\u3057\u307E\u3059"];
systemProperty[2] = ["DelScore", "\u30B9\u30B3\u30A2\u30D0\u30FC\u3092\u30B7\u30B9\u30C6\u30E0\u304B\u3089\u524A\u9664\u3057\u307E\u3059"];
systemProperty[3] = ["GameStart", "\u30B7\u30B9\u30C6\u30E0\u3092\u30B2\u30FC\u30E0\u72B6\u614B\u306B\u79FB\u884C\u3055\u305B\u307E\u3059"];
systemProperty[4] = ["BackTitle", "\u30BF\u30A4\u30C8\u30EB\u30D5\u30EC\u30FC\u30E0\u306B\u3082\u3069\u308A\u307E\u3059"];
systemProperty[5] = ["NameIn", "\u30B7\u30B9\u30C6\u30E0\u306B\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u4F1D\u3048\u307E\u3059"];
systemProperty[6] = ["NameOut", "\u30B7\u30B9\u30C6\u30E0\u304B\u3089\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u8CB0\u3044\u307E\u3059"];
systemProperty[7] = ["RankingOn", "\u30B7\u30B9\u30C6\u30E0\u304B\u3089\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u8CB0\u3044\u307E\u3059"];
systemProperty[8] = ["RankingOff", "\u30B7\u30B9\u30C6\u30E0\u304B\u3089\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u8CB0\u3044\u307E\u3059"];
systemProperty[9] = ["LifeGo", "\u30B2\u30FC\u30E0\u306E\u5B8C\u5168\u958B\u59CB\u5BA3\u8A00"];
systemProperty[10] = ["FadeOut", "\u30BF\u30A4\u30C8\u30EB\u753B\u9762\u306E\u30D5\u30A7\u30FC\u30C9\u30A2\u30A6\u30C8\u3092\u4FC3\u3057\u307E\u3059"];
systemProperty[11] = ["SetRanker", "\u30E9\u30F3\u30AD\u30F3\u30B0\u3057\u305F\u30B9\u30B3\u30A2\u3068\u540D\u524D\u3092\u30BB\u30C3\u30C8\u3057\u307E\u3059"];
systemProperty[12] = ["BGMFO", "\u65B0BGM\u30D5\u30A7\u30FC\u30C9\uFF08\u30BF\u30A4\u30C8\u30EB\uFF09"];
systemProperty[13] = ["TitleNow", "\u73FE\u5728\u64CD\u4F5C\u304C\u51FA\u6765\u308B\u30BF\u30A4\u30C8\u30EB\u753B\u9762\u3068\u8A00\u3046\u30D5\u30E9\u30B0\u3092\u7ACB\u3066\u307E\u3059"];
}
function sendSystem(stname, st, dt) {
var _local3 = false;
var _local5;
var _local6;
switch (stname) {
case systemProperty[13][0] :
titleflag = true;
_local3 = true;
break;
case systemProperty[12][0] :
gst = 14;
_local3 = true;
break;
case systemProperty[11][0] :
now_play_score = dt;
now_play_name = user_name;
now_play_level = Number(st);
_local3 = true;
break;
case systemProperty[10][0] :
gst = 3;
titleflag = false;
_local3 = true;
break;
case systemProperty[9][0] :
gst = 13;
_local3 = true;
break;
case systemProperty[8][0] :
gst = 9;
Mouse.removeListener(this);
_local3 = true;
break;
case systemProperty[7][0] :
gst = 6;
ranklevel = game_level;
_local3 = true;
break;
case systemProperty[5][0] :
if (st.length == 0) {
st = "";
} else if (!nigoro.lib.duplex.Font.WordChecker.isOkey(st, nigoro.lib.duplex.Font.Word.NGWord.FarstNG)) {
st = "";
} else if (!nigoro.lib.duplex.Font.WordChecker.isOkey(st, nigoro.lib.duplex.Font.Word.NGWord.HentaiNG)) {
st = "";
}
user_name = st;
_local3 = true;
break;
case systemProperty[4][0] :
gst = 100;
_local3 = true;
break;
case systemProperty[0][0] :
game_level = dt;
_local3 = true;
break;
case systemProperty[1][0] :
_local5 = ftc.checkData("score", "no");
if (_local5 != null) {
if ((st == "x") || (st == "X")) {
if (_local5 != null) {
_local6 = new Array(2);
_local6[0] = 0;
_local6[1] = dt;
ftc.acssesTask(_local5, _local6);
_local3 = true;
}
} else if ((st == "y") || (st == "Y")) {
if (_local5 != null) {
_local6 = new Array(2);
_local6[0] = 1;
_local6[1] = dt;
ftc.acssesTask(_local5, _local6);
_local3 = true;
}
}
} else {
s_bgm.stop();
if (ftc.setTask(new task.Score(tmc, st, game_level, muteki))) {
_local3 = true;
}
}
break;
case systemProperty[2][0] :
_local5 = ftc.checkData("score", "no");
if (_local5 != null) {
ftc.killTask(_local5);
_local3 = true;
}
break;
case systemProperty[3][0] :
gst = 10;
_root.gotoAndStop("GameStage");
_local3 = true;
break;
default :
trace(("\u6307\u5B9A\u3055\u308C\u305F\u3010" + stname) + "\u3011\u540D\u306E\u30E9\u30D9\u30EB\u306F\u5B58\u5728\u3057\u307E\u305B\u3093");
}
if (!_local3) {
trace(("\u6307\u5B9A\u3055\u308C\u305F\u3010" + stname) + "\u3011\u540D\u306E\u51E6\u7406\u306F\u5931\u6557\u3057\u307E\u3057\u305F");
}
return(_local3);
}
function getSystem(stname) {
var _local2;
switch (stname) {
case systemProperty[6][0] :
_local2 = user_name;
break;
case systemProperty[0][0] :
_local2 = game_level;
break;
case systemProperty[1][0] :
case systemProperty[2][0] :
if (lifebar == null) {
_local2 = false;
} else {
_local2 = true;
}
break;
case systemProperty[3][0] :
_local2 = gst;
break;
default :
trace(("\u6307\u5B9A\u3055\u308C\u305F\u3010" + stname) + "\u3011\u540D\u306E\u30E9\u30D9\u30EB\u306F\u5B58\u5728\u3057\u307E\u305B\u3093");
}
return(_local2);
}
function searchSystem() {
var _local2;
_local2 = 0;
while (_local2 != systemProperty.length) {
trace((("\u3010\u30E9\u30D9\u30EB\u540D\u3011" + systemProperty[_local2][0]) + " \u3010\u8AAC\u660E\u3011") + systemProperty[_local2][1]);
_local2++;
}
}
function rankString(st1, st2, st3) {
var _local2;
var _local4 = Number(st3);
switch (Number(st1)) {
case 1 :
_local2 = "01:";
break;
case 2 :
_local2 = "02:";
break;
case 3 :
_local2 = "03:";
break;
case 4 :
_local2 = "04:";
break;
case 5 :
_local2 = "05:";
break;
case 6 :
_local2 = "06:";
break;
case 7 :
_local2 = "07:";
break;
case 8 :
_local2 = "08:";
break;
case 9 :
_local2 = "09:";
break;
case 10 :
_local2 = "10:";
}
var _local3 = 1000000 /* 0x0F4240 */;
var _local1 = 0;
while (_local1 != 6) {
if (Math.floor(_local4 / _local3) == 0) {
_local2 = _local2 + "0";
} else {
break;
}
_local3 = _local3 / 10;
_local1++;
}
_local2 = ((_local2 + st3) + " ") + st2;
return(_local2);
}
var debug = false;
var muteki = false;
var mmcmax = 30;
}
Symbol 840 MovieClip [__Packages.nigoro.lib.duplex.Task.TaskCenter] Frame 0
class nigoro.lib.duplex.Task.TaskCenter
{
var tasks, maxtask, db, lc;
function TaskCenter (num, database) {
tasks = new Array(num);
maxtask = num;
if (database == null) {
db = new nigoro.lib.duplex.DB.MiniDB();
} else {
db = database;
}
lc = new nigoro.lib.duplex.Link.LinkCenter();
}
function setTask(tk) {
var _local2;
if (lc.getListNum() >= maxtask) {
trace("\u30BF\u30B9\u30AF\u306E\u751F\u6210\u9650\u754C\u6570\u3092\u8D85\u3048\u3066\u307E\u3059!!");
return(false);
}
_local2 = lc.getListNo();
tasks[_local2] = tk;
tasks[_local2].init(_local2, this);
return(true);
}
function killTask(no) {
tasks[no].finalize(this);
tasks[no] = null;
lc.deleteList(no);
}
function flashTask() {
var _local2;
_local2 = lc.getStartPos();
while (_local2 != -1) {
killTask(_local2);
_local2 = lc.loadNextLinkList(_local2);
}
}
function playTask() {
var _local2;
_local2 = lc.getStartPos();
while (_local2 != -1) {
if (tasks[_local2].run(this) == false) {
killTask(_local2);
}
_local2 = lc.loadNextLinkList(_local2);
}
}
function acssesTask(no, data) {
return(tasks[no].talkTask(data));
}
function regstData(ct, nm, data) {
db.write(ct, nm, data);
}
function checkData(ct, nm) {
return(db.oneread(ct, nm, 0));
}
function getData(ct, nm) {
return(db.read(ct, nm));
}
function elaseData(ct) {
db.deleteCategory(ct);
}
}
Symbol 841 MovieClip [__Packages.nigoro.lib.duplex.DB.MiniDB] Frame 0
class nigoro.lib.duplex.DB.MiniDB
{
var now_page, max_page, db;
function MiniDB () {
now_page = 0;
max_page = 1;
db = new Array();
db[0] = new nigoro.lib.duplex.DB.DataPool();
}
function createNewPage() {
db[max_page] = new nigoro.lib.duplex.DB.DataPool();
max_page++;
}
function chengePage(p) {
if (p > (max_page - 1)) {
return(false);
}
now_page = p;
return(true);
}
function write(ct, nm, dt) {
db[now_page].write(ct, nm, dt);
}
function overWrite(c, i, n, d) {
db[now_page].overWrite(c, i, n, d);
}
function readCompact(ct, nm) {
var _local3;
var _local4;
var _local2;
_local3 = db[now_page].read(ct, nm);
if (_local3 == null) {
return(null);
}
_local4 = 0;
_local2 = 0;
while (_local2 != _local3.length) {
_local3[_local2 - _local4] = _local3[_local2];
if (_local3[_local2] == null) {
_local4++;
}
_local2++;
}
while (_local4 > 0) {
_local3.pop();
_local4--;
}
return(_local3);
}
function read(ct, nm) {
return(db[now_page].read(ct, nm));
}
function oneread(ct, nm, num) {
return(db[now_page].oneread(ct, nm, num));
}
function deleteCategory(st) {
db[now_page].deleteCategory(st);
}
function deleteName(st, i) {
db[now_page].deleteName(st, i);
}
}
Symbol 842 MovieClip [__Packages.nigoro.lib.duplex.DB.DataLower] Frame 0
class nigoro.lib.duplex.DB.DataLower
{
var data, id, lc;
function DataLower () {
data = new Array();
id = Array();
lc = new nigoro.lib.duplex.Link.LinkCenter();
}
function getId(st) {
var _local2;
_local2 = lc.getStartPos();
while (_local2 != -1) {
if (id[_local2] == st) {
return(_local2);
}
_local2 = lc.loadNextLinkList(_local2);
}
return(-1);
}
function deleteId(st) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
while (data[_local2].pop() != null) {
}
lc.deleteList(_local2);
id[_local2] = null;
}
}
function read(st) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2]);
}
return(null);
}
}
Symbol 843 MovieClip [__Packages.nigoro.lib.duplex.Link.LinkCenter] Frame 0
class nigoro.lib.duplex.Link.LinkCenter
{
var pointer, position, backPosition, startPosition, total;
function LinkCenter () {
pointer = new Array();
position = 0;
backPosition = -1;
startPosition = 0;
total = 0;
}
function getListNo() {
var _local2;
_local2 = position;
if (pointer[_local2] != null) {
pointer[_local2].self = position;
position = pointer[_local2].back;
if (backPosition != -1) {
pointer[backPosition].next = _local2;
}
pointer[_local2].back = backPosition;
backPosition = _local2;
pointer[_local2].next = -1;
} else {
pointer[_local2] = new nigoro.lib.duplex.Link.LinkData();
pointer[_local2].self = position;
pointer[_local2].back = backPosition;
pointer[_local2].next = -1;
if (backPosition != -1) {
pointer[backPosition].next = position;
}
backPosition = position;
position++;
}
total++;
return(_local2);
}
function addList(i) {
var _local2;
var _local4;
if ((i < 0) || (i >= total)) {
return(-1);
}
if (pointer[i].self == -1) {
return(-1);
}
_local2 = getListNo();
_local4 = pointer[i].next;
if (_local4 != _local2) {
pointer[i].next = _local2;
pointer[_local4].back = _local2;
backPosition = pointer[_local2].back;
pointer[pointer[_local2].back].next = pointer[_local2].next;
pointer[_local2].back = i;
pointer[_local2].next = _local4;
}
return(_local2);
}
function insertList(i) {
var _local2;
var _local4;
if ((i < 0) || (i >= total)) {
return(-1);
}
if (pointer[i].self == -1) {
return(-1);
}
_local2 = getListNo();
_local4 = pointer[i].back;
pointer[i].back = _local2;
if (_local4 != -1) {
pointer[_local4].next = _local2;
} else {
startPosition = _local2;
}
backPosition = pointer[_local2].back;
pointer[pointer[_local2].back].next = pointer[_local2].next;
pointer[_local2].back = _local4;
pointer[_local2].next = i;
return(_local2);
}
function chengList(farst, second) {
var _local5;
var _local4;
var _local7;
var _local6;
if (((farst < 0) || (farst >= total)) || ((second < 0) || (second >= total))) {
return(false);
}
if ((pointer[farst].self == -1) || (pointer[second].self == -1)) {
return(false);
}
_local5 = pointer[farst].next;
_local7 = pointer[farst].back;
_local4 = pointer[second].next;
_local6 = pointer[second].back;
if (_local5 != -1) {
pointer[_local5].back = second;
}
if (_local7 != -1) {
pointer[_local7].next = second;
}
pointer[second].next = _local5;
pointer[second].back = _local7;
if (_local4 != -1) {
pointer[_local4].back = farst;
}
if (_local6 != -1) {
pointer[_local6].next = farst;
}
pointer[farst].next = _local4;
pointer[farst].back = _local6;
if (startPosition == farst) {
startPosition = second;
} else if (startPosition == second) {
startPosition = farst;
}
if (backPosition == farst) {
backPosition = second;
} else if (backPosition == second) {
backPosition = farst;
}
return(true);
}
function deleteList(i) {
if (pointer[i].next != -1) {
pointer[pointer[i].next].back = pointer[i].back;
if (pointer[i].back != -1) {
pointer[pointer[i].back].next = pointer[i].next;
} else {
startPosition = pointer[i].next;
}
} else {
backPosition = pointer[i].back;
if (pointer[i].back != -1) {
pointer[pointer[i].back].next = -1;
} else {
startPosition = i;
}
}
pointer[i].self = -1;
pointer[i].back = position;
position = i;
total--;
}
function getListNum() {
return(total);
}
function getStartPos() {
var _local2;
_local2 = startPosition;
if (total == 0) {
_local2 = -1;
}
return(_local2);
}
function loadNextLinkList(i) {
return(pointer[i].next);
}
function clear() {
while (pointer.pop() != null) {
}
position = 0;
backPosition = -1;
startPosition = 0;
total = 0;
}
}
Symbol 844 MovieClip [__Packages.nigoro.lib.duplex.Link.LinkData] Frame 0
class nigoro.lib.duplex.Link.LinkData
{
function LinkData () {
}
}
Symbol 845 MovieClip [__Packages.nigoro.lib.duplex.DB.DataPool] Frame 0
class nigoro.lib.duplex.DB.DataPool extends nigoro.lib.duplex.DB.DataLower
{
var getId, lc, data, id, deleteId;
function DataPool () {
super();
}
function write(s, i, d) {
var _local2;
_local2 = getId(s);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new nigoro.lib.duplex.DB.DataLine();
id[_local2] = s;
}
data[_local2].write(d, i);
}
function overWrite(c, i, n, d) {
var _local2;
_local2 = getId(c);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new nigoro.lib.duplex.DB.DataLine();
id[_local2] = c;
}
data[_local2].overWrite(d, i, n);
}
function deleteCategory(st) {
var _local2;
deleteId(st);
}
function deleteName(st, i) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
data[_local2].deleteId(i);
}
}
function read(st, i) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2].read(i));
}
return(null);
}
function oneread(st, i, n) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2].oneread(i, n));
}
return(null);
}
}
Symbol 846 MovieClip [__Packages.nigoro.lib.duplex.DB.DataLine] Frame 0
class nigoro.lib.duplex.DB.DataLine extends nigoro.lib.duplex.DB.DataLower
{
var getId, lc, data, id;
function DataLine () {
super();
}
function write(d, i) {
var _local2;
_local2 = getId(i);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new Array();
id[_local2] = i;
}
data[_local2].push(d);
}
function oneread(st, n) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2][n]);
}
return(null);
}
function overWrite(d, i, n) {
var _local2;
_local2 = getId(i);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new Array();
id[_local2] = i;
}
data[_local2][n] = d;
}
function deleteData(st, d) {
var _local3;
var _local2;
_local3 = getId(st);
if (_local3 != -1) {
_local2 = 0;
while (_local2 != data[_local3].length) {
if (data[_local3][_local2] == d) {
data[_local3][_local2] = null;
}
_local2++;
}
}
}
function deleteDataNo(no, i) {
if (i > (data[i].kebgth - 1)) {
return(undefined);
}
data[i][no] = null;
}
}
Symbol 847 MovieClip [__Packages.nigoro.lib.duplex.Task.Task] Frame 0
interface nigoro.lib.duplex.Task.Task
{
}
Symbol 848 MovieClip [__Packages.nigoro.lib.duplex.Math.Arithmetic] Frame 0
class nigoro.lib.duplex.Math.Arithmetic
{
var rndseed;
function Arithmetic (s) {
rndseed = s;
}
function atRandom() {
rndseed = ((rndseed * 109) + 1021) % 32768;
return(rndseed);
}
function degToRad(deg) {
return(deg * (Math.PI/180));
}
function radToDeg(rad) {
return(rad * 57.2957795130823);
}
function getAngle(vc) {
return(Math.atan2(vc.y, vc.x));
}
function getBeam(keta, kazu) {
var _local1;
if (keta == 0) {
trace("\u30BC\u30ED\u3067\u5272\u308A\u7B97\u3092\u884C\u304A\u3046\u3068\u3057\u307E\u3057\u305F");
return(0);
}
_local1 = kazu;
_local1 = Math.floor(_local1 / (keta * 10)) * 10;
kazu = Math.floor(kazu / keta);
return(kazu - _local1);
}
}
Symbol 849 MovieClip [__Packages.nigoro.lib.duplex.Math.Vector2D] Frame 0
class nigoro.lib.duplex.Math.Vector2D
{
var x, y;
function Vector2D (a, b, c, d) {
x = c - a;
y = d - b;
}
}
Symbol 850 MovieClip [__Packages.task.Net] Frame 0
class task.Net
{
var user_name, game_level, tensuu, erra, endflag, myrank, no, sc_block, try_count, max_try, time_out, time_count, erramess;
function Net (un, gl, sc, wr) {
user_name = un;
game_level = gl;
tensuu = sc;
erra = false;
endflag = false;
myrank = -1;
if (wr == 0) {
no = 0;
Hikkosi.setStateString("Open write access");
} else {
no = 11;
Hikkosi.setStateString("Open read access");
}
nigoro.lib.samieru.NigoroFlashManager.setGameID("nigoro003");
nigoro.lib.samieru.NigoroFlashManager.setGameLevel(game_level);
nigoro.lib.samieru.NigoroFlashManager.setPlayerName(user_name);
}
function run() {
switch (no) {
case 0 :
sc_block = new nigoro.lib.samieru.ranking.ScoreBlockSystem();
no = 2;
break;
case 2 :
try_count = 0;
max_try = 5;
time_out = 500;
time_count = 0;
no = 3;
break;
case 3 :
if ((++try_count) > max_try) {
Hikkosi.setStateString("Try count is over");
no = 505;
break;
}
Hikkosi.setStateString("TryCount:" + try_count);
time_count = 0;
sc_block.init();
no = 4;
break;
case 4 :
if ((++time_count) > time_out) {
Hikkosi.setStateString("Wait time is over");
no = 3;
} else {
no = 5;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 4;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
no = 6;
break;
default :
no = 3;
}
break;
var _local2 = new Object();
_local2.level = nigoro.lib.samieru.NigoroFlashManager.getGameLevel();
_local2.score = tensuu.toString();
time_count = 0;
sc_block.setRanking(_local2);
no = 7;
break;
if ((++time_count) > time_out) {
Hikkosi.setStateString("Wait time is over");
no = 3;
} else {
no = 8;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 7;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
Hikkosi.setStateString("god work is end");
no = 9;
var _local4 = sc_block.getData("rank");
myrank = Number(_local4);
endflag = true;
break;
default :
Hikkosi.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
no = 3;
}
break;
no = 10;
break;
break;
sc_block = new nigoro.lib.samieru.ranking.ScoreBlockSystem();
try_count = 0;
max_try = 5;
time_out = 500;
time_count = 0;
no = 12;
break;
if ((++try_count) > max_try) {
Hikkosi.setStateString("Try count is over");
no = 506;
} else {
Hikkosi.setStateString("TryCount:" + try_count);
time_count = 0;
var _local3 = new Object();
_local3.level = game_level.toString();
sc_block.getRanking(_local3, 0, 10);
no = 13;
break;
if ((++time_count) > time_out) {
Hikkosi.setStateString("Wait time is over");
no = 12;
} else {
no = 14;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 13;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
Hikkosi.setStateString("god work is end");
no = 15;
endflag = true;
break;
default :
Hikkosi.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
no = 12;
}
break;
no = 16;
break;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
endflag = true;
}
}
}
}
case 5 :
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 4;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
no = 6;
break;
default :
no = 3;
}
break;
case 6 :
var _local2 = new Object();
_local2.level = nigoro.lib.samieru.NigoroFlashManager.getGameLevel();
_local2.score = tensuu.toString();
time_count = 0;
sc_block.setRanking(_local2);
no = 7;
break;
case 7 :
if ((++time_count) > time_out) {
Hikkosi.setStateString("Wait time is over");
no = 3;
} else {
no = 8;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 7;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
Hikkosi.setStateString("god work is end");
no = 9;
var _local4 = sc_block.getData("rank");
myrank = Number(_local4);
endflag = true;
break;
default :
Hikkosi.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
no = 3;
}
break;
no = 10;
break;
break;
sc_block = new nigoro.lib.samieru.ranking.ScoreBlockSystem();
try_count = 0;
max_try = 5;
time_out = 500;
time_count = 0;
no = 12;
break;
if ((++try_count) > max_try) {
Hikkosi.setStateString("Try count is over");
no = 506;
} else {
Hikkosi.setStateString("TryCount:" + try_count);
time_count = 0;
var _local3 = new Object();
_local3.level = game_level.toString();
sc_block.getRanking(_local3, 0, 10);
no = 13;
break;
if ((++time_count) > time_out) {
Hikkosi.setStateString("Wait time is over");
no = 12;
} else {
no = 14;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 13;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
Hikkosi.setStateString("god work is end");
no = 15;
endflag = true;
break;
default :
Hikkosi.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
no = 12;
}
break;
no = 16;
break;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
endflag = true;
}
}
}
case 8 :
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 7;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
Hikkosi.setStateString("god work is end");
no = 9;
var _local4 = sc_block.getData("rank");
myrank = Number(_local4);
endflag = true;
break;
default :
Hikkosi.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
no = 3;
}
break;
case 9 :
no = 10;
break;
case 10 :
break;
case 11 :
sc_block = new nigoro.lib.samieru.ranking.ScoreBlockSystem();
try_count = 0;
max_try = 5;
time_out = 500;
time_count = 0;
no = 12;
break;
case 12 :
if ((++try_count) > max_try) {
Hikkosi.setStateString("Try count is over");
no = 506;
} else {
Hikkosi.setStateString("TryCount:" + try_count);
time_count = 0;
var _local3 = new Object();
_local3.level = game_level.toString();
sc_block.getRanking(_local3, 0, 10);
no = 13;
break;
if ((++time_count) > time_out) {
Hikkosi.setStateString("Wait time is over");
no = 12;
} else {
no = 14;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 13;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
Hikkosi.setStateString("god work is end");
no = 15;
endflag = true;
break;
default :
Hikkosi.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
no = 12;
}
break;
no = 16;
break;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
endflag = true;
}
}
case 13 :
if ((++time_count) > time_out) {
Hikkosi.setStateString("Wait time is over");
no = 12;
} else {
no = 14;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 13;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
Hikkosi.setStateString("god work is end");
no = 15;
endflag = true;
break;
default :
Hikkosi.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
no = 12;
}
break;
no = 16;
break;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
endflag = true;
}
case 14 :
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 13;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
Hikkosi.setStateString("god work is end");
no = 15;
endflag = true;
break;
default :
Hikkosi.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
no = 12;
}
break;
case 15 :
no = 16;
break;
case 16 :
break;
case 505 :
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
case 506 :
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
case 507 :
endflag = true;
}
return(true);
}
function getRank() {
return(myrank);
}
function errorMess() {
return(erramess);
}
function isError() {
return(erra);
}
function getEnd() {
return(endflag);
}
function getObject() {
return(sc_block.getRankingArray());
}
function finalize(tc) {
}
}
Symbol 851 MovieClip [__Packages.nigoro.lib.samieru.ranking.ScoreBlockSystem] Frame 0
class nigoro.lib.samieru.ranking.ScoreBlockSystem
{
static var access_status;
var lvars, score_session, gvars, data_str;
function ScoreBlockSystem () {
setStatus(ACCESS_NONE);
}
static function setStatus(st) {
var _local1 = access_status;
access_status = st;
return(_local1);
}
function init() {
var _local2 = new LoadVars();
lvars = new nigoro.lib.samieru.ranking.event.ScoreBlockListener();
if (nigoro.lib.samieru.NigoroFlashManager.getPlayerName() != "") {
_local2.game_id = nigoro.lib.samieru.NigoroFlashManager.getGameID();
_local2.name = nigoro.lib.samieru.NigoroFlashManager.getPlayerName();
score_session = "";
setStatus(ACCESS_CONNECT);
_local2.sendAndLoad("/ranking/init.php", lvars, "POST");
} else {
setStatus(ACCESS_NODATA);
}
}
function setRanking(data_obj) {
var _local3 = new LoadVars();
for (var _local4 in data_obj) {
_local3[_local4] = data_obj[_local4];
}
_local3.CHECKCODE = makeCheckCode(lvars.SCSYS);
_local3.SCSYS = lvars.SCSYS;
lvars = new nigoro.lib.samieru.ranking.event.ScoreBlockListener();
setStatus(ACCESS_CONNECT);
_local3.sendAndLoad("/ranking/set.php", lvars, "POST");
}
function getRanking(data_obj, page, max) {
var _local2 = new LoadVars();
gvars = new nigoro.lib.samieru.ranking.event.ScoreBlockGetListener();
for (var _local4 in data_obj) {
_local2[_local4] = data_obj[_local4];
}
_local2.game_id = nigoro.lib.samieru.NigoroFlashManager.getGameID();
_local2._PAGENUMBER_ = page;
_local2._MAXCOUNT_ = max;
data_str = "";
setStatus(ACCESS_CONNECT);
_local2.sendAndLoad("/ranking/get.php", gvars, "POST");
}
function getRankingArray() {
return(gvars.getRankingArray());
}
function getData(key) {
return(lvars.getData(key));
}
function getLoadString() {
return(lvars.getLoadString());
}
static function getStatus() {
return(access_status);
}
function getDataString() {
return(gvars.data_str);
}
function makeCheckCode(session) {
var _local2 = 0;
var _local3 = nigoro.lib.samieru.NigoroFlashManager.getGameID();
var _local4 = nigoro.lib.samieru.NigoroFlashManager.getPlayerName();
var _local6;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local2 + _local3.charCodeAt(_local1);
_local1++;
}
_local1 = 0;
while (_local1 < _local4.length) {
_local2 = _local2 + _local4.charCodeAt(_local1);
_local1++;
}
_local1 = 0;
while (_local1 < session.length) {
_local2 = _local2 + session.charCodeAt(_local1);
_local1++;
}
_local2 = _local2 | 598;
_local6 = (new libs.MD5(_local2.toString())).value;
return(_local6);
}
static var ACCESS_NONE = 0;
static var ACCESS_CONNECT = 1;
static var ACCESS_OK = 200;
static var ACCESS_NODATA = 201;
static var ACCESS_ERROR = 500;
static var ACCESS_CONNECT_ERROR = 501;
static var ACCESS_DB_ERROR = 502;
}
Symbol 852 MovieClip [__Packages.nigoro.lib.samieru.ranking.event.ScoreBlockListener] Frame 0
class nigoro.lib.samieru.ranking.event.ScoreBlockListener extends LoadVars
{
var load_str, SCSYS, code, session_id;
function ScoreBlockListener () {
super();
load_str = "";
SCSYS = "";
}
function onLoad(chk) {
if (chk) {
switch (Number(code)) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
if (session_id != "") {
SCSYS = session_id;
}
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK);
break;
default :
SCSYS = "";
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_ERROR);
}
} else {
SCSYS = "";
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_ERROR);
}
}
function getData(key) {
return(String(this[key]));
}
function getLoadString() {
return(load_str);
}
}
Symbol 853 MovieClip [__Packages.nigoro.lib.samieru.ranking.event.ScoreBlockGetListener] Frame 0
class nigoro.lib.samieru.ranking.event.ScoreBlockGetListener extends LoadVars
{
var code, data_str, data;
function ScoreBlockGetListener () {
super();
}
function onLoad(chk) {
if (chk) {
switch (Number(code)) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK);
data_str = unescape(data);
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_NODATA :
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_NODATA);
data_str = "no data";
break;
default :
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_ERROR);
data_str = "ERROR " + code;
}
} else {
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_ERROR);
}
}
function getRankingArray() {
var _local10 = new Array();
if (data_str != "") {
var _local9 = data_str.split(newline);
var _local7 = 0;
while (_local7 < _local9.length) {
if (_local9[_local7] != "") {
var _local8 = new Object();
var _local6 = _local9[_local7].toString().split("&");
var _local2 = 0;
while (_local2 < _local6.length) {
var _local3 = _local6[_local2].toString().split("=");
var _local5 = unescape(_local3[0]);
var _local4 = unescape(_local3[1]);
_local8[_local5] = _local4;
_local2++;
}
_local10.push(_local8);
}
_local7++;
}
}
return(_local10);
}
}
Symbol 854 MovieClip [__Packages.nigoro.lib.samieru.NigoroFlashManager] Frame 0
class nigoro.lib.samieru.NigoroFlashManager
{
static var BGM_LAYER, GAME_LEVEL, GAME_ID, PLAYER_NAME, MASTER_VOLUME, ACCESS_STATUS, NIGORO_SESSION_ID;
function NigoroFlashManager () {
}
static function startSystem(base_mc) {
BGM_LAYER = base_mc.createEmptyMovieClip("music_layer", base_mc.getNextHighestDepth());
GAME_LEVEL = 0;
GAME_ID = "";
PLAYER_NAME = "";
SYSTEM_STARTED = true;
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback("outOfSwf", null, outOfSwf);
}
}
static function setPlayerName(namestr) {
PLAYER_NAME = namestr;
}
static function getPlayerName() {
if ((PLAYER_NAME != undefined) && (PLAYER_NAME.length > 0)) {
return(PLAYER_NAME);
}
return("");
}
static function setFlashQuality(qt) {
_quality = qt;
}
static function isSystemStarted() {
return(SYSTEM_STARTED);
}
static function getBgmLayer() {
return(BGM_LAYER);
}
static function setBgmMute(flag) {
var _local1 = new Sound(getBgmLayer());
if (flag) {
_local1.setVolume(0);
} else {
_local1.setVolume(100);
}
}
static function isMute() {
return(MUTE);
}
static function setMute(flag) {
MUTE = flag;
if (MUTE) {
MASTER_SOUND.setVolume(0);
} else {
MASTER_SOUND.setVolume(MASTER_VOLUME);
}
}
static function setMasterVolume(vol) {
if (MUTE) {
MASTER_SOUND.setVolume(0);
} else {
MASTER_SOUND.setVolume(vol);
}
MASTER_VOLUME = vol;
}
static function setSWFFlag(flag) {
OUT_OF_SWF = flag;
}
static function isPause() {
return(PAUSED);
}
static function setPause(pause_flag) {
PAUSED = pause_flag;
}
static function outOfSwf() {
setSWFFlag(true);
}
static function getGameLevel() {
return(GAME_LEVEL);
}
static function getGameID() {
return(GAME_ID);
}
static function setGameLevel(level) {
GAME_LEVEL = level;
}
static function setGameID(id) {
GAME_ID = id;
}
static function getAccessStatus() {
return(ACCESS_STATUS);
}
static function setAccessStatus(status) {
ACCESS_STATUS = status;
}
static function checkGameClear() {
var _local2 = new nigoro.lib.samieru.event.GameClearListener();
var _local1 = new LoadVars();
_local1.id = GAME_ID;
_local1.level = GAME_LEVEL;
ACCESS_STATUS = 1;
NIGORO_SESSION_ID = "";
_local1.sendAndLoad("/register/clearcheck.php", _local2, "POST");
}
static function setNigoroSession(sid) {
NIGORO_SESSION_ID = sid;
}
static function getNigoroSession() {
return(NIGORO_SESSION_ID);
}
static var MASTER_SOUND = new Sound();
static var OUT_OF_SWF = false;
static var PAUSED = false;
static var ACCESS_STATUS_OK = 0;
static var ACCESS_STATUS_RUNNING = 1;
static var ACCESS_STATUS_ERROR = 2;
static var SYSTEM_STARTED = false;
static var MUTE = false;
}
Symbol 855 MovieClip [__Packages.nigoro.lib.samieru.event.GameClearListener] Frame 0
class nigoro.lib.samieru.event.GameClearListener extends LoadVars
{
var NIGORO;
function GameClearListener () {
super();
}
function onLoad(success) {
if (success) {
if ((NIGORO != "") && (NIGORO != "ERROR")) {
nigoro.lib.samieru.NigoroFlashManager.setNigoroSession(NIGORO);
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_OK);
} else {
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_ERROR);
}
} else {
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_ERROR);
}
}
}
Symbol 856 MovieClip [__Packages.libs.MD5] Frame 0
class libs.MD5
{
var g_dataArray;
function MD5 (seed) {
g_dataArray = MD5_hash(seed);
}
function toString() {
var _local2;
var _local4;
var _local3;
_local4 = "";
_local2 = 0;
while (_local2 < 16) {
_local3 = g_dataArray[_local2];
_local4 = _local4 + "0123456789abcdef".charAt((_local3 >> 4) & 15);
_local4 = _local4 + "0123456789abcdef".charAt(_local3 & 15);
_local2++;
}
return(_local4);
}
function get value() {
return(toString());
}
function MD5_F(x, y, z) {
return((x & y) | ((~x) & z));
}
function MD5_G(x, y, z) {
return((x & z) | (y & (~z)));
}
function MD5_H(x, y, z) {
return((x ^ y) ^ z);
}
function MD5_I(x, y, z) {
return(y ^ (x | (~z)));
}
function MD5_pack(n32) {
return(new Array(n32 & 255, (n32 >>> 8) & 255, (n32 >>> 16) & 255, (n32 >>> 24) & 255));
}
function MD5_hash(seed) {
var _local13;
var _local11;
var _local9;
var _local2;
var _local3;
var _local12;
var _local7 = new Array(1732584193, 4023233417, 2562383102, 271733878);
var _local4 = new Array(0, 1, 2, 3);
var _local10 = new Array(16);
var _local8 = new Array(4);
var _local5 = new Array();
var _local6 = 0;
_local2 = 0;
while (_local2 < seed.length) {
_local3 = seed.charCodeAt(_local2);
if (_local3 <= 127) {
_local5[_local6++] = _local3;
} else if (_local3 <= 2047) {
_local5[_local6++] = ((_local3 >> 6) & 63) | 192;
_local5[_local6++] = (_local3 & 63) | 128;
} else if (_local3 <= 65535) {
_local5[_local6++] = ((_local3 >> 12) & 15) | 224;
_local5[_local6++] = ((_local3 >> 6) & 63) | 128;
_local5[_local6++] = (_local3 & 63) | 128;
} else {
_local5[_local6++] = ((_local3 >> 18) & 7) | 240;
_local5[_local6++] = ((_local3 >> 12) & 63) | 128;
_local5[_local6++] = ((_local3 >> 6) & 63) | 128;
_local5[_local6++] = (_local3 & 63) | 128;
}
_local2++;
}
var _local15 = _local5.length;
var _local17 = _local15 & 63;
var _local16 = ((_local17 < 56) ? (56 - _local17) : (120 - _local17));
if (_local16 > 0) {
_local5[_local6++] = 128;
_local2 = 0;
while (_local2 < (_local16 - 1)) {
_local5[_local6] = 0;
_local2++;
_local6++;
}
}
_local5 = _local5.concat(MD5_pack(_local15 * 8), MD5_pack(0));
_local15 = _local15 + (_local16 + 8);
_local12 = 0;
while (_local12 < _local15) {
_local2 = 0;
_local3 = _local12;
while (_local2 < 16) {
_local10[_local2] = ((_local5[_local3] | (_local5[_local3 + 1] << 8)) | (_local5[_local3 + 2] << 16)) | (_local5[_local3 + 3] << 24);
_local2++;
_local3 = _local3 + 4;
}
_local2 = 0;
while (_local2 < 4) {
_local8[_local2] = _local7[_local2];
_local2++;
}
_local2 = 0;
while (_local2 < 4) {
_local13 = MD5_round[_local2][0];
_local11 = MD5_round[_local2][1];
_local3 = 0;
while (_local3 < 16) {
MD5_apply_round(_local10, _local8, _local13, _local4, _local11[_local3]);
_local9 = _local4[0];
_local4[0] = _local4[3];
_local4[3] = _local4[2];
_local4[2] = _local4[1];
_local4[1] = _local9;
_local3++;
}
_local2++;
}
_local2 = 0;
while (_local2 < 4) {
_local7[_local2] = _local7[_local2] + _local8[_local2];
_local7[_local2] = MD5_number(_local7[_local2]);
_local2++;
}
_local12 = _local12 + 64;
}
_local5 = new Array();
return(_local5.concat(MD5_pack(_local7[0]), MD5_pack(_local7[1]), MD5_pack(_local7[2]), MD5_pack(_local7[3])));
}
function MD5_number(n) {
while (n < 0) {
n = n + 4294967296;
}
while (n > 4294967295) {
n = n - 4294967296;
}
return(n);
}
function MD5_apply_round(x, s, f, abcd, r) {
var _local5;
var _local4;
var _local10;
var _local8;
var _local12;
var _local6;
var _local13;
var _local2;
var _local9;
_local5 = abcd[0];
_local4 = abcd[1];
_local10 = abcd[2];
_local8 = abcd[3];
_local12 = r[0];
_local6 = r[1];
_local13 = r[2];
_local9 = f(s[_local4], s[_local10], s[_local8]);
_local2 = ((s[_local5] + _local9) + x[_local12]) + MD5_T[_local13];
_local2 = MD5_number(_local2);
_local2 = (_local2 << _local6) | (_local2 >>> (32 - _local6));
_local2 = _local2 + s[_local4];
s[_local5] = MD5_number(_local2);
}
var MD5_T = [0, 3614090360, 3905402710, 606105819, 3250441966, 4118548399, 1200080426, 2821735955, 4249261313, 1770035416, 2336552879, 4294925233, 2304563134, 1804603682, 4254626195, 2792965006, 1236535329, 4129170786, 3225465664, 643717713, 3921069994, 3593408605, 38016083, 3634488961, 3889429448, 568446438, 3275163606, 4107603335, 1163531501, 2850285829, 4243563512, 1735328473, 2368359562, 4294588738, 2272392833, 1839030562, 4259657740, 2763975236, 1272893353, 4139469664, 3200236656, 681279174, 3936430074, 3572445317, 76029189, 3654602809, 3873151461, 530742520, 3299628645, 4096336452, 1126891415, 2878612391, 4237533241, 1700485571, 2399980690, 4293915773, 2240044497, 1873313359, 4264355552, 2734768916, 1309151649, 4149444226, 3174756917, 718787259, 3951481745];
var MD5_round1 = [[0, 7, 1], [1, 12, 2], [2, 17, 3], [3, 22, 4], [4, 7, 5], [5, 12, 6], [6, 17, 7], [7, 22, 8], [8, 7, 9], [9, 12, 10], [10, 17, 11], [11, 22, 12], [12, 7, 13], [13, 12, 14], [14, 17, 15], [15, 22, 16]];
var MD5_round2 = [[1, 5, 17], [6, 9, 18], [11, 14, 19], [0, 20, 20], [5, 5, 21], [10, 9, 22], [15, 14, 23], [4, 20, 24], [9, 5, 25], [14, 9, 26], [3, 14, 27], [8, 20, 28], [13, 5, 29], [2, 9, 30], [7, 14, 31], [12, 20, 32]];
var MD5_round3 = [[5, 4, 33], [8, 11, 34], [11, 16, 35], [14, 23, 36], [1, 4, 37], [4, 11, 38], [7, 16, 39], [10, 23, 40], [13, 4, 41], [0, 11, 42], [3, 16, 43], [6, 23, 44], [9, 4, 45], [12, 11, 46], [15, 16, 47], [2, 23, 48]];
var MD5_round4 = [[0, 6, 49], [7, 10, 50], [14, 15, 51], [5, 21, 52], [12, 6, 53], [3, 10, 54], [10, 15, 55], [1, 21, 56], [8, 6, 57], [15, 10, 58], [6, 15, 59], [13, 21, 60], [4, 6, 61], [11, 10, 62], [2, 15, 63], [9, 21, 64]];
var MD5_round = new Array(new Array(libs.MD5.prototype.MD5_F, libs.MD5.prototype.MD5_round1), new Array(libs.MD5.prototype.MD5_G, libs.MD5.prototype.MD5_round2), new Array(libs.MD5.prototype.MD5_H, libs.MD5.prototype.MD5_round3), new Array(libs.MD5.prototype.MD5_I, libs.MD5.prototype.MD5_round4));
}
Symbol 857 MovieClip [__Packages.nigoro.lib.samieru.sound.MusicPlayer] Frame 0
class nigoro.lib.samieru.sound.MusicPlayer extends Sound
{
var loop_point, vol, count, start_point, playing, loops, lp_cnt;
function MusicPlayer (mc) {
super(mc);
loop_point = 0;
}
function initPlay() {
vol = 100;
count = 0;
start_point = 0;
playing = false;
}
function isPlaying() {
return(playing);
}
function setLoopPoint(ms) {
loop_point = ms;
}
function startPlay(lp) {
loops = lp;
lp_cnt = 0;
setVolume(vol);
start(0);
playing = true;
}
function fadeOut(speed) {
vol = vol - speed;
if (vol < 0) {
vol = 0;
}
if (vol > 0) {
setVolume(vol);
} else {
stop();
}
}
function fadeIn(speed) {
setVolume(vol + speed);
}
function onSoundComplete() {
if (loops > 0) {
if ((++lp_cnt) >= loops) {
stop();
return(undefined);
}
}
start(loop_point);
}
function start(point) {
playing = true;
super.start(point);
}
function stop() {
playing = false;
super.stop();
}
function setVolume(volume) {
if (volume < 0) {
vol = 0;
}
if (volume > 100) {
volume = 100;
}
super.setVolume(volume);
}
}
Symbol 858 MovieClip [__Packages.nigoro.lib.duplex.Math.Collosion] Frame 0
class nigoro.lib.duplex.Math.Collosion
{
function Collosion () {
}
function lineCrossPoint(sx1, sy1, sx2, sy2, dx1, dy1, dx2, dy2) {
var _local6;
var _local5;
_local6 = dx2 - dx1;
_local5 = dy2 - dy1;
var _local18 = sx2 - sx1;
var _local14 = sy2 - sy1;
var _local2 = -_local14;
var _local1 = _local18;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (_local3 > 0) {
_local3 = 1 / _local3;
}
_local2 = _local2 * _local3;
_local1 = _local1 * _local3;
var _local9 = -((sx1 * _local2) + (sy1 * _local1));
var _local4 = (-(((_local2 * dx1) + (_local1 * dy1)) + _local9)) / ((_local2 * _local6) + (_local1 * _local5));
var _local8 = dx1 + (_local6 * _local4);
var _local7 = dy1 + (_local5 * _local4);
var _local15 = _local8 - sx1;
var _local11 = _local7 - sy1;
var _local20 = _local8 - sx2;
var _local19 = _local7 - sy2;
var _local10 = (_local15 * _local20) + (_local11 * _local19);
if (_local10 < 0) {
if ((_local4 > 0) && (_local4 <= 1)) {
return(true);
}
}
return(false);
}
function pointLength(ax, ay, bx, by) {
var _local2 = bx - ax;
var _local1 = by - ay;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
function hitCheck(p1, p2) {
if ((p1.x <= (p2.x + p2.w)) && ((p1.x + p1.w) >= p2.x)) {
if ((p1.y <= (p2.y + p2.h)) && ((p1.y + p1.h) >= p2.y)) {
return(true);
}
}
return(false);
}
function innerCheck(p1, x, y) {
if ((p1.x <= x) && (((p1.x + p1.w) - 1) >= x)) {
if ((p1.y <= y) && (((p1.y + p1.h) - 1) >= y)) {
return(true);
}
}
return(false);
}
function rHitCheck(p1, p2) {
var _local10 = new Array(4);
var _local8 = new Array(4);
var _local9 = new Array(4);
var _local7 = new Array(4);
var _local11;
var _local12;
var _local4;
var _local3;
var _local2;
var _local13;
var _local14;
_local10[0] = (_local10[3] = p1.x);
_local10[1] = (_local10[2] = p1.x + p1.w);
_local8[0] = (_local8[1] = p1.y);
_local8[2] = (_local8[3] = p1.y + p1.h);
_local11 = (p1.w / 2) + p1.x;
_local12 = (p1.h / 2) + p1.y;
_local2 = 0;
while (_local2 != 4) {
_local4 = _local10[_local2] - _local11;
_local3 = _local8[_local2] - _local12;
_local10[_local2] = ((_local4 * Math.cos(p1.r)) - (_local3 * Math.sin(p1.r))) + _local11;
_local8[_local2] = ((_local4 * Math.sin(p1.r)) + (_local3 * Math.cos(p1.r))) + _local12;
_local2++;
}
_local9[0] = (_local9[3] = p2.x);
_local9[1] = (_local9[2] = p2.x + p2.w);
_local7[0] = (_local7[1] = p2.y);
_local7[2] = (_local7[3] = p2.y + p2.h);
_local11 = (p2.w / 2) + p2.x;
_local12 = (p2.h / 2) + p2.y;
_local2 = 0;
while (_local2 != 4) {
_local4 = _local9[_local2] - _local11;
_local3 = _local7[_local2] - _local12;
_local9[_local2] = ((_local4 * Math.cos(p2.r)) - (_local3 * Math.sin(p2.r))) + _local11;
_local7[_local2] = ((_local4 * Math.sin(p2.r)) + (_local3 * Math.cos(p2.r))) + _local12;
_local2++;
}
_local13 = new nigoro.lib.duplex.Math.Box(_local10[0], _local8[0], _local10[1], _local8[1], _local10[2], _local8[2], _local10[3], _local8[3]);
_local14 = new nigoro.lib.duplex.Math.Box(_local9[0], _local7[0], _local9[1], _local7[1], _local9[2], _local7[2], _local9[3], _local7[3]);
_local2 = 0;
while (_local2 != 4) {
if (isBoxIn(_local13, _local9[_local2], _local7[_local2])) {
return(true);
}
_local2++;
}
_local2 = 0;
while (_local2 != 4) {
if (isBoxIn(_local14, _local10[_local2], _local8[_local2])) {
return(true);
}
_local2++;
}
if (isLineCross(_local13, _local14)) {
return(true);
}
return(false);
}
function isLineCross(bx1, bx2) {
var _local3;
var _local2;
_local3 = 0;
while (_local3 != 4) {
_local2 = 0;
while (_local2 != 4) {
if (lineCrossPoint(bx1.x[_local3], bx1.y[_local3], bx1.x[(_local3 + 1) % 3], bx1.y[(_local3 + 1) % 3], bx2.x[_local2], bx2.y[_local2], bx2.x[(_local2 + 1) % 3], bx2.y[(_local2 + 1) % 3])) {
return(true);
}
_local2++;
}
_local3++;
}
return(false);
}
function isBoxIn(bx, x, y) {
var _local3;
var _local1;
var _local4;
var _local2;
var _local9;
var _local5;
_local2 = new Array(4);
_local3 = new Array(4);
_local9 = 0;
_local1 = 0;
while (_local1 != 4) {
_local3[_local1] = new nigoro.lib.duplex.Math.Vector2D(x, y, bx.x[_local1], bx.y[_local1]);
_local1++;
}
_local4 = new nigoro.lib.duplex.Math.Arithmetic(0);
_local1 = 0;
while (_local1 != 4) {
_local2[_local1] = _local4.radToDeg(_local4.getAngle(_local3[_local1]));
_local2[_local1] = (_local2[_local1] + 360) % 360;
_local1++;
}
if (_local2[0] > _local2[1]) {
_local5 = (_local2[1] + 360) - _local2[0];
} else {
_local5 = _local2[1] - _local2[0];
}
if (_local5 > 180) {
return(false);
}
if (_local2[1] > _local2[2]) {
_local5 = (_local2[2] + 360) - _local2[1];
} else {
_local5 = _local2[2] - _local2[1];
}
if (_local5 > 180) {
return(false);
}
if (_local2[2] > _local2[3]) {
_local5 = (_local2[3] + 360) - _local2[2];
} else {
_local5 = _local2[3] - _local2[2];
}
if (_local5 > 180) {
return(false);
}
if (_local2[3] > _local2[0]) {
_local5 = (_local2[0] + 360) - _local2[3];
} else {
_local5 = _local2[0] - _local2[3];
}
if (_local5 > 180) {
return(false);
}
return(true);
}
}
Symbol 859 MovieClip [__Packages.nigoro.lib.duplex.Math.Rect] Frame 0
class nigoro.lib.duplex.Math.Rect
{
var x, y, w, h;
function Rect (a, b, c, d) {
x = a;
y = b;
w = c;
h = d;
}
}
Symbol 860 MovieClip [__Packages.nigoro.lib.duplex.Math.FreeRect] Frame 0
class nigoro.lib.duplex.Math.FreeRect
{
var x, y, h, w, r;
function FreeRect (a, b, c, d, e) {
x = a;
y = b;
h = c;
w = d;
r = e;
}
}
Symbol 861 MovieClip [__Packages.nigoro.lib.duplex.Math.Box] Frame 0
class nigoro.lib.duplex.Math.Box
{
var x, y;
function Box (x1, y1, x2, y2, x3, y3, x4, y4) {
x = new Array(4);
y = new Array(4);
x[0] = x1;
y[0] = y1;
x[1] = x2;
y[1] = y2;
x[2] = x3;
y[2] = y3;
x[3] = x4;
y[3] = y4;
}
}
Symbol 862 MovieClip [__Packages.nigoro.lib.duplex.Font.FontBase] Frame 0
class nigoro.lib.duplex.Font.FontBase
{
var mw, mh, zy, obj;
function FontBase (mmc, mc_name) {
var _local3 = mmc.attachMovie(mc_name, mc_name + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
var _local4 = _local3._totalframes;
mw = new Array(_local4);
mh = new Array(_local4);
zy = new Array(_local4);
var _local2 = 0;
while (_local2 != _local4) {
_local3.gotoAndStop(_local2 + 1);
mw[_local2] = _local3._width;
mh[_local2] = _local3._height;
zy[_local2] = (mh[0] / 2) - (mh[_local2] / 2);
_local2++;
}
_local3.removeMovieClip();
_local3 = null;
obj = new Object();
obj[0] = mc_name;
obj[1] = mw;
obj[2] = mh;
obj[3] = zy;
}
function getObject() {
return(obj);
}
}
Symbol 863 MovieClip [__Packages.nigoro.lib.duplex.Font.SampleFont] Frame 0
class nigoro.lib.duplex.Font.SampleFont
{
var mc, maxMC, delMC, fontspace, size, x_x, x_y, str, mw, mh, zy, R, G, B, A;
function SampleFont (mmc, f) {
mc = mmc;
maxMC = 0;
delMC = new Array();
fontspace = 3;
size = -1;
x_x = 1;
x_y = 1;
str = f.getObject()[0];
mw = f.getObject()[1];
mh = f.getObject()[2];
zy = f.getObject()[3];
R = (G = (B = 0));
A = 255;
}
function drawTypewriterStrings(sts, x, y) {
var _local8 = 0;
var _local6;
var _local3;
var _local5 = x;
var _local4 = y;
var _local9 = str;
var _local13 = sts;
var _local10 = new flash.geom.ColorTransform(0, 0, 0, 0, R, G, B, A);
var _local12;
var _local7 = x_x;
var _local2 = x_y;
_local6 = sts.charAt(_local8);
_local12 = (mw[0] * _local7) + fontspace;
while (_local6 != "") {
_local3 = chengeStringToMovieClip(_local6);
if (_local3[0] == 0) {
_local5 = _local5 + ((mw[0] * _local7) + fontspace);
} else {
delMC[maxMC] = mc.attachMovie(_local9, _local9 + mc.getNextHighestDepth(), mc.getNextHighestDepth());
delMC[maxMC].gotoAndStop(_local3[0]);
delMC[maxMC]._width = delMC[maxMC]._width * _local7;
delMC[maxMC]._height = delMC[maxMC]._height * _local2;
delMC[maxMC]._x = _local5 + (mw[0] / 2);
switch (_local3[1]) {
case 0 :
delMC[maxMC]._y = ((_local4 + (mh[0] * _local2)) - (mh[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2);
break;
case 1 :
delMC[maxMC]._y = _local4 + (delMC[maxMC]._height / 2);
break;
case 2 :
delMC[maxMC]._y = (_local4 + (zy[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2);
break;
case 3 :
delMC[maxMC]._y = (((_local4 + (mh[0] * _local2)) - (mh[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2)) + (2 * _local2);
}
_local5 = _local5 + _local12;
delMC[maxMC].transform.colorTransform = _local10;
maxMC++;
}
_local8++;
_local6 = sts.charAt(_local8);
}
_local10 = null;
return(_local5);
}
function drawStrings(sts, x, y) {
var _local7 = 0;
var _local6;
var _local3;
var _local5 = x;
var _local4 = y;
var _local9 = str;
var _local12 = sts;
var _local10 = new flash.geom.ColorTransform(0, 0, 0, 0, R, G, B, A);
var _local8 = x_x;
var _local2 = x_y;
_local6 = sts.charAt(_local7);
while (_local6 != "") {
_local3 = chengeStringToMovieClip(_local6);
if (_local3[0] == 0) {
_local5 = _local5 + (((mw[0] * _local8) / 3) + fontspace);
} else {
delMC[maxMC] = mc.attachMovie(_local9, _local9 + mc.getNextHighestDepth(), mc.getNextHighestDepth());
delMC[maxMC].gotoAndStop(_local3[0]);
delMC[maxMC]._width = delMC[maxMC]._width * _local8;
delMC[maxMC]._height = delMC[maxMC]._height * _local2;
delMC[maxMC]._x = _local5 + (delMC[maxMC]._width / 2);
switch (_local3[1]) {
case 0 :
delMC[maxMC]._y = ((_local4 + (mh[0] * _local2)) - (mh[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2);
break;
case 1 :
delMC[maxMC]._y = _local4 + (delMC[maxMC]._height / 2);
break;
case 2 :
delMC[maxMC]._y = (_local4 + (zy[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2);
break;
case 3 :
delMC[maxMC]._y = (((_local4 + (mh[0] * _local2)) - (mh[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2)) + (2 * _local2);
}
_local5 = _local5 + (delMC[maxMC]._width + fontspace);
delMC[maxMC].transform.colorTransform = _local10;
maxMC++;
}
_local7++;
_local6 = sts.charAt(_local7);
}
_local10 = null;
return(_local5);
}
function controlFont(fn, tp, dt) {
var _local4 = 0;
switch (tp) {
case "addx" :
delMC[fn]._x = delMC[fn]._x + dt;
break;
case "addy" :
delMC[fn]._y = delMC[fn]._y + dt;
break;
case "addw" :
delMC[fn]._width = delMC[fn]._width + dt;
break;
case "addh" :
delMC[fn]._height = delMC[fn]._height + dt;
break;
case "addr" :
delMC[fn]._rotation = delMC[fn]._rotation + dt;
break;
case "setx" :
delMC[fn]._x = dt;
break;
case "sety" :
delMC[fn]._y = dt;
break;
case "setw" :
delMC[fn]._width = dt;
break;
case "seth" :
delMC[fn]._height = dt;
break;
case "setr" :
delMC[fn]._rotation = dt;
break;
case "getx" :
return(delMC[fn]._x);
case "gety" :
return(delMC[fn]._y);
case "getw" :
return(delMC[fn]._width);
case "geth" :
return(delMC[fn]._height);
case "getr" :
return(delMC[fn]._rotation);
case "chcol" :
var _local5 = new flash.geom.ColorTransform(0, 0, 0, 0, R, G, B, A);
delMC[fn].transform.colorTransform = _local5;
}
return(_local4);
}
function getTotalFont() {
return(maxMC);
}
function allDeleteFont() {
var _local2;
_local2 = 0;
while (_local2 != delMC.length) {
delMC[_local2].removeMovieClip();
delMC[_local2] = null;
_local2++;
}
maxMC = 0;
}
function backSetFontColor(mr, mg, mb, ma) {
var _local4 = new flash.geom.ColorTransform(0, 0, 0, 0, mr, mg, mb, ma);
var _local2;
var _local3 = maxMC;
_local2 = 0;
while (_local2 != _local3) {
delMC[_local2].transform.colorTransform = _local4;
_local2++;
}
}
function backSetFontPosition(addx, addy) {
var _local2;
var _local3 = maxMC;
_local2 = 0;
while (_local2 != _local3) {
delMC[_local2]._x = delMC[_local2]._x + addx;
delMC[_local2]._y = delMC[_local2]._y + addy;
_local2++;
}
}
function chengFont(fn, nst) {
var _local2 = new Array(2);
_local2 = chengeStringToMovieClip(nst);
if (_local2[0] != -1) {
delMC[fn].gotoAndStop(_local2[0]);
}
}
function setFontColor(mr, mg, mb, ma) {
R = mr;
G = mg;
B = mb;
A = ma;
}
function setDefaultFontColor() {
R = 0;
G = 0;
B = 0;
A = 255;
}
function setDefault() {
setDefaultFontColor();
setDefaultFontSize();
setDefaultSpace();
}
function setFontSize(sz) {
size = sz;
x_x = sz / mw[0];
x_y = sz / mh[0];
}
function getFontSize() {
return(size);
}
function setDefaultFontSize() {
size = -1;
x_x = 1;
x_y = 1;
}
function setDefaultSpace() {
fontspace = 3;
}
function setSpace(num) {
fontspace = num;
}
function chengeStringToMovieClip(s) {
var _local1 = new Array(2);
_local1[1] = 0;
switch (s) {
case " " :
_local1[0] = 0;
break;
case "0" :
_local1[0] = 1;
break;
case "1" :
_local1[0] = 2;
break;
case "2" :
_local1[0] = 3;
break;
case "3" :
_local1[0] = 4;
break;
case "4" :
_local1[0] = 5;
break;
case "5" :
_local1[0] = 6;
break;
case "6" :
_local1[0] = 7;
break;
case "7" :
_local1[0] = 8;
break;
case "8" :
_local1[0] = 9;
break;
case "9" :
_local1[0] = 10;
break;
case "!" :
_local1[0] = 11;
break;
case "\"" :
_local1[0] = 12;
_local1[1] = 1;
break;
case "#" :
_local1[0] = 13;
break;
case "$" :
_local1[0] = 14;
break;
case "%" :
_local1[0] = 15;
break;
case "&" :
_local1[0] = 16;
break;
case "'" :
_local1[0] = 17;
_local1[1] = 1;
break;
case "(" :
_local1[0] = 18;
break;
case ")" :
_local1[0] = 19;
break;
case "-" :
_local1[0] = 20;
_local1[1] = 2;
break;
case "=" :
_local1[0] = 21;
_local1[1] = 2;
break;
case "^" :
_local1[0] = 22;
_local1[1] = 1;
break;
case "~" :
_local1[0] = 23;
_local1[1] = 2;
break;
case "\\" :
_local1[0] = 24;
break;
case "|" :
_local1[0] = 25;
break;
case "@" :
_local1[0] = 26;
break;
case "`" :
_local1[0] = 27;
_local1[1] = 1;
break;
case "[" :
_local1[0] = 28;
break;
case "]" :
_local1[0] = 29;
break;
case ";" :
_local1[0] = 30;
break;
case ":" :
_local1[0] = 31;
break;
case "+" :
_local1[0] = 32;
_local1[1] = 2;
break;
case "*" :
_local1[0] = 33;
_local1[1] = 2;
break;
case "," :
_local1[0] = 34;
break;
case "." :
_local1[0] = 35;
break;
case "<" :
_local1[0] = 36;
_local1[1] = 2;
break;
case ">" :
_local1[0] = 37;
_local1[1] = 2;
break;
case "/" :
_local1[0] = 38;
_local1[1] = 2;
break;
case "?" :
_local1[0] = 39;
break;
case "_" :
_local1[0] = 40;
break;
case "A" :
_local1[0] = 41;
break;
case "B" :
_local1[0] = 42;
break;
case "C" :
_local1[0] = 43;
break;
case "D" :
_local1[0] = 44;
break;
case "E" :
_local1[0] = 45;
break;
case "F" :
_local1[0] = 46;
break;
case "G" :
_local1[0] = 47;
break;
case "H" :
_local1[0] = 48;
break;
case "I" :
_local1[0] = 49;
break;
case "J" :
_local1[0] = 50;
break;
case "K" :
_local1[0] = 51;
break;
case "L" :
_local1[0] = 52;
break;
case "M" :
_local1[0] = 53;
break;
case "N" :
_local1[0] = 54;
break;
case "O" :
_local1[0] = 55;
break;
case "P" :
_local1[0] = 56;
break;
case "Q" :
_local1[0] = 57;
break;
case "R" :
_local1[0] = 58;
break;
case "S" :
_local1[0] = 59;
break;
case "T" :
_local1[0] = 60;
break;
case "U" :
_local1[0] = 61;
break;
case "V" :
_local1[0] = 62;
break;
case "W" :
_local1[0] = 63;
break;
case "X" :
_local1[0] = 64;
break;
case "Y" :
_local1[0] = 65;
break;
case "Z" :
_local1[0] = 66;
break;
case "a" :
_local1[0] = 67;
break;
case "b" :
_local1[0] = 68;
break;
case "c" :
_local1[0] = 69;
break;
case "d" :
_local1[0] = 70;
break;
case "e" :
_local1[0] = 71;
break;
case "f" :
_local1[0] = 72;
break;
case "g" :
_local1[0] = 73;
_local1[1] = 3;
break;
case "h" :
_local1[0] = 74;
break;
case "i" :
_local1[0] = 75;
break;
case "j" :
_local1[0] = 76;
_local1[1] = 3;
break;
case "k" :
_local1[0] = 77;
break;
case "l" :
_local1[0] = 78;
break;
case "m" :
_local1[0] = 79;
break;
case "n" :
_local1[0] = 80;
break;
case "o" :
_local1[0] = 81;
break;
case "p" :
_local1[0] = 82;
_local1[1] = 3;
break;
case "q" :
_local1[0] = 83;
_local1[1] = 3;
break;
case "r" :
_local1[0] = 84;
break;
case "s" :
_local1[0] = 85;
break;
case "t" :
_local1[0] = 86;
break;
case "u" :
_local1[0] = 87;
break;
case "v" :
_local1[0] = 88;
break;
case "w" :
_local1[0] = 89;
break;
case "x" :
_local1[0] = 90;
break;
case "y" :
_local1[0] = 91;
_local1[1] = 3;
break;
case "z" :
_local1[0] = 92;
break;
default :
_local1[0] = -1;
trace("err");
}
return(_local1);
}
}
Symbol 864 MovieClip [__Packages.task.AlphaFade] Frame 0
class task.AlphaFade implements nigoro.lib.duplex.Task.Task
{
var mc, speed, st, max, myalpha;
function AlphaFade (mmc, type, almax, sp) {
mc = mmc;
speed = sp;
if (type) {
st = 0;
max = almax;
myalpha = 0;
} else {
st = 1;
max = 0;
myalpha = almax;
}
}
function init(no, tc) {
}
function run(tc) {
if (mc == undefined) {
return(false);
}
switch (st) {
case 0 :
myalpha = myalpha + speed;
if (myalpha >= max) {
mc._alpha = max;
return(false);
}
break;
case 1 :
myalpha = myalpha - speed;
if (myalpha > max) {
break;
}
mc._alpha = max;
return(false);
}
mc._alpha = myalpha;
return(true);
}
function finalize(tc) {
mc = null;
}
function talkTask(mess) {
return(mess);
}
}
Symbol 865 MovieClip [__Packages.task.ScSora] Frame 0
class task.ScSora implements nigoro.lib.duplex.Task.Task
{
var mc, counter, adjust, scstop, gameover, scmode, stopCount, stdemo, stdemocounter, ststa, scstopad;
function ScSora (mmc, st) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 0;
mc._y = 0;
}
function init(no, tc) {
counter = 0;
tc.regstData("sora", "no", no);
adjust = 0;
scstop = false;
gameover = false;
scmode = 1;
stopCount = 0;
stdemo = true;
stdemocounter = 0;
ststa = 0;
}
function run(tc) {
var _local5;
var _local4 = new Array(1);
var _local3;
var _local7;
if (stdemo) {
stdemocounter++;
switch (ststa) {
case 0 :
if (238 == stdemocounter) {
ststa = 1;
}
break;
case 1 :
adjust = adjust + 334;
if (adjust >= 10000) {
adjust = 10000;
stdemocounter = 0;
ststa = 2;
_root.game.Gs.sendSystem("SetScore", "params", 0);
_root.game.Gs.sendSystem("SetScore", "x", 15);
_root.game.Gs.sendSystem("SetScore", "y", 356);
}
break;
case 2 :
stdemocounter++;
if (stdemocounter == 20) {
_local4[0] = 3;
_local7 = tc.checkData("auto3", "no");
tc.acssesTask(_local7, _local4);
ststa = 3;
}
break;
case 3 :
}
} else {
_local4[0] = 0;
_local7 = tc.checkData("auto3", "no");
if (_local7 == null) {
_local4[0] = 0;
} else {
_local4 = tc.acssesTask(_local7, _local4);
}
if (_local4[0] == 0) {
if (adjust != 0) {
counter++;
}
if (counter == data.FadeTime.yuugata) {
mc.gotoAndPlay(2);
_local4[0] = 0;
_local5 = tc.getData("map", "no");
_local3 = 0;
while (_local3 != _local5.length) {
tc.acssesTask(_local5[_local3], _local4);
_local3++;
}
}
if (counter == data.FadeTime.yoru) {
mc.gotoAndPlay(31);
_local4[0] = 1;
_local5 = tc.getData("map", "no");
_local3 = 0;
while (_local3 != _local5.length) {
tc.acssesTask(_local5[_local3], _local4);
_local3++;
}
}
if ((counter == data.FadeTime.end) && (!scstop)) {
_local4[0] = 2;
tc.acssesTask(_local7, _local4);
scmode = 1;
_local7 = tc.checkData("hasirio", "no");
_local4[0] = 3;
tc.acssesTask(_local7, _local4);
mc.sun.stop();
}
if (scstop) {
adjust = adjust - scstopad;
stopCount++;
if (adjust < 0) {
adjust = 0;
scstop = false;
if (gameover) {
_local4[0] = 7;
_local3 = tc.checkData("score", "no");
_local4 = tc.acssesTask(_local3, _local4);
}
}
}
}
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tc.elaseData("sora");
}
function talkTask(mess) {
var _local2;
switch (mess[0]) {
case 0 :
_local2 = new Array(1);
_local2[0] = counter;
break;
case 1 :
_local2 = new Array(1);
_local2[0] = adjust / 10000;
break;
case 2 :
_local2 = new Array(1);
_local2[0] = scmode;
break;
case 3 :
scstop = true;
scmode = 1;
gameover = true;
mc.sun.stop();
scstopad = 167;
break;
case 4 :
scstop = true;
scmode = 1;
mc.sun.stop();
scstopad = 167;
break;
case 5 :
scmode = 0;
stdemo = false;
break;
case 6 :
scstop = true;
scmode = 1;
mc.sun.stop();
scstopad = 385;
break;
case 7 :
mc.sun.stop();
break;
case 8 :
mc.sun.play();
}
return(_local2);
}
}
Symbol 866 MovieClip [__Packages.data.FadeTime] Frame 0
class data.FadeTime
{
function FadeTime () {
}
static var yuugata = 1800;
static var yoru = 3600;
static var end = 5100;
}
Symbol 867 MovieClip [__Packages.task.ScMap] Frame 0
class task.ScMap implements nigoro.lib.duplex.Task.Task
{
var sp, mc1, mc2;
function ScMap (mmc, st, y, s) {
sp = s;
mc1 = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc1._x = 0;
mc1._y = y;
mc2 = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc2._x = mc1._width;
mc2._y = y;
}
function init(no, tc) {
tc.regstData("map", "no", no);
}
function run(tc) {
var _local3;
var _local2 = new Array(1);
_local3 = tc.checkData("sora", "no");
_local2[0] = 1;
_local2 = tc.acssesTask(_local3, _local2);
mc1._x = mc1._x - (sp * _local2[0]);
mc2._x = mc2._x - (sp * _local2[0]);
if (mc2._x < 0) {
mc1._x = mc2._x;
mc2._x = mc2._x + mc1._width;
}
return(true);
}
function finalize(tc) {
mc1.removeMovieClip();
mc1 = null;
mc2.removeMovieClip();
mc2 = null;
tc.elaseData("map");
}
function talkTask(mess) {
switch (mess[0]) {
case 0 :
mc1.gotoAndPlay(2);
mc2.gotoAndPlay(2);
break;
case 1 :
mc1.gotoAndPlay(31);
mc2.gotoAndPlay(31);
}
return(mess);
}
}
Symbol 868 MovieClip [__Packages.data.ScSpeed] Frame 0
class data.ScSpeed
{
function ScSpeed () {
}
static var yama = 0.8;
static var kabe = 10;
static var kusamura = 30;
static var michi = 35;
static var dote = 38;
static var kusa = 45;
}
Symbol 869 MovieClip [__Packages.task.Auto3rin] Frame 0
class task.Auto3rin implements nigoro.lib.duplex.Task.Task
{
var rnd, mc, set, set_time, tmc, glv, sox, s_brk, s_gat, s_eng, s_key, stayumif, sta, st, counter, scene, data_no, movep, movef, bureiki, my_no, bure_c, move, bcounter, bty, last, stdemo, op, ele;
function Auto3rin (mmc, st, x, y, r, lv) {
rnd = new nigoro.lib.duplex.Math.Arithmetic(r);
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.stop();
mc._x = x;
mc._y = y;
set = new Array(21);
set_time = new Array(20);
tmc = mmc;
glv = lv;
sox = x;
s_brk = new Sound(mc);
s_gat = new Sound(mc);
s_eng = new Sound(mc);
s_key = new Sound(mc);
s_brk.attachSound("breaking.wav");
s_gat.attachSound("track_gatan.wav");
s_eng.attachSound("engine.wav");
s_key.attachSound("engine_start.wav");
stayumif = 2;
mc.trackBody.ayumi.gotoAndPlay(2);
sta = 0;
}
function init(no, tc) {
tc.regstData("auto3", "no", no);
st = 0;
counter = 0;
scene = 0;
data_no = 0;
movep = 0;
movef = 2;
bureiki = false;
my_no = no;
bure_c = 0;
move = 0;
bcounter = 0;
bty = 0;
getData();
last = false;
stdemo = true;
}
function run(tc) {
var _local2;
var _local4;
if (stdemo) {
switch (sta) {
case 0 :
if (stayumif == 132) {
sta = 1;
mc.trackBody.ayumi.gotoAndStop("Wait");
stayumif = 0;
s_eng.start(0);
break;
}
if (stayumif == 40) {
s_key.start(0);
mc.play();
}
stayumif++;
mc.trackBody.ayumi.gotoAndPlay(stayumif);
break;
case 1 :
stayumif = stayumif + 0.1;
mc._x = mc._x + stayumif;
if (mc._x > 740) {
sta = 2;
}
break;
case 2 :
break;
case 3 :
mc._x = mc._x - 2;
if (sox < mc._x) {
break;
}
mc._x = sox;
stdemo = false;
_local2 = tc.checkData("hasirio", "no");
_local4 = [5];
tc.acssesTask(_local2, _local4);
_local2 = tc.checkData("sora", "no");
_local4 = [5];
_local4 = tc.acssesTask(_local2, _local4);
tc.setTask(new task.Death(glv));
}
} else {
if (last) {
switch (movef) {
case 0 :
mc._x = mc._x - (1 * movep);
movep = movep + 0.1;
if (movep > 1) {
movep = 1;
movef = 1;
}
break;
case 1 :
mc._x = mc._x - (1 * movep);
movep = movep - 0.1;
if (movep < 0) {
movep = 0;
movef = 2;
}
break;
case 2 :
mc._x = mc._x + (1 * movep);
movep = movep + 0.1;
if (movep > 1) {
movep = 1;
movef = 3;
}
break;
case 3 :
mc._x = mc._x + (1 * movep);
movep = movep - 0.1;
if (movep < 0) {
movep = 0;
movef = 0;
}
break;
case 4 :
mc._x = mc._x + (1 * movep);
movep = movep + 0.4;
if (mc._x <= 728) {
break;
}
return(false);
}
counter++;
if (counter == 60) {
tc.setTask(new task.Ayumi(tmc, "ayumi_jump", mc._x + mc.trackBody.ayumi._x, mc._y + mc.trackBody.ayumi._y));
mc.trackBody.ayumi._alpha = 0;
movef = 4;
}
return(true);
}
if (((glv > 3) && (!bureiki)) && (movef != 4)) {
bure_c++;
if (bure_c > (600 - (glv * 30))) {
bure_c = 0;
bureiki = true;
move = 10;
bcounter = 0;
bty = 0;
mc.gotoAndPlay("brake");
s_brk.start(0);
}
}
if (!bureiki) {
counter++;
if (counter == 150) {
scene++;
getData();
counter = 0;
}
switch (movef) {
case 0 :
mc._x = mc._x - (1 * movep);
movep = movep + 0.1;
if (movep > 1) {
movep = 1;
movef = 1;
}
break;
case 1 :
mc._x = mc._x - (1 * movep);
movep = movep - 0.1;
if (movep < 0) {
movep = 0;
movef = 2;
}
break;
case 2 :
mc._x = mc._x + (1 * movep);
movep = movep + 0.1;
if (movep > 1) {
movep = 1;
movef = 3;
}
break;
case 3 :
mc._x = mc._x + (1 * movep);
movep = movep - 0.1;
if (movep < 0) {
movep = 0;
movef = 0;
}
break;
case 4 :
mc._x = mc._x + (1 * movep);
movep = movep + 0.4;
if (mc._x <= 728) {
break;
}
return(false);
}
if (movef < 4) {
_local2 = 0;
while (set[_local2] != -1) {
if (set_time[_local2] == counter) {
s_gat.start(0);
mc.gotoAndPlay("jump");
mcJump();
setNoToName(tc, data.Naramura_data.cmp[set[_local2]][1], data.Naramura_data.cmp[set[_local2]][2], data.Naramura_data.cmp[set[_local2]][3], data.Naramura_data.cmp[set[_local2]][4]);
}
_local2++;
}
}
} else {
switch (bty) {
case 0 :
bcounter++;
mc._x = mc._x - move;
op = data.ExData.dm[4];
ele = 2;
if (bcounter == 15) {
bty = 1;
mc.gotoAndPlay(21);
}
break;
case 1 :
op = data.ExData.dm[5];
ele = 1;
move = move - 2;
mc._x = mc._x - move;
if (move < 1) {
bty = 2;
move = 0;
}
break;
case 2 :
op = data.ExData.dm[6];
ele = 1;
mc._x = mc._x + 8;
if (sox >= mc._x) {
break;
}
mc._x = sox;
bureiki = false;
}
setHitData(tc);
}
}
return(true);
}
function mcJump() {
mc.trackBody.book1.gotoAndPlay("jump");
mc.trackBody.book2.gotoAndPlay("jump");
mc.trackBody.box1.gotoAndPlay("jump");
mc.trackBody.box2.gotoAndPlay("jump");
mc.trackBody.box3.gotoAndPlay("jump");
mc.trackBody.box4.gotoAndPlay("jump");
mc.trackBody.box5.gotoAndPlay("jump");
mc.trackBody.chabudai.gotoAndPlay("jump");
mc.trackBody.colorBox1.gotoAndPlay("jump");
mc.trackBody.colorBox2.gotoAndPlay("jump");
mc.trackBody.colorBox3.gotoAndPlay("jump");
mc.trackBody.denkiStand._gotoAndPlay("jump");
mc.trackBody.freezer.gooAndPlay("jump");
mc.trackBody.hondana_gotoAndPlay("jump");
mc.trackBody.huton_gotoAndPlay("jump");
mc.trackBody.monohosi.gotoAndPlay("jump");
mc.trackBody.tansu.gotoAndPlay("jump");
mc.trackBody.television.gotoAndPlay("jump");
mc.trackBody.yakan_gotoAndPlay("jump");
}
function setNoToName(tc, no, op1, op2, op3) {
mc.trackBody.NewCompo.nextFrame();
switch (no) {
case 0 :
tc.setTask(new task.Component(tmc, "book1", (mc._x + mc.trackBody._x) + 4, (mc._y + mc.trackBody._y) - 58.8, op1, op2, op3, rnd.degToRad(0), no));
break;
case 1 :
tc.setTask(new task.Component(tmc, "book2", (mc._x + mc.trackBody._x) + 87.6, (mc._y + mc.trackBody._y) - 77.9, op1, op2, op3, rnd.degToRad(0), no));
break;
case 2 :
tc.setTask(new task.Component(tmc, "box1", (mc._x + mc.trackBody._x) + 10.2, (mc._y + mc.trackBody._y) - 90.3, op1, op2, op3, rnd.degToRad(0), no));
break;
case 3 :
tc.setTask(new task.Component(tmc, "box2", (mc._x + mc.trackBody._x) + 3.4, (mc._y + mc.trackBody._y) - 73.5, op1, op2, op3, rnd.degToRad(0), no));
break;
case 4 :
tc.setTask(new task.Component(tmc, "box3", (mc._x + mc.trackBody._x) + 64.5, (mc._y + mc.trackBody._y) - 61.3, op1, op2, op3, rnd.degToRad(0), no));
break;
case 5 :
tc.setTask(new task.Component(tmc, "box4", (mc._x + mc.trackBody._x) + 3.4, (mc._y + mc.trackBody._y) - 46.4, op1, op2, op3, rnd.degToRad(0), no));
break;
case 6 :
tc.setTask(new task.Component(tmc, "box5", (mc._x + mc.trackBody._x) + 65.6, (mc._y + mc.trackBody._y) - 46.4, op1, op2, op3, rnd.degToRad(0), no));
break;
case 7 :
tc.setTask(new task.Component(tmc, "chabudai", (mc._x + mc.trackBody._x) + 47.7, (mc._y + mc.trackBody._y) - 57.6, op1, op2, op3, rnd.degToRad(0), no));
break;
case 8 :
tc.setTask(new task.Component(tmc, "colorBox1", (mc._x + mc.trackBody._x) + 14.4, (mc._y + mc.trackBody._y) - 64.5, op1, op2, op3, rnd.degToRad(0), no));
break;
case 9 :
tc.setTask(new task.Component(tmc, "colorBox2", (mc._x + mc.trackBody._x) + 35.2, (mc._y + mc.trackBody._y) - 64.5, op1, op2, op3, rnd.degToRad(0), no));
break;
case 10 :
tc.setTask(new task.Component(tmc, "colorBox3", (mc._x + mc.trackBody._x) + 87.1, (mc._y + mc.trackBody._y) - 64.3, op1, op2, op3, rnd.degToRad(0), no));
break;
case 11 :
tc.setTask(new task.Component(tmc, "denkiStand", (mc._x + mc.trackBody._x) + 25.1, (mc._y + mc.trackBody._y) - 79.4, op1, op2, op3, rnd.degToRad(0), no));
break;
case 12 :
tc.setTask(new task.Component(tmc, "freezer", (mc._x + mc.trackBody._x) + 25.6, (mc._y + mc.trackBody._y) - 76, op1, op2, op3, rnd.degToRad(0), no));
break;
case 13 :
tc.setTask(new task.Component(tmc, "hondana", (mc._x + mc.trackBody._x) + 97.5, (mc._y + mc.trackBody._y) - 107.9, op1, op2, op3, rnd.degToRad(0), no));
break;
case 14 :
tc.setTask(new task.Component(tmc, "huton", (mc._x + mc.trackBody._x) + 55.2, (mc._y + mc.trackBody._y) - 109, op1, op2, op3, rnd.degToRad(0), no));
break;
case 15 :
tc.setTask(new task.Component(tmc, "monohosi", (mc._x + mc.trackBody._x) + 82.1, (mc._y + mc.trackBody._y) - 120.5, op1, op2, op3, rnd.degToRad(10), no));
break;
case 16 :
tc.setTask(new task.Component(tmc, "tansu", (mc._x + mc.trackBody._x) + 58.1, (mc._y + mc.trackBody._y) - 90, op1, op2, op3, rnd.degToRad(0), no));
break;
case 17 :
tc.setTask(new task.Component(tmc, "television", (mc._x + mc.trackBody._x) + 33.3, (mc._y + mc.trackBody._y) - 95.8, op1, op2, op3, rnd.degToRad(0), no));
break;
case 18 :
tc.setTask(new task.Component(tmc, "yakan", (mc._x + mc.trackBody._x) + 21, (mc._y + mc.trackBody._y) - 103.1, op1, op2, op3, rnd.degToRad(0), no));
}
}
function getData() {
var _local2;
_local2 = 0;
set[0] = -1;
do {
if (data.Naramura_data.cmp[data_no][0] != scene) {
break;
}
set[_local2] = data_no;
set_time[_local2] = rnd.atRandom() % 150;
_local2++;
set[_local2] = -1;
data_no++;
} while (_local2 <= 20);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tc.elaseData("auto3");
}
function talkTask(mess) {
switch (mess[0]) {
case 0 :
if (bureiki) {
mess[0] = 1;
} else {
mess[0] = 0;
}
break;
case 1 :
movef = 4;
break;
case 2 :
last = true;
mc.trackBody.ayumi.gotoAndPlay("endDemo");
counter = 0;
break;
case 3 :
sta = 3;
}
return(mess);
}
function setHitData(tc) {
tc.regstData("hit", "no", my_no);
tc.regstData("hit", "x", mc._x);
tc.regstData("hit", "y", mc._y - 50);
tc.regstData("hit", "width", mc._width);
tc.regstData("hit", "height", 30);
tc.regstData("hit", "roll", 0);
tc.regstData("hit", "element", ele);
tc.regstData("hit", "option", op);
}
}
Symbol 870 MovieClip [__Packages.task.Death] Frame 0
class task.Death implements nigoro.lib.duplex.Task.Task
{
var dmg, s_no, h_no, st;
function Death (l) {
dmg = l * 0.19;
}
function init(no, tc) {
s_no = tc.checkData("score", "no");
h_no = tc.checkData("hasirio", "no");
st = 0;
}
function run(tc) {
var _local4;
var _local2;
switch (st) {
case 0 :
_local2 = [2, 0];
_local2 = tc.acssesTask(h_no, _local2);
if (_local2[0] == 1) {
_local2[0] = 6;
_local2[1] = dmg * 10;
} else {
_local2[0] = 6;
_local2[1] = dmg;
}
_local2 = tc.acssesTask(s_no, _local2);
if (_local2[0] == 1) {
_local2[0] = 1;
tc.acssesTask(h_no, _local2);
st = 1;
}
break;
case 1 :
_local2 = [7];
_local2 = tc.acssesTask(h_no, _local2);
if (_local2[0] != 1) {
break;
}
st = 0;
}
return(true);
}
function finalize(tc) {
}
function talkTask(mess) {
return(mess);
}
}
Symbol 871 MovieClip [__Packages.task.Ayumi] Frame 0
class task.Ayumi implements nigoro.lib.duplex.Task.Task
{
var mc, ypow, xpow, my_no, tk, ele, st;
function Ayumi (mmc, st, x, y) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc.gotoAndStop("1");
}
function init(no, tc) {
ypow = 17;
xpow = 0;
my_no = no;
tk = tc;
ele = 111;
st = 0;
tc.regstData("ayumi", "no", no);
}
function run(tc) {
var _local2;
var _local3;
switch (st) {
case 0 :
mc._x = mc._x - (3.5 + xpow);
xpow = xpow + 0.1;
mc._y = mc._y - ypow;
ypow = ypow - 0.7;
if (mc._y >= 245) {
mc._y = 245;
st = 1;
ele = 112;
mc.gotoAndStop("7");
_local2 = tk.checkData("hasirio", "no");
_local3 = [4];
tk.acssesTask(_local2, _local3);
}
break;
case 1 :
mc._rotation = (mc._rotation - 35) % 360;
mc._x = mc._x - 8;
if ((mc._x + mc._width) >= 0) {
break;
}
return(false);
}
setHitData(tc);
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tc.elaseData("ayumi");
}
function talkTask(mess) {
switch (mess[0]) {
case 0 :
mess[0] = mc._x;
break;
case 1000 :
tk.killTask(my_no);
}
return(mess);
}
function setHitData(tc) {
tc.regstData("hit", "no", my_no);
tc.regstData("hit", "x", mc._x - (mc._width / 2));
tc.regstData("hit", "y", (mc._y + 20) - (mc._height / 2));
tc.regstData("hit", "width", mc._width - 20);
tc.regstData("hit", "height", mc._height - 40);
tc.regstData("hit", "roll", 0);
tc.regstData("hit", "element", ele);
tc.regstData("hit", "option", 0);
}
}
Symbol 872 MovieClip [__Packages.data.Naramura_data] Frame 0
class data.Naramura_data
{
function Naramura_data () {
}
static var obj = [[30, 29, 8, 17, -1, 0], [60, 20, 1, 17, -1, 0], [100, 29, 8, 17, -1, 0], [170, 29, 8, 17, -1, 0], [240, 29, 8, 17, -1, 0], [320, 29, 8, 17, -1, 0], [360, 29, 8, 17, -1, 0], [420, 29, 8, 17, -1, 0], [490, 29, 8, 17, -1, 0], [540, 29, 8, 17, -1, 0], [600, 20, 5, 17, 500, 0], [610, 29, 8, 17, -1, 0], [670, 29, 8, 17, -1, 0], [720, 29, 8, 17, -1, 0], [790, 29, 8, 17, -1, 0], [830, 29, 8, 17, -1, 0], [890, 29, 8, 17, -1, 0], [900, 10, 10, 3, -1, 0], [950, 29, 8, 17, -1, 0], [1000, 29, 8, 17, -1, 0], [1090, 29, 8, 17, -1, 0], [1150, 29, 8, 17, -1, 0], [1200, 20, 5, 17, 500, 1], [1220, 29, 8, 17, -1, 0], [1300, 29, 8, 17, -1, 0], [1380, 29, 8, 17, -1, 0], [1420, 29, 8, 17, -1, 0], [1490, 29, 8, 17, -1, 0], [1500, 20, 2, 17, -1, 0], [1510, 29, 8, 17, -1, 0], [1600, 29, 8, 17, -1, 0], [1650, 20, 3, 17, 350, 2], [1670, 29, 8, 17, -1, 0], [1750, 29, 8, 17, -1, 0], [1820, 29, 8, 17, -1, 0], [1890, 29, 8, 17, -1, 0], [1940, 29, 8, 17, -1, 0], [1950, 20, 5, 17, 500, 0], [2020, 29, 8, 17, -1, 0], [2030, 20, 7, 17, -1, 0], [2080, 29, 8, 17, -1, 0], [2150, 29, 8, 17, -1, 0], [2200, 29, 8, 17, -1, 0], [2250, 20, 5, 17, 500, 0], [2260, 29, 8, 17, -1, 0], [2300, 29, 8, 17, -1, 0], [2380, 29, 8, 17, -1, 0], [2450, 29, 8, 17, -1, 0], [2520, 29, 8, 17, -1, 0], [2590, 29, 8, 17, -1, 0], [2660, 29, 8, 17, -1, 0], [2720, 29, 8, 17, -1, 0], [2800, 29, 8, 17, -1, 0], [2880, 29, 8, 17, -1, 0], [2940, 29, 8, 17, -1, 0], [2990, 29, 8, 17, -1, 0], [3000, 20, 3, 17, 350, 2], [3020, 29, 8, 17, -1, 0], [3100, 29, 8, 17, -1, 0], [3170, 29, 8, 17, -1, 0], [3220, 29, 8, 17, -1, 0], [3280, 29, 8, 17, -1, 0], [3340, 29, 8, 17, -1, 0], [3440, 29, 9, 17, -1, 0], [3530, 29, 9, 17, -1, 0], [3600, 29, 9, 17, -1, 0], [3660, 29, 9, 17, -1, 0], [3730, 29, 9, 17, -1, 0], [3750, 20, 4, 17, 350, 3], [3830, 29, 9, 17, -1, 0], [3900, 29, 9, 17, -1, 0], [3990, 29, 9, 17, -1, 0], [4000, 20, 5, 17, 500, 0], [4050, 29, 9, 17, -1, 0], [4150, 29, 9, 17, -1, 0], [4270, 29, 9, 17, -1, 0], [4340, 29, 9, 17, -1, 0], [4350, 20, 6, 17, 350, 4], [4400, 10, 11, 1, -1, 0], [4450, 29, 9, 17, -1, 0], [4530, 29, 9, 17, -1, 0], [4650, 29, 9, 17, -1, 0], [4770, 29, 9, 17, -1, 0], [4880, 29, 9, 17, -1, 0], [4990, 29, 9, 17, -1, 0], [5100, 29, 9, 17, -1, 0], [5220, 29, 9, 17, -1, 0], [0, 0, 0, 0, 0, 0]];
static var cmp = [[1, 18, data.ScSpeed.michi - 1, 10, -3], [3, 2, data.ScSpeed.michi - 1, 12, -8], [5, 3, data.ScSpeed.michi - 1, 12, -1], [7, 11, data.ScSpeed.michi - 2, 15, -8], [9, 8, data.ScSpeed.michi - 3, 12, -8], [11, 0, data.ScSpeed.michi - 3, 11, -8], [13, 7, data.ScSpeed.michi + 1, 10, -13], [14, 4, data.ScSpeed.michi - 1, 12, -1], [16, 9, data.ScSpeed.michi - 5, 15, -10], [18, 5, data.ScSpeed.michi - 1, 12, -1], [19, 17, data.ScSpeed.michi - 1, 15, -10], [21, 14, data.ScSpeed.michi - 2, 16, 0], [22, 6, data.ScSpeed.michi - 1, 12, -1], [23, 1, data.ScSpeed.michi - 3, 6, -8], [26, 15, data.ScSpeed.michi - 1, 12, -15], [27, 10, data.ScSpeed.michi - 3, 17, -8], [28, 16, data.ScSpeed.michi, 14, -2], [31, 12, data.ScSpeed.michi - 2, 16, -8], [31, 13, data.ScSpeed.michi, 13, -8], [0, 0, 0, 0, 0]];
}
Symbol 873 MovieClip [__Packages.data.ExData] Frame 0
class data.ExData
{
function ExData () {
}
static var sc = [500, 500, 500, 500, 500, 500, 500, 3000, 1000, 1000, 1000, 300, 10000, 8000, 800, 5000, 10000, 800, 300, 300, 500, 700, 600, 800, 300, 300, 300, 300, 300, 300, 300, 300, 500, 300, 1000, 500, 10000];
static var dm = [800, 300, 800, 1500, 3000, 1500, 1500];
}
Symbol 874 MovieClip [__Packages.task.Component] Frame 0
class task.Component implements nigoro.lib.duplex.Task.Task
{
var mc, sp, pow, myn, rt, now_r, tmc, s_bun, my_no, counter, scflag;
function Component (mmc, st, x, y, s, p, r, nr, n) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
sp = s;
pow = p;
myn = n;
rt = r;
now_r = nr;
mc.gotoAndStop("bound");
tmc = mmc;
s_bun = new Sound(mc);
if (myn == 18) {
s_bun.attachSound("yakan.wav");
} else if ((myn == 0) || (myn == 1)) {
s_bun.attachSound("jump.wav");
} else {
s_bun.attachSound("bound.wav");
}
}
function init(no, tc) {
my_no = no;
counter = 0;
scflag = true;
}
function run(tc) {
var _local2;
var _local5;
var _local4;
if ((myn > 1) && (myn < 7)) {
_local5 = myn - 2;
counter++;
switch (_local5) {
case 0 :
_local2 = 0;
while (_local2 != (data.ObjData.box1data.length - 1)) {
if (counter == data.ObjData.box1data[_local2][3]) {
tc.setTask(new task.MiniObje(tmc, "miniObj", mc._x, mc._y, data.ObjData.box1data[_local2][2], data.ObjData.box1data[_local2][1], data.ObjData.box1data[_local2][4], data.ObjData.box1data[_local2][0]));
}
_local2++;
}
break;
case 1 :
_local2 = 0;
while (_local2 != (data.ObjData.box2data.length - 1)) {
if (counter == data.ObjData.box2data[_local2][3]) {
tc.setTask(new task.MiniObje(tmc, "miniObj", mc._x, mc._y, data.ObjData.box2data[_local2][2], data.ObjData.box2data[_local2][1], data.ObjData.box2data[_local2][4], data.ObjData.box2data[_local2][0]));
}
_local2++;
}
break;
case 2 :
_local2 = 0;
while (_local2 != (data.ObjData.box3data.length - 1)) {
if (counter == data.ObjData.box3data[_local2][3]) {
tc.setTask(new task.MiniObje(tmc, "miniObj", mc._x, mc._y, data.ObjData.box3data[_local2][2], data.ObjData.box3data[_local2][1], data.ObjData.box3data[_local2][4], data.ObjData.box3data[_local2][0]));
}
_local2++;
}
break;
case 3 :
_local2 = 0;
while (_local2 != (data.ObjData.box4data.length - 1)) {
if (counter == data.ObjData.box4data[_local2][3]) {
tc.setTask(new task.MiniObje(tmc, "miniObj", mc._x, mc._y, data.ObjData.box4data[_local2][2], data.ObjData.box4data[_local2][1], data.ObjData.box4data[_local2][4], data.ObjData.box4data[_local2][0]));
}
_local2++;
}
break;
case 4 :
_local2 = 0;
for(;;){
if (_local2 == (data.ObjData.box5data.length - 1)) {
break;
}
if (counter == data.ObjData.box5data[_local2][3]) {
tc.setTask(new task.MiniObje(tmc, "miniObj", mc._x, mc._y, data.ObjData.box5data[_local2][2], data.ObjData.box5data[_local2][1], data.ObjData.box5data[_local2][4], data.ObjData.box5data[_local2][0]));
}
_local2++;
};
}
}
mc._y = mc._y - pow;
pow = pow - 0.7;
mc._x = (mc._x - data.ScSpeed.michi) + sp;
sp = sp - 0.1;
if ((mc._y + (mc._height / 2)) > 280) {
s_bun.start(0);
if (rt > 0) {
rt = rt - data.ObjData.cdata[myn][3];
if (rt < 0) {
rt = 0;
}
} else if (rt < 0) {
rt = rt + data.ObjData.cdata[myn][3];
if (rt > 0) {
rt = 0;
}
}
sp = sp - data.ObjData.cdata[myn][2];
mc._y = 280 - (mc._height / 2);
pow = -(pow * data.ObjData.cdata[myn][0]);
if (pow < 0.7) {
pow = 0;
}
}
if (scflag) {
_local4 = [0];
_local2 = tc.checkData("hasirio", "no");
if (_local2 != null) {
_local4 = tc.acssesTask(_local2, _local4);
if (_local4[0] > mc._x) {
scflag = false;
if (_local4[7] < mc._y) {
if ((_local4[4] == 1) || (_local4[4] == 4)) {
_local5 = tc.checkData("score", "no");
_local4 = [2, data.ExData.sc[myn] * (Math.floor((_local4[5] - _local4[6]) / 80) + 1)];
_local4 = tc.acssesTask(_local5, _local4);
tc.setTask(new task.Numfor(tmc, "4numbers", mc._x + 8, mc._y - (mc._height / 2), _local4[0], 0, _local4[1]));
}
}
}
}
}
if (sp < 0) {
sp = 0;
}
now_r = ((360 + now_r) + rt) % 360;
mc._rotation = now_r;
if ((mc._x + (mc._width / 2)) < 0) {
return(false);
}
setHitData(tc);
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess) {
return(mess);
}
function setHitData(tc) {
tc.regstData("hit", "no", my_no);
tc.regstData("hit", "x", (mc._x - (mc._width / 2)) + 5);
tc.regstData("hit", "y", (mc._y - (mc._height / 2)) + 5);
tc.regstData("hit", "width", mc._width - 10);
tc.regstData("hit", "height", mc._height - 10);
tc.regstData("hit", "roll", 0);
tc.regstData("hit", "element", 1);
tc.regstData("hit", "option", data.ObjData.cdata[myn][1]);
}
}
Symbol 875 MovieClip [__Packages.data.ObjData] Frame 0
class data.ObjData
{
function ObjData () {
}
static var fdata = [[0.3, 300, 1, 1], [0.5, 500, 1, 1], [0.7, 700, 2, 1], [0.9, 600, 1, 1], [0.1, 800, 1, 3], [0, 0, 0, 0]];
static var cdata = [[0.8, 300, 1, 1], [0.99, 300, 0, 1], [0.95, 500, 2, 1], [0.95, 500, 2, 1], [0.95, 500, 2, 1], [0.95, 500, 2, 1], [0.95, 500, 2, 1], [0.98, 700, 1, 1], [0.6, 750, 2, 1], [0.8, 750, 2, 1], [0.6, 750, 2, 1], [0.8, 300, 4, 1], [0.7, 1000, 5, 1], [0.75, 1000, 1, 1], [0.1, 800, 10, 10], [0.8, 700, 1, 1], [0.9, 1000, 1, 1], [0.3, 500, 20, 1], [0.9, 300, 2, 1], [0, 0, 0, 0]];
static var mdata = [[0.8, 200, 6, 1], [0.4, 200, 1, 1], [0.6, 500, 1, 1], [0.9, 300, 1, 1], [0.8, 300, 2, 1], [0.6, 300, 5, 1], [0.8, 50, 3, 1], [0.8, 50, 1, 1], [0.8, 100, 1, 1], [0.8, 100, 1, 1], [0, 0, 0, 0]];
static var box1data = [[2, 4, data.ScSpeed.michi - 4, 40, 45], [0, 0, 0, 0]];
static var box2data = [[1, 14, data.ScSpeed.michi - 3, 40, 10], [1, 11, data.ScSpeed.michi - 5, 43, 15], [0, 0, 0, 0]];
static var box3data = [[3, 7, data.ScSpeed.michi - 3, 40, 3], [4, 10, data.ScSpeed.michi - 6, 41, 1], [5, 14, data.ScSpeed.michi, 43, 5], [0, 0, 0, 0]];
static var box4data = [[0, 8, data.ScSpeed.michi - 3, 40, 10], [8, 10, data.ScSpeed.michi, 41, 10], [9, 15, data.ScSpeed.michi + 3, 42, 10], [0, 0, 0, 0]];
static var box5data = [[6, 9, data.ScSpeed.michi - 6, 40, 10], [7, 13, data.ScSpeed.michi, 50, 10], [0, 0, 0, 0]];
}
Symbol 876 MovieClip [__Packages.task.MiniObje] Frame 0
class task.MiniObje implements nigoro.lib.duplex.Task.Task
{
var mc, tmc, sp, pow, myn, rt, ele, op, s_hpa, s_bun, my_no, now_r, tk, scflag;
function MiniObje (mmc, st, x, y, s, p, r, n) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
tmc = mmc;
mc._x = x;
mc._y = y;
sp = s;
pow = p;
myn = n;
rt = r;
if (n == 8) {
ele = 0;
op = 1;
} else if (n == 9) {
ele = 0;
op = 0;
} else if (n == 6) {
ele = 100;
op = 0;
} else if (n == 7) {
ele = 101;
op = 0;
} else {
ele = 1;
op = data.ObjData.mdata[n][1];
}
mc.gotoAndStop(n + 1);
s_hpa = new Sound(mc);
s_bun = new Sound(mc);
s_hpa.attachSound("kaihuku.wav");
s_bun.attachSound("jump.wav");
}
function init(no, tc) {
my_no = no;
now_r = 0;
tk = tc;
scflag = true;
}
function run(tc) {
var _local4;
var _local5;
var _local2;
mc._y = mc._y - pow;
pow = pow - 0.7;
mc._x = (mc._x - data.ScSpeed.michi) + sp;
if ((mc._y + (mc._height / 2)) > 280) {
if (ele == 0) {
return(false);
}
s_bun.start(0);
if (rt > 0) {
rt = rt - data.ObjData.mdata[myn][3];
if (rt < 0) {
rt = 0;
}
} else if (rt < 0) {
rt = rt + data.ObjData.mdata[myn][3];
if (rt > 0) {
rt = 0;
}
}
sp = sp - data.ObjData.mdata[myn][2];
mc._y = 280 - (mc._height / 2);
pow = -(pow * data.ObjData.mdata[myn][0]);
if (pow < 0.7) {
pow = 0;
}
}
if (scflag) {
_local2 = [0];
_local4 = tc.checkData("hasirio", "no");
if (_local4 != null) {
_local2 = tc.acssesTask(_local4, _local2);
if (_local2[0] > mc._x) {
scflag = false;
if (_local2[7] < mc._y) {
if ((_local2[4] == 1) || (_local2[4] == 4)) {
_local5 = tc.checkData("score", "no");
_local2 = [2, data.ExData.sc[myn + 24] * (Math.floor((_local2[5] - _local2[6]) / 80) + 1)];
_local2 = tc.acssesTask(_local5, _local2);
tc.setTask(new task.Numfor(tmc, "4numbers", mc._x + 8, mc._y - (mc._height / 2), _local2[0], 0, _local2[1]));
}
}
}
}
}
if (sp < 0) {
sp = 0;
}
now_r = ((360 + now_r) + rt) % 360;
mc._rotation = now_r;
if ((mc._x + (mc._width / 2)) < 0) {
return(false);
}
sp = sp - 0.1;
setHitData(tc);
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tmc = null;
}
function talkTask(mess) {
var _local2;
var _local3;
if (mess[0] == 1000) {
if ((myn > 5) && (myn < 10)) {
if ((myn == 8) || (myn == 9)) {
_local2 = tk.checkData("score", "no");
_local3 = [10, data.ExData.sc[myn + 11]];
tk.acssesTask(_local2, _local3);
s_hpa.start(0);
}
tk.killTask(my_no);
}
}
return(mess);
}
function setHitData(tc) {
tc.regstData("hit", "no", my_no);
tc.regstData("hit", "x", mc._x - (mc._width / 2));
tc.regstData("hit", "y", mc._y - (mc._height / 2));
tc.regstData("hit", "width", mc._width);
tc.regstData("hit", "height", mc._height);
tc.regstData("hit", "roll", now_r);
tc.regstData("hit", "element", ele);
tc.regstData("hit", "option", op);
}
}
Symbol 877 MovieClip [__Packages.task.Numfor] Frame 0
class task.Numfor implements nigoro.lib.duplex.Task.Task
{
var by, bx, mc, al;
function Numfor (mmc, st, x, y, p, t, bairitu) {
var _local2;
var _local3 = false;
by = bairitu / 5;
bx = by * 2;
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
if (t < 2) {
if (t == 1) {
mc.gotoAndStop("recover");
}
var _local4 = new nigoro.lib.duplex.Math.Arithmetic(0);
_local2 = _local4.getBeam(10000, p);
if (_local2 != 0) {
mc.no10000.gotoAndStop(_local2 + 1);
_local3 = true;
} else if (_local3 == false) {
mc.no10000._visible = false;
}
_local2 = _local4.getBeam(1000, p);
if (_local2 != 0) {
mc.no1000.gotoAndStop(_local2 + 1);
_local3 = true;
} else if (_local3 == false) {
mc.no1000._visible = false;
}
_local2 = _local4.getBeam(100, p);
if (_local2 != 0) {
mc.no100.gotoAndStop(_local2 + 1);
_local3 = true;
} else if (_local3 == false) {
mc.no100._visible = false;
}
_local2 = _local4.getBeam(10, p);
if (_local2 != 0) {
mc.no10.gotoAndStop(_local2 + 1);
_local3 = true;
} else if (_local3 == false) {
mc.no10._visible = false;
}
_local2 = _local4.getBeam(1, p);
if (_local2 != 0) {
mc.no1.gotoAndStop(_local2 + 1);
_local3 = true;
} else if (_local3 == false) {
mc.no1._visible = false;
}
} else {
mc.gotoAndStop("AyumiCatch");
}
al = 100;
}
function init(no, tc) {
}
function run(tc) {
mc._alpha = al;
mc._height = mc._height + by;
mc._width = mc._width + bx;
mc._y = mc._y - by;
al = al - 3;
if (al < 0) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess) {
return(mess);
}
}
Symbol 878 MovieClip [__Packages.task.Hasirio] Frame 0
class task.Hasirio implements nigoro.lib.duplex.Task.Task
{
var tmc, mc, soundMC, xlower, glv, s_jmp, s_dwn, s_dmg, s_bnt, s_car, st, jump, speed_now, eatcount, ftc, jumpflag, bura, pantu, life, auymiwait, bpcount, followayumi, stdemo, scadd, curentf, counter, endzure;
function Hasirio (mmc, st, x, y, l, sm) {
tmc = mmc;
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
soundMC = sm.createEmptyMovieClip("SMC", sm.getNextHighestDepth());
xlower = mc._width;
glv = l;
s_jmp = new Sound(soundMC);
s_dwn = new Sound(soundMC);
s_dmg = new Sound(soundMC);
s_bnt = new Sound(soundMC);
s_car = new Sound(soundMC);
s_jmp.attachSound("jump3.wav");
s_dwn.attachSound("tyakuti.wav");
s_dmg.attachSound("damage3.wav");
s_bnt.attachSound("reiko_hit1");
s_car.attachSound("damage2.wav");
}
function init(no, tc) {
st = 0;
jump = 0;
speed_now = 0;
tc.regstData("hasirio", "no", no);
eatcount = 0;
ftc = tc;
jumpflag = true;
bura = false;
pantu = false;
life = true;
auymiwait = false;
bpcount = 0;
followayumi = false;
stdemo = true;
scadd = false;
curentf = 5;
mc.gotoAndPlay(curentf);
}
function run(tc) {
var _local4;
var _local3;
if (stdemo) {
if (curentf == 20) {
mc.gotoAndPlay(curentf);
}
if (curentf == 23) {
mc.gotoAndPlay(curentf);
}
if (curentf == 46) {
mc.gotoAndPlay(curentf);
}
if (curentf == 90) {
mc.gotoAndPlay(curentf);
}
if (curentf == 93) {
mc.gotoAndPlay(curentf);
}
if (curentf == 213) {
mc.gotoAndPlay(curentf);
_root.game.Gs.sendSystem("BGMFO", 0, 0);
}
if (curentf == 243) {
mc.gotoAndStop("run");
stdemo = false;
}
curentf++;
} else {
switch (st) {
case 0 :
if (!life) {
st = 500;
break;
}
if (followayumi) {
_local4 = tc.checkData("ayumi", "no");
_local3 = [0];
_local3 = tc.acssesTask(_local4, _local3);
if (_local3[0] < mc._x) {
st = 750;
_local4 = tc.checkData("sora", "no");
_local3 = [4];
_local3 = tc.acssesTask(_local4, _local3);
mc.gotoAndStop("BadEnd");
break;
}
} else {
yokoidou();
if (jumpflag) {
if (Key.isDown(32)) {
jumpflag = false;
s_jmp.start(0);
if (eatcount == 0) {
mc.hasirioUp.gotoAndStop("jump");
}
mc.hasirioBt.gotoAndStop("jump");
st = 1;
jump = jumppow;
}
} else if (!Key.isDown(32)) {
jumpflag = true;
}
break;
mc._y = mc._y - jump;
jump = jump - juuryoku;
yokoidou();
if ((!Key.isDown(32)) || (jump < 4)) {
jump = 4;
st = 2;
}
break;
mc._y = mc._y - jump;
jump = jump - juuryoku;
yokoidou();
if ((mc._y >= baseline) && (jump < 0)) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
s_dwn.start(0);
mc._y = 245;
st = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else if (eatcount == 0) {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
}
break;
mc._y = mc._y - jump;
jump = jump - juuryoku;
mc._rotation = (mc._rotation - 5) % 360;
mc._x = mc._x - 8;
if (mc._y >= 245) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 4;
mc.gotoAndStop(3);
counter = 0;
}
break;
counter++;
mc._rotation = (mc._rotation - 35) % 360;
if (life) {
if (counter < 20) {
mc._x = mc._x - 9;
}
if (counter == 21) {
mc._x = mc._x - 8.5;
}
if (counter == 22) {
mc._x = mc._x - 7.5;
}
if (counter == 23) {
mc._x = mc._x - 6;
}
if (counter == 24) {
mc._x = mc._x - 4;
}
if (counter == 25) {
mc._x = mc._x - 1.5;
}
if (counter == 26) {
mc._x = mc._x - 0.5;
}
if (counter > 25) {
if (mc._x < xlower) {
st = 8;
} else {
st = 100;
}
counter = 0;
if (mc._currentframe != 1) {
mc.gotoAndPlay(1);
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
}
} else {
mc._x = mc._x - 9;
if ((mc._x + mc._width) < 0) {
st = 501;
}
}
break;
mc._y = mc._y - jump;
jump = jump - juuryoku;
mc._rotation = (mc._rotation + 30) % 360;
mc._x = mc._x - 8;
if (mc._y >= 245) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 13;
mc.gotoAndStop(2);
counter = 0;
}
break;
mc._rotation = (mc._rotation + 30) % 360;
counter++;
if (life) {
if (counter < 20) {
mc._x = mc._x - 9;
}
if (counter == 21) {
mc._x = mc._x - 8.5;
}
if (counter == 22) {
mc._x = mc._x - 7.5;
}
if (counter == 23) {
mc._x = mc._x - 6;
}
if (counter == 24) {
mc._x = mc._x - 4;
}
if (counter == 25) {
mc._x = mc._x - 1.5;
}
if (counter == 26) {
mc._x = mc._x - 0.5;
}
if (counter > 25) {
if (mc._x < xlower) {
st = 8;
} else {
st = 100;
}
counter = 0;
mc._y = 245;
if (mc._currentframe != 1) {
mc.gotoAndStop("run");
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
}
} else {
mc._x = mc._x - 9;
if ((mc._x + mc._width) < 0) {
st = 501;
}
}
break;
mc._rotation = mc._rotation + 15;
mc._x = mc._x - 4.5;
mc._y = mc._y + 4.5;
if (mc._rotation == 90) {
st = 7;
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
}
break;
counter++;
mc._x = mc._x - data.ScSpeed.michi;
if (counter > 15) {
if (life) {
if (mc._x < xlower) {
st = 8;
} else {
st = 100;
}
counter = 0;
mc._y = 245;
if (mc._currentframe != 1) {
mc.gotoAndStop("run");
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
} else if ((mc._x + mc._width) < 0) {
st = 501;
}
}
break;
if (life) {
mc._x = mc._x + 14;
if (mc._x > xlower) {
st = 100;
}
} else {
st = 500;
}
break;
counter++;
mc._x = mc._x - 32;
mc._y = mc._y - 2;
mc._rotation = (mc._rotation - 3) % 360;
if (counter > 21) {
if (life) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 8;
counter = 0;
if (mc._currentframe != 1) {
mc.gotoAndStop("run");
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
} else {
st = 501;
}
}
break;
counter++;
mc._x = mc._x - 16;
mc._rotation = (mc._rotation - 60) % 360;
if (counter > 21) {
if (life) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
st = 8;
counter = 0;
if (mc._currentframe != 1) {
mc.gotoAndStop("run");
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
} else if ((mc._x + mc._width) < 0) {
st = 501;
}
}
break;
mc._y = mc._y - jump;
jump = jump - juuryoku;
mc._rotation = mc._rotation + 3;
if (mc._y >= 245) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 12;
mc.gotoAndStop(2);
counter = 0;
}
break;
mc._rotation = (mc._rotation + 30) % 360;
counter++;
if (counter > 21) {
st = 100;
counter = 0;
if (mc._currentframe != 1) {
mc.gotoAndStop("run");
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
}
break;
counter++;
if (!life) {
st = 500;
mc._alpha = 100;
} else if (followayumi) {
_local4 = tc.checkData("ayumi", "no");
_local3 = [0];
_local3 = tc.acssesTask(_local4, _local3);
if (_local3[0] < mc._x) {
mc._alpha = 100;
st = 750;
_local4 = tc.checkData("sora", "no");
_local3 = [4];
_local3 = tc.acssesTask(_local4, _local3);
mc.gotoAndStop("BadEnd");
break;
}
} else {
yokoidou();
if (jumpflag) {
if (Key.isDown(32)) {
jumpflag = false;
s_jmp.start(0);
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else if (eatcount == 0) {
mc.hasirioUp.gotoAndStop("jump");
}
mc.hasirioBt.gotoAndStop("jump");
st = 101;
jump = jumppow;
break;
}
} else if (!Key.isDown(32)) {
jumpflag = true;
}
if (counter > muteki) {
st = 0;
mc._alpha = 100;
}
break;
counter++;
mc._y = mc._y - jump;
jump = jump - juuryoku;
yokoidou();
if ((!Key.isDown(32)) || (jump < 4)) {
jump = 4;
st = 102;
} else {
if (counter > muteki) {
st = 1;
mc._alpha = 100;
}
break;
counter++;
mc._y = mc._y - jump;
jump = jump - juuryoku;
yokoidou();
if (mc._y >= baseline) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 100;
s_dwn.start(0);
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else if (eatcount == 0) {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
} else {
if (counter > muteki) {
st = 2;
mc._alpha = 100;
}
break;
mc._x = mc._x - 8;
if ((mc._x + mc._width) < 0) {
st = 501;
}
break;
_local4 = tc.checkData("sora", "no");
_local3 = [3];
tc.acssesTask(_local4, _local3);
_local4 = tc.checkData("auto3", "no");
_local3[0] = 1;
tc.acssesTask(_local4, _local3);
st = 502;
break;
break;
mc._x = mc._x - endzure;
endzure = endzure - 0.5;
counter++;
if (counter == 15) {
if ((!bura) && (!pantu)) {
st = 601;
} else {
st = 602;
}
}
break;
counter++;
if (counter == 45) {
_local4 = ftc.checkData("score", "no");
_local3 = [10, 100000];
_local3 = ftc.acssesTask(_local4, _local3);
mc.gotoAndPlay("endDemoFO");
mc.stop();
st = 603;
_local4 = ftc.checkData("score", "no");
_local3 = [9];
_local3 = ftc.acssesTask(_local4, _local3);
}
break;
counter++;
if (counter == 45) {
mc.gotoAndPlay("endBad");
mc.stop();
st = 604;
_local4 = ftc.checkData("score", "no");
_local3 = [12];
_local3 = ftc.acssesTask(_local4, _local3);
st = 604;
}
break;
break;
counter++;
if (counter == 50) {
mc.play();
}
if (counter == 85) {
s_bnt.setVolume(100);
s_bnt.start(0);
_local4 = ftc.checkData("score", "no");
_local3 = [13];
_local3 = ftc.acssesTask(_local4, _local3);
tc.setTask(new task.Lastchar(tmc, "ayumi_naguri", mc._x - 20, (mc._y - (mc._height / 2)) - 1, 0));
if (pantu) {
tc.setTask(new task.Lastchar(tmc, "pantuH", mc._x, mc._y - (mc._height / 2), 1));
} else {
tc.setTask(new task.Lastchar(tmc, "buraH", mc._x, mc._y - (mc._height / 2), 1));
}
var _local8 = mc._currentframe;
var _local7 = mc.hasirioUp._currentframe;
var _local6 = mc.hasirioBt._currentframe;
var _local10 = mc._x;
var _local9 = mc._y;
mc.removeMovieClip();
mc = null;
mc = tmc.attachMovie("hasirio3", "hasirio3" + tmc.getNextHighestDepth(), tmc.getNextHighestDepth());
mc._x = _local10;
mc._y = _local9;
if (mc._currentframe != _local8) {
mc.gotoAndPlay(_local8);
}
if (mc.hasirioUp._currentframe != _local7) {
mc.hasirioUp.gotoAndPlay(_local7);
}
if (mc.hasirioBt._currentframe != _local6) {
mc.hasirioBt.gotoAndPlay(_local6);
}
mc.gotoAndStop("jiko");
st = 605;
}
break;
mc._x = mc._x - 8;
mc._y = mc._y - 1;
if ((mc._x + mc._width) < 0) {
return(false);
}
break;
if (mc._y < 245) {
mc._y = mc._y + 8;
if (mc._y > 245) {
mc._y = 245;
}
}
mc._x = mc._x - 8;
mc._rotation = (mc._rotation - 30) % 360;
if ((mc._x + mc._width) < 0) {
st = 501;
}
break;
mc._x = mc._x - 8;
if ((mc._x + mc._width) >= 0) {
break;
}
st = 501;
}
}
}
}
case 1 :
mc._y = mc._y - jump;
jump = jump - juuryoku;
yokoidou();
if ((!Key.isDown(32)) || (jump < 4)) {
jump = 4;
st = 2;
}
break;
case 2 :
mc._y = mc._y - jump;
jump = jump - juuryoku;
yokoidou();
if ((mc._y >= baseline) && (jump < 0)) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
s_dwn.start(0);
mc._y = 245;
st = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else if (eatcount == 0) {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
}
break;
case 3 :
mc._y = mc._y - jump;
jump = jump - juuryoku;
mc._rotation = (mc._rotation - 5) % 360;
mc._x = mc._x - 8;
if (mc._y >= 245) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 4;
mc.gotoAndStop(3);
counter = 0;
}
break;
case 4 :
counter++;
mc._rotation = (mc._rotation - 35) % 360;
if (life) {
if (counter < 20) {
mc._x = mc._x - 9;
}
if (counter == 21) {
mc._x = mc._x - 8.5;
}
if (counter == 22) {
mc._x = mc._x - 7.5;
}
if (counter == 23) {
mc._x = mc._x - 6;
}
if (counter == 24) {
mc._x = mc._x - 4;
}
if (counter == 25) {
mc._x = mc._x - 1.5;
}
if (counter == 26) {
mc._x = mc._x - 0.5;
}
if (counter > 25) {
if (mc._x < xlower) {
st = 8;
} else {
st = 100;
}
counter = 0;
if (mc._currentframe != 1) {
mc.gotoAndPlay(1);
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
}
} else {
mc._x = mc._x - 9;
if ((mc._x + mc._width) < 0) {
st = 501;
}
}
break;
case 5 :
mc._y = mc._y - jump;
jump = jump - juuryoku;
mc._rotation = (mc._rotation + 30) % 360;
mc._x = mc._x - 8;
if (mc._y >= 245) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 13;
mc.gotoAndStop(2);
counter = 0;
}
break;
case 13 :
mc._rotation = (mc._rotation + 30) % 360;
counter++;
if (life) {
if (counter < 20) {
mc._x = mc._x - 9;
}
if (counter == 21) {
mc._x = mc._x - 8.5;
}
if (counter == 22) {
mc._x = mc._x - 7.5;
}
if (counter == 23) {
mc._x = mc._x - 6;
}
if (counter == 24) {
mc._x = mc._x - 4;
}
if (counter == 25) {
mc._x = mc._x - 1.5;
}
if (counter == 26) {
mc._x = mc._x - 0.5;
}
if (counter > 25) {
if (mc._x < xlower) {
st = 8;
} else {
st = 100;
}
counter = 0;
mc._y = 245;
if (mc._currentframe != 1) {
mc.gotoAndStop("run");
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
}
} else {
mc._x = mc._x - 9;
if ((mc._x + mc._width) < 0) {
st = 501;
}
}
break;
case 6 :
mc._rotation = mc._rotation + 15;
mc._x = mc._x - 4.5;
mc._y = mc._y + 4.5;
if (mc._rotation == 90) {
st = 7;
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
}
break;
case 7 :
counter++;
mc._x = mc._x - data.ScSpeed.michi;
if (counter > 15) {
if (life) {
if (mc._x < xlower) {
st = 8;
} else {
st = 100;
}
counter = 0;
mc._y = 245;
if (mc._currentframe != 1) {
mc.gotoAndStop("run");
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
} else if ((mc._x + mc._width) < 0) {
st = 501;
}
}
break;
case 8 :
if (life) {
mc._x = mc._x + 14;
if (mc._x > xlower) {
st = 100;
}
} else {
st = 500;
}
break;
case 9 :
counter++;
mc._x = mc._x - 32;
mc._y = mc._y - 2;
mc._rotation = (mc._rotation - 3) % 360;
if (counter > 21) {
if (life) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 8;
counter = 0;
if (mc._currentframe != 1) {
mc.gotoAndStop("run");
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
} else {
st = 501;
}
}
break;
case 10 :
counter++;
mc._x = mc._x - 16;
mc._rotation = (mc._rotation - 60) % 360;
if (counter > 21) {
if (life) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
st = 8;
counter = 0;
if (mc._currentframe != 1) {
mc.gotoAndStop("run");
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
} else if ((mc._x + mc._width) < 0) {
st = 501;
}
}
break;
case 11 :
mc._y = mc._y - jump;
jump = jump - juuryoku;
mc._rotation = mc._rotation + 3;
if (mc._y >= 245) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 12;
mc.gotoAndStop(2);
counter = 0;
}
break;
case 12 :
mc._rotation = (mc._rotation + 30) % 360;
counter++;
if (counter > 21) {
st = 100;
counter = 0;
if (mc._currentframe != 1) {
mc.gotoAndStop("run");
}
mc._rotation = 0;
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
mc._alpha = 65;
}
break;
case 100 :
counter++;
if (!life) {
st = 500;
mc._alpha = 100;
} else if (followayumi) {
_local4 = tc.checkData("ayumi", "no");
_local3 = [0];
_local3 = tc.acssesTask(_local4, _local3);
if (_local3[0] < mc._x) {
mc._alpha = 100;
st = 750;
_local4 = tc.checkData("sora", "no");
_local3 = [4];
_local3 = tc.acssesTask(_local4, _local3);
mc.gotoAndStop("BadEnd");
break;
}
} else {
yokoidou();
if (jumpflag) {
if (Key.isDown(32)) {
jumpflag = false;
s_jmp.start(0);
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else if (eatcount == 0) {
mc.hasirioUp.gotoAndStop("jump");
}
mc.hasirioBt.gotoAndStop("jump");
st = 101;
jump = jumppow;
break;
}
} else if (!Key.isDown(32)) {
jumpflag = true;
}
if (counter > muteki) {
st = 0;
mc._alpha = 100;
}
break;
counter++;
mc._y = mc._y - jump;
jump = jump - juuryoku;
yokoidou();
if ((!Key.isDown(32)) || (jump < 4)) {
jump = 4;
st = 102;
} else {
if (counter > muteki) {
st = 1;
mc._alpha = 100;
}
break;
counter++;
mc._y = mc._y - jump;
jump = jump - juuryoku;
yokoidou();
if (mc._y >= baseline) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 100;
s_dwn.start(0);
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else if (eatcount == 0) {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
} else {
if (counter > muteki) {
st = 2;
mc._alpha = 100;
}
break;
mc._x = mc._x - 8;
if ((mc._x + mc._width) < 0) {
st = 501;
}
break;
_local4 = tc.checkData("sora", "no");
_local3 = [3];
tc.acssesTask(_local4, _local3);
_local4 = tc.checkData("auto3", "no");
_local3[0] = 1;
tc.acssesTask(_local4, _local3);
st = 502;
break;
break;
mc._x = mc._x - endzure;
endzure = endzure - 0.5;
counter++;
if (counter == 15) {
if ((!bura) && (!pantu)) {
st = 601;
} else {
st = 602;
}
}
break;
counter++;
if (counter == 45) {
_local4 = ftc.checkData("score", "no");
_local3 = [10, 100000];
_local3 = ftc.acssesTask(_local4, _local3);
mc.gotoAndPlay("endDemoFO");
mc.stop();
st = 603;
_local4 = ftc.checkData("score", "no");
_local3 = [9];
_local3 = ftc.acssesTask(_local4, _local3);
}
break;
counter++;
if (counter == 45) {
mc.gotoAndPlay("endBad");
mc.stop();
st = 604;
_local4 = ftc.checkData("score", "no");
_local3 = [12];
_local3 = ftc.acssesTask(_local4, _local3);
st = 604;
}
break;
break;
counter++;
if (counter == 50) {
mc.play();
}
if (counter == 85) {
s_bnt.setVolume(100);
s_bnt.start(0);
_local4 = ftc.checkData("score", "no");
_local3 = [13];
_local3 = ftc.acssesTask(_local4, _local3);
tc.setTask(new task.Lastchar(tmc, "ayumi_naguri", mc._x - 20, (mc._y - (mc._height / 2)) - 1, 0));
if (pantu) {
tc.setTask(new task.Lastchar(tmc, "pantuH", mc._x, mc._y - (mc._height / 2), 1));
} else {
tc.setTask(new task.Lastchar(tmc, "buraH", mc._x, mc._y - (mc._height / 2), 1));
}
var _local8 = mc._currentframe;
var _local7 = mc.hasirioUp._currentframe;
var _local6 = mc.hasirioBt._currentframe;
var _local10 = mc._x;
var _local9 = mc._y;
mc.removeMovieClip();
mc = null;
mc = tmc.attachMovie("hasirio3", "hasirio3" + tmc.getNextHighestDepth(), tmc.getNextHighestDepth());
mc._x = _local10;
mc._y = _local9;
if (mc._currentframe != _local8) {
mc.gotoAndPlay(_local8);
}
if (mc.hasirioUp._currentframe != _local7) {
mc.hasirioUp.gotoAndPlay(_local7);
}
if (mc.hasirioBt._currentframe != _local6) {
mc.hasirioBt.gotoAndPlay(_local6);
}
mc.gotoAndStop("jiko");
st = 605;
}
break;
mc._x = mc._x - 8;
mc._y = mc._y - 1;
if ((mc._x + mc._width) < 0) {
return(false);
}
break;
if (mc._y < 245) {
mc._y = mc._y + 8;
if (mc._y > 245) {
mc._y = 245;
}
}
mc._x = mc._x - 8;
mc._rotation = (mc._rotation - 30) % 360;
if ((mc._x + mc._width) < 0) {
st = 501;
}
break;
mc._x = mc._x - 8;
if ((mc._x + mc._width) >= 0) {
break;
}
st = 501;
}
}
}
case 101 :
counter++;
mc._y = mc._y - jump;
jump = jump - juuryoku;
yokoidou();
if ((!Key.isDown(32)) || (jump < 4)) {
jump = 4;
st = 102;
} else {
if (counter > muteki) {
st = 1;
mc._alpha = 100;
}
break;
counter++;
mc._y = mc._y - jump;
jump = jump - juuryoku;
yokoidou();
if (mc._y >= baseline) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 100;
s_dwn.start(0);
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else if (eatcount == 0) {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
} else {
if (counter > muteki) {
st = 2;
mc._alpha = 100;
}
break;
mc._x = mc._x - 8;
if ((mc._x + mc._width) < 0) {
st = 501;
}
break;
_local4 = tc.checkData("sora", "no");
_local3 = [3];
tc.acssesTask(_local4, _local3);
_local4 = tc.checkData("auto3", "no");
_local3[0] = 1;
tc.acssesTask(_local4, _local3);
st = 502;
break;
break;
mc._x = mc._x - endzure;
endzure = endzure - 0.5;
counter++;
if (counter == 15) {
if ((!bura) && (!pantu)) {
st = 601;
} else {
st = 602;
}
}
break;
counter++;
if (counter == 45) {
_local4 = ftc.checkData("score", "no");
_local3 = [10, 100000];
_local3 = ftc.acssesTask(_local4, _local3);
mc.gotoAndPlay("endDemoFO");
mc.stop();
st = 603;
_local4 = ftc.checkData("score", "no");
_local3 = [9];
_local3 = ftc.acssesTask(_local4, _local3);
}
break;
counter++;
if (counter == 45) {
mc.gotoAndPlay("endBad");
mc.stop();
st = 604;
_local4 = ftc.checkData("score", "no");
_local3 = [12];
_local3 = ftc.acssesTask(_local4, _local3);
st = 604;
}
break;
break;
counter++;
if (counter == 50) {
mc.play();
}
if (counter == 85) {
s_bnt.setVolume(100);
s_bnt.start(0);
_local4 = ftc.checkData("score", "no");
_local3 = [13];
_local3 = ftc.acssesTask(_local4, _local3);
tc.setTask(new task.Lastchar(tmc, "ayumi_naguri", mc._x - 20, (mc._y - (mc._height / 2)) - 1, 0));
if (pantu) {
tc.setTask(new task.Lastchar(tmc, "pantuH", mc._x, mc._y - (mc._height / 2), 1));
} else {
tc.setTask(new task.Lastchar(tmc, "buraH", mc._x, mc._y - (mc._height / 2), 1));
}
var _local8 = mc._currentframe;
var _local7 = mc.hasirioUp._currentframe;
var _local6 = mc.hasirioBt._currentframe;
var _local10 = mc._x;
var _local9 = mc._y;
mc.removeMovieClip();
mc = null;
mc = tmc.attachMovie("hasirio3", "hasirio3" + tmc.getNextHighestDepth(), tmc.getNextHighestDepth());
mc._x = _local10;
mc._y = _local9;
if (mc._currentframe != _local8) {
mc.gotoAndPlay(_local8);
}
if (mc.hasirioUp._currentframe != _local7) {
mc.hasirioUp.gotoAndPlay(_local7);
}
if (mc.hasirioBt._currentframe != _local6) {
mc.hasirioBt.gotoAndPlay(_local6);
}
mc.gotoAndStop("jiko");
st = 605;
}
break;
mc._x = mc._x - 8;
mc._y = mc._y - 1;
if ((mc._x + mc._width) < 0) {
return(false);
}
break;
if (mc._y < 245) {
mc._y = mc._y + 8;
if (mc._y > 245) {
mc._y = 245;
}
}
mc._x = mc._x - 8;
mc._rotation = (mc._rotation - 30) % 360;
if ((mc._x + mc._width) < 0) {
st = 501;
}
break;
mc._x = mc._x - 8;
if ((mc._x + mc._width) >= 0) {
break;
}
st = 501;
}
}
case 102 :
counter++;
mc._y = mc._y - jump;
jump = jump - juuryoku;
yokoidou();
if (mc._y >= baseline) {
_local4 = tc.checkData("score", "no");
_local3 = [11];
_local3 = tc.acssesTask(_local4, _local3);
mc._y = 245;
st = 100;
s_dwn.start(0);
if (auymiwait) {
mc.hasirioUp.gotoAndStop("endRun");
} else if (eatcount == 0) {
mc.hasirioUp.gotoAndPlay("run");
mc.hasirioUp.play();
}
mc.hasirioBt.gotoAndPlay("run");
mc.hasirioBt.play();
} else {
if (counter > muteki) {
st = 2;
mc._alpha = 100;
}
break;
mc._x = mc._x - 8;
if ((mc._x + mc._width) < 0) {
st = 501;
}
break;
_local4 = tc.checkData("sora", "no");
_local3 = [3];
tc.acssesTask(_local4, _local3);
_local4 = tc.checkData("auto3", "no");
_local3[0] = 1;
tc.acssesTask(_local4, _local3);
st = 502;
break;
break;
mc._x = mc._x - endzure;
endzure = endzure - 0.5;
counter++;
if (counter == 15) {
if ((!bura) && (!pantu)) {
st = 601;
} else {
st = 602;
}
}
break;
counter++;
if (counter == 45) {
_local4 = ftc.checkData("score", "no");
_local3 = [10, 100000];
_local3 = ftc.acssesTask(_local4, _local3);
mc.gotoAndPlay("endDemoFO");
mc.stop();
st = 603;
_local4 = ftc.checkData("score", "no");
_local3 = [9];
_local3 = ftc.acssesTask(_local4, _local3);
}
break;
counter++;
if (counter == 45) {
mc.gotoAndPlay("endBad");
mc.stop();
st = 604;
_local4 = ftc.checkData("score", "no");
_local3 = [12];
_local3 = ftc.acssesTask(_local4, _local3);
st = 604;
}
break;
break;
counter++;
if (counter == 50) {
mc.play();
}
if (counter == 85) {
s_bnt.setVolume(100);
s_bnt.start(0);
_local4 = ftc.checkData("score", "no");
_local3 = [13];
_local3 = ftc.acssesTask(_local4, _local3);
tc.setTask(new task.Lastchar(tmc, "ayumi_naguri", mc._x - 20, (mc._y - (mc._height / 2)) - 1, 0));
if (pantu) {
tc.setTask(new task.Lastchar(tmc, "pantuH", mc._x, mc._y - (mc._height / 2), 1));
} else {
tc.setTask(new task.Lastchar(tmc, "buraH", mc._x, mc._y - (mc._height / 2), 1));
}
var _local8 = mc._currentframe;
var _local7 = mc.hasirioUp._currentframe;
var _local6 = mc.hasirioBt._currentframe;
var _local10 = mc._x;
var _local9 = mc._y;
mc.removeMovieClip();
mc = null;
mc = tmc.attachMovie("hasirio3", "hasirio3" + tmc.getNextHighestDepth(), tmc.getNextHighestDepth());
mc._x = _local10;
mc._y = _local9;
if (mc._currentframe != _local8) {
mc.gotoAndPlay(_local8);
}
if (mc.hasirioUp._currentframe != _local7) {
mc.hasirioUp.gotoAndPlay(_local7);
}
if (mc.hasirioBt._currentframe != _local6) {
mc.hasirioBt.gotoAndPlay(_local6);
}
mc.gotoAndStop("jiko");
st = 605;
}
break;
mc._x = mc._x - 8;
mc._y = mc._y - 1;
if ((mc._x + mc._width) < 0) {
return(false);
}
break;
if (mc._y < 245) {
mc._y = mc._y + 8;
if (mc._y > 245) {
mc._y = 245;
}
}
mc._x = mc._x - 8;
mc._rotation = (mc._rotation - 30) % 360;
if ((mc._x + mc._width) < 0) {
st = 501;
}
break;
mc._x = mc._x - 8;
if ((mc._x + mc._width) >= 0) {
break;
}
st = 501;
}
case 500 :
mc._x = mc._x - 8;
if ((mc._x + mc._width) < 0) {
st = 501;
}
break;
case 501 :
_local4 = tc.checkData("sora", "no");
_local3 = [3];
tc.acssesTask(_local4, _local3);
_local4 = tc.checkData("auto3", "no");
_local3[0] = 1;
tc.acssesTask(_local4, _local3);
st = 502;
break;
case 502 :
break;
case 600 :
mc._x = mc._x - endzure;
endzure = endzure - 0.5;
counter++;
if (counter == 15) {
if ((!bura) && (!pantu)) {
st = 601;
} else {
st = 602;
}
}
break;
case 601 :
counter++;
if (counter == 45) {
_local4 = ftc.checkData("score", "no");
_local3 = [10, 100000];
_local3 = ftc.acssesTask(_local4, _local3);
mc.gotoAndPlay("endDemoFO");
mc.stop();
st = 603;
_local4 = ftc.checkData("score", "no");
_local3 = [9];
_local3 = ftc.acssesTask(_local4, _local3);
}
break;
case 602 :
counter++;
if (counter == 45) {
mc.gotoAndPlay("endBad");
mc.stop();
st = 604;
_local4 = ftc.checkData("score", "no");
_local3 = [12];
_local3 = ftc.acssesTask(_local4, _local3);
st = 604;
}
break;
case 603 :
break;
case 604 :
counter++;
if (counter == 50) {
mc.play();
}
if (counter == 85) {
s_bnt.setVolume(100);
s_bnt.start(0);
_local4 = ftc.checkData("score", "no");
_local3 = [13];
_local3 = ftc.acssesTask(_local4, _local3);
tc.setTask(new task.Lastchar(tmc, "ayumi_naguri", mc._x - 20, (mc._y - (mc._height / 2)) - 1, 0));
if (pantu) {
tc.setTask(new task.Lastchar(tmc, "pantuH", mc._x, mc._y - (mc._height / 2), 1));
} else {
tc.setTask(new task.Lastchar(tmc, "buraH", mc._x, mc._y - (mc._height / 2), 1));
}
var _local8 = mc._currentframe;
var _local7 = mc.hasirioUp._currentframe;
var _local6 = mc.hasirioBt._currentframe;
var _local10 = mc._x;
var _local9 = mc._y;
mc.removeMovieClip();
mc = null;
mc = tmc.attachMovie("hasirio3", "hasirio3" + tmc.getNextHighestDepth(), tmc.getNextHighestDepth());
mc._x = _local10;
mc._y = _local9;
if (mc._currentframe != _local8) {
mc.gotoAndPlay(_local8);
}
if (mc.hasirioUp._currentframe != _local7) {
mc.hasirioUp.gotoAndPlay(_local7);
}
if (mc.hasirioBt._currentframe != _local6) {
mc.hasirioBt.gotoAndPlay(_local6);
}
mc.gotoAndStop("jiko");
st = 605;
}
break;
case 605 :
mc._x = mc._x - 8;
mc._y = mc._y - 1;
if ((mc._x + mc._width) < 0) {
return(false);
}
break;
case 700 :
if (mc._y < 245) {
mc._y = mc._y + 8;
if (mc._y > 245) {
mc._y = 245;
}
}
mc._x = mc._x - 8;
mc._rotation = (mc._rotation - 30) % 360;
if ((mc._x + mc._width) < 0) {
st = 501;
}
break;
case 750 :
mc._x = mc._x - 8;
if ((mc._x + mc._width) >= 0) {
break;
}
st = 501;
}
if ((st < 3) && (scadd)) {
if (life) {
_local4 = tc.checkData("score", "no");
_local3 = [10, Math.floor((mc._x - xlower) / 40) + 2];
tc.acssesTask(_local4, _local3);
}
}
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tc.elaseData("hasirio");
}
function talkTask(mess) {
var _local5;
var _local2;
var _local4;
switch (mess[0]) {
case 0 :
_local4 = new Array(8);
_local4[0] = mc._x - (mc._width / 2);
_local4[1] = mc._y - (mc._height / 2);
_local4[2] = mc._width;
_local4[3] = mc._height;
if (st == 0) {
_local4[4] = 0;
} else if (st < 3) {
_local4[4] = 1;
} else if (st == 100) {
_local4[4] = 3;
} else if ((st > 100) && (st < 103)) {
_local4[4] = 4;
} else {
_local4[4] = 2;
}
_local4[5] = mc._x;
_local4[6] = xlower;
_local4[7] = mc._y - 10;
break;
case 1 :
life = false;
break;
case 2 :
_local4 = new Array(1);
if (st == 8) {
_local4[0] = 1;
} else {
_local4[0] = 0;
}
break;
case 3 :
mc.hasirioUp.gotoAndStop("endRun");
auymiwait = true;
_local5 = ftc.checkData("buzer", "no");
_local2 = [0];
_local2 = ftc.acssesTask(_local5, _local2);
break;
case 4 :
followayumi = true;
break;
case 5 :
scadd = true;
break;
case 6 :
mc.play();
break;
case 7 :
if (life) {
_local4 = [1];
} else {
_local4 = [0];
}
break;
case 1000 :
counter = 0;
if (mess[1] == 0) {
switch (mess[2]) {
case 0 :
mc.hasirioUp.gotoAndPlay("eat1");
break;
case 1 :
mc.hasirioUp.gotoAndPlay("eat2");
break;
case 2 :
mc.hasirioUp.gotoAndPlay("eat3");
break;
case 3 :
mc.hasirioUp.gotoAndPlay("eat4");
break;
case 4 :
mc.hasirioUp.gotoAndPlay("eat5");
break;
default :
trace(mess[2] + "\u756A\u306E\u30A2\u30A4\u30C6\u30E0\u306F\u3042\u308A\u3048\u306A\u3044");
}
_local5 = ftc.checkData("score", "no");
_local2 = [5, data.ObjData.fdata[mess[2]][1]];
_local2 = ftc.acssesTask(_local5, _local2);
life = true;
eatcount = 32;
} else if (mess[1] == 100) {
var _local8 = mc._currentframe;
var _local7 = mc.hasirioUp._currentframe;
var _local6 = mc.hasirioBt._currentframe;
var _local10 = mc._x;
var _local9 = mc._y;
mc.removeMovieClip();
mc = null;
mc = tmc.attachMovie("hasirio1", "hasirio1" + tmc.getNextHighestDepth(), tmc.getNextHighestDepth());
mc._x = _local10;
mc._y = _local9;
mc.play();
mc.hasirioUp.play();
mc.hasirioBt.play();
if (mc._currentframe != _local8) {
mc.gotoAndPlay(_local8);
}
if (mc.hasirioUp._currentframe != _local7) {
mc.hasirioUp.gotoAndPlay(_local7);
}
if (mc.hasirioBt._currentframe != _local6) {
mc.hasirioBt.gotoAndPlay(_local6);
}
bpcount = bpwait;
pantu = false;
bura = true;
} else if (mess[1] == 101) {
var _local8 = mc._currentframe;
var _local7 = mc.hasirioUp._currentframe;
var _local6 = mc.hasirioBt._currentframe;
var _local10 = mc._x;
var _local9 = mc._y;
mc.removeMovieClip();
mc = null;
mc = tmc.attachMovie("hasirio2", "hasirio2" + tmc.getNextHighestDepth(), tmc.getNextHighestDepth());
mc._x = _local10;
mc._y = _local9;
mc.play();
mc.hasirioUp.play();
mc.hasirioBt.play();
if (mc._currentframe != _local8) {
mc.gotoAndPlay(_local8);
}
if (mc.hasirioUp._currentframe != _local7) {
mc.hasirioUp.gotoAndPlay(_local7);
}
if (mc.hasirioBt._currentframe != _local6) {
mc.hasirioBt.gotoAndPlay(_local6);
}
bpcount = bpwait;
bura = false;
pantu = true;
} else if (mess[1] == 111) {
_local5 = ftc.checkData("sora", "no");
_local2 = [6];
_local2 = ftc.acssesTask(_local5, _local2);
if ((st == 1) || (st == 2)) {
mc.gotoAndPlay("kokeEnd");
counter = 0;
st = 700;
} else if (st == 0) {
mc.gotoAndPlay("endDemo");
counter = 0;
endzure = 9;
ftc.setTask(new task.Numfor(tmc, "4numbers", mc._x - 40, mc._y - mc._height, 0, 2, 2));
_local5 = ftc.checkData("score", "no");
_local2 = [10, 100000];
_local2 = ftc.acssesTask(_local5, _local2);
st = 600;
}
} else if (mess[1] == 112) {
_local5 = ftc.checkData("sora", "no");
_local2 = [4];
_local2 = ftc.acssesTask(_local5, _local2);
mc.gotoAndPlay("kokeEnd");
counter = 0;
st = 700;
} else {
if (bpcount > 1) {
bpcount = bpwait;
}
jump = 8;
jumpflag = true;
speed_now = 0;
if ((st == 1) || (st == 2)) {
mc.hasirioUp.gotoAndStop("kokeUsiro");
mc.hasirioBt.gotoAndStop("kokeUsiro");
if (mess[1] == 2) {
mc.gotoAndStop("jiko");
st = 9;
s_car.start(0);
} else {
st = 3;
s_dmg.start(0);
}
} else if (st == 0) {
mc.hasirioUp.gotoAndStop("kokeUsiro");
mc.hasirioBt.gotoAndStop("kokeUsiro");
if (mess[1] == 2) {
mc.gotoAndStop("jiko");
st = 9;
s_car.start(0);
} else if (mess[1] == 4) {
st = 10;
s_dmg.start(0);
} else {
st = 4;
s_dmg.start(0);
}
}
eatcount = 0;
_local5 = ftc.checkData("score", "no");
_local2 = [4, mess[2]];
_local2 = ftc.acssesTask(_local5, _local2);
if (_local2[0] == 1) {
life = false;
}
}
break;
case 1001 :
if ((((mess[1] == 3) || (mess[1] == 5)) && (jump < 0)) && ((st == 2) || (st == 102))) {
_local2 = [0];
ftc.acssesTask(mess[3], _local2);
jump = 16;
} else if (mc._alpha != 100) {
} else if (mess[1] == 111) {
_local5 = ftc.checkData("sora", "no");
_local2 = [4];
_local2 = ftc.acssesTask(_local5, _local2);
mc.gotoAndPlay("kokeEnd");
counter = 0;
st = 700;
} else if (mess[1] == 112) {
_local5 = ftc.checkData("sora", "no");
_local2 = [4];
_local2 = ftc.acssesTask(_local5, _local2);
mc.gotoAndPlay("kokeEnd");
counter = 0;
st = 700;
} else {
speed_now = 0;
if (bpcount > 1) {
bpcount = bpwait;
}
jump = 8;
counter = 0;
jumpflag = true;
if ((st == 1) || (st == 2)) {
mc.hasirioUp.gotoAndStop("kokeMae");
mc.hasirioBt.gotoAndStop("kokeMae");
if (mess[1] == 2) {
mc.gotoAndStop("jiko");
s_car.start(0);
st = 9;
} else {
st = 5;
s_dmg.start(0);
}
} else if (st == 0) {
mc.hasirioUp.gotoAndStop("kokeMae");
mc.hasirioBt.gotoAndStop("kokeMae");
if (mess[1] == 2) {
mc.gotoAndStop("jiko");
st = 9;
s_car.start(0);
} else if (mess[1] == 4) {
st = 10;
s_dmg.start(0);
} else {
st = 6;
s_dmg.start(0);
}
}
eatcount = 0;
_local5 = ftc.checkData("score", "no");
_local2 = [4, mess[2]];
_local2 = ftc.acssesTask(_local5, _local2);
if (_local2[0] != 1) {
break;
}
life = false;
}
}
return(_local4);
}
function yokoidou() {
if (eatcount > 0) {
eatcount--;
if (eatcount == 0) {
if ((st == 0) || (st == 100)) {
mc.hasirioUp.gotoAndPlay(mc.hasirioBt._currentframe);
} else {
mc.hasirioUp.gotoAndStop("jump");
}
}
}
if (bpcount > 0) {
bpcount--;
if (bpcount == 1) {
bpcount = 0;
var _local4 = mc._currentframe;
var _local3 = mc.hasirioUp._currentframe;
var _local2 = mc.hasirioBt._currentframe;
var _local6 = mc._x;
var _local5 = mc._y;
mc.removeMovieClip();
mc = null;
mc = tmc.attachMovie("hasirio3", "hasirio3" + tmc.getNextHighestDepth(), tmc.getNextHighestDepth());
mc._x = _local6;
mc._y = _local5;
mc.play();
mc.hasirioUp.play();
mc.hasirioBt.play();
if (mc._currentframe != _local4) {
mc.gotoAndPlay(_local4);
}
if (mc.hasirioUp._currentframe != _local3) {
mc.hasirioUp.gotoAndPlay(_local3);
}
if (mc.hasirioBt._currentframe != _local2) {
mc.hasirioBt.gotoAndPlay(_local2);
}
if (pantu) {
ftc.setTask(new task.KiePan(tmc, "pantuH", mc._x, mc._y - (mc._height / 2)));
} else {
ftc.setTask(new task.KiePan(tmc, "buraH", mc._x, mc._y - (mc._height / 2)));
}
pantu = false;
bura = false;
}
}
if (Key.isDown(39)) {
speed_now = speed_now + 0.2;
if (speed_now > 1) {
speed_now = 1;
}
} else if (Key.isDown(37)) {
speed_now = speed_now - 0.2;
if (speed_now < -1) {
speed_now = -1;
}
} else {
if (speed_now > 0) {
speed_now = speed_now - 0.05;
} else if (speed_now < 0) {
speed_now = speed_now + 0.05;
}
if ((speed_now < 0.05) && (speed_now > -0.05)) {
speed_now = 0;
}
}
mc._x = mc._x + (speed * speed_now);
if (mc._x > 450) {
mc._x = 450;
}
if (mc._x < xlower) {
mc._x = xlower;
}
}
var speed = 8;
var jumppow = 25;
var juuryoku = 2;
var muteki = 30;
var bpwait = 900;
var baseline = 275;
}
Symbol 879 MovieClip [__Packages.task.Lastchar] Frame 0
class task.Lastchar implements nigoro.lib.duplex.Task.Task
{
var mc, sta, rt, ari;
function Lastchar (mmc, st, x, y, t) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
sta = t;
rt = 180;
ari = new nigoro.lib.duplex.Math.Arithmetic(0);
}
function init(no, tc) {
}
function run(tc) {
switch (sta) {
case 0 :
break;
case 1 :
mc._x = mc._x + (Math.sin(ari.degToRad(rt)) * 2);
rt = (rt + 20) % 360;
mc._y = mc._y + 0.55;
if (mc._y > 265) {
sta = 100;
}
break;
case 2 :
mc._x = mc._x - 8;
mc._y = mc._y - 0.5;
if ((mc._x + mc._width) < 0) {
return(false);
}
break;
case 100 :
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess) {
return(mess);
}
}
Symbol 880 MovieClip [__Packages.task.KiePan] Frame 0
class task.KiePan implements nigoro.lib.duplex.Task.Task
{
var mc;
function KiePan (mmc, st, x, y) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
}
function init(no, tc) {
}
function run(tc) {
mc._x = mc._x - data.ScSpeed.michi;
mc._y = mc._y + 1;
if ((mc._x + mc._width) < 0) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess) {
return(mess);
}
}
Symbol 881 MovieClip [__Packages.task.Objkanri] Frame 0
class task.Objkanri implements nigoro.lib.duplex.Task.Task
{
var tmc, mc, sora_no, objnum;
function Objkanri (dmc, cmc) {
var _local2;
tmc = cmc;
mc = new Array(fm);
_local2 = 0;
while (_local2 != fm) {
mc[_local2] = dmc.createEmptyMovieClip("midle_g" + _local2, dmc.getNextHighestDepth());
_local2++;
}
}
function init(no, tc) {
sora_no = tc.checkData("sora", "no");
objnum = 0;
}
function run(tc) {
var _local2;
var _local9;
var _local3;
var _local4;
var _local7;
var _local6;
var _local8 = new Array(1);
_local8[0] = 0;
_local8 = tc.acssesTask(sora_no, _local8);
while (data.Naramura_data.obj[objnum][0] == _local8[0]) {
_local2 = data.Naramura_data.obj[objnum][1];
if (_local2 < 0) {
_local2 = 0;
} else if (_local2 > (fm - 1)) {
_local2 = fm - 1;
}
_local3 = data.Naramura_data.obj[objnum][2];
if (_local3 < 1) {
_local3 = 1;
}
_local4 = data.Naramura_data.obj[objnum][3];
if (_local4 < 1) {
_local4 = 17;
}
_local7 = data.Naramura_data.obj[objnum][4];
_local6 = data.Naramura_data.obj[objnum][5];
if (_local3 == 10) {
tc.setTask(new task.TrainSound(mc[_local2], 15, 0));
}
if (_local3 == 11) {
tc.setTask(new task.TrainSound(mc[_local2], 30, 1));
}
tc.setTask(new task.ScChar2(mc[_local2], "scrollObj", 260, _local4, _local3, _local7, _local6, tmc));
objnum++;
}
return(true);
}
function finalize(tc) {
var _local2;
_local2 = 0;
while (_local2 != fm) {
mc[_local2].removeMovieClip();
mc[_local2] = null;
_local2++;
}
}
function talkTask(mess) {
return(mess);
}
var fm = 30;
}
Symbol 882 MovieClip [__Packages.task.TrainSound] Frame 0
class task.TrainSound implements nigoro.lib.duplex.Task.Task
{
var s_tr1, wait, counter, st;
function TrainSound (mmc, w, t) {
s_tr1 = new nigoro.lib.duplex.Sound.Csound(mmc);
if (t == 0) {
s_tr1.attachSound("train2.wav");
} else {
s_tr1.attachSound("train.wav");
}
wait = w;
counter = 0;
st = 0;
}
function init(no, tc) {
}
function run(tc) {
switch (st) {
case 0 :
counter++;
if (counter > wait) {
s_tr1.start(0);
st = 1;
}
break;
case 1 :
if (!s_tr1.isEnd()) {
break;
}
return(false);
}
return(true);
}
function finalize(tc) {
}
function talkTask(mess) {
return(mess);
}
}
Symbol 883 MovieClip [__Packages.nigoro.lib.duplex.Sound.Csound] Frame 0
class nigoro.lib.duplex.Sound.Csound extends Sound
{
var endflag;
function Csound (mc) {
super(mc);
endflag = true;
}
function start(i) {
super.start(i);
endflag = false;
}
function onSoundComplete() {
endflag = true;
}
function isEnd() {
return(endflag);
}
}
Symbol 884 MovieClip [__Packages.task.ScChar2] Frame 0
class task.ScChar2 implements nigoro.lib.duplex.Task.Task
{
var sp, mc, op1, op2, charctor, tmc, counter, elesecounter;
function ScChar2 (mmc, st, y, s, gs, o1, o2, lay) {
sp = s;
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 728;
op1 = o1;
op2 = o2;
mc._y = y;
mc.gotoAndStop(gs);
charctor = gs;
tmc = lay;
}
function init(no, tc) {
counter = 0;
elesecounter = 0;
}
function run(tc) {
var _local3;
var _local2 = new Array(1);
_local3 = tc.checkData("sora", "no");
_local2[0] = 1;
_local2 = tc.acssesTask(_local3, _local2);
mc._x = mc._x - (sp * _local2[0]);
if ((elesecounter > 300) && (_local2[0] == 1)) {
return(false);
}
if ((mc._x + mc._width) < 0) {
mc._x = 728;
return(false);
}
if ((op1 > 0) && (counter == 0)) {
if (mc._x <= op1) {
counter++;
if (mc._x > 450) {
_local3 = Math.floor(Math.random() * 2) * -2;
} else {
_local3 = (Math.floor(Math.random() * 4) - 2) * 2;
}
mc.farmer.gotoAndStop("HandUp");
tc.setTask(new task.Foods(tmc, "HPitems", op2, mc._x + 24, mc._y - 44, 16, data.ScSpeed.michi + _local3, 14));
}
}
elesecounter++;
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tmc = null;
}
function talkTask(mess) {
var _local1;
_local1[0] = 0;
return(_local1);
}
}
Symbol 885 MovieClip [__Packages.task.Foods] Frame 0
class task.Foods implements nigoro.lib.duplex.Task.Task
{
var mc, myn, rt, sp, y_pow, s_hpa, now_r, my_no, tk;
function Foods (mmc, st, n, x, y, r, s, yp) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.gotoAndStop(n + 1);
myn = n;
mc._x = x;
mc._y = y;
rt = r;
sp = s;
y_pow = yp;
s_hpa = new Sound(mmc);
s_hpa.attachSound("kaihuku.wav");
}
function init(no, tc) {
now_r = 0;
my_no = no;
tk = tc;
}
function run(tc) {
mc._y = mc._y - y_pow;
y_pow = y_pow - 0.7;
mc._x = (mc._x - data.ScSpeed.michi) + sp;
sp = sp - 0.1;
if (mc._y > 270) {
mc._y = 270;
return(false);
}
if (sp < 0) {
sp = 0;
}
now_r = ((360 + now_r) + rt) % 360;
mc._rotation = now_r;
if ((mc._x + mc._width) < 0) {
return(false);
}
setHitData(tc);
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess) {
var _local2;
var _local3;
if (mess[0] == 1000) {
_local2 = tk.checkData("score", "no");
_local3 = [10, data.ExData.sc[myn + 19]];
tk.acssesTask(_local2, _local3);
tk.killTask(my_no);
s_hpa.start(0);
}
return(mess);
}
function setHitData(tc) {
tc.regstData("hit", "no", my_no);
tc.regstData("hit", "x", mc._x - (mc._width / 2));
tc.regstData("hit", "y", mc._y - (mc._height / 2));
tc.regstData("hit", "width", mc._width);
tc.regstData("hit", "height", mc._height);
tc.regstData("hit", "roll", now_r);
tc.regstData("hit", "element", 0);
tc.regstData("hit", "option", myn);
}
}
Symbol 886 MovieClip [__Packages.task.Hit] Frame 0
class task.Hit implements nigoro.lib.duplex.Task.Task
{
var cl, ari, mtc, debug, mc;
function Hit (t, mmc, bug) {
cl = new nigoro.lib.duplex.Math.Collosion();
ari = new nigoro.lib.duplex.Math.Arithmetic(0);
mtc = t;
debug = bug;
mc = mmc.createEmptyMovieClip("hit_g", mmc.getNextHighestDepth());
}
function init(no, tc) {
}
function run(tc) {
var _local21;
var _local2;
var _local11;
var _local10 = new Array();
var _local4 = new Array(10);
var _local9 = new nigoro.lib.duplex.Math.FreeRect();
var _local8 = new nigoro.lib.duplex.Math.FreeRect();
var _local3 = new nigoro.lib.duplex.Math.FreeRect();
var _local15 = new nigoro.lib.duplex.Math.Rect(0, 0, 0, 0);
var _local14 = new nigoro.lib.duplex.Math.Rect(0, 0, 0, 0);
var _local6 = new nigoro.lib.duplex.Math.Rect(0, 0, 0, 0);
var _local7;
var _local18;
var _local16;
var _local19;
var _local17;
var _local12;
var _local5;
var _local13;
_local7 = tc.getData("hit", "no");
if (_local7 != null) {
_local18 = tc.getData("hit", "x");
_local16 = tc.getData("hit", "y");
_local19 = tc.getData("hit", "width");
_local17 = tc.getData("hit", "height");
_local12 = tc.getData("hit", "roll");
_local5 = tc.getData("hit", "element");
_local13 = tc.getData("hit", "option");
}
_local10[0] = 0;
_local11 = tc.checkData("hasirio", "no");
_local10 = mtc.acssesTask(_local11, _local10);
if (debug) {
mc.clear();
}
if (_local10[4] < 2) {
_local15.x = (_local9.x = _local10[0] + data.HasirioData.coll[_local10[4] * 2][2]);
_local15.y = (_local9.y = _local10[1] + data.HasirioData.coll[_local10[4] * 2][3]);
_local15.w = (_local9.w = data.HasirioData.coll[_local10[4] * 2][0] - 1);
_local15.h = (_local9.h = data.HasirioData.coll[_local10[4] * 2][1] - 1);
_local9.r = ari.degToRad(0);
_local14.x = (_local8.x = _local10[0] + data.HasirioData.coll[(_local10[4] * 2) + 1][2]);
_local14.y = (_local8.y = _local10[1] + data.HasirioData.coll[(_local10[4] * 2) + 1][3]);
_local14.w = (_local8.w = data.HasirioData.coll[(_local10[4] * 2) + 1][0] - 1);
_local14.h = (_local8.h = data.HasirioData.coll[(_local10[4] * 2) + 1][1] - 1);
_local8.r = ari.degToRad(0);
if (debug) {
mc.beginFill(16711680);
mc.moveTo(_local9.x, _local9.y);
mc.lineTo(_local9.x + _local9.w, _local9.y);
mc.lineTo(_local9.x + _local9.w, _local9.y + _local9.h);
mc.lineTo(_local9.x, _local9.y + _local9.h);
mc.endFill();
mc.beginFill(10066176);
mc.moveTo(_local8.x, _local8.y);
mc.lineTo(_local8.x + _local8.w, _local8.y);
mc.lineTo(_local8.x + _local8.w, _local8.y + _local8.h);
mc.lineTo(_local8.x, _local8.y + _local8.h);
mc.endFill();
}
_local2 = 0;
while (_local2 < _local7.length) {
_local6.x = (_local3.x = _local18[_local2]);
_local6.y = (_local3.y = _local16[_local2]);
_local6.w = (_local3.w = _local19[_local2] - 1);
_local6.h = (_local3.h = _local17[_local2] - 1);
_local3.r = _local12[_local2];
if (debug) {
mc.beginFill(255);
mc.moveTo(_local3.x, _local3.y);
mc.lineTo(_local3.x + _local3.w, _local3.y);
mc.lineTo(_local3.x + _local3.w, _local3.y + _local3.h);
mc.lineTo(_local3.x, _local3.y + _local3.h);
mc.endFill();
}
_local3.r = ari.degToRad(_local12[_local2]);
if (((cl.hitCheck(_local14, _local6) && (_local5[_local2] != 0)) && (_local5[_local2] != 100)) && (_local5[_local2] != 101)) {
if (cl.rHitCheck(_local8, _local3)) {
_local4[0] = 1001;
_local4[1] = _local5[_local2];
_local4[2] = _local13[_local2];
_local4[3] = _local7[_local2];
mtc.acssesTask(_local11, _local4);
_local4[0] = 1000;
mtc.acssesTask(_local7[_local2], _local4);
}
} else if (cl.hitCheck(_local15, _local6)) {
if (cl.rHitCheck(_local9, _local3)) {
_local4[0] = 1000;
_local4[1] = _local5[_local2];
_local4[2] = _local13[_local2];
_local4[3] = _local7[_local2];
mtc.acssesTask(_local11, _local4);
mtc.acssesTask(_local7[_local2], _local4);
}
}
_local2++;
}
} else if (_local10[4] > 2) {
_local10[4] = _local10[4] - 3;
_local15.x = (_local9.x = _local10[0] + data.HasirioData.coll[_local10[4] * 2][2]);
_local15.y = (_local9.y = _local10[1] + data.HasirioData.coll[_local10[4] * 2][3]);
_local15.w = (_local9.w = data.HasirioData.coll[_local10[4] * 2][0] - 1);
_local15.h = (_local9.h = data.HasirioData.coll[_local10[4] * 2][1] - 1);
_local9.r = ari.degToRad(0);
_local14.x = (_local8.x = _local10[0] + data.HasirioData.coll[(_local10[4] * 2) + 1][2]);
_local14.y = (_local8.y = _local10[1] + data.HasirioData.coll[(_local10[4] * 2) + 1][3]);
_local14.w = (_local8.w = data.HasirioData.coll[(_local10[4] * 2) + 1][0] - 1);
_local14.h = (_local8.h = data.HasirioData.coll[(_local10[4] * 2) + 1][1] - 1);
_local8.r = ari.degToRad(0);
if (debug) {
mc.beginFill(16711680);
mc.moveTo(_local9.x, _local9.y);
mc.lineTo(_local9.x + _local9.w, _local9.y);
mc.lineTo(_local9.x + _local9.w, _local9.y + _local9.h);
mc.lineTo(_local9.x, _local9.y + _local9.h);
mc.endFill();
mc.beginFill(10066176);
mc.moveTo(_local8.x, _local8.y);
mc.lineTo(_local8.x + _local8.w, _local8.y);
mc.lineTo(_local8.x + _local8.w, _local8.y + _local8.h);
mc.lineTo(_local8.x, _local8.y + _local8.h);
mc.endFill();
}
_local2 = 0;
while (_local2 < _local7.length) {
if (((_local5[_local2] == 0) || (_local5[_local2] == 3)) || (_local5[_local2] == 5)) {
_local6.x = (_local3.x = _local18[_local2]);
_local6.y = (_local3.y = _local16[_local2]);
_local6.w = (_local3.w = _local19[_local2] - 1);
_local6.h = (_local3.h = _local17[_local2] - 1);
_local3.r = _local12[_local2];
if (debug) {
mc.beginFill(255);
mc.moveTo(_local3.x, _local3.y);
mc.lineTo(_local3.x + _local3.w, _local3.y);
mc.lineTo(_local3.x + _local3.w, _local3.y + _local3.h);
mc.lineTo(_local3.x, _local3.y + _local3.h);
mc.endFill();
}
_local3.r = ari.degToRad(_local12[_local2]);
if (cl.hitCheck(_local14, _local6) && ((_local5[_local2] == 3) || (_local5[_local2] == 5))) {
if (cl.rHitCheck(_local8, _local3)) {
_local4[0] = 1001;
_local4[1] = _local5[_local2];
_local4[2] = _local13[_local2];
_local4[3] = _local7[_local2];
mtc.acssesTask(_local11, _local4);
_local4[0] = 1000;
mtc.acssesTask(_local7[_local2], _local4);
}
} else if (cl.hitCheck(_local15, _local6) && (_local5[_local2] == 0)) {
if (cl.rHitCheck(_local9, _local3)) {
_local4[0] = 1000;
_local4[1] = _local5[_local2];
_local4[2] = _local13[_local2];
_local4[3] = _local7[_local2];
mtc.acssesTask(_local11, _local4);
mtc.acssesTask(_local7[_local2], _local4);
}
}
}
_local2++;
}
}
if (_local7 != null) {
tc.elaseData("hit");
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess) {
return(mess);
}
function testMess(d1, d2, d3) {
var _local1;
var _local2;
if (d3 == 0) {
_local1 = "\u4F53";
} else {
_local1 = "\u8DB3";
}
switch (d1) {
case 0 :
switch (d2) {
case 0 :
_local2 = "\u304A\u306B\u304E\u308A";
break;
case 1 :
_local2 = "\u30DD\u30AB\u30EA\u30B9\u30A6\u30A7\u30C3\u30C8";
break;
case 2 :
_local2 = "\u3068\u3046\u3082\u308D\u3053\u3057";
break;
case 3 :
_local2 = "\u30EC\u30E2\u30F3";
break;
case 4 :
_local2 = "\u56E3\u5B50";
break;
default :
_local2 = "\u8B0E\u306E\u7269\u4F53";
}
trace(((((_local2 + "\u304C") + _local1) + "\u306B\u63A5\u89E6 \u56DE\u5FA9\u91CF[") + data.ObjData.fdata[d2][1]) + "]");
break;
case 1 :
trace(((("\u969C\u5BB3\u7269\u5168\u822C\u304C" + _local1) + "\u306B\u63A5\u89E6 \u30C0\u30E1\u30FC\u30B8\u91CF[") + d2) + "]");
break;
case 2 :
trace(((("\u6025\u30D6\u30EC\u30FC\u30AD\u76F4\u5F8C\u306E\u8ECA\u304C" + _local1) + "\u306B\u63A5\u89E6 \u30C0\u30E1\u30FC\u30B8\u91CF[") + d2) + "]");
break;
case 3 :
trace(((("\u3082\u3050\u3089\u304C" + _local1) + "\u306B\u63A5\u89E6 \u30C0\u30E1\u30FC\u30B8\u91CF[") + d2) + "]");
break;
case 4 :
trace(((("\u81EA\u8EE2\u8ECA\u304C" + _local1) + "\u306B\u63A5\u89E6 \u30C0\u30E1\u30FC\u30B8\u91CF[") + d2) + "]");
break;
default :
trace(((("\u4E0D\u660E\u7269\u304C" + _local1) + "\u306B\u63A5\u89E6 \u30C0\u30E1\u30FC\u30B8\u91CF[") + d2) + "]");
}
}
}
Symbol 887 MovieClip [__Packages.data.HasirioData] Frame 0
class data.HasirioData
{
function HasirioData () {
}
static var coll = [[5, 20, 30, 23, 0, 0], [10, 25, 30, 40, 0, 0], [20, 15, 30, 10, 0, 0], [35, 10, 15, 30, 0, 0]];
}
Symbol 888 MovieClip [__Packages.task.Levelman] Frame 0
class task.Levelman implements nigoro.lib.duplex.Task.Task
{
var mc, wait, counter, st;
function Levelman (mmc, st, x, y, w) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc._alpha = 0;
wait = w;
}
function init(no, tc) {
counter = 0;
st = 0;
}
function run(tc) {
var _local2;
var _local3 = new Array(1);
counter++;
switch (st) {
case 0 :
if (counter > wait) {
st = 1;
}
break;
case 1 :
_local2 = mc._alpha;
_local2 = _local2 + 3;
if (_local2 > 100) {
_local2 = 100;
st = 2;
}
mc._alpha = _local2;
break;
case 2 :
_local3[0] = 8;
_local2 = tc.checkData("score", "no");
_local3 = tc.acssesTask(_local2, _local3);
mc._alpha = _local3[0];
if (_local3[0] != 0) {
break;
}
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess) {
return(mess);
}
}
Symbol 889 MovieClip [__Packages.task.Karasu] Frame 0
class task.Karasu implements nigoro.lib.duplex.Task.Task
{
var tmc, mc, out, speed, type, op1, farsty, yararer, kara_rota, s_vo1, s_vo2, s_dmg, counter, my_no, flag, scflag, ftc, soundflag, udsp;
function Karasu (mmc, st, x, y, s, tp, o1) {
tmc = mmc;
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
out = -mc._width;
speed = s;
type = tp;
op1 = o1;
farsty = y;
yararer = 360;
kara_rota = 360;
s_vo1 = new Sound(mc);
s_vo2 = new Sound(mc);
s_dmg = new Sound(mc);
s_vo1.attachSound("craw.wav");
s_vo2.attachSound("craw2.wav");
s_dmg.attachSound("damage.wav");
}
function init(no, tc) {
counter = 0;
my_no = no;
flag = false;
scflag = true;
ftc = tc;
soundflag = true;
}
function run(tc) {
var _local2 = new Array();
var _local5;
var _local4;
var _local6;
switch (type) {
case 0 :
mc._x = mc._x - speed;
if (mc._x < out) {
return(false);
}
if ((mc._x < op1) && (!flag)) {
s_vo1.start(0);
flag = true;
type = 100;
counter = 0;
udsp = speed;
}
break;
case 1 :
mc._x = mc._x - speed;
if (mc._x < out) {
return(false);
}
if (soundflag) {
if (mc._x < (op1 + 250)) {
soundflag = false;
s_vo1.start(0);
}
}
if ((mc._x < op1) && (!flag)) {
s_vo1.start(0);
mc.gotoAndStop(2);
mc.gotoAndStop(1);
flag = true;
type = 200;
counter = 0;
udsp = 20;
}
break;
case 2 :
mc._x = mc._x - speed;
if (mc._x < out) {
return(false);
}
_local2[0] = 0;
_local5 = tc.checkData("hasirio", "no");
_local2 = tc.acssesTask(_local5, _local2);
if ((mc._x < (_local2[0] + 70)) && (!flag)) {
s_vo1.start(0);
flag = true;
type = 100;
counter = 0;
udsp = speed;
}
break;
case 3 :
mc._x = mc._x - speed;
if (mc._x < out) {
return(false);
}
if (soundflag) {
if (mc._x < (op1 + 50)) {
soundflag = false;
s_vo1.start(0);
}
} else if (kara_rota > 330) {
kara_rota = kara_rota - 3;
mc._rotation = kara_rota;
mc._y = mc._y + 0.3;
}
if ((mc._x < op1) && (!flag)) {
s_vo1.start(0);
mc.gotoAndStop(2);
mc.gotoAndStop(1);
flag = true;
type = 300;
counter = 0;
udsp = 18;
}
break;
case 4 :
mc._x = mc._x - speed;
if (mc._x < out) {
return(false);
}
break;
case 300 :
if (kara_rota != 360) {
kara_rota = kara_rota + 3;
mc._rotation = kara_rota;
}
mc._x = mc._x - speed;
if (mc._x < out) {
return(false);
}
mc._y = mc._y + udsp;
if (mc._y > 210) {
mc.gotoAndPlay(2);
mc._y = 210;
type = 4;
}
if (udsp > 0) {
udsp = udsp - 1;
}
speed = speed + 0.2;
break;
case 200 :
mc._x = mc._x - speed;
if (mc._x < out) {
return(false);
}
mc._y = mc._y + udsp;
if (mc._y < farsty) {
mc._y = farsty;
type = 1;
mc.gotoAndPlay(2);
}
udsp = udsp - 1.3;
break;
case 100 :
udsp = udsp - 0.5;
mc._x = mc._x - udsp;
if (udsp <= 0) {
udsp = 0;
type = 101;
tc.setTask(new task.Unko(tmc, "unko", mc._x + 22, mc._y + 26));
}
break;
case 101 :
counter++;
if (counter == 5) {
type = 102;
}
break;
case 102 :
udsp = udsp + 0.5;
if (udsp > speed) {
udsp = speed;
type = 0;
}
mc._x = mc._x - udsp;
break;
case 1000 :
udsp = udsp + 0.7;
mc._y = mc._y + udsp;
yararer = yararer - 5;
if (yararer <= 270) {
yararer = 270;
type = 1001;
}
mc._rotation = yararer;
break;
case 1001 :
udsp = udsp + 0.7;
mc._y = mc._y + udsp;
if (mc._y <= 380) {
break;
}
return(false);
}
if (type < 1000) {
if (scflag) {
_local2 = [0];
_local4 = tc.checkData("hasirio", "no");
if (_local4 != null) {
_local2 = tc.acssesTask(_local4, _local2);
if (_local2[0] > mc._x) {
scflag = false;
if (_local2[7] < mc._y) {
if ((_local2[4] == 1) || (_local2[4] == 4)) {
_local6 = tc.checkData("score", "no");
_local2 = [2, data.ExData.sc[35] * (Math.floor((_local2[5] - _local2[6]) / 80) + 1)];
_local2 = tc.acssesTask(_local6, _local2);
tc.setTask(new task.Numfor(tmc, "4numbers", mc._x + 8, mc._y, _local2[0], 0, _local2[1]));
}
}
}
}
} else {
_local2 = [0];
_local4 = tc.checkData("hasirio", "no");
if (_local4 != null) {
_local2 = tc.acssesTask(_local4, _local2);
if (_local2[0] < mc._x) {
scflag = true;
}
}
}
setHitData(tc);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess) {
var _local3;
var _local2;
if (!(mess[0] === 0)) {
} else {
type = 1000;
udsp = 0;
mc.gotoAndStop(2);
mc.gotoAndStop(1);
s_vo2.start(0);
s_dmg.start(0);
_local2 = [0];
_local3 = ftc.checkData("hasirio", "no");
_local2 = ftc.acssesTask(_local3, _local2);
_local3 = ftc.checkData("score", "no");
_local2 = [15, (data.ExData.sc[35] * (Math.floor((_local2[5] - _local2[6]) / 80) + 1)) * 4];
ftc.acssesTask(_local3, _local2);
}
return(mess);
}
function setHitData(tc) {
tc.regstData("hit", "no", my_no);
tc.regstData("hit", "x", mc._x + 5);
tc.regstData("hit", "y", mc._y + 5);
tc.regstData("hit", "width", mc._width - 10);
tc.regstData("hit", "height", mc._height - 15);
tc.regstData("hit", "roll", 0);
tc.regstData("hit", "element", 5);
tc.regstData("hit", "option", data.ExData.dm[0]);
}
}
Symbol 890 MovieClip [__Packages.task.Unko] Frame 0
class task.Unko implements nigoro.lib.duplex.Task.Task
{
var mc, dp, my_no, tk;
function Unko (mmc, st, x, y) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
}
function init(no, tc) {
dp = 0;
my_no = no;
tk = tc;
}
function run(tc) {
mc._y = mc._y + dp;
dp = dp + 0.7;
if (mc._y > 260) {
return(false);
}
setHitData(tc);
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess) {
if (mess[0] == 1000) {
tk.killTask(my_no);
}
return(mess);
}
function setHitData(tc) {
tc.regstData("hit", "no", my_no);
tc.regstData("hit", "x", mc._x);
tc.regstData("hit", "y", mc._y);
tc.regstData("hit", "width", mc._width);
tc.regstData("hit", "height", mc._height);
tc.regstData("hit", "roll", 0);
tc.regstData("hit", "element", 1);
tc.regstData("hit", "option", data.ExData.dm[1]);
}
}
Symbol 891 MovieClip [__Packages.task.Mogura] Frame 0
class task.Mogura implements nigoro.lib.duplex.Task.Task
{
var mc, tmc, sp, s_dmg, my_no, scflag, st, alp, ftc;
function Mogura (mmc, st, x, y, s) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
tmc = mmc;
mc.stop();
mc._x = x;
mc._y = y;
sp = s;
s_dmg = new Sound(mc);
s_dmg.attachSound("damage.wav");
}
function init(no, tc) {
my_no = no;
scflag = true;
st = 0;
alp = 100;
ftc = tc;
}
function run(tc) {
var _local4;
var _local5;
var _local2;
mc._x = mc._x - sp;
switch (st) {
case 0 :
if (mc._x < 500) {
mc.play();
mc.gotoAndPlay(2);
st = 1;
}
break;
case 1 :
break;
case 1000 :
alp = alp - 5;
if (alp <= 0) {
alp = 0;
return(false);
}
mc._alpha = alp;
}
if (st < 1000) {
if (scflag) {
_local2 = [0];
_local4 = tc.checkData("hasirio", "no");
if (_local4 != null) {
_local2 = tc.acssesTask(_local4, _local2);
if (_local2[0] > mc._x) {
scflag = false;
if (_local2[7] < mc._y) {
if ((_local2[4] == 1) || (_local2[4] == 4)) {
_local5 = tc.checkData("score", "no");
_local2 = [2, data.ExData.sc[34] * (Math.floor((_local2[5] - _local2[6]) / 80) + 1)];
_local2 = tc.acssesTask(_local5, _local2);
tc.setTask(new task.Numfor(tmc, "4numbers", mc._x + 8, mc._y, _local2[0], 0, _local2[1]));
}
}
}
}
}
if ((mc._x + mc._width) < 0) {
return(false);
}
setHitData(tc);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tmc = null;
}
function talkTask(mess) {
var _local3;
var _local2;
if (!(mess[0] === 0)) {
} else {
st = 1000;
alp = 100;
_local2 = [0];
_local3 = ftc.checkData("hasirio", "no");
_local2 = ftc.acssesTask(_local3, _local2);
_local3 = ftc.checkData("score", "no");
_local2 = [15, (data.ExData.sc[34] * (Math.floor((_local2[5] - _local2[6]) / 80) + 1)) * 4];
ftc.acssesTask(_local3, _local2);
s_dmg.start(0);
}
return(mess);
}
function setHitData(tc) {
tc.regstData("hit", "no", my_no);
tc.regstData("hit", "x", mc._x);
tc.regstData("hit", "y", mc._y - 8);
tc.regstData("hit", "width", mc._width + 10);
tc.regstData("hit", "height", mc._height);
tc.regstData("hit", "roll", 0);
tc.regstData("hit", "element", 3);
tc.regstData("hit", "option", data.ExData.dm[2]);
}
}
Symbol 892 MovieClip [__Packages.task.Assasin] Frame 0
class task.Assasin implements nigoro.lib.duplex.Task.Task
{
var mc, tmc, sp, fl, s_jit, my_no, scflag;
function Assasin (mmc, st, x, y, s) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
tmc = mmc;
mc._x = x + 800;
mc._y = y;
sp = s;
fl = false;
s_jit = new Sound(mc);
s_jit.attachSound("jitensya.wav");
}
function init(no, tc) {
my_no = no;
scflag = true;
s_jit.start(0);
}
function run(tc) {
var _local4;
var _local5;
var _local2;
mc._x = mc._x - sp;
if (!fl) {
if (mc._x < 500) {
mc.gotoAndPlay(2);
fl = true;
}
}
if (scflag) {
_local2 = [0];
_local4 = tc.checkData("hasirio", "no");
if (_local4 != null) {
_local2 = tc.acssesTask(_local4, _local2);
if (_local2[0] > mc._x) {
scflag = false;
if (_local2[7] < mc._y) {
if ((_local2[4] == 1) || (_local2[4] == 4)) {
_local5 = tc.checkData("score", "no");
_local2 = [2, data.ExData.sc[36] * (Math.floor((_local2[5] - _local2[6]) / 80) + 1)];
_local2 = tc.acssesTask(_local5, _local2);
tc.setTask(new task.Numfor(tmc, "4numbers", mc._x + 8, mc._y, _local2[0], 0, _local2[1]));
}
}
}
}
}
if ((mc._x + mc._width) < 0) {
return(false);
}
setHitData(tc);
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tmc = null;
}
function talkTask(mess) {
return(mess);
}
function setHitData(tc) {
tc.regstData("hit", "no", my_no);
tc.regstData("hit", "x", mc._x + 30);
tc.regstData("hit", "y", mc._y);
tc.regstData("hit", "width", 20);
tc.regstData("hit", "height", mc._height);
tc.regstData("hit", "roll", 0);
tc.regstData("hit", "element", 4);
tc.regstData("hit", "option", data.ExData.dm[3]);
}
}
Symbol 893 MovieClip [__Packages.nigoro.lib.duplex.Font.WordChecker] Frame 0
class nigoro.lib.duplex.Font.WordChecker
{
function WordChecker () {
}
static function isOkey(st, star) {
var _local3 = st.toUpperCase();
var _local1;
_local1 = 0;
while (_local1 != star.length) {
if (_local3.indexOf(star[_local1]) != -1) {
return(false);
}
_local1++;
}
return(true);
}
}
Symbol 894 MovieClip [__Packages.nigoro.lib.duplex.Font.Word.NGWord] Frame 0
class nigoro.lib.duplex.Font.Word.NGWord
{
function NGWord () {
}
static var FarstNG = ["KATAWA", "TUNBO", "MEKURA", "KITIGAI", "KICHIGAI", "HAKUTI", "OSI", "OSHI", "TISHOU", "CHISHOU", "CHISYOU", "TISYOU"];
static var HentaiNG = ["SEX", "CHINPO", "CHINPOU", "MANKO", "OMANKO", "ANARU"];
}
Symbol 895 MovieClip [__Packages.task.Score] Frame 0
class task.Score implements nigoro.lib.duplex.Task.Task
{
var mc, ari, glv, tmc, debug, s_bgm, s_po1, s_po2, renzoku, renzokujump, bairitu, hpheri, tensuu, maxhp, hp, barright, mtc, type, alp, stdemo, lastcount, spopcounter, jumpbai;
function Score (mmc, st, l, d) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
ari = new nigoro.lib.duplex.Math.Arithmetic(0);
glv = l;
tmc = mmc;
debug = d;
s_bgm = new nigoro.lib.samieru.sound.MusicPlayer(nigoro.lib.samieru.NigoroFlashManager.getBgmLayer().createEmptyMovieClip("BGMMC", nigoro.lib.samieru.NigoroFlashManager.getBgmLayer().getNextHighestDepth()));
s_bgm.attachSound("main_bgm.wav");
s_bgm.initPlay();
s_bgm.setLoopPoint(0);
s_po1 = new nigoro.lib.samieru.sound.MusicPlayer(mc.createEmptyMovieClip("POINTBGM", mc.getNextHighestDepth()));
s_po1.attachSound("score_pop.wav");
s_po1.initPlay();
s_po1.setLoopPoint(0);
s_po2 = new nigoro.lib.duplex.Sound.Csound(mc);
s_po2.attachSound("score_pop2.wav");
renzoku = false;
renzokujump = false;
bairitu = 1;
hpheri = 0;
}
function init(no, tc) {
tc.regstData("score", "no", no);
tensuu = 0;
maxhp = (hp = 5000);
barright = 300;
mtc = tc;
type = 0;
alp = 100;
stdemo = 0;
tc.setTask(new task.Buzer(tmc, maxhp));
s_bgm.start(0);
lastcount = 0;
}
function run(tc) {
var _local3;
var _local5;
switch (type) {
case 0 :
stdemo++;
if (stdemo == 30) {
_root.game.Gs.sendSystem("LifeGo", 0, 0);
}
_local3 = ari.getBeam(1, tensuu);
mc.no1.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(10, tensuu);
mc.no10.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(100, tensuu);
mc.no100.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(1000, tensuu);
mc.no1000.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(10000, tensuu);
mc.no10000.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(100000, tensuu);
mc.no100000.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(1000000, tensuu);
mc.no1000000.gotoAndStop(_local3 + 1);
break;
case 1 :
alp = alp - 3;
s_bgm.fadeOut(3);
if (alp < 0) {
alp = 0;
s_bgm.initPlay();
s_bgm.stop();
s_bgm.setVolume(100);
tc.setTask(new task.EndText(tmc, "gameover", 0, 0, tensuu, glv));
return(false);
}
mc._alpha = alp;
break;
case 2 :
hp = hp - hpheri;
if (hp <= 0) {
tensuu = tensuu + (Math.floor(hpheri + hp) * 100);
hp = 0;
type = 6;
s_po1.stop();
lastcount = 0;
} else {
tensuu = tensuu + (Math.floor(hpheri) * 100);
}
_local3 = barright;
barright = (300 / maxhp) * hp;
mc.lifeBar.lifeMask._width = barright;
_local3 = ari.getBeam(1, tensuu);
mc.no1.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(10, tensuu);
mc.no10.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(100, tensuu);
mc.no100.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(1000, tensuu);
mc.no1000.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(10000, tensuu);
mc.no10000.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(100000, tensuu);
mc.no100000.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(1000000, tensuu);
mc.no1000000.gotoAndStop(_local3 + 1);
break;
case 6 :
lastcount++;
if (lastcount == 30) {
s_po2.start(0);
tensuu = tensuu + 100000;
_local3 = ari.getBeam(1, tensuu);
mc.no1.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(10, tensuu);
mc.no10.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(100, tensuu);
mc.no100.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(1000, tensuu);
mc.no1000.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(10000, tensuu);
mc.no10000.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(100000, tensuu);
mc.no100000.gotoAndStop(_local3 + 1);
_local3 = ari.getBeam(1000000, tensuu);
mc.no1000000.gotoAndStop(_local3 + 1);
}
if (lastcount == 60) {
_local5 = [6];
_local3 = tc.checkData("hasirio", "no");
tc.acssesTask(_local3, _local5);
type = 7;
}
break;
case 7 :
alp = alp - 3;
s_bgm.fadeOut(3);
if (alp < 0) {
alp = 0;
s_bgm.initPlay();
s_bgm.stop();
s_bgm.setVolume(100);
tc.setTask(new task.Ending(tmc, "endroll", 728, 380, tensuu, glv));
return(false);
}
mc._alpha = alp;
break;
case 3 :
break;
case 4 :
alp = alp - 3;
s_bgm.fadeOut(3);
if (alp < 0) {
s_bgm.initPlay();
s_bgm.stop();
s_bgm.setVolume(100);
alp = 100;
type = 3;
mc._alpha = 0;
break;
}
mc._alpha = alp;
break;
case 5 :
tc.setTask(new task.EndText(tmc, "gameover", 0, 0, tensuu, glv));
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tc.elaseData("score");
}
function talkTask(mess) {
var _local5;
var _local4;
var _local3;
switch (mess[0]) {
case 0 :
mc._x = mess[1];
break;
case 1 :
mc._y = mess[1];
break;
case 2 :
if (renzoku) {
bairitu = bairitu * 2;
} else {
bairitu = 1;
renzoku = true;
}
s_po2.start(0);
_local3 = mess[1] * bairitu;
if (_local3 > 99999) {
_local3 = 99999 /* 0x01869F */;
}
tensuu = tensuu + _local3;
mess[0] = _local3;
mess[1] = bairitu;
break;
case 3 :
mess[0] = mc._x;
mess[1] = mc._y;
break;
case 4 :
_local3 = Math.floor(mess[1] + ((glv - 1) * 50));
hp = hp - _local3;
if (hp <= 0) {
if (debug) {
mess[0] = 0;
} else {
mess[0] = 1;
hp = 0;
}
} else {
mess[0] = 0;
}
_local5 = barright;
barright = (300 / maxhp) * hp;
mc.lifeBar.lifeMask._width = barright;
mtc.setTask(new task.Lifebar(mc.lifeBar, "damage", barright, _local5));
break;
case 5 :
_local4 = [0, 0, 0, 0];
_local5 = mtc.checkData("hasirio", "no");
_local4 = mtc.acssesTask(_local5, _local4);
mtc.setTask(new task.Numfor(tmc, "4numbers", _local4[0] + 25, _local4[1] + 20, mess[1], 1, 1));
hp = hp + mess[1];
if (hp > maxhp) {
hp = maxhp;
}
barright = (300 / maxhp) * hp;
mc.lifeBar.lifeMask._width = barright;
break;
case 6 :
hp = hp - mess[1];
if (hp <= 0) {
if (debug) {
mess[0] = 0;
} else {
mess[0] = 1;
hp = 0;
}
} else {
mess[0] = 0;
}
_local5 = barright;
barright = (300 / maxhp) * hp;
mc.lifeBar.lifeMask._width = barright;
break;
case 7 :
type = 1;
break;
case 8 :
mess[0] = mc._alpha;
break;
case 9 :
type = 2;
hpheri = hp / 24;
spopcounter = 0;
s_po1.start(0);
break;
case 10 :
tensuu = tensuu + mess[1];
break;
case 11 :
renzoku = false;
renzokujump = false;
break;
case 12 :
type = 4;
break;
case 13 :
type = 5;
break;
case 14 :
mess[0] = hp;
break;
case 15 :
if (renzokujump) {
jumpbai = jumpbai * 2;
} else {
jumpbai = 1;
renzokujump = true;
}
_local4 = [0, 0, 0, 0];
_local5 = mtc.checkData("hasirio", "no");
_local4 = mtc.acssesTask(_local5, _local4);
_local3 = mess[1] * bairitu;
if (_local3 > 99999) {
_local3 = 99999 /* 0x01869F */;
}
mtc.setTask(new task.Numfor(tmc, "4numbers", _local4[0] + 25, _local4[1], _local3, 0, jumpbai));
tensuu = tensuu + mess[1];
}
return(mess);
}
}
Symbol 896 MovieClip [__Packages.task.Buzer] Frame 0
class task.Buzer implements nigoro.lib.duplex.Task.Task
{
var bz, maxhp, st, bcount, my_no, ftc;
function Buzer (mmc, max) {
bz = new nigoro.lib.duplex.Sound.Csound(mmc);
bz.attachSound("se1B.wav");
maxhp = max;
}
function init(no, tc) {
st = 0;
bcount = 0;
my_no = no;
ftc = tc;
tc.regstData("buzer", "no", my_no);
}
function run(tc) {
var _local3;
var _local2;
switch (st) {
case 0 :
_local3 = tc.checkData("score", "no");
if (_local3 == null) {
return(false);
}
_local2 = [14];
_local2 = tc.acssesTask(_local3, _local2);
if (_local2[0] == 0) {
st = 4;
break;
}
if (_local2[0] < (maxhp / 4)) {
st = 1;
}
break;
case 1 :
bz.start(0);
st = 2;
break;
case 2 :
if (bz.isEnd()) {
bcount = 0;
st = 3;
}
break;
case 3 :
bcount++;
if (bcount > 30) {
st = 0;
}
break;
case 4 :
_local3 = tc.checkData("hasirio", "no");
_local2 = [7];
_local2 = tc.acssesTask(_local3, _local2);
if (_local2[0] != 1) {
break;
}
st = 0;
}
return(true);
}
function finalize(tc) {
tc.elaseData("buzer");
}
function talkTask(mess) {
if (!(mess[0] === 0)) {
} else {
ftc.killTask(my_no);
}
return(mess);
}
}
Symbol 897 MovieClip [__Packages.task.EndText] Frame 0
class task.EndText implements nigoro.lib.duplex.Task.Task
{
var mc, s_gov, sta, dnet, counter;
function EndText (mmc, st, x, y, sc, lv) {
var _local5 = new nigoro.lib.duplex.Math.Arithmetic(0);
var _local3;
var _local10 = false;
var _local8 = false;
Mouse.addListener(this);
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
switch (lv) {
case 1 :
mc.GText.lv1._alpha = 100;
mc.GText.lv2._alpha = 0;
mc.GText.lv3._alpha = 0;
mc.GText.lv4._alpha = 0;
mc.GText.lv5._alpha = 0;
break;
case 2 :
mc.GText.lv1._alpha = 100;
mc.GText.lv2._alpha = 100;
mc.GText.lv3._alpha = 0;
mc.GText.lv4._alpha = 0;
mc.GText.lv5._alpha = 0;
break;
case 3 :
mc.GText.lv1._alpha = 100;
mc.GText.lv2._alpha = 100;
mc.GText.lv3._alpha = 100;
mc.GText.lv4._alpha = 0;
mc.GText.lv5._alpha = 0;
break;
case 4 :
mc.GText.lv1._alpha = 100;
mc.GText.lv2._alpha = 100;
mc.GText.lv3._alpha = 100;
mc.GText.lv4._alpha = 100;
mc.GText.lv5._alpha = 0;
break;
case 5 :
mc.GText.lv1._alpha = 100;
mc.GText.lv2._alpha = 100;
mc.GText.lv3._alpha = 100;
mc.GText.lv4._alpha = 100;
mc.GText.lv5._alpha = 100;
}
_local3 = _local5.getBeam(1, sc);
mc.GText.no1.gotoAndStop(_local3 + 1);
_local3 = _local5.getBeam(10, sc);
mc.GText.no10.gotoAndStop(_local3 + 1);
_local3 = _local5.getBeam(100, sc);
mc.GText.no100.gotoAndStop(_local3 + 1);
_local3 = _local5.getBeam(1000, sc);
mc.GText.no1000.gotoAndStop(_local3 + 1);
_local3 = _local5.getBeam(10000, sc);
mc.GText.no10000.gotoAndStop(_local3 + 1);
_local3 = _local5.getBeam(100000, sc);
mc.GText.no100000.gotoAndStop(_local3 + 1);
_local3 = _local5.getBeam(1000000, sc);
mc.GText.no1000000.gotoAndStop(_local3 + 1);
s_gov = new Sound(nigoro.lib.samieru.NigoroFlashManager.getBgmLayer());
s_gov.attachSound("Gameover.wav");
if (_root.game.Gs.getSystem("NameOut").length == 0) {
mc.GText.RankIn._alpha = 0;
mc.GText.WR._alpha = 0;
s_gov.start(0);
sta = 1;
} else {
sta = 0;
dnet = new task.Net(_root.game.Gs.getSystem("NameOut"), lv, sc, 0);
mc.stop();
_root.game.Gs.sendSystem("SetRanker", String(lv), sc);
}
mc.GText.NetError._alpha = 0;
}
function init(no, tc) {
counter = 0;
}
function run(tc) {
switch (sta) {
case 0 :
dnet.run();
if (dnet.getEnd()) {
sta = 1;
mc.play();
s_gov.start(0);
if (dnet.isError()) {
mc.GText.RankIn._alpha = 0;
mc.GText.WR._alpha = 0;
mc.GText.NetError._alpha = 100;
} else {
var _local3 = dnet.getRank();
if (_local3 < 11) {
if (_local3 > 1) {
mc.GText.WR.gotoAndStop(_local3);
}
} else {
mc.GText.RankIn._alpha = 0;
mc.GText.WR._alpha = 0;
}
}
}
break;
case 1 :
counter++;
if (counter <= 60) {
break;
}
if (!Key.isDown(32)) {
break;
}
Mouse.removeListener(this);
_root.game.Gs.sendSystem("BackTitle", null, null);
Selection.setFocus(null);
}
return(true);
}
function onMouseDown() {
if (counter > 60) {
_root.game.Gs.sendSystem("BackTitle", null, null);
Mouse.removeListener(this);
Selection.setFocus(null);
}
}
function finalize(tc) {
s_gov.stop();
mc.removeMovieClip();
mc = null;
}
function talkTask(mess) {
return(mess);
}
}
Symbol 898 MovieClip [__Packages.task.Ending] Frame 0
class task.Ending implements nigoro.lib.duplex.Task.Task
{
var tmc, mc, sc, lv, s_end, counter, callend;
function Ending (mmc, st, x, y, s, l) {
tmc = mmc;
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc.stop();
sc = s;
lv = l;
s_end = new nigoro.lib.duplex.Sound.Csound(nigoro.lib.samieru.NigoroFlashManager.getBgmLayer());
s_end.attachSound("Ending.wav");
}
function init(no, tc) {
counter = 0;
callend = false;
}
function run(tc) {
counter++;
if (counter > 30) {
if (counter == 31) {
mc.play();
s_end.start(0);
}
if (s_end.isEnd()) {
if (!callend) {
tc.setTask(new task.EndText(tmc, "gameover", -100, 0, sc, lv));
callend = true;
}
}
}
return(true);
}
function finalize(tc) {
s_end.stop();
mc.removeMovieClip();
mc = null;
tmc = null;
}
function talkTask(mess) {
return(mess);
}
}
Symbol 899 MovieClip [__Packages.task.Lifebar] Frame 0
class task.Lifebar implements nigoro.lib.duplex.Task.Task
{
var mc;
function Lifebar (mmc, st, nx, ox) {
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._y = 0;
mc._x = nx;
mc._width = ox - nx;
}
function init(no, tc) {
counter = 0;
}
function run(tc) {
counter++;
if (counter > 25) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess) {
return(mess);
}
var counter = 0;
}
Symbol 900 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 901 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 902 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.126";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 903 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 904 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 905 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 906 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 907 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 908 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 909 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 910 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 911 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 912 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 913 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.126";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 914 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 915 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 916 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 917 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 918 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 919 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 920 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 921 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 922 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 927 Button
on (press) {
play();
_root.game.Gs.sendSystem("NameIn", this.UserName.text, 0);
_root.game.Gs.sendSystem("FadeOut", null, null);
}
Symbol 930 Button
on (press) {
_root.game.Gs.sendSystem("RankingOn", 0, 0);
this.STB._visible = false;
this.UserName._visible = false;
this.lv5._visible = false;
this.lv4._visible = false;
this.lv3._visible = false;
this.lv2._visible = false;
this.lv1._visible = false;
this.UserName._visible = false;
_root.TitleInst.RKB._visible = false;
_root.TitleInst.Easy._visible = false;
_root.TitleInst.Hard._visible = false;
_root.TitleInst.Userword._visible = false;
}
Symbol 937 MovieClip Frame 1
Symbol 937 MovieClip Frame 21
stop();
var i;
i = _root.game.Gs.getSystem("GameLevel");
this.lv2._alpha = 30;
this.lv3._alpha = 30;
this.lv4._alpha = 30;
this.lv5._alpha = 30;
if (i > 1) {
this.lv2._alpha = 100;
}
if (i > 2) {
this.lv3._alpha = 100;
}
if (i > 3) {
this.lv4._alpha = 100;
}
if (i > 4) {
this.lv5._alpha = 100;
}
Instance of Symbol 820 MovieClip [levelNum] "lv1" in Symbol 937 MovieClip Frame 21
on (release) {
this._parent.lv1._alpha = 100;
this._parent.lv2._alpha = 30;
this._parent.lv3._alpha = 30;
this._parent.lv4._alpha = 30;
this._parent.lv5._alpha = 30;
_root.game.Gs.sendSystem("GameLevel", null, 1);
}
Instance of Symbol 820 MovieClip [levelNum] "lv2" in Symbol 937 MovieClip Frame 21
on (release) {
this._parent.lv1._alpha = 100;
this._parent.lv2._alpha = 100;
this._parent.lv3._alpha = 30;
this._parent.lv4._alpha = 30;
this._parent.lv5._alpha = 30;
_root.game.Gs.sendSystem("GameLevel", null, 2);
}
Instance of Symbol 820 MovieClip [levelNum] "lv3" in Symbol 937 MovieClip Frame 21
on (release) {
this._parent.lv1._alpha = 100;
this._parent.lv2._alpha = 100;
this._parent.lv3._alpha = 100;
this._parent.lv4._alpha = 30;
this._parent.lv5._alpha = 30;
_root.game.Gs.sendSystem("GameLevel", null, 3);
}
Instance of Symbol 820 MovieClip [levelNum] "lv4" in Symbol 937 MovieClip Frame 21
on (release) {
this._parent.lv1._alpha = 100;
this._parent.lv2._alpha = 100;
this._parent.lv3._alpha = 100;
this._parent.lv4._alpha = 100;
this._parent.lv5._alpha = 30;
_root.game.Gs.sendSystem("GameLevel", null, 4);
}
Instance of Symbol 820 MovieClip [levelNum] "lv5" in Symbol 937 MovieClip Frame 21
on (release) {
this._parent.lv1._alpha = 100;
this._parent.lv2._alpha = 100;
this._parent.lv3._alpha = 100;
this._parent.lv4._alpha = 100;
this._parent.lv5._alpha = 100;
_root.game.Gs.sendSystem("GameLevel", null, 5);
}
Instance of Symbol 838 MovieClip [TextInput] "UserName" in Symbol 937 MovieClip Frame 21
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_load(eventObj) {
this.setStyle("fontFamily", "Arial");
this.setStyle("fontSize ", 12);
this.maxChars = 10;
this.restrict = "0-9a-z A-Z\\\\_!#,.$+?";
this.text = _root.game.Gs.getSystem("NameOut");
_root.game.Gs.sendSystem("TitleNow", null, null);
}
this.addEventListener("load", __f_load);
}
Instance of Symbol 838 MovieClip [TextInput] "UserName" in Symbol 937 MovieClip Frame 22
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_load(eventObj) {
this.setStyle("fontFamily", "Arial");
this.setStyle("fontSize ", 12);
this.maxChars = 10;
this.restrict = "0-9a-z A-Z\\\\_!#,.$+?";
this.text = _root.game.Gs.getSystem("NameOut");
}
this.addEventListener("load", __f_load);
}
Symbol 937 MovieClip Frame 44
_root.game.Gs.sendSystem("GameStart", null, null);