Per Layer Metadata Panel: Design the Panel
The fourth part of the Per Layer Metadata Panel is designing the Adobe Photoshop Panel using Adobe Flex Builder. The developer will modify the design area to be a vertical layout to drag and drop horizontal box layout components, label control components, text input control components, text area control components, and also button control components. The tutorial will further the locations of the components and any property changes. The result is an Adobe Photoshop Panel containing an area to display the layer's name, last changed date and time with an update button, description, comments, and a button to apply changes of the metadata.
Instructions:
- Complete the Starting a Flex Project.
- Go to File > New > Flex Project.
- Under Project name:, type in PerLayerMetadata.
Note: The Adobe Flex Builder Project filename and corresponding SWF filename must have the same name as the JavaScript filename. - Deselect Use default location and under Folder:, save to the Desktop in a new folder called PerLayerMetadata.
- Under Application type, select Web application (runs in Flash Player).
- Press Finish.
- Go to Design Mode by selecting Design under the PerLayerMetadata.mxml tab or go to Window > Switch Source/Design Mode.

- Go to the Flex Properties window or go to Window > Flex Properties.

- Under Layout, set the Layout: to vertical.

- Go to the Components window or go to Window > Components.
- Under the Layouts folder in the Components window, drag and drop the first HBox layout component to the design area.

- Under Width: only in the Insert HBox dialog, type in 100%.

- Drag and drop the second HBox layout component to the design area under the first HBox layout component.
- Under Width: only in the Insert HBox dialog, type in 100%.
- Drag and drop the third HBox layout component to the design area under the second HBox layout component.
- Under Width: and Height: in the Insert HBox dialog, type in 100%.
- Drag and drop the fourth HBox layout component to the design area under the third HBox layout component.
- Under Width: and Height: in the Insert HBox dialog, type in 100%.
- Drag and drop the fifth HBox layout component to the design area under the fourth HBox layout component.
- Under Width: only in the Insert HBox dialog, type in 100%.
- Select the fifth HBox layout component from the top of the design area.
- Go to the Flex Properties window or go to Window > Flex Properties.

- Under Horizontal align:, select right.

- The design area should look what is seen below:

- Go to the Components window or go to Window > Components.
- Under the Controls folder in the Components window, drag and drop the Label control component into each of the HBox layout components except the last from the top in the design area.

- Double-Click on the Label control component in the first HBox layout component from the top placed in the design area and type in Name: and press Enter.
- Double-Click on the Label control component in the second HBox layout component from the top placed in the design area and type in Last Changed: and press Enter.
- Double-Click on the Label control component in the third HBox layout component from the top placed in the design area and type in Description: and press Enter.
- Double-Click on the Label control component in the fourth HBox layout component from the top placed in the design area and type in Comments: and press Enter.
- The design area should look what is seen below:

- Go to the Components window or go to Window > Components.
- Under the Controls folder in the Components window, scroll down and drag and drop the following control components into the design area:
- TextInput control components to the first and second HBox layout components from the top
- TextArea control components to the third and fourth HBox layout components from the top
- Select all the TextInput and TextArea control components that was just placed in the design area.
- The design area should look what is seen below:

- Go to the Flex Properties window or go to Window > Flex Properties. Since all the TextInput and TextArea control components are selected, it shows the common properties between them.

- Under Layout, set the Width: and Height: to 100%.

- Select only the TextInput control components.
- The design area should look what is seen below:

- Go to the Flex Properties window or go to Window > Flex Properties.

- Under Common, set the Editable: to false.

- The design area should look what is seen below:

- Go to the Components window or go to Window > Components.
- Under the Controls folder in the Components window, drag and drop the Button control component into the second and fifth HBox layout component from the top placed in the design area. The Button control component in the second HBox layout component should be right of the TextInput control component.
- Double-Click on the Button control component in the second HBox layout component from the top placed in the design area and type in Update and press Enter.
- Double-Click on the Label control component in the fifth HBox layout component from the top placed in the design area and type in Apply Changes and press Enter.
- The design area should look what is seen below:

- Go to File > Save.