You are not logged in.

1

Friday, November 11th 2016, 3:22pm

attribute.devicecheck does not work!

Hi
I am going to set a flash hotspot for the flash viewer and a png hotspot for the html5 veiwer
i did that like this:

<hotspot name="spot1" url.flash="animation.swf" url.html5="image.png" style="skin_hotspotstyle" ath="-0.197" atv="-5.626" linkedscene="scene_1" />
but the problem is when I do something like that , it does not work and no hotspot apears on any devices. *confused*
where i did wrong ?
thank's for any help *smile*

spacerywirtualne

Professional

Posts: 1,117

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

2

Saturday, November 12th 2016, 11:03am

Hi
url.flash="animation.swf" url.html5="image.png"
You don't use the URL in this place. Url is is declared in 'skin_hotspotstyle' style in vtourskin.xml about 223.


Source code

1
<style name="skin_hotspotstyle" url="vtourskin_hotspot.png" [...]       />


Remove 'url="vtourskin_hotspot.png" ' line from vtourskin.xml and everything should vorks.


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Sunday, November 13th 2016, 10:15am

thank's for the answer but I did that before and it still does not work!
this is my code:

Source code

1
<hotspot name="spot1" style="skin_hotspotstyle" ath="-0.197" atv="-5.626" linkedscene="scene_1" />


Source code

1
2
3
4
5
<style name="skin_hotspotstyle" url.flash="hotspot.swf" url.html5="hotspot.png" scale="0.5" edge="top" oy="0" distorted="false"
	       tooltip=""
	       onclick="if(linkedscene, skin_hidetooltips(); tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); skin_updatescroll(); );"
	       onloaded="if(skin_settings.tooltips_hotspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"
	       />


the attribute.devicecheck also did'nt work for scale on skin logo layer
I currently use krpano 1.17
thank's for your attention

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

4

Sunday, November 13th 2016, 10:22am

Hi,

better use 1.19pr8!

Hope it helps
Tuur *thumbsup*

5

Sunday, November 13th 2016, 11:14am

Hi tuur
so you say it's not work because of the krpano version!?
that means there was not any attribute.devicecheck before version 1.19 !
if there was so it must work.

6

Sunday, November 13th 2016, 4:06pm

Hi,

before version 1.19-pr3 the the attributes defined in the <style> couldn't be redefined at the element itself.

That means with version 1.19 your code would work, but with older versions you would need to remove the 'url' attribute from the 'skin_hotspotstyle' <style> to get it working.

Best regards,
Klaus

7

Sunday, November 13th 2016, 4:48pm

Quoted


Hi,

before version 1.19-pr3 the the attributes defined in the <style> couldn't be redefined at the element itself.

That means with version 1.19 your code would work, but with older versions you would need to remove the 'url' attribute from the 'skin_hotspotstyle' <style> to get it working.

Best regards,
Klaus
Hi klaus
I removed the url attribute from style in 'skin_hotspotstyle' and I used that in hotspot element itself like below

Source code

1
<hotspot name="spot1" style="skin_hotspotstyle"  url.flash="hotspot.swf" url.html5="hotspot.png" ath="-0.197" atv="-5.626" linkedscene="scene_1" />


Source code

1
2
3
4
5
<style name="skin_hotspotstyle" scale="0.5" edge="top" oy="0" distorted="false"
	       tooltip=""
	       onclick="if(linkedscene, skin_hidetooltips(); tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); skin_updatescroll(); );"
	       onloaded="if(skin_settings.tooltips_hotspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"
	       />



but it doesn't work yet
I can use devices attribute but for doing this I must write every hotspot element twice.
I am wonder that why attribute.devicecheck doesn't work!

8

Monday, November 14th 2016, 4:30pm

but it doesn't work yet
Try clearing the browser cache.
Of if it still doesn't work, show a link to your example.

Btw - updating to the latest krpano version would be also a (recommendable) possibility ;-).