Convert undefined to Number : Type cast : Data Type Flash / Flex / ActionScript examples


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

 

Convert undefined to Number


 


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

        trace(int(undefined))//0

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Data Type
» Type cast