setInterval();
setInterval();
- Started
- Last post
- 3 Responses
- tomkat
hey thanks unfit,
I'm just checking out some of your Interval-trickery.. works really fine.
- unfittoprint0
tracer = function(myString){
trace(myString);
}traceLoop = setInterval(this, "tracer", 500, "you're welcome & nice boobs!");
stop;
- tomkat0
=)
but what does this part mean:
(_x == targetX) clearInterval(slideLoop) : false;
cuz it worked also when false is put to true..? that confused me a lil..
- unfittoprint0
It's called conditional statement. It's the same as:
if (_x==targetX) {
clearinterval (slideLoop);
} else
...but with one line of code.
But to use this advanced method, you'll have to put the else part even if not's necessary... therefore I write false [altough true will also function].
http://www.macromedia.com/suppor…