Normally for ArrayList, all you have to do is var myArrayList:ArrayList = new ArrayList(mySourceArray);
if daveservice.json.PROGRAMS is an Array, then presumably you could use that. But with untyped objects, you may have issues in release build with renaming if you also try to access the fields with string access (e.g. myProgramInstance["MDL_NO"] ). There are ways to address that.... On Wed, Sep 30, 2020 at 11:25 AM wkoch <[email protected]> wrote: > So I guess I'd better pay more attention to my post. For some reason the > SCRIPT got pulled when I posted it. No wonder I was getting questions. > Apologies. > > I'm trying to get daveservice.json.PROGRAMS into an arraylist. > > <fx:Script> > import org.apache.royale.events.Event; > import org.apache.royale.events.MouseEvent; > import org.apache.royale.jewel.Alert; > import org.apache.royale.net.HTTPConstants; > import org.apache.royale.net.HTTPService; > import org.apache.royale.net.URLVariables; > > public var daveservice:HTTPService = new HTTPService(); > > private function resultCallback(event:Event):void{ > Alert.show("STATUS: " + daveservice.json.STATUS, "json data > retrieved"); > Alert.show("string format: " + daveservice.data, "what"); > Alert.show("MDL_CONCAT: "+ > daveservice.json.PROGRAMS[1].MDL_CONCAT, "json > data retrieved"); > } > > public function getCfcStoredProcContent(event:Event):void{ > daveservice.url > ="/MIS_Lists.cfc?method=websitelistspkg_TailnumberList_json"; > daveservice.method = HTTPConstants.GET; > daveservice.addEventListener("complete", resultCallback); > daveservice.send(); > } > </fx:Script> > > > > > -- > Sent from: http://apache-royale-users.20374.n8.nabble.com/ >
