Panorama schließen

Usage

There are multiple ways to use the krpano Flash Panorama Viewer:

1. Use the default XML loading

per default krpano loads all panorama settings from a XML file which is named identical to the SWF file (you can rename krpano.swf to any name you want)

krpano.swf   -> loads krpano.xml
yourpano.swf -> loads yourpano.xml

For informations about the XML structure have a look at the XML documentation


2. Set a path to the XML file - by using the "pano" parameter

via HTTP-GET-Parameter(s):

krpano.swf?pano=yourdir/yourpano.xml

or via Flash Variables: (SWFObject 1.5 Javascript example)

var so = new SWFObject("krpano.swf","krpanoSWF","100%","100%","9.0.28");
so.addVariable("pano","yourpano.xml");
so.write("krpanoDIV");

Using Javascript for Flash embedding is recommended, there are several reasons, read here for more details: Embedding into HTML


3. Load the panorama-image directly (with or without a XML file)

for example via HTTP-GET-Parameter(s):

krpano.swf?sphere=spherepano.jpg
or:
krpano.swf?cubestrip=cubestrip.jpg
or:
krpano.swf?left=left.jpg&front=front.jpg&right=right.jpg& ...
           back=back.jpg&up=up.jpg&down=down.jpg

These examples load the sphere, the cubestrip or the single six cube side images directly without the usage of a XML file.

This can also be done via Flash Variables: (SWFObject 1.5 Javascript example)

var so = new SWFObject("krpano.swf","krpanoSWF","100%","100%","9.0.28");
so.addVariable("sphere", "spherepano.jpg");
so.write("krpanoDIV");

You can also use both, the direct image parameters AND the "pano" XML file parameter.
e.g. use the XML file only for display/control settings (without <image> tag) and set the sphere image directly:

krpano.swf?pano=settings.xml?sphere=shpere.jpg

For all available parameters have a look at the XML documentation and the API documentation.


Local usage

for running/testing krpano locally you can run it in the browser by opening the krpano.swf or run it on a localhost server or download the standalone Flash Player:

Windows (EXE, 3.69 MB)
http://download.macromedia.com/pub/flashplayer/updaters/9/sa_flashplayer_9_debug.exe

Macintosh (ZIP, 4.81 MB)
http://download.macromedia.com/pub/flashplayer/updaters/9/sa_flashplayer_9_debug.app.zip

Linux (TAR.GZ, 9.29 MB)
http://download.macromedia.com/pub/flashplayer/updaters/9/flash_player_9_linux_dev.tar.gz

If you want to use the Javascript interface locally you have to edit the Flash Player security settings, more informations here: localaccess