Re: [FlexJS] numElements and contentView

2016-08-18 Thread Jack Freudenheim

Hi Alex,

Can you please tell me how to unsubscribe?

Thanks,
Jack


On 8/8/16 12:55 AM, Alex Harui wrote:


On 8/7/16, 2:06 AM, "yishayw"  wrote:


We have code that removes all elements in a container. It does something
like

while (container.numElements) {container.removeElementAt(0)}

The problem was that ContainerBase.removeElementAt(0) actually did
ContainerBase.contentView.removeElementAt(0) while container.numElements
was
returning ContainerBase.numElements, not
ContainerBase.contentView.numElements.

I fixed that, but I was wondering if ContainerBase.$numElements should be
fixed as well. I'm not sure exactly what the $ methods do in
ContainerBase.
Are they meant to insure the contentview is not used as a delegate?

$numElements looks ok to me.  The $ functions are used by ContainerViews
to add elements to the "chrome" of the container itself, since addElement
otherwise adds it to the contentView.  Scrollbars, TitleBars and stuff
like that get added by the ContainerViews outside of the contentView.

Thanks for fixing the bug.

-Alex





Re: vector error

2015-11-03 Thread Jack Freudenheim

unsubscribe

On 11/3/15 2:28 AM, Alex Harui wrote:

What output are you getting and what error occurs?

-Alex

On 11/2/15, 10:39 PM, "lizhi"  wrote:


in as3.
new Vector.<*>([1,1,1]);
not the same Vector.<*>([1,1,1]);

pls try



--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/vector-error-tp49772p
49783.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.