Use String.frolmCharCode to create a string : fromCharCode « String « Flash / Flex / ActionScript






Use String.frolmCharCode to create a string

 

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

        var example:String = String.fromCharCode( 191 ) + String.fromCharCode( 243 ) 
                   + String.fromCharCode( 225 ) 
                   + String.fromCharCode( 241 );
        
        if ( example.charCodeAt( 0 ) == 191 ) {
          trace( "The string \"" + example + "\" has a \u00BF at the beginning." );
        }

    }
  }
}

        








Related examples in the same category

1.Converting Between Strings and Unicode or ASCII