[osflash] Array with Unique Value

Jonathan Spooner jspooner at aviatech.com
Mon Oct 2 19:09:40 EDT 2006


I'm looking for a way to create an array with only unique values.

I looked into useing Array.UNIQUESORT but this will not remove  
duplicate entries.
It only stops the sorting process if it finds a duplicate.


For example I would like to
var myArr:Array = new Array 
("oranges","oranges","oranges","oranges","oranges","oranges","oranges",  
"apples", "strawberries");

myArr.uniqueSort() // ???? Possibly extend the Array Class???

// if the uniqueSort method existed it would return this.
trace(myArr);
// output:  "oranges", "apples", "strawberries"




-/-

JONATHAN SPOONER | senior interactive developer

ph 858 777 5034  fx 858 777 5050
jspooner at aviatech.com
www.aviatech.com



Aviatech, LLC
Integrated Marketing Solutions
4350 Executive Drive, Suite 200
San Diego, CA 92121

CONFIDENTIALITY NOTICE: This email transmission, and any documents,  
files or previous email
messages attached are intended only for the person(s) or entity to  
which it is specifically addressed
and may contain confidential information that is legally privileged.  
Any review, re-transmission,
dissemination or other use of, or taking of any action in reliance  
upon, this information by persons
or entities other than the intended recipient is prohibited. If you  
received this in error, please
contact the sender and destroy the original transmission and its  
attachments without copying or
saving in any manner.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20061002/9fa18f33/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature_logo.gif
Type: image/gif
Size: 1539 bytes
Desc: not available
Url : http://osflash.org/pipermail/osflash_osflash.org/attachments/20061002/9fa18f33/signature_logo-0001.gif


More information about the osflash mailing list