# AS3 Basic Youtube load

**URL:** <https://forum.kirupa.com/t/as3-basic-youtube-load/283019>\
**Category:** flash\
**Created:** [March 1, 2009, 4:28pm UTC](https://forum.kirupa.com/t/as3-basic-youtube-load/283019 "2009-03-01T16:28:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ventoline](https://avatars.discourse-cdn.com/v4/letter/v/dec6dc/32.png) [@ventoline](https://forum.kirupa.com/u/ventoline)\
**Post date:** [March 1, 2009, 4:28pm UTC](https://forum.kirupa.com/t/as3-basic-youtube-load/283019/1 "2009-03-01T16:28:56Z")

</div>

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](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:

```auto
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);}

```
