User Guide

507
ADOBE GOLIVE CS2
User Guide
A
B
C
DE
Using a Switch Statement and cases to match a presentation to a viewers language preference
A. Switch statement contains cases for testing and selecting language. B. CasesinSwitch Statement C. Default case D. Te st f or G er ma n
language E. This German video item plays if the German language test above it is true.
To add a Switch Statement
You can add one or more Switch Statements to a presentation.
1 Drag a Switch Statement icon from the SMIL set of the objects toolbox to the item content area or item list
area of the Timeline Editor.
2 AfteraddingaSwitch Statement, youmustadd oneormorecases to theSwitchStatement to specifythe alternative
choices within a statement.
See also
“To add a case to a Switch Statement” on page 507
To add a case to a Switch Statement
When you add one or more cases to a Switch Statement, you must order the cases within a Switch Statement from
the highest priority to the lowest priority. The last case in each Switch Statement is called default. If the tests for all
other cases are false, the player application plays the default cases items.
Note: GoLive automatically adds a default case when you add the first case to a Switch Statement.
1
Statement is listed in the Timeline Editor.
Drag the System Attributes icont from the SMIL set of the objects toolbox to the row where the Switch
2 In the System Attributes Inspector, specify the tests for the case. (See “Test options in the System Attributes
Inspector” on page 508.)
3 Add the items you want played if the cases tests are true by dragging media item icons from the SMIL set of the
objects toolbox to the row where the case is listed in the Timeline Editor.
4 As necessary, dragthe System Attributes icon to addmorecases to theSwitchStatement,and then addthe appro-
priate tests and items for each case.
5 Add items to the default case at the bottom of the Switch Statement.
To arrange cases in priority order within a Switch Statement
To increase a cases priority within a Switch Statement, drag the case up in the item list area of the Timeline Editor.
To decrease a cases priority within a Switch Statement, drag the case down.