next & previous scene buttons not working

  • Hi all,

    Working on next & previous buttons from last 2 days but it is not working.

    Please reply............


    CODE FOR NEXT & PREVIOUS SCENE BUTTONS (which is in skin.xml)


    <plugin zorder="1" name="next" url="next.png" keep="true" devices="desktop|android" blendmode="normal" scale="1" alpha="0.6" align="bottomleft" y="20" x="90" visible="true" onhover="showtext(Next Panorama, thumbtext);" ondown="nextscene();" />

    <plugin zorder="3" name="previous" url="prev.png" keep="true" devices="desktop|android" blendmode="normal" align="bottomleft" y="20" x="25" scale="1" alpha="0.7" visible="true" onhover="showtext(Previous Panorama, thumbtext);" ondown="prevscene();" />


    - <action name="prevscene">
    if(%1 != findnext, sub(i,scene.count,1)); txtadd(scenexml,'
    <krpano>',get(scene[%i].content),'</krpano>
    '); if(scenexml == xml.content, dec(i); if(i LT 0, sub(i,scene.count,1)); loadscene(get(scene[%i].name), null, MERGE, BLEND(1)); , dec(i); if(i GE 0, prevscene(findnext)); );
    </action>
    - <action name="nextscene">
    if(%1 != findnext, set(i,0)); txtadd(scenexml,'
    <krpano>',get(scene[%i].content),'</krpano>
    '); if(scenexml == xml.content, inc(i); if(i == scene.count, set(i,0)); loadscene(get(scene[%i].name), null, MERGE, BLEND(1)); , inc(i); if(i LT scene.count, nextscene(findnext)); );
    </action>
    <textstyle name="thumbtext" font="arial" background="false" border="false" yoffset="-20" xoffset="30" fontsize="14" textcolor="0xffffff" bold="false" />
    <textstyle name="thumbtext2" font="arial" origin="topcenter" edge="topleft" textalign="center" yoffset="60" xoffset="0" background="false" border="false" fontsize="14" textcolor="0xffffff" bold="false" showtime="5.0" fadetime="1.0" fadeintime="1.0" />

Participate now!

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