This content has been marked as final. Show 4 replies
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?
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"
Are you uploading the entire bin folder? Sounds like you might be
missing the history.swf
> 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
> 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.
> Please advise and help.
> Thanks and Regards,
"Are you uploading the entire bin folder? " Can you point us to the docs that describe how to deploy a Flex app?