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
Post a Comment