Class: ProgressEvent

ProgressEvent

ProgressEvent オブジェクトは、ロード処理が開始されたとき、またはソケットがデータを受信したときに送出されます。
これらのイベントは通常、JSON ファイル、イメージまたはデータがアプリケーションにロードされるときに生成されます。

A ProgressEvent object is dispatched when a load operation has begun or a socket has received data.
These events are usually generated when JSON files, images or data are loaded into an application.

new next2d.events.ProgressEvent (type, bubbles, cancelable, bytes_loaded, bytes_total)

NameTypeDefaultDescription
typestring
bubblesbooleantrueoptional
cancelablebooleanfalseoptional
bytes_loadednumber0optional
bytes_totalnumber0optional

Extends

  • Event

Members

next2d.events.ProgressEvent.namespace string staticconstant

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

Default Value:
  • next2d.events.ProgressEvent

next2d.events.ProgressEvent.PROGRESS staticconstant

progress イベントオブジェクトの type プロパティ値を定義します。
Defines the value of the type property of a progress event object.

Default Value:
  • progress

bytesLoaded readonly

リスナーがイベントを処理しているときに読み込まれたアイテム数またはバイト数です。
The number of items or bytes loaded when the listener processes the event.

Default Value:
  • 0

bytesTotal readonly

読み込みプロセスが成功した場合に読み込まれるアイテムまたはバイトの総数です。
The total number of items or bytes that will be loaded
if the loading process succeeds.

Default Value:
  • 0

namespace string constant

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

Default Value:
  • next2d.events.ProgressEvent

Methods

next2d.events.ProgressEvent.toString ()string static

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

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

toString ()string

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

Returns:
TypeDescription
string