Flash CS3 ドキュメンテーション |
|||
| ActionScript 2.0 リファレンスガイド > ActionScript クラス > Point (flash.geom.Point) > toString (Point.toString メソッド) | |||
public toString() : String
x 座標の値と y 座標の値を格納するストリングを返します。形式は (x, y) であるため、23,17 にあるポイントでは、"(x =23, y =17)" が返されます。
対応バージョン : ActionScript 1.0、Flash Player 8
String - ストリング。
次の例では、ポイントを作成し、その値を形式 (x=x, y=y) のストリングに変換します。
import flash.geom.Point;
var myPoint:Point = new Point(1, 2);
trace("myPoint: " + myPoint.toString()); // (x=1, y=2)
このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート
現在のページ: http://livedocs.adobe.com/flash/9.0_jp/main/00002062.html