I'm thinking I may write a custom static util function ... public static function MyArrayUtil.toArray(objArray:Object):Array - If object is ArrayCollection, return the 'source' array - else return ArrayUtil.toArray()
then I can search and replace in my entire project for ArrayUtil.toArray and replace it with my util function. What do you all think? Thunder --- In flexcoders@yahoogroups.com, "thunderstumpgesatwork" <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have been using an HTTPService to get an XML configuration file from > the server and using it to configure my app. The result format was > ActionScript Objects, not e4x. > > When accessing a node that could be an array (one or more) I was using > ArrayUtil.toArray(results.SomeNode.ArrayNode) to get back an array of > one or more items. > > It seems with the release that all of the Array nodes are now > ObjectProxy objects with ArrayCollections in them... > > Can I get back to the original way the result was? If not, how can I > refactor my code to handle the fact that the Arrays are all now > ArrayCollections ? > > Is there a similar function to ArrayUtil.toArray() that will work with > either a single node or an ArrayCollection and always return an > ArrayCollection? > > thanks in advance, > Thunder > ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/