Yuu
June 25th, 2008, 04:28 PM
I've got a child SWF that loads images from XML. in that child I've got a progress bar component tied to the loading if the image.
When I test that child on it's own, the progress bar displays as it should.
The problem comes when I load that child into it's parent SWF file. The progress bar magically disappears, and I get this message
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
at fl.controls::ProgressBar/drawTrack()
at fl.controls::ProgressBar/draw()
at fl.core::UIComponent/callLaterDispatcher()
Can anyone illuminate this rookie as to what's going on?
Also I've got a question about properly getting the amount of the image that's loaded. But that's probably best left for a different thread.
Thanks for any help.
When I test that child on it's own, the progress bar displays as it should.
The problem comes when I load that child into it's parent SWF file. The progress bar magically disappears, and I get this message
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
at fl.controls::ProgressBar/drawTrack()
at fl.controls::ProgressBar/draw()
at fl.core::UIComponent/callLaterDispatcher()
Can anyone illuminate this rookie as to what's going on?
Also I've got a question about properly getting the amount of the image that's loaded. But that's probably best left for a different thread.
Thanks for any help.