From memory, it wasn’t possible to iterate through ArrayList with for each in Flex either.
________________________________ From: Σπύρος Αγγελόπουλος <aggelopou...@novusnet.gr> Sent: Thursday, May 3, 2018 10:13:11 AM To: dev@royale.apache.org Subject: RE: Bug iterating ArrayList Hi , Issue #220 Spiros -----Original Message----- From: Alex Harui [mailto:aha...@adobe.com.INVALID] Sent: Wednesday, May 2, 2018 6:53 PM To: dev@royale.apache.org Subject: Re: Bug iterating ArrayList Hi, Thanks for reporting. Can you file a GitHub issue? https://github.com/apache/royale-asjs/issues Thanks, -Alex On 5/2/18, 7:37 AM, "Σπύρος Αγγελόπουλος" <aggelopou...@novusnet.eu> wrote: The code below produce a strange results var ar:ArrayList = new ArrayList; ar.addItem(new String("some value")); var index:int=0; for each (var obj:Object in ar) { index++; } trace ( "for each iteration ="+ index); index =0; for (var i:int=0;i < ar.length ;i++) { index++; } trace ("for iterations =" +index); the console output : 16:26:13.431 Language.js:237 for each iteration =52 16:26:13.432 Language.js:237 for iterations =1 The version of SDK is Apache Royale 0.9.3 FP11.7 AIR14.0 en_US (nightBuild) Spiros