background image

ADOBE DIRECTOR 11.0

User Guide

467

Downloading files from the Internet with Lingo or 
JavaScript syntax

Lingo or JavaScript syntax uses the Internet’s resources by obtaining files from the Internet. The data is copied to the 
local disk or cache. After data is available on the local computer, use these scripts to retrieve the data for the movie. 
For more information, see 

Retrieving network operation results with Lingo or JavaScript syntax

.

For a movie or projector that plays outside a browser, background loading is not required. However, preloading is a 
good idea because it improves playback performance.

All network Lingo or JavaScript syntax operations that obtain data from the network begin downloading the data 
and return a network ID. The data is not immediately available.

An unlimited number of network Lingo or JavaScript syntax operations can take place at once. However, depending 
on the browser chosen and the preferences set, there can be limitations on the number of network operations taking 
place. When multiple network Lingo or JavaScript syntax operations run simultaneously, rely on the network ID that 
the method returns to distinguish which operation is complete. Be aware that running more than four operations at 
the same time usually adversely impacts performance.

When using network Lingo or JavaScript syntax, the current handler must finish before an operation’s result can 
return. For best results, place script that initiates a network operation and script that uses the operation’s result in 
different handlers. An 

on exitFrame

 handler is a good location for checking whether an operation is complete. 

Note: 

You should typically use frame events rather than repeat loops for this process.

Execute a network script operation

1

Start the operation.

For example, the following statement initiates a text-downloading operation and assigns the network ID 
returned by the 

getNetText()

 operation to the variable 

theNetID

:

theNetID = getNetText("http://www.thenews.com")

2

Make sure that the operation finishes.

To check an operation’s status regularly until the method indicates that the operation is complete, use the 

netDone()

 method. For more information about this method, see the Scripting Reference topics in the Director 

Help Panel.

For example, the following statement loops in the current frame until the download operation is complete:

if not(netDone(theNetID)) then _movie.go(_movie.frame)

3

Check whether the operation was successful by using the 

netError()

 method. For more information about this 

method, see the Scripting Reference topics in the Director Help Panel.

4

Obtain the results if the operation is complete.

Note: 

You can also use getStreamStatus() to determine the status of a network operation. You can use 

netDone()

 to 

check whether an operation is “done” or “not done”. By using getStreamStatus(), you can check on an operation’s progress, 
because it displays how many of the total number of bytes have downloaded. 

Cancel a network operation in progress

Use the 

netAbort()

 method to cancel a network operation without waiting for a result. This frees up capacity 

for Internet access, which lets other network operations finish faster. For more information about this method, see 
the Scripting Reference topics in the Director Help Panel.

Summary of Contents for 65036570 - Director - PC

Page 1: ...i ADOBE DIRECTOR 11 USER GUIDE...

Page 2: ...trademarks of Adobe Systems Incorporated in the United States and or other countries Microsoft Windows Windows Vista PowerPoint Windows Media Player DirectX DirectSound Windows Media Audio Microsoft...

Page 3: ...ems and b with only those rights as are granted to all other end users pursuant to the terms and conditions herein Unpublished rights reserved under the copyright laws of the United States Adobe Syste...

Page 4: ...mizing your workspace 23 Working with Xtra extensions 28 Connecting to the Internet 30 Chapter 3 Score Stage and Cast Using the Tool palette with the Stage 32 Setting Stage properties 32 Using multipl...

Page 5: ...te properties 91 Suggestions and shortcuts for tweening 92 Changing tweening settings 93 Switching a sprite s cast members 94 Editing sprite frames 94 Frame by frame animation 95 Shortcuts for animati...

Page 6: ...er properties 168 About tempo 169 Using transitions 171 Chapter 9 Text Embedding fonts in movies 175 Creating text cast members 176 Editing and formatting text 178 Creating a hypertext link 182 Workin...

Page 7: ...s 214 Using Flash components 216 Button component 219 CheckBox component 220 DateChooser component 221 Label component 223 List component 224 NumericStepper component 227 RadioButton component 228 Scr...

Page 8: ...roperty 282 Creating an on getPropertyDescriptionList handler 283 Including a description for the Behavior inspector 284 Example of a complete behavior 284 Sending messages to behaviors attached to sp...

Page 9: ...Models 313 Shaders 314 Textures 315 Motions 316 Lights 317 Cameras 318 Groups 318 Creating 3D text 319 Modifying 3D text 319 Script and 3D text 321 Using 3D behaviors 323 Chapter 17 Working with Model...

Page 10: ...brary 422 Accessibility scripting with Lingo or JavaScript syntax 427 Deploying accessible movies 428 Chapter 22 Managing Memory How Director unloads items from memory 430 Loading and unloading indivi...

Page 11: ...9 About organizing movie files 460 Chapter 25 Using Shockwave Player Streaming movies 462 About network operations 463 Setting movie playback options 463 Setting Shockwave playback options 464 About c...

Page 12: ...n disc into your disc drive and follow the on screen instructions Activate the software If you have a single user retail license for your Adobe software you will be asked to activate your software thi...

Page 13: ...additional instructional content available on the web For some products you can also add comments to the topics in LiveDocs Help Find LiveDocs Help for your product in the Adobe Help Resource Center a...

Page 14: ...es appear as options in the Import or Export menu as file formats in the Open Save As and Export Original dialog boxes or as filters in the Filter submenus Samples Sample files include more complicate...

Page 15: ...ousands of plug ins from third party developers Use these plug ins to automate tasks customize workflows create specialized professional effects and more Adobe Labs Adobe Labs gives you the opportunit...

Page 16: ...proved publishing process Easily publish your movies using the Copy Linked and Dependent Files feature You can now automatically copy linked cast files and dependent files to the same relative locatio...

Page 17: ...ll methods in the Scripting Dictionary 3D Save Save changes applied to the 3D world using the Save 3D world command Localization Localization support is available for French German and Japanese User i...

Page 18: ...itors are the default document windows The Stage and Score windows can be docked together by pressing Ctrl and then dropping the Score window over the Stage window Floating and unfloating windows The...

Page 19: ...the debugger Only MIAWS created as tool MIAWS can be docked in the docking channels MIAWS behind the Stage can be brought to front using the open lingo function for MIAWS Understanding the Director m...

Page 20: ...n find the Property inspector along with a group of windows called Design and another group of windows called Code Getting to know the workspace When creating and editing a basic movie you typically w...

Page 21: ...our workspace clean and easy to work with You can also control how windows display their contents by changing window preferences Display or hide a window 1 Open the Window menu 2 Select one of the win...

Page 22: ...Window menu Document windows include the following Stage Score Cast Various media editors for example Text QuickTime and DVD Tool windows include the following Property inspector Tool palette Text in...

Page 23: ...u would on a Stage that is not zoomed Zoom in on the Stage 1 From the Tool palette select the Magnifying Glass tool 2 Click the Stage until it reaches the desired size Zoom out from the Stage 1 From t...

Page 24: ...nel D Behavior channel E Sound channels F Sprite channels G Markers channel Effects and sprite channels in the Score The rows of the Score contain channels The columns of the Score contain frames A fr...

Page 25: ...Marker channel open the Markers menu A Markers menu 2 Select the name of the marker that you want to jump to Jump to a frame in the Score Click the frame that you want to jump to Showing and hiding t...

Page 26: ...ease according to the number in the Channels text box Turning channels on and off To hide the contents of any channel on the Stage or to disable the contents if they are not visible sprites use the bu...

Page 27: ...docked to the bottom of the Stage for easy access To use all of the buttons on the Control panel you can also display the full Control panel as a floating window Display or hide the Control panel Sele...

Page 28: ...cast members and to control the properties of each cast member As you work in Director expect to use two types of cast members Cast members can be the media elements of your movie such as sounds text...

Page 29: ...A Text drawing and control buttons 3 Click the Stage to place the new cast member in the Cast window Import a cast member from an existing media file 1 If the Cast window is not already in thumbnail v...

Page 30: ...dows in Director the Property inspector allows you to control its appearance You can choose between a list view and a graphical view You can also save space by showing only the most frequently used op...

Page 31: ...n item on the Stage or in the Score is selected You do not have access to the Movie tab when a cast member is selected The Movie tab in the Property inspector Set movie properties 1 Make sure that the...

Page 32: ...and saved on a user s system 9 To save the current font map settings in a text file named Fontmap txt click Save To load the font mapping assignments specified in the selected font map file click Load...

Page 33: ...st instance of the Script window contains the Explorer panel To display the Explorer panel in the other windows double click the Arrow icon in the splitter bar between the script editor and the Explor...

Page 34: ...ize panel groups to maximize your productivity Whether you use the defaults or create customized panel groups you can display or hide panel groups just as you do with standard windows To make the most...

Page 35: ...another or you can separate a tab and create a new stand alone panel Panels that you can combine in a tabbed panel group are restricted by window type and functionality The following combinations are...

Page 36: ...y contains the tab The tab is moved to the last rightmost position in the panel group When you customize your panel groups it is a good idea to save your new layout for later use See Docking panel gro...

Page 37: ...ock a panel or panel group On the header bar below the title bar click and drag the gripper until the panel or panel group is separated from its docking location and release the gripper Saving panel s...

Page 38: ...he workspace or only in Windows be docked to one of the docking channels Collapsed panel groups are still available on the workspace with only the header bar displayed Closed panel groups are removed...

Page 39: ...ailable separately for download and installation If you know the C programming language you can create custom Xtra extensions For information on creating custom Xtra extensions see the Macromedia Xtra...

Page 40: ...cripting Xtra extensions that are available for your movie 1 If the Script window is not already open select Window Script 2 Click the Scripting Xtras button The Scripting Xtras menu displays all of t...

Page 41: ...Director displays a red X as a placeholder for the cast member For more information on distributing Xtra extensions with your movie see Packaging Movies for Distribution in the Director Help Panel Con...

Page 42: ...FTP location and port number of your proxy server Browsers usually do not require proxy servers to interact with the network services of external sources However in some network configurations where a...

Page 43: ...combines some Flash components and some Classic items 1 If the Tool palette is not available select Window Tool Palette 2 Click on the Tool palette View menu and select a view 3 Windows only To dock t...

Page 44: ...s visible lock them or make the sprites snap to the guides 4 To add a guide move the pointer over the new horizontal or vertical guide and then drag the guide to the Stage Numbers in the guide tooltip...

Page 45: ...ied to the sprite Blend displays the blend percentage applied to the sprite Location shows the sprite s x and y screen coordinates Change in Location shows the change in x and y coordinates relative t...

Page 46: ...e Score so the entire sprite can fit without being truncated or overwriting other sprites 4 To add frames select a frame in the Score 5 Select Insert Frames and enter the number of frames to insert Th...

Page 47: ...ow in List view External casts are also useful for creating groups of commonly used cast members Use external casts to switch large groups of cast members in a single step For example to switch the te...

Page 48: ...ect File Save while its Cast window is active and then save the cast Creating cast members You can create several types of cast members in Director Director includes editors to create and edit common...

Page 49: ...ate a cast member in a media editing window 1 Open a media editing window by selecting Window and then selecting the type of cast member you want to create Paint Vector Shape Text Windows Media DVD an...

Page 50: ...if the first frame of the movie is designed to remain onscreen for a number of seconds Before Frame One loads all cast members before the movie plays frame 1 This setting causes the movie to take lon...

Page 51: ...who modified the cast member For an Xtra cast member the information in the Property inspector is determined by the developer of the Xtra Some Xtra extensions have options in addition to those listed...

Page 52: ...ch for cast members not used in the Score for example to clean up a movie and reduce the space and memory required to save and run the movie Before releasing a movie it s a good idea to remove unused...

Page 53: ...u create cast members from external media You can either import data into a Director movie file or create a link to the external file and re import the file each time the movie opens Linked files let...

Page 54: ...ime the movie runs If you choose to import from a URL through the Internet the media is dynamically updated For more information see About linking to files Note Text and RTF files are always imported...

Page 55: ...box select File Import Linking makes it easy to use bulky media such as long sounds and is especially useful for showing media that changes frequently from the Internet Linking also makes downloading...

Page 56: ...with a color depth or color palette that is different from that of the Stage the current movie Director lets you select the image s color depth and color palette You can choose to import the bitmap at...

Page 57: ...the selected cast members to be retained in memory These cast members are never unloaded Using the Cast window In the Cast window you can view the cast in either the default List view or the Thumbnail...

Page 58: ...dow select an option from the Row Width menu The options for 8 Thumbnails 10 Thumbnails and 20 Thumbnails specify fixed row widths that are independent of the window size If the Cast window is smaller...

Page 59: ...to cast members name them and then refer to them by name Naming cast members doesn t affect Director performance The name stays the same even if the cast member number changes Avoid duplicating cast...

Page 60: ...eferences to the cast member in the Score However Director doesn t automatically update references to cast member numbers in Lingo or JavaScript syntax The best practice is to always name cast members...

Page 61: ...lect one of the following sorting methods Usage In Score places selected cast members that are used in the Score at the beginning of the selection Media Type groups all cast members according to their...

Page 62: ...t a panel or panel group name from the submenu that appears Remove a panel tab from a Cast panel group 1 Select a tab within a Cast panel group 2 From the panel group s Options menu select Group Panel...

Page 63: ...open a cast in a new window Alt click Windows or Option click Mac the Cast button and select a cast Using Cast window controls The controls at the top of the Cast window are the same in both the List...

Page 64: ...se properties associated with the selected cast member For more information see Viewing and setting cast member properties View the cast member number See the Cast Member Number field in the upper rig...

Page 65: ...Director places new cast members at the end of the list and the cast member number becomes the first available number after the current selection You can use Thumbnail view to reorder and renumber ca...

Page 66: ...st window preferences Icon Cast member type Icon Cast member type Animated GIF Behavior Bitmap Button Check box Custom cursor Digital video DVD Field Film loop Flash component Flash movie Font Linked...

Page 67: ...humbnail Note You can also use text as a thumbnail Create and copy text instead of an image from any bitmap editor and follow the same steps Launching external editors You can specify external applica...

Page 68: ...unch External Editor While the cast member is selected and the Cast window is active right click Windows or Control click Mac and select Launch External Editor from the context menu Director launches...

Page 69: ...save the cast in the desired directory Link an external cast to a movie 1 Select Modify Movie Casts 2 In the Movie Casts dialog box click Link 3 Locate and select the external cast you want and click...

Page 70: ...ty You can store any text information that you find useful and access it at runtime by getting the comments property Specify the cast member s purge priority Set the purgePriority Cast Member property...

Page 71: ...r The cast member name The name of the cast that contains the cast member The size in kilobytes The creation date The date the cast member was last modified The name of the user who last modified the...

Page 72: ...u can assign a name by using the Property inspector and then view the sprite by name in the Score and on the Stage Assigning a name lets you refer to the sprite by that name in Lingo or JavaScript syn...

Page 73: ...ndow sets the sprite span to the visible width of the Score window Terminate At Markers makes new sprites end at the first marker 5 To specify the frame used as the beginning of a sprite span when you...

Page 74: ...Score click the horizontal line within a sprite bar Don t click the keyframes the start frame or the end frame To select a contiguous range of sprites either on the Stage or in the Score select a spr...

Page 75: ...that name in Lingo or JavaScript syntax and not just by the channel number that it occupies You can move a sprite to a different channel and not worry about changing scripts that once referred to the...

Page 76: ...the Stage by its name Select a sprite on the Stage The sprite name appears on the second line of the sprite overlay Edit the name of a sprite 1 Select the sprite and open the Property inspector 2 Ente...

Page 77: ...me tubular endrecording For more information about this property see the Scripting Reference topics in the Director Help Panel Finding sprites You can search for and find sprites by name When you have...

Page 78: ...ter Layering sprites A sprite appears in front of other sprites on the Stage according to its channel Sprites in higher numbered channels appear in front of sprites in lower numbered channels The rock...

Page 79: ...and let you view important sprite properties Script in Lingo or JavaScript syntax Displaying and editing sprite properties in the Property inspector Depending on your preference you can use either the...

Page 80: ...he size of the sprite s bounding rectangle in pixels The Ink menu displays the ink of the current sprite and lets you select a new ink color See Using sprite inks Blend determines the blend percentage...

Page 81: ...nspector click this icon To open the Behavior tab in the Property inspector click this icon See Behaviors Change the Sprite Overlay s appearance to suit your preference 1 Select View Sprite Overlay Se...

Page 82: ...indows or Control click Mac on any Score channel and select Sprite Labels 2 Select from the following options Keyframes Changes Only shown at 800 Every frame shown at 800 First frame None Many options...

Page 83: ...e and in the Score While preserving the settings of your locked sprites you can continue to create and edit unlocked sprites Locking sprites is not supported during playback Note If you try to perform...

Page 84: ...th F 0 0 Upper left corner of the Stage G Bounding rectangle H Height I Registration point X Y Director places the image of a cast member on the Stage by specifying the location of its registration po...

Page 85: ...l and vertical coordinates of the regis tration point Specify coordinates in the W and H text boxes to change the width and height of the sprite Specify values in the L T R and B text boxes to change...

Page 86: ...s drag the guide to its new position 6 To remove a guide drag it off the Stage 7 To remove all guides click Remove All on the Guides tab in the Property inspector Display guides and align sprites 1 If...

Page 87: ...current position and whether two sprites overlap Check the location of a sprite s registration point or bounding rectangle on the Stage Test the bottom left loc locH locV right or top sprite property...

Page 88: ...nother save the source movie first Moving a sprite in the Score Change when a sprite appears on the Stage 1 Select Window Score to display the Score 2 Select a sprite or sprites as described in Select...

Page 89: ...place Control drag Windows or Command drag Mac the end frame Enter new values in the Start and End text boxes on the Sprite tab in the Property inspector to change the start and end frames Extend a s...

Page 90: ...g time reusing cast members in this way reduces the number of cast members in your movie and causes it to download faster Reusing the same cast member for multiple sprites also reduces the amount of m...

Page 91: ...nformation about these properties see the Scripting Reference topics in the Director Help Panel The rect sprite property determines the coordinates of a sprite s bounding rectangle The coordinates are...

Page 92: ...s active to select the Rotate tool The handles around the sprite change to indicate the new mode 4 Do either of the following To rotate the sprite move the pointer inside the sprite and drag in the di...

Page 93: ...ll Skew a sprite with script Set the skew sprite property For more information about this property see the Scripting Reference topics in the Director Help Panel Flipping sprites Flipping a sprite crea...

Page 94: ...sprite 1 Select a sprite 2 Do one of the following Select colors from the Forecolor and Backcolor boxes on the Sprite tab in the Property inspector Enter RGB values hexadecimal or palette index value...

Page 95: ...change the display of a sprite s colors Inks are most useful for hiding white bounding rectangles around images but they can also create many compelling and useful color effects Inks can reverse and a...

Page 96: ...more opaque When creating a bitmap mask for a sprite use a grayscale palette if the mask cast member is an 8 bit or less image An 8 bit mask affects only the transparency of the sprite and does not af...

Page 97: ...sses in front of another sprite or appears on a nonwhite background Sprites with the Copy ink animate faster than sprites with any other ink Matte removes the white bounding rectangle around a sprite...

Page 98: ...55 Subtract Pin subtracts the RGB color value of pixels in the foreground sprite from the value of the background sprite The value of the new color is not allowed to be less than 0 If the value of the...

Page 99: ...nges the cast member associated with a particular sprite to the currently selected cast member In other words it replaces the member reference for the selected sprite with the member reference of the...

Page 100: ...download when a single cast member changes Frame by frame animation involves manually creating every frame in an animation whether that involves switching cast members for a sprite or manually changin...

Page 101: ...sprite 2 If necessary select View Sprite Overlay Show Paths The Show Paths option is on by default With this option turned on Director displays the paths of moving sprites on the Stage Keyframes appe...

Page 102: ...to move the sprite between each pair of keyframes separately If a sprite s keyframes are separated by unequal numbers of frames in the Score or by different amounts of space on the Stage abrupt change...

Page 103: ...ore select the end frame of the sprite and select Insert Keyframe The end frame is not a keyframe unless you insert one there 7 Make sure that only the keyframe is selected not the entire sprite and t...

Page 104: ...points of the sprite are the same the diagram is circular indicating that the sprite travels in a circle when tweened If the start and end points are not the same the diagram describes a curved path i...

Page 105: ...e Exchange Cast Members button on the Director toolbar Window Toolbar If you selected an entire sprite Director replaces the cast member for the entire sprite Before cast members are exchanged the spr...

Page 106: ...s By placing all the images in a sequence within a single sprite you can work with the animation as if it were a single object A Single sprite in the Score A single sprite can display several cast mem...

Page 107: ...ember selected in the Cast window 9 Repeat steps 6 8 to complete the animation Select Edit Edit Entire Sprite when you are done Sometimes a series of cast members placed in the Score jumps unexpectedl...

Page 108: ...Alt Windows or Option Mac and drag the cast members to the Stage The selected series of cast members becomes a single sprite Using the Space To Time command To move sprites from adjacent channels to a...

Page 109: ...Using film loops A film loop is an animated sequence that you can use like a single cast member For example to create an animation of a bird flying across the Stage you can create a film loop of the...

Page 110: ...tor movie Note If you need to edit a film loop and you have deleted the original Score data that it was based on you can restore the Score data for editing Copy the film loop cast member to the Clipbo...

Page 111: ...d to the next frame move the sprite to its new position step forward to the next frame and so on until you have completed the animation This method is useful for creating sprites that follow irregular...

Page 112: ...button in the Control panel 2 Select Control Real Time Recording The real time recording indicator appears next to the channel numbers for the sprite being recorded and a red and white selection fram...

Page 113: ...dify animation depending on movie conditions To move a sprite on the Stage use a script that controls the sprite s location For more information see the Scripting Reference topics in the Director Help...

Page 114: ...background colors around the edges to make the edge appear smooth instead of jagged A vector shape is most appropriate for a simple smooth and clean looking image It typically includes less detail tha...

Page 115: ...EG file that s imported with either of these options contains both the original compressed bits and decompressed bits After it s imported the JPEG file decompresses in the authoring environment The ca...

Page 116: ...ys at the frame rate you enter in the FPS text box Lock Step plays at the same rate as the Director movie 4 To set additional animated GIF settings click More To change the file of a linked external c...

Page 117: ...the Marquee tool to select the entire bitmap Click the Marquee tool and hold down the mouse button to select new settings from the pop up menu See Using the Marquee tool Select the location of the reg...

Page 118: ...y Font command Bitmap text is an image Before you click outside the text box you can edit text you ve typed by using the Backspace key Windows or Delete key Mac After you click outside the text box yo...

Page 119: ...to select a destination color These colors affect the Gradient Cycle and Switch inks Each of these inks uses a range of colors that shifts between the foreground color and the destination color For mo...

Page 120: ...The button displays the color depth of the current cast member For more information see Changing size color depth and color palette for bitmaps Select a Paint window ink Select the type of ink from th...

Page 121: ...quee settings Select with the Marquee tool Drag to select a rectangular area Select the entire bitmap Double click the Marquee tool Stretch or compress art that is selected with the Marquee tool Hold...

Page 122: ...double click the Airbrush tool to open the Airbrush Settings dialog box 4 Use the Flow Rate slider to control how quickly the airbrush covers an area with paint To change the flow drag the Flow Speed...

Page 123: ...he brush shape for example black becomes white and white becomes black Copy copies the brush shape to the Clipboard Paste pastes the brush into the custom set of brush shapes Using rulers in the Paint...

Page 124: ...tion Control drag Windows or Command drag Mac the selection Marquee tool only To stretch the selection proportionally Control Shift drag Windows or Command Shift drag Mac the selection Marquee tool on...

Page 125: ...e the selection by any amount in either direction click the Free Rotate button and drag the rotate handles in any direction You can also rotate a sprite that contains a bitmap instead of the bitmap Fo...

Page 126: ...ow bitmap cast members gradually changing from frame to frame Auto Distort generates intermediate cast members for any cast member that is free rotated made into a perspective slanted distorted or ske...

Page 127: ...places a new cast member s registration point precisely where the previous one was located By placing the registration point in the different locations you can make a series of images move around a f...

Page 128: ...election If you select more than one cast member a blank value indicates that cast members in the selection have different values To maintain a cast member s original value leave that value blank in t...

Page 129: ...the entire image cast member Second you can use Lingo or JavaScript syntax to perform fine manipulations of the pixels of an image or to create entirely new images When you use script you can be extre...

Page 130: ...ge object that is a self contained set of image data instead of a reference to a cast member you must tell the script what kind of image you want to create You must provide the parameters that describ...

Page 131: ...e Reverse ink when rendering the pixels into the destination rectangle myNewImage copyPixels myImage rect 260 260 300 300 rect 0 0 40 40 ink reverse Make a new image object from the alpha channel info...

Page 132: ...n the Gradient Settings dialog box In the Gradient Settings dialog box you set the foreground and background colors as well as the pattern to use with your gradient Several menus control the style of...

Page 133: ...ent White pixels in patterns that are created with this method are transparent 4 To determine the way the gradient fills an area in the Paint window select an option from the Direction menu Top To Bot...

Page 134: ...ber Window paints a full gradient only if the object is the length or width of the entire window otherwise it paints a partial gradient that corresponds to the object s location in the window 8 To sel...

Page 135: ...it in the Paint window 2 Click the pattern box in the Paint window and select Tile Setting from the bottom of the Patterns menu 3 Click an existing tile position to edit The existing tiles appear next...

Page 136: ...color of the background art Ghost ink in black and white creates an image that can be seen only when drawn over a black background In color Ghost ink draws with the current background color Gradient...

Page 137: ...ightest ink effect and white remains white because it is lighter than yellow Darken makes colors darker The more times you click with the Brush tool the darker the area becomes The colors of the foreg...

Page 138: ...mages Onion skinning uses registration points to align the current cast member with the previous ones you selected Be careful not to move registration points for cast members after onion skinning If y...

Page 139: ...und button on the Onion Skin toolbar 5 To create a new cast member click the New Cast Member button in the Paint window 6 Click the Show Background button on the Onion Skin toolbar The original cast m...

Page 140: ...the Edit menu Director converts it to a bitmap If you want the artwork to remain in PICT format use Paste As PICT when you paste it into the cast There are several reasons for using Paste As PICT PIC...

Page 141: ...ansparent area receives a mouse click use the Alpha Threshold slider to specify a value Any area with a greater degree of opacity than the specified threshold can receive a mouse click 9 To assign a d...

Page 142: ...er the Internet you can compress your bitmap images to ensure faster downloading Director lets you compress images at the movie level and for individual cast members Bitmap compression set at the cast...

Page 143: ...To use the standard Director compression select Standard To use JPEG compression select JPEG and move the slider bar to the desired level of compression The higher the number you specify the less your...

Page 144: ...tion if you are exporting sliced or interactive content such as rollover images and buttons 5 Select Trim Images to automatically crop the exported images to fit the objects on each frame 6 Select Put...

Page 145: ...ayer as necessary Editing Director cast members in Fireworks Using launch and edit integration you can make changes to Director cast members by starting Fireworks and editing them from inside Director...

Page 146: ...ou finish Click Done if the MIX Editing dialog box appears The image is exported back to Director using the new settings Bitmap filters Bitmap filters are plug in image editors that apply effects to i...

Page 147: ...Script var MyFilter filter symbol BlurFilter OR var MyFilter filter symbol BlurFilter propList BlurX 5 BlurY 5 var MyFilter filter symbol BlurFilter propList symbol BlurX 5 symbol BlurY 5 Apply a filt...

Page 148: ...applied filters In the Stage window right click a sprite to which you have applied filters The Property Inspector lists the filters in the Filters tab 2 Select the filter and modify the filter setting...

Page 149: ...g inner or outer glow and knockout mode Glow filter applied to a text sprite Property summary Property Description Value Range Default BlurX Number The amount of horizontal blur 0 255 5 BlurY Number T...

Page 150: ...r on the bevel the angle of the bevel the placement of the bevel and a knockout effect Bevel filter applied to a text sprite Property summary alpha Number The alpha transparency value for the color 0...

Page 151: ...ol shadowColor color 0 255 0 symbol quality 3 symbol type inner symbol knockout true symbol inner fasle Adjust Color filter Use the Adjust Color filter to adjust the brightness contrast hue and satura...

Page 152: ...king glow with a color gradient that you can control You can apply a gradient glow around the inner or outer edge of a sprite or on top of a sprite Gradient glow filter applied to a text sprite Proper...

Page 153: ...s enhanced with gradient color on the outside inside or top of an object Beveled edges make objects look three dimensional Gradient bevel filter applied to a text sprite Property summary colorList Lis...

Page 154: ...t Bevel and Gradient Glow filters Lingo Syntax newColorRatio color 255 0 0 24 255 ColorRatio object has the following properties Color Ratio Alpha strength Number The strength of the imprint or spread...

Page 155: ...Number The amount of vertical blur 0 255 4 quality Number The number of times to apply the filter 0 15 1 low strength Number The strength of the imprint or spread The higher the value the more color...

Page 156: ...Property summary Lingo Syntax This is an Embossing Effect myList 2 1 0 1 1 1 0 1 2 myMatrix newMatrix 3 3 myList myMatrix setVal 3 3 0 Another way to set particular matrix element value myFilter filte...

Page 157: ...eve a warped or mottled effect Displacement map filter applied to an image sprite Property summary Property Description Value Range Default map Member Bitmap member containing the Displacement map dat...

Page 158: ...operty Inspector 2 Click the Filters tab All filters applied to the sprite or cast member appear 3 Click the Filters popup and select Disable All The effects of all filters applied to the selected spr...

Page 159: ...hat implements the IMoaBitmapFilter interface Custom filters appear in the Filters tab To modify their properties use options in the filters tab Using filters to create animated effects You can use Au...

Page 160: ...you want to create The text box is not available if you selected a range of cast members 6 Click Filter to begin the filtering A message appears to show the progress Some filters are complex and requ...

Page 161: ...es are stored as mathematical descriptions they require less RAM and disk space than an equiv alent bitmap image and they download faster from the Internet Drawing vector shapes You create vector shap...

Page 162: ...t menu Press Control the Plus key Windows or Command the Plus key Mac to zoom in or Control the Minus key Windows or Command the Minus key Mac to zoom out Return to normal view Select View Zoom 100 Us...

Page 163: ...e Arrow tool and click the vertex To select multiple vertices either select the Arrow tool and hold Shift while clicking the vertices or click and drag a selection rectangle over the vertices marquee...

Page 164: ...ct the Closed option For more information see Editing vector shapes To choose the line color select a color from the Line Color menu To choose the fill color select a color from the Fill Color menu To...

Page 165: ...ag a control handle By default the two control handles remain at a 180 angle from each other If you want to drag one control handle independently from the other one hold down Control Windows or Comman...

Page 166: ...enterRegPoint properties are ignored For more information about these properties see the Scripting Reference topics in the Director Help Panel Close or open vector shapes Select or deselect the Closed...

Page 167: ...he Angle control to enter the number of degrees This setting affects only linear gradients 8 To offset the gradient within the shape enter X Offset horizontal and Y Offset vertical values Specify a gr...

Page 168: ...lor text box 7 To set the type of fill select one of these three options No Fill Solid or Gradient 8 To change the setting for anti aliasing click Anti alias A check mark indicates that Anti alias is...

Page 169: ...view and change settings for selected shape cast members You can change the type of shape and choose a new fill color or pattern You can also use Lingo or JavaScript syntax to control shape cast memb...

Page 170: ...menu to select colors for movie elements The Color menu is available throughout the Director application for example in the Tool palette Use Transform Bitmap to re map bitmap images to new palettes a...

Page 171: ...vie When you save a Director movie in Windows it is set to the same color depth as the system on which you are authoring Use Lingo or JavaScript syntax to reset the system color depth to match the col...

Page 172: ...m color picker to specify any color You can also change the set of colors available on the Color menu by displaying a different color palette Open the Color menu 1 Do one of the following Select a spr...

Page 173: ...ovie is a viable option for displaying 8 bit graphics with the best possible colors If you place a cast member that has its own custom palette on the Stage and if it s the first cast member that has a...

Page 174: ...he Frame Properties Palette dialog box Select a new palette Specify how you want Director to manage the palette change For example to hide a palette change within a fade first select a new palette fro...

Page 175: ...Property inspector to select the movie color palette or select Modify Frame Palette to change the color palette at a particular frame When you modify a palette all the cast members using the palette...

Page 176: ...ndows or Command click Mac to select multiple discontiguous colors Match the color of any pixel on the Stage with the same color in the palette 1 Click the Eyedropper tool 2 Drag any color in the Colo...

Page 177: ...default palettes Director makes a copy of the palette and prompts you to enter a name 4 To change the color by using the H S and B hue saturation and brightness controls click the arrows next to the c...

Page 178: ...uidelines To avoid color problems in movies for the web map all 8 bit bitmaps in your movie to the Web216 color palette that is built in to Director This is essentially the same palette used by Netsca...

Page 179: ...palette Director makes a copy of the palette and prompts you to enter a name 5 In the Create Palette dialog box enter a name and click the OK button In the Color dialog box make any changes you want a...

Page 180: ...r a mouse click or key press For information about making a movie wait for a cue point in a sound or video see Synchronizing media For simple movies using the tempo channel is often the best way to de...

Page 181: ...se the movie at the current frame for a certain length of time select Wait and then use the Wait arrows or drag the slider To pause the movie until the user clicks the mouse or presses a key select Wa...

Page 182: ...slow system 1 Select Modify Movie Playback 2 Select Lock Frame Durations Controlling tempo with Lingo or JavaScript syntax To override the tempo set in the movie s tempo channel use the puppetTempo me...

Page 183: ...ing Note Xtra transitions might offer additional options provided by the developer If the Options button is available when you select an Xtra transition click it to view and change the transition opti...

Page 184: ...thod You do not need to explicitly return control of the transition channel to the Score after the transition occurs The puppetTransition method s parameters perform the same functions as the options...

Page 185: ...174 7 If you are using an Xtra transition click Options to set values that are specific to the Xtra transition The developer of the Xtra determines the contents of the Options dialog box See the docum...

Page 186: ...ers enter To create the smallest possible text cast members use field text Field text is standard text controlled by your system software as is the text that you see in dialog boxes and menu bars Dire...

Page 187: ...hat you want to embed in the font 4 Partial Set lets you select exactly which characters are included If you select Partial enter the characters to be included in the text box on the right Embed a fon...

Page 188: ...s other than tables and it doesn t support nested tables It also doesn t recognize APPLET FORM FRAME INPUT or IMAGE tags Director ignores any tags it does not recognize For HTML files that are updated...

Page 189: ...ll sprites that display the text cast member Note If you re changing the background color of text you have two options To change the background color of the cast member double click the text sprite on...

Page 190: ...other fonts select Font at the end of the font list Formatting paragraphs You can specify the alignment indentation tabs and spacing for each paragraph in a text cast member The following procedure ex...

Page 191: ...rocess that is much faster than manually opening each cast member and applying changes Any change you apply to a cast member affects all the text within the cast member 1 In a Cast window or on the St...

Page 192: ...rmation see Formatting characters Finding and replacing text Use the Find Text command to quickly search for and replace text in the Text Field or Script window All searches start at the insertion poi...

Page 193: ...e to be a URL The string can t contain a double quotation mark or the script continuation character 1 Select the text you want to define as a hypertext link 2 Select Window Text Inspector to open the...

Page 194: ...a range of frames 1 Select a range of frames within a sprite Select an entire sprite or Shift Alt click Windows or Shift Option click Mac to select frames within a sprite 2 Click the Property inspecto...

Page 195: ...pplications but you can edit the settings if necessary You can also load and save fontmaps by using the Property inspector Save and load fontmaps 1 Click on the Stage and select Window Property Inspec...

Page 196: ...of the cast member select a Framing option Adjust to Fit expands the text box vertically when text that is entered extends beyond the current size of the box Scrolling attaches a scroll bar to the ri...

Page 197: ...ale All Enables grayscale anti aliasing for all text members Subpixel All Enables sub pixel anti aliasing for all text members Grayscale Larger Than Enables grayscale anti aliasing for font sizes grea...

Page 198: ...also use script to rapidly format text during authoring Formatting text with Lingo or JavaScript syntax Lingo or JavaScript syntax can format text in an entire cast member or any specific chunk of tex...

Page 199: ...t in any chunk expression Lingo or JavaScript syntax can specify anti aliasing and kerning for an entire text cast member and control the appearance of the text s bounding rectangle Setting anti alias...

Page 200: ...appear at the top of its scrolling field member Discussion scrollTop 0 This procedure can be useful for making a scrolling field automatically scroll back to the top For more information about the fo...

Page 201: ...string to the end of the first string The operator includes a space between two strings when they are combined To insert a string of characters into another string use the text property For example sp...

Page 202: ...text editor or script editor in which you want to type in the selected language 4 From the font options in the text editor select a font for the selected language For the script editor or message win...

Page 203: ...Languages dialog box 10 Click the Regional Options tab and then choose the language you selected in the default input language list Click Apply and then click OK to save the settings and close the Reg...

Page 204: ...management ActiveX controls function as normal sprites in a movie ActiveX controls work only in Director for Windows and only in projectors Using Flash Content You can incorporate Flash vector based...

Page 205: ...Flash Asset Properties dialog box select the Flash movie SWF file you want to add to your Director cast To add a file from your computer or from a network drive click Browse select the file and click...

Page 206: ...Border maintains the movie s aspect ratio by cropping the horizontal or vertical dimension as necessary without leaving a border Exact Fit stretches the movie to fit the sprite exactly disregarding t...

Page 207: ...the source file is not specified in the Property inspector a dialog box appears for locating the source file If Flash MX or later is not installed the Flash properties dialog box opens instead Specify...

Page 208: ...sh content is used for the Flash contents thumbnail image set the posterFrame property To display a list of Flash content s current property settings in the Message window use the showProps method Con...

Page 209: ...ttach the Flash Cursor behavior to the Flash sprite To write your own script to test the cursor settings of the Flash content use the getFlashProperty method and test for the cursor property For more...

Page 210: ...ets you stream many of the Director media types Director lets you control and monitor streaming Flash content For general information about using script to stream media in Director see Using Shockwave...

Page 211: ...rate time line within a Flash cast member as the target of subsequent script sprite methods use the tellTarget and endTellTarget methods To call a series of actions that reside in a frame of a Flash a...

Page 212: ...rameter TRUE is the default and is therefore optional To return a reference to the value of a Flash variable instead of the variable s literal value add a value of FALSE to the end of the method This...

Page 213: ...sh content For example in Director you could enter the following handler in a movie script on getURL me stringFromFlash _movie go stringFromFlash end When the on getURL handler receives the text strin...

Page 214: ...two numbers and presents an alert with the sum as follows on addTwoNumbers number1 number2 myResult number1 number2 _player alert string myResult end To pass arguments to this script number1 and numbe...

Page 215: ...these objects see Using Lingo or JavaScript syntax with Flash variables When creating Flash objects create an object within a Flash sprite or create a global Flash object To create a Flash object wit...

Page 216: ...of the object use the same syntax and specify the method name after the object reference myNewFlashObject sort For more information about the types of objects supported by Flash and the methods and p...

Page 217: ...property pCon_name stores the name of an outgoing connection The property pOtherCon_name stores the name of an incoming connection The property pLocalCon stores a reference to the local connection obj...

Page 218: ...you want to use as your message subjects so that you know what the event name will be In the following example the user defined message subject and event name are incomingMessage sprite name setCallba...

Page 219: ...mber chat output text RETURN aMessage end myIncomingMessage This handler appends the incoming message aMessage to the end of a chat output field Sending messages and closing the connection To complete...

Page 220: ...a Server authoring components for Flash and documentation The Adobe Director installation CD for Mac includes the Flash Media Server authoring components for Flash and documentation The steps required...

Page 221: ...e to the video clip videoRef attachVideo source For detailed examples of how to use Flash Media Server in Director see the Director Support Center http www adobe com support director Using the Flash S...

Page 222: ...disabled trigger the Flash Settings panel by right clicking Windows or Control clicking Mac 1 Select File Publish Settings 2 Click the Html tab 3 Deselect the Display Context Menu in Shockwave option...

Page 223: ...ynchronized to the Director movie frame for frame Set the static property of the sprite to TRUE if your sprite contains no animation such as a static block of text and doesn t overlap other moving Dir...

Page 224: ...r to the Stage or Score For a linked external movie drag the movie cast member to the Stage or Score 2 Extend the sprite through all the frames where you want it to appear 3 To change any of the movie...

Page 225: ...ble Scripts makes all the scripts in the linked movie work the same way they do when the movie plays by itself If you import a Director movie internally it is imported as a film loop In this case the...

Page 226: ...ntary or push on push off An ActiveX control s properties define its state some or all of which properties may persist Although the control can change its own properties it s also possible that the co...

Page 227: ...tically converted from their Director data types to equivalent ActiveX data types Likewise the return value is automatically converted from an ActiveX data type to an equivalent Director data type Usi...

Page 228: ...You can also access components on the Tools palette For more information see Selecting components by using the Tool palette 1 Select Window Library palette 2 Click the Components icon to display a li...

Page 229: ...so set size and position properties by using the Sprite tab in the Property inspector For more information see Displaying and editing sprite properties in the Property inspector Setting Flash componen...

Page 230: ...instance in the Property inspector or in the Component Inspector panel label sets the value of the text on the button The default value is Button icon adds a custom icon to the button The value is th...

Page 231: ...and additional options for CheckBox components by using its properties methods and events For more information see CheckBox class in the Flash documentation Style Description themeColor The backgroun...

Page 232: ...mponent in a hotel reservation system with certain dates selectable and others disabled DataChooser parameters You can set the following authoring parameters for each DataChooser component instance in...

Page 233: ...er component You can set style properties to change the appearance of a DateChooser instance If the name of a style property ends in Color it is a color style property and behaves differently than non...

Page 234: ...ormatted with styles The default value is false autoSize indicates how the label sizes and aligns to fit the text The default value is none The parameter can be any of the following four values none t...

Page 235: ...list so that users can make either single or multiple selections For example a user visiting an e commerce website needs to select which item to buy from a list of 30 items You can also design a list...

Page 236: ...k horizontally clipping any text within them Vertically the list adds or removes rows as needed Scroll bars position themselves automatically Using styles with the List component Set style properties...

Page 237: ...the list according to a specified property Property Description List cellRenderer Assigns the class or symbol to use to display each row of the list List dataProvider The source of the list items Lis...

Page 238: ...value is 0 maximum sets the maximum value of the step The default value is 10 stepSize sets the unit of change for the step The default value is 1 You can write code to control these and additional op...

Page 239: ...ue Possible values are haloGreen haloBlue and haloOrange color The text of a component label disabledColor The disabled color for text fontFamily The font name for text fontSize The point size for the...

Page 240: ...properties and events of the RadioButton class For more information see RadioButton class in the Flash documentation Customizing the RadioButton component You can transform a RadioButton component hor...

Page 241: ...units a horizontal scroll bar moves each time an arrow button is pressed The default value is 5 hPageScrollSize indicates the number of units a horizontal scroll bar moves each time the track is press...

Page 242: ...bsolute or relative URL of the SWF or JPEG file to load into the scroll pane ScrollPane hLineScrollSize The amount of content to scroll horizontally when an arrow button is pressed ScrollPane hPageScr...

Page 243: ...e or not false The default value is true wordWrap indicates whether the text wraps true or not false The default value is true Write code to control these and additional options for TextArea component...

Page 244: ...nspector or Component Inspector panel The default value is empty string Property Description TextArea editable A Boolean value indicating whether the field is editable true or not false TextArea hPosi...

Page 245: ...llowing styles Property summary for the TextInput class Style Description color The default color for text fontFamily The font name for text fontSize The point size for the font fontStyle The font sty...

Page 246: ...for the tree is to create a Lingo object by using the XML Parser Xtra or an XML object using the Flash Asset Xtra After you create a Lingo object that contains an XML data source or load one from an e...

Page 247: ...y attributes The attributes of each node should be consistent to be useful For example to describe a mailbox structure with a Tree component use the same attributes on each node message data time atta...

Page 248: ...of a given node Tree getNodeDisplayedAt Returns the display index of a given node Tree getTreeNodeAt Returns a node on the root of the tree Tree removeAll Removes all nodes from a tree instance and r...

Page 249: ...RECTOR 11 0 User Guide 238 Tree itemRollOut Broadcast when a user rolls out of a node Tree change Broadcast when a user clicks on a node Alert click Broadcast when a node is opened by a user Event Des...

Page 250: ...precisely Importing internal and linked sounds Director handles sounds as either internal or linked You can determine whether a sound is internal or linked when you import it Each type of sound has ad...

Page 251: ...ons 3 To make the sound play continuously click Loop for more information see Looping a sound 4 To play the sound click the Play button 5 Click the Member tab in the Property inspector to display edit...

Page 252: ...e continues to play but not loop until the next movie begins or you exit from the application This sound can provide a useful transition while Director loads the next movie Looping a sound You might f...

Page 253: ...er you can control many aspects of how the sound plays Play sound cast members regardless of the settings in the Score Use the queue and play methods The queue method loads the sound into the Director...

Page 254: ...the following methods and properties see the Scripting Reference topics in the Director Help Panel To determine whether a specific channel is playing a sound use the isBusy method To turn off the cur...

Page 255: ...very system might not send the data fast enough resulting in gaps during playback It s also important to consider your target audience For example using a lower data rate lets you target a wider audie...

Page 256: ...Cast Member Properties dialog box that appears click Browse and select a Shockwave Audio file on a local disk or enter a URL in the Link Address text box Unless you select a file in the same folder a...

Page 257: ...of a streaming cast member use the play member method To pause a streaming sound file use the pause member method To stop a streaming sound file use the stop member method To determine the state of a...

Page 258: ...Windows Sound Loop Cue txt file in the Director application folder Mac Use Sound Edit 16 2 07 or later or Peak LE 2 or later to define cue points in AIFF and Shockwave Audio sounds and in QuickTime d...

Page 259: ...cuePassed handler To determine whether a sound or QuickTime file has passed a specific cue point use the isPastCuePoint method To find the ordinal number of the last cue point passed in a sound or Qu...

Page 260: ...inimum system require ments at www adobe com go sysreqs for more information The Director media synchronization features let you synchronize events in a movie to precise cue points embedded in digital...

Page 261: ...DVD files see Using DVD media content in Director 3 Select the digital video files to import 4 Click Import If you import an AVI file select QuickTime or AVI as the import format If you select QuickT...

Page 262: ...re smoothly with this option selected but this is not a certainty In addition playing every frame might cause the digital video to take more time to play 5 If the sprite or cast member is a QuickTime...

Page 263: ...ntent in Director Controlling digital video playback with Lingo or JavaScript syntax The following list provides a general description of how you can control digital video with Lingo or JavaScript syn...

Page 264: ...ing digital video tracks on and off with Lingo or JavaScript syntax By turning a digital video s soundtracks on or off you can play only the animation or control the sounds that play Use the setTrackE...

Page 265: ...with its soundtrack The digital video might also take less time to play Play Every Frame No Sound makes every frame of the digital video appear but does not play the soundtrack because the video canno...

Page 266: ...QuickTime VR panorama image is static set the staticQuality sprite property To enable or disable a specific hotspot for a QuickTime VR sprite use the enableHotSpot method To control how Director pass...

Page 267: ...y To swing a QuickTime VR sprite to a specific pan tilt or field of view set the swing method QuickTime VR Use a QuickTime VR movie in a Director movie by inserting it as you would any other QuickTime...

Page 268: ...ies You can set Windows Media properties that determine the cast member name how it is displayed in your movie whether audio or video in the sprites created from the Windows Media cast member are on o...

Page 269: ...provides controls to play stop pause rewind and fast forward the movie Using the slider you can select a starting play position Controlling Windows Media sprites using Lingo or JavaScript syntax Use...

Page 270: ...Link DVD media content to a movie by using the Insert menu 1 Select Insert Media Element DVD Note Power DVD 7 0 erases the default DVD codec You may have to re install the DVD codec if your DVD does n...

Page 271: ...at the start of the pathname of the DVD folder For example if the DVD folder is located on the root of the boot drive it would look like the following member 2 folder Volumes Mac HD Test_DVD video_ts...

Page 272: ...movie s original size if you resize the bounding rectangle however the edges of the movie are clipped if you make the bounding rectangle too small 4 Select Center if you wish Director centers the mov...

Page 273: ...uch as MoviePlayerPro to do this If you do not preload the text track Director disables the cue points so it can stream the file without entirely downloading it first You can also import a Real Time S...

Page 274: ...or RealMedia RealPlayer 10 5 products for RealNetworks are available for download at www real com To view Shockwave content containing RealMedia content the following software must be installed The Sh...

Page 275: ...the sample file you are ready to start laying out the other elements of your movie About RealMedia streams in Director Director includes the following RealMedia support The RealMedia tab in the Prope...

Page 276: ...member s sound is played in the same sound channel as the first cast member This occurs even if you have assigned a different sound channel to the second cast member If the RealMedia cast members do n...

Page 277: ...lly updated with the next portion of the stream to be played and the stream plays without interruption For more information see percentBuffered in the Scripting Reference topics in the Director Help P...

Page 278: ...member by sing Insert Media Element 1 Select Insert Media Element RealMedia 2 On the Member tab in the Property inspector enter the name of the RealMedia cast member and enter the URL or browse to th...

Page 279: ...on the level of network congestion and stream rebuffering and that the duration value of a cast member referencing a live feed is always 0 To play the RealMedia cast member with other elements of your...

Page 280: ...fter a password has been entered it cannot be retrieved If this property has been set the value that appears in the Property inspector is For more information about these properties see the Scripting...

Page 281: ...ng progresses the width of the sprite increases from 0 to 100 RealMedia Stream Information lets a text area or field display text information for the RealMedia sprite with the RealMedia Target behavio...

Page 282: ...at appears in the status bar of the RealMedia viewer 8 Drag the RealMedia Stream Information behavior to the field then select the type of information you want to display and the group that the behavi...

Page 283: ...osed or if the cast member references a live feed If the user drags the slider while the stream is playing the stream buffers and automatically starts playing from the new position However if the slid...

Page 284: ...Channel soundBusy Although you can use the following Lingo or JavaScript syntax elements with a RealMedia cast member they cause problems when used on a sound channel For example you can use member R...

Page 285: ...opsRemaining loopStartTime play playFile playNext queue rewind sampleCount setPlayList status Use the state RealMedia or mediaStatus RealMedia cast member properties instead For more information about...

Page 286: ...ocumentation en director Attaching behaviors You use the Library palette to display behaviors included in Director Director allows you to attach the same behavior to several sprites or several frames...

Page 287: ...other sources may not Select Show Names from the Library menu to turn the display of behavior names on or off 4 To attach a behavior to a single sprite drag a behavior from the Library palette to a sp...

Page 288: ...information read the behavior descriptions Change parameters for a behavior attached to a sprite or frame 1 Select the sprite or frame to which the behavior is attached 2 In the Behavior tab of the Pr...

Page 289: ...can use the Behavior inspector to create and modify behaviors to perform basic actions To create behaviors with more complex structures you must understand scripting in Lingo or JavaScript syntax Usi...

Page 290: ...list and then add or remove actions in the Actions list To delete an event or action group select the event and press Delete To change the sequence of actions in an event or action group select an eve...

Page 291: ...r behavior You must specify a name for this event The Behavior inspector makes the following actions available Go To Frame moves the playhead to the specified frame Go To Movie opens and plays the spe...

Page 292: ...n many cases it is most efficient to create behaviors dedicated to specific tasks and then attach a set of behaviors that together perform the variety of actions you want The behavior can have paramet...

Page 293: ...the Parameters dialog box The behavior s Parameters dialog box opens in three circumstances After the user drags a behavior to a sprite or frame When the user double clicks the behavior in the Behavio...

Page 294: ...ude range a text entry field appears for the user to enter a value in the Parameters dialog box To specify a set of possible choices use a linear list For example the list mouseUp mouseDown keyUp keyD...

Page 295: ...rop format sound tProp addProp comment Sound cast member name description addProp noise tProp return description Including a description for the Behavior inspector An on getBehaviorDescription handler...

Page 296: ...ent default 5 format integer comment Set motion to the right range min 1 max 10 description noise default format sound comment Sound cast member name return description end JavaScript syntax function...

Page 297: ...of the sprite s behaviors has a handler that corresponds to the message the message passes to the cast member script the frame script and then the movie script For more information about this method s...

Page 298: ...the following handler displays the list of references for all behaviors attached to the same sprite as this behavior s handler Lingo syntax on showScriptRefs me put sprite me spriteNum scriptInstance...

Page 299: ...ance see the Scripting Reference topics in the Director Help Panel To make a script an ancestor do one of the following Declare that ancestor is a property in the property statement at the beginning o...

Page 300: ...can be changed based on criteria you select Using script you can provide animated cursors or specify one of the standard cursors or a bitmap cast member as a cursor image For more infor mation see the...

Page 301: ...check boxes When you create a push button radio button or check box on the Stage a Button cast member is added to the Cast You can use button cast member properties to change the name and button type...

Page 302: ...more information about this method see the Scripting Reference topics in the Director Help Panel Looping in a group of frames Looping within frames lets you create animation that recycles or makes a m...

Page 303: ...n each of the following ways For more information see the Scripting Reference topics in the Director Help Panel To determine the last place the mouse was clicked use the clickLoc method To determine t...

Page 304: ...cross a gauge For more information see the Scripting Reference topics in the Director Help Panel To make a text sprite editable with script set the text sprite s editable property to TRUE For best res...

Page 305: ...Panel Responding to rollovers with Lingo or JavaScript syntax You often want some action to occur when the user rolls the mouse pointer over a sprite or a particular place on the Stage You can use Lin...

Page 306: ...h Lingo or JavaScript syntax Lingo or JavaScript syntax can detect the last key that the user pressed For more information see the Scripting Reference topics in the Director Help Panel To obtain the A...

Page 307: ...on automatically scale images and generate masks for 16 x16 pixel and 32 x 32 pixel cursors Mac computers don t support 32 x 32 pixel cursors An animated cursor consists of a series of bitmap cast mem...

Page 308: ...ou specify a cast member smaller than the maximum size Director displays the cast member at its original size without scaling For example if you select a maximum size of 16 x 16 pixels and specify a c...

Page 309: ...er s position on the screen For example Director uses this point s location when it returns values for the mouseH and mouseV properties The hotspot also determines the point where a rollover occurs Th...

Page 310: ...named myCursor when the cursor is over the sprite on mouseEnter cursor member myCursor end To reset the cursor to the regular arrow cursor specify a cursor type of 1 and do not use parentheses The fol...

Page 311: ...Lingo and JavaScript syntax methods and properties that are available in Director The Scripting Reference topics in the Director Help Panel describe each expression illustrate its syntax and provide e...

Page 312: ...havior inspector see 3D behaviors For a full discussion see Using 3D behaviors Director provides easy but powerful 3D text handling For more information see Creating 3D text Lingo and JavaScript synta...

Page 313: ...file to the W3D Web 3D format which Director supports Typically each rendering application requires its own specific file converter to create W3D files For more information about creating W3D files s...

Page 314: ...es the camera to the previously remembered position A Reset Camera Transform B Set Camera Transform The Root Lock button fixes an animation in place so that it doesn t change its position on the Stage...

Page 315: ...ther sprites on top of the 3D sprite The Preload option controls how media that s being downloaded to the user s computer is displayed The media can be held back from display until it has been complet...

Page 316: ...erator are used This option is available for Windows only directX5_2 DirectX5_2 drivers for a 3D hardware accelerator are used This option is available for Windows only software The Director built in...

Page 317: ...he performance of Director is not affected Determining whether anti aliasing is supported Not all 3D renderers can perform the additional calculations that anti aliasing requires If you have a 3D spri...

Page 318: ...own user interaction animation is about to start so turn anti aliasing OFF sprite 1 antiAliasingEnabled FALSE start animation end on mouseUp stop animation the interaction animation has ended so turn...

Page 319: ...d other cast members is that the models within the 3D world are not independent entities they re not sprites They are integral parts of the 3D cast member Your movies can use 2D and 3D cast members si...

Page 320: ...and cameras together so they can be treated as a single unit Groups let you rotate or translate their contents as a unit A group has a name a transform and a parent and it can have one or more childr...

Page 321: ...n be saved in authoring and projectors The saved world can be reused as a new cast member You must save the Director movie for the changes to the 3D world to get effected You can save the 3D world usi...

Page 322: ...g the surface of a model Shaders control how the surface of the model reflects light and whether the surface looks like metal plaster or other materials Textures are simple 2D images that are drawn on...

Page 323: ...sources are pieces of 3D geometry that can be used to display 3D models Model resources are visible only when they are used by a model Model resources are reusable and multiple models can share the sa...

Page 324: ...es Returns a new mesh model resource withauniquename Ifthenameisn t unique returns a script error newModel Resource name type Creates a new model resource and adds it to the model resource object list...

Page 325: ...model with a unique name If the name isn t unique returns an error deleteModel name Deletes the model named name Script references to this model persist but can do nothing Children of the model aren t...

Page 326: ...it to the shader object list The type can be standard painter engraver or newsprint Returns a new shader object with a unique name If the name isn t unique returns a script error deleteShader name De...

Page 327: ...rsist but can do nothing TRUE 1 if the texture named name exists FALSE 0 if the texture named name doesn t exist deleteTexture index Deletes the texture with the given index number Script references t...

Page 328: ...copies the motion object named name2 from the member named name3 into the current member The new copy is named name1 Returns a reference to the newly created motion object Method Function Returns ligh...

Page 329: ...unction Returns camera count Returnsthenumber ofcamera objects included inthe cast member Integer camera name Returns the camera named name Returns the camera object named name if it exists Returns vo...

Page 330: ...D text has been changed to 3D you can modify it Method Function Returns group count Returns the number of group objects included in the cast member Integer group name Returns the group named name Retu...

Page 331: ...to construct the text The more polygons that are used the smoother the text appears 5 Set the tunnel depth Tunnel depth is the length of the tunnel from the front face to the back face 6 Select a beve...

Page 332: ...t box to the right of the menu Script and 3D text Director contains methods and properties in Lingo and JavaScript syntax for working with 3D text Most 3D methods and properties work with 3D text exac...

Page 333: ...is is shown in the following example member whichMember model modelIndex resource 3DTextProperty For example to set the bevelDepth property of the first model in cast member 1 to a value of 25 use the...

Page 334: ...and triggers 1 Click the Library Palette button on the Director toolbar 2 Click the Library List button and select 3D 3 Select Triggers from the 3D submenu The trigger behaviors appear as shown in th...

Page 335: ...me Description Mouse Left Triggers action when the user presses holds down or releases the left mouse button Windows or the mouse button Mac Mouse Right Triggers action when user presses holds down or...

Page 336: ...ld each time the trigger action occurs The author can set the diameter and texture Drag Camera Camera Provides full camera control including panning changing the direction in which the camera is point...

Page 337: ...s the camera around the z axis by a specified number of degrees each time its trigger is activated This makes the 3D scene appear to rotate and turn upside down Toggle Redraw Drawing Toggles the redra...

Page 338: ...core The Parameters dialog box appears Use it to control the behavior Available options vary 4 Specify options in the Parameters dialog box and click OK 5 For local behaviors attach a trigger behavior...

Page 339: ...oss multiple sprites To establish a group select a name for the group and enter that name in the Parameters dialog box of each behavior that you attach to the sprites in the group Note A behavior grou...

Page 340: ...th Lingo or JavaScript syntax or with Director behaviors These simple shapes are called primitives They are the basic shapes from which more complicated models are built Particle systems are different...

Page 341: ...the newMesh method and extruder resources which require you to use the extrude3D method of a text cast member Sphere properties Spheres created at runtime aren t saved with the cast member s media wh...

Page 342: ...nt value of from 0 0 to 360 0 The default is 0 0 endAngle Get and set Ending angle of the sweep Floating point value of from 0 0 to 360 0 The default is 360 0 Property Access Description Value Range t...

Page 343: ...he cylinder is closed or open TRUE 1 closed TRUE 1 or FALSE 0 The default is TRUE 1 left Get and set Value indicating whether the left end of the box is closed or open TRUE 1 closed TRUE 1 or FALSE 0...

Page 344: ...ing That is to say if you imagine the vertices being wound down aspindle they would be woundfrom left to right in a clockwise manner No default Instead set the value to the number of vectors specified...

Page 345: ...r own texture coordinates face index colors Get and set List indicating which colors to use for faces at designated index points Set the value to a list of three integers specifying the indexes of the...

Page 346: ...olorRange end based on velocity age Alter particle color between colorRange start and colorRange end based on the particle s lifetime sizeRange start Get and set The size of a particle at the start of...

Page 347: ...rticles are emitted Possible values single vector for point source two vectors for line segment four vectors for quadrilat eral emitter distribution Get and set Half the angle over which particles are...

Page 348: ...the source text cast member For example mr member text extrude3d member 3D put mr smoothness 5 put mr tunnelDepth 50 Cast member methods If the models and model resources you need aren t contained in...

Page 349: ...uccessful orascripterror if the operation fails cloneModelFrom Castmember name model castmember Performs a deep clone of a model from one cast member and puts it into another cast member The model its...

Page 350: ...etWorldTransform car1 child 1 getWorldTransform position Node types A model is one of four types of objects that share the same transform parent and child properties The others are cameras lights and...

Page 351: ...ns on the outer surface of the model are drawn so that if the camera were inside the model the model wouldn t be seen Also known as back face culling this option optimizes performance back in which on...

Page 352: ...matically cloned This can beavoidedbyremovingthechildren performingthecloning operation and then adding the children back If the name is omitted or is the clone isn t added to the model palette has no...

Page 353: ...ns in an animation while inside a script call TRUE 1 or FALSE 0 translate direction Vector relativeTo Moves the model directionVector length in the direction of the vector directionVector The relative...

Page 354: ...e following script wheel rotate 0 10 0 or car child 1 rotate 0 10 0 self where the fourth parameter of the rotate method is the object the rotation should be relative to Parent relative A model s tran...

Page 355: ...tandard shader makes the surface of a model appear in a photorealistic style Use the following properties to work with the standard shader Property Name Access Description Default name Get The string...

Page 356: ...tely Flat shading shades the mesh as a whole FALSE 0 textureList Get and set A shader can use up to eight layers of textures This eight element list defines which texture is used for which layer Get R...

Page 357: ...ecifies a texture to be used in the fourth layer and applies the following values textureModeList 4 none blendFunctionList 4 multiply void textureMode List index Get and set This property allows acces...

Page 358: ...dex is applied on the model transform 50 0 000 0 0000 0 0 000 0 0000 0 0000 50 0000 0 0000 0 0000 0 0000 0 0000 50 0000 0 0000 0 0000 0 0000 0 0000 1 0000 wrapTransform List Get and set Controls the o...

Page 359: ...res are defined to be 1 0 in textureImage space Care must be taken not to scale any dimension even z by 0 Identity transform textureTransform List index Get and set Access to the texture coordinate mo...

Page 360: ...ayer providing that the blend method is set to blend Possible values are constant and alpha constant blendSource Get and set Access to the blending sources for the first layer providing that the blend...

Page 361: ...Get and set Access to the list of texture clamping behaviors one per layer When set to FALSE 0 the border of the texture is extended past the unit UV coordinate range Get Returns a list of texture cl...

Page 362: ...ge used does not have pixel dimen sions that are a power of 2 values including 2 4 8 16 and so forth both rendering performance and visual quality will decrease In addition all the textures used in a...

Page 363: ...t of 3D import fromCastmember bitmap derived from Director cast member fromImageObject the texture was created from a Director image object None member Get and set If the type is castmember this prope...

Page 364: ...anges automatically from TRUE 1 to FALSE 0 when the texture is to be rendered The value can be set to FALSE 0 to decom press or to TRUE 1 to remove the decom pressed representation from memory TRUE 1...

Page 365: ...s posi tion and orientation relative to its parent s position and orientation transform position gives the relative position transform rotation gives the relative rotation Set a transform object Get r...

Page 366: ...instances Script group object cloneDeep name Clones both the group and the parent used by the group s chil dren Modifications to the clones resource don t affect the parent This is a more memory inte...

Page 367: ...tance y along the y axis and distance z along the z axis The relativeTo argu ment is optional and defaults to self This method can also be written as translate vector x y z relativeTo Nothing rotate x...

Page 368: ...et TRUE 1 means that polygons are automati cally reduced based on the distance from the camera The fewer polygons that are drawn the fasterperformancewillbe Thelod biasproperty controls how aggressive...

Page 369: ...rcentage of color steps to be used in high light 50 whichModel toon shadowStrength Get and set A floating point value that determines shadow darkness 1 0 whichModel toon highlightStrength Get and set...

Page 370: ...ceives a callback However the collision isn t resolved unless the resolve property is also set to TRUE whichModel inker creases Get and set TRUE 1 or FALSE 0 value indicating whetherlines are drawn wh...

Page 371: ...RUE 1 or FALSE 0 value indicating whether collisions are automatically resolved If the value is TRUE 1 and if the other model has the collision modifier applied and has enabled set to TRUE 1 the model...

Page 372: ...a camera or a light Motions A 3D cast member contains a set of motions authored in your 3D modeling application For bones animation each motion contains a list of tracks and each track contains the ke...

Page 373: ...ot motion This is available only with Bones player animations You can add the Keyframe player modifier at runtime to a model created in Director but you cannot add the Bones player modifier at runtime...

Page 374: ...seconds The motion s duration property tells you how long the animation lasts 0 whichModel bonesPlayer playRate Get and set A value indicating how quickly or slowly to play back the motion For example...

Page 375: ...A value of 0 0 uses all the previous motion A value of 100 0 uses all of the next motion in the play list The blend factor can be changed frame by frame to create custom blending effects 0 whichModel...

Page 376: ...ng back a motion The values are as follows none x y z xy xz all To keep a model locked to a ground plane with the top pointing along the z axis set lockTranslation to z lockTranslation all is equivale...

Page 377: ...is called Nothing whichModel keyframePlayer playNext Ends the currently playing motion removes it from the play list and begins the next motion If blending is enabled blending begins the instant playN...

Page 378: ...ion loops FALSE 0 animation plays through once FALSE 0 whichModel keyframePlayer blendTime Get and set Length in milliseconds of the period when blending takes place between motions The blendTime prop...

Page 379: ...e when playing back a motion The values are as follows none x y z xy xz all To keep a model locked to a ground plane with the top pointing along the z axis set lock Translation to z LockTranslation al...

Page 380: ...normals for the specified mesh whichModel meshDeform mesh index texture CoordinateList Get and set Returns a list of the texture coordinates for the specified mesh whichModel meshDeform mesh index fa...

Page 381: ...hockwave 3D window see 3D Basics For information about behaviors see The 3D Cast Member 3D Text and 3D Behaviors More complex manipulations require the use of methods and properties Accessing the prop...

Page 382: ...senting light s position relative to its parent s transform The transform position gives the relative position transform rotation gives the rela tive rotation Whichever trans form is required to repre...

Page 383: ...ativeUp that control how the light s pointAt method works None boundingSphere Get A list containing a vector and a floating point value with the vector representing the position and the value represen...

Page 384: ...e handlerName scriptInstance Registers a handler named handlerName that is called in the scriptInstance when the member method sendEvent is called with eventName as an argument If scriptInstance is 0...

Page 385: ...rotate vector x y z relativeTo Nothing rotate position axis angle relativeTo Rotates the light around the axis vector in the specified position and in the specified number of degrees The relativeTo ar...

Page 386: ...he sprite rect 0 0 320 200 projection Angle Get and set The vertical projection angle of the view frustum 30 0 colorBuffer clearAtRender Get and set TRUE 1 or FALSE 0 value indicating whether color bu...

Page 387: ...ay in the camera s list of overlays 1 0 overlay index regPoint Get and set Texture relative rotation point similar to a sprite s regPoint point 0 0 overlay index rotation Get and set Rotation value us...

Page 388: ...ame Camera object clone name Clones a camera named name adds it to the cameras s parent s child list and adds it to the world All children of the camera are automatically cloned This can be avoided by...

Page 389: ...rotate x y z relativeTo Rotates the camera by x degrees around the x axis y degrees around the y axis and z degrees around the z axis The relativeTo argument is optional and defaults to self If includ...

Page 390: ...ngo or JavaScript syntax object can be a child script an instance of a behavior attached to a sprite or any other script If the object isn t specified the handler is called in the first movie script i...

Page 391: ...arg1 arg2 Sends an event named eventName to all scripts registered to receive it Similar to sendAllSprites except that the event is deliv ered only to scripts that are registered to receive it Nothin...

Page 392: ...ultiple world space positions can map to the same sprite space point A round trip y worldSpaceToSpriteSpace x z worldSpaceToSpriteSpace y won t necessarily result in x z A vector modelUnder Loc point...

Page 393: ...ointing down the vector directionVector with both vectors specified in world relative coordinates The first model inter sectedbytherayplusalist of up to the specified maximum number of models If the m...

Page 394: ...ne of the angle between the two vectors Dot product of the two vectors angleBetween vector2 Returns the angle between vector and vector2 in degrees Value of the angle in degrees cross vector2 or cross...

Page 395: ...ject vector1 scalar Returns a new vector equaling vector1 scalar A new vector object scalar vector1 Returns a new vector equaling scalar vector1 A new vector object vector1 scalar Returns a new vector...

Page 396: ...nd set A list including a vector and a floating point value that describes this transform s rotation as an axis angle pair The vector represents the direction and the angle represents the rotation aro...

Page 397: ...arguments are two vectors specifying an axis of rotation as a point and a vector plus an angle specifying the clockwise rotation around that axis model transform identity model transform translate 50...

Page 398: ...ation Nothing interpolate oTransform2 fPercentage Returns a new transform by interpolating from the original transform to transform2 by fPercentage The value of fPercentage should be between 0 and 100...

Page 399: ..._2 DirectX5_2 drivers for a hardware accelerator software built in Director software renderer None renderer DeviceList get A list of available rasterizer libraries Possible values are as follows openG...

Page 400: ...epthBuffer Depth get and set Either 16 or 24 depending on the hardware card Controls the precision of the hardware depth buffer None colorBuffer Depth get Either 16 or 32 depending on the hardware car...

Page 401: ...The renderer the movie is actually using Equivalent to the rendererServices object s currentRenderer property Possible values are as follows openGL openGL drivers for a hardware accelerator directX7_0...

Page 402: ...ttomRight TopCenter specularColor get and set Specular color of the first shader the color of reflec tions from the shader rgb 255 255 255 reflectivity get and set Reflectivity of the first shader wit...

Page 403: ...ing 4 mediaLoaded 1 error After state 3 or 4 has been reached it s safe to execute script that manipulates the 3D world Before then access to particular models may fail because those model definitions...

Page 404: ...the sprite s list of views The camera requested addCamera camera index Adds a camera named camera at the specified index number If the index number is greater than the number of cameras in the sprite...

Page 405: ...other windows on the screen MIAWs cannot be docked with each other if they are document MIAWs However if the original MIAWs display template is set to Tools Dialog then it can be docked to the dockin...

Page 406: ...title of the MIAW after creating it Use a movie s filename as the argument for the open window method to assign that movie to a window and instruct Director to use the filename as the window title Us...

Page 407: ...memory until the movie is reloaded Use this option if you don t expect a MIAW to be reopened after it initially runs or if you want to optimize memory on the computer running the MIAW Close a MIAW bu...

Page 408: ...tes for a MIAW Set the rect property to the coordinates of the location where you want the window to appear Define the coordinates as a rectangle in this order left top right and bottom as shown in th...

Page 409: ...ether the MIAW is a dockable when opened for authoring For more information see About dockable MIAWs Title bar options Title bar properties determine the icons that appear in the title bar of a window...

Page 410: ...Only tool window MIAWs can be docked To dock a MIAW drag it to a compatible window by the header bar To group a MIAW click the Panel menu on the right side of the header bar and select a Panel group W...

Page 411: ...event handlers for typical events that can occur while a MIAW is playing such as the movement of a window by the user Such a handler is a good place for instructions that you want to run in response t...

Page 412: ...the main movie For example the following statement displays a list of current MIAW names in the Message window put_player windowList For more information about this property see the Scripting Referen...

Page 413: ...component With XML there is no predefined way to display any given type of data such as molecular structures or grocery lists An XML document is merely a container for the data The Director developer...

Page 414: ...a problem with the XML data The following script statement sets the variable errCode to the return value of the parseString method errCode gParserObject parseString member XMLtext text After the XML P...

Page 415: ...s global gParserObject gParserObject new xtra xmlparser errCode gParserObject parseString member XMLtext text theList gParserObject makeList After this code has been executed the variable gParserObjec...

Page 416: ...ect child 1 type element To refer to the nodes that are nested more than one level deep use more than one level of child reference The following script returns the name of the first tag that is nested...

Page 417: ...the e1 tag put gParserObject child 1 child 4 text here is some text The text element includes the white space for Return Space and Tab characters as well as the string here is some text You can use t...

Page 418: ...tags when all the characters are white space This type of white space is usually due to return characters and superfluous space characters but sometimes it can have meaning to the XML document Use the...

Page 419: ...bit characters EUC JP The EUC character set used widely in Japan SHIFT_JIS Also used widely in Japan Shift JIS is the character set used by default in Japanese versions of Windows and the Mac OS UTF 1...

Page 420: ...and how well they fit into the dialog box 2 Decide which type of dialog box to use The MUI Xtra provides predefined dialog boxes for entering alerts opening and saving files and for entering URLs Thes...

Page 421: ...mmand to specify that these lists are the ones Director should use for definitions of the general purpose dialog box A Lingo statement can t contain more than 256 characters Since lists are typically...

Page 422: ...is a property list that defines one component Components appear in the order that they are listed Some components define the structure of the dialog box such as the beginning and end of the window an...

Page 423: ...ent s type See Possible attribute settings title String used as the title for the component Specify for no title tip String used as the message in a tool tip Specify for no tool tip Tool tips aren t s...

Page 424: ...tempItemPropList GetItemPropList theBox set the type of tempItemPropList windowBegin append aWindowItemList duplicate tempItemPropList Set up the beginning of an overall group set tempItemPropList Ge...

Page 425: ...butes title title tip tip locH 20 locV 24 width 200 height 210 enabled 1 Possible attribute settings To specify the attributes of a general purpose dialog box component assign a list of attribute spec...

Page 426: ...es bitmapStyle A property list that specifies that one of the bitmap icons in the MUI Xtra is to be used as an icon for a general purpose dialog box The property in the property list is bitmapIcon Pos...

Page 427: ...urpose dialog box can send back to Director to indicate what happened to the dialog box These are some tricks for setting up a callback Store item numbers in global variables when building an item lis...

Page 428: ...pecific information about the event itemPropList is the list of property s for the item on theWindowCallback event eventData itemPropList global gMuiSmileDialObj smileyIndex if symbolP event then basi...

Page 429: ...f the chapter for their details Physics World The physics scene is represented by a cast member that can be inserted using the Insert menu in Director Insert Media Element Physics Initializing and sto...

Page 430: ...es static or dynamic or between a point in the world and a rigid body The bodies to which the spring is attached can be changed after creation of the spring The physics world provides properties to se...

Page 431: ...u are using a BMP file each pixel has to be read and the height has to be computed using the pixel information 4 Create the mesh in director 3D using the height map information 5 Pass the height map m...

Page 432: ...models can be of various geometric shapes The physics simulation can approximate the complexity of the model by assigning a proxy geometry while creating the rigid body The proxy geometries are box sp...

Page 433: ...and captioning For keyboard navigation use the Accessibility Target Accessibility Item or Accessibility Text Edit Item Accessi bility Keyboard Controller and Accessibility Group Order behaviors For t...

Page 434: ...ors used in a given scene of your movie When you attach behaviors to a different scene of your movie you might want to use a different group name For example you might use Accessibility_Scene_1 In add...

Page 435: ...the sprite is selected You can use any valid script string such as a go to frame 20 method or a call to a separate handler that you have written such as startAnimation 4 Click OK 5 Repeat this process...

Page 436: ...n see Enabling keyboard navigation 2 Drag the Accessibility Speak behavior from the Library palette to the sprite that should trigger the spoken text when the user navigates to it with the Tab key Thi...

Page 437: ...to speech behaviors Attach the Accessibility Captioning behavior 1 Place the text sprite that should display caption text on the Stage 2 Drag the Accessibility Captioning behavior from the Library pal...

Page 438: ...ing with Lingo or JavaScript syntax If you have a basic understanding of Lingo or JavaScript syntax you can write custom scripts to add text to speech functionality to your movies For more information...

Page 439: ...cast member named TextCommentary on exitFrame voiceProps voiceGet if voiceProps gender female then voiceSpeak member TextCommentary text end if end For a complete list of script terms that control te...

Page 440: ...Xtra is working If the result is 0 you might not have text to speech software installed on your computer System requirements Windows computers must have Microsoft Speech Application Programming Interf...

Page 441: ...ber from the Unload menu in the Member panel of the Property inspector while the cast member is selected in the Cast The following are the possible values for purgePriority When cast members with a pu...

Page 442: ...t members other cast members are automatically unloaded from memory For more information see How Director unloads items from memory Using script to change a cast member s purgePriority property is a g...

Page 443: ...frame or two before it is actually needed 1 Add a sprite of the digital video to the Score 2 Begin the sprite one or two frames before the frame where you want to display the video 3 Locate this spri...

Page 444: ...tains sound files graphic files digital video files other linked assets When you work on a large project plan your basic approach to all aspects of the movie before you start construction This way you...

Page 445: ...pment to help ensure that you discover any problems while they are still minor Waiting to test lets small problems become larger ones as you add features to your movie that depend on problematic funct...

Page 446: ...or inconsistent naming JavaScript syntax is case sensitive Classic Lingo is not Printing movies You can print movie content to review it and mark changes to distribute edits to a team to make handouts...

Page 447: ...mber in the text box 5 To determine the layout of the items to print click Options and select from the following Scale provides options to print at 100 50 or 25 of the original size Frame Borders crea...

Page 448: ...w to distribute it to users Shockwave content is a compressed version of only the movie data A projector is a stand alone version of a movie You can include one movie in a projector that links to othe...

Page 449: ...le and enter the Lingo script 4 Close and re open Director Previewing a movie in a browser You can preview a movie in a browser on your local computer to view JPEG compressed bitmaps and to check the...

Page 450: ...our scripts to the list in the Movie Xtras dialog box For more information see Managing Xtra extensions for distributed movies Managing Xtra extensions controls the size and capabilities of the movie...

Page 451: ...ovie by using the Modify menu 1 Select Modify Movie Xtras 2 To add or remove Xtra extensions do any of the following To add the Xtra extensions required to connect a projector to the Internet click Ad...

Page 452: ...ication A Shockwave projector makes a much smaller projector A Shockwave projector uses an installed Shockwave Player on the user s system to play a movie instead of including the player code in the p...

Page 453: ...me as for normal disk based distri bution Creating Shockwave content Save your work as a Shockwave DCR movie to prepare it for playback in a Shockwave enabled web browser or to make disk based movies...

Page 454: ...al default state Note Clicking the Save As Defaults button or the Defaults button on one tab has no effect on any of the other tabs Selecting a publishing format Use the Formats tab to select the desi...

Page 455: ...of the tags necessary to display your DCR movie Director does the following Creates a DCR and HTML file in the same directory as your Director DIR movie Note Director creates a CCT file for each exte...

Page 456: ...the linked file C movie images image1 jpg When this movie is published to the D publish folder the images folder is automatically copied to the D publish folder for the projector and the D publish dsw...

Page 457: ...Any file other than Xtras linked files and linked casts can be considered as a dependent file This option is typically used for files referenced through scripting If you select a dependent file from a...

Page 458: ...ression from the kBits second menu For more information about sound compression see Compressing internal sounds with Shockwave Audio Convert Stereo To Mono lets you convert stereo audio to monaural Th...

Page 459: ...fect the size of the DCR movie you must specify percentages and select Preserve Propor tions Stretch To Fill or Expand Stage Size on the Shockwave tab of the Publish Settings dialog box 4 On the Html...

Page 460: ...hockwave Default TS DS Uses an OBJECT and EMBED tag to display Shockwave DF html head title TI title meta http equiv Content Type content text html charset UTF 8 head saved from url 0013 about interne...

Page 461: ...ta from a local source while a movie is playing in safe player mode Director treats folders named dswmedia as exceptions to the safe player mode feature that normally stops movies from reading data fr...

Page 462: ...e properly Ensure that you choose the correct code page for a movie during the upgrade process You won t be prompted again for the code page after the upgrade Note Director MX2004 on a Japanese operat...

Page 463: ...e A folder called backup is created under the same folder as the original movie file Custom location Click Browse to specify another location for the backup 6 Click Update Upgrade movies and casts usi...

Page 464: ...og box You can also add Xtra extensions to a projector manually the same way you select movie files You can create Mac projectors using a Windows application and create a Windows projector using a Mac...

Page 465: ...to thousands of colors Extra Main Memory System Temporary Memory Mac only makes Director use available system memory when its own partition is full 5 Once all Projector options are set click OK or cl...

Page 466: ...ory Some reasons for doing this include Xtra extensions stored in a projector must be uncompressed to a separate file each time the projector starts up which makes startup slower If the Xtra extension...

Page 467: ...rmation is not provided the code assumes your Xtra extension exists only for the current platform To use your custom Windows Xtra extension in a Mac created projector put the Xtra extension in the Cro...

Page 468: ...iginal files Be very careful when using this option Once a file is protected or compressed you cannot open it again in Director 4 Click OK 5 Select the movies and casts you want to change and click on...

Page 469: ...nd boxes 3 If you select Selected Frames All Frames or Frame Range as the Export option select one of the following options These options don t work with digital video Every Frame exports all frames i...

Page 470: ...mpo of 1 frame per second When the movie is exported these slower frames would each last precisely for 1 second in the QuickTime movie Real Time lets you export a QuickTime movie that matches the perf...

Page 471: ...when you export a digital video To include sound when you export a digital video movie import the sounds as cast members instead of linking to them Looped sounds don t loop in a movie that you have e...

Page 472: ...ADOBE DIRECTOR 11 0 User Guide 461 The size of your movie may be less of an issue if you use streaming Shockwave content For more information see Setting movie playback options...

Page 473: ...make the movie wait while certain cast members download Controls and script methods offer ways to send and retrieve media and other information to interact with a browser and to monitor downloading St...

Page 474: ...isk Loading cast members in Director means loading cast members into memory It s a good idea to author Shockwave content so that it performs other tasks while data is loading in the background Because...

Page 475: ...Shockwave content Shockwave content loops by default To cause Shockwave content to play only once add the Hold on Current Frame behavior to the last frame of the movie 1 Select File Publish Settings...

Page 476: ...arrange the Score so that events don t make the playhead jump far ahead in the Score where cast members have not yet been downloaded For example if you place a menu in the first frame of a movie and a...

Page 477: ...a movie start playing as soon as the required data and cast members are available Use Lingo or Java Script syntax to check whether media elements have been downloaded from a network by testing the fo...

Page 478: ...fferent handlers An on exitFrame handler is a good location for checking whether an operation is complete Note You should typically use frame events rather than repeat loops for this process Execute a...

Page 479: ...aunches the browser If the gotoNetPage method replaces the page in which the movie is playing the movie continues to play until the browser replaces the page The gotoNetPage method is similar to the D...

Page 480: ...e the state of a network operation that retrieves data Use the Lingo on streamStatus event handler or the JavaScript streamStatus function For more infor mation see the Scripting Reference topics in t...

Page 481: ...rst using preloadNetThing to download the file After the file has been downloaded you can use these Lingo or JavaScript syntax elements with the file s URL without a delay When the following Lingo or...

Page 482: ...Pref method can write only to that folder The default folder locations for Windows and Mac are described in the following list Windows The Adobe Shockwave 8 subfolder of the system folder the system f...

Page 483: ...your movie uses nonstandard fonts use embedded fonts For more information see Embedding fonts in movies Check for sound problems particularly if you stream sounds with SWA About downloading speed Deve...

Page 484: ...ng 325 real time recording 101 Root Lock button 303 scripting with Lingo or JavaScript 102 Space To Time command 97 step recording 100 transitions 171 anti aliasing 3D cast members 306 Flash movies 21...

Page 485: ...Button component Flash movies 216 buttons 290 C cache preloading files 468 callbacks Flash objects 205 206 cameras commands 318 defined 309 311 329 group properties 354 manipulating 302 325 326 method...

Page 486: ...alette 166 controls 159 cursor animating 296 Darken and Lighten inks 86 effects bitmaps 114 Favorites editing 161 Flash movies 198 guides 75 hue 166 importing images 45 inks Paint window 124 inks spri...

Page 487: ...To Stage 251 Direct To Stage option 304 exporting 457 exporting QuickTime 459 importing 249 preloading 432 synchronizing with cue points 247 262 turning tracks on and off with Lingo 253 using on the...

Page 488: ...s 445 types supported 44 URL references 470 Fill color Paint window 115 fill settings for vector shapes 153 film loops 98 99 Filter Apply 136 Create 136 Install 136 Modify 137 filters bitmaps 135 find...

Page 489: ...to XML 402 HTTP servers 469 hue changing 166 hypertext links creating 182 I icons Cast Thumbnail view 54 image objects creating with script 119 editing 119 Image Options dialog box 45 image options S...

Page 490: ...layering MIAWs movie in a window 400 sprites 67 level of detail LOD modifiers 326 357 libraries creating new 58 Library palette behaviors 3D 323 attaching behaviors 275 viewing descriptions 278 Light...

Page 491: ...333 334 Message window 22 messages sending to sprites 286 methods ActiveX 216 Bones player 362 cameras 377 381 collision 380 downloading files 467 event handling 379 keyframe animation 366 lights 372...

Page 492: ...window Xtra extensions 439 440 Xtra extensions in 30 moving accelerating and decelerating sprites 91 cast members 53 cast members in window 49 frames 35 guides 75 keyframes 92 models 325 343 selected...

Page 493: ...7 objects 402 white space ignoring 407 particle systems creating 325 primitives 329 properties 334 Paste As Pict command 129 Paste Relative command 101 pasting frames 35 keyframes 92 sprites 101 paths...

Page 494: ...tting 3D properties 21 setting movie properties 20 sprites 68 Stage 32 Text tab 319 protected movies 441 public actions 326 public behaviors 323 Publish settings changing 443 default 442 Files tab 445...

Page 495: ...tex 152 sending messages to sprites 286 Set Volume action 280 setting properties movies 20 sprites and cast members 20 Settings panel Flash movies 210 shaders commands 314 defined 311 engraver 351 int...

Page 496: ...g 90 positioning 73 preferences 61 properties 68 72 rendering commands 393 rendering properties 392 resizing 79 resizing rotated or skewed 82 rollovers 294 rotating and skewing 80 Score display settin...

Page 497: ...odifier 326 357 Trace Edges button Paint window 114 trace mode in Message window 23 Trails option redraw mode 326 sprites 69 101 Transform Bitmap command 117 transforms 384 Transition channel 13 trans...

Page 498: ...nd hiding 10 moving between panel groups 24 types of 11 Windows Media Audio WMA 243 windows movies in See MIAWs movie in a window windows using multiple Score 33 WMA Windows Media Audio 243 workspace...

Reviews: