문제

I have a problem with Map objects, while using Gravity. All messages works ok, except the ones which includes Map objects. They throw the following exception:

ArgumentError: Error #2173: Could not read the object in the stream. though Class:org.granite.collections.BasicMap do not implement flash.utils.IExternalizable,but we know that it's Class:externalizable by its alias.

I've found that this error occurs when you do not include granite-essentials.swc, but I don't think that's the case, because normal messaging using RemoteObject works fine, even with Map objects.
Any help will be appreciated.

도움이 되었습니까?

해결책

The problem been solved by adding the following line into my GravityManager class: registerClassAlias("org.granite.collections.BasicMap", BasicMap); I hope it will be useful for someone.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top