Flash Lite 2 |
|||
| Flash Lite 2.x ActionScript リファレンスガイド > ActionScript クラス > String > fromCharCode (String.fromCharCode メソッド) | |||
public static fromCharCode() : String
パラメータ内の Unicode 値に対応する文字をストリングとして返します。
使用できるバージョン : ActionScript 1.0、Flash Lite 2.0
String - 指定された Unicode 文字コードのストリング値。
次の例では、fromCharCode() メソッドを使用して、電子メールアドレスに @ 文字を挿入します。
var address_str: String = "dog"+String.fromCharCode(64)+"house.net"; trace(address_str); // dog@house.net を出力する