Frame 2
function runcycle() {
var _local2 = _root.noway._currentframe;
var _local3 = _root.noway._totalframes;
_local2++;
if (_local2 >= _local3) {
_local2 = 1;
}
_root.noway.gotoAndStop(_local2);
}
function startup() {
if (intMain == undefined) {
if (targetFPS == undefined) {
targetFPS = 60;
}
frame_interval = 1000 / targetFPS;
FPS = "FPS:";
var _local1 = new Date();
_local1.getDate();
lasttime = _local1.valueOf();
onesecondago = lasttime;
slacktime = 0;
gamecyclesperformed = 0;
framesdrawn = 0;
cyclesrun = 0;
cyclesrejected = 0;
intMain = setInterval(doframe, 1);
}
}
function doframe() {
var _local5 = new Date();
_local5.getDate();
thistime = _local5.valueOf();
var _local4 = thistime - lasttime;
if (_local4 < 0) {
_local4 = 0;
}
var _local2 = int(_local4 / frame_interval);
var _local6 = 0;
if (_local2 == 0) {
cyclesrejected++;
return(undefined);
}
if (_local2 > 6) {
_local2 = 6;
lasttime = thistime;
} else {
lasttime = lasttime + (_local2 * frame_interval);
_local6 = thistime - lasttime;
}
var _local3 = thistime - onesecondago;
if (_local3 < 0) {
_local3 = 0;
}
var _local1;
_local1 = 0;
while (_local1 < _local2) {
runcycle();
cyclesrun++;
_local1++;
}
framesdrawn++;
if (_local3 >= 1000) {
onesecondago = thistime;
FPS = (("FPS: " + framesdrawn) + "/") + cyclesrun;
framesdrawn = 0;
cyclesrun = 0;
}
updateAfterEvent();
}
startup();
stop();
Frame 3
stop();
Symbol 21 MovieClip Frame 1
stop();