-
component error in embedded swf
Ive been getting a horrible error while trying to use a colourpicker in an embedded swf. What I mean is, I have a colourpicker inside a symbol on the stage of my movie, which is fine and works dandy until I try loading that entire swf into another one.
the error i get is:
Code:
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::ColorPicker/createSwatch()
at fl.controls::ColorPicker/drawSwatches()
at fl.controls::ColorPicker/drawPalette()
at fl.controls::ColorPicker/draw()
at fl.core::UIComponent/callLaterDispatcher()
My best guess was that it is a stage problem, aka the stage of the movieclip dosn't yet exist as its being loaded up by another swf file and hasnt been added as a child yet. Im not sure if this IS actually the case, but any other ideas as to what the problem could be?
-
furthermore I cant even seem to add a colorpicker through code. Again, it works fine when the swf is run as a standalone app, but simply doesn't work when I try to embed it.
Gah.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|