This is when
MXML comes to the rescue, allowing you to quickly create an interface by declaring a few tags.
MXML is very powerful but is sometimes underestimated. If there is one aspect of Flex I??™d encourage
designers to learn it is MXML. It will give you as much flexibility with layout as you??™d obtain by learning
HTML??”and perhaps even more.
A fact that is often forgotten is that below the surface, all MXML tags are actually ActionScript classes
(remember the rubber ducks!), and Flex transforms all of this MXML into ActionScript in the background,
enabling you to just work with simple MXML tags without having to learn the more complex
ActionScript behind it . . . most of the time. Because the MXML tags are prebuilt ActionScript classes,
they only let you create things based on those classes, and they only let you interact with those classes
in the way that the Adobe engineers programmed them. If you want to do anything out of the ordinary,
you??™ll need to go back to the ActionScript to add extra functionality.
Some key ActionScript concepts
This section will explore some of the key ideas and techniques that are used in ActionScript. They are interrelated
and come together like Lego pieces to help you get the right interaction from your applications.
Understanding packages
A package is a way to organize a group of classes in a directory. Remember that classes are like templates
??”little functional blocks of code that do something??”and they are often stored in separate files.
Pages:
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107