Can someone tell me what is causing my Flash file to be incapable of playing a
YouTube video? What I have created is basically a Flash "wrapper" that embeds a
YouTube SWF file inside an object. When I compile the SWF and play it within
an html file on my local computer, all is well. However, when I upload the
same file to my server, the video refuses to play.

When I view the LiveHttpHeader logs, we see calls to a crossdomain.xml file:

<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>


So it appears that the cross-domain isn't the problem - - - it's set to allow
playback on non-YouTube sites.

Any thoughts on the matter are greatly appreciated.



Security.loadPolicyFile("crossdomain.xml");

var embedme:String =
"http://www.youtube.com/swf/l.swf?video_id=hVkEHBbv4Fg&rel=1&eurl=&iurl=http%3 A/
/i.ytimg.com/vi/hVkEHBbv4Fg/default.jpg&t=OEgsToPDskLXySocnkEWAaWqA5rvjkmb&hl= en
";

var movieGetter:Loader = new Loader();


movieGetter.contentLoaderInfo.addEventListener(Eve nt.COMPLETE, loaded, false,
0, true);
movieGetter.load(new URLRequest(embedme));

function loaded(evt:Event):void
{
var textfield:TextField = new TextField();
textfield.text = "see if this loads...\r\n";
textfield.x = 50;
textfield.y = 50;

addChild(textfield);



addChild(evt.target.content);

textfield.text = "made it past video getting added";

}