Launching a Flash file from a link on a Domino server...
I've been working on a corporate website that is pretty slick (at least it is to me!), and the question came up today as to how they could include a link to launch a Flash animation file (.SWF). They were able to link to a server internally, but that server wouldn't be available outside the firewall. So the question becomes... how do you set up everything to include the .SWF file in your application?
If you look out on the discussion boards, you'll find a number of suggested methods for doing so, and I don't think any of them work for everybody in all situations. I was fortunate to find a method right off that worked for my needs, so I thought I'd share it with you.
First off, you'll need an HTML file that is set up to launch the animation. I used one like this:
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="800" HEIGHT="600" id="Sales_Demo" ALIGN="">
<PARAM NAME=movie VALUE="Sales_Demo.swf">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="Sales_Demo.swf" loop=false quality=high bgcolor=#FFFFFF WIDTH="800" HEIGHT="600" NAME="Sales_Demo" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
I called this file Sales_Demo.html and made it a Page design element in my application.
Next, I put the Sales_Demo.swf file into the Image Resource design area. That's where the HTML file will find the Flash file to launch.
Finally, we added a link in a page that pointed to the HTML file like this: ../Sales_Demo.HTML
That link points to the database that you're in, and launches the page element Sales_Demo.HTML. That file in turn finds and launches the .SWF Image Resource. And voila... The Flash animation starts!