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