Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Using Styles

Each component in the Flex framework has a series of style properties that can be set to control the look and feel of an application. Each style is clearly delineated in the Adobe Flex 3 Language Reference (known as ASDOC) documentation. For these style properties, there are three different approaches to apply styles. The simplest is setting a style on a component directly as an attribute of its MXML tag. Consider this simple example:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute" >
    <mx:Label text="This is Text" />
</mx:WindowedApplication>


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial