public function build() { $writer = new Media_SWF_Parser(); $writer->putUI8($this->_fields['PlaceFlag']); $writer->putUI16LE($this->_fields['Depth']); if (isset($this->_fields['CharacterId'])) { $writer->putUI16LE($this->_fields['CharacterId']); } if (isset($this->_fields['Matrix'])) { $writer->putMatrix($this->_fields['Matrix']); } if (isset($this->_fields['ColorTransform'])) { $writer->putColorTransformWithAlpha($this->_fields['ColorTransform']); } if (isset($this->_fields['Ratio'])) { $writer->putUI16LE($this->_fields['Ratio']); } if (isset($this->_fields['Name'])) { $writer->putString($this->_fields['Name']); } if (isset($this->_fields['ClipDepth'])) { $writer->putUI16LE($this->_fields['ClipDepth']); } if (isset($this->_fields['ClipActions'])) { $writer->putData($this->_fields['ClipActions']); } return $writer->output(); }