Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual page 11

Migrating applications to flex 2
Table of Contents

Advertisement

This section describes only the most common targets of finding and replacing. There are
many other members of Flex classes that have changed that are not mentioned here. For a
complete list, see
Chapter 3, "Flex Classes," on page
Application namespace
Change the MXML namespace. Change the following:
xmlns:mx="http://www.macromedia.com/2003/mxml"
to this:
xmlns:mx="http://www.adobe.com/2006/mxml"
For example:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
Void
Replace
(with a capital V) with
Void
Newline
The
constant has been removed. In ActionScript, use "\n" to add a carriage return in
newline
your Strings. In an MXML tag, use the
Color value formats
Replace all occurrences of 0x with # in CSS style sheets or
supported color value formats have changed; for example:
.b1 { color: red; }
.b2 { color: #FF0000; }
.b3 { color: 0xFF0000; }
In calls to the
setStyle()
you must put quotation marks around constants and # values; for example:
b1.setStyle("color",0xFF0000);
b2.setStyle("color","red");
b3.setStyle("color","#FF0000");
b4.setStyle("color",red);
b5.setStyle("color",#FF0000);
For more information on changes to the supported color value formats, see
on page
121.
(with a lower-case v).
void
XML character entity to add a carriage return.
&#13;
// Valid
// Valid
// Invalid
method, you can prefix RRGGBB color values with 0x or #, but
// Valid
// Valid
// Valid
// Invalid
// Invalid
41.
tag blocks. The
<mx:Style>
Step 1: Find and replace
"Using colors"
11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents