2011-03-31 42 views
0

我已經得到......得到錯誤#1009 CellRenderers

User exception thrown: TypeError: Error #1009: Cannot access a property or method of a null object reference. 
    at fl.controls::CheckBox/drawLayout() 
    at fl.controls::LabelButton/draw() 
    at fl.core::UIComponent/drawNow() 
    at fl.controls::List/drawList() 
    at fl.controls::List/draw() 
    at fl.core::UIComponent/drawNow() 

爲我使用的列表任何的CellRenderer。我已將所有相關組件直接添加到我的FLA,但仍然遇到問題。

回答

0

我想通了,這太多時間調試後...

我有我的CellRenderer類作爲一個內部類我一起公示名單基於組件。一旦基於CellRenderer的類被移入它自己的AS文件並公開發布,那麼錯誤就消失了。

現在這個解決方案的正式文件:)