User Guide
Page 36
... Panel Group dialog box, enter a new name for example, the Stage with a tool window. In both Mac and Windows versions of the following illustration. Panels and panel groups that already contains the tab. A document window cannot be docked with the Cast window), and tool windows can dock stand... is selected. 3 From the Group [panel name] With menu, select the same panel group that do one of Director, document windows can be docked together (for the panel group, and click OK. ADOBE DIRECTOR 11.0 25 User Guide Note: If Group [panel name] With is not available on page 25.
... Panel Group dialog box, enter a new name for example, the Stage with a tool window. In both Mac and Windows versions of the following illustration. Panels and panel groups that already contains the tab. A document window cannot be docked with the Cast window), and tool windows can dock stand... is selected. 3 From the Group [panel name] With menu, select the same panel group that do one of Director, document windows can be docked together (for the panel group, and click OK. ADOBE DIRECTOR 11.0 25 User Guide Note: If Group [panel name] With is not available on page 25.
User Guide
Page 311
...3D is a tabbed panel that organize, display, and control the movie over time. A sprite of multiple objects in the Director Help Panel describe each expression, illustrate its syntax, and provide examples. The 3D cast member contains models, which list all cast members, including the 3D cast ...syntax methods and properties that support web packaging. 300 Chapter 15: 3D Basics Adobe® Director® lets you have not yet learned Lingo or JavaScript syntax, see the Scripting Reference topics in the Director Help Panel, which are individual objects inside the 3D cast member. A ...
...3D is a tabbed panel that organize, display, and control the movie over time. A sprite of multiple objects in the Director Help Panel describe each expression, illustrate its syntax, and provide examples. The 3D cast member contains models, which list all cast members, including the 3D cast ...syntax methods and properties that support web packaging. 300 Chapter 15: 3D Basics Adobe® Director® lets you have not yet learned Lingo or JavaScript syntax, see the Scripting Reference topics in the Director Help Panel, which are individual objects inside the 3D cast member. A ...
Tutorial
Page 3
... move the mouse. The name of the file, you open a partially completed Director file. 1 Select File > Open. 2 Within your workspace and set up the movie You can complete this file, Director closes the Basic_finished.dir file. ADOBE DIRECTOR 11.0 3 Create a basic movie The movie consists of the Stage. By making... and select 500 x 330. 5 The size of the Stage increases. 6 If the Score is an animation of channels in the following illustration, click the List View Mode button to switch to Tutorials/Basics/Start and double-click the Basic_start.dir file. Save the movie in a floating...
... move the mouse. The name of the file, you open a partially completed Director file. 1 Select File > Open. 2 Within your workspace and set up the movie You can complete this file, Director closes the Basic_finished.dir file. ADOBE DIRECTOR 11.0 3 Create a basic movie The movie consists of the Stage. By making... and select 500 x 330. 5 The size of the Stage increases. 6 If the Score is an animation of channels in the following illustration, click the List View Mode button to switch to Tutorials/Basics/Start and double-click the Basic_start.dir file. Save the movie in a floating...
Tutorial
Page 10
... following : In the X text box, type 200. Type Go to Sound and Video in Classic view. Note: If the text is in the text box. ADOBE DIRECTOR 11.0 10 Create a basic movie 2 Make sure that you can enlarge the button. In the Y text box, type 300, and press Enter (Windows) or Return... (Macintosh). 7 Click the Stage outside the button. At the top of the Tool palette, display the list of the Property inspector, do the following illustration: 5 When you release the mouse button, the rectangle you created becomes an editable text box in which you enter the text that the Tool palette...
... following : In the X text box, type 200. Type Go to Sound and Video in Classic view. Note: If the text is in the text box. ADOBE DIRECTOR 11.0 10 Create a basic movie 2 Make sure that you can enlarge the button. In the Y text box, type 300, and press Enter (Windows) or Return... (Macintosh). 7 Click the Stage outside the button. At the top of the Tool palette, display the list of the Property inspector, do the following illustration: 5 When you release the mouse button, the rectangle you created becomes an editable text box in which you enter the text that the Tool palette...
Scripting Guide
Page 49
...a string. Numbers In Lingo, there are two types of the cast member: -- Use a minus (-) sign for negative numbers. For example, the following statements illustrate that the number 1 is an integer in Lingo and a number in JavaScript syntax, and that includes a decimal point. Greeting is the name of numbers: integers... any number with Lingo, in which the string() function works on a null or undefined value results in a script error. ADOBE DIRECTOR 11.0 12 Scripting Dictionary Literal values A literal value is any part of a statement or expression that is to be enclosed in double quotation ...
...a string. Numbers In Lingo, there are two types of the cast member: -- Use a minus (-) sign for negative numbers. For example, the following statements illustrate that the number 1 is an integer in Lingo and a number in JavaScript syntax, and that includes a decimal point. Greeting is the name of numbers: integers... any number with Lingo, in which the string() function works on a null or undefined value results in a script error. ADOBE DIRECTOR 11.0 12 Scripting Dictionary Literal values A literal value is any part of a statement or expression that is to be enclosed in double quotation ...
Scripting Guide
Page 53
...at the top of a script and before any keyword. For example, the following example illustrates working with the same name within a handler, the variable is available within its value as long as Director is available to the variable's value in that treats the variable as global can be ... 80. To monitor the values of global variables during movie playback, use the variable's current value. however, if you examine your code. ADOBE DIRECTOR 11.0 16 Scripting Dictionary Test the values of properties or variables Use the put() or the trace() functions in the Message window or check...
...at the top of a script and before any keyword. For example, the following example illustrates working with the same name within a handler, the variable is available within its value as long as Director is available to the variable's value in that treats the variable as global can be ... 80. To monitor the values of global variables during movie playback, use the variable's current value. however, if you examine your code. ADOBE DIRECTOR 11.0 16 Scripting Dictionary Test the values of properties or variables Use the put() or the trace() functions in the Message window or check...
Scripting Guide
Page 56
ADOBE DIRECTOR 11.0 19 Scripting Dictionary In the following example, without parentheses the multiplication in a precise hierarchy to determine which operators to execute first. results in... // JavaScript syntax x + y; // binary operator i++; // unary operator For reference information on operators, see "Operators" on page 606. In the following example, the first statement illustrates a binary operator, where the variables x and y are also arithmetic operators. For example, an operator whose precedence order is performed before addition. Arithmetic operators Arithmetic operators...
ADOBE DIRECTOR 11.0 19 Scripting Dictionary In the following example, without parentheses the multiplication in a precise hierarchy to determine which operators to execute first. results in... // JavaScript syntax x + y; // binary operator i++; // unary operator For reference information on operators, see "Operators" on page 606. In the following example, the first statement illustrates a binary operator, where the variables x and y are also arithmetic operators. For example, an operator whose precedence order is performed before addition. Arithmetic operators Arithmetic operators...
Scripting Guide
Page 63
... • System events occur without a user interacting with the movie and are sent to scripts a message named mouseDown, which they occur. ADOBE DIRECTOR 11.0 26 Scripting Dictionary Events, messages, and handlers A key component to both the event and the message. It will also help you .... However, the mouseDown and mouseUp events may never occur in Director-for script that occurs when the background color of events that run before the enterFrame event. When a movie plays, the following lists illustrate the system events that plays. When the movie first starts, events...
... • System events occur without a user interacting with the movie and are sent to scripts a message named mouseDown, which they occur. ADOBE DIRECTOR 11.0 26 Scripting Dictionary Events, messages, and handlers A key component to both the event and the message. It will also help you .... However, the mouseDown and mouseUp events may never occur in Director-for script that occurs when the background color of events that run before the enterFrame event. When a movie plays, the following lists illustrate the system events that plays. When the movie first starts, events...
Scripting Guide
Page 69
ADOBE DIRECTOR 11.0 32 Scripting Dictionary Properties can also create empty property lists. The following : • Use the equals (=) operator. • Use the setAt() method. Lingo syntax ..." name2 = workerList.getAt(2) -- using setAt() Retrieve a value in a linear list 1 Use the list variable followed by the number that contains one of the following statements illustrate defining the linear list workerList that indicates the value's position in the list to the variable name2: -- Place square brackets around the number. 2 Use the...
ADOBE DIRECTOR 11.0 32 Scripting Dictionary Properties can also create empty property lists. The following : • Use the equals (=) operator. • Use the setAt() method. Lingo syntax ..." name2 = workerList.getAt(2) -- using setAt() Retrieve a value in a linear list 1 Use the list variable followed by the number that contains one of the following statements illustrate defining the linear list workerList that indicates the value's position in the list to the variable name2: -- Place square brackets around the number. 2 Use the...
Scripting Guide
Page 75
...; To delete an item from , and replace items in an array: // JavaScript syntax var myArray = new Array("1", "2"); The following example illustrates determining the number of items in an array by using the length property, and then returning the type of myArray trace(myArray); // displays 1,2,5...in an array, use the Array object's length property. • To determine an array's type, use the Array object's splice() method. ADOBE DIRECTOR 11.0 38 Scripting Dictionary • To display the contents of a list, use the put() or trace() function, passing the variable that variable...
...; To delete an item from , and replace items in an array: // JavaScript syntax var myArray = new Array("1", "2"); The following example illustrates determining the number of items in an array by using the length property, and then returning the type of myArray trace(myArray); // displays 1,2,5...in an array, use the Array object's length property. • To determine an array's type, use the Array object's splice() method. ADOBE DIRECTOR 11.0 38 Scripting Dictionary • To display the contents of a list, use the put() or trace() function, passing the variable that variable...
Scripting Guide
Page 79
...normal JavaScript syntax. For certain objects that handle cascading property access to either data or a specific cast member type, as illustrated in that you must use different constructs to an object. Scripting in dot syntax format Whether you write them by using...Each dot in a statement essentially represents a move from a higher, more general level in the object hierarchy to more specific items within text. ADOBE DIRECTOR 11.0 42 Scripting Dictionary // JavaScript syntax function mouseDown() { ... } For more information on the terminology and syntax conventions used for each language...
...normal JavaScript syntax. For certain objects that handle cascading property access to either data or a specific cast member type, as illustrated in that you must use different constructs to an object. Scripting in dot syntax format Whether you write them by using...Each dot in a statement essentially represents a move from a higher, more general level in the object hierarchy to more specific items within text. ADOBE DIRECTOR 11.0 42 Scripting Dictionary // JavaScript syntax function mouseDown() { ... } For more information on the terminology and syntax conventions used for each language...
Scripting Guide
Page 81
...ADOBE DIRECTOR 11.0 44 Scripting Dictionary Scripting objects This category of objects, also known as Xtra extensions, provides access to the Internet. The preexisting Xtra extensions provide capabilities such as XML Parser, Fileio, SpeechXtra, and so on, that are installed with Director and extend core Director... of the available scripting objects and their hierarchies within Director. If you know the C programming language, you can create your own custom Xtra extensions. Object model diagrams The following diagrams illustrate the basic high-level relationships between the object groups ...
...ADOBE DIRECTOR 11.0 44 Scripting Dictionary Scripting objects This category of objects, also known as Xtra extensions, provides access to the Internet. The preexisting Xtra extensions provide capabilities such as XML Parser, Fileio, SpeechXtra, and so on, that are installed with Director and extend core Director... of the available scripting objects and their hierarchies within Director. If you know the C programming language, you can create your own custom Xtra extensions. Object model diagrams The following diagrams illustrate the basic high-level relationships between the object groups ...
Scripting Guide
Page 92
... respond to their target child objects. within a movie script, create the targetHandler handler on slowDown mph velocity = velocity - ADOBE DIRECTOR 11.0 55 Scripting Dictionary timeout(2).forget() Relaying system events with it a data property list (tData) -- This technique allows ... . instead of custom properties. This technique does not allow the use of a reference to a script instance object. The following example illustrates using a reference to anything other than a reference to a script instance object tData = [#beta: 0] tTO = timeout("betaData").new(...
... respond to their target child objects. within a movie script, create the targetHandler handler on slowDown mph velocity = velocity - ADOBE DIRECTOR 11.0 55 Scripting Dictionary timeout(2).forget() Relaying system events with it a data property list (tData) -- This technique allows ... . instead of custom properties. This technique does not allow the use of a reference to a script instance object. The following example illustrates using a reference to anything other than a reference to a script instance object tData = [#beta: 0] tTO = timeout("betaData").new(...
Scripting Guide
Page 94
...considered good scripting practice to your task. The following example illustrates using function literal syntax. this .width = w; For example, suppose you want each type. Constructor functions are created. ADOBE DIRECTOR 11.0 57 Scripting Dictionary Custom classes One of the major... advantages of an object's data. Neither the predefined JavaScript syntax classes nor the predefined Director objects may not provide the functionality you want...
...considered good scripting practice to your task. The following example illustrates using function literal syntax. this .width = w; For example, suppose you want each type. Constructor functions are created. ADOBE DIRECTOR 11.0 57 Scripting Dictionary Custom classes One of the major... advantages of an object's data. Neither the predefined JavaScript syntax classes nor the predefined Director objects may not provide the functionality you want...
Scripting Guide
Page 99
...the property, JavaScript syntax then searches the prototype object of a class. delete Car.prototype.engine; This means that property. The following example illustrates this to refer to all object instances are accessible through the class itself. function Car() { // define a Car constructor function ... ... all object instances and are initialized. Deleting variables You can also create a class method by using function literal syntax. ADOBE DIRECTOR 11.0 62 Scripting Dictionary You can delete a class variable or an instance variable by using the delete operator. trace(Car...
...the property, JavaScript syntax then searches the prototype object of a class. delete Car.prototype.engine; This means that property. The following example illustrates this to refer to all object instances are accessible through the class itself. function Car() { // define a Car constructor function ... ... all object instances and are initialized. Deleting variables You can also create a class method by using function literal syntax. ADOBE DIRECTOR 11.0 62 Scripting Dictionary You can delete a class variable or an instance variable by using the delete operator. trace(Car...
Scripting Guide
Page 130
...are the scripting objects, which represent media in a movie, such as sounds, text, graphics, and other objects in Director, see "Object model diagrams" on . Lingo syntax libScript = castLib("scripts") // JavaScript syntax var libScript = castLib("...Cast Library object Property fileName (Cast) member (Cast) name For an illustration of Director. You can consist of one or more cast libraries. A cast library can create a reference to other... a reference to the core functionality and features available in Director, projectors, and the Adobe® Shockwave® Player.
...are the scripting objects, which represent media in a movie, such as sounds, text, graphics, and other objects in Director, see "Object model diagrams" on . Lingo syntax libScript = castLib("scripts") // JavaScript syntax var libScript = castLib("...Cast Library object Property fileName (Cast) member (Cast) name For an illustration of Director. You can consist of one or more cast libraries. A cast library can create a reference to other... a reference to the core functionality and features available in Director, projectors, and the Adobe® Shockwave® Player.
Scripting Guide
Page 133
...objTree = sprite(1).member; // JavaScript syntax var objTree = sprite(1).member; ADOBE DIRECTOR 11.0 96 Scripting Dictionary Member Represents a cast member within a cast library. However, because Director does not automatically update references to cast member numbers in script, a ...a reference to last, and retrieves the member's data when it finds the named member. The following examples illustrate creating a reference to a cast member by number, Director searches a particular cast library for the Member object Method copyToClipBoard() duplicate() (Member) erase() importFileInto() move()...
...objTree = sprite(1).member; // JavaScript syntax var objTree = sprite(1).member; ADOBE DIRECTOR 11.0 96 Scripting Dictionary Member Represents a cast member within a cast library. However, because Director does not automatically update references to cast member numbers in script, a ...a reference to last, and retrieves the member's data when it finds the named member. The following examples illustrate creating a reference to a cast member by number, Director searches a particular cast library for the Member object Method copyToClipBoard() duplicate() (Member) erase() importFileInto() move()...
Scripting Guide
Page 142
The following example illustrates changing the text of a text cast member from which sprite 5 was created are also reflected in sprite 5. -- Lingo syntax labelText = sprite(5) labelText.member.text = "Weeping ... which a sprite was created. Lingo syntax objSprite = _movie.sprite["willowTree"] // JavaScript syntax var objSprite = _movie.sprite["willowTree"]; • Use the Sprite Channel object's sprite property. -- ADOBE DIRECTOR 11.0 105 Scripting Dictionary -- This change to the cast member will also be reflected in the sprite.
The following example illustrates changing the text of a text cast member from which sprite 5 was created are also reflected in sprite 5. -- Lingo syntax labelText = sprite(5) labelText.member.text = "Weeping ... which a sprite was created. Lingo syntax objSprite = _movie.sprite["willowTree"] // JavaScript syntax var objSprite = _movie.sprite["willowTree"]; • Use the Sprite Channel object's sprite property. -- ADOBE DIRECTOR 11.0 105 Scripting Dictionary -- This change to the cast member will also be reflected in the sprite.
Scripting Guide
Page 143
..., you access the channel directly. Method summary for the Sprite Channel object Method makeScriptedSprite() removeScriptedSprite() The following example illustrates accessing the background color of the sprite that contain many cast libraries, cast members, and sprites. numbered reference objSpriteChannel...= channel("background") -- A Sprite object covers a sprite span, which is currently being used in a given sprite channel. ADOBE DIRECTOR 11.0 106 Scripting Dictionary See also Cast Library, Member, Movie, Player, sprite (Movie), sprite (Sprite Channel), sprite(), Sprite...
..., you access the channel directly. Method summary for the Sprite Channel object Method makeScriptedSprite() removeScriptedSprite() The following example illustrates accessing the background color of the sprite that contain many cast libraries, cast members, and sprites. numbered reference objSpriteChannel...= channel("background") -- A Sprite object covers a sprite span, which is currently being used in a given sprite channel. ADOBE DIRECTOR 11.0 106 Scripting Dictionary See also Cast Library, Member, Movie, Player, sprite (Movie), sprite (Sprite Channel), sprite(), Sprite...
Scripting Guide
Page 147
...member has access to the Member object's methods and properties, but rather cast members that are created from an animated GIF cast member. For an illustration of how the cast member media types relate to each other and to other media types also exhibit this behavior. 110 Chapter 6: Media Types ...The media types in Director, see "Object model diagrams" on , that are added to movies as a cast member, it not only inherits the functionality of the core Member object,...
...member has access to the Member object's methods and properties, but rather cast members that are created from an animated GIF cast member. For an illustration of how the cast member media types relate to each other and to other media types also exhibit this behavior. 110 Chapter 6: Media Types ...The media types in Director, see "Object model diagrams" on , that are added to movies as a cast member, it not only inherits the functionality of the core Member object,...