
507
ADOBE GOLIVE CS2
User Guide
A
B
C
D E
Using a Switch Statement and cases to match a presentation to a viewer’s language preference
A.
Switch statement contains cases for testing and selecting language.
B.
Cases in Switch Statement
C.
Default case
D.
Test for German
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
After adding a Switch Statement, you must add one or more cases to the Switch Statement to specify the 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 case’s 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 case’s 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, drag the System Attributes icon to add more cases to the Switch Statement, and then add the 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 case’s priority within a Switch Statement, drag the case up in the item list area of the Timeline Editor.
To decrease a case’s priority within a Switch Statement, drag the case down.
Summary of Contents for GOLIVE CS2
Page 1: ...Chapter 1 Copyright User Guide...
Page 251: ...ADOBE GOLIVE CS2 242 User Guide...