ActiveDen

Pano Flip Book Spot Panorama Player

I am the author of Pano Flip Book software ( http://pano-flip-book.com – the book has lots of code open source and there is a free version too) – this is the only flash flipping book that displays virtual panoramas 360° inside pages. Until now the Pano Flip Book used Flash Panorama Player (FPP) to display panoramas inside pages. Pano Flip Book Spot Panorama Player has been written for the Pano Flip Book to allow the book to display more than one panorama on a single page. However this lead to creating a panorama player – Pano Flip Book Spot Panorama Player – that can actually be used with any as3 flash application. A few more functions added to the player made the player a first class and the only one of this kind on the market. It is simple and simple and even more simple, nearly too simple to be true. This simplicity makes it possible to treat a virtual panorama like a simple image. And even though you display several panoramas at the same time, the player needs so little CPU power that it make the player the only player that will not kill your user’s/guest’s machine.

The above demo shows 5 panoramas with different settings, it is not possible to show 5 fully spherical panoramas at the same time with any other software, even though they are small each panorama is around 2500px wide as equirectangular projection (this is why it takes time to load), even though they are small in the demo (as I needed to make a file 590px x 300px) each panorama can be resized with the zoom button to stage width and stage height, if you use the small fullscreen button (first on the right at bottom buttons) the file will switch to fullscreen mode and panorama will be resized to the width and the height of your monitor. Even though the demo is small and the Pano Flip Book Spot Panorama Player is intended to be used as a spot panorama it is also very powerful and gives you main features of every advanced panorama player.

The package you download includes the player itself with all source files and 5 panoramas used in the demo, html page with swfobject example and additional 2 fla files witch are examples how to use the player in an as3 application using either variables or loadrInfo parameters. All you need to use the player for any kind of your as3 flash application.

Here are examples how to use it:

1) with an xml file

FPP example:

spot id="pano1" url="path/to/PFB_Spot_Panorama_Playe.swf?pano=path/to/panorama/cubes/cube&x=20&y=20&width=300&height=300&auto=true" static="1" align="BL" salign="BL" staticX="50" staticY="-15" blockMouse="0"

KRPano example:

plugin name="pano1" url="path/to/PFB_Spot_Panorama_Playe.swf?pano=path/to/panorama/cubes/cube&x=20&y=20&width=300&height=300&auto=true" keep="true" handcursor="false" visible="true"

Pano Flip Book example:

spot type="pano" url="path/to/PFB_Spot_Panorama_Playe.swf?pano=path/to/panorama/cubes/cube&x=20&y=20&width=300&height=300&auto=true"

Other flash applications:

similar to the 3 above examples. sorry, I can’t use html tags

2) with an sfw object:

var so = new SWFObject("PFB_Spot_Panorama_Player.swf", "Pano Flip Book Spot Panorama Player", "100%", "100%", "10", "#06050B"); 
    so.addVariable("pano","cubes/wieza_okragla/cube");
    so.addVariable("auto","true");
    so.addVariable("fullscreen","true");    
    so.addVariable("redirect", window.location);
    so.addParam("allowFullScreen","true");
    so.addParam("allowScriptAccess","sameDomain");
    so.write("flashcontent");
    window.document["Pano Flip Book Spot Panorama Player"].focus();

3) with as3 code:

a) using loderInfo:

loader1.load(new URLRequest("PFB_Spot_Panorama_Player.swf
?pano=cubes/wieza_prostokatna/cube&scale=false&x=10&y=10&width=330&height=150&auto=true"));
this.addChild(loader1);
loader1.contentLoaderInfo.addEventListener(Event.COMPLETE, loadHandler1);

function loadHandler1(event:Event = null) {            
    trace("loaded");
    pano1 = event.target.content as Object;    
    pano1.addEventListener(pano1.PANOFULLSCREENON, doSomething);
    pano1.addEventListener(pano1.PANOFULLSCREENOFF, doSomething2);
}

b) using variables:

loader1.load(new URLRequest("PFB_Spot_Panorama_Player.swf"));
this.addChild(loader1);
loader1.contentLoaderInfo.addEventListener(Event.COMPLETE, loadHandler1);

function loadHandler1(event:Event = null) {        
    trace("loaded");
    pano1 = event.target.content as Object;    
    pano1.SCALETOSTAGE = false;
    pano1.cubeName = "cubes/wieza_prostokatna/cube";
    pano1.SHOWBUTTONS = true;
    pano1.SHOWZOOM = true;
    pano1.SHOWFULLSCREEN = true;
    pano1.userX = 10;
    pano1.userY = 10;
    pano1.userWidth = 330;
    pano1.userHeight = 150;    
    pano1.AUTO = true;
    pano1.initialize();

    pano1.addEventListener(pano1.PANOFULLSCREENON, doSomething);
    pano1.addEventListener(pano1.PANOFULLSCREENOFF, doSomething2);
}

both working examples are included

by
by
by
by
by