나는 목록이 있고 ArrayCollection이 있습니다.Flash Builder에서 <s:List> dataprovider = "특정 부분의 배열"을 만드는 방법은 무엇입니까?
있는 ArrayCollection은 뭔가 같은 :
<mx:ArrayCollection id="arrColl">
<mx:source>
<mx:Array>
<mx:Object label="Student A" score="85,36,43,67,54,47" />
<mx:Object label="Student B" score="85,36,43,67,54,47" />
<mx:Object label="Student C" score="85,36,43,67,54,47" />
</mx:Array>
</mx:source>
</mx:ArrayCollection>
학생의 점수 만 표시하려면 목록이 필요합니다. 같은
뭔가 :
<s:List dataprovider="arrColl[Student A]"/>
또는 : <s:List dataprovider="arrColl.Student A."/>
문제는 목록 컨트롤이 "34,65,36,87,12"변수를 가져 오지 않고 IList 목록으로 바꾸는 것입니다. –
알아 냈어. 먼저이 일을해야 해. studentAArray = new ArrayCollection (arrColl.score.split (",")); 그런 다음 studentAArray를 List 데이터 제공자로 사용하십시오. –
@Nathan Johnson "Score"변수를 가져 와서 dataProvider로 사용하고 싶지 않다는 것을 알았습니다. 가능한 경우 쉼표로 구분 된 목록을 사용하지 마십시오. 나는 그런 식으로 데이터를 채우는 것이 무엇인지 궁금해해야합니다. – JeffryHouser