Flex NetConnection error: Property onDirtyList not found on flash.net.NetConnection
- by David Wolever
I'm having some trouble with NetConnection. The following code makes a connection without issue…
var n:NetConnection = new NetConnection();
n.objectEncoding = ObjectEncoding.AMF0;
n.addEventListener(NetStatusEvent.NET_STATUS, function(...args):void {
trace("HERE");
});
n.connect("rtmp://...host...", ...args);
But as soon as the NET_STATUS event handler finishes (ie, hitting "step into" with the debugger), I get this error:
ReferenceError: Error #1069: Property onDirtyList not found on flash.net.NetConnection and there is no default value.
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback onDirtyList. error=ReferenceError: Error #1069: Property onDirtyList not found on flash.net.NetConnection and there is no default value.
at Test/___Test_Application1_creationComplete()[/Users/wolever/Workspace/Test/src/Test.mxml:13]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9440]
at mx.core::UIComponent/set initialized()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1168]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8744]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8684]
Which is kind of scary because onDirtyList only yields two hits on Google.
So... Any suggestions?