I’m creating a MovieClip in CS3 with a button component, expose the button to code with an instance name and export it as a swc file.
I then import that .swc into a flex project and display an instance of the movie clip. It throws this:
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::LabelButton/fl.controls:LabelButton::draw()
at fl.controls::Button/fl.controls:Button::draw()
at fl.core::UIComponent/fl.core:UIComponent::callLaterDispatcher()
If I remove the button instance name from the MovieClip the error stops but then the movie clip just loops endlessly showing the button assets.
Anyone got any idea why?