Download Flash Tutorials

Transcript
Flash components overview
ScrollPane
“You can use the ScrollPane component to display content that is too large for the area into which it is loaded. For
example, if you have a large image and only a small space for it in an application, you could load it into a
ScrollPane. The ScrollPane can accept movie clips, JPEG, PNG, GIF, and SWF files. ” Adobe documentation [25]
Uploader
“The UILoader component is a container that can display SWF, JPEG, progressive JPEG, PNG, and GIF files. You
can use a UILoader whenever you need to retrieve content from a remote location and pull it into a Flash application.
For example, you could use a UILoader to add a company logo (JPEG file) to a form. You could also use the
UILoader component in an application that displays photos. Use the load() method to load content, the
percentLoaded property to determine how much content has loaded, and the complete event to determine when
loading is finished. ” Adobe documentation [26]
UIScollBar
“The UIScrollBar component allows you to add a scroll bar to a text field. You can add a scroll bar to a text field
while authoring, or at run time with ActionScript. To use the UIScrollBar component, create a text field on the Stage
and drag the UIScrollBar component from the Components panel to any quadrant of the text field's bounding box. ”
Adobe documentation [27]
List-based components
Lists
These components are based on lists
• A list is a row
• Rows can have columns
• A cell is either an element of a simple row or the intersection of a row with a column
Items
• Contents of cells are items
• Items are objects with various properties (depending on the component)
The dataProvider parameter
• For ComboBox, List, and TileList click on the dataProvider parameter to enter data.
DataGrid
“ The DataGrid component lets you display data in a grid of rows and columns, drawing the data from an array or an
external XML file that you can parse into an array for the DataProvider. The DataGrid component includes vertical
and horizontal scrolling, event support (including support for editable cells), and sorting capabilities.” Adobe
documentation [28]
See the Flash datagrid component tutorial in this Wiki.
218