Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




SetInterval Timing



I've been reading this forum and I get that the impression that this subject has been flogged to death. So I apologise to anyone who's now irritated by this, however the posts I've read don't resolve my issue.

In my game a series of explosions occur which are invoked by a function called at 1000ms interval using setInterval. This is so that the detonations are nicely spaced out in time. Sometimes the interval is perfect, but occasionally detonations occur immediately - there is less than 1000ms (or sero) gap.

I'm not sure if this is down to the accuracy of setInterval. I printed out times in a similar fashion to other users of setInerval on this forum and there is a drift of a few ms. This I can cope with. Unfortunately, it seems that there is a drift of the order of 1000ms between explosions.

Again I apologiese if this is a regular question, but no posts seem to explain my problem. I tried called updateAfterEvent() after the setInterval function...but no improvement. Perhaps someone could shed some light on this problem.

Thank you for your time.

Thomo.



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 06-13-2006, 09:44 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

SetInterval...but With Flexible Timing?
Hi there,
My question is this: "Is it possible to have a setInterval fuction with a dynamic timing?"

F.e. the first time the interval calls the function, timing is set at 100 milliseconds, the second time it runs the timing is set at 110 milliseconds...and gradually the functioncalls go slower and slower.

In all setInterval questions I have read on this forum it is always a fixed amount of time that the function is called.

I put my code in below. Short explanation: I am combining the setInterval to a onEnterFrame function to avoid the effects of framerate. Something I got from one of these forums too I believe. I am not sure where an how I could 'refresh' the rate the setInterval is running...


Does this make sense to anybody?

Cheers
Merkske


Code:
function setHolder() {
this.createEmptyMovieClip("mcHolder", 0);
mcHolder.createEmptyMovieClip("myMC", this.getNextHighestDepth());
}
setHolder();
this.pArray = ["png.00", "png.01", "png.02", "png.03", "png.04", "png.05", "png.06", "png.07", "png.08", "png.09", "png.10", "png.11"];
var fps = 100;
pIndex = 0;

function setPic() {
mcHolder.myMC.removeMovieClip();
if (pIndex<=pArray.length-1) {
var mcWindow = this.attachMovie(pArray[pIndex], "mcHolder.myMC", 2);
pIndex++;
fps = fps*0.95;
} else {
pIndex = 0;
var mcWindow = this.attachMovie(pArray[pIndex], "mcHolder.myMC", 2);
pIndex++;
trace (timing(fps))
}
}
faster_btn.onRelease = function() {
fps += 10;
};
this.onEnterFrame = function() {
setPic();
updateAfterEvent();
};
id = setInterval(this, "onEnterFrame", 1000/fps);
stop();

Problem With SetInterval Timing
Hello all,

I'm trying to get a duplicated clip to fire off at offset times... I'm trying to use setInterval, but they're all firing at the same time. Here's what I've got:


ActionScript Code:
i = 0;
max = 5;
 
function delay(clip){
    trace("<==Playing " + clip + "==>");
    intervalID2 = setInterval (clip.play(), 2000);
}
function dupMovie(){
    color = new Array("FFFFFF", "777700", "448800", "3377FF", "FFFF00");
    duplicateMovieClip(mcBoom, "mcBoom"+i, i);
    this["mcBoom"+i]._x = random(504);
    this["mcBoom"+i]._y = random(140)-70;   
    //intervalID = setInterval( delay(this["mcBoom"+i]),1000);
    thiscolor = "0x"+color[random(max)];
    myColor = new Color(this["mcBoom"+i]);
    myColor.setRGB(thiscolor);
    clearInterval(intervalID);
}
while(i < max){
    dupMovie();
    i++;
}


How in the world do I make it so they don't all start playing at the same time????

This script is doing everything I want it to do except play them at random times....

Thanks!

Can You Change SetInterval Timing After It Begins?
Hi all, quick question...

Once you start an interval with setInterval, is it possible to vary the time as it runs each interval?

I know that seems like it defeats the purpose. I like the idea that it does something every *given* period of time, but why does that given period of time have to be hardcoded?

I've tried, but can't seem to figure out how to change it on the fly short of clearing and resetting the interval at a different rate each time I want it to change.

Here's why I wonder:
I have a slideshow that transitions between images every x-milliseconds. Right now, that number is 6000. But I've added the ability to add captions. The caption for one picture might only be 50 characters while the next could be up to 200 characters. So people need time to read the longer ones.

I want to extend the length of time between intervals based on the length of the caption. So if I have setInterval running, I want to say "this next picture has a long caption of 150 chr, make the interval 10000 instead".

So set interval would use a variable newInterval or something instead of the hardcoded "6000". But how do you make the setInterval that's already running SEE that you've changed the value of newInterval??

Right now, I setInterval on startup within a function. The interval calls the "load a new jpg" function where I also do the test to see how long the caption is. At the same time, I tried to set newInterval to extend the time based on caption length, but it is as if the setInterval only reads the first value when it begins and sticks to it no matter what I change it to.

Any ideas? I can post my code... It's more of a logic thing I'm looking for though, not a giant impressive block of code. THANKS EVERYONE!

Jessica

[timing] Function Timing - Delay In Script
Hi all,

Back again to find help provided by helpfull flashers

Right now i have the following script


PHP Code:



var speed = 20;
MovieClip.prototype.slideIt = function(whereX) {
    this.onEnterFrame = function() {
        this._x += (whereX-this._x)/speed;
        if (Math.abs(this._x-whereX)<1) {
            this._x = whereX;
            delete this.onEnterFrame;
        }
    };
};

green.onRollOver = function() {    
    blue.slideIt(520);
    red.slideIt(550);
};
green.onRollOut = function() {
    blue.slideIt(193);
    red.slideIt(386);
}; 





What i want to do is pretty simple, i want the onRollOver to be delayed for a few seconds before it runs the slideIt script.

I searched on kirupa for similar actions and found this

http://www.kirupa.com/forum/showthread.php?t=47450

but how can i implement this in my own script ? tried a few things but all it does is either nothing or even more nothing ...

Need some help on this - Thanks in advance

Publish Timing V/s Working Timing
I have a question.....when I am working in flash MX and I am modifying a purchased flash site I did some changes to it and it works well.
I added music and modified the thest animations to go with the music and all looks well but when I publish it and see it on the web it is all out of sync????
Why does the syncronization change from my working movie to my published movie ????

Now I also did some more editing to my movie / web and on when I am in FLASH MX all works well and looks good but when I save as a movie and view it as the .swf file all the text animations are gone ????
But it looks fine while in the actual flash program.......

Anybody got any advise ?????

Custom Objects And Internal SetInterval Loops -> A Problem Stopping The SetInterval
Let's say I had a class like this:


PHP Code:



var someVar = new Widget();

function Widget() {
    // Some variables, etc...
    this.int_someCommand = 0;
    // Activate the function on instantiation
    this.someCommand();
};

Widget.prototype.someCommand = function() {
    clearInterval(this.int_someCommand);
    this.int_someCommand = setInterval(this, 'someCommandLoop', 50);
};
Widget.prototype.someCommandLoop = function() {
    trace("THIS IS A WIDGET LOOP!");
}; 




...now, I was always under the impression that if you delete an object in Flash, the setInterval loops associated with it would die as well. But when I try to:


PHP Code:



// At some other point in my timeline...
delete someVar; 




or:


PHP Code:



someVar = new Object(); 




...the original loop is still running (I can tell just by reading the trace). How do I go about properly terminating a setInterval loop inside an Object without having to call a clearInterval()? Or is a clearInterval() the only way?

Thanks.

Tween Class, Does It Use Setinterval? Getting Strange Setinterval Type Problem
I have a gallery with small thumbnails. Upon clicking a thumbnail, I am using the Tween class to pull clips from an array and fade them between each other, loading the clips into a container.

When I click the thumbnail it loads the .swf fine and plays the Tween Class animation just as it's supposed to, however if I click any other thumbnail and go back to that first one the timing gets totally screwed up and the fades get jittery and overlap each other, much like it does with setInterval if you don't clear the intervals.

Is there a way to clear the Tween Class? Does it's timer run on setInterval?


This is the code I am using for the tween class


Thanks!


Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;

//content movieclips put into an array
var mcArray:Array = new Array(content1, content2);
for (var k in mcArray) {
mcArray[k]._alpha = 0;
}

// tween class has something called "OnEnterFrameBeacon" and it is added to the stage
// when we import the as file, so I wanted to get rid of it.
var n:Number = 0;

function playFades() {
if (n<mcArray.length) {
var tween_handler1:Object = new Tween(mcArray[n], "_alpha", Strong.easeIn, 0, 100, 1, true);
tween_handler1.onMotionFinished = function() {
//trace("motion finished by "+mcArray[n]);
//n++;
var tween_handler2:Object = new Tween(mcArray[n], "_alpha", Strong.easeIn, 100, 0, 3.5, true);
tween_handler2.onMotionFinished = function() {
//trace("motion finished by "+mcArray[n]);
n++;
playFades();
};
};
} else {
n = 0;
playFades();
}
}
playFades();

Timing Please Help
Can someone who knows please tell me how to stop my Flash Projector from playing differently on different computers with a song type video.

I basically have a 5+ minute song with picture transitions throughout timed exactly correct (at least I thought) but when played on different computers with different processors it is all off.

sound like something i cant fight B U T I have seen projector files that play perfectly on everyone's systems so YOU GURUS KNOW how to prevent this difference....

can you clue me in?

tv

Timing
Hi,

Is there someone who can help me... Please...

I'm in a scene 'A', and I would like that after a few seconds, I go in a scene 'B'. How can make it to test the few seconds... ?

Thanks for your help, big kisses!


Calamina...
[Edited by calamina on 12-20-2001 at 07:51 AM]

Timing
How do I make flash wait for a specified amount of time before continuing actions?

Timing
Greetings,

I have a certain MC called lightning, and what I want it to do is to wait a certain time, each time for playing. So it's like what 3 seconds, then the movieclip plays, then wait another 3 second, and the movie to play again. How would I go about doing that?

Thanks

Timing
I want to allow some of the editors where I work to enter in certain things that will load into the flash file.

They will be using a broswer form, that will create an xml file that will store easy things like headline, graphic, blurb text, URL, etc. BUT....

I would like for them to be able to take predefined animation, say a slide form left to right, or a fade in or fade out.... and be able to set the speed. Is there a way to do this.... so instead of just plopping a jpg into a movieclip that fades from 0 to 100 across 30 frames.... they could admisinster, say, 6 seconds. The xml would pass me 6 seconds, I would multiple my frame rate to get the frame number.... and then, how to I actually make that fade tween or motion tween extent to the new length of time/frame? Can't figure it out.

I don't just want to set a postion or alpha... and I don't want it to dynamically follow a mouse or some get property.... I just want to change how fast it happens.

Thanks in advance.
Coffee Cat

Mc Timing
Hi there, quick question...

I have an main .swf on my website that loads and unloads a bunch of smaller .swfs as the movie plays (I did this to cut down the time it took to load up the site). On both my computer and another I tried, it works fine but on a friend's computer the .swf's loaded too slowly & unloaded too quickly - it looked terrible. Is there a way to make all the computers happy?

miz k.

Timing
Hey people! I'm sure this question has been asked a million times, but I can't find it anywhere. How do I keep the timing up to date with the music in my movies? With the update() command? And if so, how do I use it properly?

If you know where the answer to this question is, if you could direct me to it, or answer it, it would be greatly appreciated. Thanks in advance.

Timing
hey all!
i have a button that activate a clip(within the button-a rollover).
i have 26 button that sit one on top the other.
i want the button to activate the rollover and stay for 1 second or less and move on...
timing the button or something like that.
Thanks for any help.

Timing
How do you run function after so many seconds
like if I had a button that would call a function, how would I make it work so the function works after a few seconds after the button is clicked?

Timing
Hi everyone. I'm trying to make a timer for a game I'm making but I'm not quite sure how to do it.

i know how to alter dynamic text but I'm unsure how to alter it depending on the time. I want each level or round to last a set time and when it gets low on time, the time turn red in colour. I can work most of it out but is there a handler for seconds if so, I'm not sure how to do it.

Please help.

thanks.

Timing
i have a movie loading into the 'shell' of a presentation. but my problem is the movie that gets loaded into the shell it plays slower. when i run it in the flash environment, everything works fine. but when i view it through explorer the loaded movies play slower.

this will end up on a cd. is there anyway of publishing the project not using explorer, or a way to publish it so it will behave exactly as though it was played in the flash environment?

thanks for any help.

Timing
I want flash to time for x amount of seconds then it will do what I want.
Thanx

Timing
why is it that when i load animations in seperate MC's into a maintime line...that the timing is all slowed down...can someone please let me know..

when I publish the MCS by them self...the timing is right...but when I load them into another timeline...there slow right down and miss the event sounds i have used...

I ensured that all the frame rates are the same....

what am i doing wrong...

goto

http://www.vibegraphics.ca/GUTS/Page-Console.html

you will see what im talkin about with the spray paint on the top right corner

thanks,

Help Regarding Timing
Hi,

Im completely new to flash and have made a movie here.

The problem I've got is that it works fine at times but at other times the synchronisation between movements and music goes out completely.

The events get quicker and quicker until the music is a couple of seconds out. As mentioned above - it works perfectly at times.

I'm using 3DFA which I've noticed doesn't exactly get rave reviews on here but I bought it before checking out.

Am I doing something stupid?

Cheers

Paul

Timing...
Hi!
I want a script that says this:
if you haven't pressed the button in 2 sec gotoAndPlay(2);
but if you did gotoAndPlay(10);

but I can't figure out a way to make the time work!
Please help me

Flv And Swf Timing
Hello. I have a rather large vid which I have imported into my SWF dynamically using the FLV playback componenet. What I am looking to do is display some text in my original SWF during certain points in the movie. since the FLV is not on the actual timeline and will buffer differently on different machines, does anyone know of a way to time those messages (in the parent SWF) precisely with the proper points in the flv?

appreciate any help. Embedding the video is not an option since the qulaity needs to be retained as much as possible and they are very large (about 5mb).

[FMX]Timing AS
Hey all, ive always browsed kirupa forums but never actually been a member(a sin?). Thought its time for me to break into the scene so to speak.

I have a question for all the uber flash gurus out there and i have tried searching the forums for my answer but i wasnt actually sure what i should be looking for. I was wondering if there is anyway to pause between lines of code.

The situation i am in at the moment, i am building a small portfolio for my multimedia class and skill level is above everyone else in the class and i think the lecturers were just expecting some easy motion tweens and working buttons but i decided to make it a bit of a project to build a whole new portfolio using as much actionscript as i could.

I have built prototype functions for moving an MC on x axis and y axis with easing. Simple enuff but i cant work out how do one after the other.


Code:
on(release) {
_root.box.moveX(200, 2);
_root.box.moveY(200, 2);
}
Nothing happens if i have both in the button, i was thinking that i could do a loop and just check where the object that i am moving is at but thought that would be long way of doing it. There must be a way to not go onto another line of code UNTIL the other one has finished...just how? o.O

Thanks.

Timing
Hi,

how can you configure that on clik of a button, movieclip load after lapse of 3 seconds ?

Thanks

Timing Help
Ok. I made the game. Look in attachment. The timer doesn't seem to be working for me. And when starting the gme the cards are shown for only few seconds. I want to make the cards bigger also how do i do this with script.

Timing
ei guys...i have this effect similar to www.lennykravitz.com wherein when you click a button it goes to a certain square...what my prob is how to make the loaded movie (.swf) play exactly after the square (or part of a picture, in my case) moves into its rightful place...so that my loaded .swf won't play immediately while the action is in the middle of its animation...

[FMX]Timing AS
Hey all, ive always browsed kirupa forums but never actually been a member(a sin?). Thought its time for me to break into the scene so to speak.

I have a question for all the uber flash gurus out there and i have tried searching the forums for my answer but i wasnt actually sure what i should be looking for. I was wondering if there is anyway to pause between lines of code.

The situation i am in at the moment, i am building a small portfolio for my multimedia class and skill level is above everyone else in the class and i think the lecturers were just expecting some easy motion tweens and working buttons but i decided to make it a bit of a project to build a whole new portfolio using as much actionscript as i could.

I have built prototype functions for moving an MC on x axis and y axis with easing. Simple enuff but i cant work out how do one after the other.


Code:
on(release) {
_root.box.moveX(200, 2);
_root.box.moveY(200, 2);
}
Nothing happens if i have both in the button, i was thinking that i could do a loop and just check where the object that i am moving is at but thought that would be long way of doing it. There must be a way to not go onto another line of code UNTIL the other one has finished...just how? o.O

Thanks.

Little Help With Timing
Hi folks, I'm working on a site, and i got stuck with the first item - the preloader.
I want it to play some kind of animation once when the bar reaches set position(different animations for diferent positions, each in +1 frame of mc).
i got in my script going like :

if(percent == 20)
{
anim_mc.gotoAndStop(2);
}

and it works when tested localy, but online the counter might skip from say 19 to 24 %, and the animation don't get displayed. Can anyone think of a way to solve this?

Cheers

TIming, TIming, Timing
I've been trying for weeks to make a banner for one of my sites where words appear in time with the music playing underneath. I admit, this is my first time using Flash. I sought advice from a friend and he suggested a preloader, which I applied but to no avail!
After the months I have spent waiting for permission to use the music and then putting it all together, it is becoming very frustrating.
The preloader doesn't even appear to work on the server even though it did on my test run.

My first .swf

Any advice would be greatly appreciated. Many thanks in advance.

Set Timing?
hi people.

i need a little help

i will write the "idea" of what i need, (with normal language) and please somebody tell me wich would be the right script for that:

action:

if timer > # sec.
do something


i need to set a "time control" , and when # seconds, for example 30 secs. do something.


thanks in advance.

LaYeR

NAVIGATION And TIMING?
I have a roll-over drop down menu. But I want the menu to disappear if the person decides that they do not want to switch to another page. An example of what I am poorly trying to talk about is : "WWW.EMERILS.COM".

Also, I want my navigation [flash] to coordinate with the HTML text below - so that when the HTML page loads up the user can see where they are [and have been] in the menu.

Can anyone help?

Matt Griswold
mrjengals@prodigy.net

Timing Problems
Ello' 'der

I've been working on a project and have worked out many presentation problems, but I've hit a block...

Each section of my movie has it's own background that slides in. This was sucking CPU power, but I reduced this problem with help on a nother thread. I came up with a new idea to help this along. There is another movie that plays while the background is moving. How would I delay this movie clip from running till after the background finishes sliding. The background is based on actionscript, so it's not as simple as just modifying a layer's script.

If any one has any good ideas let me know....

Random Timing(?) &*#$%@
Basically, to cut a long story short, i have a little game in which i'm making these two MCs (g1 and g2 instance names) randomly appear on the stage, and then you knock them over their heads to get points. (sounds pretty lame, i know ;-))
Now the considerations that are popping my brain cells are:
1. The MCs must never appear at the same exact time.
2. The MCs x and y coordinates are constant. They appear in the exact same place everytime.
I'd seriously appreciate any advice or info or source code.
Thanks!

Random Timing (#$%@&)
Basically, i have a little game in which i'm making these two MCs (g1 and g2 instance names) randomly appear on the stage, and then you knock them over their heads to get points. (sounds pretty lame, i know ;-))
These are the considerations that are giving me trouble:
1. The MCs must never appear at the same exact time, but still be appear at random intervals.
2. The MCs x and y coordinates are constant. They appear in the exact same place everytime.
I'd seriously appreciate anykind of advice.
Thanks!

Timing Problem...
when i tried using get date, get hours and such, i get a GMT+0900 time... but my computer is using a GMT+0800 time. why is this so? will it use a standard of GMT+0900 on all computers? this kind of screws up my countdown to a certain time, since the time on the countdown will reach 0 while my computer tells me it is still one hour away...

Timing A Movie
i need a script that plays a movie in random times.
details, i have movie x.swf loaded into my main movie. movie x.swf is empty on the first frame with a stop action in it. what i need is a script that tells this movie to play every x amount of time. any ideas?

thanks

Timing For Music
How do you make sure a certain event happens at the right time,

for example if there were 3 drum hits in a row in a song and you wanted the pic to change right on it?

thanks for any help

Why Is Timing Of When I Publish?
I am making a music video of sorts.
Therefore, timing is very important because things need to haapen on audio cues. When I press F12, everything is timed perfectly. However, when I publish and view the SWF file by double clicking it, the timing is off. Which one is correct and why are they different? How do I standardize it?

Gracias

Timing Problem
Hi

How can I solve this problem using gettimer?

http://www.preferredfreezer.com/flash/index.html

What I want to happen is for the text to start fading out towards the end of the 8 seconds and then the new text just drop in.

I am using gettimer to stop the movie every frame for 8 seconds then some dynamic text is loaded in. I have a fade movie clip which is timed at 7.5 second alpha 0, and 1 second fade to make a total of 8.5 seconds as I have my frames positioned .5 seconds apart.

How can I make sure that the fade keeps in time with the rest of the movie????

PS - no comments on the Polar Bear - Clients again

Tye

Delayed Timing
Right now I am using a movie to fire off 8 smaller movies 1sec apart in a wave. The main movie plays for 12 frames, tells smallmovie1 to play, plays another 12 frames and tells smallmovie2 to play, and so on. Is there a way to do this with code rather than placing these smaller movies inside a bigger one?

thanks,
greg

Music Timing
The music I'm playing in the background needs to be timed with the images I have flashing. When I test in the browser it looks like where I want it, but when I test in the player or play the scene, the images come in late about 40 frames. Which test should I go by?

Timing Code
Hi I am using Flash Mx and have a menu with some buttons on it that I would like to disable (using the enabled=false; command) but I only want to diable them for about 10 seconds. I use the old way of having a movieclip turn them off for about 40 frames but now I'd like to do it all in actionscript. Something involving SetInterval maybe??? Can someone please help me with the code - thanks in advance. I have a deadline. HELP.


Peter

Timing Options
I am building an interactive in Flash MX and I would like to make the projector go back to the main start screen if the mouse has been inactive for a certain amount of time. Does Flash have an internal clock or something I could utilize. Any help would be greatly appreciated. Thank you!

Timing Options
I am building an interactive in Flash MX and I would like to make the projector go back to the main start screen if the mouse has been inactive for a certain amount of time. Does Flash have an internal clock or something I could utilize. Any help would be greatly appreciated. Thank you!

Detection And Timing. Help.
Ok. Here's my problem. I have a button on the main timeline that I have converted to a movie clip, with an instance name of "contactMovie". This movie has a _alpha animation on it.

Now, I also have a blank movie clip on the main stage ("dirtholder")that is a placeholder for a movie that I want to load, with loadMovie, the movie to be loaded is called "dirt1.swf".

What I want to happen here is when "contactMovie" _alpha is 100%, I want "dirt1.swf" to be loaded into "dirtholder".

This the code I have on "contactMovie" button:
----------------------------------------------------------------------

onClipEvent (load) {
// Set initial alpha to zero
this._alpha = 0;
}
onClipEvent (enterFrame) {
// As long as alpha is lower than 100, increase with five
if (this._alpha<100) {
this._alpha += .5;


}
}
----------------------------------------------------------------------

This is the code I have on frame 1 of the main timeline to load "dirt1.swf" in to "dirtholder":

----------------------------------------------------------------------
loadMovie("dirt1.swf", dirtholder);
stop()
----------------------------------------------------------------------

If you understand what I am taking about I would appreciate some help.

Also, I am having some problems with loadMovie. "dirt1.swf" is loaded into the correct spot on the document, but the link in it does not function. I have been told that this has something to do with _root, _parent, and _level, but I do not understand the syntax. The link works if I just play "dirt1.swf" by itself, but not when it is loaded into my main movie.

Thanks for any help-

Timing & Different Processors...
Hi,

Can someone explain if there is a way to fix the time of an animation so that it is the same time length on every computer, regardless of the processor speed.

I have found that my animations play at different times on different people's computers which is a pain!!

What can I do?

Thanks a lot!

r_tist

Animation Timing
I'm having trouble coordinating my animation frames with sounds or playbacks. Depending on the computer playing it back, it's usually either faster or slower then I want it to be. Does anyone know of a way to better synchronize sound and animation?

A Timing Question
Hey... I can't think of a technical way to describe this so here I go...

I have a scene with rain... and I want lightning to strike (an MC to play) randomly... I want the gap between flashes to be no shorter than 20 seconds and no longer then 30 seconds...

Now... I know how to generate a random number between 20 and 30 but how do I use this as some sort of timer like this...

gotoandplay IN randomNumber seconds (1);

It's vaige... but you get the idea?

Thanks in advanced... Robb

Copyright © 2005-08 www.BigResource.com, All rights reserved