Use the increment operator with while loop : While : Statement Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Statement » While »

 

Use the increment operator with while loop


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var total = 2;
        var i = 0;
        while (i < 15) {
          total = total * 2;
          i++;
        }

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Statement
» While