Frame 1
function getChar(i) {
if (strings[i] == newline) {
Str = strings[i];
} else if (strings[i] == " ") {
Str = strings[i];
} else if (strings[i] == "@") {
Str = strings[i];
} else {
oto.attachSound("jan");
oto.start(0, 1);
Str = strings[i];
}
}
stop();
stageX = 460;
stageY = 300;
strcnt = 0;
lineCnt = 1;
maxlength = 0;
strings = new Array();
inputStr = unescape(inputStr);
if ((inputStr == null) || (inputStr == "")) {
inputStr = "ƒ‹ƒpƒ“ŽO¢•—\nƒ^ƒCƒgƒ‹ƒ[ƒJ[I";
}
i = 0;
while (i < inputStr.length) {
strings[i] = inputStr.substr(i, 1);
if (strings[i] == newline) {
lineCnt++;
}
i++;
}
nowlength = 0;
i = 0;
while (i < strings.length) {
if (strings[i] == newline) {
if (maxlength < nowlength) {
maxlength = nowlength;
}
nowlength = 0;
} else {
nowlength++;
}
i++;
}
if (maxlength < nowlength) {
maxlength = nowlength;
}
if (maxlength == 0) {
maxlength = strings.length;
}
maxlength++;
oto = new Sound(this);
music = new Sound(this);
gotoAndStop (4);
Frame 4
if (strings.length < strcnt) {
gotoAndPlay (20);
} else if (Math.round(Math.random())) {
gotoAndPlay (8);
} else {
gotoAndPlay (15);
}
Frame 13
oto.stop();
Frame 14
getChar(strcnt);
strcnt++;
gotoAndStop (4);
Frame 19
oto.stop();
getChar(strcnt);
strcnt++;
gotoAndStop (4);
Frame 21
w = stageX / maxlength;
h = stageY / lineCnt;
if (maxlength >= lineCnt) {
fontsize = w;
StartX = 0;
StartY = (stageY / 2) - (fontsize * (lineCnt / 2));
} else {
fontsize = h;
StartX = (stageX / 2) - (fontsize * (maxlength / 2));
StartY = 0;
}
splitStr._visible = false;
i = 0;
while (i < strings.length) {
if (strings[i] == newline) {
y++;
Xposition = StartX;
Lcnt = 0;
} else {
if (maxlength >= lineCnt) {
Xposition = Xposition + fontsize;
Yposition = StartY + (fontsize * (y + 1));
} else {
Xposition = StartX + (fontsize * Lcnt);
Yposition = fontsize * (y + 1);
}
nm = "splitStr_" add i;
duplicateMovieClip ("_root.splitStr", nm, i + 1);
setProperty(nm, _x , Xposition);
setProperty(nm, _y , Yposition);
setProperty(nm, _width , fontsize);
setProperty(nm, _height , fontsize);
eval (nm).string = strings[i];
Lcnt++;
}
i++;
}
music.attachSound("last");
music.start(0, 1);
Frame 58
stop();