|
|
|
помогите упростить, Флекс
|
|||
|---|---|---|---|
|
#18+
public function AddArray3():void { var mIndex:int = 0; dataSP3 = new ArrayCollection(); for (mIndex = 0; mIndex < 12; mIndex++) { var yIndex:int = 0; dataSP3.addItem({ Month:xmlSP.year[0].Month[mIndex].@['name'], year1996:xmlSP.year[0].Month[mIndex], year1997:xmlSP.year[1].Month[mIndex], year1998:xmlSP.year[2].Month[mIndex], year1999:xmlSP.year[3].Month[mIndex], year2000:xmlSP.year[4].Month[mIndex], year2001:xmlSP.year[5].Month[mIndex], year2002:xmlSP.year[6].Month[mIndex], year2003:xmlSP.year[7].Month[mIndex] }); } LoadXML5(); } пытаюсь упростить year1996:xmlSP.year[0].Month[mIndex], year1997:xmlSP.year[1].Month[mIndex], year1998:xmlSP.year[2].Month[mIndex], такой вот штукой. xmlSP.year[2].@['value'] но когда подставляю это в ArrayCollection(). то ничего не получаеться(( делаю так xmlSP.year[0].@['value']:xmlSP.year[0].Month[mIndex] почему то не воспринимает это как переменную(( помогите плз разобраться ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.04.2010, 00:19:33 |
|
||
|
|

start [/forum/topic.php?fid=16&msg=36584036&tid=1343745]: |
0ms |
get settings: |
9ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
274ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
38ms |
get tp. blocked users: |
1ms |
| others: | 198ms |
| total: | 554ms |

| 0 / 0 |
