148
Appendix A: Basic Flex Concepts
To escape an ActionScript block, enclose it within a CDATA block. A CDATA block is an XML
technique used to escape character data from the XML parser. The block is created as follows in
the code:
<![CDATA[
...
]]>
The parser ignores everything in the CDATA block, including special symbols, strings, and
numbers. The Flex compiler can still read and compile the ActionScript in the block. The
following example shows the technique:
<mx:Script>
<![CDATA[
var myVar:Number;
function doSomething() {
myVar = myVar + 1;
}
]]>
</mx:Script>
Related topics
•
“Creating MXML or ActionScript files” on page 75
•
“Debugging ActionScript” on page 87
•
Flex ActionScript Language Reference help
About Flex containers, components, and controls
Building a Flex user interface consists of inserting Flex containers, components, and controls in
an MXML file.
This section covers the following topics:
•
“Flex components” on page 148
•
“Flex controls” on page 149
•
“Flex containers” on page 149
Flex components
Flex includes a component-based development model that you use to develop your application
and its user interface. You can use the prebuilt components included with Flex, you can extend
components to add new properties and methods, and you can create new components as required
by your application.
Components are extremely flexible and allow you a large amount of control over the component’s
appearance, how the component reacts to user interactions, the font and font size of any text
included in the component, the size of the component in the application, and many other
characteristics.
Summary of Contents for FLEX BUILDER-USING FLEX BUILDER
Page 1: ...Using Flex Builder...
Page 116: ...116 Chapter 4 Building a Flex User Interface Visually...
Page 144: ...144 Chapter 6 Working with Data...
Page 154: ...154 Appendix A Basic Flex Concepts...