MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guide de l'utilisateur Page 88

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 256
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 87
88 Using MXML
MXML tags correspond to ActionScript classes or properties of classes. Flex parses MXML
tags and compiles a SWF file that contains the corresponding ActionScript objects. For
example, Flex provides the ActionScript Button class that defines the Flex Button control. In
MXML, you create a Button control using the following MXML statement:
<mx:Button label="Submit" />
When you declare a control using an MXML tag, you create an instance object of that class.
This MXML statement creates a Button object, and initializes the label property of the
Button object to the string Submit.
An MXML tag that corresponds to an ActionScript class uses the same naming conventions as
the ActionScript class. Class names begin with an uppercase letter, and uppercase letters
separate the words in class names. Every MXML tag attribute corresponds to a property of the
ActionScript object, a style applied to the object, or an event listener for the object. For a
complete description of the Flex class library and MXML tag syntax, see the Adobe Flex 2
Language Reference.
Using Flex Builder with MXML
Flex Builder includes a code editor that is the focal point for Adobe Flex application
development in Flex Builder. As you work with MXML, the Flex Builder code editor helps to
simplify and streamline your coding tasks by prompting you with hints that help you
complete code expressions, checking for syntax errors, and formatting your code to improve
readability.
For more information, see Chapter 9, “Code Editing in Flex Builder,” in Using Flex Builder 2.
How MXML relates to standards
MXML uses standards extensively. This section describes how MXML relates to standards for
the following:
XML
Event models
Web services
Java
HTTP
Graphics
Cascading Style Sheets
Vue de la page 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 255 256

Commentaires sur ces manuels

Pas de commentaire