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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 256
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 61
62 Building a Flex Application
Adding ActionScript to a Flex application
ActionScript follows the ECMA-262 Edition 4 (the specification written by the European
Computer Manufacturers Association) unless otherwise noted. For more information on
ActionScript, see Chapter 7, “Using ActionScript,” on page 91.
You use ActionScript for the following purposes:
Handling events The Flex user interface is event-driven. For example, when a user selects a
Button control, the Button generates an event. You handle events by defining functions in
ActionScript called event listeners. Your event listener could open a window, play a SWF file,
or perform whatever action is necessary for your application.
Handling errors You handle runtime errors in ActionScript. You can detect data validation
errors and signal the error to the user, resubmit a request to the server, or perform some other
actions based on your application.
Binding data objects to a Flex control within an MXML statement You can use data
binding to populate a data model from a Flex component, populate a component from a data
model, or copy data from one component to another.
Defining custom components You can derive custom components from the Flex
component class hierarchy to create components specific to your application requirements.
Vedere la pagina 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 255 256

Commenti su questo manuale

Nessun commento