Mega Code Archive

 
Categories / Flash ActionScript / String
 

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." );         }     }   } }