A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] How to AUTOPLAY youtube videos

  1. #1
    Game Player - Developer scheletro's Avatar
    Join Date
    Mar 2005
    Location
    México living in Barcelona
    Posts
    1,121

    resolved [RESOLVED] How to AUTOPLAY youtube videos

    Hi

    I use this code to show YOUTUBE videos in my flash

    Code:
    this.createEmptyMovieClip("video_mc", 10000);
    this.video_mc.loadMovie("http://www.youtube.com/v/_CYwNWHZuT0");
    autoplay = 1;
    player.playVideo();
    But at the moment I load the video I want it to play, I dont know hoy to implement de AUTOPLAY, or how to play video without clicking on the actual video

    Any ideas?


    "I love to make them as I love to play them"

  2. #2
    have you looked into the YouTube ActionScript API ? they have same code where you can load the proper player into your application and control the video.

    http://code.google.com/apis/youtube/...reference.html

  3. #3
    Game Player - Developer scheletro's Avatar
    Join Date
    Mar 2005
    Location
    México living in Barcelona
    Posts
    1,121
    Thanks, I had to look for AS2 scripts but helps, thanks "cultcreative"

    I used

    Code:
    on (press) {
    	ytplayer.playVideo();
    }


    "I love to make them as I love to play them"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center