Class: LoaderInfo

LoaderInfo

LoaderInfo クラスは、読み込まれる JSON ファイルやイメージファイル(JPEG、GIF、PNG ファイルなど)に関する情報を提供します。
LoaderInfo オブジェクトは、すべての表示オブジェクトで使用できます。
提供される情報には、読み込みの進行状況、読み込む側と読み込まれたコンテンツの URL、メディアの総バイト数、メディアの規格高さと幅などが含まれます。

The LoaderInfo class provides information about a loaded JSON file or a loaded image file (JPEG, GIF, or PNG).
LoaderInfo objects are available for any display object.
The information provided includes load progress, the URLs of the loader and loaded content,
the number of bytes total for the media, and the nominal height and width of the media.

new next2d.display.LoaderInfo ()

Extends

  • EventDispatcher

Members

next2d.display.LoaderInfo.namespace staticconstant

指定されたクラスの空間名を返します。
Returns the space name of the specified class.

Default Value:
  • next2d.display.LoaderInfo

bytesLoaded number readonly

そのメディアのロード済みのバイト数です。
The uint of bytes that are loaded for the media.

Default Value:
  • 0

bytesTotal number readonly

メディアファイル全体のバイト数です。
The number of bytes in the entire media file.

Default Value:
  • 0

content DisplayObject readonly

LoaderInfo オブジェクトに関係したロードされたオブジェクトです。
The loaded object associated with this LoaderInfo object.

format string

読み込まれるメディアの データフォーマット です。
The data format of the media being loaded.

Default Value:
  • URLLoaderDataFormat.STRING

namespace constant

指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.

Default Value:
  • next2d.display.LoaderInfo

url string readonly

読み込まれるメディアの URL です。
The URL of the media being loaded.

Default Value:
  • ""

Methods

next2d.display.LoaderInfo.toString ()string static

指定されたクラスのストリングを返します。
Returns the string representation of the specified class.

Default Value:
  • [class LoaderInfo]
Returns:
TypeDescription
string

toString ()string

指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.

Default Value:
  • [object LoaderInfo]
Returns:
TypeDescription
string