
Welcome Guest
|
#1
|
|||
|
|||
|
FLV Playback & Reset w/ Mouse Over & Out using Poster Frames
Hi everyone -
It's been a while since I've posted here but I'm glad to see the boards are still strong. I'm working off of a tutorial I found on Monkeyflash called "Adding a Poster Frame to Flash Video". This tut allows me to select my desired still to show before the user click play and once the video resets. Would I'd like for this to do is to play on Mouse Over. On Mouse Out, the video should stop and reset so that the poster frame appears once again, until the user Rolls Over once again to initiate playback from the start. Here is what I have so far. The problem with the AS below is that once I mouse out it stops playing but I can no longer play the video on mouse over. Not only that, the video seems to stop only when I mouse out on top of the playback controls. ================================================== Code:
import fl.video.VideoEvent;
myPoster.addEventListener(MouseEvent.MOUSE_OVER, playMovie);
function showPosterFrame(event:Event):void {
myPoster.visible = true;
}
myVideo.addEventListener(MouseEvent.MOUSE_OUT, stopMovie);
function hidePosterFrame(event:Event):void {
myPoster.visible = false;
}
function playMovie(event:MouseEvent):void {
myVideo.play();
}
function stopMovie(event:MouseEvent):void {
myVideo.stop();
}
myVideo.addEventListener(VideoEvent.PLAYING_STATE_ ENTERED, hidePosterFrame);
myVideo.addEventListener(VideoEvent.COMPLETE, showPosterFrame); |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FLV Playback Buffering | funky_vicky | Flash CS3 / Flash 9 |
0 | 06-27-2008 07:10 PM |
| Smoother FLV playback? | jasonfj | Flash Video |
0 | 10-20-2007 04:08 PM |
| Using keyboard controls for FLV playback | Signal | Flash 8 |
5 | 10-19-2007 11:46 PM |
| Download flv more easily use Moyea FLV Downlaoder | gooogle | Flash Video |
0 | 06-10-2007 08:17 AM |
| Tunneling FLV over http - poor playback | micodev | Flash Media Server |
0 | 02-15-2005 03:34 AM |





