About Duffbert...

Duffbert's Random Musings is a blog where I talk about whatever happens to be running through my head at any given moment... I'm Thomas Duff, and you can find out more about me here...

Email Me!

Search This Site!

Custom Search

I'm published!

Co-author of the book IBM Lotus Sametime 8 Essentials: A User's Guide
SametimeBookCoverImage.jpg

Purchase on Amazon

Co-author of the book IBM Sametime 8.5.2 Administration Guide
SametimeAdminBookCoverImage.jpg

Purchase on Amazon

MiscLinks

Visitor Count...



View My Stats

« Book Review - XML In A Nutshell by Elliotte Rusty Harold & W. Scott Means | Main| Scobleizer: Microsoft doesn't get credit... »

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!

Comments

Gravatar Image1 - Your answer should have been, "Flash animations are only used properly in the context of Homestarrunner.com and have no place in a corporate environment."

Gravatar Image2 - Jerry... fortunately it wasn't a site splash page you have to wade through each time you enter it. It's a clickable link to get more information on something.

Bruce... I'll have to see what Flickr did with flash.

Gravatar Image3 - Hi, Patrick... Vince has done a write-up on this, and hopefully over the weekend I'll get a chance to work through it. Once that's done and we polish it up, it will appear in the e-ProWire: Lotus Developer Tips newsletter.

Gravatar Image4 - yeah yadda yadda from Vince, where is the explanantion how it works?

Gravatar Image5 - Tell you what, Vince... if you want to write it up, I'll work with you to polish it up if necessary. This is really a cool thing, and I think the readers would really like to know how that works. If you want more details of how the process works for an article, email me at duffbert AT gmail DOT com.

Gravatar Image6 - If it hasn't been covered before i could write an article about 'simple' flash integration. As long as you keep in mind that writing in 'Script' is easier for me than writing English

Gravatar Image7 - I'd be really interested in getting hold of a copy of this information - how far did you get in writing this up??

Gravatar Image8 - Vince! Dude! You rock! That is way cool!

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?

Gravatar Image9 - I'm working with Vince on the writeup, and it should be ready to go in a couple of weeks.

Gravatar Image10 - @Jerry,

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

Gravatar Image11 - @Duffbert, I showed Vince how to do it

Gravatar Image12 - You could also feed the flash files with domino generated xml files

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Want to support this blog or just say thanks?

When you shop Amazon, start your shopping experience here.

When you do that, all your purchases during that session earn me an affiliate commission via the Amazon Affiliate program. You don't have to buy the book I linked you to (although I wouldn't complain!). Simply use that as your starting point.

Thanks!

Thomas "Duffbert" Duff

Ads of Relevance...