ResourceObject

Description

Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts • Server Entity Scripts • Assignment Client Scripts

Constructor
new ResourceObject( )

Properties

Name Type Summary
url string URL of this resource.
state Resource.State Current loading state.

Methods

Name Return Value Summary
release None Release this resource.

Signals

Name Summary
progressChanged Triggered when download progress for this resource has changed.
stateChanged Triggered when resource loading state has changed.

Method Details

release( )

Release this resource.

Signal Details

progressChanged( bytesReceived, bytesTotal )
Returns: Signal

Triggered when download progress for this resource has changed.

Parameters

Name Type Description
bytesReceived number Byytes downloaded so far.
bytesTotal number Total number of bytes in the resource.
stateChanged( state )
Returns: Signal

Triggered when resource loading state has changed.

Parameters

Name Type Description
state Resource.State New state.