Using the "link" option with HotSpots in FlAniS

updated December, 2009
When you want to use the "link" option for HotSpots in FlAniS, it is necessary to provide some HTML and JavaScript. The "link" will provide a "call-back" to the environment by calling: flanis_link(URL) where the "URL" is the URL of the file that contains the image that is being displayed when the user clicks the hotspot.

Your HTML and JavaScript must look something like this:

<html> <head> <title>Untitled Document</title> <script language="javascript" type="text/javascript"> //--------------------------------------------- function flanis_link(pageURL) { var windowName = 'newWindow'; var windowConfig = 'width=750,height=450,location=yes,menubar=yes,resizable=yes,scrollbars=yes,toolbar=no';, windowName, windowConfig); } </script> </head> <body> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,0,0" width="800" height="800" id="flanis"> <param name="movie" value="flanis.swf"> <param name="quality" value="high"> <param name="menu" value="false"> <param name="FlashVars" value="configFilename=test.cfg"> <embed src="flanis.swf" name="flanis" swliveconnect="false" quality="high" menu="false" width="800" height="800" type="application/x-shockwave-flash" pluginspace="" scale="noscale" flashvars="configFilename=test.cfg"> </embed> </object> </body> </html> And just to be complete: in this example the "configuration file" (test.cfg) looks like this: # config file for testing the "show" control button controls=startstop, looprock, speed, step, zoom, refresh bottom_controls=toggle bottom_controls_tooltip=Click on frame square to remove from animation; click again to add it back image_preserve=0,589,800,600 auto_refresh=10 filenames=image0.jpg, image1.jpg, image2.jpg, image3.jpg, image4.jpg, image5.jpg, image6.jpg, image7.jpg hotspot = 100, 100, 50, 50, pan, link, pause_percent=250 backcolor=0xFFFFFF