flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lane <lanefrie...@hotmail.com>
Subject Re: Slider and circular dependency
Date Fri, 28 Oct 2016 23:26:43 GMT
Thanks Alex. 


-----Original Message----- 
From: Alex Harui 
Sent: Friday, October 28, 2016 9:22 AM 
To: users@flex.apache.org 
Subject: Re: Slider and circular dependency 

On 10/27/16, 5:13 PM, "Lane" <lanefriesen@hotmail.com> wrote:

>Hi Alex,
>Thanks. I was placing the -remove-circulars in the wrong section. It
>after I applied the change, and then exited Flashbuilder completely and
>restarted it (just applying the change resulted in Flashbuilder being
>to find the program and delivering an error).
>There appears to be one final problem. I have an array. I want to sort
>array and have another array (not just a pointer to the same array). I'm
>using the following function:
>private function clone(source:Object):*
>    var myBA:ByteArray = new ByteArray();
>    myBA.writeObject(source);
>    myBA.position = 0;
>    return(myBA.readObject());
>ByteArray appears to be related to Flash and doesn't compile. What
>substitute would one use in FlexJS?

We won't have a good clone() or deep copy mechanism until we get further
down the AMF path.
I'm sure you realize you can copy an Array of simple values via
Array.slice();  If you want to contribute a deep copy algorithm, you can
try using the Reflection APIs to do it.


This email has been checked for viruses by Avast antivirus software.

View raw message