| 패키지 | spark.core |
| 클래스 | public class SpriteVisualElement |
| 상속 | SpriteVisualElement FlexSprite Sprite DisplayObjectContainer InteractiveObject DisplayObject EventDispatcher Object |
| 구현 | IVisualElement, IMXMLObject, IFlexModule |
| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
If you use ActionScript to add an FXG component to an application, it should be of type SpriteVisualElement.
| 속성 | 정의 주체 | ||
|---|---|---|---|
![]() | accessibilityImplementation : AccessibilityImplementation
이 InteractiveObject 인스턴스에 대한 현재 액세스 가능성 구현(AccessibilityImplementation)입니다. | InteractiveObject | |
![]() | accessibilityProperties : AccessibilityProperties
이 표시 객체의 현재 액세스 가능성 옵션입니다. | DisplayObject | |
![]() | alpha : Number
지정된 객체의 알파 투명도 값을 나타냅니다. | DisplayObject | |
| baseline : Object
The vertical distance in pixels from the anchor target to
the control's baseline position. | SpriteVisualElement | ||
| baselinePosition : Number [읽기 전용]
The y-coordinate of the baseline
of the first line of text of the component. | SpriteVisualElement | ||
| blendMode : String [재정의]
A value from the BlendMode class that specifies which blend mode to use. | SpriteVisualElement | ||
![]() | blendShader : Shader [쓰기 전용]
전경 및 배경을 블렌딩하는 데 사용되는 셰이더를 설정합니다. | DisplayObject | |
| bottom : Object
The vertical distance in pixels from the bottom edge of the component to the
anchor target's bottom edge. | SpriteVisualElement | ||
![]() | buttonMode : Boolean
이 Sprite의 버튼 모드를 지정합니다. | Sprite | |
![]() | cacheAsBitmap : Boolean
true로 설정된 경우 Flash 런타임은 표시 객체의 내부 비트맵 표현을 캐시합니다. | DisplayObject | |
![]() | cacheAsBitmapMatrix : Matrix
null이 아닌 경우 이 Matrix 객체는 cacheAsBitmap이 true로 설정될 때 표시 객체가 렌더링되는 방법을 정의합니다. | DisplayObject | |
![]() | constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | |
![]() | contextMenu : NativeMenu
이 객체에 연결된 컨텍스트 메뉴를 지정합니다. | InteractiveObject | |
| depth : Number
Determines the order in which items inside of containers
are rendered. | SpriteVisualElement | ||
| designLayer : DesignLayer
Specifies the optional DesignLayer instance associated with this visual
element. | SpriteVisualElement | ||
![]() | doubleClickEnabled : Boolean
이 객체에서 doubleClick 이벤트를 받을지 여부를 지정합니다. | InteractiveObject | |
![]() | dropTarget : DisplayObject [읽기 전용]
드래그하는 Sprite 아래의 표시 객체 또는 Sprite를 드래그해 놓은 표시 객체를 지정합니다. | Sprite | |
![]() | filters : Array
현재 표시 객체와 연관된 각 필터 객체가 들어 있는 인덱싱된 배열입니다. | DisplayObject | |
![]() | focusRect : Object
이 객체에서 포커스 사각형을 표시할지 여부를 지정합니다. | InteractiveObject | |
![]() | graphics : Graphics [읽기 전용]
벡터 드로잉 명령을 내릴 수 있는 이 Sprite에 속한 Graphics 객체를 지정합니다. | Sprite | |
| hasLayoutMatrix3D : Boolean [읽기 전용]
Contains true if the element has 3D Matrix. | SpriteVisualElement | ||
![]() | height : Number
표시 객체의 높이를 픽셀 단위로 나타냅니다. | DisplayObject | |
![]() | hitArea : Sprite
Sprite의 히트 영역으로 사용할 다른 Sprite를 지정합니다. | Sprite | |
| horizontalCenter : Object
The horizontal distance in pixels from the center of the component to the
center of the anchor target's content area. | SpriteVisualElement | ||
| id : String
The identity of the component. | SpriteVisualElement | ||
| includeInLayout : Boolean
Specifies whether this component is included in the layout of the
parent container. | SpriteVisualElement | ||
| is3D : Boolean [읽기 전용]
Contains true when the element is in 3D. | SpriteVisualElement | ||
| layoutDirection : String
Specifies the desired layout direction for an element: one of LayoutDirection.LTR
(left to right), LayoutDirection.RTL (right to left), or null (inherit). | SpriteVisualElement | ||
| left : Object
The horizontal distance in pixels from the left edge of the component to the
anchor target's left edge. | SpriteVisualElement | ||
![]() | loaderInfo : LoaderInfo [읽기 전용]
이 표시 객체가 속한 파일의 로딩 정보가 포함된 LoaderInfo 객체를 반환합니다. | DisplayObject | |
| luminosityClip : Boolean
A property that controls whether the luminosity
mask clips the masked content. | SpriteVisualElement | ||
| luminosityInvert : Boolean
A property that controls the calculation of the RGB
color value of a graphic element being masked by
a luminosity mask. | SpriteVisualElement | ||
| mask : DisplayObject [재정의]
Sets the mask. | SpriteVisualElement | ||
| maskType : String
The mask type. | SpriteVisualElement | ||
![]() | metaData : Object
PlaceObject4 태그를 통해 SWF 파일에 해당 DisplayObject의 인스턴스와 함께 메타데이터가 저장된 경우 DisplayObject 인스턴스의 메타데이터 객체를 가져옵니다. | DisplayObject | |
| moduleFactory : IFlexModuleFactory
A module factory is used as context for using embeded fonts and for
finding the style manager that controls the styles for this
component. | SpriteVisualElement | ||
![]() | mouseChildren : Boolean
해당 객체의 자식에서 마우스 또는 사용자 입력 장치가 사용하도록 설정되어 있는지 여부를 결정합니다. | DisplayObjectContainer | |
![]() | mouseEnabled : Boolean
이 객체가 마우스 또는 기타 사용자 입력, 메시지를 수신할지 여부를 지정합니다. | InteractiveObject | |
![]() | mouseX : Number [읽기 전용]
마우스 또는 사용자 입력 장치 위치의 x 좌표를 픽셀로 나타냅니다. | DisplayObject | |
![]() | mouseY : Number [읽기 전용]
마우스 또는 사용자 입력 장치 위치의 y 좌표를 픽셀로 나타냅니다. | DisplayObject | |
![]() | name : String
DisplayObject의 인스턴스 이름을 나타냅니다. | DisplayObject | |
![]() | needsSoftKeyboard : Boolean
이 InteractiveObject 인스턴스가 포커스를 받을 때 가상 키보드(화면의 소프트웨어 키보드)를 표시할지 여부를 지정합니다. | InteractiveObject | |
![]() | numChildren : int [읽기 전용]
이 객체의 자식 수를 반환합니다. | DisplayObjectContainer | |
![]() | opaqueBackground : Object
표시 객체를 특정 배경색으로 불투명하게 처리할지 여부를 지정합니다. | DisplayObject | |
| owner : DisplayObjectContainer
The owner of this IVisualElement object. | SpriteVisualElement | ||
![]() | parent : DisplayObjectContainer [읽기 전용]
이 표시 객체가 포함된 DisplayObjectContainer 객체를 나타냅니다. | DisplayObject | |
| percentHeight : Number
Specifies the height of a component as a percentage
of its parent's size. | SpriteVisualElement | ||
| percentWidth : Number
Specifies the width of a component as a percentage
of its parent's size. | SpriteVisualElement | ||
| postLayoutTransformOffsets : mx.geom:TransformOffsets
Defines a set of adjustments that can be applied to the object's
transform in a way that is invisible to its parent's layout. | SpriteVisualElement | ||
| right : Object
The horizontal distance in pixels from the right edge of the component to the
anchor target's right edge. | SpriteVisualElement | ||
![]() | root : DisplayObject [읽기 전용]
로드된 SWF 파일에 있는 표시 객체의 경우, 해당 SWF 파일이 나타내는 표시 목록의 트리 구조 부분에서 맨 위에 위치하는 표시 객체가 루트 속성이 됩니다. | DisplayObject | |
![]() | rotation : Number
DisplayObject 인스턴스가 원점으로부터 회전한 각도입니다. | DisplayObject | |
| rotationX : Number [재정의]
Indicates the x-axis rotation of the DisplayObject instance, in degrees,
from its original orientation relative to the 3D parent container. | SpriteVisualElement | ||
| rotationY : Number [재정의]
Indicates the y-axis rotation of the DisplayObject instance, in degrees,
from its original orientation relative to the 3D parent container. | SpriteVisualElement | ||
![]() | rotationZ : Number
DisplayObject 인스턴스가 3D parent 컨테이너를 기준으로 원점으로부터 z축 회전한 각도를 나타냅니다. | DisplayObject | |
![]() | scale9Grid : Rectangle
현재 적용 중인 크기 조절 격자입니다. | DisplayObject | |
![]() | scaleX : Number
등록 포인트에서 적용된 객체의 가로 크기(백분율)를 나타냅니다. | DisplayObject | |
![]() | scaleY : Number
객체의 등록 포인트에서 적용된 객체의 세로 크기(백분율)를 나타냅니다. | DisplayObject | |
![]() | scaleZ : Number
객체의 등록 포인트에서 적용된 객체의 깊이 크기(백분율)를 나타냅니다. | DisplayObject | |
![]() | scrollRect : Rectangle
표시 객체의 스크롤 사각형 경계입니다. | DisplayObject | |
![]() | softKeyboard : String
소프트 키보드의 모양을 제어합니다. | InteractiveObject | |
![]() | softKeyboardInputAreaOfInterest : Rectangle
소프트 키보드가 표시될 때 화면에서 그대로 유지되는 영역을 정의합니다(iOS에서는 사용할 수 없음). | InteractiveObject | |
![]() | soundTransform : flash.media:SoundTransform
이 Sprite 내에서 사운드를 제어합니다. | Sprite | |
![]() | stage : Stage [읽기 전용]
표시 객체의 Stage입니다. | DisplayObject | |
![]() | tabChildren : Boolean
객체의 자식에서 탭 기능을 사용할 수 있는지 여부를 결정합니다. | DisplayObjectContainer | |
![]() | tabEnabled : Boolean
이 객체가 탭 순서에 있는지 여부를 지정합니다. | InteractiveObject | |
![]() | tabIndex : int
SWF 파일에서 객체의 탭 순서를 지정합니다. | InteractiveObject | |
![]() | textSnapshot : flash.text:TextSnapshot [읽기 전용]
이 DisplayObjectContainer 인스턴스에 대한 TextSnapshot 객체를 반환합니다. | DisplayObjectContainer | |
| top : Object
The vertical distance in pixels from the top edge of the component to the
anchor target's top edge. | SpriteVisualElement | ||
![]() | transform : flash.geom:Transform
표시 객체의 행렬, 색상 변환 및 픽셀 경계와 관련된 속성을 가진 객체입니다. | DisplayObject | |
| transformX : Number
Sets the x coordinate for the transform center of the component. | SpriteVisualElement | ||
| transformY : Number
Sets the y coordinate for the transform center of the component. | SpriteVisualElement | ||
| transformZ : Number
Sets the z coordinate for the transform center of the component. | SpriteVisualElement | ||
![]() | useHandCursor : Boolean
buttonMode 속성이 true로 설정된 스프라이트 위로 포인터를 움직일 때 손 모양(손 모양 커서)을 표시할지 여부를 나타내는 부울 값입니다. | Sprite | |
| verticalCenter : Object
The vertical distance in pixels from the center of the component to the
center of the anchor target's content area. | SpriteVisualElement | ||
| visible : Boolean [재정의]
Controls the visibility of this visual element. | SpriteVisualElement | ||
![]() | width : Number
표시 객체의 폭을 픽셀 단위로 나타냅니다. | DisplayObject | |
![]() | x : Number
부모 DisplayObjectContainer의 로컬 좌표를 기준으로 DisplayObject 인스턴스의 x 좌표를 나타냅니다. | DisplayObject | |
![]() | y : Number
부모 DisplayObjectContainer의 로컬 좌표를 기준으로 DisplayObject 인스턴스의 y 좌표를 나타냅니다. | DisplayObject | |
![]() | z : Number
3D parent 컨테이너를 기준으로 DisplayObject 인스턴스의 z축에 있는 z 좌표 위치를 나타냅니다. | DisplayObject | |
| 속성 | 정의 주체 | ||
|---|---|---|---|
| viewHeight : Number [쓰기 전용]
Defines the vertical space that the graphic uses in the layout. | SpriteVisualElement | ||
| viewWidth : Number [쓰기 전용]
Defines the horizontal space that the graphic uses in the layout. | SpriteVisualElement | ||
| 메서드 | 정의 주체 | ||
|---|---|---|---|
Constructor. | SpriteVisualElement | ||
![]() |
이 DisplayObjectContainer 인스턴스에 자식 DisplayObject 인스턴스를 추가합니다. | DisplayObjectContainer | |
![]() |
이 DisplayObjectContainer 인스턴스에 자식 DisplayObject 인스턴스를 추가합니다. | DisplayObjectContainer | |
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | EventDispatcher | |
![]() |
지정된 point 점으로 DisplayObjectContainer.getObjectsUnderPoint() 메서드를 호출하여 반환된 목록에서 임의의 표시 객체가 보안 제한 사항으로 인해 생략되는지 여부를 나타냅니다. | DisplayObjectContainer | |
![]() |
지정된 표시 객체가 DisplayObjectContainer 인스턴스의 자식인지 아니면 인스턴스 자체인지를 확인합니다. | DisplayObjectContainer | |
![]() |
이벤트를 이벤트 흐름으로 전달합니다. | EventDispatcher | |
![]() |
targetCoordinateSpace 객체의 좌표계를 기준으로 표시 객체의 영역을 정의하는 사각형을 반환합니다. | DisplayObject | |
Returns the x coordinate of the element's bounds at the specified element size. | SpriteVisualElement | ||
Returns the y coordinate of the element's bounds at the specified element size. | SpriteVisualElement | ||
![]() |
지정된 인덱스에 존재하는 자식 표시 객체 인스턴스를 반환합니다. | DisplayObjectContainer | |
![]() |
지정된 이름을 가진 자식 표시 객체를 반환합니다. | DisplayObjectContainer | |
![]() |
자식 DisplayObject 인스턴스의 인덱스 위치를 반환합니다. | DisplayObjectContainer | |
Returns the element's layout height. | SpriteVisualElement | ||
Returns the element's layout width. | SpriteVisualElement | ||
Returns the x coordinate that the element uses to draw on screen. | SpriteVisualElement | ||
Returns the y coordinate that the element uses to draw on screen. | SpriteVisualElement | ||
Returns the transform matrix that is used to calculate the component's
layout relative to its siblings. | SpriteVisualElement | ||
Returns the layout transform Matrix3D for this element. | SpriteVisualElement | ||
Returns the element's maximum height. | SpriteVisualElement | ||
Returns the element's maximum width. | SpriteVisualElement | ||
Returns the element's minimum height. | SpriteVisualElement | ||
Returns the element's minimum width. | SpriteVisualElement | ||
![]() |
이 DisplayObjectContainer 인스턴스의 자식(또는 손자 등)으로서 지정된 점 아래에 있는 객체의 배열을 반환합니다. | DisplayObjectContainer | |
Returns the element's preferred height. | SpriteVisualElement | ||
Returns the element's preferred width. | SpriteVisualElement | ||
![]() |
대상 좌표 공간 매개 변수에 의해 정의되는 좌표계를 기준으로 모양의 획을 제외하고 표시 객체의 경계를 정의하는 사각형을 반환합니다. | DisplayObject | |
![]() |
Point 객체를 Stage 전역 좌표에서 표시 객체의 로컬 좌표로 변환합니다. | DisplayObject | |
![]() |
Stage(전역) 좌표의 2차원 점을 3차원 표시 객체(로컬) 좌표로 변환합니다. | DisplayObject | |
![]() |
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | |
![]() |
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | |
![]() |
표시 객체의 경계 상자를 평가하여 obj 표시 객체의 경계 상자와 겹치거나 교차하는지 확인합니다. | DisplayObject | |
![]() |
표시 객체를 평가하여 x 및 y 매개 변수에 의해 지정된 점과 겹치거나 교차하는지 확인합니다. | DisplayObject | |
Called automatically by the MXML compiler when the SpriteVisualElement
is created using an MXML tag. | SpriteVisualElement | ||
An element must call this method when its layoutDirection changes or
when its parent's layoutDirection changes. | SpriteVisualElement | ||
![]() |
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | |
![]() |
3차원 표시 객체의 로컬 좌표에 있는 3차원 점을 Stage 전역 좌표의 2차원 점으로 변환합니다. | DisplayObject | |
![]() |
Point 객체를 표시 객체의 로컬 좌표에서 Stage 전역 좌표로 변환합니다. | DisplayObject | |
![]() |
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | |
![]() |
지정된 자식 DisplayObject 인스턴스를 DisplayObjectContainer 인스턴스의 자식 목록에서 제거합니다. | DisplayObjectContainer | |
![]() |
DisplayObjectContainer 자식 목록에서 지정된 인덱스 위치에 있는 자식 DisplayObject를 제거합니다. | DisplayObjectContainer | |
![]() |
모든 자식 DisplayObject 인스턴스를 DisplayObjectContainer 인스턴스의 자식 목록에서 제거합니다. | DisplayObjectContainer | |
![]() |
EventDispatcher 객체에서 리스너를 제거합니다. | EventDispatcher | |
![]() |
가상 키보드를 표시합니다. | InteractiveObject | |
![]() |
표시 객체 컨테이너에서 기존 자식의 위치를 변경합니다. | DisplayObjectContainer | |
setLayoutBoundsPosition(newBoundsX:Number, newBoundsY:Number, postLayoutTransform:Boolean = true):void
Sets the coordinates that the element uses to draw on screen. | SpriteVisualElement | ||
Sets the layout size of the element. | SpriteVisualElement | ||
Sets the transform Matrix that is used to calculate the component's layout
size and position relative to its siblings. | SpriteVisualElement | ||
Sets the transform Matrix3D that is used to calculate the component's layout
size and position relative to its siblings. | SpriteVisualElement | ||
![]() |
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | |
![]() |
지정된 Sprite를 드래그할 수 있도록 합니다. | Sprite | |
![]() |
터치 지원 장치에서 지정된 스프라이트를 드래그할 수 있도록 합니다. | Sprite | |
![]() |
이 객체가 루트로 지정된 모든 MovieClip의 타임라인 실행을 재귀적으로 중지합니다. | DisplayObjectContainer | |
![]() |
startDrag() 메서드를 종료합니다. | Sprite | |
![]() |
startTouchDrag() 메서드를 종료합니다. 터치 지원 장치에서 사용합니다. | Sprite | |
![]() |
지정된 두 개의 자식 객체의 z 순서(전후 순서)를 맞바꿉니다. | DisplayObjectContainer | |
![]() |
자식 목록에서 지정된 두 곳의 인덱스 위치에 있는 자식 객체의 z 순서(전후 순서)를 맞바꿉니다. | DisplayObjectContainer | |
![]() |
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | |
![]() | [재정의]
Returns a string indicating the location of this object
within the hierarchy of DisplayObjects in the Application. | FlexSprite | |
transformAround(transformCenter:Vector3D, scale:Vector3D = null, rotation:Vector3D = null, translation:Vector3D = null, postLayoutScale:Vector3D = null, postLayoutRotation:Vector3D = null, postLayoutTranslation:Vector3D = null, invalidateLayout:Boolean = true):void
A utility method to update the rotation, scale, and translation of the
transform while keeping a particular point, specified in the component's
own coordinate space, fixed in the parent's coordinate space. | SpriteVisualElement | ||
A utility method to transform a point specified in the local
coordinates of this object to its location in the object's parent's
coordinates. | SpriteVisualElement | ||
![]() |
지정된 객체의 프리미티브 값을 반환합니다. | Object | |
![]() |
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | |
| 메서드 | 정의 주체 | ||
|---|---|---|---|
Invalidates parent size and display list if
this object affects its layout (includeInLayout is true). | SpriteVisualElement | ||
Transform the element's size. | SpriteVisualElement | ||
Transform the element's size. | SpriteVisualElement | ||
baseline | 속성 |
baseline:Object| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
The vertical distance in pixels from the anchor target to the control's baseline position.
By default the anchor target is the top edge of the container's content area. In layouts with advanced constraints, the target can be a constraint row.
Setting the property to a number or to a numerical string like "10" specifies use of the default anchor target.
To specify an anchor target, set the property value to a string in the format: "anchorTargetName:value". For example, "row1:10".
구현
public function get baseline():Object public function set baseline(value:Object):voidbaselinePosition | 속성 |
baselinePosition:Number [읽기 전용] | 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
The y-coordinate of the baseline of the first line of text of the component.
This property is used to implement
the baseline constraint style.
It is also used to align the label of a FormItem
with the controls in the FormItem.
Each component should override this property.
구현
public function get baselinePosition():NumberblendMode | 속성 |
bottom | 속성 |
bottom:Object| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
The vertical distance in pixels from the bottom edge of the component to the anchor target's bottom edge.
By default the anchor target is the container's content area. In layouts with advanced constraints, the target can be a constraint row.
Setting the property to a number or to a numerical string like "10" specifies use of the default anchor target.
To specify an anchor target, set the property value to a string in the format: "anchorTargetName:value". For example, "row1:10".
구현
public function get bottom():Object public function set bottom(value:Object):voiddepth | 속성 |
depth:Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Determines the order in which items inside of containers
are rendered.
Spark containers order their items based on their
depth property, with the lowest depth in the back,
and the higher in the front.
Items with the same depth value appear in the order
they are added to the container.
구현
public function get depth():Number public function set depth(value:Number):voiddesignLayer | 속성 |
designLayer:DesignLayer| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Specifies the optional DesignLayer instance associated with this visual element.
When a DesignLayer is assigned, a visual element must consider the visibility and alpha of its parent layer when ultimately committing its own effective visibility or alpha to its backing DisplayObject (if applicable).
A visual element must listen for layerPropertyChange
notifications from the associated layer parent. When the
effectiveAlpha or effectiveVisibility of the
layer changes, the element must then compute its own effective visibility
(or alpha) and apply it accordingly.
This property should not be set within MXML directly.
The designLayer property is not used for z-order control,
please see depth.
구현
public function get designLayer():DesignLayer public function set designLayer(value:DesignLayer):voidhasLayoutMatrix3D | 속성 |
hasLayoutMatrix3D:Boolean [읽기 전용] | 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Contains true if the element has 3D Matrix.
Use hasLayoutMatrix3D instead of calling and examining the
return value of getLayoutMatrix3D() because that method returns a valid
matrix even when the element is in 2D.
구현
public function get hasLayoutMatrix3D():BooleanhorizontalCenter | 속성 |
horizontalCenter:Object| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
The horizontal distance in pixels from the center of the component to the center of the anchor target's content area.
The default anchor target is the container itself.
In layouts with advanced constraints, the anchor target can be a constraint column. Then the content area is the space between the preceding column (or container side) and the target column.
Setting the property to a number or to a numerical string like "10" specifies use of the default anchor target.
To specify an anchor target, set the property value to a string in the format "constraintColumnId:value". For example, "col1:10".
구현
public function get horizontalCenter():Object public function set horizontalCenter(value:Object):voidid | 속성 |
includeInLayout | 속성 |
includeInLayout:Boolean| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Specifies whether this component is included in the layout of the
parent container.
If true, the object is included in its parent container's
layout and is sized and positioned by its parent container as per its layout rules.
If false, the object size and position are not affected by its parent container's
layout.
구현
public function get includeInLayout():Boolean public function set includeInLayout(value:Boolean):voidis3D | 속성 |
layoutDirection | 속성 |
layoutDirection:String| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4.5 |
| 런타임 버전: | Flash Player 10, AIR 2.5 |
Specifies the desired layout direction for an element: one of LayoutDirection.LTR (left to right), LayoutDirection.RTL (right to left), or null (inherit). This property is typically backed by an inheriting style. If null, the layoutDirection style will be set to undefined. Classes like GraphicElement, which implement ILayoutDirectionElement but do not support styles, must additionally support a null value for this property which means the layoutDirection must be inherited from its parent.
구현
public function get layoutDirection():String public function set layoutDirection(value:String):voidleft | 속성 |
left:Object| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
The horizontal distance in pixels from the left edge of the component to the anchor target's left edge.
By default the anchor target is the container's content area. In layouts with advanced constraints, the target can be a constraint column.
Setting the property to a number or to a numerical string like "10" specifies use of the default anchor target.
To specify an anchor target, set the property value to a string in the format "anchorTargetName:value". For example, "col1:10".
구현
public function get left():Object public function set left(value:Object):voidluminosityClip | 속성 |
luminosityClip:Boolean| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
A property that controls whether the luminosity mask clips the masked content. This property can only have an effect if the graphic element has a mask applied to it that is of type MaskType.LUMINOSITY.
구현
public function get luminosityClip():Boolean public function set luminosityClip(value:Boolean):voidluminosityInvert | 속성 |
luminosityInvert:Boolean| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
A property that controls the calculation of the RGB color value of a graphic element being masked by a luminosity mask. If true, the RGB color value of a pixel in the source content is inverted and multipled by the corresponding region in the mask. If false, the source content's pixel's RGB color value is used directly.
구현
public function get luminosityInvert():Boolean public function set luminosityInvert(value:Boolean):voidmask | 속성 |
mask:DisplayObject[재정의] | 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Sets the mask. The mask will be added to the display list. The mask must not already on a display list nor in the elements array.
구현
override public function get mask():DisplayObject override public function set mask(value:DisplayObject):voidmaskType | 속성 |
maskType:String| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
The mask type. Possible values are MaskType.CLIP, MaskType.ALPHA
or MaskType.LUMINOSITY.
Clip Masking
When masking in clip mode, a clipping masks is reduced to 1-bit. This means that a mask will not affect the opacity of a pixel in the source content; it either leaves the value unmodified, if the corresponding pixel in the mask is has a non-zero alpha value, or makes it fully transparent, if the mask pixel value has an alpha value of zero.
Alpha Masking
In alpha mode, the opacity of each pixel in the source content is multiplied by the opacity of the corresponding region of the mask. i.e., a pixel in the source content with an opacity of 1 that is masked by a region of opacity of .5 will have a resulting opacity of .5. A source pixel with an opacity of .8 masked by a region with opacity of .5 will have a resulting opacity of .4.
Luminosity Masking
A luminosity mask, sometimes called a 'soft mask', works very similarly to an alpha mask except that both the opacity and RGB color value of a pixel in the source content is multiplied by the opacity and RGB color value of the corresponding region in the mask.
Luminosity masking is not native to Flash but is common in Adobe Creative Suite tools like Adobe Illustrator and Adobe Photoshop. In order to accomplish the visual effect of a luminosity mask in Flash-rendered content, a graphic element specifying a luminosity mask actually instantiates a shader filter that mimics the visual look of a luminosity mask as rendered in Adobe Creative Suite tools.
Objects being masked by luminosity masks can set properties to control the RGB color value and clipping of the mask. See the luminosityInvert and luminosityClip attributes.
이 속성은 데이터 바인딩에 대한 소스로 사용할 수 있습니다. 이 속성을 수정하면 propertyChange 이벤트를 전달합니다.
구현
public function get maskType():String public function set maskType(value:String):voidmoduleFactory | 속성 |
moduleFactory:IFlexModuleFactory| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 9, AIR 1.1 |
A module factory is used as context for using embeded fonts and for finding the style manager that controls the styles for this component.
구현
public function get moduleFactory():IFlexModuleFactory public function set moduleFactory(value:IFlexModuleFactory):voidowner | 속성 |
owner:DisplayObjectContainer| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
The owner of this IVisualElement object. By default, it is the parent of this IVisualElement object. However, if this IVisualElement object is a child component that is popped up by its parent, such as the drop-down list of a ComboBox control, the owner is the component that popped up this IVisualElement object.
This property is not managed by Flex, but by each component.
Therefore, if you use the PopUpManger.createPopUp() or
PopUpManger.addPopUp() method to pop up a child component,
you should set the owner property of the child component
to the component that popped it up.
The default value is the value of the parent property.
구현
public function get owner():DisplayObjectContainer public function set owner(value:DisplayObjectContainer):voidpercentHeight | 속성 |
percentHeight:Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Specifies the height of a component as a percentage
of its parent's size. Allowed values are 0-100.
Setting the height or explicitHeight properties
resets this property to NaN.
This property returns a numeric value only if the property was previously set; it does not reflect the exact size of the component in percent.
구현
public function get percentHeight():Number public function set percentHeight(value:Number):voidpercentWidth | 속성 |
percentWidth:Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Specifies the width of a component as a percentage
of its parent's size. Allowed values are 0-100. The default value is NaN.
Setting the width or explicitWidth properties
resets this property to NaN.
This property returns a numeric value only if the property was previously set; it does not reflect the exact size of the component in percent.
This property is always set to NaN for the UITextField control.
When used with Spark layouts, this property is used to calculate the
width of the component's bounds after scaling and rotation. For example
if the component is rotated at 90 degrees, then specifying
percentWidth will affect the component's height.
구현
public function get percentWidth():Number public function set percentWidth(value:Number):voidpostLayoutTransformOffsets | 속성 |
postLayoutTransformOffsets:mx.geom:TransformOffsets| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Defines a set of adjustments that can be applied to the object's transform in a way that is invisible to its parent's layout.
For example, if you want a layout to adjust for an object
that is rotated 90 degrees, set the object's
rotation property. If you want the layout to not
adjust for the object being rotated,
set its postLayoutTransformOffsets.rotationZ property.
구현
public function get postLayoutTransformOffsets():mx.geom:TransformOffsets public function set postLayoutTransformOffsets(value:mx.geom:TransformOffsets):voidright | 속성 |
right:Object| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
The horizontal distance in pixels from the right edge of the component to the anchor target's right edge.
By default the anchor target is the container's content area. In layouts with advanced constraints, the target can be a constraint column.
Setting the property to a number or to a numerical string like "10" specifies use of the default anchor target.
To specify an anchor target, set the property value to a string in the format "anchorTargetName:value". For example, "col1:10".
구현
public function get right():Object public function set right(value:Object):voidrotationX | 속성 |
rotationX:Number[재정의] | 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Indicates the x-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container. Values from 0 to 180 represent clockwise rotation; values from 0 to -180 represent counterclockwise rotation. Values outside this range are added to or subtracted from 360 to obtain a value within the range. This property is ignored during calculation by any of Flex's 2D layouts.
구현
override public function get rotationX():Number override public function set rotationX(value:Number):voidrotationY | 속성 |
rotationY:Number[재정의] | 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Indicates the y-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container. Values from 0 to 180 represent clockwise rotation; values from 0 to -180 represent counterclockwise rotation. Values outside this range are added to or subtracted from 360 to obtain a value within the range. This property is ignored during calculation by any of Flex's 2D layouts.
구현
override public function get rotationY():Number override public function set rotationY(value:Number):voidtop | 속성 |
top:Object| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
The vertical distance in pixels from the top edge of the component to the anchor target's top edge.
By default the anchor target is the container's content area. In layouts with advanced constraints, the target can be a constraint row.
Setting the property to a number or to a numerical string like "10" specifies use of the default anchor target.
To specify an anchor target, set the property value to a string in the format "anchorTargetName:value". For example, "row1:10".
구현
public function get top():Object public function set top(value:Object):voidtransformX | 속성 |
transformX:Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Sets the x coordinate for the transform center of the component.
When this object is the target of a Spark transform effect,
you can override this property by setting
the AnimateTransform.autoCenterTransform property.
If autoCenterTransform is false, the transform
center is determined by the transformX,
transformY, and transformZ properties
of the effect target.
If autoCenterTransform is true,
the effect occurs around the center of the target,
(width/2, height/2).
Setting this property on the Spark effect class overrides the setting on the target object.
구현
public function get transformX():Number public function set transformX(value:Number):void관련 API 요소
transformY | 속성 |
transformY:Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Sets the y coordinate for the transform center of the component.
When this object is the target of a Spark transform effect,
you can override this property by setting
the AnimateTransform.autoCenterTransform property.
If autoCenterTransform is false, the transform
center is determined by the transformY,
transformY, and transformZ properties
of the effect target.
If autoCenterTransform is true,
the effect occurs around the center of the target,
(width/2, height/2).
Setting this property on the Spark effect class overrides the setting on the target object.
구현
public function get transformY():Number public function set transformY(value:Number):void관련 API 요소
transformZ | 속성 |
transformZ:Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Sets the z coordinate for the transform center of the component.
When this object is the target of a Spark transform effect,
you can override this property by setting
the AnimateTransform.autoCenterTransform property.
If autoCenterTransform is false, the transform
center is determined by the transformZ,
transformY, and transformZ properties
of the effect target.
If autoCenterTransform is true,
the effect occurs around the center of the target,
(width/2, height/2).
Setting this property on the Spark effect class overrides the setting on the target object.
구현
public function get transformZ():Number public function set transformZ(value:Number):void관련 API 요소
verticalCenter | 속성 |
verticalCenter:Object| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
The vertical distance in pixels from the center of the component to the center of the anchor target's content area.
The default anchor target is the container itself.
In layouts with advanced constraints, the anchor target can be a constraint row. Then the content area is the space between the preceding row (or container side) and the target row.
Setting the property to a number or to a numerical string like "10" specifies use of the default anchor target.
To specify an anchor target, set the property value to a string in the format "constraintColumnId:value". For example, "row1:10".
구현
public function get verticalCenter():Object public function set verticalCenter(value:Object):voidviewHeight | 속성 |
viewHeight:Number [쓰기 전용] | 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Defines the vertical space that the graphic uses in the layout. When you set this value, the content is not scaled.
Whereas, if you specify the value of the height property, the content is scaled.
There are two cases where this can be useful:
1) Specify a viewHeight larger than the natural size of the content. You might do this so that the graphic takes
up more space than its visual size.
2) Specify a viewHeight that is smaller than the natural size of the content. You might do this if your graphic has extra
chrome or a border that extends past the edges of the graphic. In this scenario, be sure to disable clipping in your layout.
구현
protected function set viewHeight(value:Number):voidviewWidth | 속성 |
viewWidth:Number [쓰기 전용] | 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Defines the horizontal space that the graphic uses in the layout. When you set this value, the content is not scaled.
Whereas, if you specify the value of the width property, the content is scaled.
There are two cases where this can be useful:
1) Specify a viewWidth larger than the natural size of the content. You might do this so that the graphic takes
up more space than its visual size.
2) Specify a viewWidth that is smaller than the natural size of the content. You might do this if your graphic has extra
chrome or a border that extends past the edges of the graphic. In this scenario, be sure to disable clipping in your layout.
구현
protected function set viewWidth(value:Number):voidvisible | 속성 |
visible:Boolean[재정의] | 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4.5 |
| 런타임 버전: | Flash Player 10, AIR 2.5 |
Controls the visibility of this visual element.
If true, the object is visible.
If an object is not visible, but the includeInLayout
property is set to true, then the object
takes up space in the container, but is invisible.
If visible is set to true, the object may not
necessarily be visible due to its size and whether container clipping
is enabled.
Setting visible to false,
prevents the component from getting focus.
구현
override public function get visible():Boolean override public function set visible(value:Boolean):voidSpriteVisualElement | () | 생성자 |
public function SpriteVisualElement()| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Constructor.
getBoundsXAtSize | () | 메서드 |
public function getBoundsXAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the x coordinate of the element's bounds at the specified element size.
This method is typically used by layouts during a call to the
measure() method to predict what
the element position will be, if the element is resized to particular dimensions.
매개 변수
width:Number — The element's bounds width, or NaN to use the preferred width.
| |
height:Number — The element's bounds height, or NaN to use the preferred height.
| |
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true, the method returns
x coordinate of the element's bounding box top-left corner.
The bounding box is in element's parent coordinate space and is calculated
from the specified bounds size, layout position and layout transform matrix.
|
Number — The x coordinate of the element's bounds at the specified element size.
|
getBoundsYAtSize | () | 메서드 |
public function getBoundsYAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the y coordinate of the element's bounds at the specified element size.
This method is typically used by layouts during a call to
the measure() to predict what
the element position will be, if the element is resized to particular dimensions.
매개 변수
width:Number — The element's bounds width, or NaN to use the preferred width.
| |
height:Number — The element's bounds height, or NaN to use the preferred height.
| |
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true, the method returns
the y coordinate of the element's bounding box top-left corner.
The bounding box is in element's parent coordinate space and is calculated
from the specified bounds size, layout position and layout transform matrix.
|
Number — The y coordinate of the element's bounds at the specified element size.
|
getLayoutBoundsHeight | () | 메서드 |
public function getLayoutBoundsHeight(postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the element's layout height. This is the size that the element uses to draw on screen.
매개 변수
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true, the method returns
the element's bounding box width. The bounding box is in the element's parent
coordinate space and is calculated from the element's layout size and
layout transform matrix.
|
Number — The element's layout height.
|
getLayoutBoundsWidth | () | 메서드 |
public function getLayoutBoundsWidth(postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the element's layout width. This is the size that the element uses to draw on screen.
매개 변수
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true, the method returns
the element's bounding box width. The bounding box is in element's parent
coordinate space and is calculated from the element's layout size and
layout transform matrix.
|
Number — The element's layout width.
|
getLayoutBoundsX | () | 메서드 |
public function getLayoutBoundsX(postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the x coordinate that the element uses to draw on screen.
매개 변수
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true, the method returns
x coordinate of the element's bounding box top-left corner.
The bounding box is in the element's parent coordinate space and is calculated
from the element's layout size, layout position and layout transform matrix.
|
Number — The x coordinate that the element uses to draw on screen.
|
getLayoutBoundsY | () | 메서드 |
public function getLayoutBoundsY(postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the y coordinate that the element uses to draw on screen.
매개 변수
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true, the method returns
y coordinate of the element's bounding box top-left corner.
The bounding box is in the element's parent coordinate space and is calculated
from the element's layout size, layout position, and layout transform matrix.
|
Number — The y coordinate that the element uses to draw on screen.
|
getLayoutMatrix | () | 메서드 |
public function getLayoutMatrix():Matrix| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the transform matrix that is used to calculate the component's layout relative to its siblings.
This matrix is typically defined by the
component's 2D properties such as x, y,
rotation, scaleX, scaleY,
transformX, and transformY.
Some components may have additional transform properties that
are applied on top of the layout matrix to determine the final,
computed matrix. For example UIComponent
defines the offsets property.
Matrix — The layout transform Matrix for this element.
Do not directly modify the return value; call the setLayoutMatrix() method instead.
|
getLayoutMatrix3D | () | 메서드 |
public function getLayoutMatrix3D():Matrix3D| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the layout transform Matrix3D for this element.
This matrix is typically defined by the
component's transform properties such as x, y,
z, rotationX, rotationY,
rotationZ, scaleX, scaleY,
scaleZ, transformX, and transformY.
Some components may have additional transform properties that
are applied on top of the layout matrix to determine the final,
computed matrix. For example UIComponent
defines the offsets property.
Matrix3D — The layout transform Matrix3D for this element.
Do not directly modify the return value but call the setLayoutMatrix() method instead.
|
getMaxBoundsHeight | () | 메서드 |
public function getMaxBoundsHeight(postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the element's maximum height.
매개 변수
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true, the method returns
the element's bounding box height. The bounding box is in the element's parent
coordinate space and is calculated from the element's maximum size and
layout transform matrix.
|
Number — The element's maximum height.
|
getMaxBoundsWidth | () | 메서드 |
public function getMaxBoundsWidth(postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the element's maximum width.
매개 변수
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true, the method returns
the element's bounding box width. The bounding box is in the element's parent
coordinate space and is calculated from the element's maximum size and
layout transform matrix.
|
Number — The element's maximum width.
|
getMinBoundsHeight | () | 메서드 |
public function getMinBoundsHeight(postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the element's minimum height.
매개 변수
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true,
the method returns the element's bounding box height.
The bounding box is in the element's parent
coordinate space and is calculated from the element's minimum size and
layout transform matrix.
|
Number — The element's maximum height.
|
getMinBoundsWidth | () | 메서드 |
public function getMinBoundsWidth(postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the element's minimum width.
매개 변수
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true,
the method returns the element's bounding box width.
The bounding box is in the element's parent
coordinate space and is calculated from the element's minimum size and
layout transform matrix.
|
Number — The element's maximum width.
|
getPreferredBoundsHeight | () | 메서드 |
public function getPreferredBoundsHeight(postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the element's preferred height.
매개 변수
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true,
the method returns the element's bounding box height.
The bounding box is in the element's parent
coordinate space and is calculated from the element's preferred size and
layout transform matrix.
|
Number — Returns the element's preferred height. Preferred height is
usually based on the default element size and any explicit overrides.
For UIComponent this is the same value as returned by
the getExplicitOrMeasuredHeight() method.
|
getPreferredBoundsWidth | () | 메서드 |
public function getPreferredBoundsWidth(postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the element's preferred width.
매개 변수
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true,
the method returns the element's bounding box width.
The bounding box is in the element's parent
coordinate space and is calculated from the element's preferred size and
layout transform matrix.
|
Number — Returns the element's preferred width. Preferred width is
usually based on the default element size and any explicit overrides.
For UIComponent this is the same value as returned by
the getExplicitOrMeasuredWidth() method.
|
initialized | () | 메서드 |
public function initialized(document:Object, id:String):void| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Called automatically by the MXML compiler when the SpriteVisualElement
is created using an MXML tag.
If you create the SpriteVisualElement through ActionScript you
must set the id property manually.
매개 변수
document:Object — The MXML document containing this SpriteVisualElement (not used).
| |
id:String — The MXML id for this SpriteVisualElement.
|
invalidateLayoutDirection | () | 메서드 |
public function invalidateLayoutDirection():void| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4.5 |
| 런타임 버전: | Flash Player 10, AIR 2.5 |
An element must call this method when its layoutDirection changes or when its parent's layoutDirection changes. If they differ, this method is responsible for mirroring the element’s contents and for updating the element’s post-layout transform so that descendants inherit a mirrored coordinate system. IVisualElements typically implement mirroring by using postLayoutTransformOffsets to scale the X axis by -1 and to translate the x coordinate of the origin by the element's width. The net effect of this "mirror" transform is to reverse the direction in which the X axis increases without changing the element's location relative to its parent's origin.
invalidateParentSizeAndDisplayList | () | 메서드 |
protected function invalidateParentSizeAndDisplayList():void| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Invalidates parent size and display list if this object affects its layout (includeInLayout is true).
setLayoutBoundsPosition | () | 메서드 |
public function setLayoutBoundsPosition(newBoundsX:Number, newBoundsY:Number, postLayoutTransform:Boolean = true):void| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Sets the coordinates that the element uses to draw on screen.
Note that calls to the setLayoutBoundSize() method can affect the layout position, so
call setLayoutBoundPosition() after calling setLayoutBoundSize().
매개 변수
newBoundsX:Number — The x-coordinate of the top-left corner of the bounding box.
| |
newBoundsY:Number — The y-coordinate of the top-left corner of the bounding box.
| |
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true,
the element is positioned in such a way that the top-left corner of its bounding box is (x, y).
The bounding box is in the element's parent coordinate space and is calculated
from the element's layout size, layout position and layout transform matrix.
|
setLayoutBoundsSize | () | 메서드 |
public function setLayoutBoundsSize(width:Number, height:Number, postLayoutTransform:Boolean = true):void| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Sets the layout size of the element. This is the size that the element uses to draw on screen.
If the width and/or height parameters are left unspecified (NaN),
Flex sets the element's layout size to its preferred width and/or preferred height.
Note that calls to the setLayoutBoundSize() method can affect the layout position, so
call setLayoutBoundPosition() after calling setLayoutBoundSize().
매개 변수
width:Number — The element's layout width.
| |
height:Number — The element's layout height.
| |
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true, the specified sizes
are those of the element's bounding box.
The bounding box is in the element's parent coordinate space and is calculated
from the element's layout size, layout position, and layout transform matrix.
|
setLayoutMatrix | () | 메서드 |
public function setLayoutMatrix(value:Matrix, invalidateLayout:Boolean):void| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Sets the transform Matrix that is used to calculate the component's layout size and position relative to its siblings.
The matrix is typically defined by the
component's 2D properties such as x, y,
rotation, scaleX, scaleY,
transformX, and transformY.
Some components may have additional transform properties that
are applied on top of the layout matrix to determine the final,
computed matrix. For example UIComponent
defines the offsets.
Note that layout Matrix is factored in the getPreferredSize(),
getMinSize(), getMaxSize(), getLayoutSize()
methods when computed in parent coordinates
as well as in getLayoutPosition() in both parent and child coordinates.
Layouts that calculate the transform matrix explicitly typically call
this method and work with sizes in child coordinates.
Layouts calling this method pass false
to the invalidateLayout() method so that a subsequent layout pass is not
triggered.
매개 변수
value:Matrix — The matrix.
| |
invalidateLayout:Boolean — true to cause the parent container
to re-layout its children. You typically pass true
to the invalidateLayout() method.
|
setLayoutMatrix3D | () | 메서드 |
public function setLayoutMatrix3D(value:Matrix3D, invalidateLayout:Boolean):void| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Sets the transform Matrix3D that is used to calculate the component's layout size and position relative to its siblings.
This matrix is typically defined by the
component's transform properties such as x, y,
z, rotationX, rotationY,
rotationZ, scaleX, scaleY,
scaleZ, transformX, and transformY.
Some components may have additional transform properties that
are applied on top of the layout matrix to determine the final,
computed matrix. For example UIComponent
defines the offsets property.
Note that layout Matrix3D is factored in the getPreferredSize(),
getMinSize(), getMaxSize(), getLayoutSize()
when computed in parent coordinates
as well as in getLayoutPosition() in both parent and child coordinates.
Layouts that calculate the transform matrix explicitly typically call
this method and work with sizes in child coordinates.
Layouts calling this method pass false
to the invalidateLayout() method so that a subsequent layout pass is not
triggered.
매개 변수
value:Matrix3D — The matrix.
| |
invalidateLayout:Boolean — true to cause the parent container
to re-layout its children. You typically pass true
to the invalidateLayout() method.
|
transformAround | () | 메서드 |
public function transformAround(transformCenter:Vector3D, scale:Vector3D = null, rotation:Vector3D = null, translation:Vector3D = null, postLayoutScale:Vector3D = null, postLayoutRotation:Vector3D = null, postLayoutTranslation:Vector3D = null, invalidateLayout:Boolean = true):void| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
A utility method to update the rotation, scale, and translation of the transform while keeping a particular point, specified in the component's own coordinate space, fixed in the parent's coordinate space. This function will assign the rotation, scale, and translation values provided, then update the x/y/z properties as necessary to keep the transform center fixed.
매개 변수
transformCenter:Vector3D — The point, in the component's own coordinates,
to keep fixed relative to its parent.
| |
scale:Vector3D (default = null) — The new values for the scale of the transform.
| |
rotation:Vector3D (default = null) — the new values for the rotation of the transform
| |
translation:Vector3D (default = null) — The new values for the translation of the transform.
| |
postLayoutScale:Vector3D (default = null) — The new values for the post-layout scale
of the transform.
| |
postLayoutRotation:Vector3D (default = null) — The new values for the post-layout rotation
of the transform.
| |
postLayoutTranslation:Vector3D (default = null) — The new values for the post-layout translation
of the transform.
| |
invalidateLayout:Boolean (default = true) — If true, the parent container size and display are
invalidated. Layouts calling this method pass false
so that a subsequent layout pass is not triggered.
|
transformHeightForLayout | () | 메서드 |
protected function transformHeightForLayout(width:Number, height:Number, postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Transform the element's size.
This method calculates the bounding box of the graphic element as if the element’s width/height properties were set to the passed in values. The method returns the height of the bounding box.
In general, this method is not for use by developers. Instead, you should implement or override the methods defined by the ILayoutElement interface.
매개 변수
width:Number — The target pre-transform width.
| |
height:Number — The target pre-transform height.
| |
postLayoutTransform:Boolean (default = true) — When true, the returned bounding box is around the transformed element in its parent space (the element's transform is applied first).
|
Number — Returns the transformed height. Transformation is this element's
layout transformation matrix.
|
transformPointToParent | () | 메서드 |
public function transformPointToParent(localPosition:Vector3D, position:Vector3D, postLayoutPosition:Vector3D):void| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
A utility method to transform a point specified in the local
coordinates of this object to its location in the object's parent's
coordinates. The pre-layout and post-layout result will be set on
the position and postLayoutPosition
parameters, if they are non-null.
매개 변수
localPosition:Vector3D — The point to be transformed, specified in the
local coordinates of the object.
| |
position:Vector3D — A Vector3D point that will hold the pre-layout
result. If null, the parameter is ignored.
| |
postLayoutPosition:Vector3D — A Vector3D point that will hold the post-layout
result. If null, the parameter is ignored.
|
transformWidthForLayout | () | 메서드 |
protected function transformWidthForLayout(width:Number, height:Number, postLayoutTransform:Boolean = true):Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 4 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Transform the element's size.
This method calculates the bounding box of the graphic element as if the element’s width/height properties were set to the passed in values. The method returns the width of the bounding box.
In general, this method is not for use by developers. Instead, you should implement or override the methods defined by the ILayoutElement interface.
매개 변수
width:Number — The target pre-transform width.
| |
height:Number — The target pre-transform height.
| |
postLayoutTransform:Boolean (default = true) — When true, the returned bounding box is around the transformed element in its parent space (the element's transform is applied first).
|
Number — Returns the transformed width. Transformation is this element's
layout transformation matrix.
|
Tue Jun 12 2018, 03:17 PM Z
상속되는 공용 속성 숨기기
상속되는 공용 속성 표시