Groups | Blog | Home
all groups > flash (macromedia) > october 2007 >

flash (macromedia) : Click to play video - like Youtube


riprod7
10/24/2007 11:47:11 PM
Sorry for the double post, I put this in the wrong place...

Creating the FLV file and placing a flash video on a webpage with the video
controls, is easy enough but I need to have an intro screen.
Something like a 'click to play' frame like Youtube does.
I'm not sure if it is a Jpeg, that you click and it loads the swf or if it is
actually in flash.
I assume it would begin buffering before the use actually clicks play.

Any ideas ? A tutorial would be great. I can't find anything on the Adobe.com
or Google.
funkysoul
10/25/2007 12:00:00 AM
I had to create quite the same thing for one of my clients.
http://www.staralliance.com/en/meta/initiatives/biosphere_connections.html

you just need to create a new movieclip which acts as a semi-transparent or
whatever you would like to have it, give it an instancename and place it
exactly on top of the videowindow.

Here the code I used for my example: (the code has been placed on the overlay
itself. and it's instance name is "play_mc"

on(release){
_root.videoHolder.seek(0);
_root.videoHolder.play();
_root.play_mc._visible = false;
}
riprod7
10/25/2007 4:53:52 PM
Please could you elaborate. this is what I want but I can't get it to work.

I create a movie clip (not button) and place it over the video. I type
play_mc, in the instance name and paste your code in the action. Autoplay is
set to False.

I am using CS3 with Actionscript 3.

I test it but it will not play. What is VideoHolder, do I need to name the
Video that or something.

Thanks

funkysoul
10/26/2007 1:17:04 PM
AddThis Social Bookmark Button