[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 664
  • Last Modified:

Adobe Flex formating in textbox control

we are using adobe Flex 3.0  textbox control to display data from external xml file.
We would like to put bullet formats in the display (similar to how it is in any test editor like MSword)  how to get this done
0
tps2009
Asked:
tps2009
1 Solution
 
Jones911Commented:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
	<mx:Script>
		<![CDATA[
			private function init():void{
				textBox.htmlText = '<ul><li>Coffee</li><li>Milk</li></ul>';
			}
		]]>
	</mx:Script>
	
	<mx:Text id="textBox" x="200" y="143"  width="165" height="55"/>
	
</mx:Application>

Open in new window

0
 
lexxwernCommented:
As given in the example above, you can use the .htmlText property to render HTML data. You can refer to http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html for usage imformation. There are certain constraints at sometimes it will not render HTML exactly similar to web browsers.
0

Featured Post

Enhanced Intelligibility Without Cable Clutter

Challenge: The ESA office in Brussels wanted a reliable audio conference system for video conferences. Their requirement - No participant must be left out from the conference and the audio quality must not be compromised.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now