Hi, I am updating the URL of a plugin dynamically and I am
having some difficulty. Kindly see http://engine.maltain360.com/pano/panorama.…y=ref-110014643
Idea is that when you hover on the plugins numbered 1 to 5,
a corresponding thumbnail is viewed in the plugin named Preview. It would seem
that it works fine, but if you hover quickly from one plugin to another sometimes
you end up with the wrong preview.
Any ideas?
Following is the XML:
Code
<krpano version="1.0.8">
<preview type="grid(cube,16,16,512,0xCCCCCC,0xF2F2F2,0x999999);" details="16" />
<plugin name="Preview"
url="%SWFPATH%/Panoramas/360Malta-110014643/Blank.png"
keep="true"
align="topleft" edge="topleft"
x="100" y="100" width="228" height="127"
/>
<plugin name="P1"
url="%SWFPATH%/Panoramas/360Malta-110014643/1.png"
align="topleft" edge="topleft" keep="true"
x="329" y="100" width="45" height="127"
onover="myOnOver(%SWFPATH%/Panoramas/360Malta-110014643/1_preview.jpg)"
/>
<plugin name="P2"
url="%SWFPATH%/Panoramas/360Malta-110014643/2.png"
align="topleft" edge="topleft" keep="true"
x="375" y="100" width="45" height="127"
onover="myOnOver(%SWFPATH%/Panoramas/360Malta-110014643/2_preview.jpg)"
/>
<plugin name="P3"
url="%SWFPATH%/Panoramas/360Malta-110014643/3.png"
align="topleft" edge="topleft" keep="true"
x="421" y="100" width="45" height="127"
onover="myOnOver(%SWFPATH%/Panoramas/360Malta-110014643/3_preview.jpg)"
/>
<plugin name="P4"
url="%SWFPATH%/Panoramas/360Malta-110014643/4.png"
align="topleft" edge="topleft" keep="true"
x="467" y="100" width="45" height="127"
onover="myOnOver(%SWFPATH%/Panoramas/360Malta-110014643/4_preview.jpg)"
/>
<plugin name="P5"
url="%SWFPATH%/Panoramas/360Malta-110014643/5.png"
align="topleft" edge="topleft" keep="true"
x="513" y="100" width="45" height="127"
onover="myOnOver(%SWFPATH%/Panoramas/360Malta-110014643/5_preview.jpg)"
/>
<action name="myOnOver">
set(plugin[Preview].url, %1);
</action>
</krpano>
Alles anzeigen
Thanks,
George