0

曲のタイトルと関連する歌詞を表示する Web ページが必要です。私は、songTitle と songLyric の 2 つのフィールドを提供するデータベース クエリを介して Flex アプリにデータを提供する coldfusion cfc を持っています。2列のデータグリッドにデータを表示するのに問題はありませんが、TextAreaテキストでsongLyricだけを参照する方法がわかりません

ティア

        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="???"/>

4

1 に答える 1

0

並べたみたい

text="{getLyricResult.lastResult[0].songLyric}"

于 2010-11-03T12:49:56.793 に答える