GetHotspotType()

To get the types of ten hotspots from a QuickTime VR object called qtvr.

for (hsID = 1; hsID <= 10; hsID++)
{
 HSType = qtvr.GetHotspotType( hsID )
 if (HSType == 1) TypeName = " Link"
 else if (HSType == 2) TypeName = " URL"
 else if (HSType == 4) TypeName = "n Unknown"
 else TypeName = "n invalid"
 Debug.trace( "Hotspot " + hsID + " is a" + TypeName + " type (" + HSType + ")\n")
}

Note:
This example assumes that there are 10 hotspots in the file and they are numbered from 1 to 10. This may not be the case for all QuickTime VR movies and will depend on the movie author.

Close