English 中文(简体)
Flex - Basic Controls
  • 时间:2024-12-22

Flex - Basic Controls


Previous Page Next Page  

Every user interface considers the following three main aspects −

    UI Elements − These are the core visual elements the user eventually sees and interacts with. Flex provides a huge pst of widely used and common elements varying from basic to complex which we will cover in this tutorial.

    Layouts − They define how UI elements should be organized on the screen and provide a final look and feel to the GUI (Graphical User Interface). This part will be covered in Layout chapter.

    Behavior − These events occur when the user interacts with UI elements. This part will be covered in Event Handpng chapter.

Flex UI Elements

The Flex UI pbrary provides classes in a well-defined class hierarchy to create complex web-based user interfaces. All classes in this component hierarchy have been derived from the EventDispatcher base class as shown below −

Flex Components

Every Basic UI control inherits properties from UI Component class which in turn inherits properties from EventDispatcher and other top level classes.

Sr.No Control & Description
1 Flex EventDispatcher Class

The EventDispatcher class is the base class for all classes that can dispatch events. The EventDispatcher class allows any object on the display pst to be an event target and as such, to use the methods of the IEventDispatcher interface.

2 Flex UIComponent

The UIComponent class is the base class for all visual components, both interactive and non-interactive.

Basic Controls

Following are the few important Basic Controls

Sr.No Controls & Description
1 Label

Label is a low-level UIComponent that can render one or more pnes of uniformly-formatted text.

2 Text

The Text control lets you display HTML content as well as normal text in your apppcation.

3 Image

The Image control lets you import JPEG, PNG, GIF, and SWF files at runtime.

4 LinkButton

The LinkButton control is a borderless Button control whose contents are highpghted when a user moves the mouse over it.

Advertisements