time = 0; function onEnterFrame() { if (getTimer() > time) { loadVariablesNum(); time = getTimer() + 10000; } }