Hi,
I’m trying to load a youtube video (no wrapper or player), and i get the error:
Erreur d’ouverture de l’URL ‘http://www.youtube.com/v/fnqDFfJg-mU&hl=en&fs=1’
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
It seems to be a very simple issue, but i’m getting the same error over and over, the code follows:
var loadit = new Loader();
var mc:MovieClip = new MovieClip();
//loadit.unload();
loadit.load(new URLRequest("http://www.youtube.com/v/fnqDFfJg-mU&hl=en&fs=1"));
// loadit.load(new URLRequest("http://www.youtube.com/watch?v=fnqDFfJg-mU"));
loadit.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, prog)
loadit.contentLoaderInfo.addEventListener(Event.COMPLETE, attach)
loadit.addEventListener(IOErrorEvent.IO_ERROR, error1)
function prog(p:ProgressEvent){
trace(p.target.contentLoaderInfo);}
function attach(e:Event)
{ trace(e.target.contentLoaderInfo);
mc.addChild(loadit);
addChild (mc);
}
function error1(e:IOErrorEvent){
trace(e.target.contentLoaderInfo);}