Actionscript updating dynamic text
The scripting language is dynamic and untyped by default, only some predefined variables are typed, but that is normally not relevant because inside the scripts all type conversions will be done automatically.
The expression syntax will be used in if checks, in conditional loops (for, loop) and in the calc action.
That means the elements on mobiles are typically half the size as on desktop or tablets. to implement some custom responsive layout) add this code to the first xml: device.flash device.flashversion device.html5 device.desktop device.normal device.tablet device.mobile device.handheld device.css3d device.webgl device.multiressupport device.panovideosupport device.fullscreensupport device.pixelratio device.fractionalscaling device.mouse device.touch device.iosversion device.iphone device.android device.androidversion device.androidstock device.chrome device.chromemobile device.chromeversion device.firefox device.firefoxversion device.ieversion device.safari device.safariversion device.opera device.operaversion device.standalone device.windows device.linux Boolean Number Boolean Boolean Boolean Boolean Boolean Boolean Boolean Boolean Boolean Boolean Boolean Number Boolean Boolean Boolean Boolean Number Boolean Boolean Boolean Boolean Number Boolean Boolean Boolean Number Boolean Number Boolean Number Boolean Boolean Number Boolean Number Boolean Boolean Boolean Boolean The device object provides information about the current device/system.
It's the dynamic/scripting equivalent to the xml devices attribute.
The coordinates itself are relative to the left top edge of the area.
The mouse.clickx and mouse.clicky variables are special case ones - they store the position where the click from onsingleclick or ondoubleclick events had happend.
This can be used to ensure defining new variables at the local scope when there might be already global variables with the same names. The mouse.x and mouse.y coordinates are relative to the left top edge of the area.Example - switch to fullscreen mode: A global overall scaling setting.The stagescale setting will scale all krpano elements and sizes.In comparisons the strings must be explicitly marked by quotes.
Variables will resolve either to their value or to null if they don't exists.When they will be set to a value other than 0.0, the view will start slowly accelerating (controlled by control.keybaccelerate) and then move with a maximum speed (controlled by control.keybspeed) until they will be set back to 0.0, then the movement will slow down (controlled by control.keybfriction).