Manages display objects that may be used to render data, in a component like ListBox or TabBar.

Available since

1.0.0

.

Constructor

new (create:DisplayObjectClassOrFunction<T>, ?update:T ‑> S ‑> Void, ?clean:T ‑> S ‑> Void, ?destroy:T ‑> Void)

Methods

dynamicclean (target:T, state:S):Void

Prepares a display object to be used again. This method should restore the display object to its original state from when it was returned by create().

Available since

1.0.0

.

dynamiccreate ():T

Creates a new display object.

Available since

1.0.0

.

dynamicdestroy (target:T):Void

Destroys/disposes a display object when it will no longer be used.

Available since

1.0.0

.

dynamicupdate (target:T, state:S):Void

Updates the properties an existing display object. It may be a display object that was used previously, but it will have been passed to clean() to ensure that it has been restored to its original state.

Available since

1.0.0

.