Keyboard zoom buttons

You may wish to allow the user to zoom in and out using keyboard hot keys. The follow code shows how to enable to letter "q" for zooming in and "a" for zooming out. To use this code, give the 360PanViewerPRO an instance name of pan360 and place this code on the timeline:

kListener = {};
kListener.onKeyDown = function() {
	if( chr( Key.getAscii() ) == "q" ) {
		pan360.zoom += 10;
	} else if ( chr( Key.getAscii() ) == "a" ) {
		pan360.zoom -= 10;
	}
};
Key.addListener(kListener);