 				
 				var propertyName:String = this.readUTF();
 				var type:int = data[pos++] & 0xFF;
-				while (type != Amf0Types_kObjectEndType)
+				while (type != AMF0_ObjectEnd)
 				{
 					value = this.readObject();
 					o[propertyName] = value;

	
				return value;
			}
			else if (marker == Amf0Types_kDateType)
			{
				return this.readDate();
			}
			else if (marker == Amf0Types_kLongStringType)
			{
				return this.readLongUTF();
			}
			else if (marker == Amf0Types_kXMLObjectType)
			{
				return this.readXML();
			}

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