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/