Assuming you can actually do that:
Code:
getURL("javascript:someFunction()")
What you would need to do is to setup the links on the page anyway (example from the demo page):
Code:
<a href="castle.gif" rel="thumbnail" title="This is beautiful castle for sale!">Castle</a>
But you wouldn't need all of that (the red in the above could go), some extra id info (red in the below) would be required, and your users wouldn't need to see them (green container division):
Code:
<div style="display:none;">
<a id="castle" href="castle.gif" rel="thumbnail" title="This is beautiful castle for sale!"></a>
<a id="house" href="hill_house.gif" rel="thumbnail" title="House on a hill"></a>
<a id="forrest" href="forrest.gif" rel="thumbnail" title="A lovely forrest"></a>
</div>
Once you have all of that in the body someplace, anywhere in the body really, and you install the script on the page as far as Step 1 from the demo page goes, you could use this in your Action Script:
Code:
getURL("javascript:thumbnailviewer.stopanimation();thumbnailviewer.loadimage(document.getElementById('castle'));")
Or perhaps it would need to be:
Code:
getURL("javascript:void(thumbnailviewer.stopanimation());void(thumbnailviewer.loadimage(document.getElementById('castle')));")
Bookmarks