ArgumentError: Error #2173: Unable to read object in stream in Action script 3

While working on one of the Flex application I encounter below Error:

Error #2173: Unable to read object in stream.  The class com.util.TestClass does not implement flash.utils.IExternalizable but is aliased to an externalizable class.

This is caused by a class being sent from the server that implements IExternalizable but is not compiled into your project.

For resolving error, You need to include below lines to the page from which You are getting the error.

import com.util.TestClass;
registerClassAlias("com.util.TestClass", TestClass);

Join Discussion

This site uses Akismet to reduce spam. Learn how your comment data is processed.