SoFunction
Updated on 2025-04-07

Flex Creates a List of plural lines of text content


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white"
creationComplete="init();" viewSourceURL="srcview/">

<mx:Script>
<![CDATA[
import ;
import ;

private function init():void {
();
}

private function commentsXML_result(evt:ResultEvent):void {
var resultXML:XML = ;
= ;
}

private function commentsXML_fault(evt:FaultEvent):void {
("Unable to load XML:n" + , "ERROR");
}
]]>
</mx:Script>

<mx:HTTPService
url="/comments/feed/"
resultFormat="e4x"
showBusyCursor="true"
result="commentsXML_result(event);"
fault="commentsXML_fault(event);" />

<mx:List
variableRowHeight="true"
wordWrap="true"
labelField="title"
width="250" />

</mx:Application>