Flex 2 introduced a newer Action Message Format that does not work with Flash Media Server.
To connect with older ActionScript 2.0 applications, you need to force the NetConnection and SharedObject to use AMF0 encoding instead of the default AMF3.
var nc:NetConnection = new NetConnection(); nc.objectEncoding = flash.net.ObjectEncoding.AMF0;or
NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;The first method changes the object encoding for the instantiated object only where as the second method changes the object encoding for all NetConnection’s globally.