static function string($clipactionrecord, $opts = array()) { $text = ''; $text .= IO_SWF_Type_CLIPEVENTFLAGS::string($clipactionrecord['EventFlags'], $opts); $text .= "\n"; $text .= "\tActions:\n"; foreach ($clipactionrecord['Actions'] as $action) { $text .= "\t"; $text .= IO_SWF_Type_Action::string($action, $opts); $text .= "\n"; } return $text; }
static function string($condAction, $opts = array()) { $text = "\tBUTTONCONDACTION (CondActionSize:{$condAction['CondActionSize']})\n"; $text .= "\t\tCondAction: "; foreach (self::$buttoncond_list as $key) { $text .= " {$key}:" . $condAction['Cond' . $key]; } $text .= "\n"; $text .= "\t\tCondKeyPress:" . $condAction['CondKeyPress'] . " CondOverDownToIdle:" . $condAction['CondOverDownToIdle'] . "\n"; $text .= "\t\tActions:\n"; foreach ($condAction['Actions'] as $action) { $text .= "\t\t\t" . IO_SWF_Type_Action::string($action, $opts) . "\n"; } return $text; }
function dumpContent($tagCode, $opts = array()) { echo " Actions:"; if ($tagCode == 59) { // DoInitAction echo " SpriteID=" . $this->_spriteId; } echo "\n"; foreach ($this->_actions as $i => $action) { if (isset($opts['addlabel']) && $opts['addlabel'] && isset($this->_labels[$i])) { echo " (LABEL: " . $this->_labels[$i] . "):\n"; } $action_str = IO_SWF_Type_Action::string($action); if (isset($opts['addlabel']) && $opts['addlabel'] && isset($this->_branches[$i])) { echo "\t[{$i}] {$action_str} (LABEL: " . $this->_branches[$i] . ")\n"; } else { echo "\t[{$i}] {$action_str}\n"; } } if (count($this->_actions) > 0) { if (isset($opts['addlabel']) && $opts['addlabel'] && isset($this->_labels[$i])) { echo " (LABEL" . $this->_labels[$i] . "):\n"; } } }
function dumpContent($tagCode, $opts = array()) { $opts['tagCode'] = $tagCode; echo "\tButtonID:{$this->_buttonId} TrackAsMenu:{$this->_trackAsMenu} (ActionOffset:{$this->_actionOffset})\n"; echo "\t Characters:\n"; $opts['indent']++; foreach ($this->_characters as $character) { $buttonrecord_str = IO_SWF_Type_BUTTONRECORD::string($character, $opts); echo "\t\t{$buttonrecord_str}\n"; } echo "\t Actions:\n"; if ($tagCode == 34) { // DefineButton2 if (is_null($this->_actions)) { echo "\t\t(no actions)\n"; } else { foreach ($this->_actions as $action) { $action_str = IO_SWF_Type_BUTTONCONDACTION::string($action, $opts); echo "\t\t{$action_str}\n"; } } } else { if (is_null($this->_actions)) { echo "\t\t(no actions)\n"; } else { foreach ($this->_actions as $action) { $action_str = IO_SWF_Type_Action::string($action, $opts); echo "\t\t{$action_str}\n"; } } } }