Sie sind nicht angemeldet.

publicitarios360

Fortgeschrittener

  • »publicitarios360« ist der Autor dieses Themas

Beiträge: 330

Wohnort: Habana, Cuba

Beruf: Architect, Photographer.

  • Nachricht senden

1

Freitag, 6. März 2015, 07:52

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.

publicitarios360

Fortgeschrittener

  • »publicitarios360« ist der Autor dieses Themas

Beiträge: 330

Wohnort: Habana, Cuba

Beruf: Architect, Photographer.

  • Nachricht senden

2

Freitag, 6. März 2015, 16:54

solved!

child="true" (in the parent object called "text")

By the way, dragable-layers.xml is a very very poweful plugin, solved the hyperlinks in texts, inserting a layer as text's children.

Greetings,

Fernando

publicitarios360

Fortgeschrittener

  • »publicitarios360« ist der Autor dieses Themas

Beiträge: 330

Wohnort: Habana, Cuba

Beruf: Architect, Photographer.

  • Nachricht senden

3

Freitag, 6. März 2015, 18:32

"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.