You are not logged in.

1

Wednesday, July 15th 2009, 2:55pm

flyout-zordered.xml, the example doesn't produce any flying

Have copied the exact code from flyout-zordered.xml , just using my pano to replace the grid. I do not get the flying functionality, althought I can see the 2 png's on the floor.

what could be possibly wrong?


<krpano version="1.0.8">


<hotspot name="spot"
url="imgs/image.jpg"
distorted="true"
ath="45"
atv="54"
scale="0.5"
rx="-22.5" ry="-26.25" rz="-50.1"
backup_rx="0"
backup_ry="0"
backup_rz="0"
backup_scale="0"
backup_zorder="0"
flying="0.0"
onclick="if(flying == 0.0, flyout(), flyback() );"
/>

<hotspot name="spot2"
url="imgs/image2.jpg"
distorted="true"
ath="60"
atv="54"
scale="0.5"
rx="-22.5" ry="-26.25" rz="-50.1"
backup_rx="0"
backup_ry="0"
backup_rz="0"
backup_scale="0"
backup_zorder="0"
flying="0.0"
onclick="if(flying == 0.0, flyout(), flyback() );"
/>


<!--
flyout/flyback actions
(for more stylish in/out moves play with different tweentypes and times)
-->

<action name="flyout">
<!--
save/backup the current rotation values!
NOTE - it is important that the backup_* variables are predefined!
this allows to save the variables at <hotspot> scope,
if the variables where not predefined, they were saved globally
and this would be a problem when more hotspots are using them!
-->

copy(backup_zorder,zorder);
copy(backup_rx,rx);
copy(backup_ry,ry);
copy(backup_rz,rz);
copy(backup_scale,scale);

<!-- increase a internal "max" value for the zorder to be sure
that the current hotspot is the top most one
-->
ifnot(havezordermax, set(havezordermax,true); set(zordermax,99); );
inc(zordermax,get(hotspot.count));
copy(zorder,zordermax);

<!-- tween the rotations values to 0 for a flat screen view -->
tween(rx, 0);
tween(ry, 0);
tween(rz, 0);
tween(scale, 1.5);

<!--
tween 'flying' to 1.0,
this makes the hotspot independent from the panorama rotation and scaling
-->
tween(flying, 1.0);
</action>

<action name="flyback">


<!-- tween back to the stored backup values -->
tween(rx, get(backup_rx));
tween(ry, get(backup_ry));
tween(rz, get(backup_rz));
tween(scale, get(backup_scale));

<!-- tween 'flying' also back to 0.0 -->
tween(flying, 0.0, 0.5, default, copy(zorder,backup_zorder); );
</action>


</krpano>

2

Friday, July 17th 2009, 8:36am

Hi,

is the krpano.swf maybe to old?
it must be at least - "1.0.8 build 2009-06-09"
(check the version by pressing 'O' in the viewer)

best regards,
Klaus

Rahim

Trainee

Posts: 69

Location: cairo egypt

Occupation: diving instructor/photographer

  • Send private message

3

Sunday, February 21st 2010, 10:54am

hi there

i had the same problem so i copied the krpano file from the original krpano folder but it keeps on telling me demo version although i have the license what should i do ?

thanx *unsure*

Rahim

Trainee

Posts: 69

Location: cairo egypt

Occupation: diving instructor/photographer

  • Send private message

4

Sunday, February 21st 2010, 10:55am

hi there

i had the same problem so i copied the krpano file from the original krpano folder but it keeps on telling me demo version although i have the license what should i do ?

thanx *unsure*

5

Monday, February 22nd 2010, 12:06pm

Hi,

make sure that the krpano.swf and krpano.license is in the same folder,

best regards,
Klaus