views:

332

answers:

1

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?

A: 

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"));
Amarghosh
I'm a bit behind and only have Flash 8... so can't try the loader class but have tried loadMovie()
Peter
And it didn't work?
Amarghosh
Amarghosh