Thursday, December 24, 2009

How do I add embedded Youtube links in a Flash website with ActionScript 3?

I want to add three videos on my flash site from youtube, all on the same page at once. What kind of ActionScript 3 code would I use to achieve this?How do I add embedded Youtube links in a Flash website with ActionScript 3?
You use loadMovie(); functionHow do I add embedded Youtube links in a Flash website with ActionScript 3?
First, you must grab link of youtube FLV VIDEO URL. NOT YOUTUBE WATCH LINK.





here is one:





http://v24.cache.googlevideo.com/get_video?origin=dal-v78.dal.youtube.com%26amp;video_id=qB_K66mrZi4%26amp;ip=88.226.190.23%26amp;region=3%26amp;signature=931B6A78202F72D505C4596F583D4073C63DEED2.2587B28CDD8C5C3FFD0DBA888E948673B96225F9%26amp;sver=2%26amp;expire=1229639582%26amp;key=yt4%26amp;ipbits=0





But, youtube do not want to hotlink flv's. so as you can see above there's expire parameter, and you can't use this flv url always.





How to grab this url?


Just use Firefox and Video DownloadHelper add-on. Navigate to youtube.com/yourSacrificeVideo, use download helpler button to download flv, when download manager of Firefox pops up right click downloading video and click ';copy download url';.





You can grab the url but i think you can't use it.





If you have a stable url, you can use it with Flash's built in flv player component.
loadMovie();

No comments:

Post a Comment