Why does the an inserted button lose the action? (in dragable-layers.xml)

  • Hi, I'am studying the "dragable-layers.xml" code (inside the examples/xml-usage folder 1.18.2 krpano version)

    My goal: Insert a button with action into text scrolling, in order to scroll the button syncro with the text.

    The steps: Insert the new layer and define the button parent.

    <layer name="close" type="container" url="close.png" parent="text" bgcapture="true" bgalpha="1.0" onclick="switch(layer[box1].visible);"/>

    The result: The above code inserted in the example code, make scrollable the button (and synchro with the text layer) but the action not work.

    If I change the button parent (example> parent="textbox") then of course not scrolling, but the action works fine.

    Any idea?

    Thanks in advanced,

    Fernando.

Participate now!

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