Search DominoPower's 11,441 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.
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> "


« 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
Learn Domino Designer 8.5 for free
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
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- 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.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login