ArrayCollection 的深度复制

原文:http://blog.csdn.net/accp_fangjian/archive/2008/05/09/2423591.aspx

 

modelLocator.chartArrayCollection = ArrayCollection(clone(modelLocator.relatedTaskPhase));

private function clone(source:Object):*
{
	var myBA:ByteArray = new ByteArray();
	myBA.writeObject(source);
	myBA.position = 0;
	return (myBA.readObject());
}
 

 

你可能感兴趣的:(.net,Blog)