MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guía de usuario Pagina 87

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 256
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 86
Using MXML 87
About XML encoding
The first line of the document specifies an optional declaration of the XML version. It is good
practice to include encoding information that specifies how the MXML file is encoded. Many
editors let you select from a range of file encoding options. On North American operating
systems, ISO-8859-1 is the dominant encoding format, and most programs use that format
by default. You can use the UTF-8 encoding format to ensure maximum platform
compatibility. UTF-8 provides a unique number for every character in a file, and it is
platform-, program-, and language-independent. If you specify an encoding format, it must
match the file encoding you use. The following example shows an XML declaration tag that
specifies the UTF-8 encoding format:
<?xml version="1.0" encoding="utf-8"?>
About the <mx:Application> tag
In addition to being the root tag of a Flex application, the <mx:Application> tag represents
an Application container. A container is a user-interface component that contains other
components and has built-in layout rules for positioning its child components. By default, an
Application container lays out its children vertically from top to bottom. You can nest other
types of containers inside an Application container, such as the Panel container shown above,
to position user-interface components according to other rules. For more information, see
Chapter 6, “Using Flex Visual Components,” in Flex 2 Developer’s Guide.
About MXML tag properties
The properties of an MXML tag, such as the text, color, and fontSize properties of the
<mx:Label> tag, let you declaratively configure the initial state of the component. You can
use ActionScript code in an
<mx:Script> tag to change the state of a component at runtime.
For more information, see Chapter 4, “Using ActionScript,” in Flex 2 Developer’s Guide.
The relationship of MXML tags to ActionScript
classes
Adobe implemented Flex as an ActionScript class library. That class library contains
components (containers and controls), manager classes, data-service classes, and classes for all
other features. You develop applications using the MXML and ActionScript languages with
the class library.
Vista de pagina 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 255 256

Comentarios a estos manuales

Sin comentarios