flex - ObjectUtil.copy won't copy any ArrayCollection -


for while in app i've used objectutil.copy copy array collections. we've been making lot of changes app , started breaking on of copy commands. thought due custom classes in arrays ruled out testing empty or simple arraycollections.

neither of these work me:

var a:arraycollection = objectutil.copy(new arraycollection()); newwindow.months = objectutil.copy(months) arraycollection; 

in second line, newwindow new canvas i'm going show 'months' property , months arraycollection strings in it.

inside .copy() function breaks on buffer.writeobject(value); , throws error 'argumenterror: error #2004: 1 of parameters invalid.'

copy source array

newwindow.months = new arraycollection(objectutil.copy(months.source) array); 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -