
Код AS1/AS2:
var id:Number;
function initEmulationLoad () {
if (_currentframe != _totalframes) {
nextFrame ();
var time:Number = Math.floor (Math.random () * (2000 - 100)) + 100;
id = setTimeout (this, "initEmulationLoad", time);
}
}
initEmulationLoad ();