パッケージfl.controls
クラスpublic class ButtonLabelPlacement
継承ButtonLabelPlacement Inheritance Object

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9.0.28.0

ButtonLabelPlacement クラスは、Button、CheckBox、または RadioButton コンポーネントの labelPlacement プロパティの値に定数を定義します。

例を表示

関連項目

LabelButton.labelPlacement


パブリックプロパティ
 プロパティ定義元
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクタ関数への参照です。
Object
 Inheritedprototype : Object
[静的] クラスまたは関数オブジェクトのプロトタイプオブジェクトへの参照です。
Object
パブリックメソッド
 メソッド定義元
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
 Inherited
Object クラスのインスタンスが、パラメータとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
 Inherited
指定されたプロパティが存在し、列挙できるかどうかを示します。
Object
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
指定されたオブジェクトのストリング表現を返します。
Object
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
パブリック定数
 定数定義元
  BOTTOM : String = "bottom"
[静的] ラベルはアイコンの下に表示されます。
ButtonLabelPlacement
  LEFT : String = "left"
[静的] ラベルはアイコンの左に表示されます。
ButtonLabelPlacement
  RIGHT : String = "right"
[静的] ラベルはアイコンの右に表示されます。
ButtonLabelPlacement
  TOP : String = "top"
[静的] ラベルはアイコンの上に表示されます。
ButtonLabelPlacement
定数の詳細
BOTTOM定数
public static const BOTTOM:String = "bottom"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9.0.28.0

ラベルはアイコンの下に表示されます。

LEFT定数 
public static const LEFT:String = "left"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9.0.28.0

ラベルはアイコンの左に表示されます。

RIGHT定数 
public static const RIGHT:String = "right"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9.0.28.0

ラベルはアイコンの右に表示されます。

TOP定数 
public static const TOP:String = "top"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9.0.28.0

ラベルはアイコンの上に表示されます。

例の使用法
ButtonLabelPlacementExample.as

次の例では、ButtonLabelPlacement クラスの可能な値を示します。
package {
    import fl.controls.Button;
    import fl.controls.ButtonLabelPlacement;
    import flash.display.Sprite;

    public class ButtonLabelPlacementExample extends Sprite {
        private var topButton:Button;
        private var bottomButton:Button;
        private var leftButton:Button;
        private var rightButton:Button;
        
        public function ButtonLabelPlacementExample() {
            // ButtonLabelPlacement.TOP
            var topButton:Button = new Button();
            topButton.setStyle("icon", Icon);
            topButton.labelPlacement = ButtonLabelPlacement.TOP;
            topButton.label = ButtonLabelPlacement.TOP;
            topButton.move(10, 10);
            topButton.setSize(120, 120);
            addChild(topButton);
            
            // ButtonLabelPlacement.BOTTOM
            var bottomButton:Button = new Button();
            bottomButton.setStyle("icon", Icon);
            bottomButton.labelPlacement = ButtonLabelPlacement.BOTTOM;
            bottomButton.label = ButtonLabelPlacement.BOTTOM;
            bottomButton.move(140, 10);
            bottomButton.setSize(120, 120);
            addChild(bottomButton);
            
            // ButtonLabelPlacement.LEFT
            var leftButton:Button = new Button();
            leftButton.setStyle("icon", Icon);
            leftButton.labelPlacement = ButtonLabelPlacement.LEFT;
            leftButton.label = ButtonLabelPlacement.LEFT;
            leftButton.move(270, 10);
            leftButton.setSize(120, 120);
            addChild(leftButton);
            
            // ButtonLabelPlacement.RIGHT
            var rightButton:Button = new Button();
            rightButton.setStyle("icon", Icon);
            rightButton.labelPlacement = ButtonLabelPlacement.RIGHT;
            rightButton.label = ButtonLabelPlacement.RIGHT;
            rightButton.move(400, 10);
            rightButton.setSize(120, 120);
            addChild(rightButton);
        }
    }
}

import flash.display.Sprite;

class Icon extends Sprite {
    public function Icon() {
        this.graphics.beginFill(0xFF0000);
        this.graphics.drawRect(0, 0, 20, 20);
        this.graphics.endFill();
    }
}