
Example 3-1. The Application tag
<mx:Application xmlns:mx="http://www.adobe.com
/2006/mxml"
backgroundGradientColors="[0xFFFFFF,0xAAAAAA]"
horizontalAlign="left"
verticalGap="15" horizontalGap="15" >
Next, we’ll lay out the search form in Design mode:
1. Click
the Design button to change to Design mode. Us-
ing Design mode is the easiest way to lay out a form in
Flex Builder.
2. From the Components view, drag an HBox component
from the Layout folder to the design area. Keep the de-
fault values of the component. The HBox component
contains the label, input field, and button for the form
and displays them horizontally.
NOTE
The blue lines that appear in the design area help
you position the component. When you release
the component in the design area, it snaps into
position.
3. Drag the Label component from the Controls folder to
the HBox component.
4. To change the default appearance of the Label compo-
nent, double-click the Label component and type in the
Flickr tags or terms that you want to search (see Fig-
ure 3-4).
22 | Chapter 3: Flex 101: Step by Step
Komentarze do niniejszej Instrukcji