addOrder()
Add an object to the group on a given layer.
group.addOrder(item)
Same as add(), but also sets the object's layer within the group. Layers run from smallest to largest, where 0 is closest to the front.
Parameters
group.addOrder(item, order=0)
| Parameter | Type | Default | Description |
|---|---|---|---|
item |
Drawable |
required | The object to add. |
order |
int |
0 |
The layer to place it on; 0 is closest to the front. |