亲宝软件园·资讯

展开

Flex 复数行文本内容的List Flex 创建复数行文本内容的List

人气:0
想了解Flex 创建复数行文本内容的List的相关内容吗,在本文为您仔细讲解Flex 复数行文本内容的List的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:Flex,数行文本,List,下面大家一起来学习吧。


复制代码 代码如下:

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

<mx:Script>
<![CDATA[
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;

private function init():void {
commentsXML.send();
}

private function commentsXML_result(evt:ResultEvent):void {
var resultXML:XML = evt.currentTarget.lastResult;
list.dataProvider = resultXML.channel.item;
}

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

<mx:HTTPService id="commentsXML"
url="http://blog.minidx.com/comments/feed/"
resultFormat="e4x"
showBusyCursor="true"
result="commentsXML_result(event);"
fault="commentsXML_fault(event);" />

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

</mx:Application>

加载全部内容

相关教程
猜你喜欢
用户评论