home *** CD-ROM | disk | FTP | other *** search
- function callDelayed(r, f, d, oe)
- {
- r.f2call = f;
- r.delay = d;
- r.oe = oe;
- r.callStart = getTimer();
- r.onEnterFrame = function()
- {
- if(getTimer() - this.callStart < this.delay)
- {
- return undefined;
- }
- var o = this.f2call[0];
- o.t[o.f](o.a);
- this.f2call.shift();
- this.callStart = getTimer();
- if(this.f2call.length == 0)
- {
- oe.t[oe.f]();
- delete this.onEnterFrame;
- delete this.delay;
- delete this.callStart;
- delete this.f2call;
- }
- };
- }
-