xml ファイルから horizontalList コンポーネントを設定したいのですが、幅の値はすべてのデータとともに xml ファイル内にあります。
実際に私はこのコードを持っています:
<mx:Model id="epg" source="epg.xml" />
<mx:Component id="customRend">
<mx:Label text="{data.description}" width="{data.width}"/>
</mx:Component>
<mx:HBox x="82" y="104" width="1203" height="113" verticalAlign="middle">
<mx:HorizontalList width="100%" dataProvider="{epg.channel.program}"
itemRenderer="{customRend}" horizontalScrollPolicy="off">
</mx:HorizontalList>
</mx:HBox>
ただし、リスト内のすべての要素に同じ幅を設定します。
これを行う方法を知っていますか?
どうもありがとう。Br