Have you ever got those errors I posted above, when building your class?
true but that doesn’t fix those errors??
Anyone work with the chromeless player of the youtube api yet? Here is my code that is working.
//------Security Settings----//
import flash.system.Security;
Security.allowDomain("i.ytimg.com");
Security.allowDomain("s.ytimg.com");
Security.allowDomain("youtube.com");
Security.allowDomain("www.youtube.com");
Security.allowDomain("s2.youtube.com");
var youTubeLoader:Loader;
var youTubePlayer:Object;
function loadYouTubeVideo():void{
if(youTubeVideoLoaded){
youTubePlayer.destroy();
youTubeLoader = null;
youTubePlayer = null;
youTubeVideoLoaded = false;
youTubeVideoHolder.removeChildAt(0);
}
youTubeLoader = new Loader();
youTubeLoader.contentLoaderInfo.addEventListener(Event.INIT, initializeYouTubeVideo);
youTubeLoader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3"));
}
function initializeYouTubeVideo(e:Event):void {
youTubeLoader.contentLoaderInfo.removeEventListener(Event.INIT, initializeYouTubeVideo);
youTubeVideoHolder.addChild(youTubeLoader);
youTubeLoader.content.addEventListener("onReady", youTubeReady);
}
function youTubeReady(event:Event):void {
youTubeLoader.content.removeEventListener("onReady", youTubeReady);
youTubePlayer = new Object();
youTubePlayer = youTubeLoader.content;
youTubePlayer.loadVideoById(youTubeVideoId,0,youTubeVideoQuality);
youTubePlayer.setSize(StageWidth, StageHeight);
}
I have searched google high and low and cannot find anywhere, why I am getting these errors when I test inside flash IDE , I don’t get them in the debug player only locally with Flash IDE .
Error opening URL 'http://www.youtube.com/get_video?noflv=1&asv=3&video_id=0UjsXo9l6I8&eurl=file%3A%2F%2F%2FC%7C%2FUsers%2FCP%2FDesktop%2FFAITHFUL%255FFINAL%2FbackgroundModule.swf&t=vjVQa1PpcFNMO9tM2sNKMLRPGatkQrywPI8YYRh8XTo=&ps=chromeless&fmt=34&el=embedded&splay=1' Error opening URL 'http://video-stats.video.google.com/s?fs=0&fv=WIN%209%2C0%2C115%2C0&len=281.156&ps=chromeless&scoville=1&bt=0.613&ns=yt&w=1024&fexp=903709,907021&vid=zK9GBESMYY1N3UKcrdQv6qAhHrmnPfCFC&h=589&bc=260204&playerh=948&plid=AASNabXL_syqg1YR&hbd=4352260&el=embedded&eurl=file%3A%2F%2F%2FC%7C%2FUsers%2FCP%2FDesktop%2FFAITHFUL%255FFINAL%2FbackgroundModule.swf&splay=1&hl=en&rt=1.072&st=0.042&fmt=34&hbt=7.765&et=0.042&docid=0UjsXo9l6I8&screenh=1050&sd=BADC208C7HH1281385068213679&md=1&bd=256960&cfps=0&playerw=1024&screenw=1680' Error opening URL 'http://s2.youtube.com/s?ctp=1&docid=0UjsXo9l6I8&yttk=1&ns=yt&fmt=34&vid=zK9GBESMYY1N3UKcrdQv6qAhHrmnPfCFC&et=0.395&plid=AASNabXL_syqg1YR&asv=3&st=0.395&el=embedded&ps=chromeless'
Love it! Great Job! This is gonna be huge!
I don’t know if everyone else saw our long lost flash friend P&K over at themeforest but there new template has 131 sales in just over a week. CONGRATULATIONS P&K ! It was cool watching them make the transition over the last 6 months, and looks like the switch is gonna pay off big for them. Not to mention I am sure they still know how to code Flash sites too. Much respect for them taking on a whole new learning curve and increase their knowledge base!
@Creating Drew -yup love the new doctype syntax and the new SQL server stuff it added.
@Jack – http://www.w3schools.com/browsers/browsers_stats.asp IE6 users are gettin pretty low
PS. I still hate Steve Jobs
I don’t know Cracker I watched a video yesterday for HTML 5 in 5 minutes, and it is pretty unbelievable some of the new features, I think how fast it is accepted depends on when Microsoft will update their browser.
haha omg I could play that game for hours I killed so many fricken zombies.
Great Job Jeff!
Welcome to the community!
Hey Jack ...just got knee deep in a html project for a client. Jquery is bad ass, here is a snippet I used to resize a div
var maxWidth = 605;
var dif = (maxWidth - videoWidth) / 2;
var nuX = 35 + dif;
$("#VideoArea").css('left',nuX);
$("#VideoArea").width(videoWidth);
$("#VideoArea").height(areaHeight);
$("#VideoArea").css("visibility","visible");
..whoops just read the post again and noticed you didn’t want to use jquery well I will leave the post incase you change your mind
Thats a great tool! Thanks for the post
