Youtube AS3 Api without branding
I am loading a youtube video inside a AS3 app, and want the youtube logo not to be visible. I have used modestbranding but still it shows the logo. Below is the code I am using.
Security.allowDomain("www.youtube.com")
var my_player:Object;
var my_loader:Loader = new Loader();
public function ytPlayer() {
my_loader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3&modestbranding=1"));
my_loader.contentLoaderInfo.addEventListener(Event.INIT, onLoaderInit);
}
function onLoaderInit(e:Event):void{
addChild(my_loader);
my_player = my_loader.content;
my_player.addEventListener("onReady", onPlayerReady);
}
function onPlayerReady(e:Event):void{
my_player.setSize(640,360);
my_player.loadVideoById("_OBlgSz8sSM",0);
}
Please suggest.
Ayush