VR Panoramas > Director/Shockwave

Hotspot Interaction

Another level of interaction can be experienced when you roll the mouse over a hotspot. When you click on a hotspot you could, for example, display an information box when a hotspot is clicked on. Here's a very simple example - click on a hotspot and it will tell you what it's ID number is (if you know the ID number of hotspots in a scene you could perhaps start to build "information points" around them - or maybe create a puzzle where the user needs to click on the hotspots in order...).

Here's how you'd go about the process in Director:

  • Step 1

Select the QTVR sprite on the score and then select New Behavior from
the Behavior drop down menu in the score

Delete any existing script and type the following (the text can be
copied and pasted into the Behavior script window):

  • Step 2

Close the script window, rewind and run the Director movie. Click on
a hotspot in the QTVR movie

  • Step 3

The HotSpotCallback handler can be easily changed to include
specific testing for individual hot spots. This can be achieved through
the use of if...then or case statements.

It's up to you to decide what you'd like to do with this feature, but it has a lot of potential!

You can download the Director source files here.

<< Previous | Next >>

Richard England - July 2003