PDA

View Full Version : Triggering a movie from another hotspot


gameredb
06-25-2007, 06:21 PM
I was wondering if there is a way to trigger one movie hotspot to play when the user clicks on another hotspot. For example, clicking on a projector button hotspot to start playing a movie on a screen hotspot. Also, would there be a way to load different movies into the screen hotspot? I'm having trouble finding the right method to do this... does anyone have an example?

Thanks.

Denis
06-28-2007, 06:41 PM
Perhaps changing url is the most simple way:
onClick="anotherSpot.url=animation.swf"
To make the real trigger using custom event, use Actionscript. For example flvPlayer.fla source is an example how to add a click event listener to trigger flv player. It uses parent hostpot, but adding the event to another hotspot is similar...