diff --git a/content/doc/flex/using/flx_mxml_mx.html b/content/doc/flex/using/flx_mxml_mx.html index f4330f89d..35b560789 100644 --- a/content/doc/flex/using/flx_mxml_mx.html +++ b/content/doc/flex/using/flx_mxml_mx.html @@ -88,10 +88,9 @@

Using Spark and MX component sets

the MX components.

The MX and Spark component sets contain many of the same components. -For example, both component sets defines a Button control, TextInput -control, and List control. However, while you can use MX components +For example, both component sets define Button, TextInput, and List controls. However, while you can use MX components to perform most of the same actions that you can perform by using -the Spark components, it's best to you use the Spark components +the Spark components, it's best to use the Spark components when possible.

@@ -250,9 +249,7 @@

Compiling MXML to SWF Files

-

You comple MXML files into SWF files.

- -

You can deploy +

After you compile your MXML files into SWF files, you can deploy your application as a compiled SWF file or as a SWF file included in an AIR application.

@@ -271,7 +268,7 @@

Compiling MXML to SWF Files

For more information on wrappers, see Creating a wrapper.

-

Flex also provides a command-line MXML compiler, mxmlc, that +

Flex provides a command-line MXML compiler, mxmlc, that lets you compile MXML files. You can use mxmlc to compile hello.mxml from a command line, as the following example shows:

@@ -280,8 +277,8 @@

Compiling MXML to SWF Files

In this example, flex_install_dir is the Flex installation directory, and app_dir is the directory containing hello.mxml. -The resultant SWF file, hello.swf, is written to the same directory -as hello.mxml.

+The resulting SWF file, hello.swf, is written to the directory +where hello.mxml is.

For more information about mxmlc, see Flex compilers.

@@ -296,13 +293,13 @@

The relationship of MXML tags to
-

Flex is implemented as an ActionScript class library. That -class library contains components (containers and controls), manager +

Flex is implemented as an ActionScript class library that +contains components (containers and controls), manager classes, data-service classes, and classes for all other features. You develop applications by using the MXML and ActionScript languages with the class library.

-

MXML tags correspond to ActionScript classes or properties of +

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 @@ -346,7 +343,7 @@

Understanding the structure of Flex, you can divide your application into separate MXML files and ActionScript files, where each file corresponds to a different module. By dividing your application into modules, you provide many benefits, -including the following:

+including:

@@ -379,7 +376,7 @@

Understanding the structure of

In Flex, a module corresponds to a custom component implemented either in MXML or in ActionScript. These custom components can reference other custom components. There -is no restriction on the level of nesting of component references +is no restriction on the levels of nesting of component references in Flex. You define your components as required by your application.

You @@ -407,8 +404,8 @@

Developing applications

Pages (JSP), Active Server Pages (ASP), and ColdFusion Markup Language (CFML). Developing a useful Flex application is as easy as opening your favorite text editor, typing some XML tags, saving the file, -requesting the file's URL in a web browser, and then repeating the same -process.

+requesting the file's URL in a web browser, and then repeating the +process for the next file you want.

Flex also provides tools for code debugging. For more information, see Command-line @@ -489,10 +486,10 @@

Laying out a user interface using </s:Application>

The List control -and TabNavigator container are laid out side by side because they +and TabNavigator container appear side by side because they are in an HGroup container. The controls in the TabNavigator container -are laid out from top to bottom because they are in a NavigatorContent -containers that use the VerticalLayout class.

+appear from top to bottom because they are in a NavigatorContent +container that uses the VerticalLayout class.

For more information about laying out user interface components, see Visual components.

@@ -510,7 +507,7 @@

Adding user interface controls

such as Button, TextInput, and ComboBox controls. After you define the layout and navigation of your application by -using container components, you add the user interface controls.

+using container components, you add the user interface controls to them.

The following example contains an HGroup (horizontal group) container with two child controls, a TextInput control and a Button control. @@ -690,7 +687,7 @@

Using XML namespaces

This namespace includes the RPC classes for the WebService, HTTPService, and RemoteObject -components and additional classes to support the RPC components. +components, and additional classes to support the RPC components. These classes are included in the mx: namespace, but are provided as a convenience so that you can also reference them by using the s: namespace.

@@ -928,7 +925,7 @@

Using MXML to trigger run-time handling run-time events, in the event properties of MXML tags. For example, the <s:Button> tag has a click event property in which you can specify ActionScript code that executes -when the Button control is clicked at run time. You can specify +when a user clicks the Button control at run time. You can specify simple event listener code directly in event properties. To use more complex code, you can specify the name of an ActionScript function defined in an <fx:Script> tag.

@@ -1084,7 +1081,7 @@

Using RPC services

The following example shows an application that calls a web service that provides weather information, and displays the current temperature -for a given ZIP code. The application binds the ZIP code that a +for a given United States ZIP code. The application binds the ZIP code that a user enters in a TextInput control to a web service input parameter. It binds the current temperature value contained in the web service result to a TextArea control.

@@ -1206,7 +1203,7 @@

Validating data

Flex includes a set of standard validator components for data such as -phone numbers, social security numbers, and ZIP codes. You can also +phone numbers, US Social Security numbers, and US ZIP codes. You can also create your own custom validator.

In MXML, define validators in an <fx:Declarations> tag. @@ -1416,9 +1413,8 @@

Using effects

you apply effects as properties of a control or container. Flex provides a set of built-in effects with default properties.

-

In MXML, define effects in an <fx:Declarations> tag. -You use the <fx:Declarations> tag to declare -non-visual components an MXML file.

+

In MXML, you use the <fx:Declarations> tag to declare +non-visual components, like effects, an MXML file.

The following example shows an application that contains a Button control with its click property set to use the Resize effect @@ -1521,4 +1517,4 @@

Defining custom MXML components

- \ No newline at end of file +