New arrayCollection not by reference


i know can make copy of arraycollection objectutil.copy  or  writing byte array , registering type. happens if take source of existing arraycollection, array itself, , create new array? unreferenced original arraycollection.

 

in code,

 

var myarraycollection:arraycollection. // passed in value

var mynewarraycollection = new arraycollection(myarraycollection.source);

 

is original arraycollection still affected changes in mynewarraycollection, using filterfunctions?

you have new arraycollection , changes underlying array affect both array collections.

 

the array won't copied when arraycollection constructed.

 

the array not passed value - pointer array, not array itself.

 

filter functions belong array collection, array collections independently filtered (filtering same data in differrent ways).



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account