Flash Lite 2 |
|||
| Flash Lite 2.x ActionScript リファレンスガイド > ActionScript クラス > Boolean > toString (Boolean.toString メソッド) | |||
public toString() : String
Boolean オブジェクトのストリング表現 ("true" または "false") を返します。
使用できるバージョン : ActionScript 1.0、Flash Lite 2.0
String - ストリング。"true" または "false"。
次の例では、Boolean 型の変数を作成し、toString() を使って値を trace ステートメントで使用するストリングに変換します。
var myBool: Boolean = true;
trace("The value of the Boolean myBool is: " + myBool.toString());
myBool = false;
trace("The value of the Boolean myBool is: " + myBool.toString());