|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- 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. |
|
|
|
|
|
|
|
|
|
|