Sie sind nicht angemeldet.

1

Dienstag, 11. Juni 2013, 11:17

Hotspot.onclick - Nothing happens after update to 1.16.4

Hi everyone!
I have a big problem after the latest update to version 1.16.4 (build 2013-06-05).
I have a sort of warehouse, clicking on each object i open its card product in the form of image as you can see below:


<hotspot name="spot2" onclick="closeallobjects();set(plugin[spot2html].visible,true);tween(plugin[spot2html].alpha, 1);" url="DShowdata/graphics/spots/spot1.png" ath="-89.3467" atv="9.07982" />
<data name="spot2htmldata">
<a href="event:tween(alpha, 0);delayedcall(0.5,set(plugin[spot2html].visible,false));"><img src="html-hotspot/schede/schede1.png" width="850" height="485"></img></a><br/>
<a href="http://www.example.com/product/themask" target="_blank"><img src="html-hotspot/schede/button.png" width="850" height="85"></img></a>
</data>
<plugin name="spot2html" url="DShowdata/graphics/textfield.swf" html="data:spot2htmldata" visible="false" alpha="0" align="center" width="850" height="600" bordercolor="0xFFFFFF" background="false" shadow="0.01"/>

On iPad/iPhone HTML5 version everythings works while in the FLASH nothing appears (also with debugmode="true" showerrors="true" i don't see errors or incorrect paths.. simply nothing happens)


On the release notes we read:

Zitat

Change: The xml-entity handling for <data> elements was improved for better HTML5-compatibility. Now all <data> elements in a xml file will be pre-processed (CDATA enclosing + manually xml-entity resolving) to provide the samedata[...].content values for Flash and HTML5.
Warning - there can be side-effects when <data> elements were used also in custom xml structures!
Am i on that (dark)side effects? *cry*
How can i solve?

Thanks in advance!
Michele

2

Dienstag, 18. Juni 2013, 09:03

Hi,

there are current limitations with the usage of [ ] characters in the html - they will get replaced by < > characters,
see here:
http://krpano.com/plugins/textfield/#html

And this is the problem here:
<a href="event:tween(alpha, 0);delayedcall(0.5,set(plugin[spot2html].visible,false));">

But this limitation is not related to 1.16.4, this is there since 1.0.8.15 (maybe also already since late 1.0.8.14 version...).

A workaround is too use [[ and ]] instead:
<a href="event:tween(alpha, 0);delayedcall(0.5,set(plugin[[spot2html]].visible,false));">

Best regards,
Klaus