PDA

View Full Version : flvPlayer and hotspots over it


Gandalf2003
03-18-2009, 03:00 PM
Hi all,

I'm digging the forum for a couple of hours and I din't found a way to achieve what I want.

I need to display a short video positioned on the screen of a TV in a pano.
I used flvplayer plugin and until now it works.

Now, I want to put a button over the video to launch it again on its end. The button, of course must disappear once the video is launched and must be visible at the end.

Does anybody know how to achieve that ?
Gandalf

Gandalf2003
03-18-2009, 04:12 PM
One other solution would be to show the first frame of the video in "pause mode" ? So, the viewer will see that there is something to watch there ?!?

myksa
03-18-2009, 06:48 PM
Hi,

I've discovered how to catch finishing of flv movie some time ago and you can read this short description here:

http://flashpanoramas.com/forum/showthread.php?t=1924&highlight=onflvcomplete

Now You can specify onFlvComplete function in global section, and it will be fired when video is done playing. In this function You can add a simple code which would show a button on a TV screen, with attached actions that show this video again.

Sample code would be like this:

onFlvComplete="buttonPlayAgain.visible=true; buttonPlayAgain.onClick=playAgain();"
playAgain="videoOnTVScreen.url=urlOfTheSameMovie; buttonPlayAgain.visible=false"


Hope this will help
Myksa

Gandalf2003
03-19-2009, 05:14 PM
Thank you 1000 times Myksa :) it works like a charm !

Gandalf