We have a fairly large Flex application and our QA were getting random, but reproducible, errors that the Flex developers couldn't reproduce. Some of these errors were being thrown from the flash player debug version such as:
ReferenceError: Specified ApplicationDomain does not contain the class ::LineSeriesLegendMarker
at org.spicefactory.lib.reflect::ClassInfo$/getClassDefinitionByName()
at org.spicefactory.lib.reflect::ClassInfo$/getClassInfo()
at org.spicefactory.lib.reflect::ClassInfo$/forInstance()
at org.spicefactory.parsley.core.view.impl::DefaultViewConfigurator/getDefinitionByType()
at org.spicefactory.parsley.core.view.impl::DefaultViewConfigurator/getDefinition()
at org.spicefactory.parsley.core.view.handler::ViewAutowireHandler/processAutowireEvent()
at org.spicefactory.parsley.core.view.util::ContextAwareEventHandler/handleEvent()
at org.spicefactory.parsley.core.view.handler::ViewAutowireHandler/handleAutowireEvent()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.spicefactory.parsley.core.view.handler::ViewAutowireHandler/prefilterView()
at flash.display::DisplayObjectContainer/addChildAt()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$addChildAt()
at mx.core::Container/addChildAt()
at mx.core::Container/addChild()
at mx.charts::Legend/addLegendItem()
at mx.charts::Legend/populateFromArray()
at mx.charts::Legend/commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/validateProperties()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()
Other errors include comboboxes not being populated correctly and what seems to be just general timing issues.
I'd like to emphasize that we've narrowed this down to our our main SWF with no other variables except the mxmlc parameter -debug=true vs -debug=false. Has anyone else encountered this or know why the builds would be resulting in different behavior?