 					var c2:int = data[pos++] & 0xFF;
 					var name:String = this.readString((c1 << 8) | c2);
 					var k:int = data[pos++] & 0xFF;
-					if (k == Amf0Types_kObjectEndType)
+					if (k == AMF0_ObjectEnd)
 						break;
 	
 					this.pos--;

	
				return o;
			}
			else if (marker == Amf0Types_kAvmPlusObjectType)
			{
				return this.readAMF3Object();
			}
			else if (marker == Amf0Types_kNullType)
			{
				return null;
			}
			else if (marker == Amf0Types_kUndefinedType)
			{
				return undefined;
			}
			else if (marker == Amf0Types_kReferenceType)
			{
				var refNum:int = this.readUnsignedShort();
	

	
				return a;
			}
			else if (marker == AMF0_TypedObject)
			{
				o = {};
	
