Posts by ncrossland

    Is there any way of providing keyboard navigation features, to allow keyboard-only users to tab into the Flash player, and use arrow keys to move around? At the moment, using krpano embedding, it doesn't seem possible to get the keyboard focus onto the panorama without clicking on it first.

    Secondly, once focus is on the Flash movie, is it possible to allow tabbing between hotspots/plugins? Ideally to specify the tab order, define (via scripting or XML) behaviour when a plugin receives focus, etc.?

    I've also struggled with this, and had to resolve it by a combination of delaying changing the .html, and forcing a redraw with lookto( get(view.hlookat), get(view.vlookat)); There was different behaviour on Mac from Windows (Win got the height wrong consistently unless there was a delay)

    Would it be better if instead of setting a property on the textfield component, there was a changehtml method which would definitely change the HTML, AND then internally force the autosize to recalculate?

    I wanted also to ask about this. And I would like to know also i it actually works just as good as in the browser and if all the browser features will work.
    Have you tried making an APP with Krpano?

    I have some ideas for an app and would really like to try it.

    I did not know about the PhoneGap. Is it hard to use ? The website seems to have some great tutorials so I hope that it is easy to do it.

    Hans

    I haven't tried it yet, but I understand it embeds an instance of Safari so you would expect the performance to be identical. I'll let you know how my experiments go...

    Thanks Klaus that's good to know - yes, I already have the iphone license, and it would be specific content rather than a generic pano viewer.

    I used the textfield plugin, and the krpanoJS deals with the CSS parameter slightly differently than the Flash version, which means I had to use 2 different versions.

    In Flash, you specify the selector as well as the rules, e.g.

    Code
    css=" p { font-family: Trebuchet MS,Helvetica, Arial, Sans-serif; font-size: 18px; color: #ffffff;  } "


    which allows you to set styles on different elements, e.g. links

    In the JS version, the code is applied within an inline style to the text field so the above code fails - you have to provide

    Code
    css=" font-family: Trebuchet MS,Helvetica, Arial, Sans-serif; font-size: 18px; color: #ffffff;  "


    Just in case anyone else has similar problems. Maybe it could be improved in future versions to bring the two in line?

    try get(xml.scene);

    *cool*

    Thanks - this worked a treat - I actually used

    Code
    get(scene[get(xml.scene)].title


    to get the title of the current scene. I was using it to set a value of a text field, based on the scene's title.

    I didn't want to have to use a "state machine" as this would involve duplicating a lot of code, making it harder to edit in the future. Thanks for everyone's help.

    Here's the code:

    Code
    swfobject.embedSWF("krpano.swf", "pano",  "960", "480", "9.0.28",  "swfobject/expressInstall.swf", 
                                {pano:"krpano.xml", sphere:"/assets/util/phpThumb/phpThumb.php/4000x2000;/assets/images/equi/towers-10.jpg", "preview.url":"/assets/util/phpThumb/phpThumb.php/q=25;fltr[]=gray;fltr[]=blur|10;1000x500;/assets/images/equi/towers-10.jpg"}, 
                                {allowfullscreen:true, bgcolor:"#ffffff", allowscriptaccess: 'sameDomain'}, 
                                {id:'pano', name:'pano'});

    The default format for passing params to PHP thumb (standard GET params) doesn't work - this alternative format does work for the sphere, but it is the = character that is causing problems. KRPano seems to truncate the preview URL at the first = so it actually tries to call:

    Code
    /assets/util/phpThumb/phpThumb.php/q

    Encoding the = doesn't seem to help.

    I'm trying to embed KRPano using SWFObject, and passing the Sphere and Preview filename via a JS parameter.

    I'm trying to generate correctly sized images and previews using phpThumb, but it uses some URL parameters to pass details to the resizing script, e.g.

    Code
    phpThumb.php?src=/assets/images/equi/towers-03.jpg&w=1000&h=500&q=15&fltr[]=gray&fltr[]=blur|10

    However when I try and pass this in via SWFObject, some of the parameters seem to be stripped off. Is there any documentation about what characters KRPano doesn't like? I think the equal sign is being removed. Even URL encoding the params don't seem to work. Any ideas?

    Is it possible to specify a preview (sphere) image as a SWFobject parameter, in the same way you can specify a sphere image?

    Code
    swfobject.embedSWF("krpano.swf", "pano",  "960", "480", "9.0.28",  "/js/swfobject/expressInstall.swf", 
                            	{pano:"krpano.xml", sphere:"equi.jpg"}, 
                            	{allowfullscreen:true, bgcolor:"#ffffff", allowscriptaccess: 'sameDomain'}, 
                            	{id:'pano', name:'pano'});

    What's the parameter name? Is there a way of converting from XML params to JS params?