Ah yes, that's true. When we get around to emulating ArrayCollection it will be iterable.
-Alex On 5/3/18, 12:39 AM, "Yishay Weiss" <yishayj...@hotmail.com> wrote: 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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fissues&data=02%7C01%7Caharui%40adobe.com%7C990895fc93c64621be7708d5b0c8fac4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636609299610677792&sdata=r3AdzckDnL44R2KMCL6iv2jIYw5OhuSHJj7jb5cXnUM%3D&reserved=0 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