numElements works for me. The problem you found was with $numElements. I
think we haven't seen a bug thus far because ContainerBase.$numElements just
calls super.numElements which returns the number of elements in UIBase.
Usually (always?) there's one component there, which is the internal
contentView. ContainerBase.numElements, on the other hand, returns the
number of elements in the contentView itself.

In short, $numElements in all scenarios I'm aware of is 1. I suppose a
defined function implicitly cast to an int will return 1 as well (haven't
tried it).

BTW, I see the same problem in ContainerBaseStrandChildren.$numElements and
in ListBaseStrandChildren.$numElements.



--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/Re-1-2-git-commit-flex-asjs-refs-heads-develop-Fix-not-working-numElements-Fix-failing-internalChildd-tp59183p59288.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to