yishayw commented on issue #417: ArrayCollection implementation of 
PropertyNames() method
URL: https://github.com/apache/royale-asjs/issues/417#issuecomment-602040103
 
 
   ```
                        var test:Object = new ArrayCollection();
                        test.addItem("One");
                        test.addItem("Two");
                        for each (var a:String in test)
                        {
                                trace(a);
                        }
   ```
   
   Does not work, but
   
   `                    var test:ArrayCollection = new ArrayCollection();
                        test.addItem("One");
                        test.addItem("Two");
                        for each (var a:String in test)
                        {
                                trace(a);
                        }`
   
   does. So it seems to be a matter of explicitly declaring (or casting) the 
type. In Flex, iteration works the same whether or not the type is defined.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to