Frame 1
function overed(num) {
_root.document.putText(doc[num]);
_root.preLoadSum.putPicture(num);
_root.pv_titles.putPicture(num);
_root.type.change(num);
i = 0;
while (i < dataNum) {
_root.dodai[i].onOff(false);
i++;
}
_root.changeNowNumber(num);
}
function outed(num) {
}
function clicked(num) {
if (nowNumber != -1) {
theURL = eval ("_root.url" + num) + "/";
getURL (theURL);
}
}
function changeNowNumber(num) {
nowNumber = num;
}
function startSelect() {
_root.changeNowNumber(0);
_root.overed(0);
_root.dodai[0].onOff(true);
}
datfile = "list.dat";
doc = new Array();
isNew = [];
nowNumber = -1;
minsize = 50;
if (mode == undefined) {
mode = "games";
}
if (mode == "animations") {
bgColor = "ff7e00";
}
if (mode == "games") {
bgColor = "99cc00";
}
i = 0;
while (i < dataNum) {
doc[i] = "Now Loading....";
i++;
}
Instance of Symbol 46 MovieClip "bigLoading" in Frame 1
onClipEvent (load) {
function disappear() {
flag = true;
}
flag = false;
a = 100;
}
onClipEvent (enterFrame) {
_alpha = a;
if (flag) {
if (5 < a) {
a = a * 0.8;
} else {
this.gotoAndStop("end");
}
}
}
Instance of Symbol 52 MovieClip in Frame 1
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
this.onOff(_root.dodai.canISetNewTargetY(-1));
}
Instance of Symbol 55 MovieClip in Frame 1
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
this.onOff(_root.dodai.canISetNewTargetY(1));
}
Instance of Symbol 65 MovieClip "preLoadSum" in Frame 1
onClipEvent (enterFrame) {
if (dataNum != 0) {
i = 0;
while (i < dataNum) {
if (((this[i].getBytesTotal() == this[i].getBytesLoaded()) && (_root.minsize < this[i].getBytesTotal())) && (loadedFlag[i] == 1)) {
this.loaded2(i);
}
i++;
}
}
}
Instance of Symbol 67 MovieClip "dodai" in Frame 1
onClipEvent (enterFrame) {
if (dataNum != 0) {
i = 0;
while (i < dataNum) {
if (((this[i].getBytesTotal() == this[i].getBytesLoaded()) && (_root.minsize < this[i].getBytesTotal())) && (loadedFlag[i] == 1)) {
this.loaded2(i);
}
i++;
}
}
}
Instance of Symbol 68 MovieClip "pv_titles" in Frame 1
onClipEvent (enterFrame) {
if (dataNum != 0) {
i = 0;
while (i < dataNum) {
if (((this[i].getBytesTotal() == this[i].getBytesLoaded()) && (_root.minsize < this[i].getBytesTotal())) && (loadedFlag[i] == 1)) {
this.loaded2(i);
}
i++;
}
}
}
Frame 3
if (_framesloaded < _totalframes) {
this.gotoAndPlay("loop1");
}
Frame 4
end = "notYet";
this.loadVariables(datfile);
Frame 5
trace("Waiting load datafile.");
Frame 6
if (end == "notYet") {
this.gotoAndPlay("init2");
}
Frame 7
dataNum = number * 1;
trace(("loaded! The data has@" + dataNum) + " content(s)");
if (bgColor == undefined) {
bgColor = 16743936 /* 0xFF7E00 */;
} else {
bgColor = parseInt("0x" + bgColor);
}
i = 0;
while (i < dataNum) {
_root.isNew[i] = eval ("new_flag" + i) == 1;
i++;
}
_root.type.setTypeIcon(dataNum);
i = 0;
while (i < dataNum) {
doc[i] = eval ("doc" + i);
_root.dodai.loadTitleSwf(i);
i++;
}
Frame 9
temp = 0;
i = 0;
while (i < dataNum) {
if (_root.dodai.isLoaded(i) == true) {
temp++;
}
i++;
}
if (temp != dataNum) {
this.gotoAndPlay("loop2");
}
Frame 10
this.pv_titles.setPvTitle(dataNum);
i = 0;
while (i < dataNum) {
this.pv_titles.preLoad(i);
i++;
}
Frame 12
temp = 0;
i = 0;
while (i < dataNum) {
if (_root.pv_titles.isLoaded(i) == true) {
temp++;
}
i++;
}
if (temp != dataNum) {
this.gotoAndPlay("loop3");
}
Frame 13
_root.bigLoading.disappear();
_root.startSelect();
_root.dodai.setMaxY(dataNum);
_root.dodai.setMoveFlag(true);
_root.preLoadSum.preLoadSum(dataNum);
i = 0;
while (i < dataNum) {
_root.preLoadSum.preLoad(i);
i++;
}
Frame 14
if (_root.preLoadSum.isLoaded(nowNumber)) {
_root.preLoadSum.putPicture(nowNumber);
}
_root.dodai[nowNumber].onOff(true);
_root.pv_titles.putPicture(nowNumber);
Frame 15
this.gotoAndPlay("start");
Symbol 3 MovieClip [stage] Frame 1
function putPicture(url) {
this.stage.loadMovie(url);
}
Symbol 3 MovieClip [stage] Frame 4
this.gotoAndPlay("start");
Symbol 30 Button
on (release) {
_root.clicked(this._name);
}
on (rollOver) {
_root.overed(this._name);
this.onOff(true);
}
on (rollOut) {
_root.outed(this._name);
}
Symbol 31 MovieClip [button1] Frame 1
function onOff(flag) {
this.overGraphic._visible = flag;
}
Instance of Symbol 29 MovieClip "overGraphic" in Symbol 31 MovieClip [button1] Frame 1
onClipEvent (load) {
this._visible = false;
myColor = new Color(this);
myColor.setRGB(_root.bgColor);
this._alpha = 30;
}
Symbol 36 Button [button0]
on (release) {
_root.clicked(nowNumber);
}
Symbol 46 MovieClip Frame 7
this.gotoAndPlay("start");
Symbol 50 Button
on (release) {
_root.dodai.setMove(-1);
}
Symbol 52 MovieClip Frame 1
function onOff(flag) {
if (flag) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 51 MovieClip in Symbol 52 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.mode);
trace(_root.mode);
}
Symbol 53 Button
on (release) {
_root.dodai.setMove(1);
}
Symbol 55 MovieClip Frame 1
function onOff(flag) {
if (flag) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 54 MovieClip in Symbol 55 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.mode);
trace(_root.mode);
}
Symbol 62 MovieClip Frame 1
this.stop();
Symbol 63 MovieClip Frame 1
function change(num) {
j = 0;
while (j < 6) {
this[j].gotoAndStop(hyoujiArray[num][j]);
this[j]._y = 0;
j++;
}
}
function setTypeIcon(num) {
i = 0;
while (i < num) {
hyoujiArray[i] = new Array();
j = 0;
while (j < 6) {
hyoujiArray[i][j] = typeArray[15];
j++;
}
x = 0;
j = 0;
while (j < 6) {
var temp = eval (("_root." + typeArray[j]) + i);
if (temp == 1) {
hyoujiArray[i][x] = typeArray[j];
x++;
}
j++;
}
i++;
}
}
typeArray = [];
typeArray[15] = "dummy";
typeArray[0] = "adult";
typeArray[1] = "saveable";
typeArray[2] = "violence";
typeArray[3] = "nb";
typeArray[4] = "broadband";
typeArray[5] = "accounting";
hyoujiArray = new Array();
Symbol 65 MovieClip Frame 1
function preLoadSum(num) {
dataNum = num;
trace("Start preload Sumnail");
i = 0;
while (i < dataNum) {
this.attachMovie("stage", i, i);
this[i]._x = -200;
this[i]._y = 400;
i++;
}
}
function preLoad(num) {
name = eval ("_root.url" + num) + "/preview.swf";
trace("loading..." + name);
loadedFlag[num] = 1;
this[num].loadMovie(name);
}
function isLoaded(num) {
return(loadedFlag[num]);
}
function putPicture(num) {
i = 0;
while (i < dataNum) {
this[i]._visible = false;
if (loadedFlag[i] and (i == num)) {
this[i]._visible = true;
}
i++;
}
}
function loaded(string) {
}
function loaded2(string) {
num = string * 1;
target = eval ("_root.url" + num) + "/preview.swf";
trace(((("Loaded " + num) + " (") + target) + ")");
this[num]._visible = false;
loadedFlag[num] = 2;
this[num]._x = 0;
this[num]._y = 0;
}
dataNum = 0;
loadedFlag = new Array();
Symbol 65 MovieClip Frame 2
this.stop();
Symbol 67 MovieClip Frame 1
function loaded(string) {
}
function loaded2(string) {
n = string * 1;
target = eval ("_root.url" + n) + "/title-s.swf";
trace(((("Loaded " + n) + " (") + target) + ")");
loadedFlag[n] = 2;
}
function loadTitleSwf(num) {
dataNum = _root.dataNum;
this.attachMovie("button1", num, (num * 3) + 1);
this[num]._x = 0;
this[num]._y = num * dis;
loadedFlag[num] = 1;
dodaiName = "dodai" + num;
target = eval ("_root.url" + num) + "/title-s.swf";
this.attachMovie("titles", dodaiName, num * 3);
this[dodaiName]._x = 0;
this[dodaiName]._y = num * dis;
trace("loading..." + target);
this[dodaiName].loadMovie(target);
if (_root.isNew[num]) {
this.attachMovie("GrNew", "GrNew" + num, (num * 3) + 2);
this["GrNew" + num]._x = 0;
this["GrNew" + num]._y = num * dis;
}
}
function isLoaded(num) {
if (loadedFlag[num] == 2) {
return(true);
}
}
n = 0;
dataNum = 0;
loadedFlag = new Array();
dis = 20;
function calc1() {
var rad;
var fx;
rad = (y - effectStartY) / (targetY - effectStartY);
fx = rad;
return((dis * direction) * fx);
}
function setMoveFlag(flag) {
moveFlag = flag;
if (flag) {
this.gotoAndPlay("start");
}
}
function setMaxY(num) {
maxNum = num - 9;
}
function setMove(num) {
if ((direction == 0) and canISetNewTargetY(num)) {
direction = num;
nowNum = nowNum - num;
targetY = targetY + (num * dis2);
}
}
function setLinearMove(num) {
linerMove = num;
}
function move() {
if (this.canImove(step * direction) and (direction != 0)) {
y = y + (step * direction);
this._y = (startY + effectStartY) + calc1();
} else {
direction = 0;
effectStartY = y;
this._y = startY + y;
}
}
function canImove(num) {
if (!moveFlag) {
return(false);
}
if ((num < 0) and ((y + num) < targetY)) {
return(false);
}
if ((0 < num) and (targetY < (y + num))) {
return(false);
}
return(true);
}
function canISetNewTargetY(num) {
return(((-(num - nowNum)) < maxNum) and ((-(num - nowNum)) >= 0));
}
(dis2 = 20);
(step = 10);
(y = 0);
(moveFlag = false);
(maxY = 0);
(startY = this._y);
(targetY = 0);
(direction = 0);
(linerMove = 0);
(nowNum = 0);
effectY = 0;
effectStep = Math.floor(dis2 / step) + 1;
Symbol 67 MovieClip Frame 2
this.stop();
Symbol 67 MovieClip Frame 3
if (linerMove != 0) {
this.setMove(linerMove);
}
this.move();
_root.debug = (("direction:" + direction) + " targetY=") + targetY;
_root.debug = _root.debug + (((((((" y=" + y) + " lineMove=") + linerMove) + " 0<=") + nowNum) + "<") + maxNum);
Symbol 67 MovieClip Frame 4
this.gotoAndPlay("start");
Symbol 68 MovieClip Frame 1
function setPvTitle(num) {
dataNum = num;
trace("Start preload pv_titles");
i = 0;
while (i < dataNum) {
this.attachMovie("stage", i, i);
this[i]._x = 400;
this[i]._y = i * 20;
i++;
}
}
function preLoad(num) {
name = eval ("_root.url" + num) + "/title.swf";
trace("loading..." + name);
loadedFlag[num] = 1;
this[num].loadMovie(name);
}
function isLoaded(num) {
return(loadedFlag[num] == 2);
}
function putPicture(num) {
i = 0;
while (i < dataNum) {
this[i]._visible = false;
if (loadedFlag[i] and (i == num)) {
this[i]._visible = true;
}
i++;
}
}
function loaded2(string) {
num = string * 1;
target = eval ("_root.url" + num) + "/title.swf";
trace(((("Loaded " + num) + " (") + target) + ")");
this[num]._visible = false;
loadedFlag[num] = 2;
this[num]._x = 0;
this[num]._y = 0;
}
dataNum = 0;
loadedFlag = new Array();
Symbol 68 MovieClip Frame 2
this.stop();
Symbol 69 Button
on (rollOver) {
_root.dodai.setLinearMove(-1);
}
on (rollOut) {
_root.dodai.setLinearMove(0);
}
Symbol 80 MovieClip Frame 1
function putText(string) {
document = string;
}
Symbol 80 MovieClip Frame 4
this.gotoAndPlay("start");
Symbol 81 Button
on (rollOver) {
_root.dodai.setLinearMove(1);
}
on (rollOut) {
_root.dodai.setLinearMove(0);
}