1
imdb에서 as3으로 데이터를 가져 오려고합니다. 내가 resultXML을 추적하면 내가 얻을 이제imdb에서 데이터 가져 오기
var urlLoader:URLLoader = new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, urlCompleteHandler);
urlLoader.load(new URLRequest("http://www.imdbapi.com/?t=The+Green+Mile "));
private function urlCompleteHandler(e:Event):void {
var resultXML:XML = new XML(e.target.data);
trace(resultXML);
}
:
지금{"Title":"The Green Mile","Year":"1999","Rated":"R","Released":"10 Dec 1999","Genre":"Crime, Drama, Fantasy, Mystery","Director":"Frank Darabont","Writer":"Stephen King, Frank Darabont","Actors":"Tom Hanks, Michael Clarke Duncan, David Morse, Bonnie Hunt","Plot":"The story about the lives of guards on death row leading up to the execution of black man accused of child murder & rape, who has the power of faith healing.","Poster":"http://ia.media-imdb.com/images/M/MV5BMTUxMzQyNjA5MF5BMl5BanBnXkFtZTYwOTU2NTY3._V1._SX320.jpg","Runtime":"3 hrs 9 mins","Rating":"8.4","Votes":"214654","ID":"tt0120689","Response":"True"}
난이 결과에서 "평가"를 얻으려고하지만 난 어떻게 그것을 얻을하는 아무 생각이 나는 다음 시도 .
시도 : resultXML.Rating
하지만 그 결과는 반환되지 않습니다.
누구든지 등급을받을 수있는 방법을 알고 계십니까?