Flash script setTimeout in actionscript 2.0 -
the "loopcount" variable not functioning in below code.
stop(); this.gotoandplay(2); if (!loopcount) { var loopcount:number = 0; } loopcount++; if (loopcount < 2) { _global["settimeout"](this, "gotoandplay", 4000, 4); this.stop(); }else{ this.gotoandplay(122); var loopcount:number = 0; }
kindly suggest.
in way
loopcount
not functioning? values expect have , how differ when debug code?if you're going new keyframe calls
gotoandplay()
flash reinitialise variables on new keyframe.why setting timeout in section of code?:
_global["settimeout"](this, "gotoandplay", 4000, 4);
Comments
Post a Comment