close panorama

krpano Quick Reference Version 1.19

Startup / Embedding Variables

xml
simulatedevice

Startup & Loading 'shortcut' Variables (Flash only)

sphere image.sphere.url
cylinder image.cylinder.url
mov image.qtvr.url
qtvr image.qtvr.url
zoomify image.zoomify.url
zoomifytype image.zoomify.type
hfov image.hfov
vfov image.vfov
cubestrip image.cubestrip.url
order cubestrip strip order string (e.g. "LFRBUD")
left image.left.url
front image.front.url
right image.right.url
back image.back.url
up image.up.url
down image.down.url

XML Variables Reference

version String
build String
xmlversion String
 
haveexternalinterface Boolean
havenetworkaccess Boolean
debugmode Boolean false
showerrors Boolean true
lasterror String
colorcorrection String "default"
bgcolor String
idletime Number 0.5
 
fullscreen Boolean false
stagewidth int
stageheight int
 
Math.PI Number 3.141592
 
mouse.x Number
mouse.y Number
mouse.stagex Number
mouse.stagey Number
 
keycode int
wheeldelta int
wheeldelta_raw Number
wheeldelta_touchscale Number 0.0
 
hlookat_moveforce Number 0.0
vlookat_moveforce Number 0.0
fov_moveforce Number 0.0
 
timertick int
random Number
 
multireslevel int 0
lockmultireslevel String "-1"
downloadlockedlevel Boolean false
 
browser.useragent String
browser.platform String
browser.location String
browser.domain String
 
device.flash Boolean read only
device.flashversion Number read only
device.html5 Boolean read only
device.desktop Boolean read only
device.mobile Boolean read only
device.tablet Boolean read only
device.css3d Boolean read only
device.webgl Boolean read only
device.multiressupport Boolean read only
device.panovideosupport Boolean read only
device.fullscreensupport Boolean read only
device.pixelratio Number 1.0read only
device.mouse Boolean read only
device.touch Boolean read only
device.ios Boolean read only
device.iosversion Number read only
device.iphone Boolean read only
device.ipod Boolean read only
device.ipad Boolean read only
device.retina Boolean read only
device.android Boolean read only
device.androidversion Number read only
device.androidstock Boolean read only
device.blackberry Boolean read only
device.chrome Boolean read only
device.chromeversion Number read only
device.firefox Boolean read only
device.firefoxversion Number read only
device.ie Boolean read only
device.ieversion Number read only
device.safari Boolean read only
device.safariversion Number read only
device.opera Boolean read only
device.operaversion Number read only
device.air Boolean read only
device.standalone Boolean read only
device.windows Boolean read only
device.mac Boolean read only
device.linux Boolean read only
 
xml.url String
xml.content String
xml.scene String
 
area.mode String "align"
area.x String "0%"
area.y String "0%"
area.width String "100%"
area.height String "100%"
area.top String "0"
area.bottom String "0"
area.left String "0"
area.right String "0"
area.pixelx int read only
area.pixely int read only
area.pixelwidth int read only
area.pixelheight int read only
 
display.fps Number 60.0
display.currentfps Number
display.flash10 String "on"
display.details int 24
display.tessmode int -1
display.movequality String "LOW"
display.stillquality String "HIGH"
display.movequality10 String "BEST"
display.stillquality10 String "BEST"
display.sharpen int "12
display.stilltime Number "0.25"
display.showpolys Boolean "false"
display.hardwarelimit int
display.usedesktopimages Boolean false
display.mipmapping String "auto"
display.loadwhilemovingString
 
view.hlookat Number 0.0
view.vlookat Number 0.0
view.camroll Number 0.0
view.fov Number 90.0
view.fovtype String "VFOV"
view.fovmin Number 1.0
view.fovmax Number 179.0
view.vfov Number read only
view.hfov Number read only
view.maxpixelzoom Number NaN
view.mfovratio Number 1.333333
view.fisheye Number 0.0
view.fisheyefovlink Number 1.5
view.stereographic Boolean false
view.pannini Number 0.0
view.architectural Number 0.0
view.architecturalonlymiddleBoolean true
view.limitview String "auto"
view.hlookatmin Number NaN
view.hlookatmax Number NaN
view.vlookatmin Number NaN
view.vlookatmax Number NaN
view.hlookatrange Number
view.vlookatrange Number
 
control.usercontrol String "all"
control.mousetype String "moveto"
control.touchtype String "drag2d"
control.mouseaccelerate Number 1.0
control.mousespeed Number 10.0
control.mousefriction Number 0.8
control.mouseyfriction Number 1.0
control.mousefovchange Number 1.0
control.keybaccelerate Number 0.5
control.keybspeed Number 10.0
control.keybfriction Number 0.9
control.keybfovchange Number 0.75
control.keybinvert Boolean false
control.fovspeed Number 3.0
control.fovfriction Number 0.9
control.movetocursor String "none"
control.cursorsize Number 10.0
control.headswing Number 0.0
control.camrollreset Boolean true
control.keycodesleft String "37"
control.keycodesright String "39"
control.keycodesup String "38"
control.keycodesdown String "40"
control.keycodesin String ""
control.keycodesout String ""
control.zoomtocursor Boolean false
control.zoomoutcursor Boolean true
control.bouncinglimits Boolean false
control.touchfriction Number 0.87
control.touchzoom Boolean true
 
cursors.url String
cursors.type String "8way"
cursors.move String
cursors.drag String
cursors.arrow_l String
cursors.arrow_lu String
cursors.arrow_ld String
cursors.arrow_r String
cursors.arrow_ru String
cursors.arrow_rd String
cursors.arrow_u String
cursors.arrow_d String
 
autorotate.enabled Boolean false
autorotate.waittime Number 1.5
autorotate.accel Number 1.0
autorotate.speed Number 10.0
autorotate.horizon Number 0.0
autorotate.tofov Number NaN
 
progress.showload String "none"
progress.showwait String "none"
progress.showreloadsBoolean false
progress.parentString
 
progress.progress Number 0.0 read only
progress.isloading Boolean false read only
progress.loaddone Boolean false read only
progress.blenddone Boolean false read only
progress.isblending Boolean false read only
progress.previewdoneBoolean false read only
progress.bytesloadedNumber 0.0 read only
progress.bytestotal Number 0.0 read only
 
preview.type String
preview.url String
preview.striporderString "LFRBUD"
preview.details int 16
 
image.type String
image.tiled Boolean false
image.baseindex int 1
image.tilesize int
image.tiledimagewidth int
image.tiledimageheight int
image.prealign String
image.hfov Number
image.vfov Number
image.voffset Number
image.multires Boolean false
image.multiresthreshold Number 0.025
image.progressive Boolean true
image.frame int 1
image.frames int 1
image.layer Sprite AS3 usage only
image.cube.url String
image.sphere.url String
image.cylinder.url String
image.qtvr.url String
image.qtvr.preview Boolean true
image.qtvr.setview Boolean true
image.zoomify.url String
image.zoomify.type String "SPHERE"
image.zoomify.setview Boolean true
image.cubestrip.url String
image.left.url String
image.left.strip int 1
image.left.rotate int 0
image.left.flip String
image.front.url String
image.front.strip int 2
image.front.rotate int 0
image.front.flip String
image.right.url String
image.right.strip int 3
image.right.rotate int 0
image.right.flip String
image.back.url String
image.back.strip int 4
image.back.rotate int 0
image.back.flip String
image.up.url String
image.up.strip int 5
image.up.rotate int 0
image.up.flip String
image.down.url String
image.down.strip int 6
image.down.rotate int 0
image.down.flip String
image.level.count int 0 read only
image.level[...].tiledimagewidth int
image.level[...].tiledimageheight int
image.level[...].tilesize int
image.level[...].download String "auto"
image.level[...].decode String "auto"
image.level[...].details int
image.level[...].aspreview Boolean false
image.level[...].sphere.url String
image.level[...].cylinder.url String
image.level[...].left.url String
image.level[...].front.url String
image.level[...].right.url String
image.level[...].back.url String
image.level[...].up.url String
image.level[...].down.url String
 
events[...].name String
events[...].keep Boolean false
events.onenterfullscreen Action Event
events.onexitfullscreen Action Event
events.onxmlcomplete Action Event
events.onpreviewcomplete Action Event
events.onloadcomplete Action Event
events.onnewpano Action Event
events.onremovepano Action Event
events.onnewscene Action Event
events.onloaderror Action Event
events.onkeydown Action Event
events.onkeyup Action Event
events.onviewchange Action Event
events.onviewchanged Action Event
events.onclick Action Event
events.onmousedown Action Event
events.onmouseup Action Event
events.onmousewheel Action Event
events.onidle Action Event
events.onresize Action Event
 
security.cors String ""
security.crossdomainxml.count int 0
security.crossdomainxml[...].url String
security.allowdomain.count int 0
security.allowdomain[...].domain String
 
contextmenu.fullscreen Boolean true
contextmenu.enterfs String "Fullscreen"
contextmenu.exitfs String "Exit Fullscreen"
contextmenu.native Boolean false
contextmenu.versioninfo Boolean true
contextmenu.item.count int 0 read only
contextmenu.item[...].enabled Boolean true
contextmenu.item[...].visible Boolean true
contextmenu.item[...].caption String
contextmenu.item[...].separator Boolean false
contextmenu.item[...].onclick Action Event
 
network.downloadqueues int 0 0 = auto
network.decodequeues int 0 0 = auto
network.retrycount int 2
network.caching Boolean true
network.cachesize Number true MB
 
memory.maxmem int 350 MB
 
plugin.count int 0
plugin.enabled Boolean true
plugin.visible Boolean true
plugin.alpha Number 1.0
plugin.layer Sprite AS3 usage only
 
plugin[...].index int read only
plugin[...].name String
plugin[...].sprite Sprite read only
plugin[...].type String "image"
plugin[...].url String
plugin[...].alturl String
plugin[...].devices String "all"
plugin[...].visible Boolean true
plugin[...].enabled Boolean true
plugin[...].capture Boolean true
plugin[...].children Boolean true
plugin[...].handcursor Boolean true
plugin[...].maskchildren Boolean false
plugin[...].keep Boolean false
plugin[...].zorder int
plugin[...].preload Boolean false
plugin[...].loader Loader null read only
plugin[...].loading Boolean false read only
plugin[...].loaded Boolean false read only
plugin[...].loadedurl String
plugin[...].hovering Boolean false read only
plugin[...].pressed Boolean false read only
plugin[...].accuracy int 0
plugin[...].alpha Number 1.0
plugin[...].autoalpha Boolean false
plugin[...].blendmode String "normal"
plugin[...].align String
plugin[...].edge String
plugin[...].x String
plugin[...].y String
plugin[...].ox String
plugin[...].oy String
plugin[...].rotate Number 0.0
plugin[...].width String
plugin[...].height String
plugin[...].minwidth int 0
plugin[...].maxwidth int 0
plugin[...].minheight int 0
plugin[...].maxheight int 0
plugin[...].imagewidth int
plugin[...].imageheight int
plugin[...].pixelx int
plugin[...].pixely int
plugin[...].pixelwidth int
plugin[...].pixelheight int
plugin[...].usecontentsize Boolean false
plugin[...].scale Number 1.0
plugin[...].scale9grid String
plugin[...].crop String
plugin[...].onovercrop String
plugin[...].ondowncrop String
plugin[...].scalechildren Boolean false
plugin[...].parent String
plugin[...].mask String
plugin[...].effect String
plugin[...].style String
plugin[...].pixelhittest Boolean false
plugin[...].smoothing Boolean true
plugin[...].bgcolor int 0x000000
plugin[...].bgalpha Number 0.0
plugin[...].bgborder String "0"
plugin[...].bgroundedge String "0"
plugin[...].bgshadow String
plugin[...].bgcapture Boolean false
plugin[...].onover Action Event
plugin[...].onhover Action Event
plugin[...].onout Action Event
plugin[...].onclick Action Event
plugin[...].ondown Action Event
plugin[...].onup Action Event
plugin[...].onloaded Action Event
plugin[...].loadstyle(name) Action
plugin[...].registercontentsize(w,h) Action
plugin[...].resetsize() Action
plugin[...].updatepos() Action
plugin[...].changeorigin(align) Action
plugin[...].getfullpath() AS3 Function AS3 usage only
 
plugin.count int 0
plugin.enabled Boolean true
plugin.visible Boolean true
plugin.alpha Number 1.0
layer.layer Sprite AS3 usage only
 
layer[...].index int read only
layer[...].name String
layer[...].sprite Sprite read only
layer[...].type String "image"
layer[...].url String
layer[...].alturl String
layer[...].devices String "all"
layer[...].visible Boolean true
layer[...].enabled Boolean true
layer[...].capture Boolean true
layer[...].children Boolean true
layer[...].handcursor Boolean true
layer[...].maskchildren Boolean false
layer[...].keep Boolean false
layer[...].zorder int
layer[...].preload Boolean false
layer[...].loader Loader null read only
layer[...].loading Boolean false read only
layer[...].loaded Boolean false read only
layer[...].loadedurl String
layer[...].hovering Boolean false read only
layer[...].pressed Boolean false read only
layer[...].accuracy int 0
layer[...].alpha Number 1.0
layer[...].autoalpha Boolean false
layer[...].blendmode String "normal"
layer[...].align String
layer[...].edge String
layer[...].x String
layer[...].y String
layer[...].ox String
layer[...].oy String
layer[...].rotate Number 0.0
layer[...].width String
layer[...].height String
layer[...].minwidth int 0
layer[...].maxwidth int 0
layer[...].minheight int 0
layer[...].maxheight int 0
layer[...].imagewidth int
layer[...].imageheight int
layer[...].pixelx int
layer[...].pixely int
layer[...].pixelwidth int
layer[...].pixelheight int
layer[...].usecontentsize Boolean false
layer[...].scale Number 1.0
layer[...].scale9grid String
layer[...].crop String
layer[...].onovercrop String
layer[...].ondowncrop String
layer[...].scalechildren Boolean false
layer[...].parent String
layer[...].mask String
layer[...].effect String
layer[...].style String
layer[...].pixelhittest Boolean false
layer[...].smoothing Boolean true
layer[...].bgcolor int 0x000000
layer[...].bgalpha Number 0.0
plugin[...].bgborder String "0"
plugin[...].bgroundedge String "0"
plugin[...].bgshadow String
layer[...].bgcapture Boolean false
layer[...].onover Action Event
layer[...].onhover Action Event
layer[...].onout Action Event
layer[...].onclick Action Event
layer[...].ondown Action Event
layer[...].onup Action Event
layer[...].onloaded Action Event
layer[...].loadstyle(name) Action
layer[...].registercontentsize(w,h) Action
layer[...].resetsize() Action
layer[...].updatepos() Action
layer[...].changeorigin(align) Action
layer[...].getfullpath() AS3 Function AS3 usage only
 
hotspot.count int
hotspot.enabled Boolean
hotspot.visible Boolean
hotspot.alpha Number
hotspot.layer Sprite
hotspot[...].index int
hotspot[...].name String
hotspot[...].sprite Sprite
hotspot[...].loader Loader
hotspot[...].zorder String
hotspot[...].zorder2 Number 0.0
hotspot[...].url String
hotspot[...].alturl String
hotspot[...].devices String "all"
hotspot[...].visible Boolean true
hotspot[...].enabled Boolean true
hotspot[...].capture Boolean true
hotspot[...].children Boolean true
hotspot[...].handcursor Boolean true
hotspot[...].maskchildren Boolean false
hotspot[...].keep Boolean false
hotspot[...].loading Boolean false
hotspot[...].loaded Boolean false
hotspot[...].loadedurl String
hotspot[...].hovering Boolean false
hotspot[...].pressed Boolean false
hotspot[...].alpha Number 1.0
hotspot[...].autoalpha Boolean false
hotspot[...].blendmode String "normal"
hotspot[...].distorted Boolean false
hotspot[...].zoom Boolean false
hotspot[...].ath Number 0.0
hotspot[...].atv Number 0.0
hotspot[...].flying Number 0.0
hotspot[...].details int 8
hotspot[...].rx Number 0.0
hotspot[...].ry Number 0.0
hotspot[...].rz Number 0.0
hotspot[...].inverserotation Boolean false
hotspot[...].ismovie Boolean false
hotspot[...].refreshrate String "auto"
hotspot[...].align String "center"
hotspot[...].edge String "center"
hotspot[...].ox String
hotspot[...].oy String
hotspot[...].rotate Number 0.0
hotspot[...].width String
hotspot[...].height String
hotspot[...].imagewidth int
hotspot[...].imageheight int
hotspot[...].usecontentsize Boolean false
hotspot[...].scale Number 1.0
hotspot[...].scale9grid String
hotspot[...].crop String
hotspot[...].onovercrop String
hotspot[...].ondowncrop String
hotspot[...].scalechildren Boolean false
hotspot[...].parent String
hotspot[...].mask String
hotspot[...].effect String
hotspot[...].style String
hotspot[...].pixelhittest Boolean false
hotspot[...].smoothing Boolean true
hotspot[...].onover Action Event
hotspot[...].onhover Action Event
hotspot[...].onout Action Event
hotspot[...].onclick Action Event
hotspot[...].ondown Action Event
hotspot[...].onup Action Event
hotspot[...].onloaded Action Event
hotspot[...].loadstyle()
hotspot[...].registercontentsize(w,h)
hotspot[...].resetsize()
hotspot[...].updatepos()
hotspot[...].getfullpath() AS3 Function return:String AS3 usage only
hotspot[...].getcenter() AS3 Function return:Object
hotspot[...].fillcolor int 0xAAAAAA
hotspot[...].fillalpha Number 0.5
hotspot[...].borderwidth Number 3.0
hotspot[...].bordercolor int 0xAAAAAA
hotspot[...].borderalpha Number 1.0
hotspot[...].point.count
hotspot[...].point[...].ath
hotspot[...].point[...].atv
 
textstyle.count int 0 read only
textstyle[...].name String
textstyle[...].index int read only
textstyle[...].font String "Times"
textstyle[...].fontsize Number 12.0
textstyle[...].bold Boolean true
textstyle[...].italic Boolean false
textstyle[...].background Boolean true
textstyle[...].backgroundcolor int 0xFFFFFF
textstyle[...].border Boolean true
textstyle[...].bordercolor int 0x000000
textstyle[...].textcolor int 0x000000
textstyle[...].alpha Number 1.0
textstyle[...].blendmode String "normal"
textstyle[...].effect String
textstyle[...].origin String "cursor"
textstyle[...].edge String "bottom"
textstyle[...].textalign String "none"
textstyle[...].xoffset int 0
textstyle[...].yoffset int -3
textstyle[...].showtime Number 0.1
textstyle[...].fadetime Number 0.0
textstyle[...].fadeintime Number 0.0
textstyle[...].noclip Boolean true
 
lensflareset.count int read only
lensflareset[...].name String
lensflareset[...].index int read only
lensflareset[...].url String
lensflareset[...].flare.count int read only
lensflareset[...].flare[...].name String
lensflareset[...].flare[...].index int read only
lensflareset[...].flare[...].pixsize int 0
lensflareset[...].flare[...].pixupos int 0
lensflareset[...].flare[...].pixvpos int 0
lensflareset[...].flare[...].color int 0xFFFFFF
lensflareset[...].flare[...].pos Number 0.0
lensflareset[...].flare[...].scale Number 1.0
 
lensflare.count int 0 read only
lensflare.visible Boolean true
lensflare.alpha Number 1.0
lensflare.layer Sprite AS3 usage only
lensflare[...].name String
lensflare[...].index int read only
lensflare[...].set String "DEFAULT"
lensflare[...].visible Boolean true
lensflare[...].keep Boolean false
lensflare[...].ath Number 0.0
lensflare[...].atv Number 0.0
lensflare[...].size Number 0.8
lensflare[...].blind Number 0.6
lensflare[...].blindcurve Number 4.0
 
action.count int 0
action[...].name String
action[...].secure Boolean false
action[...].autorun String
action[...].content String
 
scene.count int 0
scene[...].name String
scene[...].onstart Action Event
scene[...].content String
 
data.count int 0
data[...].name String
data[...].content String

Actions Reference

Programming logic / Flow control Math operators and functions Number / String formating Animations / Animated value changing Dynamic loading of other panos / tours Viewing animations / Camera control Coordinate transformation Text visualization View / Pano updates Dynamic adding or removing of screen elements Plugin / Hotspot Actions External / Javascript Interface Debugging