| Paket | org.osmf.layout |
| Sınıf | public class LayoutMetadata |
| Miras Alma | LayoutMetadata Metadata EventDispatcher Object |
| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
| Özellik | Tanımlayan: | ||
|---|---|---|---|
| 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
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | 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> [salt okunur]
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 | ||
| Yöntem | Tanımlayan: | ||
|---|---|---|---|
Constructor. | LayoutMetadata | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
EventDispatcher nesnesi olan bir olay dinleyici nesnesini, dinleyicinin bir olayın bildirimini alması için kaydeder. | EventDispatcher | |
![]() |
Stores the specified value in this Metadata object, using the specified
key. | Metadata | |
![]() |
Olay akışına bir olay gönderir. | EventDispatcher | |
![]() |
Returns the value associate with the specified key. | Metadata | |
![]() |
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder. | EventDispatcher | |
![]() |
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | |
![]() |
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | |
![]() |
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | |
![]() |
EventDispatcher nesnesinden bir dinleyiciyi kaldırır. | EventDispatcher | |
![]() |
Removes the value associated with the specified key from this
Metadata object. | Metadata | |
![]() |
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | |
![]() |
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | |
![]() |
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | |
![]() |
Belirtilen nesnenin temel değerini döndürür. | Object | |
![]() |
Bir olay dinleyicisinin bu EventDispatcher nesnesiyle mi, yoksa onun belirtilen olay türüne yönelik üst öğelerinden biriyle mi kayıtlı olduğunu kontrol eder. | EventDispatcher | |
| Sabit | Tanımlayan: | ||
|---|---|---|---|
| LAYOUT_NAMESPACE : String = "http://www.osmf.org/layout/1.0" [statik]
Namespace URL for LayoutMetadata objects when added to a MediaElement or
MediaContainer. | LayoutMetadata | ||
bottom | özellik |
bottom:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get bottom():Number public function set bottom(value:Number):voidheight | özellik |
horizontalAlign | özellik |
horizontalAlign:String| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get horizontalAlign():String public function set horizontalAlign(value:String):voidincludeInLayout | özellik |
includeInLayout:Boolean| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get includeInLayout():Boolean public function set includeInLayout(value:Boolean):voidindex | özellik |
layoutMode | özellik |
layoutMode:String| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get layoutMode():String public function set layoutMode(value:String):voidleft | özellik |
paddingBottom | özellik |
paddingBottom:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Defines the thickness of the blank space that is to be placed at the target's bottom side.
Uygulama
public function get paddingBottom():Number public function set paddingBottom(value:Number):voidpaddingLeft | özellik |
paddingLeft:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Defines the thickness of the blank space that is to be placed at the target's left-hand side.
Uygulama
public function get paddingLeft():Number public function set paddingLeft(value:Number):voidpaddingRight | özellik |
paddingRight:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Defines the thickness of the blank space that is to be placed at the target's right-hand side.
Uygulama
public function get paddingRight():Number public function set paddingRight(value:Number):voidpaddingTop | özellik |
paddingTop:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Defines the thickness of the blank space that is to be placed at the target's top side.
Uygulama
public function get paddingTop():Number public function set paddingTop(value:Number):voidpercentHeight | özellik |
percentHeight:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Defines the desired height of a target expressed as a percentage of its container's height.
Uygulama
public function get percentHeight():Number public function set percentHeight(value:Number):voidpercentWidth | özellik |
percentWidth:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Defines the desired width of a target expressed as a percentage of its container's width.
Uygulama
public function get percentWidth():Number public function set percentWidth(value:Number):voidpercentX | özellik |
percentX:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Defines the desired horizontal offset of a target expressed as a percentage of its container's width.
Uygulama
public function get percentX():Number public function set percentX(value:Number):voidpercentY | özellik |
percentY:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Defines the desired vertical offset of a target expressed as a percentage of its container's height.
Uygulama
public function get percentY():Number public function set percentY(value:Number):voidright | özellik |
right:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get right():Number public function set right(value:Number):voidscaleMode | özellik |
scaleMode:String| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Defines the desired scaleMode to be applied to the target. Possible values are on org.osmf.layout.ScaleMode.
Uygulama
public function get scaleMode():String public function set scaleMode(value:String):voidsnapToPixel | özellik |
top | özellik |
verticalAlign | özellik |
verticalAlign:String| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get verticalAlign():String public function set verticalAlign(value:String):voidwidth | özellik |
x | özellik |
y | özellik |
LayoutMetadata | () | Yapıcı |
public function LayoutMetadata()| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Constructor.
LAYOUT_NAMESPACE | Sabit |
public static const LAYOUT_NAMESPACE:String = "http://www.osmf.org/layout/1.0"| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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, 01:09 PM Z
Miras Alınan Genel Özellikleri Gizle
Miras Alınan Genel Özellikleri Göster