XML Flash ActionScript

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var movieList:XML = 
                                My favorite movies
                                
                                    Titus
                                    1999
                                    J T
                                
                                
                                    Rushmore
                                    1998
                                    W A
                                
                                
                                    Hall
                                    1977
                                    Woody Allen
                                
                           
;
        
        var movies:XMLList = movieList.movie;
        for each (var movie:XML in movies) {
            movie.title = movie.title.toUpperCase();
        }
        trace(movies.title);
        
    }
  }
}