Converting Between Strings and Unicode or ASCII : fromCharCode « String « Flash / Flex / ActionScript






Converting Between Strings and Unicode or ASCII

 


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


        trace( "New paragraph: " + String.fromCharCode( 182 ) );
        trace( "Cents: " + String.fromCharCode( 162 ) );
        trace( "Name: " + String.fromCharCode( 68, 97, 114, 114, 111, 110 ) );

    }
  }
}

        








Related examples in the same category

1.Use String.frolmCharCode to create a string