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.

  1. in way loopcount not functioning? values expect have , how differ when debug code?

  2. if you're going new keyframe calls gotoandplay() flash reinitialise variables on new keyframe.

  3. why setting timeout in section of code?:

    _global["settimeout"](this, "gotoandplay", 4000, 4);


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -