Search DominoPower's 11,437 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)

The fields on the Domino form are: DomNamefield and DomEmailfield. Now you're ready to create your Flash form.

Step two: Create the necessary Flash text fields
We'll create a simple Flash form that allows you to capture the Web user's name and email address. The email address field is mandatory.

Click on the Text Tool option. This should bring up the Text Option dialog box, as shown in Figure B.

FIGURE B


Open the Text Option dialog box. Roll over picture for a larger image.

Now Create your Text Description boxes. You need two static text boxes with the words "NAME" and "EMAIL ADDRESS." Make sure that in your text option box, you've selected static text.

Then you need to create two user input fields next to your descriptions. Stick with your text tool, but from your Text Properties Dialog box, choose Input Text type (with Single Line) for both these fields. Give these fields the variable names, "Name" and "Email_Address" respectively.

Now that you have your fields ready for your input, you can change this form by adding some funky Flash. Refer to http://members.nbci.com/raz786/example3.html for an example of what you can do.

Step three: Create a Flash button and add some ActionScript
Now you need to create a simple button in Flash. A button is a graphic symbol by definition. Symbols may be used over and over again from the Flash library. However, you can attach code to a certain symbol on your timeline. In other words, you can re-use these symbols, but depending on where you are on your timeline, these symbols may perform different functions.

So, first create your button. Choose Internet->New Symbol from the Flash menu. In this case, it's a graphic symbol.

Let's just create a simple rectangle with the word "Submit."

Place this button from your library onto your stage. By double-clicking on it, you can add some Actions to this button. The code for this button is pictured in Figure C.

FIGURE C


You can add actions to the button with this code. Roll over picture for a larger image.

When you click on the "+" symbol, you're given a multitude of ActionScript commands.

I used two commands here. They are Set Variable and Get URL. For Set Variable, the values would be:

Variable = FlashFieldName
Value = NAME (Expression)
Variable = FlashFieldEmail
Value = EMAILADDRESS (Expression)

For Get URL, the values would be:

"javascript:{var JavFlashfieldname='" & FlashFieldName & "';var JavFlashfieldemail='" & FlashFieldEmail & ; update(JavFlashfieldname, JavFlashfieldemail)}"

You're ready! Now all you have to decide is where to place your Flash form.

Placement of a Flash form within a Domino form
In my first article, I showed how you can add/embed Flash published files into your Lotus Notes database. In this example, I've included this HTML Flash code in a Domino subform labeled, "FlashSubForm."

Place a computed subform within your Domino form with the formula:

@if( @ismember(userroles;webclient) ; "FlashSubForm" ; "NotesSubForm" )


« 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
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
Adding Quick Highlighter support to IBM Lotus Notes Domino Wiki, Weblog, or Webpage
Remember Young Admins...there are 2 files
WebSphere Portal 6.1.0.2 and Lotus Domino 8.5
The CKEditor - with Domino
>> 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 --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

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