you are misssing the point that zindex is an immediate property.
by setting number.maxvalue caat reassings a valid naximum zindex. zero in your case where the container has only one element.
zindex is directly translated to order in the container children list.
all the UI i know about (java swing, adobe flex, etc.) work this way.
what they have is a layered container which keeps children sorted in different zindex collections.
for your sample to work, add both children, then set zorder/zindex (use them interchangeably).
- ibon
splice (index, 1, xxx) is a replacement (not an insertion)