SetHotspotCallback()

Syntax:

SetHotspotCallback( HSCallback )

Parameters:

HSCallback – A function to call when a hotspot is triggered in the QuickTime VR object. The function must take one parameter. This parameter is required.

Remarks:

This function will set a callback script function to be called when a hotspot is clicked on in the QuickTime VR object.

The callback function must take a single parameter. In the callback function this parameter will be an object with two members:

nID – the ID of the hotspot that was clicked in a particular node.

nNodeID - the ID of the node the hotspot was clicked in.

Return true from the callback function if you want to cancel the normal handling of the specified hotspot; otherwise return false for default handling. For example, to prevent a URL node from opening a separate browser object, handle the node click yourself and return true from the callback function

image\Script_Button.jpgExamples