Error #2084-The AMF Encoding of the arguments cannot exceed 40K

瘦欲@ 提交于 2019-12-10 18:18:13

问题


In my application I am using localConnection object for communication b/w Flex 3 and Flex 4 swfs. But when the size of the arguments (ArrayCollection) exceeds certain limit , I am getting following exception:-

Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.LocalConnection was unable to invoke callback readyToUpdate. error=ArgumentError: Error #2084: The AMF encoding of the arguments cannot exceed 40K.

Any inputs on same will be highly appreciated.


回答1:


There's a related post here. The last thing mentioned was to check to make sure your array doesn't have a length of 0. Not sure how this translates into exceeding 40K but something to look at. Try to figure out how much data you are trying to send if there is data in the array... http://forums.adobe.com/thread/243519




回答2:


old question, but I just solved this by

content.position=0;


来源:https://stackoverflow.com/questions/4335692/error-2084-the-amf-encoding-of-the-arguments-cannot-exceed-40k

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!