| 패키지 | org.osmf.layout |
| 클래스 | public class LayoutMetadata |
| 상속 | LayoutMetadata Metadata EventDispatcher Object |
| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | OSMF 1.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
| 속성 | 정의 주체 | ||
|---|---|---|---|
| bottom : Number
Defines how many pixels should be present between the bottom
side of the target's bounding box, and the bottom side
of its container. | LayoutMetadata | ||
![]() | constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | |
| height : Number
Defines the desired vertical offset of a target expressed in
pixels. | LayoutMetadata | ||
| horizontalAlign : String
Defines the desired horizontal alignment to be applied to the
target when layout of the target leaves surplus horizontal blank
space. | LayoutMetadata | ||
| includeInLayout : Boolean
When set to true (default), the target will participate in the layout
process. | LayoutMetadata | ||
| index : Number
Defines the desired position of the target in the display list
of its context. | LayoutMetadata | ||
![]() | keys : Vector.<String> [읽기 전용]
The keys stored in this Metadata object. | Metadata | |
| layoutMode : String
When set to LayoutMode.HORIZONTAL or LayoutMode.VERTICAL,
then the renderer will ignore its target's positioning settings (either
influencing X or Y, depending on the layoutMode chosen), laying out its elements
adjacent in the index specified by the 'index' property. | LayoutMetadata | ||
| left : Number
Defines the desired horizontal offset of the target in pixels. | LayoutMetadata | ||
| paddingBottom : Number
Defines the thickness of the blank space that is to be placed
at the target's bottom side. | LayoutMetadata | ||
| paddingLeft : Number
Defines the thickness of the blank space that is to be placed
at the target's left-hand side. | LayoutMetadata | ||
| paddingRight : Number
Defines the thickness of the blank space that is to be placed
at the target's right-hand side. | LayoutMetadata | ||
| paddingTop : Number
Defines the thickness of the blank space that is to be placed
at the target's top side. | LayoutMetadata | ||
| percentHeight : Number
Defines the desired height of a target expressed as
a percentage of its container's height. | LayoutMetadata | ||
| percentWidth : Number
Defines the desired width of a target expressed as
a percentage of its container's width. | LayoutMetadata | ||
| percentX : Number
Defines the desired horizontal offset of a target expressed as
a percentage of its container's width. | LayoutMetadata | ||
| percentY : Number
Defines the desired vertical offset of a target expressed as
a percentage of its container's height. | LayoutMetadata | ||
| right : Number
Defines how many pixels should be present between the right-hand
side of the target's bounding box, and the right-hand side
of its container. | LayoutMetadata | ||
| scaleMode : String
Defines the desired scaleMode to be applied to the target. | LayoutMetadata | ||
| snapToPixel : Boolean
When set to true, the target's calculated position and size will
be rounded. | LayoutMetadata | ||
| top : Number
Defines the desired vertical offset of the target in pixels. | LayoutMetadata | ||
| verticalAlign : String
Defines the desired vertical alignment to be applied to the
target when layout of the target leaves surplus vertical blank
space. | LayoutMetadata | ||
| width : Number
Defines the desired horizontal size of a target expressed in
pixels. | LayoutMetadata | ||
| x : Number
Defines the desired horizontal offset of a target expressed in
pixels. | LayoutMetadata | ||
| y : Number
Defines the desired vertical offset of a target expressed in
pixels. | LayoutMetadata | ||
| 메서드 | 정의 주체 | ||
|---|---|---|---|
Constructor. | LayoutMetadata | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | EventDispatcher | |
![]() |
Stores the specified value in this Metadata object, using the specified
key. | Metadata | |
![]() |
이벤트를 이벤트 흐름으로 전달합니다. | EventDispatcher | |
![]() |
Returns the value associate with the specified key. | Metadata | |
![]() |
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | |
![]() |
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | |
![]() |
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | |
![]() |
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | |
![]() |
EventDispatcher 객체에서 리스너를 제거합니다. | EventDispatcher | |
![]() |
Removes the value associated with the specified key from this
Metadata object. | Metadata | |
![]() |
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | |
![]() |
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 프리미티브 값을 반환합니다. | Object | |
![]() |
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | |
| 상수 | 정의 주체 | ||
|---|---|---|---|
| LAYOUT_NAMESPACE : String = "http://www.osmf.org/layout/1.0" [정적]
Namespace URL for LayoutMetadata objects when added to a MediaElement or
MediaContainer. | LayoutMetadata | ||
bottom | 속성 |
bottom:Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | OSMF 1.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Defines how many pixels should be present between the bottom side of the target's bounding box, and the bottom side of its container.
구현
public function get bottom():Number public function set bottom(value:Number):voidheight | 속성 |
horizontalAlign | 속성 |
horizontalAlign:String| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | OSMF 1.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Defines the desired horizontal alignment to be applied to the target when layout of the target leaves surplus horizontal blank space.
구현
public function get horizontalAlign():String public function set horizontalAlign(value:String):voidincludeInLayout | 속성 |
includeInLayout:Boolean| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | OSMF 1.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
When set to true (default), the target will participate in the layout process. When set to false, it will be ignored.
구현
public function get includeInLayout():Boolean public function set includeInLayout(value:Boolean):voidindex | 속성 |
layoutMode | 속성 |
layoutMode:String| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | OSMF 1.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
When set to LayoutMode.HORIZONTAL or LayoutMode.VERTICAL, then the renderer will ignore its target's positioning settings (either influencing X or Y, depending on the layoutMode chosen), laying out its elements adjacent in the index specified by the 'index' property.
구현
public function get layoutMode():String public function set layoutMode(value:String):voidleft | 속성 |
paddingBottom | 속성 |
paddingLeft | 속성 |
paddingRight | 속성 |
paddingTop | 속성 |
percentHeight | 속성 |
percentWidth | 속성 |
percentX | 속성 |
percentY | 속성 |
right | 속성 |
right:Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | OSMF 1.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Defines how many pixels should be present between the right-hand side of the target's bounding box, and the right-hand side of its container.
구현
public function get right():Number public function set right(value:Number):voidscaleMode | 속성 |
snapToPixel | 속성 |
top | 속성 |
verticalAlign | 속성 |
verticalAlign:String| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | OSMF 1.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Defines the desired vertical alignment to be applied to the target when layout of the target leaves surplus vertical blank space.
구현
public function get verticalAlign():String public function set verticalAlign(value:String):voidwidth | 속성 |
x | 속성 |
y | 속성 |
LayoutMetadata | () | 생성자 |
public function LayoutMetadata()| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | OSMF 1.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Constructor.
LAYOUT_NAMESPACE | 상수 |
public static const LAYOUT_NAMESPACE:String = "http://www.osmf.org/layout/1.0"| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | OSMF 1.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Namespace URL for LayoutMetadata objects when added to a MediaElement or MediaContainer.
package org.osmf.layout
{
import flash.display.Sprite;
import org.osmf.media.MediaPlayerSprite;
import org.osmf.media.URLResource;
public class LayoutMetadataExample extends Sprite
{
public function LayoutMetadataExample()
{
var sprite:MediaPlayerSprite = new MediaPlayerSprite();
addChild(sprite);
sprite.resource = new URLResource("http://mediapm.edgesuite.net/strobe/content/test/AFaerysTale_sylviaApostol_640_500_short.flv");
// Construct a metadata instance, and set an absolute width and height of
// 100 pixels:
var layoutMetadata:LayoutMetadata = new LayoutMetadata();
layoutMetadata.width = 100;
layoutMetadata.height = 100;
// Apply the layout metadata to the media element at hand, resulting
// in the video to be shown at 100x100 pixels:
sprite.media.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, layoutMetadata);
}
}
}
Tue Jun 12 2018, 03:17 PM Z
상속되는 공용 속성 숨기기
상속되는 공용 속성 표시