Use Number type variable in for loop : Number : Data Type Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Data Type » Number »

 

Use Number type variable in for loop


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

        for (var i:Number = 25; i > 0; i--){
          trace(i);
        
    }
  }
}
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Data Type
» Number