protected function readCustomClass()
{
//not really sure why the replace is here? A.S. 201310
$typeIdentifier = str_replace('..', '', $this->readUTF());
$obj = $this->resolveType($typeIdentifier);
$this->amf0storedObjects[] =& $obj;
$key = $this->readUTF();
// grab the key
for ($type = $this->readByte(); $type != 9; $type = $this->readByte()) {
$val = $this->readData($type);
// grab the value
$obj->{$key} = $val;
// save the name/value pair in the array
$key = $this->readUTF();
// get the next name
}
return $obj;
}