Creating the Embedded Animation Window

To create an embedded animation window, enter one of the following commands in the topic where you want to display the animation sequence:

{ewc MVAFF, ViewerAnimation, animationfile control-command}
{ewl MVAFF, ViewerAnimation, animationfile control-command}
{ewr MVAFF, ViewerAnimation, animationfile control-command}

Type the appropriate ew command exactly as shown, except for animationfile and control-command.

For animationfile, type the name of the file containing the animation; make sure to include the path from the project directory to the file.

For control-command, type a command that tells Viewer how to control the animation sequence. The control-command can be any of the following:

Command Description

controlleft controlright controlcenter Displays the animation sequence with the standard animation control panel (see “Animation Controls,” later in this chapter, for more information) aligned along the left, right, or center edge of the window. The user can use the buttons in the control to play, stop, or reset the animation sequence.
nocontrol Displays the animation sequence with no controls. Viewer plays the animation sequence automatically from start to finish. The user can click the animation sequence to stop or restart it. This command is especially useful for displaying animation sequences in popup windows.
looping Has the same effect as nocontrol, but plays the animation sequence over and over while the topic is being displayed.<$\bcD\eclooping\bcD\ec animation control>

The following commands place the embedded window in the topic in much the same way as the bmc, bwl, and bwr commands:

Command Description

ewc (embedded window character) Places the window at the position where the command appears in the topic text. Text follows the window, positioned at the base of the window.
ewl (embedded window left) Places the window on the left margin, with text wrapping automatically along the right edge of the image.
ewr (embedded window right) Places the window at the right margin, with text to its left.

To make sure text wraps correctly around an embedded animation window, make sure each line of the text ends with a soft carriage return.