Sometimes you need to place a long text file (*.txt or of similar content) on your Flex application, either for descriptive details or labels. One way to do it is to use RichText (Spark component) tags and combining it with text (Spark component) and String tags.



To do so:

On your mxml file, add the following tags:
<s:RichText x="482" y="185" width="834" height="447" id="text1">
 <s:text><fx:String source="[PLACE FILE PATH OF TEXT HERE]" /></s:text>
</s:RichText>

Text inside the richtext can then be customized to your desired format.

No comments :

Post a Comment