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