Please Help!

Hi Everyone.

I have been battling with this for a while nmow and I can’t find a solution. I know this is probably a pretty simple thing I am missing,ut I am quite new to AS3 (and programming in general). If anyone could help it would be greatly appreciated.

I have a AS3 movie which works just fine. I needed to add a preloader, so I did some searching and got one working. Problem is, when I implement it, it loads the second movie perfectly, but then it throws this lovely error:

 
TypeError: Error #1009: Cannot access a property or method of a null object reference.
 at fl.controls::TextArea/drawLayout()
 at fl.controls::TextArea/draw()
 at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
 at flash.display::DisplayObjectContainer/addChildAt()
 at fl.controls::BaseButton/drawBackground()
 at fl.controls::BaseButton/draw()
 at fl.core::UIComponent/drawNow()
 at fl.controls::ScrollBar/draw()
 at fl.controls::UIScrollBar/draw()
 at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
 at flash.display::DisplayObjectContainer/addChildAt()
 at fl.controls::BaseButton/drawBackground()
 at fl.controls::BaseButton/draw()
 at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
 at flash.display::DisplayObjectContainer/addChildAt()
 at fl.controls::BaseButton/drawBackground()
 at fl.controls::LabelButton/draw()
 at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
 at flash.display::DisplayObjectContainer/addChildAt()
 at fl.controls::BaseButton/drawBackground()
 at fl.controls::BaseButton/draw()
 at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
 at flash.display::DisplayObjectContainer/addChildAt()
 at fl.controls::BaseButton/drawBackground()
 at fl.controls::BaseButton/draw()
 at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
 at flash.display::DisplayObjectContainer/addChildAt()
 at fl.controls::BaseButton/drawBackground()
 at fl.controls::BaseButton/draw()
 at fl.core::UIComponent/drawNow()
 at fl.controls::ScrollBar/draw()
 at fl.controls::UIScrollBar/draw()
 at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
 at flash.display::DisplayObjectContainer/addChildAt()
 at fl.controls::BaseButton/drawBackground()
 at fl.controls::BaseButton/draw()
 at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
 at flash.display::DisplayObjectContainer/addChildAt()
 at fl.controls::BaseButton/drawBackground()
 at fl.controls::LabelButton/draw()
 at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
 at flash.display::DisplayObjectContainer/addChildAt()
 at fl.controls::BaseButton/drawBackground()
 at fl.controls::BaseButton/draw()
 at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
 at flash.display::DisplayObjectContainer/addChildAt()
 at fl.controls::BaseButton/drawBackground()
 at fl.controls::BaseButton/draw()
 at fl.core::UIComponent/callLaterDispatcher()


I narrowed it down to some text fields that I lkoad XML data into, but I have no clue what I am doing wrong!

Thanks for any help
cheers
Peter