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.

  • "solved the hyperlinks in texts..." is not exact, the text is shown different in html5, flash, maybe changes too according to the browser. But is possible make a "bitmap text field" to simulate hyperlinks.

Jetzt mitmachen!

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