Using the "show" control in FlAniS

updated October, 2008
When you want to use the "show" control in FlAniS, it is necessary to provide some HTML and JavaScript. The "show" control will provide a "call-back" to the environment by calling: flanis_show(file) where the "file" is the filename of the file that contains the image that is being displayed when the user clicks the "show" control button. Note that if the "image_base" parameter was used, then this parameter will also include that information (pre-pended to the filename).

Your HTML and JavaScript must look something like this:

<html> <head> <title>Untitled Document</title> <script language="javascript" type="text/javascript"> //--------------------------------------------- function flanis_show(imageURL) { var windowName = 'newWindow'; var windowConfig = 'width=750,height=450,location=yes,menubar=yes,resizable=yes,scrollbars=yes,toolbar=no'; window.open(imageURL, windowName, windowConfig); } </script> </head> <body> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,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="http://www.macromedia.com/go/getflashplayer" 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, show 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 pause_percent=250 backcolor=0xFFFFFF