Flash CS3 ドキュメンテーション |
|||
| ActionScript 2.0 リファレンスガイド > ActionScript クラス > Rectangle (flash.geom.Rectangle) > height (Rectangle.height プロパティ) | |||
public height : Number
矩形の高さをピクセル単位で表します。Rectangle オブジェクトの height の値を変更しても、x、y、および width の各プロパティに影響はありません。
対応バージョン : ActionScript 1.0、Flash Player 8
次の例では、Rectangle オブジェクトを作成し、その height プロパティを 10 から 20 に変更します。rect.bottom も変わることに注意してください。
import flash.geom.Rectangle; var rect:Rectangle = new Rectangle(5, 5, 10, 10); trace(rect.height); // 10 trace(rect.bottom); // 15 rect.height = 20; trace(rect.height); // 20 trace(rect.bottom); // 25
x (Rectangle.x プロパティ), y (Rectangle.y プロパティ), width (Rectangle.width プロパティ)
このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート
現在のページ: http://livedocs.adobe.com/flash/9.0_jp/main/00002083.html