Hello,
I'm trying to make an animated hotspot in a VTour with no luck. I've tried various bits of code from previous forum threads and xml from the Usage Examples page.
I run the droplet and put the target.png file in the skin folder.
Through the tour_editor.html, I add the default hotspot (unanimated) and then edit the tour.xml.
I'm trying to add code from the anihotspots.xml file from the Examples-Usage page. I understand that I need to add the action "do_crop_animation" and also the relevant line of code from the example hotspots. Is that correct?
So where do I copy the crop animation action to? Just under the startup action? Before the scene code? And do I add the attributes so the first line of the action looks like this?
<action name="do_crop_animation(128,128, 60)">
registerattribute(xframes, calc((imagewidth / %1) BOR 0)); [etc etc]
And then how do I integrate the example hotspot with the current hotspot?
Current hotspot: <hotspot name="spot1" style="skin_hotspotstyle" ath="1.235" atv="0.488" linkedscene="scene_baja-02-rtf" />
Example hotspot: <hotspot name="spot5" url="target.png" onloaded="do_crop_animation(128,128, 60);" ath="+15" atv="-12" onclick="looktohotspot(get(name),65)" scale="0.40" zoom="true" />
So should the line look like this?
<hotspot name="spot1" url="target.png" onloaded="do_crop_animation(128,128, 60);" ath="1.235" atv="0.488" onclick="looktohotspot(get(name),65)" scale="0.40" zoom="true" linkedscene="scene_baja-02-rtf" />
Any help greatly appreciated!!
Many thanks,
Sarah