My account
Shopping cart
Knowledge base
Support


JC Panorama Events



Overview | Properties | Methods | Events | Hotspots | Editor

Event Description
HOTSPOT_ACTION The event is dispatched when the action of a hotspot is initiated. The event object contains information about the hotspot and the content.

Event object properties:
- attributes:Array - all the attributes of the target hotspot
- content:Object - a reference to the hotspot object

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. HOTSPOT_ACTION, hotspotAction);

function hotspotAction(evt:JCPanoramaViewerEvents): void {
   trace("Hotspot has initiated the action :: "+evt.attributes+" :: "+evt.content);
}
HOTSPOT_DOUBLE_CLICK The event is dispatched when there's a double click mouse action on the hotspot. The event object contains information about the hotspot and the content.

Event object properties:
- attributes:Array - all the attributes of the target hotspot
- content:Object - a reference to the hotspot object

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. HOTSPOT_DOUBLE_CLICK, hotspotSelected);

function hotspotSelected(evt:JCPanoramaViewerEvents):void {
   trace("hotspot selected :: "+evt.attributes+" :: "+evt.content);
}
HOTSPOT_PRESS The event is dispatched when there's a mouse press action on the hotspot. The event object contains information about the hotspot and the content.

Event object properties:
- attributes:Array - all the attributes of the target hotspot
- content:Object - a reference to the hotspot object

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. HOTSPOT_PRESS, hotspotPress);

function hotspotPress(evt:JCPanoramaViewerEvents): void {
   trace("hotspot pressed... "+evt.attributes+" :: "+evt.content);
}
HOTSPOT_RELEASE The event is dispatched when there's a mouse release action on the hotspot. The event object contains information about the hotspot and the content.

Event object properties:
- attributes:Array - all the attributes of the target hotspot
- content:Object - a reference to the hotspot object

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. HOTSPOT_RELEASE, hotspotReleased);

function hotspotReleased(evt:JCPanoramaViewerEvents):void {
   trace("hotspot released... "+evt.attributes+" :: "+evt.content);
}
HOTSPOT_ROLL_OUT The event is dispatched when the mouse rolls outside the hotspot. The event object contains information about the hotspot and the content.

Event object properties:
- attributes:Array - all the attributes of the target hotspot
- content:Object - a reference to the hotspot object

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. HOTSPOT_ROLL_OUT, hotspotOut);

function hotspotOut(evt:JCPanoramaViewerEvents): void {
   trace("mouse rolled out of hotspot :: "+evt.attributes+" :: "+evt.content);
}
HOTSPOT_ROLL_OVER The event is dispatched when the mouse rolls over the hotspot. The event object contains information about the hotspot and the content.

Event object properties:
- attributes:Array - all the attributes of the target hotspot
- content:Object - a reference to the hotspot object

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. HOTSPOT_ROLL_OVER, hotspotOver);

function hotspotOver(evt:JCPanoramaViewerEvents): void {
   trace("mouse over hotspot :: "+evt.attributes+" :: "+evt.content);
}
IMAGE_LOAD_COMPLETE The event is dispatched when the images has completely loaded. This event is dispatched for each image separately. The event object specifies how much of image has loaded and the total size of the image.

Event object properties:
- index:int - the index of the image that was loaded
- path:String - the path and file name of the image that was loaded

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. IMAGE_LOAD_COMPLETE, imageLoaded);

function imageLoaded(evt:JCPanoramaViewerEvents):void {
   trace("Completed "+evt.index+" :: "+evt.path);
}
IMAGE_LOAD_ERROR The event is dispatched when there was an error during the loading process of an image. This event is dispatched for each image separately. The event object specifies how much of image has loaded and the total size of the image.

Event object properties:
- index:int - the index of the image that starts loading
- path:String - the path and file name of the image that starts loading

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. IMAGE_LOAD_ERROR, imageError);

function imageError(evt:JCPanoramaViewerEvents): void {
   trace("Error loading image "+evt.index+" :: "+evt.path);
}
IMAGE_LOAD_PROGRESS The event is dispatched during the loading process of the images of the panorama. This event is dispatched for each image separately. The event object specifies how much of image has loaded and the total size of the image.

Event object properties:
- index:int - the index of the image that starts loading
- path:String - the path and file name of the image that starts loading
- bytesLoaded:int - how much of the target image has been loaded so far
- bytesTotal:int - the total size of the target image

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. IMAGE_LOAD_PROGRESS, imageLoading);

function imageLoading(evt:JCPanoramaViewerEvents):void {
   trace("Loading "+evt.index+" :: "+evt.path);
   trace("progress :: "+evt.bytesLoaded+" / "+evt.bytesTotal);
}
IMAGE_LOAD_START The event is dispatched when an image starts loading into the panorama. This event is dispatched for each image separately. The event object provides the index of the image and its path.

Event object properties:
- index:int - the index of the image that starts loading
- path:String - the path and file name of the image that starts loading

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. IMAGE_LOAD_START, imageStart);

function imageStart(evt:JCPanoramaViewerEvents): void {
   trace("Starting "+evt.index+" :: "+evt.path);
}
INIT The event is dispatched when the panorama is already initialized and displayed.

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. INIT, panoramaInitialized);

function panoramaInitialized(evt:JCPanoramaViewerEvents): void {
   trace("The panorama has been initialized. You can now access the contents: "+evt.target.content);
}
LOAD_COMPLETE The event is dispatched when the panorama starts loading the images. This event is dispatched once, when each panorama has finished loading.

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. LOAD_COMPLETE, loadingComplete);

function loadingComplete(evt:JCPanoramaViewerEvents): void {
   trace("loading is complete...");
}
LOAD_PROGRESS The event is dispatched during the loading process of the panorama's contents. This event is dispatched once for each panorama.

Event object properties:
- index:int - the number of loaded images so far
- totalImages:int - the total number of images that should be loaded

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. LOAD_PROGRESS, loadInProgress);

function loadInProgress(evt:JCPanoramaViewerEvents):void {
   trace("loaded "+evt.index+" out of "+evt.totalImages);
}
LOAD_START The event is dispatched when the panorama starts loading the images. This event is dispatched once, when each panorama starts loading.

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. LOAD_START, startingLoad);

function startingLoad(evt:JCPanoramaViewerEvents): void {
   trace("starting the loading process...");
}
NODE_CHANGED The event is dispatched when a node of the virtual tour has changed.

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. NODE_CHANGED, nodeChanged);

function nodeChanged(evt:JCPanoramaViewerEvents): void {
   trace("Node has changed...");
}
ROTATE The event is dispatched when the camera is rotated. The new pan and tilt values can be retrieved directly from the component instance.

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. ROTATE, panoramaRotated);

function panoramaRotated(evt:JCPanoramaViewerEvents):void {
   trace("New position: "+myPanorama.pan+" , "+myPanorama.tilt);
}
TRANSITION_FINISH The event is dispatched when the transition between two virtual tour nodes has finished.

Event object properties:
- transitionType:String - the type of transition that is executing: show or hide

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. TRANSITION_FINISH, transitionEnd);

function transitionEnd(evt:JCPanoramaViewerEvents): void {
   trace("Transition "+evt.transitionType+" ended...");
}
TRANSITION_START The event is dispatched when the transition between two virtual tour nodes starts.

Event object properties:
- transitionType:String - the type of transition that is executing: show or hide

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. TRANSITION_START, transitionStart);

function transitionStart(evt:JCPanoramaViewerEvents):void {
   trace("Starting "+evt.transitionType+" transition...");
}
UNLOAD The event is dispatched when currently loaded panorama gets unloaded (call to the unload() method), deleted (call to the deletePanorama() method) or replaced by another panorama (a new XML data is loaded via the xmlPath or xml property).

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. UNLOAD, panoramaUnloaded);

function panoramaUnloaded(evt:JCPanoramaViewerEvents):void {
   trace("Panorama has been unloaded...");
}
XML_LOAD_COMPLETE The event is dispatched after the XML data has completely loaded.

Event object properties:
- path:String - the path and file name of the source .xml file
- bytesTotal:int - the total size of the XML data
- xml:XML - a reference to the object containing the XML data

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. XML_LOAD_COMPLETE, xmlComplete);

function xmlComplete(evt:JCPanoramaViewerEvents):void {
   trace("XML data loaded :: "+evt.path+" :: "+evt.xml);
}
XML_LOAD_PROGRESS The event is dispatched during the loading process of the XML data.

Event object properties:
- path:String - the path and file name of the source .xml file
- bytesLoaded:int - how much of the XML data has loaded so far
- bytesTotal:int - the total size of the XML data

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. XML_LOAD_PROGRESS, xmlLoading);

function xmlLoading(evt:JCPanoramaViewerEvents): void {
   trace("loading XML data :: "+evt.bytesLoaded+" / "+evt.bytesTotal+" :: "+evt.path);
}
XML_LOAD_START The event is dispatched when the panorama starts loading the .xml file.

Event object properties:
- path:String - the path and file name of the source .xml file

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. XML_LOAD_START, xmlStarted);

function xmlStarted(evt:JCPanoramaViewerEvents): void {
   trace("starting to load XML data :: "+evt.path);
}
ZOOM The event is dispatched when the zoom level changes. The new zoom value can be retrieved directly from the component instance.

Example:
import com.jumpeye.Events.JCPanoramaViewerEvents;

myPanorama.addEventListener(JCPanoramaViewerEvents. ZOOM, panoramaZoom);

function panoramaZoom(evt:JCPanoramaViewerEvents): void {
   trace("New zoom level: "+myPanorama.zoom);
}

Overview | Properties | Methods | Events | Hotspots | Editor

The pack includes the .mxp install file, the AIR virtual tour creator and panorama editing software and the documentation files.
Planar, cylindrical, spherical and cubic panorama types
Virtual tours
User-friendly editor interface
Transitions
Hotspots
The free version contains limitations and displays a watermark. This version can be used for trial purposes.
Planar and cylindrical panorama types only
Watermarked