|
|
|
|
|
|
|
|
|
|
|
|
|
|
How to make your Flash site even flashier (continued)
Flash 5 comes with some great ActionScript commands. These are set commands, similar to Domino's LotusScript commands, which are also event driven. Flash 5 now comes with an ActionScript Reference Guide book, which covers some of the new ActionScript commands. I recently had the opportunity to use the methods of the ActionScript XML (eXtensible Markup Language) objects.
There are a number of ways you can translate information from your Flash form into Lotus Domino. If you're Web savvy, you can take advantage of the QuerySave Web Agent and utilize your "query_string" field. If you're into CGI (Common Gateway Interface) Scripting, you can post information into a script file and use the Post/Get commands to bring the information into Lotus Domino.
In order to keep this a simple process, I've decided to use the JavaScript method. This method is easily duplicated and takes only three steps to complete!
I'll show you how to complete these tasks using Flash 5. Once you start up Flash 5, don't be threatened by the large number of floating dialog command boxes. If you're already familiar with Flash 4, I'd recommend that you select Edit->Preferences from the Flash menu options and change the Timeline Options for Flash 4 settings, as shown in Figure A. This may even make Flash a little easier for beginners.
FIGURE A
 
You can adjust the Timeline Options to Flash 4 settings. Roll over picture for a larger image.
Three easy steps First we're going to create some JavaScript within the Domino form that will pick up variables. Then we're going to create the necessary Flash elements (User Input Fields) on a Flash form, also known as "the stage." Finally, we'll create an action (button) within the Flash form that links the Flash elements to the Domino form via the JavaScript within the form.
It's that simple. I'll attempt to use naming conventions for my JavaScript and fieldnames, so you won't need to know JavaScript to follow this example.
Step one: Place some JavaScript code into your $$HTMLHead field
JavaScript functions are usually defined inside the <HEAD> </HEAD> because you often need those functions loaded before any other element of the Web page. The JavaScript is then included between <SCRIPT> </SCRIPT>.
To achieve this in a Domino form, you must use the $$HTMLHead field. The JavaScript functions are stored as formulas, so make sure that you replace all double quotes with \" and all single quotes with \' before pasting the script as a value formula for that field.
One cautionary note: Remember to hide the $$HTMLHead using the Hide-when formulas of the Property box for text.
When you press the Flash button, it will start your JavaScript, which will set the values in your Domino form.
Here's what the code should be:
"<SCRIPT Language=\"JavaScript\">" + @NewLine +
"<!--" + @NewLine +
"function update(JavFlashfieldname,JavFlashfieldemail)" + @NewLine +
"{" + @NewLine +
"document._DomFlashForm.DomNamefield.value=JavFlashfieldname" + @NewLine +
"document._DomFlashForm.DomEmailfield.value=JavFlashfieldemail" + @NewLine +
"document._ DomFlashForm.submit()" + @NewLine +
"}" + @NewLine +
"// -->" + @NewLine +
"</SCRIPT> "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- 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 ACL, mail, multi purpose and server 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 April 10 to save $200. |
|
|
|
|
|
|
|
|
|
|