Known Participant
September 6, 2009
Question
How to make a Poster Frame in a Flash 8 Video player
- September 6, 2009
- 1 reply
- 1042 views
Hi to all,
I want to make a poster frame (a simple jpg)
to display before the FLV video plays.
So first the user to click the play button or on this poster frame.
The code below does exactly what I need, but it is in Flash CS4.
How could I do the same with Flash 8 Pro (ActionScript 2.0)?
Any help?
--------------------------------------------
import fl.video.VideoEvent;
function showPosterFrame(event:Event):void {
myPoster.visible = true;
}
function hidePosterFrame(event:Event):void {
myPoster.visible = false;
}
function playMovie(event:MouseEvent):void {
myVideo.play();
}
myPoster.addEventListener(MouseEvent.CLICK, playMovie);
myVideo.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, hidePosterFrame);
myVideo.addEventListener(VideoEvent.COMPLETE, showPosterFrame);
--------------------------------------------Iason_K