You are not logged in.

adamsheha2

Beginner

  • "adamsheha2" started this thread

Posts: 14

Location: baton rouge, LA

Occupation: Economist

  • Send private message

1

Tuesday, April 13th 2010, 11:09pm

Hotspot Help

Hi Everyone,



After several weeks of being intimidated by Krpano, I decided to face it and buy it. Now I am trying to put together a tour but am having some beginners trouble. I am trying to setup hotspots but only get a "loading error(IO ERROR)". Can anyone help me out by reviewing my code. I think what i need is some guidance in writing action script.


<krpano version="1.0.8" ispartialpano="true">

<include url="skin/defaultskin.xml" />

<view hlookat="0" vlookat="0" maxpixelzoom="1.0" />
<display fps="30"
details="30"
tessmode="auto"
movequality="LOW"
stillquality="HIGH"
flash10="on"
movequality10="LOW"
stillquality10="HIGH"
stilltime="0.25"
/>
<preview type="SPHERE" url="Rock Garden.tiles/preview.jpg" />

<image type="SPHERE" multires="true" tilesize="829" voffset="-20">
<level tiledimagewidth="22379" tiledimageheight="7749">
<sphere url="Rock Garden.tiles/_%0v_%0h.jpg" />
</level>
</image>
<action name="view_architectural">
tween(view.fovmax, 150.0, distance(179, 1.00), easeoutquad);
tween(view.architectural, 1.0, distance(1.0, 0.45), easeoutquad);
tween(view.fisheye, 0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false);set(view.pannini,false);set(display.flash10,on); );
</action>
<plugin name="editor"
url="editor.swf"
keep="true"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="0"
alpha="1.00" blendmode="normal"
smoothing="true"
origin="" edge=""
x="" y=""
width="500" height="375"
scale="1"
onloaded=""
onover=""
onhover=""
onout=""
ondown=""
onup=""
onclick=""
/>

<plugin name="options"
url="options.swf"
keep="true"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="0"
alpha="1.00" blendmode="normal"
smoothing="true"
origin="lefttope" edge=""
x="" y=""
width="500" height="375"
scale="1"
onloaded=""
onover=""
onhover=""
onout=""
ondown=""
onup=""
onclick=""
/>
<action name="loadpano">
onclick="loadpano(Fork1.xml, view.lookat(180.8,1.9,22), MERGE, BLEND(1))"
</action>
<hotspot name="Fork1"
keep="false"
visible="true" enabled="true" handcursor="true" capture="true" children="true"

onclick="loadpano(Fork1.xml)"
>
<point ath="-133.4407" atv=" -6.6519" />
<point ath="-127.9617" atv=" -7.0962" />
<point ath="-127.6555" atv=" -1.3532" />
<point ath="-132.7373" atv=" -1.2971" />
</hotspot>



</krpano>

*confused*

2

Wednesday, April 14th 2010, 7:06am

RE: Hotspot Help

Hi Everyone,
After several weeks of being intimidated by Krpano, I decided to face it and buy it. Now I am trying to put together a tour but am having some beginners trouble. I am trying to setup hotspots but only get a "loading error(IO ERROR)". Can anyone help me out by reviewing my code. I think what i need is some guidance in writing action script.


Well first of all, welcome!


Source code

1
2
3
<action name="loadpano">
onclick="loadpano(Fork1.xml, view.lookat(180.8,1.9,22), MERGE, BLEND(1))" 
</action>



I don't think this is your problem, but this is certainly not correct. loadpano is a builtin command which it appears Klaus (thankfully) does not let you overload. The onclick= part of this is syntactically incorrect, and in the worst case if this were to function it would be an infinite loop. I would eliminate the all 3 of these lines.


Source code

1
2
3
4
5
6
7
8
9
10
11
<hotspot name="Fork1" 
keep="false" 
visible="true" enabled="true" handcursor="true" capture="true" children="true" 

onclick="loadpano(Fork1.xml)" 
> 
<point ath="-133.4407" atv=" -6.6519" /> 
<point ath="-127.9617" atv=" -7.0962" /> 
<point ath="-127.6555" atv=" -1.3532" /> 
<point ath="-132.7373" atv=" -1.2971" /> 
</hotspot>


This looks okay. I suspect the error is in Fork1.xml. The error doesn't occur until you click on this hotspot, correct? If so, please post the contents of Fork1.xml.

Sorry I couldn't be of more help...

steve

adamsheha2

Beginner

  • "adamsheha2" started this thread

Posts: 14

Location: baton rouge, LA

Occupation: Economist

  • Send private message

3

Thursday, April 15th 2010, 4:08pm

Re: Hotspot Help

I fixed the hotspot issue but what do you mean when you say that my syntax is incorrect for the onclick command

4

Thursday, April 15th 2010, 4:25pm

RE: Re: Hotspot Help

I fixed the hotspot issue but what do you mean when you say that my syntax is incorrect for the onclick command


glad to hear you worked it out!

I was referring to your use of an onclick="loadpano(..... inside of an action. This is appropriate for a plugin or hotspot, but not correct inside an action.

Best of luck!

Steve

adamsheha2

Beginner

  • "adamsheha2" started this thread

Posts: 14

Location: baton rouge, LA

Occupation: Economist

  • Send private message

5

Monday, April 19th 2010, 4:49am

Hotspot Help

Steve,


Thank you for your help. I am glad to know that there are people here like you that are willing to help us beginners when we run into trouble.