2
Q
通過索引
A
回答
2
你想要的代碼是:
public function disableButton(index:int):void
{
// Bounds check
if (index < 0 || index >= this.dataGroup.numElements) return;
var btn:ButtonBarButton = this.dataGroup.getElementAt(index) as ButtonBarButton;
if (btn)
{
btn.enabled = false;
}
}
這裏是一個complete working example。
相關問題
- 1. 通過索引
- 2. 通過索引
- 3. 通過索引
- 4. 通過索引
- 5. 通過索引
- 6. 通過索引
- 7. 通過索引
- 8. 通過索引
- 9. 通過索引
- 10. WebHeaderCollection,通過索引
- 11. 通過索引AS3
- 12. 通過檢索索引
- 13. apache nutch通過REST索引到索引
- 14. 通過索引動作
- 15. 通過的數組索引
- 16. UPSERT通過索引MongoDB中
- 17. 如何通過索引
- 18. 無法通過索引
- 19. 如何通過索引
- 20. d3.js通過索引
- 21. JavaScript的:通過索引
- 22. 如何通過索引
- 23. RapidJSON庫通過其索引
- 24. 項目通過索引
- 25. 通過索引攻絲UITableViewHeader
- 26. 複印通過索引
- 27. 通過給列索引
- 28. 通過索引錯誤
- 29. 通過索引讀取NSDictionary
- 30. 的Python通過索引
正是我需要的,感謝了一堆。 – user1210003