How to embedd a youtube video inside a swf

embedflashyoutube

Embedding YouTube videos using the embed code in a blog or HTML/PHP page is straight forward.

Is there a simple method to "embed" the same video within a Flash/swf interface?

Best Answer

Did you try loading it with Loader class? I guess YouTube's crossdomain would allow it to be loaded from anywhere.

var loader:Loader = new Loader();
addChild(loader);
loader.load(new URLRequest("http://www.youtube.com/v/CrypticVideoID"));