How to add youtube video to flash

I am still new to AS. Looking for a detailed tutorial/explanation on adding/embeding  a youtube video to flash.
If anybody has a descent example that would work too. Also i would like the youtube video to play in the flash file.

http://code.google.com/apis/youtube/flash_api_reference.html
Quote from google api ref:
Getting Started
You can use a chromeless player or an embedded player in your  application. Both players support the same functions. However, the  embedded player displays standard controls, including a play/pause  button, a progress bar, a volume control, and more. The chromeless  player, on the other hand, does not display any controls, so you will  need to develop your own custom player controls in Flash.
Loading the chromeless player
If your application is using a chromeless player, use the  following URL to load the player in your application:
http://www.youtube.com/apiplayer?version=3
Loading the embedded player
If your application is using an embedded player, use the  following URL to load the player in your application. In the URL,  replace the string VIDEO_ID with the 11-character YouTube video ID of the  video that the player will show.
http://www.youtube.com/v/VIDEO_ID?version=3
The
Player  API demo lets you compare the two player
http://code.google.com/apis/youtube/youtube_player_demo.html
http://www.youtube.com/v/VIDEO_ID?version=3
Heres some really quick code. You'll have to play with it but this will get you well under way:
var myVideo:Loader = new Loader();
Security.allowDomain("www.youtube.com");
myVideo.contentLoaderInfo.addEventListener(Event.COMPLETE, showVideo);
//myVideo.load(new URLRequest("http://www.youtube.com/apiplayer?version=3"));
myVideo.load(new URLRequest("http://www.youtube.com/v/6U-sTcbZuq0&feature=rec-LGOUT-farside_rn-4r-1-HM" + "?version=3"));
function showVideo(e:Event):void
     myVideo.x = stage.stageWidth * .5;
     myVideo.y = stage.stageWidth * .5;
     stage.addChild(myVideo);
If you have any questions please let me know. Otherwise, please mark the question as answered Thanks,
Jesse

Similar Messages

  • Hotw to add a video on flash dubanically?

    how to add a video on flash dinamically? (exrternal file on
    the fly)

    The page uses Flash. We have our own page rendering core and making use of the Android Adobe Flash plugin has been difficult to implement.

  • Youtube video requiring Flash Player

    Some of Youtube video requires Flash Player. I installed it successfully, but I still encounter the same error message. It appears that I have not installed ActiveX control. How do I install it. BTW, is the ActiveX control the issue here or somethingelse is going on?

    Hi,
    Please check the below mentioned knowledge base article and follow the instructions
    http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html

  • How to download youtube videos on Macbook Pro

    how to download youtube videos on Macbook Pro?

    If I told you how, I'd also have to get rid of this thread.  We can't discuss how to circumvent copyright restrictions, and many Youtube videos have just that.

  • How to download youtube videos to ipad without using a computer.

    How to download youtube videos to ipad without using a computer???  Looking to download some videos people created using Dr. Jean music.  My kid used Dr. Jean in preschool and wanted to keep singing them at home.
    Looking for a friend that doesn't use a computer.  I myself have downloaded some kids educational stuff and added to itunes and then put on ipod/ipad using firefox. 
    Is there an easy way, so they don't go to the photo roll??
    thanks in advance.

    There are some Apps you can use, but be careful they will only download these videos inside the App, so you won't ba able to play them in your video app or share them.
    Most popular is the app called "Video Download" but there are a lot of alternatives for free and even with more quality which you can pay for.

  • How to register youtube videos on mac hard drive?

    how to register youtube videos on mac hard drive?
    iMac 21.5 po, mid 2010 .Processor Intel i3

    You cannot. Doing so would violate YouTube's Terms of Use.
    Best of luck.

  • How to add a video play list on palm pre

    Does anybody knows how to add a video play list in palm pre?
    I did try to add video in different folders but in the palm  device are loaded in the same playlist. Is there a way to organize video files?
    tks
    Post relates to: Pre p100ueu (O2)

    QuickTime requires player and plugins that most people don't have.  You'll reach a much wider audience if you use HTML5 <video> with mp4, webm and ogg files.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 with Video</title>
    <!--help for older IE browsers-->
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    </head>
    <style>
    video {
        max-width:100%;
        display:block;
        margin:0 auto;
    </style>
    <body>
    <h2>Use 3 File Types to support all browsers &amp; mobile devices:  MP4, WEBM and OGV.</h2>
    <h3>Online Video Converter
    http://video.online-convert.com/</h3>
    <!--begin video-->
    <video controls poster="Your_poster_image.jpg">
    <!--these are 6 sec sample videos for testing purposes. Replace sample-videos with your own files-->
    <source src="http://techslides.com/demos/sample-videos/small.webm" type="video/webm">
    <source src="http://techslides.com/demos/sample-videos/small.ogv" type="video/ogg">
    <source src="http://techslides.com/demos/sample-videos/small.mp4" type="video/mp4">
    If you're seeing this, you're using an
    outdated browser that doesn't support
    the video tag. </video>
    <!--end video-->
    </body>
    </html>
    Nancy O.

  • How to add my video library to iPad g3 from MacBook Pro?

    How to add my video library to iPad g3 from MacBook Pro?

    What sort of videos are they, and what app do you want to sync them to ? If they were taken with your camera and they are in a format supported by the iPad, then you could sync them to the Photos app - with the iPad connected and selected on the left-hand side of your computer's iTunes, you can use the Photos tab on the right-hand side of iTunes to sync photos and videos (there is an 'include videos' tickbox on that tab) to the Photos app.
    Or you can sync them to the Videos app. If you can add them to your iTunes library (File > Add To Library) you can then use Movies tab (instead of the Photos tab) to sync them to the Videos app. If you can add them to your library but they don't sync over because they aren't in a supported format then try doing Advanced > Create iPad Version and then try syncing those versions.

  • How to play YouTube videos in HD on iPhone over cellular?

    Does anyone know how to play YouTube videos using the Google YouTube app in HD on the iPhone over cellular? I'm asking because I have an iPhone 5 with a large LTE data plan, which I don't mind using a bit more data for better clearity on the videos. I know in the past people have suggested to use YouTube in the Safari broswer to view videos in HD, but I find it to be non-consistant. Anyone have a better idea how to watch YouTube videos in HD on iPhone/iPad over cellular (3G/LTE)?

    Did you use iAD to create the widget?   If  you did...  then there support  group  should have answers.
    If you used one of the widgets in iBA  - as you have  had no suggestion for a fix... you will need to contact iBooks support.
    The  More Like This column on the right shows links to similar problems.
    It would  seem to be  related to  your  use of  You Tube and Vimeo content or maybe its how you  put the  widget content  together.
    Have  you search the iBA help files, previous posts and the iBA  tips?

  • How to make youtube video gallery auto play (&autoplay=1) work properly?

    Does anybody know how to make youtube videos play when clicked on the thumbnails in the video gallery? I have added the auto play function in the iframe code
    (<iframe width="600" height="335" src="http://www.youtube.com/embed/lwnhB8PEuDY? rel=0&autohide=1&showinfo=0&autoplay=1&theme=dark&color=white&modestbranding=1" frameborder="0" allowfullscreen></iframe>)
    for both videos but both videos play at the same time. The videos stop playing at the same time when once clicked on one of the thumbnails.
    Here is html test file and Muse project file to see what I mean.
    Help would be much appriaciated.
    Silvis.

    Hi Vinayak,
    Thank you for you response.
    Here silvis.co.uk/muse_test.zip is a valid link.

  • HOW TO add a videos or movies to IPOD TOUCH for first time...

    HOW TO add a videos or movies to IPOD TOUCH for first time...
    pls send step by step detail wise.. if you have a video for this ..pls mail me...
    my email :  [email protected]
    thanks to all

    See:
    iOS and iPod: Syncing photos using iTunes
    iOS: Syncing with iTunes
    iTunes: Frequently asked questions about viewing and syncing videos
    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod

  • I'm using iPad 4 with iOS. How to play YouTube video in background?

    Any suggestion?

    Welcome to the Support Communities. This article may help:
    How to Play YouTube Videos in the Background on iOS
    ...Found by doing THIS.
    And this is just a tip: You can edit your post within 15 minutes. To edit your initial post of a thread, click on the Edit post link in the Actions section at upper right. To edit your subsequent posts of a thread, click on the Edit link at the bottom of the particular post you want to edit. Either way, when done editing, click the blue Update button.

  • How to download youtube video in Mp4 format from safari ?

    Does anybody knows how to put link and when video plays just click on it and it will download. I had that option a while ago and cant find the way to make it again. Or if you know any other way....

    Using Safari 5.0.1 and Snow Leopard I used part of what I found online and stumbled across the final solution indicated by brackets {}
    From <http://mac-dvd.com/mac-guide/how-to-download-youtube-video-on-mac-for-free.htm l>
    Step 1: Download the videos
    1. Find your favorite YouTube video. This step is pretty self explanatory. Be sure to use Safari and search for your favorite YouTube Video. {Select 720 p or greater.}
    2. Next, you need to go to 'Window' and down to Activity. Click on 'Activity' to bring up the next dialog box.
    3. Once the dialog box has popped up you need to look for the YouTube page among all the page titles and files listed in the window.
    4. Once you locate it and expand all the activities going on in the page, look for the largest file size (this is shown in the right hand side). Most of the files found in a YouTube page are small files while most FLV files are several megabytes.
    Once you locate the largest file,
    What I found out:
    {Hold down the SHIFT OPTION key and double click on it. The video should start downloading in your download and be named videoplayback.mp4.}
    What I found out in the videos I tested is that if you did not use 720p or higher, SHIFT OPTION double clicking or just double clicking on the large file in the activity window downloaded an FLV file, which you then have to convert to mp4.
    Hope this helps.
    Message was edited by: James Mol

  • How to download Youtube videos on Safari 6.0.5?

    I got a Macbook Air (Mid 2013) with OS X (10.8.4). I'm using Safar 6.0.5
    Can somebody please tell me how to download youtube videos using this web browser?
    Thanks!

    Clip Grab is not functioning well. Some of the downloads come to halt abruptly in between. Some others dont download completely, though Clipgrab shows they are 'completely downloaded'
    Anyother solution?

  • How can i watch youtube videos no flash

    how can i watch youtube videos without installing flash on my imac

    You can try using HTML5 potentially https://www.youtube.com/html5.

Maybe you are looking for