Hi,
in that example, this was done by two images:
first the normal hotspot with the hotspot image, which is normally visible,
and then the second image, which is hidden at startup and will be only shown when clicking the first hotspot,
e.g. here one image from there:
the second image can be assigned as <plugin> element to the first <hotspot> element by using the parent="" setting,
e.g. the xml code could look like this:
|
Source code
|
1
2
|
<hotspot name="spot1" url="spot.png" .... onclick="set(plugin[spot1image].visible,true);tween(plugin[spot1image].alpha,1);" />
<plugin name="spot1image" url="spot1image.png" parent="hotspot[spot1]" align="bottom" visible="false" alpha="0" onclick="tween(alpha, 0.0, 0.5, default, set(visible,false));" />
|
Best regards,
Klaus