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 flash.net.registerClassAlias;
import com.util.TestClass;
registerClassAlias("com.util.TestClass", TestClass);

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s