4 Replies Latest reply on Jul 28, 2006 6:47 PM by ntsiii

    Problem with Accordion Control functioning

    ParomitaDey15 Level 1
      Hello All,

      I am doing a Flex Interface, where I have used an Accordion control with VBox to manage the separate accordion blocks. It is functioning absolutely fine when I run it from the Flex Builder run environment. It opens the generated SWF in IE and the accordion functions perfectly.

      But after I uploaded the same to a server, the accordion control is not functioning. It is giving the following error -
      <I>
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.managers::HistoryManager$/save()
      at mx.containers::Accordion/::commitSelectedInde )
      at mx.containers::Accordion/mx.containers:Accordion :: commitProperties()
      at mx.core::UIComponent/validateProperties()
      at mx.managers::LayoutManager/::validateProperties()
      at mx.managers::LayoutManager/: PhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()
      </I>

      Very stargely when I just run the SWF file through the browser it run fine but when the corresponding HTML wrapper file is run from the browser it shows the above error.

      Do I need to put any specific setting or any javascript etc.

      Please advise and help.

      Thanks and Regards,

      Paromita

        • 1. Re: Problem with Accordion Control functioning
          Rebecca_Hyatt_-Adobe
          I assume that when you're running the SWF directly and when you're running the HTML that houses the SWF, you're accessing the exact same SWF, and you're using the same browser with the same version of Flash player installed?

          Rebecca Hyatt
          Adobe
          • 2. Re: Problem with Accordion Control functioning
            upshotvideo Level 1
            I had the same error before. I sounds like your trying to access properties that have not yet be initialized. Anything within an accordian canvas is not initialized until it has been opened. Are you running a function right off the bat that has references to anything in a closed accordian panel? you can intialize all of the accordian's children right away by putting inside your accordian tag: creationPolicy="all"
            • 3. Re: Problem with Accordion Control functioning
              Level 7
              Are you uploading the entire bin folder? Sounds like you might be
              missing the history.swf

              winsha

              ParomitaDey15 wrote:
              > Hello All,
              >
              > I am doing a Flex Interface, where I have used an Accordion control with VBox
              > to manage the separate accordion blocks. It is functioning absolutely fine when
              > I run it from the Flex Builder run environment. It opens the generated SWF in
              > IE and the accordion functions perfectly.
              >
              > But after I uploaded the same to a server, the accordion control is not
              > functioning. It is giving the following error -
              >
              > TypeError: Error #1009: Cannot access a property or method of a null object
              > reference.
              > at mx.managers::HistoryManager$/save()
              > at mx.containers::Accordion/::commitSelectedInde )
              > at mx.containers::Accordion/mx.containers:Accordion :: commitProperties()
              > at mx.core::UIComponent/validateProperties()
              > at mx.managers::LayoutManager/::validateProperties()
              > at mx.managers::LayoutManager/: PhasedInstantiation()
              > at Function/ http://adobe.com/AS3/2006/builtin::apply()
              > at mx.core::UIComponent/::callLaterDispatcher2()
              > at mx.core::UIComponent/::callLaterDispatcher()
              >

              >
              > Very stargely when I just run the SWF file through the browser it run fine but
              > when the corresponding HTML wrapper file is run from the browser it shows the
              > above error.
              >
              > Do I need to put any specific setting or any javascript etc.
              >
              > Please advise and help.
              >
              > Thanks and Regards,
              >
              > Paromita
              >
              >
              >
              • 4. Re: Problem with Accordion Control functioning
                ntsiii Level 3
                "Are you uploading the entire bin folder? " Can you point us to the docs that describe how to deploy a Flex app?

                Tracy