/** * Process the raw data from a binary stream * * @return void */ public function processData(Woops_Swf_Binary_Stream $stream) { // Resets the storage arrays $this->_offsets = array(); $this->_scenes = array(); $this->frameLabels = array(); // Gets the number of scenes $sceneCount = $stream->encodedU32(); // Process eachs scene for ($i = 0; $i < $sceneCount; $i++) { // Gets the frame offset and name for the current scene $this->_offsets[] = $stream->encodedU32(); $this->_scenes[] = $stream->nullTerminatedString(); } // Gets the number of frame labels $frameLabelCount = $stream->encodedU32(); // Process each frame label for ($i = 0; $i < $frameLabelCount; $i++) { // Gets the frame number and label $this->_frameLabels[$stream->encodedU32()] = $stream->nullTerminatedString(); } }