Search Flex Components Free

Custom Search

December 20, 2007

Flex Control Label Source Code Sample

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="" backgroundAlpha="0" horizontalAlign="left">
<mx:Style> .boldRed { fontWeight: "bold"; color: #FF0000; fontSize: 15; } </mx:Style> <mx:Label text="This is a Label"/>
<mx:Label fontSize="14"><mx:htmlText><![CDATA[<font color="#FF0000">This</font> is <b>html text</b> <i>in a</i> <font color="#666699">Label</font> <u>component</u></font>]]></mx:htmlText></mx:Label>
<mx:Label styleName="boldRed" text="This is a label using a CSS style. My text should be red, bold and 15 px in size." />

Related Flex Tutorials