| Package | jp.nium.display |
| Class | public class ExSprite |
| Inheritance | ExSprite flash.display.Sprite |
| Implements | IDisplayObjectContainer, IIdGroup, jp.nium.core.impls.IExDisplayObjectContainer |
| Subclasses | CastSprite |
// ExSprite インスタンスを作成する var sp:ExSprite = new ExSprite();
See also
| Property | Defined by | ||
|---|---|---|---|
| children : Array [read-only]
子ディスプレイオブジェクトが保存されている配列です。
インデックス値が断続的に指定可能であるため、getChildAt() ではなくこのプロパティを使用して子ディスプレイオブジェクト走査を行います。
この配列を操作することで元の配列を変更することはできません。
The array that saves child display objects.
| ExSprite | ||
| className : String [read-only]
インスタンスのクラス名を取得します。
Indicates the instance className of the IExDisplayObject.
| ExSprite | ||
| group : String
インスタンスのグループ名を取得または設定します。
Indicates the instance group of the IExDisplayObject.
| ExSprite | ||
| id : String
インスタンスの識別子を取得または設定します。
Indicates the instance id of the IExDisplayObject.
| ExSprite | ||
| isDragging : Boolean [read-only]
startDrag() メソッドを使用したドラッグ処理を行っている最中かどうかを取得します。
Returns if the drag process which uses startDrag() method is executing.
| ExSprite | ||
| useChildIndexer : Boolean [read-only]
| ExSprite | ||
| Method | Defined by | ||
|---|---|---|---|
|
ExSprite(initObject:Object = null)
新しい ExSprite インスタンスを作成します。
Creates a new ExSprite object.
| ExSprite | ||
|
addChild(child:DisplayObject):DisplayObject
この DisplayObjectContainer インスタンスに子 DisplayObject インスタンスを追加します。
Adds a child DisplayObject instance to this DisplayObjectContainer instance.
| ExSprite | ||
|
addChildAt(child:DisplayObject, index:int):DisplayObject
この DisplayObjectContainer インスタンスの指定されたインデックス位置に子 DisplayObject インスタンスを追加します。
Adds a child DisplayObject instance to this DisplayObjectContainer instance.
| ExSprite | ||
|
addChildAtAbove(child:DisplayObject, index:int):DisplayObject
この DisplayObjectContainer インスタンスの指定されたインデックス位置に子 DisplayObject インスタンスを追加します。
Adds a child DisplayObject instance to this DisplayObjectContainer instance.
| ExSprite | ||
|
getChildAt(index:int):DisplayObject
指定のインデックス位置にある子表示オブジェクトオブジェクトを返します。
Returns the child display object instance that exists at the specified index.
| ExSprite | ||
|
getChildIndex(child:DisplayObject):int
子 DisplayObject インスタンスのインデックス位置を返します。
Returns the index position of a child DisplayObject instance.
| ExSprite | ||
|
removeAllChildren():void
DisplayObjectContainer に追加されている全ての子 DisplayObject インスタンスを削除します。
Remove the whole child DisplayObject instance which added to the DisplayObjectContainer.
| ExSprite | ||
|
removeChild(child:DisplayObject):DisplayObject
DisplayObjectContainer インスタンスの子リストから指定の DisplayObject インスタンスを削除します。
Removes the specified child DisplayObject instance from the child list of the DisplayObjectContainer instance.
| ExSprite | ||
|
removeChildAt(index:int):DisplayObject
DisplayObjectContainer の子リストの指定されたインデックス位置から子 DisplayObject インスタンスを削除します。
Removes a child DisplayObject from the specified index position in the child list of the DisplayObjectContainer.
| ExSprite | ||
|
setChildIndex(child:DisplayObject, index:int):void
表示オブジェクトコンテナの既存の子の位置を変更します。
Changes the position of an existing child in the display object container.
| ExSprite | ||
|
setChildIndexAbove(child:DisplayObject, index:int):void
表示オブジェクトコンテナの既存の子の位置を変更します。
Changes the position of an existing child in the display object container.
| ExSprite | ||
|
setProperties(parameters:Object):DisplayObject
インスタンスに対して、複数のプロパティを一括設定します。
Setup the several instance properties.
| ExSprite | ||
|
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
指定されたスプライトをユーザーがドラッグできるようにします。
Allow the user to drag the specified sprite.
| ExSprite | ||
|
stopDrag():void
startDrag() メソッドを終了します。
Ends the startDrag() method.
| ExSprite | ||
|
swapChildren(child1:DisplayObject, child2:DisplayObject):void
指定された 2 つの子オブジェクトの z 順序(重ね順)を入れ替えます。
Swaps the z-order (front-to-back order) of the two specified child objects.
| ExSprite | ||
|
swapChildrenAt(index1:int, index2:int):void
子リスト内の指定されたインデックス位置に該当する 2 つの子オブジェクトの z 順序(重ね順)を入れ替えます。
Swaps the z-order (front-to-back order) of the child objects at the two specified index positions in the child list.
| ExSprite | ||
|
toString():String
指定されたオブジェクトのストリング表現を返します。
Returns the string representation of the specified object.
| ExSprite | ||
| children | property |
children:Array [read-only]子ディスプレイオブジェクトが保存されている配列です。 インデックス値が断続的に指定可能であるため、getChildAt() ではなくこのプロパティを使用して子ディスプレイオブジェクト走査を行います。 この配列を操作することで元の配列を変更することはできません。 The array that saves child display objects. Because the index value can specify intermittently, it scans the child display object by not using getChildAt() but using this property. It can not change the original array by operating this array.
Implementation public function get children():Array
| className | property |
className:String [read-only]インスタンスのクラス名を取得します。 Indicates the instance className of the IExDisplayObject.
Implementation public function get className():String
| group | property |
group:String [read-write]インスタンスのグループ名を取得または設定します。 Indicates the instance group of the IExDisplayObject.
Implementation public function get group():String
public function set group(value:String):void
See also
| id | property |
id:String [read-write]インスタンスの識別子を取得または設定します。 Indicates the instance id of the IExDisplayObject.
Implementation public function get id():String
public function set id(value:String):void
See also
| isDragging | property |
isDragging:Boolean [read-only]startDrag() メソッドを使用したドラッグ処理を行っている最中かどうかを取得します。 Returns if the drag process which uses startDrag() method is executing.
Implementation public function get isDragging():Boolean
See also
| useChildIndexer | property |
useChildIndexer:Boolean [read-only]Implementation
public function get useChildIndexer():Boolean
| ExSprite | () | constructor |
public function ExSprite(initObject:Object = null)新しい ExSprite インスタンスを作成します。 Creates a new ExSprite object.
ParametersinitObject:Object (default = null) — 設定したいプロパティを含んだオブジェクトです。
|
| addChild | () | method |
public override function addChild(child:DisplayObject):DisplayObjectこの DisplayObjectContainer インスタンスに子 DisplayObject インスタンスを追加します。 Adds a child DisplayObject instance to this DisplayObjectContainer instance.
Parameterschild:DisplayObject — 対象の DisplayObjectContainer インスタンスの子として追加する DisplayObject インスタンスです。
The DisplayObject instance to add as a child of this DisplayObjectContainer instance.
|
DisplayObject — child パラメータで渡す DisplayObject インスタンスです。
The DisplayObject instance that you pass in the child parameter.
|
| addChildAt | () | method |
public override function addChildAt(child:DisplayObject, index:int):DisplayObjectこの DisplayObjectContainer インスタンスの指定されたインデックス位置に子 DisplayObject インスタンスを追加します。 Adds a child DisplayObject instance to this DisplayObjectContainer instance.
Parameterschild:DisplayObject — 対象の DisplayObjectContainer インスタンスの子として追加する DisplayObject インスタンスです。
The DisplayObject instance to add as a child of this DisplayObjectContainer instance.
|
|
index:int — 子を追加するインデックス位置です。
The index position to which the child is added. If you specify a currently occupied index position, the child object that exists at that position and all higher positions are moved up one position in the child list.
|
DisplayObject — child パラメータで渡す DisplayObject インスタンスです。
The DisplayObject instance that you pass in the child parameter.
|
| addChildAtAbove | () | method |
public function addChildAtAbove(child:DisplayObject, index:int):DisplayObjectこの DisplayObjectContainer インスタンスの指定されたインデックス位置に子 DisplayObject インスタンスを追加します。 Adds a child DisplayObject instance to this DisplayObjectContainer instance.
Parameterschild:DisplayObject — 対象の DisplayObjectContainer インスタンスの子として追加する DisplayObject インスタンスです。
The DisplayObject instance to add as a child of this DisplayObjectContainer instance.
|
|
index:int — 子を追加するインデックス位置です。
The index position to which the child is added. If you specify a currently occupied index position, the child object that exists at that position and all higher positions are moved up one position in the child list.
|
DisplayObject — child パラメータで渡す DisplayObject インスタンスです。
The DisplayObject instance that you pass in the child parameter.
|
| getChildAt | () | method |
public override function getChildAt(index:int):DisplayObject指定のインデックス位置にある子表示オブジェクトオブジェクトを返します。 Returns the child display object instance that exists at the specified index.
Parametersindex:int — 子 DisplayObject インスタンスのインデックス位置です。
The index position of the child object.
|
DisplayObject — 指定されたインデックス位置にある子 DisplayObject インスタンスです。
The child display object at the specified index position.
|
| getChildIndex | () | method |
public override function getChildIndex(child:DisplayObject):int子 DisplayObject インスタンスのインデックス位置を返します。 Returns the index position of a child DisplayObject instance.
Parameterschild:DisplayObject — 特定する子 DisplayObject インスタンスです。
The DisplayObject instance to identify.
|
int — 特定する子 DisplayObject インスタンスのインデックス位置です。
The index position of the child display object to identify.
|
| removeAllChildren | () | method |
public function removeAllChildren():voidDisplayObjectContainer に追加されている全ての子 DisplayObject インスタンスを削除します。 Remove the whole child DisplayObject instance which added to the DisplayObjectContainer.
| removeChild | () | method |
public override function removeChild(child:DisplayObject):DisplayObjectDisplayObjectContainer インスタンスの子リストから指定の DisplayObject インスタンスを削除します。 Removes the specified child DisplayObject instance from the child list of the DisplayObjectContainer instance.
Parameterschild:DisplayObject — 対象の DisplayObjectContainer インスタンスの子から削除する DisplayObject インスタンスです。
The DisplayObject instance to remove.
|
DisplayObject — child パラメータで渡す DisplayObject インスタンスです。
The DisplayObject instance that you pass in the child parameter.
|
| removeChildAt | () | method |
public override function removeChildAt(index:int):DisplayObjectDisplayObjectContainer の子リストの指定されたインデックス位置から子 DisplayObject インスタンスを削除します。 Removes a child DisplayObject from the specified index position in the child list of the DisplayObjectContainer.
Parametersindex:int — 削除する DisplayObject の子インデックスです。
The child index of the DisplayObject to remove.
|
DisplayObject — 削除された DisplayObject インスタンスです。
The DisplayObject instance that was removed.
|
| setChildIndex | () | method |
public override function setChildIndex(child:DisplayObject, index:int):void表示オブジェクトコンテナの既存の子の位置を変更します。 Changes the position of an existing child in the display object container.
Parameterschild:DisplayObject — インデックス番号を変更する子 DisplayObject インスタンスです。
The child DisplayObject instance for which you want to change the index number.
|
|
index:int — child インスタンスの結果のインデックス番号です。
The resulting index number for the child display object.
|
| setChildIndexAbove | () | method |
public function setChildIndexAbove(child:DisplayObject, index:int):void表示オブジェクトコンテナの既存の子の位置を変更します。 Changes the position of an existing child in the display object container.
Parameterschild:DisplayObject — インデックス番号を変更する子 DisplayObject インスタンスです。
The child DisplayObject instance for which you want to change the index number.
|
|
index:int — child インスタンスの結果のインデックス番号です。
The resulting index number for the child display object.
|
| setProperties | () | method |
public function setProperties(parameters:Object):DisplayObjectインスタンスに対して、複数のプロパティを一括設定します。 Setup the several instance properties.
Parametersparameters:Object — 設定したいプロパティを含んだオブジェクトです。
The object that contains the property to setup.
|
DisplayObject — 自身の参照です。
|
| startDrag | () | method |
public override function startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void指定されたスプライトをユーザーがドラッグできるようにします。 Allow the user to drag the specified sprite.
ParameterslockCenter:Boolean (default = false) — ドラッグ可能なスプライトが、マウス位置の中心にロックされるか (true)、ユーザーがスプライト上で最初にクリックした点にロックされるか (false) を指定します。
Specify the sprite which will be able to drag locks at the center of the mouse position(true) or the first point that the user clicked on the sprite(false).
|
|
bounds:Rectangle (default = null) — Sprite の制限矩形を指定する Sprite の親の座標を基準にした相対値です。
Specify the limitation rectangle of the sprite. It is a relative value based on parents' coordinates of the sprite.
|
See also
| stopDrag | () | method |
public override function stopDrag():voidstartDrag() メソッドを終了します。 Ends the startDrag() method.
See also
| swapChildren | () | method |
public override function swapChildren(child1:DisplayObject, child2:DisplayObject):void指定された 2 つの子オブジェクトの z 順序(重ね順)を入れ替えます。 Swaps the z-order (front-to-back order) of the two specified child objects.
Parameterschild1:DisplayObject — 先頭の子 DisplayObject インスタンスです。
The first child object.
|
|
child2:DisplayObject — 2 番目の子 DisplayObject インスタンスです。
The second child object.
|
| swapChildrenAt | () | method |
public override function swapChildrenAt(index1:int, index2:int):void子リスト内の指定されたインデックス位置に該当する 2 つの子オブジェクトの z 順序(重ね順)を入れ替えます。 Swaps the z-order (front-to-back order) of the child objects at the two specified index positions in the child list.
Parametersindex1:int — 最初の子 DisplayObject インスタンスのインデックス位置です。
The index position of the first child object.
|
|
index2:int — 2 番目の子 DisplayObject インスタンスのインデックス位置です。
The index position of the second child object.
|
| toString | () | method |
public override function toString():String指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
ReturnsString — オブジェクトのストリング表現です。
A string representation of the object.
|