Search DominoPower's 11,412 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Putting some Flash into your Domino applications (continued)

Instead of inserting this object, you'd need to embed this object onto your page or form by using some basic HTML tagging. I think I've already given away the tags! EMBED and OBJECT.

But what if you don't know HTML?

When you use the Flash Publish feature, you not only create the Flash Player File, but also an HTML document that holds all your HTML tagging.

You simply need to open this HTML document with any text-editing program, such as WordPad, Notepad, Microsoft Word, or WordPro. Then copy and paste the text from the HTML page onto your page or form. It's that simple!

Since the copied text is HTML, highlight all the text on your page or form and select Pass-Thru HTML from the Text menu, as shown in Figure A.

FIGURE A

Select Pass-Thru HTML from the Text menu.

Step 3
You'll notice in the copied HTML Code, the Movie Parameter makes reference to the location of the SWF file.

<PARA NAME="MOVIE" VALUE="temp\moviename.swf">

Since you have this movie in your Image Resource library, you would change this setting to the name in the library.

<PARA NAME="MOVIE" VALUE="moviename.swf">

But I haven't made the jump to R5.x yet!
Many of you may not have made the leap to R5.x as yet. Well, don't despair. You can still use the same three easy steps, but with a few modifications.

Step 1
Lotus Domino R4.x doesn't come with an Image Resource library. You can create your own Image Resource library by using a database to store Web images.

Notes.net has a great article that outlines how to create an Image Resource library at http://www.notes.net/today.nsf/8a6d147cf55a7fd385256658007aacf1/c6e061968f460f6f852565560073fb37?OpenDocument&;Highlight=0,r4,image.

Step 2
For Step 2, follow the same instructions, as described above, for R5.x users.

Step 3
Step 3 also remains the same, except this time your movie location would be referenced to the location of the SWF file in your newly created Image Resource library.

Here's an example of the movie parameters you would use for making reference to your SWF file in the Image Resource library:

<PARA NAME="MOVIE" VALUE="/samples/Files.nsf/Lookup/moviename/$file/moviename.swf">

The hard stuff
Now lets take a bigger leap! What if you want a different Flash Player file for different users?

You can use a computed field that computes the name of the appropriate SWF file and places its name within your HTML tags.

Here's an example of the formula within the "flashfile" computed field, which looks at whether the user has logged onto the server in the morning or the afternoon (based on the server time).

@If(@now>@Time(@texttotime(@text(@today)+" 12:01 pm")) ;"/samples/Files.nsf/Lookup/Night/$file/Night.swf";"/samples/Files.nsf/Lookup/Day/$file/Day.swf")

Simply place this field between the existing code on the form and where you would like the results to appears, as shown in Figure B.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  Next »
Other articles you might like
Home > Lotus Technologies > Domino (77 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   Sloppy analysis at the core of another Domino vs. SharePoint report
Home > Internet Technologies > Flash (7 articles)
   Flashy site isn't just fun and spy games
   More insight into Flash and Domino
   Flash resources and troubleshooting
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Five trends for 2010
Latest Lotus Headlines
Flex: Using A SharedObject to Remember User Settings
Copy file instead of a link with Quickr connector in Notes
EclipseSource to Participate in Eclipse Foundation's Eclipse Training Series
CommonTime releases mDesign Studio
Quickr Domino 8.2 Fix Pack 10 is available
Sametime Business Cards: Where's that Picture Coming From?
How to let users define their own default font for Rich text fields
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Make Mafia Wars an offer it can't refuse
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Removing an Office installation that doesn't want to go away
-- Advertisement --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your mail and ACL groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.

Register by December 31 to save $350.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login