如何将文本从MySQL加载到Flex3中的HorizontalList?
我正在使用的 :
<mx:ControlBar x="10" y="40" width="460" height="230">
<mx:HorizontalList id="dataGrid"
dataProvider="{dataArr}"
labelField="lbl"
iconField="src"
itemRenderer="CustomItemRenderer"
columnCount="4"
columnWidth="100"
rowHeight="100"
horizontalScrollPolicy="on"
width="439" height="230"/>
</mx:ControlBar>和in CustomItemRenderer.mxml
<mx:VBox horizontalAlign="center" verticalAlign="middle">
<mx:Image source="{data.@thumbnailImage}" />
<mx:Label text="{data.@nomept}" />
</mx:VBox>我还做了“从数据库创建应用程序..”并试图与成功融为一体,但没有成功。
发布于 2009-03-30 08:05:51
您需要使用“服务器端解决方案”,如php / rails / python / cf /等.以便将mySQL数据传递给Flex。不能直接从actionscript/flex执行mySQL查询,如果您在何处使用Adobe,可以与sqlite3通信
干杯
https://stackoverflow.com/questions/686241
复制相似问题