| Package | jp.progression.data |
| Class | public class Resource |
| Implements | IIdGroup, jp.progression.core.impls.IDisposable |
// Resource インスタンスを作成する var res:Resource = new Resource();
See also
| Property | Defined by | ||
|---|---|---|---|
| bytes : ByteArray
保持している ByteArray 形式のデータを取得または設定します。
| Resource | ||
| bytesTotal : uint
読み込まれたデータの総ファイルサイズを取得または設定します。
| Resource | ||
| data : *
保持しているデータを取得または設定します。
| Resource | ||
| group : String
インスタンスのグループ名を取得または設定します。
Indicates the instance group of the Resource.
| Resource | ||
| id : String
インスタンスを表すユニークな識別子を取得または設定します。
| Resource | ||
| Method | Defined by | ||
|---|---|---|---|
|
Resource(id:String, data:ByteArray, bytes:uint = null, bytesTotal:Object = 0, initObject:* = null)
新しい Resource インスタンスを作成します。
Creates a new Resource object.
| Resource | ||
|
dispose():void
保持しているデータを解放します。
| Resource | ||
|
toBitmapData():BitmapData
指定されたオブジェクトの BitmapData 表現を返します。
Returns the BitmapData representation of the specified object.
| Resource | ||
|
toByteArray():ByteArray
指定されたオブジェクトの BitmapData 表現を返します。
Returns the BitmapData representation of the specified object.
| Resource | ||
|
toLoader():Loader
指定されたオブジェクトの Loader 表現を返します。
Returns the Loader representation of the specified object.
| Resource | ||
|
toSound():Sound
指定されたオブジェクトの Sound 表現を返します。
Returns the Sound representation of the specified object.
| Resource | ||
|
toString():String
指定されたオブジェクトのストリング表現を返します。
Returns the string representation of the specified object.
| Resource | ||
|
toXML():XML
指定されたオブジェクトの XML 表現を返します。
Returns the XML representation of the specified object.
| Resource | ||
| bytes | property |
bytes:ByteArray [read-write]保持している ByteArray 形式のデータを取得または設定します。
Implementation public function get bytes():ByteArray
public function set bytes(value:ByteArray):void
| bytesTotal | property |
bytesTotal:uint [read-write]読み込まれたデータの総ファイルサイズを取得または設定します。
Implementation public function get bytesTotal():uint
public function set bytesTotal(value:uint):void
| data | property |
data:* [read-write]保持しているデータを取得または設定します。
Implementation public function get data():*
public function set data(value:*):void
| group | property |
group:String [read-write]インスタンスのグループ名を取得または設定します。 Indicates the instance group of the Resource.
Implementation public function get group():String
public function set group(value:String):void
See also
| id | property |
id:String [read-write]インスタンスを表すユニークな識別子を取得または設定します。
Implementation public function get id():String
public function set id(value:String):void
See also
| Resource | () | constructor |
public function Resource(id:String, data:ByteArray, bytes:uint = null, bytesTotal:Object = 0, initObject:* = null)新しい Resource インスタンスを作成します。 Creates a new Resource object.
Parametersid:String — インスタンスを表すユニークな識別子です。
|
|
data:ByteArray — 保持したいデータです。
|
|
bytes:uint (default = null) — 保持したい ByteArray 形式のデータです。
|
|
bytesTotal:Object (default = 0) — 読み込まれたデータの総ファイルサイズです。
|
|
initObject:* (default = null) — 設定したいプロパティを含んだオブジェクトです。
|
| dispose | () | method |
public function dispose():void保持しているデータを解放します。
| toBitmapData | () | method |
public function toBitmapData():BitmapData指定されたオブジェクトの BitmapData 表現を返します。 Returns the BitmapData representation of the specified object.
ReturnsBitmapData — オブジェクトの BitmapData 表現です。
A BitmapData representation of the object.
|
| toByteArray | () | method |
public function toByteArray():ByteArray指定されたオブジェクトの BitmapData 表現を返します。 Returns the BitmapData representation of the specified object.
ReturnsByteArray — オブジェクトの BitmapData 表現です。
A BitmapData representation of the object.
|
| toLoader | () | method |
public function toLoader():Loader指定されたオブジェクトの Loader 表現を返します。 Returns the Loader representation of the specified object.
ReturnsLoader — オブジェクトの Loader 表現です。
A Loader representation of the object.
|
| toSound | () | method |
public function toSound():Sound指定されたオブジェクトの Sound 表現を返します。 Returns the Sound representation of the specified object.
ReturnsSound — オブジェクトの Sound 表現です。
A Sound representation of the object.
|
| toString | () | method |
public function toString():String指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
ReturnsString — オブジェクトのストリング表現です。
A string representation of the object.
|
| toXML | () | method |
public function toXML():XML指定されたオブジェクトの XML 表現を返します。 Returns the XML representation of the specified object.
ReturnsXML — オブジェクトの XML 表現です。
A XML representation of the object.
|