From flex-dev-return-7408-apmail-incubator-flex-dev-archive=incubator.apache.org@incubator.apache.org Sun Apr 8 03:04:44 2012 Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8CB629D2D for ; Sun, 8 Apr 2012 03:04:44 +0000 (UTC) Received: (qmail 62295 invoked by uid 500); 8 Apr 2012 03:04:43 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 62261 invoked by uid 500); 8 Apr 2012 03:04:43 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 62215 invoked by uid 99); 8 Apr 2012 03:04:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Apr 2012 03:04:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Apr 2012 03:04:40 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 16DAD35D0E8 for ; Sun, 8 Apr 2012 03:04:20 +0000 (UTC) Date: Sun, 8 Apr 2012 03:04:19 +0000 (UTC) From: "Michael Labriola (Commented) (JIRA)" To: flex-dev@incubator.apache.org Message-ID: <545168551.452.1333854260217.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <151624166.2565.1333397483664.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (FLEX-36) Add Vector implementations of IList and ICollectionView MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FLEX-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249462#comment-13249462 ] Michael Labriola commented on FLEX-36: -------------------------------------- No worries. I was excited too. Thought I could make my code a little cleaner... alas, its back to the ugly way > Add Vector implementations of IList and ICollectionView > ------------------------------------------------------- > > Key: FLEX-36 > URL: https://issues.apache.org/jira/browse/FLEX-36 > Project: Apache Flex > Issue Type: Improvement > Reporter: Josh Tynjala > Assignee: Bertrand Delacretaz > Priority: Minor > Labels: List, collections > > VectorList and VectorCollection, similar to ArrayList and ArrayCollection. Feels weird that I need to convert Vectors to Arrays to use in Flex collections. > In case anyone is unaware, you can cast Vector. as Vector.<*>. Works with the "as" and "is" keywords, as you can see below: > var strings:Vector. = new ["One", "Two", "Three"]; > trace(strings is Vector.<*>); //true > var generic:Vector.<*> = strings as Vector.<*>; > trace(strings) //One, Two, Three -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira