Launching a Flash file from a link on a Domino server...
Category Software Development
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:
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>Sales_Demo</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<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>
</OBJECT>
</BODY>
</HTML>
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!
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:
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>Sales_Demo</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<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>
</OBJECT>
</BODY>
</HTML>
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!



Comments
Posted by Jerry Carter At 06:51:08 On 12/10/2004 | - Website - |
Bruce... I'll have to see what Flickr did with flash.
Posted by Duffbert At 07:22:34 On 12/10/2004 | - Website - |
Posted by Duffbert At 07:25:06 On 28/10/2004 | - Website - |
Posted by Patrick Kwinten At 06:55:39 On 28/10/2004 | - Website - |
Posted by Duffbert At 13:39:59 On 12/10/2004 | - Website - |
Posted by Vince Schuurman At 13:33:43 On 12/10/2004 | - Website - |
Posted by Graham Douglass At 06:43:52 On 29/11/2004 | - Website - |
Do you have a writeup of how you did that? And if you do, do you want to share it with the e-ProWire: Lotus Developer Tips newsletter readers?
Posted by Duffbert At 12:16:57 On 12/10/2004 | - Website - |
Posted by Duffbert At 07:07:33 On 29/11/2004 | - Website - |
I disagree. Look at what Flickr has done with Flash and just think of the great UI tools you can build for your HR department
http://www.flickr.com/photos/bruce
Bruce
Posted by Bruce At 07:00:58 On 12/10/2004 | - Website - |
Posted by Bruce At 13:04:10 On 12/10/2004 | - Website - |
Posted by Vince Schuurman At 11:29:03 On 12/10/2004 | - Website - |