Frame 1
ifFrameLoaded (80) {
gotoAndPlay ("detect4");
}
Frame 2
gotoAndPlay ("loadloop0");
Frame 9
f = 55;
l = _level0.$version.length;
if (l > 0) {
gotoAndPlay ("detect5");
} else {
gotoAndPlay ("requireFlash");
}
Frame 20
filename_pref = "flash_item/pref.txt";
actual_version = $version;
see = actual_version;
actual_version_length = length(actual_version);
while (i <= actual_version_length) {
i = i + 1;
version_temp = substring(actual_version, i, 1);
if (version_temp eq " ") {
version_platform = substring(actual_version, 1, i - 1);
version_majorVersion = substring(actual_version, i + 1, 1);
version_secondHalf = substring(actual_version, i + 1, actual_version_length - i);
version_minorVersion = substring(version_secondHalf, 5, 2);
}
}
if (version_majorVersion >= 6) {
gotoAndPlay ("init0");
} else {
gotoAndPlay ("requireFlash");
}
Frame 58
stop();
Frame 77
function getDateText(str) {
var _local2 = str;
var year = ("20" + _local2.substring(0, 2));
var _local3 = getMonthString(cutZero(_local2.substring(2, 4)));
var _local1 = _local2.substring(4, 6);
return((((_local3 + " ") + _local1) + ", ") + year);
}
function cutZero(str) {
var _local1 = str;
var _local2;
_local2 = 1;
while (_local2 <= 3) {
if (_local1.charAt(0) == "0") {
_local1 = _local1.substring(1, _local1.length);
} else {
_local2 = 100;
}
_local2++;
}
return(Number(_local1));
}
function getMonthString(m) {
var m;
var _local1 = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return(_local1[m]);
}
Stage.scaleMode = "noScale";
Stage.align = "";
totalbyte = _root.getBytesTotal();
stopAllSounds();
timeNow = new Date();
timeNow = timeNow.getHours();
if ((timeNow >= 23) || ((0 <= timeNow) && (timeNow <= 5))) {
_global.nightMode = true;
}
delete timeNow;
delete _global.currentClick;
_global.numFormat = function (num, keta) {
var _local2 = num;
var keta;
if (_local2 == undefined) {
_local2 = 0;
}
var _local3 = String(_local2).length;
var _local1;
_local1 = 1;
while (_local1 <= (keta - _local3)) {
_local2 = "0" + String(_local2);
_local1++;
}
return(_local2);
};
if (_root.bid != undefined) {
_global.nightMode = false;
_global.greeting_mode = true;
_global.greeting_date = _root.date;
_global.greeting_bid = _root.bid;
_global.greeting_tree = _root.tree;
delete _root.date;
delete _root.bid;
var tempDate = new Date();
var todaystr = ((String(tempDate.getUTCFullYear()).substring(2, 4) + numFormat(tempDate.getUTCMonth() + 1, 2)) + numFormat(tempDate.getUTCDate(), 2));
trace(todaystr);
if (todaystr == _global.greeting_date) {
_global.greeting_datemode = "today";
} else {
_global.greeting_datemode = "past";
}
_global.dateTitle = getDateText(_global.greeting_date);
} else {
_global.greeting_mode = false;
}
trace("greeting mode : " + _global.greeting_mode);
Frame 78
loadbyte = _root.getBytesLoaded();
percent = Math.round((loadbyte / totalbyte) * 100);
_root.loading_meter._xscale = percent;
if (percent >= 100) {
_global.scene = "today";
gotoAndPlay ("start");
}
Frame 79
gotoAndPlay(_currentframe - 1);
Frame 88
if (_root.domain != undefined) {
_global.rootDomain = _root.domain;
} else {
_global.rootDomain = "https://www.ecotonoha.com/";
}
_global.cgi_getMobile = _global.rootDomain + "cgi-bin/mobile/eco_mobile_get.cgi?flashkey=0033";
_global.url_stat = rootDomain + "dat/stat.txt";
_global.url_today = rootDomain + "dat/today.txt";
_global.url_archive = rootDomain + "dat/archive/";
_global.cgi_submit = rootDomain + "cgi-bin/eco_input.cgi";
_global.cgi_greeting = rootDomain + "cgi-bin/greeting.cgi";
function cursor() {
var _local1 = this;
var _local3 = _global;
if (_local1.obj.client == "k") {
_local1.obj.logX = [];
_local1.obj.logY = [];
var _local2 = 0;
while (_local2 <= (_local3.logMax + 1)) {
_local1.obj.logX[_local2] = -200;
_local1.obj.logY[_local2] = -200;
_local2++;
}
}
_local1.mode = "move";
_local1.n = 2;
_local1.count = 0;
_local1.lastcount = 0;
_local1.logLength = _local1.obj.logX.length - 1;
_local1.x = _local1.obj.logX[1];
_local1.y = _local1.obj.logy[1];
_local1._x = _local1.x;
_local1._y = _local1.y;
_local1.toX = _local1.obj.logX[_local1.n];
_local1.toY = _local1.obj.logy[_local1.n];
_local1.vx = 0;
_local1.vy = 0;
if (_local3.skipmode) {
if (_local1.mode != "fadeout") {
_local1.instance = idToMcName(logData.bid[_local1.myCount]);
_local1.generateBranch();
_root.alltree.footer_right.entryList.count = numFormat(Math.min(_local1.myCount, 500), 4);
_local1.gotoAndPlay("remove");
_local1.mode = "remove";
deleteLog(_local1.myCount);
} else {
trace("already");
}
} else {
_local1.onEnterFrame = _local1.move;
}
}
function branch() {
var _local1 = this;
_local1.growMode = "growing";
_local1.depth = 0;
_local1.ang = 0;
_local1.center_ang = 0;
_local1.leng = 0;
_local1.to_ang = 0;
_local1.to_leng = def_leng;
_local1.wid = def_wid;
_local1.v_leng = 0;
_local1.v_ang = 0;
_local1.onLoad = _local1.draw;
_local1.onEnterFrame = _local1.grow;
_global.branch_count++;
_local1.hydeDepth = 0;
}
function kotonoha() {
var _local1 = this;
var x;
var y;
var _local2;
_local1.inst_branch.inst_kotonoha = _local1;
x = (_local1.inst_branch.leng * Math.sin((_local1.center_ang / 180) * Math.PI)) * 0.25;
y = (((-_local1.inst_branch.leng) * (100 - pos)) / 100) - ((_local1.inst_branch.leng * Math.cos((_local1.center_ang / 180) * Math.PI)) * 0.25);
_local2 = getAllTreePoint(x, y, _local1.inst_branch);
_local1._x = _local2.x;
_local1._y = _local2.y;
_local1._xscale = Math.min(ks1 + (_local1.inst_branch.mid.branch._yscale * ks2), scMax);
_local1._yscale = Math.min(ks1 + (_local1.inst_branch.mid.branch._yscale * ks2), scMax);
_local1.setWord(_local1.entryObj);
var _local3 = idToNum(_local1.id);
_root.allTree.allDot.attachMovie("dot", "dot" + _local1.id, _local3);
_local1.inst_dot = _root.allTree.allDot["dot" + _local1.id];
_local1.inst_dot.inst_kotonoha = _local1;
_local1.inst_dot.id = _local1.id;
_local1.inst_dot._x = _local1._x;
_local1.inst_dot._y = _local1._y;
_local1.inst_dot._xscale = _local1._xscale;
_local1.inst_dot._yscale = _local1._yscale;
if (((_local1.sum_ang >= 0) && (_local1.sum_ang < 180)) || ((_local1.sum_ang <= -180) && (_local1.sum_ang >= -360))) {
_local1.word.gra.gotoAndStop(1);
} else {
_local1.word.gra.gotoAndStop(2);
}
delete _local1.entryObj;
}
function tree() {
var _local1 = this;
_local1.cx0 = Stage.width / 2;
_local1.cy0 = (Stage.height / 2) + 30;
_local1.cx = 0;
_local1.cy = 0;
_local1.Sc = 100;
_local1.vcx = 0;
_local1.vcy = 0;
_local1.vSc = 0;
_local1.fzoom = 0.8;
}
function submitPoint() {
var _local1 = this;
_local1._xscale = (ks1 + (_local1.inst_branch.mid.branch._yscale * ks2)) * 0.8;
_local1._yscale = _local1._xscale;
}
function submitForm() {
var _local1 = this;
_local1._x = _root.alltree.cx0;
_local1._y = _root.alltree.cy0 - 20;
_local1.share_so = SharedObject.getLocal("ecotonoha");
_local1.obj = _local1.gDate();
if ((((_local1.obj.date == _local1.share_so.data.date) && (_local1.obj.month == _local1.share_so.data.month)) && (_local1.obj.year == _local1.share_so.data.year)) && (testmode != "on")) {
_local1.errorAction("already");
}
if ((submitFlag == true) && (testmode != "on")) {
_local1.errorAction("already");
}
if (totalToday >= 1000) {
}
}
function mouseChase() {
var _local1 = this;
_local1.mode = "on";
_local1.logX = new Array(logMax);
_local1.logY = new Array(logMax);
_local1.count = 0;
_local1.onEnterFrame = _local1.chaseMouse;
}
function endingProcedure() {
switch (scene) {
case "today" :
_root.gotoAndPlay("preEnding1");
return;
case "archive" :
_global.clearMode = "end";
_root.gotoAndPlay("archiveClear");
}
}
function reload() {
delete Logdata;
delete obj;
delete Logcount;
delete kotonoha;
delete branch;
delete cursor;
delete submitForm;
delete submitPoint;
delete tree;
_root.alltree._visible = false;
_global.reloadOption = true;
gotoAndPlay ("init0");
}
function restart() {
delete Logdata;
delete obj;
delete Logcount;
delete kotonoha;
delete branch;
delete cursor;
delete submitForm;
delete submitPoint;
delete tree;
_root.alltree._visible = false;
gotoAndPlay ("init0");
}
_global.submitFlag = false;
_global.skipmode = false;
_global.complete = false;
_global.stat_generate = "";
_global.branchList = [];
_global.logCount = 0;
_global.viewMode = "all";
_global.branch_count = 0;
_global.n = 2;
_global.def_leng = _root.miki._height;
_global.def_wid = _root.miki._width;
_global.ang_range = 36;
_global.ang_rand = 30;
_global.ang_limit = 100;
_global.ang_shift = 10;
_global.ratio_branch = 100;
_global.ratio_leng = 70;
_global.rand_ratio_leng = 17;
_global.wid_shrink = 75;
_global.wid_min = 0.8;
_global.ba = 8;
_global.bb = 1.3;
_global.cut_depth = 5;
_global.maxdepth = 12;
_global.gosa = 0.5;
_global.bid = 0;
_global.colorRand1 = 0;
_global.colorRand2 = 0.4;
_global.colorCode0 = [0, 195, 240, 0];
_global.colorCode1 = [0, 100, 150, 0];
_global.ks1 = 0;
_global.ks2 = 1.35;
_global.scMax = 50;
_global.logInterval = 5;
_global.logMax = 10;
_global.ma = 10;
_global.mb = 1.4;
_global.lastCountMax = 5;
_global.latestCount = 0;
_global.mySound = new Sound();
_global.point = [];
_global.generateNext = function () {
var _local1 = _root;
if (logCount >= (logData.date.length - 1)) {
_local1.j = 2000;
_local1.gotoAndPlay("completeEvent");
_global.complete = true;
if (_local1.leftButton.mode != "skip_fadeout") {
_local1.leftButton.gotoAndPlay("skip_fadeout");
}
}
if (logCount <= 0) {
_local1.alltree.miki.addBranch(logCount);
_local1.alltree.miki.generateKotonoha("nothing");
} else {
var _local3 = new Object();
_local3.myCount = logCount;
obj = new Object();
obj.id = logCount;
obj.date = logData.date[logCount];
obj.time = logData.time[logCount];
obj.name = logData.name[logCount];
obj.mes = logData.mes[logCount];
obj.cid = logData.cid[logCount];
obj.bid = logData.bid[logCount];
obj.logx = logData.logx[logCount];
obj.logy = logData.logy[logCount];
obj.client = logData.client[logCount];
_local3.obj = obj;
if (_global.skipmode) {
var _local2 = idToMcName(obj.bid);
if (_local2 != undefined) {
if (_local2.inst_child != undefined) {
} else {
_local2.addBranch(logCount);
_local2.generateKotonoha(obj);
}
}
_local1.alltree.footer_right.entryList.count = numFormat(Math.min(logCount, 500), 4);
} else {
_local1.alltree.attachMovie("cursor", "cursor" + logCount, logCount + 800000, _local3);
}
}
logCount++;
};
cursor.prototype = new MovieClip();
Object.registerClass("cursor", cursor);
cursor.prototype.move = function () {
var _local1 = this;
if (_global.skipmode && (_local1.skipFlag != 1)) {
_local1.mode = "endLog";
_local1.lastcount = lastcountMax - (_local1.myCount - latestCount);
_local1.skipFlag = 1;
}
if (_local1.count >= logInterval) {
_local1.n++;
_local1.toX = _local1.obj.logX[_local1.n];
_local1.toY = _local1.obj.logY[_local1.n];
_local1.count = 0;
if (_local1.n >= _local1.logLength) {
_local1.mode = "endLog";
_local1.gotoAndStop("finger");
}
}
if (_local1.mode != "fadeout") {
_local1.vx = (_local1.vx + ((_local1.tox - _local1._x) / ma)) / mb;
_local1.vy = (_local1.vy + ((_local1.toy - _local1._y) / ma)) / mb;
_local1.x = _local1.x + _local1.vx;
_local1.y = _local1.y + _local1.vy;
_local1._x = Math.round(_local1.x);
_local1._y = Math.round(_local1.y);
}
if (_local1.mode == "move") {
_local1.count++;
} else if (_local1.mode == "endLog") {
_local1.lastcount++;
if (_local1.lastCount > lastCountMax) {
_local1._x = Math.round(_local1.tox);
_local1._y = Math.round(_local1.toy);
_local1.instance = idToMcName(logData.bid[_local1.myCount]);
_local1.generateBranch();
_root.alltree.footer_right.entryList.count = numFormat(Math.min(_local1.myCount, 500), 4);
if (_local1.obj.client == "w") {
_local1.gotoAndPlay("fadeout");
_local1.mode = "fadeout";
} else if (_local1.obj.client == "k") {
_local1.gotoAndPlay("fadeout_keitai");
_local1.mode = "fadeout";
}
deleteLog(_local1.myCount);
if (_global.skipmode == false) {
latestCount = _local1.mycount;
}
}
}
};
cursor.prototype.generateBranch = function () {
var _local1 = this;
if (_local1.instance != undefined) {
if (_local1.instance.inst_child != undefined) {
} else {
var _local2 = _local1.instance.addBranch(_local1.mycount);
_local1.instance.generateKotonoha(_local1.obj);
if (_local1.obj.client == "k") {
_local1._x = _local2.x;
_local1._y = _local2.y;
}
}
}
};
branch.prototype = new MovieClip();
Object.registerClass("branchMC", branch);
branch.prototype.addBranch = function (myCount, option, ang_option, ratio_option) {
var _local1 = this;
if (_local1.growMode == "growing") {
_local1.ang = _local1.to_ang;
_local1.leng = _local1.to_leng;
_local1.draw();
delete _local1.to_leng;
delete _local1.to_ang;
delete _local1.v_leng;
delete _local1.v_ang;
delete _local1.onEnterFrame;
delete _local1.onLoad;
}
var pos = ratio_branch;
var x0;
var y0;
var _local3;
var _local2;
_local1.leng = _local1.leng * (pos / 100);
if (_global.skipmode) {
_local1.mid.branch.gotoAndStop("end");
} else {
_local1.mid.branch.gotoAndPlay("grow");
}
_local1.draw();
x0 = _local1.leng * Math.sin((_local1.ang * 3.14159265358979()) / 180);
y0 = (-_local1.leng) * Math.cos((_local1.ang * 3.14159265358979()) / 180);
var point = {};
point.x = x0;
point.y = y0 - 10;
_local1.localToGlobal(point);
_root.allTree.globalToLocal(point);
_local1.inst_child = [];
_local3 = 1;
while (_local3 <= n) {
_local2 = "b" + _local3;
_local1.attachMovie("branchMC", _local2, _local3);
_local1[_local2].depth = _local1.depth + 1;
_local1[_local2]._x = x0;
_local1[_local2]._y = y0;
if (option != "submit") {
_local1[_local2].to_ang = logdata.cid[mycount][_local3].ang;
_local1[_local2].to_leng = (_local1.leng * logdata.cid[myCount][_local3].ratio) / 100;
} else {
_local1[_local2].to_ang = ang_option[_local3];
_local1[_local2].to_leng = (_local1.leng * ratio_option[_local3]) / 100;
}
_local1[_local2].wid = (((_local1.wid * (_local1[_local2].to_leng / _local1.leng)) * (pos / 100)) * wid_shrink) / 100;
if (_local1[_local2].wid < wid_min) {
_local1[_local2].wid = wid_min;
}
if (((_local1.depth <= cut_depth) || (option == "submit")) && (_global.skipmode == false)) {
_local1[_local2].ang = 0;
_local1[_local2].leng = (_local1.leng * (100 - pos)) / 100;
} else {
_local1[_local2].ang = _local1[_local2].to_ang;
_local1[_local2].leng = _local1[_local2].to_leng;
}
_local1[_local2].side_id = _local3;
_local1[_local2].sum_ang = _local1.sum_ang + _local1[_local2].to_ang;
_local1[_local2].inst_parent = _local1;
_local1.inst_child[_local3] = _local1[_local2];
_local1.center_ang = _local1.center_ang + (_local1[_local2].to_ang / n);
if (_local1.id != undefined) {
_local1[_local2].id = String(_local1.id) + _local1[_local2].side_id;
} else {
_local1[_local2].id = _local1[_local2].side_id;
}
_local3++;
}
return(point);
};
branch.prototype.draw = function () {
var _local1 = this;
_local1._rotation = _local1.ang;
_local1.mid.branch._yscale = (_local1.leng / def_leng) * 100;
_local1.mid.branch._xscale = (_local1.wid / def_wid) * 100;
};
branch.prototype.grow = function () {
var _local1 = this;
_local1.v_leng = (_local1.v_leng + ((_local1.to_leng - _local1.leng) / ba)) / bb;
_local1.v_ang = (_local1.v_ang + (((_local1.to_ang - _local1.ang) / ba) / 2)) / bb;
_local1.leng = _local1.leng + _local1.v_leng;
_local1.ang = _local1.ang + _local1.v_ang;
_local1.draw();
if ((Math.abs(_local1.to_leng - _local1.leng) < gosa) && (Math.abs(_local1.to_ang - _local1.ang) < gosa)) {
_local1.leng = _local1.to_leng;
_local1.ang = _local1.to_ang;
_local1.draw();
delete _local1.ang;
delete _local1.growMode;
delete _local1.to_leng;
delete _local1.to_ang;
delete _local1.v_leng;
delete _local1.v_ang;
delete _local1.onEnterFrame;
delete _local1.onLoad;
}
};
branch.prototype.generateKotonoha = function (entryObj) {
var _local2 = this;
var _local1;
var entryObj;
if (_local2.depth >= 0) {
_local1 = new Object();
_local1.inst_branch = _local2;
_local1.center_ang = _local2.center_ang;
_local1.sum_ang = _local2.sum_ang;
_local1.id = _local2.id;
_local1.entryObj = entryObj;
var _local3 = idToNum(_local2.id);
_root.alltree.allLeaf.attachMovie("kotonohaMC", "kotonoha" + _local2.id, _local3, _local1);
}
};
branch.prototype.focus_on = function () {
this.trace_down_show();
this.trace_up_show();
};
branch.prototype.trace_down_show = function () {
var _local2 = this;
_local2.show();
var _local1;
if (_local2.inst_child[1] != undefined) {
_local1 = 1;
while (_local1 <= 2) {
_local2.inst_child[_local1].trace_down_show();
_local2.hideSubmitPoint();
_local1++;
}
} else {
_local2.showSubmitPoint();
}
};
branch.prototype.trace_up_show = function () {
var _local1 = this;
_local1.show();
_local1.inst_parent.trace_up_show();
_local1.inst_parent["b" + (3 - _local1.side_id)].trace_down_hide();
};
branch.prototype.trace_down_hide = function () {
var _local2 = this;
_local2.hide();
var _local1;
_local1 = 1;
while (_local1 <= 2) {
_local2.inst_child[_local1].trace_down_hide();
_local1++;
}
};
branch.prototype.show = function () {
var _local1 = this;
_local1._visible = true;
_local1.hydeDepth = 0;
_local1._alpha = 100;
if (_global.viemode != "all") {
_local1.gotoAndPlay("show");
}
_local1.inst_kotonoha.show();
};
branch.prototype.hide = function () {
var _local1 = this;
_local1.hydeDepth = 0;
_local1.hydeDepth = _local1.inst_parent.hydeDepth + 1;
if (_local1.hydeDepth <= 5) {
_local1._visible = true;
_local1._alpha = 45;
} else {
_local1._visible = false;
}
_local1.inst_kotonoha.hide();
_local1.hideSubmitPoint();
};
branch.prototype.showSubmitPoint = function () {
var _local1 = this;
var _local3 = _root;
if (_global.greeting_mode && (_global.greeting_datemode == "past")) {
} else if (((((_global.viewmode == "zoom") || (logCount < 5)) || (_local3.alltree.miki.b1.inst_child == undefined)) || (_local3.alltree.miki.b2.inst_child == undefined)) && (_local1.depth < maxdepth)) {
var x;
var y;
var point;
x = 0;
y = (-_local1.leng) * 1.1;
point = getAllTreePoint(x, y, _local1);
var _local2;
_local2 = new Object();
_local2.inst_branch = _local1;
_local2.id = _local1.id;
var dpt = idToNum(_local1.id);
_local3.alltree.allDot.attachMovie("submitPoint", "submitPoint" + _local1.id, 10000 + dpt, _local2);
_local1.inst_submit = _local3.alltree.allDot["submitPoint" + _local1.id];
_local1.inst_submit._x = point.x;
_local1.inst_submit._y = point.y;
focus_count++;
} else {
_local1.hideSubmitPoint();
}
};
branch.prototype.hideSubmitPoint = function () {
var _local1 = this;
if (_local1.inst_submit != undefined) {
_local1.inst_submit.removeMovieClip();
delete _local1.inst_submit;
}
};
kotonoha.prototype = new MovieClip();
Object.registerClass("kotonohaMC", kotonoha);
kotonoha.prototype.setWord = function (entryObj) {
var _local1 = this;
var _local3 = entryObj;
if (_local3 == "nothing") {
_local1.word.gra.text1 = "";
_local1.word.gra.text3 = "";
_local1.word.gra.gotoAndStop("void");
} else {
_local1.word.gra.text3 = _local3.mes.toUpperCase();
var th = _local1.word.gra.t0.textHeight;
if (th < 24) {
_local1.word.gra.text1 = ((_local3.name.toUpperCase() + " SAID\r\r\r\r") + "TIME:") + _local3.time;
} else {
_local1.word.gra.text1 = ((_local3.name.toUpperCase() + " SAID\r\r\r\r\r\r") + "TIME:") + _local3.time;
}
}
var _local2 = ((Math.max(_local3.mes.length - 8, 0) / 24) + (Math.random() * colorRand2)) - (colorRand2 / 2);
_local1.colorCode = [];
i = 1;
while (i <= 3) {
_local1.colorCode[i] = Math.round((colorcode0[i] * _local2) + ((colorcode1[i] * (1 - _local2)) * (1 + (((Math.random() * colorRand1) - (colorRand1 / 2)) / 100))));
i++;
}
var myColor = new Color(_local1.word.gra);
var myColorTransform = myColor.getTransform();
myColorTransform.rb = _local1.ColorCode[1];
myColorTransform.gb = _local1.ColorCode[2];
myColorTransform.bb = _local1.ColorCode[3];
myColorTransform.ab = 0;
myColor.setTransform(myColorTransform);
delete _local1.colorCode;
};
kotonoha.prototype.zoom = function (option) {
var _local1 = _root;
var _local2 = this;
var _local3 = _global;
_local3.focus_kotonoha = _local2;
_local3.viewMode = "zoom";
_local3.zoomMode = "normal";
if ((_local2.id != "") && (option != "back")) {
_local1.alltree.Sc = 8000 / _local2._xscale;
_local1.alltree.cx = (((-_local2._x) * _local1.alltree.Sc) / 100) + _local1.alltree.cx0;
_local1.alltree.cy = (((-_local2._y) * _local1.alltree.Sc) / 100) + _local1.alltree.cy0;
} else {
_local1.alltree.Sc = 100;
_local1.alltree.cx = shift;
_local1.alltree.cy = 0;
_local3.viewMode = "all";
}
_local1.alltree.allLeaf._visible = false;
_local1.alltree.alldot._visible = false;
_local1.alltree.count = 0;
_local1.alltree.onEnterFrame = _local1.alltree.zooming;
_quality = "MEDIUM";
_local2.inst_branch.focus_on();
if (zoomMode == "normal") {
_local1.alltree.attachMovie("dotZoom", "dotZoom", 5000);
_local1.alltree.dotZoom._x = _local2._x;
_local1.alltree.dotZoom._y = _local2._y;
_local1.alltree.dotZoom._xscale = _local2._xscale;
_local1.alltree.dotZoom._yscale = _local2._yscale;
}
_local1.sub.del();
};
kotonoha.prototype.hide = function () {
this._visible = false;
this.inst_dot.gotoAndStop("hide");
};
kotonoha.prototype.show = function () {
var _local1 = this;
_local1._visible = true;
if (_local1 != _global.focus_kotonoha) {
_local1.gotoAndStop("show");
if (_local1.swapflag) {
_local1.swapDepths(idToNum(_local1.id));
delete _local1.swapflag;
}
} else {
if (nightmode) {
_local1.gotoAndStop("focus_night");
} else {
_local1.gotoAndPlay("focus");
}
_local1.swapDepths(idToNum(_local1.id) + 10000);
_local1.swapflag = true;
}
_local1.inst_dot.gotoAndStop("show");
};
tree.prototype = new MovieClip();
Object.registerClass("alltree", tree);
tree.prototype.zooming = function () {
var _local1 = this;
if (_local1.count <= 4) {
_local1.count++;
} else {
_local1._x = (_local1._x + (_local1.cx * _local1.fzoom)) / (1 + _local1.fzoom);
_local1._y = (_local1._y + (_local1.cy * _local1.fzoom)) / (1 + _local1.fzoom);
_local1._xscale = (_local1._xscale + (_local1.Sc * _local1.fzoom)) / (1 + _local1.fzoom);
_local1._yscale = (_local1._yscale + (_local1.Sc * _local1.fzoom)) / (1 + _local1.fzoom);
if ((Math.abs(_local1._x - _local1.cx) < 1) && (Math.abs(_local1._y - _local1.cy) < 1)) {
_local1._x = Math.round(_local1.cx);
_local1._y = Math.round(_local1.cy);
_local1._xscale = Math.round(_local1.Sc);
_local1._yscale = Math.round(_local1.Sc);
_local1.allleaf._visible = true;
_local1.alldot._visible = true;
_local1.gotoAndPlay("show");
_quality = "HIGH";
_local1.onEnterFrame = null;
_root.leftbutton.zoombuttonControl();
}
}
};
submitPoint.prototype = new MovieClip();
Object.registerClass("submitPoint", submitPoint);
submitPoint.prototype.zoom = function (pointId) {
var _local1 = _root;
var _local2 = this;
var _local3 = _global;
_local3.viewMode = "zoom";
var pointId;
_local3.zoomMode = "submit";
_local3.submitPointId = pointId;
_local1.alltree.Sc = 10000 / _local2.inst_branch.inst_parent.inst_kotonoha._xscale;
_local1.alltree.cx = (((-_local2._x) * _local1.alltree.Sc) / 100) + _local1.alltree.cx0;
_local1.alltree.cy = (((-_local2._y) * _local1.alltree.Sc) / 100) + _local1.alltree.cy0;
_local1.alltree.count = 0;
_local1.alltree.onEnterFrame = _local1.alltree.zooming;
_quality = "MEDIUM";
_local1.alltree.allLeaf._visible = false;
_local1.alltree.alldot._visible = false;
_local2.inst_branch.focus_on();
_local1.alltree.dotZoom.removeMovieClip();
_local3.focus_kotonoha.gotoAndStop("show");
_local3.currentclick = "";
_local1.alltree.attachMovie("dotZoom", "dotZoomS", 5001);
_local1.alltree.dotZoomS.option = "submitpoint";
_local1.alltree.dotZoomS._x = _local2._x;
_local1.alltree.dotZoomS._y = _local2._y;
_local1.alltree.dotZoomS._xscale = _local2._xscale;
_local1.alltree.dotZoomS._yscale = _local2._yscale;
_local2.showForm();
};
submitPoint.prototype.showForm = function () {
var _local2 = this;
var _local1;
_local1 = new Object();
_local1.x = _local2._x;
_local1.y = _local2._y;
_local1.id = _local2.id;
_local1.inst_submitPoint = _local2;
_local1.inst_branch = _local2.inst_branch;
_root.attachMovie("submitForm", "sub", 1500, _local1);
};
submitForm.prototype = new MovieClip();
Object.registerClass("submitForm", submitForm);
submitForm.prototype.show = function () {
this.gotoAndPlay(2);
};
submitForm.prototype.hide = function () {
this.gotoAndPlay("hide");
};
submitForm.prototype.del = function () {
this.removeMovieClip();
};
submitForm.prototype.submitAction = function () {
this.submitData();
};
submitForm.prototype.writeSharedObj = function () {
var _local1 = this;
trace("writeSharedObj:date:" + _local1.obj.date);
_local1.share_so.data.date = _local1.obj.date;
_local1.share_so.data.month = _local1.obj.month;
_local1.share_so.data.year = _local1.obj.year;
if (_local1.share_so.count != undefined) {
_local1.share_so.count++;
} else {
_local1.share_so.count = 1;
}
bsuccess = _local1.share_so.flush();
};
submitForm.prototype.errorAction = function (str) {
var _local1 = this;
var str;
switch (str) {
case "already" :
_local1.error = 1;
_local1.all.gotoAndStop("error1");
return;
case "maximum" :
trace("max");
_local1.error = 2;
_local1.all.gotoAndStop("error2");
return;
case "error:bid_error" :
_local1.error = 3;
_local1.all.gotoAndStop("error_bid");
}
};
submitForm.prototype.submitData = function () {
var _local2 = this;
var _local3 = _global;
if (_local2.all.name == "") {
_local2.all.name = "anonymous";
}
if (_local2.all.message == "") {
_local2.all.message = _root.recommend;
}
_local2.all.gotoAndStop("sending");
_local2.postData = new LoadVars();
_local2.postData.name = _local2.all.name;
_local2.postData.mes = _local2.all.message;
_local2.postData.cid = _local2.getBranchParam();
_local2.postData.bid = _local2.id;
_local2.postData.logx = String(mouseLogFormat(_root.mouse.logX));
_local2.postData.logy = String(mouseLogFormat(_root.mouse.logY));
_local2.postData.click = String(mouseLogFormat(_root.mouse.click));
_local2.postData.tree = _local3.treeCount;
_local2.postData.interface = "web";
if (_local3.mobdata.qc > 0) {
trace(("*** has " + _local3.mobdata.qc) + " mobile submit.");
var direction = String(Math.floor(Math.random() * 2));
var mbid = [];
var _local1 = 1;
while (_local1 <= _local3.mobdata.qc) {
mbid[_local1] = String(_local2.id) + _local2.getMobileBID(_local1 + 1, direction);
_local1++;
}
var mcid = [];
_local1 = 1;
while (_local1 <= _local3.mobdata.qc) {
mcid[_local1] = _local2.getBranchParam();
_local1++;
}
_local2.postData.qc = _local3.mobdata.qc;
_local1 = 1;
while (_local1 <= _local3.mobdata.qc) {
_local2.postData["id" + _local1] = _local3.mobdata.id[_local1];
_local2.postData["cid" + _local1] = mcid[_local1];
_local2.postData["bid" + _local1] = mbid[_local1];
_local2.postData["date" + _local1] = _local3.mobdata.date_original[_local1];
_local2.postData["time" + _local1] = _local3.mobdata.time_original[_local1];
_local2.postData["name" + _local1] = _local3.mobdata.name[_local1];
_local2.postData["mes" + _local1] = _local3.mobdata.mes[_local1];
_local1++;
}
} else {
trace("*** has NO mobile submit.");
}
_local2.loadedData = new LoadVars();
trace(_local2.postData);
_local2.postData.sendAndLoad(_local3.cgi_submit, _local2.loadedData, "POST");
_local2.loadedData.onLoad = _local2.myOnload;
};
submitForm.prototype.getMobileBID = function (num, direction) {
var _local2 = num;
var _local3 = direction;
var _local1 = "";
while (true) {
if (_local2 >= 2) {
if (_local3 == 0) {
_local1 = String((_local2 % 2) + 1) + _local1;
} else {
_local1 = String(2 - (_local2 % 2)) + _local1;
}
_local2 = Math.floor(_local2 / 2);
} else {
if (_local3 == 0) {
_local1 = String((_local2 % 2) + 1) + _local1;
} else {
_local1 = String(2 - (_local2 % 2)) + _local1;
}
break;
}
}
return(_local1.substring(1));
};
submitForm.prototype.getBranchParam = function () {
var _local1 = this;
_local1.ang = [];
_local1.ratio = [];
var _local2 = "";
var _local3 = Math.abs(_local1.inst_branch.sum_ang) - ang_limit;
if (_local3 > 0) {
if (_local1.inst_branch.sum_ang < 0) {
_local3 = _local3 * 0.75;
} else {
_local3 = (-_local3) * 0.75;
}
} else {
_local3 = 0;
}
i = 1;
while (i <= n) {
_local1.ang[i] = Math.round((((-ang_range) / 2) + ((ang_range / (n - 1)) * (i - 1))) + ((Math.random() * ang_rand) - (ang_rand / 2))) + Math.round(_local3);
_local1.ratio[i] = Math.round(ratio_leng + (Math.random() * rand_ratio_leng));
_local2 = (_local2 + _local1.format(_local1.ang[i])) + _local1.format(_local1.ratio[i]);
i++;
}
return(_local2);
};
submitForm.prototype.format = function (num) {
var _local2 = String(num);
var _local3 = 3 - _local2.length;
var _local1;
_local1 = 1;
while (_local1 <= _local3) {
_local2 = "_" + _local2;
_local1++;
}
return(_local2);
};
submitForm.prototype.myOnload = function (success) {
var _local1 = _global;
var _local2 = _root;
if (success) {
if (this.success == 1) {
_local1.submitFlag = true;
_local1.totalToday++;
_local2.alltree.footer_right.entryList.count = numFormat(Math.min(_local1.totalToday - (_local1.treeCount * 500), 500), 4);
_local2.sub.all.gotoAndPlay("succeed");
_local2.sub.writeSharedObj();
} else if (this.error == 101) {
trace("bid_errormode");
_local2.sub.errorAction("error:bid_error");
}
} else {
trace("connection failed");
}
};
submitForm.prototype.closeAction = function (option) {
var _local2 = this;
if (option == "submit") {
_local2.inst_submitPoint.removeMovieClip();
_global.skipmode = false;
_local2.inst_branch.addBranch(logCount, "submit", _local2.ang, _local2.ratio);
var _local3 = new Object();
_local3.id = totalToday;
_local3.name = _local2.postData.name;
_local3.date = "";
_local3.time = "JUST NOW";
_local3.mes = _local2.postData.mes;
_local2.inst_branch.generateKotonoha(_local3);
_local2.inst_branch.inst_kotonoha.option = "new";
_global.focus_kotonoha = _local2.inst_branch.inst_kotonoha;
} else {
_local2.inst_submitPoint.removeMovieClip();
}
if (option == "reload") {
_root.reload();
} else if (option == "tryAnother") {
var _local1 = _local2.inst_branch;
i = 1;
while (i <= 5) {
_local1 = _local1._parent;
if (_local1.depth == 0) {
break;
}
i++;
}
var inst_dot = _local1.inst_kotonoha.inst_dot;
_root.focus_count = 0;
inst_dot.inst_kotonoha.zoom();
_root.mouse.hide();
_root.mouse.restart();
_global.currentClick = inst_dot;
}
if (option != "submit") {
_local2.removeMovieClip();
}
};
submitForm.prototype.gDate = function () {
var _local1 = this;
_local1.mydate = new Date();
obj = new Object();
obj.date = _local1.mydate.getUTCDate();
obj.month = _local1.mydate.getUTCMonth();
obj.year = _local1.mydate.getUTCFullYear();
return(obj);
};
submitForm.prototype.submitGreeting = function () {
var _local1 = this;
_local1.all.gotoAndStop("greeting_sending");
_local1.g_postData = new LoadVars();
_local1.g_postData.sender_name = _local1.all.sender_name;
_local1.g_postData.sender_email = _local1.all.sender_email;
_local1.g_postData.recipient_email = _local1.all.recipient_email;
_local1.g_postData.body = _local1.all.body;
_local1.g_postData.copymail = _local1.all.copymail;
_local1.g_postData.bid = _local1.id;
_local1.g_postData.tree = _global.treecount;
_local1.g_postData.date = todayDate;
_local1.g_loadedData = new LoadVars();
_local1.g_postData.sendAndLoad(_global.cgi_greeting, _local1.g_loadedData, "POST");
_local1.g_loadedData.onLoad = _local1.greetingOnload;
};
submitForm.prototype.greetingOnload = function (success) {
if (success) {
if (this.success == 1) {
_root.sub.all.gotoAndStop("greeting_succeed");
}
} else {
trace("connection failed");
}
};
mouseChase.prototype = new MovieClip();
Object.registerClass("mouseChase", mouseChase);
mouseChase.prototype.chaseMouse = function () {
var _local1 = this;
if (_local1.mode != "off") {
_local1.count++;
if (_local1.count > logInterval) {
_local1.logMouse();
_local1.count = 0;
}
_local1._x = Math.round(_root._xmouse);
_local1._y = Math.round(_root._ymouse);
}
};
mouseChase.prototype.logMouse = function () {
var _local1 = this;
_local1.x = Math.round(_root.alltree._xmouse);
_local1.y = Math.round(_root.alltree._ymouse);
if ((_local1.x != _local1.x0) || (_local1.y != _local1.y0)) {
_local1.logX.shift();
_local1.logX.push(_local1.x);
_local1.logY.shift();
_local1.logY.push(_local1.y);
}
_local1.x0 = _local1.x;
_local1.y0 = _local1.y;
};
mouseChase.prototype.show = function (mes) {
var _local1 = this;
if (_local1.mode == "on") {
_local1.gotoAndPlay("show");
switch (mes) {
case "zoom" :
_local1.popup.gotoAndStop(2);
return;
case "submit" :
_local1.popup.gotoAndStop(3);
return;
case "start" :
_local1.popup.gotoAndStop(4);
if (nightmode) {
_root.leftbutton.gotoAndPlay("daymode");
}
return;
case "intro" :
var _local2 = SharedObject.getLocal("ecotonoha");
if (_local2.data.date != undefined) {
break;
}
_local1.popup.gotoAndStop(5);
}
}
};
_root.onMouseDown = function () {
_root.mouse.hide();
};
mouseChase.prototype.hide = function (mes) {
this.gotoAndPlay("hide");
};
mouseChase.prototype.off = function () {
var _local1 = this;
_local1.mode = "off";
_local1.popup.gotoAndStop(1);
_local1.click = [Math.round(_root.alltree._xmouse), Math.round(_root.alltree._ymouse)];
};
mouseChase.prototype.restart = function () {
this.mode = "on";
};
_global.idToNum = function (id) {
var id = String(id);
var _local3 = id.length;
var _local1 = 0;
var _local2 = "";
i = 1;
while (i <= _local3) {
_local2 = id.charAt(i - 1);
_local1 = _local1 + (Math.pow(2, _local3 - i) * Number(_local2));
i++;
}
return(_local1);
};
_global.idToMcName = function (id) {
var _local2 = id;
_local2 = String(_local2);
var _local3 = _local2.length;
var _local1 = _root.alltree.miki;
i = 1;
while (i <= _local3) {
_local1 = _local1["b" + _local2.charAt(i - 1)];
i++;
}
return(_local1);
};
_global.mouseLogFormat = function (logList) {
var _local2 = logList;
var _local1 = "";
var _local3 = _local2.length;
i = 1;
while (i <= _local3) {
if (_local2[i - 1] != undefined) {
_local1 = _local1 + numFormat(Number(_local2[i - 1]), 4);
}
i++;
}
return(_local1);
};
_global.deleteLog = function (count) {
var _local1 = count;
delete logdata.date[_local1];
delete logdata.time[_local1];
delete logdata.name[_local1];
delete logdata.mes[_local1];
delete logdata.bid[_local1];
delete logdata.logX[_local1];
delete logdata.logY[_local1];
delete logdata.click[_local1];
};
_global.removeReturn = function (str) {
var _local3;
var _local2;
var _local1;
_local3 = str.length - 1;
_local1 = "";
i = 0;
while (i <= _local3) {
_local2 = str.substring(i, i + 1);
if (_local2 != "\r") {
_local1 = _local1 + _local2;
} else {
_local1 = _local1 + " ";
}
i++;
}
return(_local1);
};
_global.getAllTreePoint = function (x, y, instance) {
var x;
var y;
var instance;
var _local1;
_local1 = new Object();
_local1.x = x;
_local1.y = y;
instance.localToGlobal(_local1);
_root.alltree.globalToLocal(_local1);
return(_local1);
};
_global.openNewWin = function (_url1, _title, _options) {
var _local1 = _url1;
var _title;
var _options;
_local1 = ((((("javascript:void(mkWindow=window.open('" + _local1) + "','") + _title) + "','") + _options) + "'))";
_root.urltext = _local1;
getURL (_local1);
};
_global.resizeWindow = function () {
var _local1 = _root;
var _local3 = _global;
defwidth = 1024;
defheight = 768;
_local3.scwidth = Math.round(Stage.width / 2) * 2;
_local3.scheight = Math.round(Stage.height / 2) * 2;
var _local2 = Math.round(((defheight / 2) - ((scheight / 2) - (defheight / 2))) + 10);
_local1.closebutton._x = scwidth;
_local1.closebutton._y = _local2;
_local1.leftbutton._y = _local2;
_local1.ending._y = _local2;
_local3.shift = Math.round((Stage.width - defwidth) / 2);
_local1.alltree.cx0 = Math.round(scwidth / 2);
_local1.alltree.cy0 = _local2 + 70;
_local1.alltree._x = shift;
_local1.alltree.footer_left._x = -shift;
_local1.alltree.footer_right._x = scwidth - shift;
_local1.bg._x = scwidth / 2;
processing._x = scwidth / 2;
processing._y = _local2;
_local1.dialog._x = scwidth / 2;
_local1.dialog._y = _local2;
if (scene == "archive") {
_local1.archive1._x = (scwidth * 1) / 6;
_local1.archive2._x = (scwidth * 3) / 6;
_local1.archive3._x = (scwidth * 5) / 6;
_local1.loadWatch._x = scwidth / 2;
_local1.loadWatch._y = _local2;
_local1.nec._x = scwidth;
_local1.cal.reArrangeDays();
}
};
stageListener = new Object();
stageListener.onResize = function () {
resizeWindow();
};
Stage.addListener(stageListener);
_global.nightSet = function () {
var _local1 = _root;
if (nightMode) {
var _local3 = new Color(_local1.alltree.allLeaf);
myColorTrans = _local3.getTransform();
myColorTrans.rb = -255;
myColorTrans.gb = -255;
myColorTrans.bb = -255;
myColorTrans.ab = -72;
_local3.setTransform(myColorTrans);
var _local2 = new Color(_local1.alltree.miki);
myColorTrans = _local2.getTransform();
myColorTrans.rb = -100;
myColorTrans.gb = -100;
myColorTrans.bb = -100;
myColorTrans.aa = 70;
_local2.setTransform(myColorTrans);
_local1.allTree.footer_left.logo_all.gotoAndStop(2);
if (_local1.allTree.ground_all.mode != "night") {
_local1.allTree.ground_all.gotoAndPlay("night");
_local1.allTree.ground_all.mode = "night";
}
_local1.alltree.footer_right.entryList.number.gotoAndStop(2);
} else {
_local1.bg.gotoAndStop(1);
var _local3 = new Color(_local1.alltree.allLeaf);
myColorTrans = _local3.getTransform();
myColorTrans.rb = 0;
myColorTrans.gb = 0;
myColorTrans.bb = 0;
myColorTrans.ab = 0;
_local3.setTransform(myColorTrans);
var _local2 = new Color(_local1.alltree.miki);
myColorTrans1 = _local2.getTransform();
myColorTrans1.ra = 100;
myColorTrans1.ga = 100;
myColorTrans1.ba = 100;
myColorTrans1.aa = 100;
_local2.setTransform(myColorTrans);
_local1.allTree.footer_left.logo_all.gotoAndStop(1);
if (_local1.allTree.ground_all.mode == "night") {
_local1.allTree.ground_all.gotoAndStop("def");
_local1.allTree.ground_all.mode = "noon";
}
_local1.alltree.footer_right.entryList.number.gotoAndStop(1);
_local1.alltree.footer_left.viewtoday.text1.gotoAndStop(1);
_local1.alltree.footer_left.menu2.text2.gotoAndStop(1);
}
};
Frame 96
function setStatData() {
trace("stat.txt loaded");
stat = formatStat(loadStat.dat);
_global.totalPast = getTotalPost(stat);
delete loadStat;
delete formatStat;
delete getTotalPost;
_root.gotoAndStop("loadVar2");
delete setStatData;
}
function formatStat(str) {
var _local1 = str;
var arr = [];
var n = 1;
n = 1;
while (n <= 1000) {
var _local3 = "";
while (true) {
var _local2 = _local1.charAt(0);
_local1 = _local1.substring(1, _local1.length);
if ((_local2 != "_") && (_local1.length >= 1)) {
_local3 = _local3 + _local2;
} else {
break;
}
}
if (_local3.length > 6) {
arr[n] = _local3;
}
if (_local1.length <= 2) {
n = 10000;
break;
}
n++;
}
return(arr);
}
function getTotalPost(arr) {
var _local2 = arr;
var total;
var _local3;
var _local1;
_local1 = 1;
while (_local1 <= (_local2.length - 1)) {
if (_local2[_local1].length > 6) {
_local3 = Number(_local2[_local1].substring(6, _local2[_local1].length));
total = total + _local3;
}
_local1++;
}
return(total);
}
loadStat = new LoadVars();
LoadStat.onLoad = setStatData;
if (_global.dummyData) {
filename = _global.url_stat;
} else {
filename = (_global.url_stat + "?random=") + Math.round(Math.random() * 10000);
}
loadStat.load(filename);
stop();
Frame 97
function setLogdata(success) {
if (success) {
trace("today.txt loaded");
_global.logdata = new Object();
logdata.date = [];
logdata.time = [];
logdata.name = [];
logdata.mes = [];
logdata.cid = [];
logdata.bid = [];
logdata.logx = [];
logdata.logy = [];
logdata.client = [];
if (LoadLog.tree != undefined) {
_global.treeCount = LoadLog.tree;
} else {
_global.treeCount = 0;
}
if (_global.greeting_mode == true) {
if (_global.treecount != _global.greeting_tree) {
_global.treeCount = _global.greeting_tree;
_global.greeting_datemode = "past";
}
}
var _local1;
var _local2 = treeCount * 500;
var i0 = (_local2 + 1);
_local1 = _local2 + 1;
while (_local1 <= 1000000) {
if (loadLog["date" + _local1] != undefined) {
if (String(LoadLog["bid" + _local1]) == "1") {
if ((_local1 - i0) > 450) {
trace("break at" + _local1);
break;
}
i0 = _local1;
}
logdata.client[_local1 - _local2] = LoadLog["client" + _local1];
logdata.bid[_local1 - _local2] = String(LoadLog["bid" + _local1]);
logdata.date[_local1 - _local2] = dateFormat(LoadLog["date" + _local1]);
logdata.time[_local1 - _local2] = timeFormat(LoadLog["time" + _local1]);
logdata.name[_local1 - _local2] = LoadLog["name" + _local1];
logdata.mes[_local1 - _local2] = LoadLog["mes" + _local1];
logdata.logx[_local1 - _local2] = mouselogToList(LoadLog["logx" + _local1]);
logdata.logy[_local1 - _local2] = mouselogToList(LoadLog["logy" + _local1]);
var click = mouselogToList(LoadLog["click" + _local1]);
logdata.logX[_local1 - _local2].push(click[1]);
logdata.logY[_local1 - _local2].push(click[2]);
logdata.cid[_local1 - _local2] = branchFormat(LoadLog["cid" + _local1]);
logdata.cid[0] = [];
var _local3;
_local3 = 1;
while (_local3 <= n) {
logdata.cid[0][_local3] = new Object();
logdata.cid[0][_local3].ang = 30 * (_local3 - 1.5);
logdata.cid[0][_local3].ratio = 100;
_local3++;
}
} else {
logdata.cid[0] = [];
var _local3 = 1;
while (_local3 <= n) {
logdata.cid[0][_local3] = new Object();
logdata.cid[0][_local3].ang = 30 * (_local3 - 1.5);
logdata.cid[0][_local3].ratio = 100;
_local3++;
}
_global.totalToday = Number(_local1 - 1);
break;
}
_local1++;
}
_global.todayDate = LoadLog["date" + (_local1 - 1)];
delete LoadLog;
delete setLogData;
delete dateFormat;
delete timeFormat;
delete mouselogToList;
delete cutZero;
_root.gotoAndPlay("loadvar_keitai");
} else {
_global.treeCount = 0;
_global.totalToday = 1;
_global.logdata = new Object();
logdata.date = [];
logdata.time = [];
logdata.name = [];
logdata.mes = [];
logdata.cid = [];
logdata.bid = [];
logdata.logx = [];
logdata.logy = [];
logdata.cid[0] = [];
var _local3 = 1;
while (_local3 <= n) {
logdata.cid[0][_local3] = new Object();
logdata.cid[0][_local3].ang = 30 * (_local3 - 1.5);
logdata.cid[0][_local3].ratio = 100;
_local3++;
}
_global.totalToday = Number(_local1 - 1);
_root.gotoAndPlay("loadvar_keitai");
}
}
function dateFormat(str1) {
var _local1 = str1;
var _local2;
_local2 = (((("20" + _local1.substring(0, 2)) + ".") + _local1.substring(2, 4)) + ".") + _local1.substring(4, 6);
return(_local2);
}
function timeFormat(str1) {
var _local1 = str1;
var _local2;
_local2 = ((((_local1.substring(0, 2) + ":") + _local1.substring(2, 4)) + ":") + _local1.substring(4, 6)) + " GMT";
return(_local2);
}
function mouselogToList(str) {
var _local1 = str;
var _local2 = [];
i = 1;
while (i <= (_local1.length / 4)) {
_local2[i] = cutZero(_local1.substring((i - 1) * 4, ((i - 1) * 4) + 4));
i++;
}
return(_local2);
}
loadLog = new LoadVars();
LoadLog.onLoad = setLogdata;
if (_global.greeting_mode == true) {
if (_global.greeting_datemode == "today") {
_global.LogFilename = _global.url_today;
} else {
_global.LogFilename = (_global.url_archive + _global.greeting_date) + ".txt";
}
} else {
_global.LogFilename = _global.url_today;
}
if (_global.dummyData) {
} else {
LogFileName = (LogFileName + "?random=") + Math.round(Math.random() * 10000);
}
loadLog.load(LogFileName);
stop();
_global.branchFormat = function (str) {
var _local1 = str;
var _local3 = [];
var ang;
var ratio;
var _local2;
_local2 = 1;
while (_local2 <= 100) {
if (_local1.length > 12) {
break;
}
ang = branchFormatSub(_local1.substring(0, 3));
ratio = branchFormatSub(_local1.substring(3, 6));
_local3[_local2] = new Object();
_local3[_local2].ang = ang;
_local3[_local2].ratio = ratio;
_local1 = _local1.substring(6, _local1.length);
if (_local1.length < 6) {
break;
}
_local2++;
}
return(_local3);
};
_global.branchFormatSub = function (str) {
var _local1 = str;
while (true) {
if (_local1.substring(0, 1) == "_") {
_local1 = _local1.substring(1, _local1.length);
} else {
break;
}
}
return(Number(_local1));
};
Frame 107
function setmobdata(success) {
if (success) {
_global.mobdata = new Object();
mobdata.qc = Number(loadMob.qc);
mobdata.date = [];
mobdata.time = [];
mobdata.date_original = [];
mobdata.time_original = [];
mobdata.name = [];
mobdata.mes = [];
mobdata.id = [];
i = 1;
while (i <= 100) {
if (loadMob["date" + i] != undefined) {
mobdata.id[i] = String(loadMob["id" + i]);
mobdata.date_original[i] = loadMob["date" + i];
mobdata.time_original[i] = loadMob["time" + i];
mobdata.date[i] = dateFormat(loadMob["date" + i]);
mobdata.time[i] = timeFormat(loadMob["time" + i]);
mobdata.name[i] = loadMob["name" + i];
mobdata.mes[i] = loadMob["mes" + i];
} else {
break;
}
i++;
}
delete loadMob;
delete setmobdata;
delete dateFormat;
delete timeFormat;
_root.gotoAndStop("loadvar_recommend");
} else {
trace("mobile data failed");
_global.mobdata = "error";
_root.gotoAndStop("loadvar_recommend");
}
}
function dateFormat(str1) {
var _local1 = str1;
var _local2;
_local2 = (((("20" + _local1.substring(0, 2)) + ".") + _local1.substring(2, 4)) + ".") + _local1.substring(4, 6);
return(_local2);
}
function timeFormat(str1) {
var _local1 = str1;
var _local2;
_local2 = ((((_local1.substring(0, 2) + ":") + _local1.substring(2, 4)) + ":") + _local1.substring(4, 6)) + " GMT";
return(_local2);
}
loadMob = new LoadVars();
loadMob.onLoad = setmobdata;
loadMob.load((_global.cgi_getMobile + "&random=") + Math.round(Math.random() * 10000));
stop();
Frame 112
function setReco(success) {
var _local1 = _root;
if (success) {
_local1.recommend = cutReturn(this.recommend);
trace("recommend=" + _local1.recommend);
} else {
_local1.recommend = "HELLO!\nECOTONOHA!";
}
gotoAndPlay ("startGenerate");
}
function cutReturn(str) {
var _local2 = str;
var _local1;
var _local3;
_local1 = 0;
while (_local1 <= _local2.length) {
_local3 = _local2.charAt(_local1);
if (_local3 == newline) {
_local2 = _local2.substring(0, _local1 - 1) + _local2.substring(_local1);
_local1--;
}
_local1++;
}
return(_local2);
}
loadReco = new LoadVars();
loadReco.onLoad = setReco;
loadReco.load("recommend.txt");
stop();
Frame 126
stop();
Frame 127
Stage.align = "LB";
resizeWindow();
if (_global.reloadOption == true) {
trace("reload-Mode");
_global.skipmode = true;
_global.reloadOption = false;
}
Frame 157
resizeWindow();
Frame 176
_root.mouse.show("intro");
Frame 177
if (_global.skipmode) {
j = 1;
while (j <= 100) {
generateNext();
j++;
}
this.sound.ring(3);
} else {
generateNext();
}
Frame 178
if (_global.skipmode) {
if (_root.skipwait == true) {
this.gotoAndPlay("loop");
} else {
this.gotoAndPlay("skipwait");
}
} else {
this.gotoAndPlay(_currentframe + (Math.round(Math.random() * 4) * 5));
}
Frame 203
gotoAndPlay ("loop");
Frame 232
_root.skipwait = true;
gotoAndPlay ("loop");
Frame 259
if (skipmode) {
_root.gotoAndPlay("completeEventEnd");
}
Frame 314
_root.mouse.show("start");
skipmode = false;
_root.dialog.hide();
_root.status = "finish";
if (_global.greeting_mode) {
var dotMc = idToMcname(_global.greeting_bid).inst_kotonoha.inst_dot;
_root.focus_count = 0;
dotMc.inst_kotonoha.zoom();
_root.mouse.hide();
_root.mouse.restart();
_global.currentClick = dotMc;
}
stop();
Frame 331
_root.alltree._visible = false;
resizeWindow();
Frame 332
_root.gotoAndStop("ending");
Frame 340
_root.alltree._visible = false;
resizeWindow();
Frame 373
delete Logdata;
delete obj;
delete Logcount;
delete kotonoha;
delete branch;
delete cursor;
delete submitForm;
delete submitPoint;
delete tree;
function archiveTree() {
}
function brancha() {
var _local1 = this;
_local1.ang = 0;
_local1.center_ang = 0;
_local1.leng = def_leng;
_local1.wid = def_wid;
_local1.onLoad = _local1.draw;
}
function kotonoha_a() {
var _local1 = this;
var x;
var _local3;
var _local2;
_local1.inst_branch.inst_kotonoha = _local1;
x = (_local1.inst_branch.leng * Math.sin((_local1.center_ang / 180) * Math.PI)) * 0.25;
_local3 = (((-_local1.inst_branch.leng) * (100 - pos)) / 100) - ((_local1.inst_branch.leng * Math.cos((_local1.center_ang / 180) * Math.PI)) * 0.25);
_local2 = new Object();
_local2.x = x;
_local2.y = _local3;
_local1.inst_branch.localToGlobal(_local2);
_local1.inst_root.globalToLocal(_local2);
_local1._x = _local2.x;
_local1._y = _local2.y;
_local1._xscale = Math.min(ks1 + (_local1.inst_branch.mid.branch._yscale * ks2), scMax) * 0.5;
_local1._yscale = Math.min(ks1 + (_local1.inst_branch.mid.branch._yscale * ks2), scMax) * 0.5;
_local1.setWord(_local1.entryObj);
if (((_local1.sum_ang >= 0) && (_local1.sum_ang < 180)) || ((_local1.sum_ang <= -180) && (_local1.sum_ang >= -360))) {
_local1.word.gra.gotoAndStop(1);
} else {
_local1.word.gra.gotoAndStop(2);
}
delete _local1.entryObj;
}
function DateObj(y, m, d) {
this.date = new Date();
if (d != undefined) {
this.date.setUTCFullYear(y, m - 1, d);
}
}
function calender() {
var _local1 = this;
_local1.maxdate = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
_local1.offset = 130;
_local1.day_x0 = 100;
_local1.leng = scwidth - _local1.offset;
}
_global.wid_min = 1;
_global.growNum = 50;
_global.cutLevel = 8;
_global.clearMode = "def";
archiveTree.prototype = new MovieClip();
Object.registerClass("archiveTree", archiveTree);
archiveTree.prototype.loadAndPlay = function (dateObj) {
var _local1 = this;
var _local2 = dateObj;
_local1.notFinish = true;
_local1.dateObj = _local2;
_local1.titleDate = (((getMonthString(_local2.date.getUTCMonth() + 1) + " ") + _local2.date.getUTCDate()) + ". ") + _local2.date.getUTCFullYear();
var _local3 = _local1.dateObj.getFileName();
_local1.filename_full = _local1.dateObj.getFileName("full");
_local1.dataLoad(_local3);
};
archiveTree.prototype.dataLoad = function (filename) {
var _local1 = this;
_local1.loadLog = new LoadVars();
var filename;
_local1.loadLog.load((filename + "?random=") + Math.round(Math.random() * 10000));
_local1.loadLog.inst = _local1;
_local1.loadLog.onLoad = function () {
var _local1 = this;
_local1.inst.totalPost = 1;
while (true) {
if (_local1["name" + _local1.inst.totalPost] != undefined) {
_local1.inst.totalPost++;
} else {
break;
}
}
_local1.inst.totalPost--;
_local1.inst.loadedData = setLogData2(_local1);
_local1.inst.complete = true;
};
};
archiveTree.prototype.startGrow = function () {
var _local1 = this;
var _local2 = _root;
_local1.logCount = 0;
_local1.generateNext();
_local1.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
j = 0;
while (j <= growNum) {
_local1.generateNext();
if (_local1.logCount >= (_local1.loadedData.bid.length - 1)) {
j = 100;
_local1.notFinish = false;
delete _local1.onEnterFrame;
delete _local1.loadedData;
if (_local1.totalPost > 0) {
_local1.gotoAndStop(2);
_local2.sound.ring(4);
_local1.tex = (((("<p align=\"center\">" + _local1.titleDate) + ": ") + "<font color=\"#AACC00\">") + _local1.totalPost) + "</font> leaves</p>";
} else {
_local1.tex = (("<p align=\"center\">" + _local1.titleDate) + ": ") + "no leaf</p>";
}
}
j++;
}
};
};
archiveTree.prototype.generateNext = function () {
var _local1 = this;
_local1.tex = (((("<p align=\"center\">" + _local1.titleDate) + ": ") + "<font color=\"#AACC00\">") + (_local1.logCount + 1)) + "</font> leaves</p>";
while (true) {
obj = new Object();
obj.bid = _local1.loadedData.bid[_local1.logCount];
if (obj.bid.length < cutLevel) {
var _local2 = new Object();
_local2.myCount = logCount;
obj.inst_root = _local1;
obj.id = logCount;
obj.name = _local1.loadedData.name[_local1.logCount];
obj.mes = _local1.loadedData.mes[_local1.logCount];
obj.cid = _local1.loadedData.cid[_local1.logCount];
_local2.obj = obj;
delete _local1.loadedData.name[_local1.logCount];
delete _local1.loadedData.mes[_local1.logCount];
delete _local1.loadedData.cid[_local1.logCount];
delete _local1.loadedData.bid[_local1.logCount];
break;
}
delete _local1.loadedData.name[_local1.logCount];
delete _local1.loadedData.mes[_local1.logCount];
delete _local1.loadedData.cid[_local1.logCount];
delete _local1.loadedData.bid[_local1.logCount];
}
var _local3 = _local1.idToMcName(obj.bid);
if (_local3 != undefined) {
if (_local3.inst_child != undefined) {
} else {
_local3.addBranch(_local1.logCount, obj);
_local3.generateKotonoha(obj);
}
}
_local1.logCount++;
};
archiveTree.prototype.idToMcName = function (id) {
var _local2 = id;
_local2 = String(_local2);
var _local3 = _local2.length;
var _local1 = this.miki;
i = 1;
while (i <= _local3) {
_local1 = _local1["b" + _local2.charAt(i - 1)];
i++;
}
return(_local1);
};
_global.setLogdata2 = function (loadlog) {
var loadLog;
var _local2 = new Object();
_local2.name = [];
_local2.mes = [];
_local2.cid = [];
_local2.bid = [];
if (loadlog.tree != undefined) {
_local2.treeCount = loadlog.tree;
var countmax = 500;
} else {
_local2.treeCount = 0;
var countmax = 100000;
}
var _local1;
_local1 = 1;
while (_local1 <= countmax) {
if (loadlog["name" + _local1] != undefined) {
_local2.name[_local1] = loadlog["name" + _local1];
_local2.mes[_local1] = loadlog["mes" + _local1];
_local2.bid[_local1] = loadlog["bid" + _local1];
_local2.cid[_local1] = branchFormat(loadlog["cid" + _local1]);
} else {
break;
}
_local1++;
}
_local2.cid[0] = [];
var _local3;
_local3 = 1;
while (_local3 <= n) {
_local2.cid[0][_local3] = new Object();
_local2.cid[0][_local3].ang = 30 * (_local3 - 1.5);
_local2.cid[0][_local3].ratio = 100;
_local3++;
}
return(_local2);
};
archiveTree.prototype.viewFullSession = function () {
_global.LogFilename = this.filename_full;
gotoAndPlay ("init0");
};
brancha.prototype = new MovieClip();
Object.registerClass("branchMC_A", brancha);
brancha.prototype.addBranch = function (myCount, obj) {
var _local1 = this;
var pos = ratio_branch;
var x0;
var y0;
var _local3;
var _local2;
_local1.leng = _local1.leng * (pos / 100);
_local1.mid.branch.gotoAndStop("end");
_local1.draw();
x0 = _local1.leng * Math.sin((_local1.ang * 3.14159265358979()) / 180);
y0 = (-_local1.leng) * Math.cos((_local1.ang * 3.14159265358979()) / 180);
_local1.inst_child = [];
_local3 = 1;
while (_local3 <= n) {
_local2 = "b" + _local3;
_local1.attachMovie("branchMC_A", _local2, _local3);
_local1[_local2].depth = _local1.depth + 1;
_local1[_local2]._x = x0;
_local1[_local2]._y = y0;
_local1[_local2].ang = obj.cid[_local3].ang;
_local1[_local2].leng = (_local1.leng * obj.cid[_local3].ratio) / 100;
_local1[_local2].wid = (((_local1.wid * (_local1[_local2].leng / _local1.leng)) * (pos / 100)) * wid_shrink) / 100;
if (_local1[_local2].wid < wid_min) {
_local1[_local2].wid = wid_min;
}
_local1[_local2].side_id = _local3;
_local1[_local2].sum_ang = _local1.sum_ang + _local1[_local2].ang;
_local1[_local2].inst_parent = _local1;
_local1.inst_child[_local3] = _local1[_local2];
_local1.center_ang = _local1.center_ang + (_local1[_local2].to_ang / n);
if (_local1.id != undefined) {
_local1[_local2].id = String(_local1.id) + _local1[_local2].side_id;
} else {
_local1[_local2].id = _local1[_local2].side_id;
}
_local3++;
}
};
brancha.prototype.draw = function () {
var _local1 = this;
_local1._rotation = _local1.ang;
_local1.mid.branch._yscale = (_local1.leng / def_leng) * 100;
_local1.mid.branch._xscale = (_local1.wid / def_wid) * 100;
};
brancha.prototype.generateKotonoha = function (entryObj) {
var _local2 = this;
var _local3 = entryObj;
var _local1;
_local1 = new Object();
_local1.inst_root = _local3.inst_root;
_local1.inst_branch = _local2;
_local1.center_ang = _local2.center_ang;
_local1.sum_ang = _local2.sum_ang;
_local1.id = _local2.id;
_local1.entryObj = _local3;
var dpt = _local2.idToNum(_local2.id);
_local3.inst_root.attachMovie("kotonoha_a", "kotonoha" + _local2.id, dpt, _local1);
};
brancha.prototype.idToNum = function (id) {
var id = String(id);
var _local3 = id.length;
var _local1 = 0;
var _local2 = "";
i = 1;
while (i <= _local3) {
_local2 = id.charAt(i - 1);
_local1 = _local1 + (Math.pow(2, _local3 - i) * Number(_local2));
i++;
}
return(_local1);
};
kotonoha_a.prototype = new MovieClip();
Object.registerClass("kotonoha_a", kotonoha_a);
kotonoha_a.prototype.setWord = function (entryObj) {
var _local1 = this;
if (entryObj == "nothing") {
_local1.word.gra.text1 = "";
_local1.word.gra.text3 = "";
_local1.word.gra.gotoAndStop("void");
} else {
if (entryObj.name.length >= 1) {
_local1.word.gra.text1 = entryObj.name.toUpperCase() + " SAID";
} else {
_local1.word.gra.text1 = "";
}
_local1.word.gra.text3 = entryObj.mes.toUpperCase();
}
var _local2 = ((Math.max(entryObj.mes.length - 4, 0) / 28) + (Math.random() * colorRand2)) - (colorRand2 / 2);
_local1.colorCode = [];
i = 1;
while (i <= 3) {
_local1.colorCode[i] = Math.round((colorcode0[i] * _local2) + ((colorcode1[i] * (1 - _local2)) * (1 + (((Math.random() * colorRand1) - (colorRand1 / 2)) / 100))));
i++;
}
var myColor = new Color(_local1.word.gra);
var _local3 = myColor.getTransform();
_local3.rb = _local1.ColorCode[1];
_local3.gb = _local1.ColorCode[2];
_local3.bb = _local1.ColorCode[3];
_local3.ab = 0;
myColor.setTransform(_local3);
delete _local1.colorCode;
};
DateObj.prototype.getDateCode = function () {
var _local1 = this;
return((String(_local1.date.getUTCFullYear()).substring(2, 4) + plusZero(_local1.date.getUTCMonth() + 1)) + plusZero(_local1.date.getUTCDate()));
};
DateObj.prototype.getFileName = function (option) {
var _local2 = _global.url_archive;
var _local1;
if (option == "full") {
_local1 = (_local2 + this.getDateCode()) + ".txt";
} else {
_local1 = (_local2 + this.getDateCode()) + "_light.txt";
}
return(_local1);
};
DateObj.prototype.dateShift = function (dShift) {
var dShift;
var _local1;
_local1 = new DateObj();
_local1.date.setTime(this.date.getTime() + (86400000 * dShift));
return(_local1);
};
_global.plusZero = function (num) {
var _local1 = num;
if (_local1 < 10) {
return("0" + String(_local1));
}
return(String(_local1));
};
calender.prototype = new MovieClip();
Object.registerClass("calender", calender);
calender.prototype.setDays = function (y, m) {
var _local1 = this;
_local1.month = m;
_local1.year = y;
_local1.title_month.tex = (getMonthString(_local1.month) + ", ") + _local1.year;
_local1.button_back._x = _local1.day_x0;
_local1.button_fwd._x = _local1.day_x0 + _local1.leng;
i = 1;
while (i <= _local1.maxdate[_local1.month]) {
_local1.attachMovie("day", "day" + i, i);
_local1["day" + i]._x = Math.round(_local1.day_x0 + ((_local1.leng / (_local1.maxdate[_local1.month] + 1)) * i));
_local1["day" + i].year = _local1.year;
_local1["day" + i].month = _local1.month;
_local1["day" + i].date = i;
_local1["day" + i].num = plusZero(i);
_local1["day" + i].dateObj = new dateObj(_local1.year, _local1.month, i);
switch (_local1["day" + i].dateObj.date.getDay()) {
case 6 :
_local1["day" + i].datenum.gotoAndStop(2);
break;
case 0 :
_local1["day" + i].datenum.gotoAndStop(3);
break;
default :
_local1["day" + i].datenum.gotoAndStop(1);
}
if ((i >= 10) && (i < 20)) {
_local1["day" + i].datenum._x++;
}
if ((i % 10) == 1) {
_local1["day" + i].datenum._x++;
}
_local1["day" + i].dateCode = (String(_local1.year).substring(2, 4) + plusZero(_local1.month)) + plusZero(i);
if (find) {
_local1.statIndex++;
if (stat[_local1.statIndex] != undefined) {
_local1["day" + i].entry = stat[_local1.statIndex].substring(6, stat[_local1.statIndex].length);
}
} else {
j = 1;
while (j <= (stat.length - 1)) {
if (stat[j].substring(0, 6) == _local1["day" + i].dateCode) {
find = true;
_local1.statIndex = j;
_local1["day" + i].entry = stat[j].substring(6, stat[j].length);
j = 10000;
break;
}
j++;
}
}
find = false;
if (_local1["day" + i].entry != undefined) {
_local1["day" + i].graph.gotoAndStop(Math.round(_local1["day" + i].entry / 100) + 1);
}
i++;
}
};
calender.prototype.clear = function () {
var _local1 = this;
i = 1;
while (i <= _local1.maxdate[_local1.month]) {
_local1["day" + i].removeMovieClip();
i++;
}
};
calender.prototype.monthBack = function () {
var _local1 = this;
_local1.clear();
_local1.month--;
if (_local1.month < 1) {
_local1.month = 12;
_local1.year--;
}
_local1.setDays(_local1.year, _local1.month);
_local1._alpha = 0;
_local1.onEnterFrame = _local1.fadein;
};
calender.prototype.monthFwd = function () {
var _local1 = this;
_local1.clear();
_local1.month++;
if (_local1.month > 12) {
_local1.month = 1;
_local1.year++;
}
_local1.setDays(_local1.year, _local1.month);
_local1._alpha = 0;
_local1.onEnterFrame = _local1.fadein;
};
calender.prototype.fadein = function () {
var _local1 = this;
_local1._alpha = _local1._alpha + 10;
if (_local1._alpha >= 100) {
delete _local1.onEnterFrame;
}
};
calender.prototype.select = function (dateObj) {
_global.gDateObj = dateObj;
_root.gotoAndPlay("archiveClear");
this.highLight(dateObj);
};
calender.prototype.highLight = function (dateObj) {
var _local1 = this;
i = 1;
while (i <= _local1.maxdate[_local1.month]) {
_local1["day" + i].dot.gotoAndStop(1);
i++;
}
var _local2 = dateObj.date.getUTCDate();
_local1["day" + (_local2 - 1)].dot.gotoAndStop("on");
_local1["day" + _local2].dot.gotoAndStop("on");
_local1["day" + (_local2 + 1)].dot.gotoAndStop("on");
};
calender.prototype.reArrangeDays = function () {
var _local1 = this;
_local1.leng = scwidth - _local1.offset;
_local1.button_back._x = _local1.day_x0;
_local1.button_fwd._x = _local1.day_x0 + _local1.leng;
i = 1;
while (i <= _local1.maxdate[_local1.month]) {
_local1["day" + i]._x = Math.round(_local1.day_x0 + ((_local1.leng / (_local1.maxdate[_local1.month] + 1)) * i));
i++;
}
};
_global.getMonthString = function (m) {
var m;
var _local1 = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return(_local1[m]);
};
Frame 374
stop();
resizeWindow();
today = new DateObj();
yesterday = today.dateShift(-1);
_root.cal.setDays(yesterday.date.getUTCFullYear(), yesterday.date.getUTCMonth() + 1);
_root.cal.select(today.dateShift(-2));
Instance of Symbol 31 MovieClip [archiveTree] "archive1" in Frame 374
onClipEvent (load) {
this.id = 1;
}
Instance of Symbol 31 MovieClip [archiveTree] "archive2" in Frame 374
onClipEvent (load) {
this.id = 2;
}
Instance of Symbol 31 MovieClip [archiveTree] "archive3" in Frame 374
onClipEvent (load) {
this.id = 3;
}
Frame 377
resizeWindow();
_root.archive1._visible = false;
_root.archive2._visible = false;
_root.archive3._visible = false;
_root.archive3.loadAndPlay(gDateObj.dateshift(1));
_root.archive2.loadAndPlay(gDateObj.dateshift(0));
_root.archive1.loadAndPlay(gDateObj.dateshift(-1));
Frame 381
_root.archive1._visible = false;
_root.archive2._visible = false;
_root.archive3._visible = false;
_root.archive1.complete = false;
_root.archive2.complete = false;
_root.archive3.complete = false;
if (clearMode == "def") {
_root.loadWatch.gotoAndPlay("start");
} else {
_root.loadWatch.gotoAndStop("processing");
}
Frame 383
switch (clearMode) {
case "def" :
gotoAndStop ("archiveDraw");
break;
case "end" :
gotoAndStop ("ending");
break;
case "back" :
gotoAndPlay ("archiveFadeout0");
}
Frame 429
gotoAndPlay ("init0");
Frame 459
Stage.align = "LB";
resizeWindow();
sub.removeMovieClip();
Frame 471
Stage.align = "";
stopAllSounds();
Frame 506
getURL ("javascript:close()");
stop();
Symbol 7 MovieClip Frame 1
stop();
Symbol 9 MovieClip [kotonoha_a] Frame 1
if (skipmode) {
this.gotoAndStop("show");
} else {
play();
}
Symbol 9 MovieClip [kotonoha_a] Frame 2
stop();
Symbol 12 MovieClip [dotZoom] Frame 1
_root.sound.ring();
Symbol 12 MovieClip [dotZoom] Frame 14
if (this.option == "submitpoint") {
this.play();
} else {
this.stop();
}
Symbol 12 MovieClip [dotZoom] Frame 35
stop();
this.removeMovieClip();
Symbol 15 Button
on (press) {
_parent.select(this.dateObj, this.entry);
}
Symbol 16 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 7
stop();
Symbol 27 MovieClip [branchMC_A] Frame 1
stop();
Symbol 31 MovieClip [archiveTree] Frame 1
stop();
Symbol 34 MovieClip Frame 10
stop();
Symbol 34 MovieClip Frame 20
stop();
Symbol 36 MovieClip Frame 10
stop();
Symbol 38 Button
on (release) {
filename = "help_en.html";
openNewWin(filename, "_blank", "width=520,height=480,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,favorites=no");
}
Symbol 40 Button
on (release) {
filename = "help.html";
openNewWin(filename, "_blank", "width=520,height=480,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,favorites=no");
}
Symbol 42 Button
on (rollOver, dragOver) {
menu2.gotoAndStop(2);
}
on (rollOut, dragOut) {
menu2.gotoAndStop(1);
}
on (press) {
_global.scene = "archive";
_root.gotoAndPlay("defFadeout");
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 1
if (_global.nightmode) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
Symbol 49 MovieClip Frame 1
stop();
Symbol 52 Button
on (release) {
filename = "saver_en.html";
openNewWin(filename, "_blank", "width=520,height=480,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,favorites=no");
}
Symbol 54 Button
on (release) {
filename = "saver.html";
openNewWin(filename, "_blank", "width=520,height=480,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,favorites=no");
}
Symbol 56 Button
on (release) {
if (mute != true) {
mySound = new Sound();
mysound.setVolume(0);
mute = true;
soundText.gotoAndStop(2);
} else {
mySound = new Sound();
mysound.setVolume(100);
mute = false;
soundText.gotoAndStop(1);
}
}
Symbol 59 MovieClip Frame 1
stop();
Symbol 60 Button
on (rollOver, dragOver) {
menu1.gotoAndStop(2);
}
on (rollOut, dragOut) {
menu1.gotoAndStop(1);
}
on (press) {
_global.scene = "today";
_root.restart();
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
if (_global.nightmode) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
Symbol 64 MovieClip Frame 1
if ((_global.greeting_mode == true) && (_global.greeting_datemode == "past")) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
Symbol 65 MovieClip Frame 11
nightSet();
Symbol 65 MovieClip Frame 25
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
if (_global.nightmode) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
Symbol 86 MovieClip Frame 1
function show() {
var _local1 = this;
var _local2 = _global;
if (_local1.mode != "show") {
if (_local2.greeting_mode && (_local2.greeting_datemode == "past")) {
_local1.gotoAndStop("fadeout1");
} else if (_local2.treeCount > 0) {
_local1.gotoAndPlay("fadeout");
_local1.mode = "show";
} else {
_local1.gotoAndPlay("fadeout0");
_local1.mode = "show";
}
}
}
function hide() {
var _local1 = this;
var _local2 = _global;
if (_local1.mode != "hide") {
if (_local2.greeting_mode && (_local2.greeting_datemode == "past")) {
_local1.gotoAndStop("fadein1");
} else if (_local2.treeCount > 0) {
_local1.gotoAndPlay("fadein");
_local1.mode = "hide";
} else {
_local1.gotoAndPlay("fadein0");
_local1.mode = "hide";
}
}
}
stop();
if (_global.greeting_mode && (_global.greeting_datemode == "past")) {
this.gotoAndStop("past");
} else if (_global.treeCount > 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop("less");
}
Symbol 86 MovieClip Frame 11
stop();
Symbol 86 MovieClip Frame 21
stop();
Symbol 86 MovieClip Frame 24
stop();
Symbol 86 MovieClip Frame 34
stop();
Symbol 86 MovieClip Frame 45
stop();
Symbol 86 MovieClip Frame 52
stop();
Symbol 86 MovieClip Frame 62
stop();
Symbol 86 MovieClip Frame 72
stop();
Symbol 87 MovieClip Frame 10
_root.alltree.footer_right.entryList.count = _global.numFormat(0, 4);
_root.alltree.footer_right.entryList.count0 = _global.numFormat(Number(_global.treeCount) * 500, 4);
Symbol 87 MovieClip Frame 25
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 14
stop();
Symbol 95 MovieClip [branchMC] Frame 1
if (skipmode) {
this.gotoAndStop("def");
} else {
stop();
}
Symbol 95 MovieClip [branchMC] Frame 5
stop();
Symbol 95 MovieClip [branchMC] Frame 11
stop();
Symbol 96 MovieClip [allTree] Frame 1
nightSet(true);
Symbol 96 MovieClip [allTree] Frame 37
nightSet(true);
Instance of Symbol 95 MovieClip [branchMC] "miki" in Symbol 96 MovieClip [allTree] Frame 37
onClipEvent (load) {
this.id = "";
}
Symbol 96 MovieClip [allTree] Frame 39
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 108 Button
on (release) {
getURL ("http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P5_Language=English", "_top");
}
Symbol 111 Button
on (release) {
getURL ("http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P5_Language=English", "_top");
}
Symbol 115 Button
on (release) {
getURL ("javascript:close()");
}
Symbol 118 Button
on (press) {
getURL ("javascript:close()");
}
Symbol 128 MovieClip [cursor] Frame 7
stop();
Symbol 128 MovieClip [cursor] Frame 38
stop();
this.removeMovieClip();
Symbol 128 MovieClip [cursor] Frame 73
stop();
this.removeMovieClip();
Symbol 130 Button
on (rollOver) {
if (complete) {
if (_global.currentClick != this) {
this.gotoAndPlay("over");
_root.mouse.show("zoom");
}
}
}
on (press) {
if (complete) {
if (_global.currentClick != this) {
_root.focus_count = 0;
inst_kotonoha.zoom();
_root.mouse.hide();
_root.mouse.restart();
_global.currentClick = this;
}
}
}
on (rollOut, dragOut) {
if (complete) {
if (_global.currentClick != this) {
this.gotoAndPlay("out");
_root.mouse.hide();
}
}
}
Symbol 132 Button
on (rollOver) {
this.gotoAndPlay("hide-over");
_root.mes.show("zoom");
}
on (press) {
inst_kotonoha.zoom();
_root.mes.hide();
}
on (rollOut, dragOut) {
this.gotoAndPlay("hide-out");
_root.mes.hide();
}
Symbol 134 MovieClip [dot] Frame 1
if (skipmode) {
this.gotoAndStop("show");
} else {
_root.sound.ring();
play();
}
Symbol 134 MovieClip [dot] Frame 8
stop();
Symbol 134 MovieClip [dot] Frame 35
stop();
Symbol 134 MovieClip [dot] Frame 44
stop();
Symbol 134 MovieClip [dot] Frame 59
stop();
Symbol 134 MovieClip [dot] Frame 70
stop();
Symbol 135 MovieClip [kotonohaMC] Frame 1
if (skipmode) {
this.gotoAndStop("show");
} else {
play();
}
Symbol 135 MovieClip [kotonohaMC] Frame 10
if (this.option == "new") {
this.show();
} else {
stop();
}
Symbol 135 MovieClip [kotonohaMC] Frame 20
play();
Symbol 135 MovieClip [kotonohaMC] Frame 46
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 150 MovieClip [mouseChase] Frame 1
stop();
Symbol 150 MovieClip [mouseChase] Frame 17
stop();
Symbol 150 MovieClip [mouseChase] Frame 25
stop();
Symbol 164 Button
on (release) {
this.name = _root.username;
this.message = _root.usermessage;
_parent.closeOption = "submit";
_parent.submitAction();
}
Symbol 171 Button
on (release) {
this.gotoAndPlay("greeting_play");
}
Symbol 173 Button
on (release) {
_parent.gotoAndPlay("close");
_parent.closeOption = "justclose";
}
Symbol 176 Button
on (release) {
filename = "help_en.html#greeting";
openNewWin(filename, "_blank", "width=520,height=480,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,favorites=no");
}
Symbol 177 Button
on (release) {
filename = "help.html#greeting";
openNewWin(filename, "_blank", "width=520,height=480,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,favorites=no");
}
Symbol 189 Button
on (release) {
error = false;
if (this.checkEmail(_root.g_sender_email) == false) {
error_email1.gotoAndStop(2);
error = true;
} else {
error_email1.gotoAndStop(1);
}
if (this.checkEmail(_root.g_recipient_email) == false) {
error_email2.gotoAndStop(2);
error = true;
} else {
error_email2.gotoAndStop(1);
}
if (_root.g_sender_name.length < 1) {
error_name.gotoAndStop(2);
error = true;
} else {
error_name.gotoAndStop(1);
}
if (_root.g_body.length < 1) {
error_body.gotoAndStop(2);
error = true;
} else {
error_body.gotoAndStop(1);
}
if (error == false) {
this.play();
}
}
Symbol 204 Button
on (release) {
this.gotoAndStop(2);
}
Symbol 206 Button
on (release) {
this.gotoAndStop(1);
}
Symbol 207 MovieClip Frame 1
stop();
_root.g_copymail = "yes";
Symbol 207 MovieClip Frame 2
_root.g_copymail = "no";
Symbol 212 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 220 Button
on (release) {
this.sender_name = _root.g_sender_name;
this.sender_email = _root.g_sender_email;
this.recipient_email = _root.g_recipient_email;
this.body = _root.g_body;
if (_root.g_copymail == "yes") {
this.copymail = 1;
} else {
this.copymail = 0;
}
_parent.submitGreeting();
}
Symbol 221 Button
on (release) {
this.gotoAndPlay("greeting_input");
}
Symbol 240 Button
on (release) {
_root.g_recipient_email = "";
this.play();
}
Symbol 244 Button
on (release) {
_parent.gotoAndPlay("greeting_play");
}
Symbol 248 MovieClip Frame 1
if (_root.greeting_mode == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
Symbol 249 Button
on (release) {
_parent.gotoAndPlay("close");
_parent.closeOption = "justclose";
}
Symbol 251 Button
on (release) {
_parent.gotoAndPlay("close");
_parent.closeOption = "tryAnother";
}
Symbol 255 Button
on (release) {
_parent.gotoAndPlay("close");
_parent.closeOption = "reload";
}
Symbol 258 MovieClip Frame 1
stop();
_root.userMessage = _root.recommend;
textarea1.onSetFocus = function () {
if (this.text == "anonymous") {
this.text = "";
}
};
textarea2.onSetFocus = function () {
var _local1 = _root;
if (_local1.userMessage == _local1.recommend) {
_local1.userMessage = "";
}
};
checkEmail = function (str) {
var _local2 = str;
if (_local2.length < 5) {
return(false);
}
var iChars = "*|,\":<>[]{}`';()&$#%";
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
if (iChars.indexOf(_local2.charAt(_local1)) != -1) {
trace(("Invalid Email Address : Illegal Character in Email Address : -->" + _local2.charAt(_local1)) + "<--.");
return(false);
}
_local1++;
}
var atIndex = _local2.lastIndexOf("@");
if ((atIndex < 1) || (atIndex == (_local3 - 1))) {
trace("Invalid Email Address : Email Address must contain @ as at least the second chararcter.");
return(false);
}
var pIndex = _local2.lastIndexOf(".");
if ((pIndex < 4) || (pIndex == (_local3 - 1))) {
trace("Invalid Email Address : Email Address must contain at least one . (period) in a valid position");
return(false);
}
if (atIndex > pIndex) {
_local2.__error = "Invalid Email Address : Email Address must be in the form of name@domain.domaintype";
return(false);
}
return(true);
};
Symbol 258 MovieClip Frame 3
_root.greeting_mode = true;
Symbol 258 MovieClip Frame 22
_parent.closeAction("submit");
Symbol 258 MovieClip Frame 71
stop();
Symbol 258 MovieClip Frame 89
stop();
Symbol 258 MovieClip Frame 105
stop();
Symbol 258 MovieClip Frame 106
stop();
Symbol 258 MovieClip Frame 119
stop();
Symbol 258 MovieClip Frame 120
this.gotoAndStop("greeting_input");
Symbol 259 MovieClip [submitForm] Frame 24
if (this.error == 1) {
this.all.gotoAndStop("error1");
} else if (this.error == 2) {
this.all.gotoAndStop("error2");
}
Symbol 259 MovieClip [submitForm] Frame 33
stop();
Symbol 259 MovieClip [submitForm] Frame 109
this.closeAction(this.closeOption);
stop();
Symbol 260 Button
on (rollOver) {
this.gotoAndPlay("over");
_root.mouse.show("submit");
}
on (rollOut, dragOut) {
this.gotoAndPlay("out");
_root.mouse.hide();
}
on (press) {
_root.mouse.off();
_root.mouse.hide();
this.zoom(this.id);
}
Symbol 263 MovieClip Frame 1
if (nightMode) {
this.gotoAndStop(2);
} else {
stop();
}
Symbol 264 MovieClip [submitPoint] Frame 1
if (zoomMode == "submit") {
if (submitPointId == this.id) {
this.gotoAndPlay("focus");
} else {
this.gotoAndStop("void");
}
}
Symbol 264 MovieClip [submitPoint] Frame 2
if (_root.focus_count > 50) {
this.gotoAndStop("halt");
}
Symbol 264 MovieClip [submitPoint] Frame 16
gotoAndPlay (3);
Symbol 264 MovieClip [submitPoint] Frame 17
stop();
Symbol 264 MovieClip [submitPoint] Frame 34
gotoAndPlay ("over");
Symbol 264 MovieClip [submitPoint] Frame 45
stop();
Symbol 264 MovieClip [submitPoint] Frame 49
stop();
Symbol 264 MovieClip [submitPoint] Frame 59
gotoAndPlay ("focus");
Symbol 270 MovieClip Frame 1
function ring(f) {
var _local1 = f;
if (_local1 == undefined) {
this.gotoAndStop(Math.ceil(Math.random() * 3) + 1);
} else {
gotoAndStop(_local1 + 1);
}
}
stop();
Symbol 270 MovieClip Frame 2
gotoAndStop (1);
Symbol 270 MovieClip Frame 3
gotoAndStop (1);
Symbol 270 MovieClip Frame 4
gotoAndStop (1);
Symbol 270 MovieClip Frame 5
gotoAndStop (1);
Symbol 275 MovieClip Frame 1
if (nightMode) {
this.gotoAndPlay(2);
} else {
stop();
}
Symbol 275 MovieClip Frame 10
stop();
Symbol 279 MovieClip Frame 1
function show() {
if (_root.status != "finish") {
this.gotoAndStop(2);
}
}
function hide() {
this.gotoAndStop(1);
}
stop();
Symbol 282 Button
on (release) {
if (closebuttoncount != 1) {
_root.gotoAndStop("ending");
this.gotoAndPlay(1);
closebuttoncount = 1;
} else {
getURL ("javascript:close()");
}
}
Symbol 283 Button
on (release) {
if (closebuttoncount != 1) {
_root.endingProcedure();
this.gotoAndPlay("wait");
closebuttoncount = 1;
} else {
_root.gotoAndPlay("close");
}
}
Symbol 284 MovieClip Frame 15
stop();
Symbol 284 MovieClip Frame 70
gotoAndPlay (1);
Symbol 287 Button
on (release) {
_global.skipmode = true;
_root.gotoAndPlay("skipwait");
this.gotoAndPlay("skip_fadeout");
}
Symbol 289 Button
on (release) {
_global.nightmode = false;
_global.nightSet();
this.gotoAndPlay("dayMode-fadeout");
}
Symbol 293 Button
on (release) {
this.gotoAndPlay("back_fadeout");
_root.alltree.miki.inst_kotonoha.zoom();
}
Symbol 296 Button
on (release) {
_global.skipmode = true;
_root.gotoAndPlay("skipwait");
this.gotoAndPlay("greeting_fadeout");
_root.dialog.show();
}
Symbol 297 MovieClip Frame 1
function zoombuttonControl() {
var _local1 = this;
if (viewmode == "all") {
if (_local1.mode == "back_fadein") {
_local1.gotoAndPlay("back_fadeout");
}
} else if (_local1.mode != "back_fadein") {
if (nightMode) {
_local1.gotoAndPlay("back_fadein_night");
} else {
_local1.gotoAndPlay("back_fadein");
}
}
}
Symbol 297 MovieClip Frame 5
if (_global.greeting_mode) {
this.gotoAndPlay("greeting_fadein");
}
Symbol 297 MovieClip Frame 15
stop();
Symbol 297 MovieClip Frame 23
this.mode = "skip_fadeout";
Symbol 297 MovieClip Frame 33
stop();
Symbol 297 MovieClip Frame 47
stop();
Symbol 297 MovieClip Frame 60
stop();
Symbol 297 MovieClip Frame 76
this.mode = "back_fadein";
Symbol 297 MovieClip Frame 85
stop();
Symbol 297 MovieClip Frame 87
this.mode = "back_fadeout";
Symbol 297 MovieClip Frame 96
stop();
if (nightmode) {
this.gotoAndPlay("daymode");
}
Symbol 297 MovieClip Frame 110
stop();
Symbol 297 MovieClip Frame 113
this.mode = "skip_fadeout";
Symbol 297 MovieClip Frame 122
stop();
Symbol 300 Button
on (rollOver) {
text_today.gotoAndStop(2);
}
on (rollOut, dragOut) {
text_today.gotoAndStop(1);
}
on (press) {
_global.clearMode = "back";
_root.gotoAndPlay("archiveClear");
}
Symbol 302 MovieClip Frame 1
stop();
Symbol 303 Button
on (release) {
filename = "https://www.ecotonoha.com/help_en.html";
openNewWin(filename, "_blank", "width=520,height=480,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,favorites=no");
}
Symbol 304 Button
on (release) {
filename = "https://www.ecotonoha.com/help.html";
openNewWin(filename, "_blank", "width=520,height=480,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,favorites=no");
}
Symbol 305 Button
on (release) {
filename = "https://www.ecotonoha.com/saver_en.html";
openNewWin(filename, "_blank", "width=520,height=480,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,favorites=no");
}
Symbol 306 Button
on (release) {
filename = "https://www.ecotonoha.com/saver.html";
openNewWin(filename, "_blank", "width=520,height=480,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,favorites=no");
}
Symbol 307 MovieClip Frame 11
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 2
if ((_root.archive1.notFinish || (_root.archive2.notFinish)) || (_root.archive3.notFinish)) {
_root.sound.ring(3);
} else {
this.stop();
}
Symbol 308 MovieClip Frame 3
gotoAndPlay (2);
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 2
if ((_root.archive1.complete && (_root.archive2.complete)) && (_root.archive3.complete)) {
_root.archive1._visible = true;
_root.archive2._visible = true;
_root.archive3._visible = true;
_root.archive1.startGrow();
_root.archive2.startGrow();
_root.archive3.startGrow();
this.gotoAndStop("complete");
_root.ring.gotoAndPlay(2);
}
Symbol 311 MovieClip Frame 3
gotoAndPlay (2);
Symbol 315 Button
on (press) {
this.monthBack();
}
Symbol 316 Button
on (press) {
this.monthFwd();
}
Symbol 319 MovieClip Frame 10
stop();
Symbol 322 MovieClip Frame 1
if (_parent.mode == "posted") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
Symbol 324 MovieClip Frame 1
this.tex1 = ("you are the <font color=\"#AACC00\">" + totalToday) + "</font> of today. ";
this.tex2 = ("<font color=\"#AACC00\">" + (totaltoday + totalpast)) + "</font> leaves in total so far, ";
this.tex3 = ("enabling the planting of <font color=\"#AACC00\">" + Math.floor((totaltoday + totalpast) / 100)) + "</font> trees.";
if (_parent.mode == "posted") {
this.tex = (tex1 + tex2) + tex3;
} else {
this.tex = tex2 + tex3;
}
Symbol 325 MovieClip Frame 1
if (submitFlag) {
this.mode = "posted";
} else {
this.mode = "not posted";
}
Symbol 325 MovieClip Frame 377
_root.gotoAndPlay("close");