html custom code link

  • hye Klaus..


    i do notice you do this html link

    https://krpano.com/krpano.html?pa…view.vlookat=24

    to set some effect without alteration of the original files..


    this is my only embed(kprotect) xml named(Panorama Start.xml)...

    <krpano version="1.0.8" onstart="action(setuptour);" >

    <include url="Google Maps.xml" />

    <include url="Add Tour.xml" />

    <include url="Add Scene.xml" />

    <include url="Add Scene01.xml" />

    <include url="Add Scene02.xml" />

    <include url="Add Scene03.xml" />

    <include url="Add Scene04.xml" />

    <include url="Add Scene05.xml" />

    <include url="Add Command.xml" />

    <include url="Add New.xml" />

    </krpano>


    google maps run first with it showed all the point/node for each scene..


    the "action(setuptour);" are inside 'Add Tour.xml' and the command just like this,

    <action name="setuptour">
    action(scene01,true);
    plugin[maps].pantospot(scene01);
    plugin[maps].activatespot(scene01);
    set(currentpano,1);
    action(loadpanos);
    </action>


    i do have 70++ scenes right now (and more soon) inside 'Add Scene.xml' file

    <action name="scene01">
    loadpano(./xmlfiles/01_bulatanpersiaranpekeliling.xml, null, KEEPPLUGIN, BLEND(1));
    plugin[maps].pantospot(scene01);
    plugin[maps].activatespot(scene01);
    </action>


    other plugins or actions i put it inside 'Add Command.xml' file

    my question is how to make a html shortcut link same as yours based on my xml structure?.....


    regards..

    bulp

  • Hi,

    to get this working with kprotect the "External Parameters" must be enabled,
    at the moment this is only possible with a Domain Limited SWF,

    then use a Javascript Code like in the krpano.html here to pass to the parameters
    on the HTML file to the Flash file,

    than you can overwrite the XML tags with your parameters,
    e.g. overwrite the default "onstart" event with a other one that loads a other scene...

    Code
    pano.html?onstart=loadscene(....);

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!