我想要一个网页来显示歌曲标题和相关歌词。我有一个coldfusion cfc,它通过提供两个字段songTitle 和songLyric 的数据库查询为Flex 应用程序提供数据。我在 2 列数据网格中显示数据没有问题,但我不清楚如何仅在 TextArea 文本中引用 songLyric
TIA
protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
{
lyrics.getLyric("Blackpatch");
}
]]>
</fx:Script>
<fx:Declarations>
<s:CallResponder id="getLyricResult" result=""/>
<lyrics:Lyrics id="lyrics" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
</fx:Declarations>
<mx:DataGrid x="175" y="97" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getLyricResult.lastResult}">
</mx:DataGrid>
<s:TextArea x="394" y="126" text="???"/>