LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-06-2008, 11:30 PM
tonyota tonyota is offline
Registered User
 
Join Date: Aug 2006
Posts: 2
Rep Power: 0
tonyota is on a distinguished road
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);
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 06:18 AM.