티스토리 뷰

ArrayCollection acList = new ArrayCollection();

private function acAddData(event:ResultEvent):void { 
    acList.addItem({sung:event.result[i].sung, sung_h:event.result[i].sung_h})


앞으로 데이터 추가하기 : 
acList.addItemAt({sung:event.result[i].sung, sung_h:event.result[i].sung_h}}, 0)

주의 : 데이터를 비우고 다시 넣고자 할때는 초기화 하고 다시 넣어야 오류가 발생하지 않음.
ArrayCollection defaultAC = new ArrayCollection();
acList = defaultAC;

'Language > Flex' 카테고리의 다른 글

[ Flex ] SQLite 기초 강좌  (0) 2015.11.29
[ Flex ] Flex Builder 3 와 LCDS 연결하기 ( 톰켓이용 )  (0) 2015.11.29
[ Flex ][ UIComponent ] ComboBox  (0) 2015.11.29
[ Flex ] DataGrid  (0) 2015.11.29
[ Flex ][ UIComponent ] TextInput  (0) 2015.11.29
Total
Today
Yesterday
최근에 올라온 글
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31