aharui commented on issue #448: Assigning ArrayCollection to ADG.dataProvider URL: https://github.com/apache/royale-asjs/issues/448#issuecomment-520685803 I don't see a test case to analyze see why it would take more time. In Flex/Flash, the runtime resolves types and knows how to interpret bracket access. In Royale on JS, the browser runtime is not as smart and Royale's compiler must be told what the type is in order to generate anything other than simple property lookups via bracket access. ArrayCollection is a Proxy so bracket access on Proxy must be explicitly typed. So, in theory the following should work: var arrDDResult:Array = e.result as Array; arrDGDataProvider = (arrDDResult[0] as ArrayCollection)[0] as ArrayCollection; Adg.dataProvider = arrDGDataProvider ; Or: var arrDDResult:Array = e.result as Array; // assumes var arrDGDataProvider:ArrayCollection; arrDGDataProvider = arrDDResult[0] as ArrayCollection; Adg.dataProvider = arrDGDataProvider[0] ;
---------------------------------------------------------------- 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
