[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (518 B)
if (started == undefined) {
cover.useHandCursor = false;
mmm = 0;
lastframe = getTimer();
multiplier = 1;
onEnterFrame = function () {
nu = getTimer();
mmm = mmm + (nu - lastframe);
lastframe = nu;
nuvarandeFrame = _currentframe;
while (mmm >= (36.5 * multiplier)) {
nuvarandeFrame++;
if (nuvarandeFrame == 52) {
nuvarandeFrame = 1;
}
mmm = mmm - (36.5 * multiplier);
}
gotoAndStop(nuvarandeFrame);
cover.gotoAndStop(nuvarandeFrame);
};
started = true;
}
Instance of Symbol 7 MovieClip "cover" in Frame 1 (324 B)
on (keyPress "<Space>") {
this._alpha = ((this._alpha > 50) ? 0 : 100);
}
on (keyPress "<Down>") {
if (_parent.multiplier < 32) {
_parent.multiplier = _parent.multiplier * 2;
}
}
on (keyPress "<Up>") {
if (_parent.multiplier > 0.03125) {
_parent.multiplier = _parent.multiplier * 0.5;
}
}