Loading XML from other URL / allowDomain not working

Hi folks,

I am loading an XML from another server and it’s my understanding that I need a crossdomain.xml or use System.allowDomain().

I opted for the latter to have more flexibilty, but it doesn’t seem to be working.

Am I doing something wrong here?

import flash.display.*;
import flash.xml.*;
import flash.net.*;
import flash.events.*;
import flash.utils.*;
import flash.system.Security;


var xmlSource = "http://rss.news.yahoo.com/rss/topstories";

function initXML():void{
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, loadXML);
    xmlLoader.load(new URLRequest(xmlSource));

function loadXML(e:Event):void {
    var xDoc:XMLDocument = new XMLDocument();
    xDoc.ignoreWhite = true;
    var bannerXML:XML = XML(e.target.data);

    trace("XML source loaded");