problem with defining pano and sphere together

  • Hi,

    I want to add pano (base.xml) for some plugin, and load some sphere images dynamic , therefore, I add variable in the swfobject. source code:

    But when I loaded the page, the image {sphere:"medias/<?=$image?>.jpg"} is not loaded into krpano, how to load pano and sphere(not define in xml file) at same time?

  • Hi,

    in SWFOBject 2.1 all Flash variables must in the same {} block,

    e.g. instead of:

    Code
    {pano:"base.xml"}, 
    {sphere:"medias/<?=$image?>.jpg"},

    this:

    Code
    {pano:"base.xml", sphere:"medias/<?=$image?>.jpg"},

    best regards,
    Klaus

  • Thank you! That works.

    another javascript full screen question.

    I try to let it fullscreen when user click a button

    code:

    but when I click the button, it gives an error:
    "Error calling method on NPObject! [plugin exception: Error in Actionscript. Use a try/catch block to find error.]."

    What's the problem for this?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!