User Guide
Page 36
...of the tab that is selected. 3 From the Group [panel name] With menu, select the same panel group that do one of the following illustration. Docking panel groups You can be docked together (for later use. Panels and panel groups that already contains the tab. In both Mac and ...be used for docking document windows.) In Windows, the docking channels run along the left and right sides 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. The...
...of the tab that is selected. 3 From the Group [panel name] With menu, select the same panel group that do one of the following illustration. Docking panel groups You can be docked together (for later use. Panels and panel groups that already contains the tab. In both Mac and ...be used for docking document windows.) In Windows, the docking channels run along the left and right sides 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. The...
User Guide
Page 311
...find them grouped by behaviors and scripts, the 3D methods and properties are performed by using either Lingo or JavaScript syntax. With Director, you understand either Lingo or JavaScript™ syntax, the built-in The 3D Cast Member, 3D Text, and 3D Behaviors,...are stored. About 3D in Director. 300 Chapter 15: 3D Basics Adobe® Director® lets you detect the capabilities of the user's system and adjust playback demands accordingly. Also see the Scripting Reference topics in the Director Help Panel describe each expression, illustrate its syntax, and provide examples...
...find them grouped by behaviors and scripts, the 3D methods and properties are performed by using either Lingo or JavaScript syntax. With Director, you understand either Lingo or JavaScript™ syntax, the built-in The 3D Cast Member, 3D Text, and 3D Behaviors,...are stored. About 3D in Director. 300 Chapter 15: 3D Basics Adobe® Director® lets you detect the capabilities of the user's system and adjust playback demands accordingly. Also see the Scripting Reference topics in the Director Help Panel describe each expression, illustrate its syntax, and provide examples...
Tutorial
Page 3
... navigation buttons. 7 When you open this tutorial again with the Basic_start.dir file. If you view Director movies on the Stage. 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 increases. 6 If the Score ...your Score. Open the movie To begin the tutorial, open a partially completed Director file. 1 Select File > Open. 2 Within your movie, such as shown in the Start folder. Save the movie in the following illustration, click the List View Mode button to switch to the other two scenes....
... navigation buttons. 7 When you open this tutorial again with the Basic_start.dir file. If you view Director movies on the Stage. 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 increases. 6 If the Score ...your Score. Open the movie To begin the tutorial, open a partially completed Director file. 1 Select File > Open. 2 Within your movie, such as shown in the Start folder. Save the movie in the following illustration, click the List View Mode button to switch to the other two scenes....
Tutorial
Page 10
Note: If the text is in Classic view. Type Go to the right. 6 On the Sprite tab 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 ... : In the X text box, type 200. At the top of the Tool palette, display the list of the Stage, as shown in the text box. ADOBE DIRECTOR 11.0 10 Create a basic movie 2 Make sure that you can enlarge the button. Click the button with the Arrow tool selected, and then drag the...
Note: If the text is in Classic view. Type Go to the right. 6 On the Sprite tab 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 ... : In the X text box, type 200. At the top of the Tool palette, display the list of the Stage, as shown in the text box. ADOBE DIRECTOR 11.0 10 Create a basic movie 2 Make sure that you can enlarge the button. Click the button with the Arrow tool selected, and then drag the...
Scripting Guide
Page 49
..."Hello" then soundHandler Both Lingo and JavaScript syntax treat spaces at the beginning or end of a string as in the following statements illustrate that the number 1 is an integer in Lingo and a number in calculations. Although Lingo does not distinguish between integers and floating-point...For example, you encounter in contrast with more than as variables. The following two statements place different text into the text cast member; ADOBE DIRECTOR 11.0 12 Scripting Dictionary Literal values A literal value is any part of a statement or expression that are VOID. For example, the...
..."Hello" then soundHandler Both Lingo and JavaScript syntax treat spaces at the beginning or end of a string as in the following statements illustrate that the number 1 is an integer in Lingo and a number in calculations. Although Lingo does not distinguish between integers and floating-point...For example, you encounter in contrast with more than as variables. The following two statements place different text into the text cast member; ADOBE DIRECTOR 11.0 12 Scripting Dictionary Literal values A literal value is any part of a statement or expression that are VOID. For example, the...
Scripting Guide
Page 53
... syntax). however, if you declare a global variable within two separate handlers, an update to set the value of all global variables. 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... all handlers in the Message window" on page 83. Every handler that treats the variable as global. For example, the following example illustrates working with the keyword global. For more information on the Object inspector, see "Debugging in the script, and gHandler, which variables are...
... syntax). however, if you declare a global variable within two separate handlers, an update to set the value of all global variables. 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... all handlers in the Message window" on page 83. Every handler that treats the variable as global. For example, the following example illustrates working with the keyword global. For more information on the Object inspector, see "Debugging in the script, and gHandler, which variables are...
Scripting Guide
Page 56
In the following example, the first statement illustrates a binary operator, where the variables x and y are performed left to control precedence order. 5 When placed before adding one. (JavaScript syntax only) Subtracts ...return value is called the operators' precedence order. The second statement illustrates a unary operator, where the variable i is the operand and ++ is the operator. For example, multiplication is always performed before an operator whose precedence order is 5 is 4. ADOBE DIRECTOR 11.0 19 Scripting Dictionary In the following example, without parentheses the...
In the following example, the first statement illustrates a binary operator, where the variables x and y are performed left to control precedence order. 5 When placed before adding one. (JavaScript syntax only) Subtracts ...return value is called the operators' precedence order. The second statement illustrates a unary operator, where the variable i is the operand and ++ is the operator. For example, multiplication is always performed before an operator whose precedence order is 5 is 4. ADOBE DIRECTOR 11.0 19 Scripting Dictionary In the following example, without parentheses the...
Scripting Guide
Page 63
ADOBE DIRECTOR 11.0 26 Scripting Dictionary Events, messages, and handlers A key ... on . • User-defined events occur in turn be handled by clicking the movie. The following lists illustrate the system events that always occur during a movie, and the order in which would in response to actions ... a handler named mouseDown. When a movie plays, the following order: 1 prepareMovie 2 prepareFrame Immediately after the prepareFrame event, Director plays sounds, draws sprites, and performs any transitions or palette effects. For example, when a movie first starts, the prepareMovie...
ADOBE DIRECTOR 11.0 26 Scripting Dictionary Events, messages, and handlers A key ... on . • User-defined events occur in turn be handled by clicking the movie. The following lists illustrate the system events that always occur during a movie, and the order in which would in response to actions ... a handler named mouseDown. When a movie plays, the following order: 1 prepareMovie 2 prepareFrame Immediately after the prepareFrame event, Director plays sounds, draws sprites, and performs any transitions or palette effects. For example, when a movie first starts, the prepareMovie...
Scripting Guide
Page 69
... list. using propList() with no parameters // JavaScript syntax var sprite1Loc = propList(); // using the Lingo property list operator sprite1Loc = propList() -- ADOBE DIRECTOR 11.0 32 Scripting Dictionary Properties can appear more than once in the list: -- Lingo syntax sprite1Loc = [:] -- Lingo syntax workerList = ["Bruno",...Setting and retrieving items in the list. The following statements create empty property lists: -- The following statements illustrate defining the linear list workerList that indicates the value's position in lists You can also create empty property ...
... list. using propList() with no parameters // JavaScript syntax var sprite1Loc = propList(); // using the Lingo property list operator sprite1Loc = propList() -- ADOBE DIRECTOR 11.0 32 Scripting Dictionary Properties can appear more than once in the list: -- Lingo syntax sprite1Loc = [:] -- Lingo syntax workerList = ["Bruno",...Setting and retrieving items in the list. The following statements create empty property lists: -- The following statements illustrate defining the linear list workerList that indicates the value's position in lists You can also create empty property ...
Scripting Guide
Page 75
...method. • To replace an item in an array by using the constructor property: // JavaScript syntax var x = ["1", "2", "3"]; ADOBE DIRECTOR 11.0 38 Scripting Dictionary • To display the contents of a list, use the put() or trace() function, passing the variable ...(myArray); // displays 1,2,5,4 myArray.sort(); // sort myArray trace(myArray); // displays 1,2,4,5 myArray.splice(2, 0, "3"); The following example illustrates using the following example illustrates determining the number of items in an array by using the length property, and then returning the type of items in an array...
...method. • To replace an item in an array by using the constructor property: // JavaScript syntax var x = ["1", "2", "3"]; ADOBE DIRECTOR 11.0 38 Scripting Dictionary • To display the contents of a list, use the put() or trace() function, passing the variable ...(myArray); // displays 1,2,5,4 myArray.sort(); // sort myArray trace(myArray); // displays 1,2,4,5 myArray.splice(2, 0, "3"); The following example illustrates using the following example illustrates determining the number of items in an array by using the length property, and then returning the type of items in an array...
Scripting Guide
Page 79
...to refer to the second word in that handle cascading property access to either data or a specific cast member type, as illustrated in the previous two statements, access to access the second word in each language. The second statement below refers to retrieve ...access the number of cast members in the first paragraph. -- For example, the first statement below refers 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 ...
...to refer to the second word in that handle cascading property access to either data or a specific cast member type, as illustrated in the previous two statements, access to access the second word in each language. The second statement below refers to retrieve ...access the number of cast members in the first paragraph. -- For example, the first statement below refers 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 ...
Scripting Guide
Page 81
Object model diagrams The following diagrams illustrate the basic high-level relationships between the object groups and their APIs, see the Using Director topics in the Director Help Panel. If you know the C programming language, you can create your own custom Xtra extensions. ..., and other APIs, see the relevant API reference topics. For a reference of the available scripting objects and their hierarchies within Director. ADOBE DIRECTOR 11.0 44 Scripting Dictionary Scripting objects This category of objects, also known as Xtra extensions, provides access to the functionality of ...
Object model diagrams The following diagrams illustrate the basic high-level relationships between the object groups and their APIs, see the Using Director topics in the Director Help Panel. If you know the C programming language, you can create your own custom Xtra extensions. ..., and other APIs, see the relevant API reference topics. For a reference of the available scripting objects and their hierarchies within Director. ADOBE DIRECTOR 11.0 44 Scripting Dictionary Scripting objects This category of objects, also known as Xtra extensions, provides access to the functionality of ...
Scripting Guide
Page 92
...pass it . This means that you create Timeout objects that uses as a target, the target handler in a movie script is called . ADOBE DIRECTOR 11.0 55 Scripting Dictionary timeout(2).forget() Relaying system events with it a data property list (tData) -- This technique allows the use this ...technique: -- mph end Associating custom properties with Timeout objects If you want to a script instance object. The following example illustrates using this technique, the target data becomes data that is associated with a Timeout object, you may want to associate custom properties...
...pass it . This means that you create Timeout objects that uses as a target, the target handler in a movie script is called . ADOBE DIRECTOR 11.0 55 Scripting Dictionary timeout(2).forget() Relaying system events with it a data property list (tData) -- This technique allows the use this ...technique: -- mph end Associating custom properties with Timeout objects If you want to a script instance object. The following example illustrates using this technique, the target data becomes data that is associated with a Timeout object, you may want to associate custom properties...
Scripting Guide
Page 94
... used only to initialize new objects but they are useful in their values and predefined functionality. The following example illustrates using function literal syntax. It is considered good scripting practice to give constructor functions names that could be sure ...to all the features and functionality of the predefined Director objects. The following example illustrates one illustrated previously: Rectangle = function(w, h) { this.width = w; For example, suppose you want each type of the new expression. ADOBE DIRECTOR 11.0 57 Scripting Dictionary Custom classes One of ...
... used only to initialize new objects but they are useful in their values and predefined functionality. The following example illustrates using function literal syntax. It is considered good scripting practice to give constructor functions names that could be sure ...to all the features and functionality of the predefined Director objects. The following example illustrates one illustrated previously: Rectangle = function(w, h) { this.width = w; For example, suppose you want each type of the new expression. ADOBE DIRECTOR 11.0 57 Scripting Dictionary Custom classes One of ...
Scripting Guide
Page 99
...itself for the prototype var objCar = new Car(); trace(Car.color); // displays undefined trace(objCar.engine); // displays undefined ADOBE DIRECTOR 11.0 62 Scripting Dictionary You can delete a class variable or an instance variable by using the delete operator. Because an ...prototype object of a Car Car.setInitialSpeed = function(x) { Car.defaultSpeed = x; } Recommended steps for defining a class The following example illustrates this to refer to define a setInitialSpeed() method that property. Deleting variables You can also create a class method by using function literal ...
...itself for the prototype var objCar = new Car(); trace(Car.color); // displays undefined trace(objCar.engine); // displays undefined ADOBE DIRECTOR 11.0 62 Scripting Dictionary You can delete a class variable or an instance variable by using the delete operator. Because an ...prototype object of a Car Car.setInitialSpeed = function(x) { Car.defaultSpeed = x; } Recommended steps for defining a class The following example illustrates this to refer to define a setInitialSpeed() method that property. Deleting variables You can also create a class method by using function literal ...
Scripting Guide
Page 130
For an illustration of how the core objects relate to each other and to other objects in Director, see "Object model diagrams" on . A movie can consist of Director. Lingo syntax libScript = castLib("scripts") // JavaScript syntax var libScript = castLib("scripts"); • Use the Movie object's castLib ...represent the base layer through which almost all APIs and other object categories are the scripting objects, which represent media in Director, projectors, and the Adobe® Shockwave® Player. For example, if a movie contains a cast library named scripts, you could create ...
For an illustration of how the core objects relate to each other and to other objects in Director, see "Object model diagrams" on . A movie can consist of Director. Lingo syntax libScript = castLib("scripts") // JavaScript syntax var libScript = castLib("scripts"); • Use the Movie object's castLib ...represent the base layer through which almost all APIs and other object categories are the scripting objects, which represent media in Director, projectors, and the Adobe® Shockwave® Player. For example, if a movie contains a cast library named scripts, you could create ...
Scripting Guide
Page 133
... by name. • When referring to a cast member by using the member property of the Cast, Movie, or Sprite object. ADOBE DIRECTOR 11.0 96 Scripting Dictionary Member Represents a cast member within a cast library. Cast members are the media and script assets in its ... This method is faster than referring to a cast member by name, Director searches all cast libraries in script, a numbered reference to a cast member. • Use the top level member() function. -- The following examples illustrate creating a reference to a cast member that cast member, and retrieves the...
... by name. • When referring to a cast member by using the member property of the Cast, Movie, or Sprite object. ADOBE DIRECTOR 11.0 96 Scripting Dictionary Member Represents a cast member within a cast library. Cast members are the media and script assets in its ... This method is faster than referring to a cast member by name, Director searches all cast libraries in script, a numbered reference to a cast member. • Use the top level member() function. -- The following examples illustrate creating a reference to a cast member that cast member, and retrieves the...
Scripting Guide
Page 142
ADOBE DIRECTOR 11.0 105 Scripting Dictionary -- Lingo syntax objSprite = channel(3).sprite // JavaScript syntax var objSprite = channel(3).sprite; You can use a reference to a Sprite object to the cast ... flipV foreColor height ink left locH locV locZ member (Sprite) name (Sprite) quad rect (Sprite) right rotation skew spriteNum startFrame top width The following example illustrates changing the text of a text cast member from which sprite 5 was created. This change to the cast member will also be reflected in the sprite...
ADOBE DIRECTOR 11.0 105 Scripting Dictionary -- Lingo syntax objSprite = channel(3).sprite // JavaScript syntax var objSprite = channel(3).sprite; You can use a reference to a Sprite object to the cast ... flipV foreColor height ink left locH locV locZ member (Sprite) name (Sprite) quad rect (Sprite) right rotation skew spriteNum startFrame top width The following example illustrates changing the text of a text cast member from which sprite 5 was created. This change to the cast member will also be reflected in the sprite...
Scripting Guide
Page 143
..., cast members, and sprites. numbered reference objSpriteChannel = channel("background") -- The following example illustrates accessing the background color of frames in a particular sprite channel. ADOBE DIRECTOR 11.0 106 Scripting Dictionary See also Cast Library, Member, Movie, Player, sprite (Movie),...Channel object represents an entire sprite channel, regardless of the number of a sprite channel over to a sprite channel by name, Director searches all channels, starting from the lowest numbered channel, and retrieves the sprite channel's data when it contains. named reference ...
..., cast members, and sprites. numbered reference objSpriteChannel = channel("background") -- The following example illustrates accessing the background color of frames in a particular sprite channel. ADOBE DIRECTOR 11.0 106 Scripting Dictionary See also Cast Library, Member, Movie, Player, sprite (Movie),...Channel object represents an entire sprite channel, regardless of the number of a sprite channel over to a sprite channel by name, Director searches all channels, starting from the lowest numbered channel, and retrieves the sprite channel's data when it contains. named reference ...
Scripting Guide
Page 147
... For an illustration of how the cast member media types relate to each other and to other media types also exhibit this behavior. Some of the following methods or properties may apply only to sprites that are of a specific type of media. All other objects in Director® provide..., Flash) Property summary for the Animated GIF media type Property directToStage frameRate linked path (Movie) playBackMode 110 Chapter 6: Media Types The media types in Director, see "Object model diagrams" on , that is added to a movie as a cast member, it not only inherits the functionality of the core ...
... For an illustration of how the cast member media types relate to each other and to other media types also exhibit this behavior. Some of the following methods or properties may apply only to sprites that are of a specific type of media. All other objects in Director® provide..., Flash) Property summary for the Animated GIF media type Property directToStage frameRate linked path (Movie) playBackMode 110 Chapter 6: Media Types The media types in Director, see "Object model diagrams" on , that is added to a movie as a cast member, it not only inherits the functionality of the core ...