Section 1
//MainTimeline (Untitled_fla.MainTimeline)
package Untitled_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MainTimeline extends MovieClip {
public var my_player:Object;
public var my_loader:Loader;
public function MainTimeline(){
addFrameScript(0, this.frame1);
}
public function onLoaderInit(_arg1:Event):void{
addChild(this.my_loader);
this.my_player = this.my_loader.content;
this.my_player.addEventListener("onReady", this.onPlayerReady);
}
public function onPlayerReady(_arg1:Event):void{
this.my_player.setSize(640, 360);
this.my_player.loadVideoById("NhheiPTdZCw", 20);
}
function frame1(){
Security.allowDomain("www.youtube.com");
this.my_loader = new Loader();
this.my_loader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3"));
this.my_loader.contentLoaderInfo.addEventListener(Event.INIT, this.onLoaderInit);
}
}
}//package Untitled_fla