PDA

View Full Version : [AS3] linking a flvplayback component to a webpage


espadana
03-06-2009, 07:19 PM
Hi,

I am working on creating a player that allows for 15 second pre-roll movie adverts before the actual movie is played. However I am not sure how to link the pre-roll movie to the intended url.

I know that I can register an eventlistener for the flvplayback object that listens for mouse clicks and then calls navigateToURL() to open a webpage. However I want the mouse pointer to change to a "hand" when hovering over the advert so that user know that the advert is clickble.

I would be very grateful if you could point me to the right direction.

Many Thanks

nikhiljoshi122
03-06-2009, 07:40 PM
ok
u can do some tweaking
as soon as ur pre roll advert starts place a dynamic movieclip with alpha set to zero and buttonMode set to true.
place the navigateTourl on this movieClip
and set a listener for completion on this 15 sec advert as soon as the advert is over remove the movieClip n remove the all related listeners.
if u can't set a listener for advert completion set a listener for its start and simultaneously set a timer for 15 secs and on its completion do the task.
hope it helps
nik