setInterval, arguments
- Started
- Last post
- 5 Responses
- vaporstouch
using setInterval to pass an arguement, but fails to properly execute the function this is what i have:
this.startFadeLeft = setInterval(fadeImg, 1000, "l0");
then
function fadeImg(side) {
trace("in" + side); //traces OK
if (this.currentImg less= this.maxImgs) {
this.attachMovie (side + currentImg, side + currentImg + "_mc", myDepth);
this.myDepth++;
this[side + currentImg + "_mc"]._alpha = 0;
this[side + currentImg + "_mc"].onEnterFrame = function() {
trace ("in here");//does not trace
}
}any help is appreciated, thanks.
- unfittoprint0
try
this.startFadeLeft = setInterval(this, "fadeImg", 1000, "l0")
and don't forget to clear the Interval
when it's not needed anymore.
- function820
im not sure
less=
will work, thought i could be wrong. either way i would use
- vaporstouch0
thank you very much!
- vaporstouch0
function, pvn will not let you post "less than" or "greater than" signs, but thanks anyway!
- function820
heh, useless, my i would use didnt show up
<=
is what i meant (hopefully it shows up right)