Topic: krpano flash panorama player integration

Hi!

My goal is to integrate a flash gallery inside the flash panorama. So i've bought TiltViewer-Pro.

During the panorama creation I've found following problem: images are not loading into the gallery integrated inside the krpano flash panorama player. Here is the link. (Just click on the large white box)

I've tried it on web-server and on localhost - there is no difference, but then i've tried an example from distribution package - it became ok. Here is the link on the sample.

It seems, like the TiltViewer cant load xml, or something. Could you please take a look?

Thanks, Dmitry.

Re: krpano flash panorama player integration

Hi,

I'm not familiar with krpano player so I cannot give support for it.

How are you passing in the XML?

Felix Turner
SimpleViewer Support Team.

Re: krpano flash panorama player integration

Hi Felix!

I'am using following syntax:

set(plugin[gallery].url, "./plugins/tiltviewer.swf?xmlURL=./plugins/gallery.xml");

It's same as in the html example:

var fo = new SWFObject("./plugins/tiltviewer.swf", "viewer", "100%", "100%", "9.0.28", "#FFFFFF");            
...
fo.addVariable("xmlURL", "./plugins/gallery.xml");

But I'am sure that the problem is not in the xml, because the gallery images placeholders are missing exactly after they appears on the screen.

Last edited by wiskey (2010-02-24 12:30:45)

Re: krpano flash panorama player integration

You need to pass in TiltViewer config options as flashVars. Did you try something like this in the HTML doc:

swf.addVariable("xmlURL","./plugins/gallery.xml");

Felix Turner
SimpleViewer Support Team.

Re: krpano flash panorama player integration

Hi Felix!

Unfortunatelly, I didn't understand what do you mean. Reganding Adabe flash documentation (1, 2), following is enough to set flash variable "xmlURL" to corresponding value.

./plugins/tiltviewer.swf?xmlURL=./plugins/gallery.xml

Please advice.

P.S.
Futrhermore, even if the xml file is missing, the html based and flash embeded acts differently. Is case of embedded flash - the gallery emidiatly closing after opening.

Last edited by wiskey (2010-02-24 23:23:39)

Re: krpano flash panorama player integration

I mean edit the HTML document that contains the krpano SWF and add this line:

swf.addVariable("xmlURL","./plugins/gallery.xml");

Or alternatively, put the gallery.xml file in the same folder as the HTML doc.

Felix Turner
SimpleViewer Support Team.

Re: krpano flash panorama player integration

Sorry, that doesn't solve my issue.
The problem is that krpano have its own xml file that describes how the swf plugins should act. So all flash variable may be set only from url.
But even if I set xmlURL - nothing happends.

I've tried to reproduce such behaviour with html but it works fine even if no xmlURL variable has been set. By default it shows some images from flickr.
At the same time, embeded gallery (I mean the TiltViewer created and initialized from the krpano) does nothing.

P.S. I've downloaded the SimpleViewer 1.9 and it works fine.

Last edited by wiskey (2010-02-26 14:03:39)

Re: krpano flash panorama player integration

Hi Felix!

Do you have any ideas?

Re: krpano flash panorama player integration

Did you try moving the gallery.xml file into the same folder as the HTML doc?

Felix Turner
SimpleViewer Support Team.

Re: krpano flash panorama player integration

Felix wrote:

Did you try moving the gallery.xml file into the same folder as the HTML doc?

Yes.

Re: krpano flash panorama player integration

Can you try what I suggested and add it to your example URL: http://perfectumlab.com/galery/panorams/test/3.html ?

I mean edit the HTML document that contains the krpano SWF and add this line:

swf.addVariable("xmlURL","./plugins/gallery.xml");

Or alternatively, put the gallery.xml file in the same folder as the HTML doc.

Setting the options by appending them to the SWF URL will not work. For embedding TiltViewer-Pro in a flash movie, the recommended way to set the config options is described in the Flash embed example: http://www.simpleviewer.net/tiltviewer/ … flashembed

Felix Turner
SimpleViewer Support Team.

Re: krpano flash panorama player integration

Felix wrote:

Can you try what I suggested and add it to your example URL: http://perfectumlab.com/galery/panorams/test/3.html ?

I mean edit the HTML document that contains the krpano SWF and add this line:

swf.addVariable("xmlURL","./plugins/gallery.xml");

Or alternatively, put the gallery.xml file in the same folder as the HTML doc.

Setting the options by appending them to the SWF URL will not work. For embedding TiltViewer-Pro in a flash movie, the recommended way to set the config options is described in the Flash embed example: http://www.simpleviewer.net/tiltviewer/ … flashembed

Ok.
Here is a code from the html:

<script type="text/javascript">
// <![CDATA[

    var swf = createswf("krpano.swf");
    swf.addVariable("xmlURL","gallery.xml");
    swf.embed("krpanoDIV");

// ]]>
</script>

Here is a code from krpano xml file:

        set(plugin[gallery].url, "tiltviewer.swf");

And this is a gallery.xml

<tiltviewergallery
    useFlickr="false"
    backColor="0xAAAAAA">
    <photos>
        <photo imageurl="http://perfectumlab.com/galery/panorams/test/images/500/IMG_0803.jpg" linkurl="http://www.google.com">
            <title>Image 1</title>
            <description>This is a regular text description.</description>
        </photo>
    </photos>
</tiltviewergallery>

Now its working, but the images are from the flickr. So gallery.xml is not used.

Is there any free as3 authoring software? I'd like to use flash embedded case, but I won't buy Adobe Flash.

Re: krpano flash panorama player integration

I don't see this:

swf.addVariable("xmlURL","./plugins/gallery.xml");

here http://perfectumlab.com/galery/panorams/test/3.html

also you should add:

swf.addVariable("useFlickr","false");
Felix Turner
SimpleViewer Support Team.

Re: krpano flash panorama player integration

Thanks! That helped!