User Guide
Contents 7
CHAPTER 11: Using Digital Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
About digital video formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
Using the video windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
Playing digital video direct-to-Stage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
Controlling digital video in the Score . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
Playing digital video with Lingo or JavaScript syntax. . . . . . . . . . . . . . . . . . . . . . 247
Setting QuickTime digital video cast member properties. . . . . . . . . . . . . . . . . . . 248
Controlling QuickTime with Lingo or JavaScript syntax. . . . . . . . . . . . . . . . . . . 250
Using Windows Media files in Director. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Using DVD media content in Director . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
Cropping digital video. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
About using digital video on the Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
Synchronizing video and animation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Using RealMedia content in Director . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Using Lingo or JavaScript syntax sound elements with RealMedia. . . . . . . . . . . . 272
CHAPTER 12: Behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Attaching behaviors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Changing the order of attached behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
Getting information about behaviors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
Creating and modifying behaviors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Writing behaviors with Lingo or JavaScript syntax. . . . . . . . . . . . . . . . . . . . . . . . 281
Setting up a Parameters dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
Setting behavior properties with script. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
Customizing a behavior’s property. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Creating an on getPropertyDescriptionList handler. . . . . . . . . . . . . . . . . . . . . . . 284
Including a description for the Behavior inspector. . . . . . . . . . . . . . . . . . . . . . . . 285
Example of a complete behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
Sending messages to behaviors attached to sprites . . . . . . . . . . . . . . . . . . . . . . . . 287
Using inheritance in behaviors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
CHAPTER 13: Navigation and User Interaction. . . . . . . . . . . . . . . . . . . . . . . . . . 291
Creating basic navigation controls with behaviors . . . . . . . . . . . . . . . . . . . . . . . . 291
Adding push buttons, radio buttons, and check boxes . . . . . . . . . . . . . . . . . . . . . 292
Jumping to locations with Lingo or JavaScript syntax . . . . . . . . . . . . . . . . . . . . . 293
Detecting mouse clicks with Lingo or JavaScript syntax. . . . . . . . . . . . . . . . . . . . 294
Making sprites editable and draggable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Making sprites editable or moveable with Lingo or JavaScript syntax. . . . . . . . . . 295
Checking which text is under the pointer with Lingo or JavaScript syntax. . . . . . 296
Responding to rollovers with Lingo or JavaScript syntax . . . . . . . . . . . . . . . . . . . 296
Finding mouse pointer locations with Lingo or JavaScript syntax . . . . . . . . . . . . 297
Checking keys with Lingo or JavaScript syntax . . . . . . . . . . . . . . . . . . . . . . . . . . 297
Equivalent cross-platform keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
Identifying keys on different keyboards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
About animated color cursors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
Creating an animated color cursor cast member . . . . . . . . . . . . . . . . . . . . . . . . . 299
Using an animated color cursor in a movie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301