2011-11-09 4 views
0

私は扱うことができない基本的な問題に直面しています。 Spark Listにデータを表示したいのですが、XMLから画像を表示するまでフィンが機能します。私はitemRendererのいくつかの種類を使用する必要があることを知っているが、私はどのように知っている。私はそれについていくつかの記事を読んだが、溶媒和を全く見いだせなかった。XMLからFlash Builder 4.5のスパークリストに画像を表示

This one is allmost good, but i want to display the pictures in the list

私のコードは次のようになります。私は任意の助けそうgreatfullだろう

<?xml version="1.0" encoding="utf-8"?><s:View xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="library://ns.adobe.com/flex/spark" 
    xmlns:employees="services.employees.*" 
    title="HomeView"> 
<fx:Script> 
    <![CDATA[ 
     import mx.events.FlexEvent; 

     protected function list_creationCompleteHandler(event:FlexEvent):void 
     { 
      getDataResult.token = employees.getData(); 
     } 

    ]]> 
</fx:Script> 
<fx:Declarations> 
    <!-- Place non-visual elements (e.g., services, value objects) here --> 
    <s:HTTPService id="srv" url="employees.xml"/> 
    <s:CallResponder id="getDataResult"/> 
    <employees:Employees id="employees"/> 
</fx:Declarations> 
<s:List id="list" left="0" right="0" top="0" bottom="0" 
     creationComplete="list_creationCompleteHandler(event)" labelField="picture"> 
    <s:AsyncListView list="{getDataResult.lastResult}"/> 
</s:List></s:View> 

ありがとう皆さん!これは、Flex 3ですが

答えて

関連する問題