Web hosting domain - Using list boxes in a Flash movie A
Friday, December 21st, 2007Using list boxes in a Flash movie A list box is a scrollable list of selectable items. To use list boxes in your Flash movie, follow these steps: 1. Choose Window.Components to view the Components panel if it s not already open. 2. Drag a list box from the Components panel onto the Stage. 3. Choose Window.Properties.Properties to open the Property inspector if it isn t already open. If necessary, click the collapse arrow on the Property inspector title bar to expand it and click the Parameters tab. The Property inspector appears with the Parameters tab on top. The Property inspector lists four parameters: Data, Labels, Multiple Selection, and Row Height. 4. Type a name in the Instance Name text field in the left corner of the Property inspector. For example, you might name the instance myListBox. 5. To create items in the list box, click the magnifying glass next to the Labels text field on the Parameters tab of the Property inspector. The Values dialog box appears. 6. In the Values dialog box, click the plus sign to add a list item or click the minus sign to delete a list item. Click the upward-pointing triangle to move an item up on the list and click the downward-pointing triangle to move an item down on the list. When you add an item to the list, it is cleverly named defaultValue. 7. To change a list item s name from defaultValue to something more useful, click the menu item in the Values dialog box and type a more descriptive name there. 8. Click OK. The Values dialog box closes. 9. To set whether the user can select multiple items on the list, select True or False from the drop-down list for the Multiple Selection parameter. Selecting True allows the user to select multiple items on the list. Selecting False allows the user to select only one item on the list. 10. To change the height (in pixels) of each item in the list, click the Row Height field on the Property inspector and type a new number. The default height is 20 pixels. Chapter 12: Putting It All Together 265
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.