problems w/ TileList component
I'm starting to hate components! I do a trace on my TileList instance with "getItemAt(i)" in a loop and it tells me that every item is an instance of my movieclip I want displayed...however, I get these errors and I don't know why. Obviously, something is "null", but what?
PHP Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.containers::BaseScrollPane/fl.containers:BaseScrollPane::drawBackground()
at fl.controls::TileList/fl.controls:TileList::draw()
at fl.core::UIComponent/::callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
at fl.controls::BaseButton/fl.controls:BaseButton::drawBackground()
at fl.controls::BaseButton/fl.controls:BaseButton::draw()
at fl.core::UIComponent/drawNow()
at fl.controls::ScrollBar/fl.controls:ScrollBar::draw()
at fl.core::UIComponent/::callLaterDispatcher()
I like using components because I don't want to reinvent the wheel, but they seem so buggy! Your thoughts...