User Guide

Table Of Contents
687
CHAPTER 29
Creating Forms in Macromedia Flash
This chapter describes how to create effective forms in Macromedia Flash format. In this format,
Macromedia ColdFusion MX 7 displays forms using Flash, not HTML. This chapter describes
Flash forms and how they differ from HTML forms, and discusses how to create Flash forms.
Contents
About Flash forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687
Building Flash forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 689
Binding data in Flash forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 699
Setting styles and skins in Flash forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 700
Using ActionScript in Flash forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 704
Best practices for Flash forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 707
About Flash forms
ColdFusion MX can deliver forms to the client in Macromedia Flash (SWF) file format.
ColdFusion automatically generates the Flash binary from your CFML code and displays it on
the client. Flash forms have the following advantages over HTML forms:
They are browser-independent. Flash Player works in all commonly used browsers on
Windows and Macintosh systems, and in Netscape and Mozilla on Linux.
By default, they present a modern, visually pleasing appearance, and you can apply predefined
color skins or customize the appearance with specifications similar to those in a Cascading
Style Sheet (CSS).
They let you develop complex, multipart forms that do no require multiple pages, by using
tabbed or accordion-style dialog boxes.
They automatically do much of the layout work for you.
Note: Flash form configuration requirements differ from ColdFusion MX requirements. For example,
Flash forms might not work with all J2EE servers supported by ColdFusion MX. For more
information, see Installing and Using ColdFusion MX.