Skip to main content
Inspiring
September 20, 2012
Answered

Hello Ned, regarding my last post

  • September 20, 2012
  • 1 reply
  • 2821 views

I test the swf (Child), where I load another external (child-little) swf, but it throw me this error, could you please help me ? I was triyng searching some explanation, but maybe i cannot to understand.

TypeError: Error #2007: El valor del parámetro child debe ser distinto de null.

at flash.display::DisplayObjectContainer/addChildAt()

at fl.controls::BaseButton/drawBackground()

at fl.controls::BaseButton/draw()

at fl.core::UIComponent/drawNow()

at fl.controls::ComboBox/drawLayout()

at fl.controls::ComboBox/draw()

at fl.core::UIComponent/callLaterDispatcher()

TypeError: Error #2007: El valor del parámetro child debe ser distinto de null.

at flash.display::DisplayObjectContainer/addChildAt()

at fl.controls::BaseButton/drawBackground()

at fl.controls::BaseButton/draw()

at fl.core::UIComponent/callLaterDispatcher()

Please tell me if I have to send my code, please, thanks again in advance.

Joselyn

This topic has been closed for replies.
Correct answer Ned Murphy

The first thing I will suggest is based on a search I just did regarding finding out what error 2007 is in English.  Try dragging a Button component from the components panel onto the stage so that it ends up in the library and then delete it from the stage.

For your own reference, the search result can be found at: http://stackoverflow.com/questions/4573282/typeerror-error-2007-parameter-child-must-be-non-null

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
September 21, 2012

The first thing I will suggest is based on a search I just did regarding finding out what error 2007 is in English.  Try dragging a Button component from the components panel onto the stage so that it ends up in the library and then delete it from the stage.

For your own reference, the search result can be found at: http://stackoverflow.com/questions/4573282/typeerror-error-2007-parameter-child-must-be-non-null

Joselyn6Author
Inspiring
September 22, 2012

Hello Ned, thanks very much for your accurate response, I made what you said,

and the problem disappeared but, it throw me another error :

I used an application from the examples of adobe of a Combobox in

this "othersCafes.swf" it works fine, only when it is loaded in"cafes.swf"

I hope as always your valuable help.

Have a nice Day !!

TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo.

at fl.containers::BaseScrollPane/drawBackground()

at fl.controls::List/draw()

at fl.core::UIComponent/drawNow()

at fl.controls::List/scrollToIndex()

at fl.controls::SelectableList/scrollToSelected()

at fl.controls::ComboBox/open()

at otherscafes

_fla::MainTimeline/timerHandler()[otherscafes_fla.MainTimeline::frame1:76]

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()

ArgumentError: Error #2025: El objeto DisplayObject proporcionado debe ser un elemento secundario del llamador.

at flash.display::DisplayObjectContainer/removeChild()

at fl.controls::ComboBox/close()

at otherscafes_fla::MainTimeline/timerHandler()[otherscafes_fla.MainTimeline::frame1:74]

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()

TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo.

at fl.containers::BaseScrollPane/drawBackground()

at fl.controls::List/draw()

at fl.core::UIComponent/drawNow()

at fl.controls::List/scrollToIndex()

at fl.controls::SelectableList/scrollToSelected()

at fl.controls::ComboBox/open()

at otherscafes_fla::MainTimeline/timerHandler()[otherscafes_fla.MainTimeline::frame1:76]

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()

ArgumentError: Error #2025: El objeto DisplayObject proporcionado debe ser un elemento secundario del llamador.

at flash.display::DisplayObjectContainer/removeChild()

at fl.controls::ComboBox/close()

at otherscafes_fla::MainTimeline/timerHandler()[otherscafes_fla.MainTimeline::frame1:74]

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()

TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo.

at fl.containers::BaseScrollPane/drawBackground()

at fl.controls::List/draw()

at fl.core::UIComponent/drawNow()

at fl.controls::List/scrollToIndex()

at fl.controls::SelectableList/scrollToSelected()

at fl.controls::ComboBox/open()

at otherscafes_fla::MainTimeline/timerHandler()[otherscafes_fla.MainTimeline::frame1:76]

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()

ArgumentError: Error #2025: El objeto DisplayObject proporcionado debe ser un elemento secundario del llamador.

at flash.display::DisplayObjectContainer/removeChild()

at fl.controls::ComboBox/close()

at otherscafes_fla::MainTimeline/timerHandler()[otherscafes_fla.MainTimeline::frame1:74]

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()

TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo.

at fl.containers::BaseScrollPane/drawBackground()

at fl.controls::List/draw()

at fl.core::UIComponent/drawNow()

at fl.controls::List/scrollToIndex()

at fl.controls::SelectableList/scrollToSelected()

at fl.controls::ComboBox/open()

at otherscafes_fla::MainTimeline/timerHandler()[otherscafes_fla.MainTimeline::frame1:76]

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()

ArgumentError: Error #2025: El objeto DisplayObject proporcionado debe ser un elemento secundario del llamador.

at flash.display::DisplayObjectContainer/removeChild()

at fl.controls::ComboBox/close()

at otherscafes_fla::MainTimeline/timerHandler()[otherscafes_fla.MainTimeline::frame1:74]

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()

Ned Murphy
Legend
September 22, 2012

You seem to be having more issues with components.  I recommend you drag every type of component into the stage like you did with the Button and see if that helps.