Sie sind nicht angemeldet.

1

Donnerstag, 25. April 2013, 16:49

X do not close box on iPad

Hi,

I m a panotour pro user, I upadte the textfield plugin and krpano version, but I still have this problem, only on iPad.

X do not close box on iPad
An example of the html hotspot code in my xml.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
	<hotspot name="spot0" handcursor="false" url="virtualtourdata/graphics/spots/spot0.png" ath="-7.84017" atv="-14.7728"/>
	<hotspot name="spot1" onclick="closeallobjects();set(plugin[spot1html].visible,true);tween(plugin[spot1html].alpha, 1);" url="virtualtourdata/graphics/spots/spot1.png" crop="0|0|65|65" frame="0" lastframe="9" frameheight="65" framewidth="65" onloaded="set(stopSequence,false);animate(spot1,0.1);" ath="-2.68349" atv="-15.1317"/>
	<data name="spot1htmldata">
    	<p align="right">
        	<font face="Arial">
            	<a href="event:tween(alpha, 0);delayedcall(0.5,set(visible,false));">
                	<b>X</b>
            	</a>
        	</font>
    	</p>
    	<include url="verre.html"/>
	</data>


Any idea what wrong?

2

Freitag, 26. April 2013, 21:29

So, on Flash all works fine.

Did you tried to change:

Quellcode

1
<a href="event:tween(alpha, 0);delayedcall(0.5,set(visible,false));">

to

Quellcode

1
<a href="event:tween(plugin[spot1html].alpha,0);delayedcall(0.5,set(plugin[spot1html].visible,false)));">

3

Sonntag, 28. April 2013, 16:20

Thank you.
I have the same problem. After changing the code with your suggestion
- on the iPad it works fine. close works.
- On a PC (Chrome + firefox) a see no more text after the word 'BEFORE'. However it works with the old method


Code:
<data name="spot1htmldata">
<p align="right">

BEFORE

<a href="event:tween(plugin[spot1html].alpha,0);delayedcall(0.5,set(plugin[spot1html].visible,false));">
<b>ALT CLOSE </b>
</a>
</p>

AFTER
<br></br>
<include url="html/test.html"/>
</data>



<plugin name="spot1html" url="vtdata/graphics/textfield.swf" html="data:spot1htmldata" visible="false" alpha="0" align="center" width="40%" height="40%" bordercolor="0xFFFFFF"/>







any suggestion welcome.

4

Montag, 29. April 2013, 00:12

- Your plugin[spot1html] has visiblity turned off and alpha = 0. => that is why you don't see anything

In general this simple code should work. Play with it. Read documentation about textfield, data, html, css...:

Quellcode

1
2
<data name="spot1htmldata"><font face="arial"><a href="event:openurl(http://www.google.com);"><b><i> Text 1 </i></b></a><br/></font><font face="arial"><a href="event:showlog();"><b><i>  Text 2 </i></b></a></font></data>
<plugin name="spot1html" keep="true" url="plugins/textfield.swf" html="data:spot1htmldata" visible="true" alpha="1" align="center" bordercolor="0xFFFFFF"/>

5

Montag, 29. April 2013, 01:05

Thanks but that is not the solution.
I am sorry, i work most of the time in panotour. Made that decision some time ago. The problem is that when you want to change something it is hard to get used to the strange generated code from panotour.

When spot1 has a onclick event then spot1html is set to visible.true / alpha=1 see code herunder.
This is the complete code;


<hotspot name="spot1" onclick="closeallobjects();set(plugin[spot1html].visible,true);tween(plugin[spot1html].alpha, 1);" url="vtdata/graphics/spots/spot3.png" crop="0|0|65|65" frame="0" lastframe="13" frameheight="65" framewidth="65" onloaded="set(stopSequence,false);animate(spot1,0.071);" onhover="showtext(testje);" ath="-29.0486" atv="3.68124"/>


<data name="spot1htmldata">
<p align="right">
<a href="event:tween(alpha, 0);delayedcall(0.5,set(visible,false));"> <-- this code works on a pc but on a iPad you can't close the textfield

<a href="event:tween(plugin[spot1html].alpha,0);delayedcall(0.5,set(plugin[spot1html].visible,false));"> <--- this works fine on iPad. On a pc displays only text until this line.

<b>CLOSE</b>
</a>
</p>

<include url="html/test.html"/>
</data>

<plugin name="spot1html" url="vtdata/graphics/textfield.swf" html="data:spot1htmldata" visible="false" alpha="0" align="center" width="40%" height="40%" bordercolor="0xFFFFFF"/>


Problem is that with standard generated panotour code the textfield html will not close on a iPad just like the OP said. On a pc it works fine.
So this piece of code seems not to work.

<a href="event:tween(alpha, 0);delayedcall(0.5,set(visible,false));">


And with the suggested new code; this:

<a href="event:tween(plugin[spot1html].alpha,0);delayedcall(0.5,set(plugin[spot1html].visible,false));">

the textfield / html5 window will close and behaves good on a iPad but on a pc browser i see only the text before the new code. All after that is invisible.


Beats me.
How can i debug this?

6

Montag, 29. April 2013, 16:36

somebody suggest me this, did not test yet:

<plugin name="spot1html" url="virtualtourdata/graphics/textfield.swf"
html="data:spot1htmldata" visible="false"
alpha="0" align="center" width="500"
height="200" bordercolor="0xFFFFFF" />



into



<plugin name="spot1html"
url="virtualtourdata/graphics/textfield.swf" html="data:spot1htmldata"
visible="false" alpha="0" align="center"
width="500" height="200" bordercolor="0xFFFFFF"
onclick="closeallobjects();set(plugin[spot1html].visible,false);tween(plugin[spot1html].alpha,
0);" />

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »panotonic« (29. April 2013, 19:54)


7

Montag, 29. April 2013, 18:28

I don't know anything about Panotour. You identified that generated code was not correct. So you must change it to work fine. I gave you data definition that display what ever you want and performs actions.
It should be fairly simple to adapt just that part of code to work.

8

Montag, 29. April 2013, 21:14

solved

Thank you. New example works very well. closing works with this on pc AND on iPad.

easier and better solution and code than what Panotour is making.
Thanks.

9

Dienstag, 30. April 2013, 01:24

Thank you. New example works very well. closing works with this on pc AND on iPad.

easier and better solution and code than what Panotour is making.
Thanks.
excellent, I have to find time to insert it also.
This code is from Panotour Support.

Ähnliche Themen