You are not logged in.
Pages: 1
this.createEmptyMovieClip(“video_mc”, 10000);this.video_mc.loadMovie(“http://www.youtube.com/v/b694exl_oZo”); //Put the URL for your video in this line
Security.allowDomain("www.youtube.com");var videoPlayer:Object;var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, onLoaderInit); loader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3"));function onLoaderInit(event:Event):void { addChild(loader); loader.content.addEventListener("onReady", onPlayerReady); }function onPlayerReady(event:Event):void { trace("Ready"); videoPlayer = loader.content; videoPlayer.setSize(640, 385); //PUT THE DIMENSIONS OF YOUR VIDEO IN THIS LINE videoPlayer.cueVideoByUrl("http://www.youtube.com/v/b694exl_oZo", 0);//PUT YOUR VIDEO URL IN THIS LINE}
Offline
Pages: 1