MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guida Utente Pagina 68

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 256
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 67
68 Building a Flex Application
Unlike a set of static HTML pages or HTML templates created using JSP, ASP, or CFML, the
files in a Flex application are compiled into a single binary SWF file. Another major difference
between a Flex application and a JSP, ASP, or ColdFusion application is that application logic
resides in the client-side SWF file. JSP, ASP, and ColdFusion are templating systems in which
application processing occurs on the server and data is dynamically added to an HTML
template and delivered to the client in an HTML page. For more information, see “Moving to
Flex from HTML” on page 68 and “Moving to Flex from an HTML templating
environment” on page 69.
Because MXML files are ordinary XML files, you have a wide choice of development
environments. You can develop in a simple text editor, a dedicated XML editor, or an
integrated development environment (IDE) that supports text editing. Flex also provides tools
for code debugging; for more information, see “Using Flex development tools” on page 70.
Moving to Flex from HTML
Although similar in some ways, developing a Flex application is significantly different from
developing in HTML. HTML uses a page metaphor in which code is primarily written in a
set of page files. What constitutes an application is really a set of separate HTML pages. Each
page must be requested from the server and displayed individually. Assets such as images are
loaded into the individual page that uses them when the page is requested. During
development, you write code, save it, and display a page in a web browser.
The code for a Flex application is likely to be contained in more than one file to promote
reusability, extensibility, and modularity. However, Flex compiles all files into a single SWF
file.
The files that make up the application are compiled into the SWF file; however, the
application can request data from external data sources at runtime. During development, you
write code, save it, and display the entire application in a web browser.
Although Flex development is different from HTML development, you can easily incorporate
a Flex application into an HTML page by using a wrapper. In the wrapper, you specify the
name of a SWF file by using standard HTML
<object> and <embed> tags. For more
information, see Chapter 16, “Creating a Wrapper,” in Building and Deploying Flex 2
Applications.
Vedere la pagina 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 255 256

Commenti su questo manuale

Nessun commento