JC Panorama Methods



Overview | Properties | Methods | Events | Hotspots | Editor

Method Description
deletePanorama():void Deletes the currently loaded panorama (all the XML data and content) without using any transition to hide the visible content.
getPosition():Object Returns the current position of the panorama.

Returns:
- an object containing the current pan and tilt values - the horizontal and vertical position in degrees
loadContent(source:String):void Loads the specified content into the panorama.

Parameters:
- source:String - the path and file name of the target content
reload():void Reloads all the images of the panorama. The current position of the component should not change.
render():void Forces the component to redraw. The component should keep its position and none of the properties should change.
setPosition(pan:Number, tilt:Number):void Sets a new position for the panorama.

Parameters:
- pan:Number - the new pan value (the horizontal angle) from 0 to 359
- tilt:Number - the new tilt value (the vertical angle) from 0 to 359
setSize(width:Number, height:Number):void Sets a new size for the component.

Parameters:
- width:Number - the new width of the component instance
- height:Number - the new height of the component instance
unload():void Unloads the current panorama and applies the currently selected transition (transitionType) before visually removing it.

Overview | Properties | Methods | Events | Hotspots | Editor