Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

2.1.1188 Part 4 Section 4.6.28, cmd (Command)

For additional notes that apply to this portion of the standard, please see the notes for tnLst, §4.6.87(b) .

a. The standard states both that the type attribute is optional and required.

PowerPoint does not require the type attribute.

This note applies to the following products: 2007, 2007 SP1, 2007 SP2.

b. The standard does not state a default value for the type attribute.

PowerPoint uses a default value of call for the type attribute.

c. The standard states that the cmd element describes the several non-durational type of commands that can be executed within a timeline.

This cmd attribute defines the actual command to be issued. Depending on the type of command specified, the actual command can be made to invoke a wide range of actions on the linked or embedded object.

Reserved Values (when type = “call”):

Value

Description

play

play corresponding media

playFrom(s)

play corresponding media starting from s, where s is the number of seconds from the beginning of the clip

pause

pause corresponding media

resume

resume play of corresponding media

stop

stop play of corresponding media

togglePause

play corresponding media if media is already paused, pause corresponding media if media is already playing. If the corresponding media is not active, this command will restart the media and play from its beginning.

The <tgtEl> of this behavior shall be a valid media shape, and there shall be an associated <video> or <audio> node as a child of the root node in the timing tree for this to work properly.

Reserved Values (when type = “evt”):

Value

Description

onstopaudio

stop play of all audio

(When type = “verb”):

The value of the cmd attribute shall be the string representation of an integer that represents the embedded object verb number. This verb number will determine the action that the rendering application should take corresponding to this object when this point in the animation is reached.

[Example: Consider the following command

<p:cmd type="evt" cmd="onstopaudio">
  <p:cBhvr>
    <p:cTn display="0" masterRel="sameClick">
      <p:stCondLst>
        <p:cond evt="begin" delay="0">
          <p:tn val="5"/>
        </p:cond>
      </p:stCondLst>
    </p:cTn>
    <p:tgtEl>
      <p:sldTgt/>
    </p:tgtEl>
  </p:cBhvr>
</p:cmd>

end example]

In this example, the event of onstopaudio will stop all audio from playing once this particular animation is reached in the timeline.

This note applies to the following products: 2007, 2007 SP1, 2007 SP2.

d. The standard states that the type attribute defines the type of command to be used.

In Office, this attribute specifies the type of command that will be issued by the rendering application to the appropriate target application or object.

There are three possible values, call, evt, and verb. A call type is used to specify the class of commands that can then be issued.

Call commands (type=”call”): This command type is used to call methods on the object specified (play(), pause(), and so on)

Event Commands (type=”evt”): This command type is used to set an event for the object at this point in the timeline (onstopaudio, and so on)

Verb Commands (type=”verb”): This command type is used to set verbs for the object to occur at this point in the timeline (0, 1, and so on)

This note applies to the following products: 2007, 2007 SP1, 2007 SP2.

Show:
© 2015 Microsoft