7 Replies Latest reply: Oct 2, 2012 2:56 PM by Ned Murphy RSS

    Hello Ned, regarding my last post

    Joselyn6 Community Member

      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

        • 1. Re: Hello Ned, regarding my last post
          Ned Murphy CommunityMVP

          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-no n-null

          • 2. Re: Hello Ned, regarding my last post
            Joselyn6 Community Member

            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()

            • 3. Re: Hello Ned, regarding my last post
              Ned Murphy CommunityMVP

              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.

              • 4. Re: Hello Ned, regarding my last post
                Joselyn6 Community Member

                Hello Ned.

                 

                Precisely had already tried the same experiment with adding a combobox on stage,

                but did not work, exist another way that can help?

                 

                Thanks for any suggestion, and thanks for your help.

                 

                Regards

                Joselyn

                • 5. Re: Hello Ned, regarding my last post
                  Ned Murphy CommunityMVP

                  Did you at any point try to clean things out of your library that you thought you weren't using?  When you use components, they carry a lot of baggage and leave it in the library.

                   

                  Which component(s) are you actually trying to use in your file, and how do you add them to the stage, using code or by manually planting them?

                   

                  I will suggest you try removing them all add adding new ones in from the components library.

                  • 6. Re: Hello Ned, regarding my last post
                    Joselyn6 Community Member

                    Hello Ned:

                     

                    Sorry for the delay, yes I was cleaned things out of the library that I thought weren't using, so I change my code to adding them by code, and remove them adding new ones, there were some errors like this.

                     

                    "** Warning ** The linkage identifier 'fl.controls.DataGrid' was already assigned to the symbol 'DataGrid' and you can not assign it to symbol 'Component / DataGrid' because the linkage identifiers must be unique."

                     

                    So I preffer to do a new file, I believe there is no one problem

                    Just I want to say to you thanks a lot for your great patience and help.

                     

                    Regards

                    Joselyn

                     

                    • 7. Re: Hello Ned, regarding my last post
                      Ned Murphy CommunityMVP

                      You're welcome Joselyn.