
572
ADOBE GOLIVE CS2
User Guide
To create and edit QuickTime scripts
You can use the QuickTime script window to create or edit scripts. When working with scripts, you can use the
GoLive code completion and syntax highlighting capabilities to simplify script creation.
1
Do one of the following:
•
To create a new script, choose File > New, and then select Scripting > Scripts > QuickTime Script.
•
To open an existing script, choose File > Open.
2
Choose Window > QT Wired Actions to open the QT Wired Actions window, if necessary.
3
Drag the desired scripting component from the Actions column of the QT Wired Actions window to the script
window, and then enter any information, such as URLs, time, and volume, required for the script.
4
Save the script.
See also
“Highlighting items in the source code or Layout Editor” on page 594
“To set Code Completion preferences” on page 580
“JavaScript Editor toolbar items” on page 603
To debug a QuickTime script
You can quickly debug a script using the QT Script Debugger window. Use this window to check the actual value of
a variable or to check the return value of a wired action.
1
Open a QuickTime movie and its associated QuickTime script.
2
If necessary, choose Window > Script Debugger to open the QT Script Debugger window.
3
In the script window, select a function’s action (the code between the curly brackets { }). In the following simple
script, for example, you would select
goToURL (/*URL*/);
f u n c t i o n o n M o u s e D o w n ( ) { g o To U R L ( / * U R L * / ) ; }
4
Double-click debugString in the General Action section of the QT Wired Actions window to replace the function’s
action with the debugString action. The example script now reads:
f u n c t i o n o n Mo u s e D o w n ( ) { d e b u g S t r i n g ( / * S t r i n g * / ) ; }
5
Replace the code
/*String*/
with your debugging text in parentheses. The example script now reads:
f u n c t i o n o n M o u s e D ow n ( ) { d e b u g S t r i n g ( “ y o u r d e b u g g i n g t e x t ” ) ; }
6
Choose Movie > Compile Script, and then save the movie file.
7
Click the Preview tab, and then perform the event trigger (such as clicking the mouse) for the function you’re
testing. The text “your debugging text” appears in the QT Script Debugger window. If it doesn’t appear, something is
wrong with that function of the script.
Summary of Contents for GOLIVE CS2
Page 1: ...Chapter 1 Copyright User Guide...
Page 251: ...ADOBE GOLIVE CS2 242 User Guide...