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!