background image

46

Chapter 2:  Director Scripting Essentials

To delete an item from an array, use the Array object’s 

splice()

 method.

To replace an item in an array, use the Array object’s 

splice()

 method.

The following example illustrates using the Array object’s 

splice()

 method to add items to, 

delete items from, and replace items in an array.

// JavaScript syntax
var myArray = new Array("1", "2");
trace(myArray); displays 1,2

myArray.push("5"); // adds the value "5" to the end of myArray
trace(myArray); // displays 1,2,5

myArray.splice(3, 0, "4"); // adds the value "4" after the value "5"
trace(myArray); // displays 1,2,5,4

myArray.sort(); // sort myArray
trace(myArray); // displays 1,2,4,5

myArray.splice(2, 0, "3");
trace(myArray); // displays 1,2,3,4,5

myArray.splice(3, 2); // delete two values at index positions 3 and 4
trace(myArray); // displays 1,2,3

myArray.splice(2, 1, "7"); // replaces one value at index position 2 with "7"
trace(myArray); displays 1,2,7

Copying arrays

Assigning an array to a variable and then assigning that variable to a second variable does not 
make a separate copy of the array.

For example, the first statement below creates an array that contains the names of two continents, 
and assigns the array to the variable 

landList

. The second statement assigns the same list to a 

new variable 

continentList

. In the third statement, adding 

Australia

 to 

landList

 also 

automatically adds 

Australia

 to the array 

continentList

. This happens because both variable 

names point to the same Array object in memory.

// JavaScript syntax
var landArray = new Array("Asia", "Africa");
var continentArray = landArray;
landArray.push("Australia"); // this also adds "Australia" to continentList

To create a copy of an array that is independent of another array:

Use the Array object’s 

slice()

 method.

For example, the following statements create an array and then use 

slice()

 to make an 

independent copy of the array.

// JavaScript syntax
var oldArray = ["a", "b", "c"];
var newArray = oldArray.slice(); // makes an independent copy of oldArray

After 

newArray

 is created, editing either 

oldArray

 or 

newArray

 has no effect on the other.

Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING

Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...

Page 2: ...s of Macromedia Inc and may be registered in the United States or in other jurisdictions including internationally Other product names logos designs titles words or phrases mentioned within this publi...

Page 3: ...5 Conditional constructs 28 Events messages and handlers 33 Linear lists and property lists 38 JavaScript syntax arrays 45 CHAPTER 3 Writing Scripts in Director 49 Choosing between Lingo and JavaScrip...

Page 4: ...tor 91 Debugging in the Debugger window 94 Debugging projectors and Shockwave movies 98 Advanced debugging 99 CHAPTER 5 Director Core Objects 101 CHAPTER 6 Media Types 119 CHAPTER 7 Scripting Objects...

Page 5: ...ame navigation The scripting APIs enable you to extend and customize these types of functionality Intended audience This reference is intended for you if you want to do any of the following Extend the...

Page 6: ...e scripting language of Director you can choose to author and debug scripts by using JavaScript syntax The implementation of JavaScript in Director is referred to as JavaScript syntax throughout this...

Page 7: ...nt to find out how to work with sprites in script you should look for the Sprite section in the chapter Director Core Objects The scripting APIs are still listed in alphabetical order but they are cat...

Page 8: ...f the events that are available in Director Keywords Provides a list of the keywords that are available in Director Methods Provides a list of the methods that are available in Director Operators Prov...

Page 9: ...ains a behavior icon in the lower right corner When used in the Director Scripting Reference the term behavior refers to any script that you attach to a sprite or a frame This differs from the behavio...

Page 10: ...ere in alphabetical order These terms are used throughout the Director Scripting Reference so it will help to understand these terms before moving forward Constants are elements whose values do not ch...

Page 11: ...sends an enterFrame message If a script contains an enterFrame handler the statements within that handler will run because the handler received the enterFrame message If no scripts contain a handler f...

Page 12: ...t syntax All Lingo comments are preceded by double hyphens Each line of a comment that covers multiple lines must be preceded by double hyphens This is a single line Lingo comment This is a multiple l...

Page 13: ...erations or to make your statements easier to read For example the first math expression below yields a result of 13 while the second expression yields a result of 5 5 3 2 yields 13 5 3 2 yields 5 Eve...

Page 14: ...cript syntax does not include a line continuation symbol To break multiple lines of JavaScript syntax code add a carriage return at the end of a line and then continue the code on the following line S...

Page 15: ...cript syntax sprite 1 name This statement functions normally Sprite 1 name This statement results in a script error SPRITE 1 name This statement results in a script error Literal strings are always ca...

Page 16: ...hange Date Although not literally a data type in JavaScript syntax a Date object can be used to work with dates In Lingo use the date method to create a Date object and work with dates Float Lingo onl...

Page 17: ...rent data type to this property such as the integer 20 a script error occurs If you create your own custom properties their values can be of any data type regardless of the data type of the initial va...

Page 18: ...en soundHandler Both Lingo and JavaScript syntax treat spaces at the beginning or end of a string as a literal part of the string The following expression includes a space after the word to JavaScript...

Page 19: ...performing a mathematical operation on the integer for example by multiplying an integer by a decimal In JavaScript syntax you can convert a string or a decimal number to a whole number by using the p...

Page 20: ...ubject In JavaScript syntax you can also define your own custom constants by using the const keyword For example the following statement creates a constant named items and assigns it a value of 20 Thi...

Page 21: ...ee Using global variables on page 22 and Using local variables on page 24 Storing and updating values in variables Variables can hold data for any of the data types found in Director such as integers...

Page 22: ...ace provide identical functionality and are available to both Lingo and JavaScript syntax For example the following statement displays the value assigned to the variable myNumber in the Message window...

Page 23: ...u declare a global variable with the same name within two separate handlers an update to the variable s value in one handler will also be reflected in the variable in the other handler The following e...

Page 24: ...essions or change its value while a script is still within the handler that defined the variable Treating variables as local is a good idea when you want to use a variable only temporarily in one hand...

Page 25: ...tor In the following example the first statement illustrates a binary operator where the variables x and y are operands and the plus sign is the operator The second statement illustrates a unary opera...

Page 26: ...e Groups operations to control precedence order 5 When placed before a number reverses the sign of a number 5 Performs multiplication 4 mod Lingo only Performs modulo operation 4 Performs division 4 J...

Page 27: ...pe 1 Lingo only Two operands are not equal 1 The left operand is less than the right operand 1 The left operand is less than or equal to the right operand 1 The left operand is greater than the right...

Page 28: ...tement that instructs a script to go somewhere else The order in which statements are executed affects the order in which you should place statements For example if you write a statement that requires...

Page 29: ...tions In both Lingo and JavaScript syntax statements that check whether a condition is true or false begin with the term if In Lingo if the condition exists the statements following the term then are...

Page 30: ...when setting up multiple branching structures The case and switch case structures are often more efficient and easier to read than many if then else or if then structures In Lingo the condition to te...

Page 31: ...while a specific condition exists In Lingo to repeat an action a specified number of times you use a repeat with structure Specify the number of times to repeat as a range following repeat with In Ja...

Page 32: ...e loop until the condition is no longer true or until one of the statements sends the script outside the loop In the previous example the script exits the loop when the mouse button is released becaus...

Page 33: ...when the playhead enters a frame when a sprite is clicked and so on User defined events occur in response to actions that you define For example you could create an event that occurs when the backgrou...

Page 34: ...ayhead enters or exits a frame or a script returns a certain result The general order in which messages are sent to objects is as follows 1 Messages are sent first to behaviors attached to a sprite in...

Page 35: ...ior attached to the sprite To set up a handler that should be available any time the movie is in a specific frame put the handler in a behavior attached to the frame For example to have a handler resp...

Page 36: ...c values for the parameters that the handler uses You can use any type of value such as a number a variable that has a value assigned or a string of characters Values in the calling statement must be...

Page 37: ...ler should respond to The last line of the handler is the word end You can repeat the handler s name after end but this is optional In JavaScript syntax each handler begins with the word function foll...

Page 38: ...u use linear lists and property lists if values in your code are shared between Lingo and JavaScript syntax scripts If values in your code are used only in JavaScript syntax scripts it is recommended...

Page 39: ...ty list s elements as parameters of the function This function is useful when you use a keyboard that does not provide square brackets Properties can appear more than once in a given property list All...

Page 40: ...st Bruno Heather Carlos define a linear list name2 workerList 2 use bracketed access to retrieve Heather name2 workerList getAt 2 use getAt to retrieve Heather JavaScript syntax var workerList list Br...

Page 41: ...e foodList lunch displays Tofu Burger JavaScript syntax define a property list var foodList propList breakfast Waffles lunch Tofu Burger trace foodList breakfast displays Waffles trace foodList lunch...

Page 42: ...orkerList count displays 3 JavaScript syntax var workerList list Bruno Heather Carlos define a linear list trace workerList count displays 3 The following statements use ilk to determine a list s type...

Page 43: ...e a property list foodList breakfast Waffles lunch Tofu Burger foodList addProp dinner Spaghetti adds dinner Spaghetti JavaScript syntax define a property list var foodList propList breakfast Waffles...

Page 44: ...After the values in a linear or property list are sorted they will remain sorted even as values are added to or removed from the lists To sort a list Use the sort method For example the following stat...

Page 45: ...or JavaScript syntax Array objects For more complete information on using Array objects see one of the many third party resources on the subject Checking items in arrays You can determine the characte...

Page 46: ...rray to a variable and then assigning that variable to a second variable does not make a separate copy of the array For example the first statement below creates an array that contains the names of tw...

Page 47: ...a new sorted array Creating multidimensional arrays You can also create multidimensional arrays that enable you to work with the values of more than one array at a time In the following example the fi...

Page 48: ...48 Chapter 2 Director Scripting Essentials...

Page 49: ...guages typically work with a given object and event model in Director consider the following In general a given scripting language such as Lingo or JavaScripts syntax is wrapped around a given object...

Page 50: ...ing terminology on page 10 and Scripting syntax on page 12 Some of the scripting APIs are accessed slightly differently in each language For example you would use different constructs to access the se...

Page 51: ...one of the previously mentioned objects or its properties by using JavaScript syntax You must use the getProp method to retrieve a property value of one of the previously mentioned objects or its pro...

Page 52: ...oviding additional functionality that is available only to the specified media type For example a RealMedia cast member has access to the Member object s methods and properties but it also has additio...

Page 53: ...s The following diagrams illustrate the basic high level relationships between the object groups and their hierarchies within Director For information on object creation properties and methods and oth...

Page 54: ...ramming principles to your scripts Applying object oriented principles typically makes programming easier by letting you write less code and letting you use simpler logic to accomplish tasks in additi...

Page 55: ...mory can support Director can create multiple child objects from the same parent script just as Director can create multiple instances of a behavior for different sprites You can think of a parent scr...

Page 56: ...ge any of these characteristics as the movie plays without affecting the other child objects based on the same parent script Similarly a child object can have a property set to either TRUE or FALSE re...

Page 57: ...ject can contain a value independent of other child objects Sets up the initial values of the child objects properties and variables in the on new handler Contains additional handlers that control the...

Page 58: ...many child objects and each child object contains more than one handler The special parameter variable me tell the handlers in a child object that they are to operate on the properties of that object...

Page 59: ...duce additional child objects from the same parent script by issuing additional new statements You can create child objects without immediately initializing their property variables by using the rawNe...

Page 60: ...The following statement places a list of the handlers in the child object car1 into the variable myHandlerList Lingo syntax myHandlerList car1 handlers The resulting list would look something like th...

Page 61: ...mically added child objects For reference information on scriptInstanceList see scriptInstanceList on page 975 Using actorList You can set up a special list of child objects or any other objects that...

Page 62: ...lar time intervals or after a particular amount of time has elapsed Timeout objects can send messages that call handlers inside child objects or in movie scripts You create a timeout object by using t...

Page 63: ...ers If you omit this parameter Director looks for the specified handler in the movie script The following statement creates a timeout object named timer1 that calls an on accelerate handler in the chi...

Page 64: ...d on slowDown mph velocity velocity mph end Associating custom properties with timeout objects If you want to associate custom properties with a timeout object you may want to create a timeout object...

Page 65: ...ties and optionally modifying inherited ones The parent class from which a subclass is created is also known as a super class In prototype based languages such as JavaScript syntax there is no distinc...

Page 66: ...d functionality Constructor functions In JavaScript syntax a constructor function represents the class that contains the template from which new object instances are created Constructor functions crea...

Page 67: ...ntax In the following example a Circle constructor function uses the keyword this to specify the names of three properties that will be associated with new object instances The statement following the...

Page 68: ...y represents the constructor function itself The use of these properties is explained in the following sections Prototype objects As previously stated when you create a subclass it automatically inher...

Page 69: ...es The following example defines four instance variables make model color and speed in a constructor function These four instance variables are available directly from all object instances of the Car...

Page 70: ...any variables properties that are associated with a class and not an object instance There is always only one copy of a class variable regardless of the number of object instances that are created fr...

Page 71: ...ne a constructor function that is used as the template from which all object instances are initialized You may additionally define any instance variables in the constructor function by using the keywo...

Page 72: ...given object In the following example the constructor property contains a reference to the constructor function used to the create the object instance The value of the constructor property is actually...

Page 73: ...the complexity of your movie grows Before you begin writing scripts formulate your goal and understand what you want to achieve This is as important and typically as time consuming as developing stor...

Page 74: ...on by default With Auto Coloring off all text appears in the default color 6 To make new Script windows automatically format your scripts with proper indenting select Auto Format This option is on by...

Page 75: ...Comment and Uncomment buttons display the correct comment markers for that syntax Lingo uses double hyphens and JavaScript syntax uses double slashes To comment code Highlight the line or lines of cod...

Page 76: ...menus These member types and Xtra extensions often have their own documentation and you can find some information from within Director To display a list of available Xtra extensions Issue either put...

Page 77: ...s each type of Lingo element properties commands and so on in a different color To toggle Auto Formatting click the Auto Format button Auto Formatting adds the correct indenting to your scripts each t...

Page 78: ...e Case Sensitive check box to make the find case sensitive To specify which cast members to search Select the appropriate option under Search Scripts To start the search over from the beginning after...

Page 79: ...to quickly attach a common Lingo behavior to the frame To make this handler work with JavaScript syntax replace on exitFrame with function exitFrame and replace end with One of the most common frame...

Page 80: ...d in the Property inspector Behavior tab To attach existing behaviors to sprites or frames do one of the following Drag a behavior from a cast to a sprite or frame in the Score or for sprites to a spr...

Page 81: ...vantages of using linked scripts include the following One person can work on the Director file while another works on the script You can easily exchange scripts with others You can control the script...

Page 82: ...ing however is enabled for linked scripts To turn an internal script cast member into an external linked script cast member 1 Select the internal cast member and click the Script tab of the Property i...

Page 83: ...tion to situation There are not one or two standard procedures that resolve the problem You must use a variety of tools and techniques such as the following An overview and understanding of how script...

Page 84: ...ample a variable that contains a number should be called something like newNumber instead of ABC Basic debugging Debugging involves strategy and analysis not a standard step by step procedure This sec...

Page 85: ...at point before the script proceeds For information on how to insert breakpoints in a script see Debugging in the Debugger window on page 94 Solving simple problems When finding a bug it s a good idea...

Page 86: ...eir values in the Object inspector by selecting the name of the object and clicking Inspect Object in the Script window or in the Message window by using the put or trace functions The scripting eleme...

Page 87: ...rrent line of code Click Uncomment To turn breakpoints in the current line of code on and off Click Toggle Breakpoint To turn off all breakpoints Click Ignore Breakpoints To add the selected expressio...

Page 88: ...of the Input pane are deleted To delete a portion of the contents of the Output pane 1 Select the text to be deleted 2 Press the Backspace or Delete key To copy text in the Input or Output pane 1 Sel...

Page 89: ...Press Control Enter Windows or Control Return Macintosh Director finds the first blank line above the insertion point and executes each line of code after the blank line in succession To enter multip...

Page 90: ...those that support the interface method and whose names actually appear in the pop up menu Although some cast member media types such as 3D and DVD also support the interface method they do not appear...

Page 91: ...ts value is displayed and updated as the movie plays For more information on the Object inspector see Debugging in the Object inspector on page 91 When you are in debugging mode you can follow how a v...

Page 92: ...objects such as gMyChild Macromedia Flash objects such as gMyFlashObject for more information about using Flash objects in Director see the Using Director topics in the Director Help Panel Script expr...

Page 93: ...m s subproperties Select the item and press the Left arrow key Using Autopoll System properties such as milliseconds and colorDepth are only updated in the Object inspector when the Autopoll option is...

Page 94: ...you locate and correct errors in your scripts It includes several tools that let you do the following See the part of the script that includes the current line of code Track the sequence of handlers t...

Page 95: ...Stop Debugging button in the Debugger window This stops both the debugging session and the movie The Script window reappears in place of the Debugger window When the Debugger window opens it shows the...

Page 96: ...iables in the Variable pane To sort the variables by name click the word Name that appears above the variable names To sort the variables in reverse alphabetical order click the word Name a second tim...

Page 97: ...u can execute one line of code at a time and choose whether to execute nested handlers one line at a time or all at once To execute only the current line of code indicated by the green arrow Click the...

Page 98: ...able full script error dialog boxes to debug projectors and movies that contain Shockwave content To debug using the Message window Set the Player object s debugPlaybackEnabled property to TRUE When t...

Page 99: ...alues of variables and expressions by displaying their values in the Watcher pane of the Debugger window or the Object inspector Make changes one at a time Don t be afraid to change things in a handle...

Page 100: ...100 Chapter 4 Debugging Scripts in Director...

Page 101: ...ibrary Represents a single cast library within a movie A movie can consist of one or more cast libraries A cast library can consist of one or more cast members which represent media in a movie such as...

Page 102: ...y directly to access the Global object s methods and any defined global variables Assign _global to a variable Lingo syntax objGlobal _global JavaScript syntax var objGlobal _global Use the _global pr...

Page 103: ...access the Key object s methods and properties Assign _key to a variable Lingo syntax objKey _key JavaScript syntax var objKey _key Use the _key property directly Lingo syntax isCtrlDown _key controlD...

Page 104: ...movie from first to last and retrieves the member s data when it finds the named member This method is slower than referring to a cast member by number especially when referring to large movies that...

Page 105: ...to access the Mouse object s properties Assign _mouse to a variable Lingo syntax objMouse _mouse JavaScript syntax var objMouse _mouse Use the _mouse property directly Lingo syntax isDblClick _mouse d...

Page 106: ..._movie JavaScript syntax var objMovie _movie Use the Window object s movie property to access the movie in a particular window Lingo syntax objMovie _player window 2 movie JavaScript syntax var objMov...

Page 107: ...insertFrame unLoadMember label unLoadMovie marker updateFrame mergeDisplayTemplate updateStage Property aboutInfo frameTransition active3dRenderer idleHandlerPeriod actorList idleLoadMode allowCustomC...

Page 108: ...the top level _player property Assign _player to a variable Lingo syntax objPlayer _player JavaScript syntax var objPlayer _player Use the _player property directly Lingo syntax _player alert The movi...

Page 109: ...esent activeWindow netThrottleTicks alertHook organizationName applicationName productName applicationPath productVersion currentSpriteNum safePlayer debugPlaybackEnabled scriptingXtraList digitalVide...

Page 110: ...sign _sound to a variable Lingo syntax objSound _sound JavaScript syntax var objSound _sound Use the _sound property to access the Sound object s soundDevice property Lingo syntax objDevice _sound sou...

Page 111: ...following Use the top level sound method Lingo syntax objSoundChannel sound 2 JavaScript syntax var objSoundChannel sound 2 Use the Player object s sound property Lingo syntax objSoundChannel _player...

Page 112: ...ches all sprites that exist in the current frame of the Score starting from the lowest numbered channel and retrieves the sprite s data when it finds the named sprite This method is slower than referr...

Page 113: ...r will also be reflected in sprite 5 Lingo syntax labelText sprite 5 labelText member text Weeping Willow JavaScript syntax var labelText sprite 5 labelText member text Weeping Willow Property summary...

Page 114: ...prite channel s data when it finds the named sprite channel This method is slower than referring to a sprite channel by number especially when referring to large movies that contain many cast librarie...

Page 115: ...erty Assign _system to a variable Lingo syntax objSystem _system JavaScript syntax var objSystem _system Use the _system property directly Lingo syntax sysDate _system date JavaScript syntax var sysDa...

Page 116: ...perty Lingo syntax objWindow _player windowList 1 JavaScript syntax var objWindow _player windowList 1 Note When creating a named reference to a window by using either the top level window function or...

Page 117: ...ie Player Sprite window window windowList Property appearanceOptions resizable bgColor Window sizeState dockingEnabled sourceRect drawRect title Window fileName Window titlebarOptions image Window typ...

Page 118: ...118 Chapter 5 Director Core Objects...

Page 119: ...to the specified media type For example a RealMedia cast member has access to the Member object s methods and properties but it also has additional methods and properties that are specific to RealMedi...

Page 120: ...ber or to perform fine manipulations of the pixels of an image such as cropping drawing and copying pixels You can add a bitmap cast member to a movie by using the Movie object s newMember method Ling...

Page 121: ...tte associated with a bitmap cast member A color palette cast member does not have any methods or properties that can be accessed directly from it The following methods and properties are merely assoc...

Page 122: ...letteMember After you associate a bitmap cast member with a color palette cast member you cannot delete the color palette cast member until you remove its association with the bitmap cast member Metho...

Page 123: ...Some of these events also contain additional information that is passed as a second or third parameter to DVDeventNotification For more information on using the following events with the DVDeventNotif...

Page 124: ...DVD angleCount folder aspectRatio frameRate DVD audio DVD fullScreen audioChannelCount mediaStatus DVD audioExtension playRate DVD audioFormat resolution DVD audioSampleRate selectedButton audioStrea...

Page 125: ...Member Flash Component Represents a Macromedia Flash component that is embedded in a cast member or sprite that contains Flash content A Flash component provides prepackaged functionality that extend...

Page 126: ...n A resizable rectangular user interface button CheckBox A fundamental part of any form or web application can be used wherever you need to gather a set of true or false values that aren t mutually ex...

Page 127: ...nts that Director supports see Flash Component on page 125 Some of the following methods or properties may apply only to sprites that are created from a Flash movie cast member Method summary for the...

Page 128: ...ript syntax _movie newMember font Property summary for the Font media type See also Member clickMode rotation defaultRect scale Member defaultRectMode scaleMode eventPassMode sound Member fixedRate st...

Page 129: ...ickTime cast member You can add a QuickTime cast member to a movie by using the Movie object s newMember method Lingo syntax _movie newMember quicktimemedia JavaScript syntax _movie newMember quicktim...

Page 130: ...perty audio RealMedia scale Member currentTime QuickTime AVI staticQuality fieldOfView tilt hotSpotEnterCallback trackCount Member hotSpotExitCallback trackCount Sprite invertMask trackEnabled isVRMov...

Page 131: ...ber method Lingo syntax _movie newMember shockwave3d JavaScript syntax _movie newMember shockwave3d For more information on the objects and APIs that are available to 3D cast members see Chapter 8 3D...

Page 132: ...media type Property summary for the Shockwave Audio media type See also Member Event on cuePassed Method getError Flash SWA getErrorString isPastCuePoint pause RealMedia SWA Windows Media play RealMed...

Page 133: ...e newMember sound JavaScript syntax _movie newMember sound For more information on the objects and APIs you can use to control sound samples see Sound on page 110 and Sound Channel on page 111 See als...

Page 134: ...vie newMember vectorshape Some of the following methods or properties may apply only to sprites that are created from a vector shape cast member Method summary for the Vector Shape media type Property...

Page 135: ...mber windowsmedia Some of the following methods or properties may apply only to sprites that are created from a Windows Media cast member Property antiAlias imageEnabled backgroundColor originH broadc...

Page 136: ...a SWA Windows Media play RealMedia SWA Windows Media playFromToTime rewind Windows Media stop RealMedia SWA Windows Media Property audio Windows Media pausedAtStart RealMedia Windows Media directToSta...

Page 137: ...xtensions For an illustration of how the scripting objects relate to each other and to other objects in Director see Object model diagrams on page 53 Fileio Enables you to perform file input and outpu...

Page 138: ...yntax objNetLingo new xtra netlingo JavaScript syntax var objNetLingo new xtra netlingo Method summary for the NetLingo object getPosition writeChar openFile writeReturn readChar writeString Method br...

Page 139: ...ator Lingo syntax objSpeech new xtra speechxtra JavaScript syntax var objSpeech new xtra speechxtra Method summary for the SpeechXtra object Method voiceCount voiceSet voiceGet voiceSetPitch voiceGetA...

Page 140: ...e new operator Lingo syntax objXml new xtra xmlparser JavaScript syntax var objXml new xtra xmlparser Method summary for the XML Parser object Property summary for the XML Parser object Method count d...

Page 141: ...ide access to 3D functionality All objects in a 3D world are based on a basic object known as a node The simplest form of a node in a 3D world is a Group object a Group object is essentially the most...

Page 142: ...member family room and assigns it to the variable myCamera Lingo syntax myCamera member family room camera 2 JavaScript syntax var myCamera member family room getPropRef camera 2 Method summary for th...

Page 143: ...property gets the group at a specified index position in the list of groups In Lingo you use the group property directly from the 3D Member object to create a reference In JavaScript syntax you must u...

Page 144: ...ight property directly from the 3D Member object to create a reference In JavaScript syntax you must use the getPropRef method to create a reference The following example creates a reference to the th...

Page 145: ...ember Use the top level member function Lingo syntax 3dMember member magic JavaScript syntax var 3dMember member magic Use the Sprite object s member property Lingo syntax 3dMember sprite 1 member Jav...

Page 146: ...object The model property gets the model at a specified index position in the list of models In Lingo you use the model property directly from the 3D Member object to create a reference In JavaScript...

Page 147: ...rce at a specified index position in the list of model resources In Lingo you use the modelResource property directly from the 3D Member object to create a reference In JavaScript syntax you must use...

Page 148: ...the fourth motion of the 3D cast member athlete and assigns it to the variable myMotion Lingo syntax myMotion member athlete motion 4 JavaScript syntax var myMotion member athlete getPropRef motion 4...

Page 149: ...the variable myShader Lingo syntax myShader member triangle shader 2 JavaScript syntax var myShader member triangle getPropRef shader 2 Sprite Represents a 3D sprite created from a Shockwave 3D cast...

Page 150: ...list of textures In Lingo you use the texture property directly from the 3D Member object to create a reference In JavaScript syntax you must use the getPropRef method to create a reference The follow...

Page 151: ...or more information about JavaScript syntax constants see one of the many third party resources on the subject string Usage Lingo syntax JavaScript syntax Description String constant when used before...

Page 152: ...lls the handler clearEntry Lingo syntax on keyDown if _key key BACKSPACE then clearEntry _movie stopEvent end keyDown JavaScript syntax function keyDown if _key keyCode 51 clearEntry _movie stopEvent...

Page 153: ...s only to Enter on the numeric keypad For a movie that plays back as an applet use RETURN to specify both Return in Windows and Enter on the Macintosh Example This statement checks whether Enter is pr...

Page 154: ...sound soundEnabled false See also if not TRUE PI Usage Lingo syntax PI JavaScript syntax Math PI Description Constant returns the value of pi the ratio of a circle s circumference to its diameter as a...

Page 155: ...cter in a string because the quotation mark character itself is used by Lingo scripts to delimit strings Example This statement inserts quotation mark characters in a string Lingo syntax put Can you s...

Page 156: ...return between two lines in an alert message Lingo syntax _player alert Last line in the file RETURN Click OK to exit JavaScript syntax _player alert Last line in the file nClick OK to exit In Window...

Page 157: ...y key TAB then doNextField JavaScript syntax if _key keyCode 48 doNextField These statements move the playhead forward or backward depending on whether the user presses Tab or Shift Tab Lingo syntax i...

Page 158: ...soundEnabled property by setting it to TRUE Lingo syntax _sound soundEnabled TRUE JavaScript syntax _sound soundEnabled true See also FALSE if VOID Usage Lingo syntax VOID JavaScript syntax null Descr...

Page 159: ...tor is brought to the foreground This handler is useful when a projector runs in a window and the user can send it to the background to work with other applications When the projector is brought back...

Page 160: ...vaScript syntax function activateWindow statement s Description System message and event handler contains statements that run in a movie when the user clicks the inactive window and the window comes t...

Page 161: ...ge is sent The object reference me is passed to this event if it is used in a behavior The message is sent to behaviors and frame scripts If a sprite begins in the first frame that plays in the movie...

Page 162: ...playing in Lingo syntax on closeWindow perform general housekeeping here window 1 forget end JavaScript syntax function closeWindow perform general housekeeping here window 1 forget on cuePassed Usag...

Page 163: ...e if channel Sound1 then put CuePoint number named name occurred in sound 1 end if end JavaScript syntax function cuePassed channel number name if channel symbol Sound1 put CuePoint number named name...

Page 164: ...e Lingo syntax on deactivateWindow statement s end JavaScript syntax function deactivateWindow statement s Description System message and event handler contains statements that run when the window tha...

Page 165: ...hen either the number of available angles changed or the current user angle number changed The following additional information is passed to DVDeventNotification when this event occurs eventArg2 An in...

Page 166: ...VDeventNotification when this event occurs eventArg2 A value that indicates error condition The error condition will be one of the following values copyProtectFail Key exchange for DVD copy protection...

Page 167: ...new playback rate A value that is less than 0 indicates reverse playback mode A value that is greater than 0 indicates forward playback mode This value is the actual playback rate multiplied by 10 00...

Page 168: ...d in an on endSprite handler UOPchange Occurs when one of the available playback or search mechanisms has changed The following additional information is passed to DVDeventNotification when this event...

Page 169: ...or frame or movie scripts as follows To assign the handler to an individual sprite put the handler in a behavior attached to the sprite To assign the handler to an individual frame put the handler in...

Page 170: ...ontains statements that run when the handler receives an EvalScript message from a browser The parameter is a string passed in from the browser The EvalScript message can include a string that Directo...

Page 171: ...am switch aParam case dog cat tree _movie go aParam A possible calling statement for this in JavaScript would be EvalScript dog This handler takes an argument that can be a number or symbol Lingo synt...

Page 172: ...frame put the handler in the frame script To assign the handler to every frame unless explicitly instructed otherwise put the handler in a movie script The on exitFrame handler then executes every tim...

Page 173: ...cription pane in the Behavior Inspector when the behavior is selected The description string is optional Director sends the getBehaviorDescription message to the behaviors attached to a sprite when th...

Page 174: ...in the behavior The use of the handler is optional If no handler is supplied the cast member name appears in the tooltip The handler can contain embedded Return characters for formatting multiple line...

Page 175: ...op adds a parameter to the list named description Each element added to the list defines a property and the property s default format and comment values on getPropertyDescriptionList description descr...

Page 176: ...e attached to a sprite as a behavior script Avoid placing this handler in a cast member script Example This behavior shows a link examining the hyperlink that was clicked jump to a URL if needed then...

Page 177: ...oid placing Lingo that takes a long time to process in an on idle handler It is often preferable to put on idle handlers in frame scripts instead of movie scripts to take advantage of the on idle hand...

Page 178: ...script indicates the behavior was attached to the script channel In this case the spriteNum is 1 For each of these sprite types the handler must return TRUE or FALSE A value of TRUE indicates that the...

Page 179: ...uld have the same response throughout the movie set keyDownScript Director stops searching when it reaches the first location that has an on keyDown handler unless the handler includes the pass comman...

Page 180: ...statements that run when a key is released The on keyUp handler is similar to the on keyDown handler except this event occurs after a character appears if a field or text sprite is editable on the sc...

Page 181: ...vie put it in a movie script You can override an on keyUp handler by placing an alternative on keyUp handler in a location that Lingo checks before it gets to the handler you want to override For exam...

Page 182: ...in general put it in a cast member script To apply the handler to an entire frame put it in a frame script To apply the handler throughout the entire movie put it in a movie script You can override an...

Page 183: ...switches the bitmap of the button when the mouse rolls over and then off the button Lingo syntax property spriteNum on mouseEnter me Determine current cast member and switch to next in cast currentMe...

Page 184: ...switches the bitmap of the button when the mouse pointer rolls over and then back off the button Lingo syntax property spriteNum on mouseEnter me Determine current cast member and switch to next in ca...

Page 185: ...ndler is a good place to put Lingo that changes the appearance of objects such as buttons after they are clicked You can do this by switching the cast member assigned to the sprite after the sprite is...

Page 186: ...mouseUpOutside me statement s end JavaScript syntax function mouseUpOutside statement s Description System message and event handler sent when the user presses the mouse button on a sprite but release...

Page 187: ...his event is passed the sprite script or frame script reference me Example This statement displays the mouse location when the mouse pointer is over a sprite Lingo syntax on mouseWithin member Display...

Page 188: ...indow Usage Lingo syntax on openWindow statement s end JavaScript syntax function openWindow statement s Description System message and event handler contains statements that run when Director opens t...

Page 189: ...eful place to change sprite properties before the sprite is drawn If used in a behavior the on prepareFrame handler receives the reference me The go play and updateStage commands are disabled in an on...

Page 190: ...le the rest of the movie is loading into memory or checks and adjusts computer conditions such as color depth The go play and updateStage commands are disabled in an on prepareMovie handler Example Th...

Page 191: ...end JavaScript syntax function rightMouseDown statement s Description System message and event handler in Windows specifies statements that run when the right mouse button is pressed On Macintosh com...

Page 192: ...indow Help open end JavaScript syntax function rightMouseUp window Help open on runPropertyDialog Usage Lingo syntax on runPropertyDialog me currentInitializerList statement s end JavaScript syntax fu...

Page 193: ...aProp mass 10 force gravitationalConstant to 9 8 currentInitializerList setaProp gravitationalConstant 9 8 return currentInitializerList end JavaScript syntax function runPropertyDialog currentInitial...

Page 194: ...object created in Lingo When this happens the Lingo on sendXML handler is called and the same parameters are passed to the handler The following Lingo illustrates how the parameters are received by t...

Page 195: ...playhead enters the first frame of the movie The startMovie event occurs after the prepareFrame event and before the enterFrame event An on startMovie handler is a good place to put Lingo that initia...

Page 196: ...ame or the updateStage command is issued The stepFrame message is sent before the prepareFrame message Assign objects to actorList so they respond to stepFrame messages Objects must have an on stepFra...

Page 197: ...pMovie handler in a MIAW is called only when the movie plays through to the end or branches to another movie It isn t called when the window is closed or when the window is deleted by the forget windo...

Page 198: ...network streams Place the streamStatus handler in a movie script Example This handler determines the state of a streamed object and displays the URL of the object Lingo syntax on streamStatus URL sta...

Page 199: ...g handler plays the movie Attract Loop after users do nothing for the time set in the timeoutLength property It can be used to respond when users leave the computer Lingo syntax on timeOut _movie play...

Page 200: ...cript syntax function trayIconMouseDown statement s Description Movie and Window event handler Microsoft Windows only Contains statements that run when a user single clicks the system tray icon The tr...

Page 201: ...ight clicks the system tray icon Lingo syntax on trayIconRightMouseDown _movie delay 500 end JavaScript syntax function trayIconRightMouseDown _movie delay 500 See also Movie systemTrayIcon trayIconMo...

Page 202: ...e This handler moves sprite 3 to the coordinates stored in the variable centerPlace when the window that the movie is playing in is resized Lingo syntax on zoomWindow centerPlace point 10 10 sprite 3...

Page 203: ...n Usage Lingo syntax first part of a statement on this line second part of the statement third part of the statement Description Continuation symbol when used as the last character in a line indicates...

Page 204: ...t be separated by commas The syntax line containing expression3 and expresssion4 is an example of such a situation After Lingo encounters the first match it stops testing for additional matches If the...

Page 205: ...pression using firstCharacter and lastCharacter identifies a range of characters The expressions must be integers that specify a character or range of characters in the chunk Characters include letter...

Page 206: ...o syntax end case Description Keyword ends a case statement Example This handler uses the end case keyword to end the case statement on keyDown case _key key of a _movie go Apple b c _movie puppetTran...

Page 207: ...e being a certain value exists Example The following handler searches for the position of the first vowel in a string represented by the variable testString As soon as the first vowel is found the exi...

Page 208: ...r global variables will be reset to the initial values unless you first check to see that they aren t already set A global variable can be declared in any handler or script Its value can be used by an...

Page 209: ...ructure All parts of the condition must be evaluated execution does not stop at the first condition that is met or not met Thus faster code may be created by nesting if then statements on separate lin...

Page 210: ...the first condition the second condition is checked only if the first condition is TRUE spriteUnderCursor rollOver if spriteUnderCursor 25 and MeasureTimeSinceIStarted then _player alert You found th...

Page 211: ...e green because this is the entire chunk between the commas The following statement looks for the third through fifth items in the chunk expression Because there are only four items in the chunk expre...

Page 212: ...his handler loops the movie between the previous marker and the current frame on exitFrame _movie goLoop end exitFrame me Usage Lingo syntax me Description Special variable used within parent scripts...

Page 213: ...n me end on stepFrame me ProcessData me end This is the second set property myData on new myAddress theData myData theData return myAddress end on stepFrame myAddress ProcessData myAddress end See als...

Page 214: ...f a field cast member named CustomMenu2 which can be used to specify the content of a custom File menu To install this menu use installMenu member CustomMenu2 while the movie is running The Convert me...

Page 215: ...next Description Keyword refers to the next marker in the movie and is equivalent to the phrase the marker 1 Example This statement sends the playhead to the next marker in the movie go next This han...

Page 216: ...using the handler name A handler can accept arguments as input values and returns a value as a function result Handlers can be defined in behaviors movie scripts and cast member scripts A handler in...

Page 217: ...y needs to be declared to be accessed You can refer to a property within a parent script or behavior script without using the me keyword However to refer to a property of a parent script s ancestor us...

Page 218: ...nserts the resulting string after a specified chunk in a container without replacing the container s contents If chunkExpression specifies a nonexistent target chunk the string value is inserted as ap...

Page 219: ...lList put elk before word 2 of animalList The result is the string fox elk dog cat The same can be accomplished using this syntax put fox dog cat into animalList put elk before animalList word 2 See a...

Page 220: ...tion until the user presses or releases the mouse button While in a repeat loop Lingo ignores other events To check the current key in a repeat loop use the keyPressed property Only one handler can ru...

Page 221: ...are best used for short fast operations or when users are idle If you need to process something for several seconds or more evaluate the function in a loop with some type of counter or test to track p...

Page 222: ...ariable in someList Description Keyword assigns successive values from the specified list to the variable While in a repeat loop Lingo ignores other events except keypresses To check the current key i...

Page 223: ...n an on new handler gives you a way to pass back a reference to an object that was created so it can be assigned to a variable name The return keyword isn t the same as the character constant RETURN w...

Page 224: ...lso property sprite intersects Usage Lingo syntax sprite sprite1 intersects sprite2 sprite sprite1 intersects sprite2 Description Keyword operator that compares the position of two sprites to determin...

Page 225: ...comparison operator with a precedence level of 5 Note The dot operator is required whenever sprite1 is not a simple expression that is one that contains a math operation Example This statement checks...

Page 226: ...gers that specify a word in the chunk Chunk expressions refer to any character word item or line in any source of characters Sources of characters include field and text cast members and variables tha...

Page 227: ...ny of the remaining statements in the handler This differs from the exit keyword which returns to the handler from which the current handler was called The abort command does not quit Director Paramet...

Page 228: ...lculated If numericExpression is an integer the absolute value is also an integer If numericExpression is a floating point number the absolute value is also a floating point number Example This statem...

Page 229: ...00 JavaScript syntax member movie1 activateAtLoc point 100 200 See also DVD activateButton Usage Lingo syntax dvdObjRef activateButton JavaScript syntax dvdObjRef activateButton Description DVD method...

Page 230: ...s value Required A value to add to the linear list Example These statements add the value 2 to the list named bids The resulting list is 3 4 1 2 Lingo syntax bids 3 4 1 bids add 2 JavaScript syntax bi...

Page 231: ...Script syntax member Scene model Ear meshdeform mesh 1 textureLayer add See also meshDeform modifier textureLayer textureCoordinateList addAt Usage list AddAt position value Description List command f...

Page 232: ...Example The first line of this statement creates a texture named Rough from the cast member named Cedar and stores it in the variable t1 The second line applies the texture as a backdrop at the point...

Page 233: ...mbol preserveWorld Description 3D command adds a node to the list of children of another node and removes it from the list of children of its former parent An equivalent to this method would be to set...

Page 234: ...t syntax member 3D camera MyCamera addChild member 3D model Bird symbol preserveWorld See also parent addToWorld removeFromWorld addModifier Usage Lingo syntax member whichCastmember model whichModel...

Page 235: ...tion 3D camera command adds an overlay to the end of a camera s list of overlays Parameters texture Required The texture to apply to the overlay locWithinSprite Required A 2D loc at which the overlay...

Page 236: ...property You can avoid duplicate properties by using the setaProp command to change the new entry s property This command returns an error when used with a linear list Parameters property Required Th...

Page 237: ...nd to take a model group camera or light out of the 3D world without deleting it Use the isInWorld command to test whether a model group camera or light has been added or removed from the world Parame...

Page 238: ...of the horizontal portion of the vertical control handle vertControlLocV Optional An integer that specifies the location of the vertical portion of the vertical control handle Example This line adds a...

Page 239: ...append Usage list append value append list value Description List command for linear lists only adds the specified value to the end of a linear list This differs from the add command which adds a val...

Page 240: ...thod is useful for projectors and MIAWs that play back without a title bar Parameters None Example Lingo syntax on mouseUp me _player appMinimize end JavaScript syntax function mouseUp _player appMini...

Page 241: ...DegreesToRads 30 0 5236 See also cos PI sin beep Usage Lingo syntax _sound beep intBeepCount JavaScript syntax _sound beep intBeepCount Description Sound method causes the computer s speaker to beep t...

Page 242: ...Every call to beginRecording must be matched by a call to endRecording which ends the Score generation session Parameters None Example When used in the following handler the beginRecording keyword beg...

Page 243: ...on Lingo only converts the two specified integers to 32 bit binary numbers and returns a binary number whose digits are 1 s in the positions where both numbers had a 1 and 0 s in every other position...

Page 244: ...tion of the integer 1 and returns a new number put 1 bitNot 2 See also bitAnd bitOr bitXor bitOr Usage bitOr integer1 integer2 Description Function Lingo only converts the two specified integers to 32...

Page 245: ...s a binary number whose digits are 1 s in the positions where the given numbers digits do not match and 0 s in the positions where the digits are the same The result is the new binary number which Lin...

Page 246: ...c sound 2 breakLoop See also endTime Sound Channel browserName Usage browserName pathName browserName browserName enabled trueOrFalse Description System property command and function specifies the pat...

Page 247: ...one Example This example creates a simple model resource whose type is mesh specifies its properties and then creates a new model using the model resource The process is outlined in the following line...

Page 248: ...oth nm build nm member Shapes newModel TriModel nm See also generateNormals newMesh face cacheDocVerify Usage Lingo syntax cacheDocVerify setting cacheDocVerify JavaScript syntax cacheDocVerify symbol...

Page 249: ...e movie calls a URL See also cacheSize clearCache cacheSize Usage Lingo syntax cacheSize Size cacheSize JavaScript syntax cacheSize Size cacheSize Description Function and command sets the cache size...

Page 250: ...r If scriptInstance is a single script instance an error alert occurs if the handler is not defined in the script s ancestor script If scriptInstance is a list of script instances the message is sent...

Page 251: ...end on run me put Animal running with legCount legs end on walk me put Animal walking with legCount legs end The following statements use the parent script and ancestor script This statement creates...

Page 252: ...is a list of script instances the message is sent to each item in the list in turn if the handler is not defined in the ancestor script no alert is generated args Optional Any optional parameters to...

Page 253: ...ame Usage Lingo syntax spriteObjRef callFrame flashFrameNameOrNum JavaScript syntax spriteObjRef callFrame flashFrameNameOrNum Description Command used to call a series of actions that reside in a fra...

Page 254: ...d deleteCamera commands to create and delete cameras in a 3D cast member The camera property of a sprite is the first camera in the list of cameras of the sprite The camera referred to by sprite which...

Page 255: ...all cast members that have the specified load tag Parameters intLoadTag Required An integer that specifies a group of cast members that have been queued for loading when the computer is idle Example...

Page 256: ...tLib 2 JavaScript syntax var parts castLib 2 See also Cast Library castLibNum channel Top level Usage Lingo syntax channel soundChannelNameOrNum JavaScript syntax channel soundChannelNameOrNum Descrip...

Page 257: ...ment sets the variable named myChannel to sound channel 2 Lingo syntax myChannel _sound channel 2 JavaScript syntax var myChannel _sound channel 2 See also Sound sound Sound Channel chapterCount Usage...

Page 258: ...d cast member Headline appears and assigns the result to the variable location Lingo syntax location member Headline charPosToLoc 50 JavaScript syntax var location member Headline charPosToLoc 50 char...

Page 259: ...tenth characters put chars Macromedia 6 20 media See also char of length offset string function number characters charToNum Usage stringExpression charToNum charToNum stringExpression Description Func...

Page 260: ...s Usage Lingo syntax clearAsObjects JavaScript syntax clearAsObjects Description Command resets the global Flash Player used for ActionScript objects and removes any ActionScript objects from memory T...

Page 261: ...learCache Description Command clears the Director network cache The clearCache command clears only the cache which is separate from the browser s cache If a file is in use it remains in the cache unti...

Page 262: ...e error condition Parameters None Example This handler checks to see if an out of memory error occurred for a Flash cast member named Dali which was streaming into memory If a memory error occurred th...

Page 263: ...e _movie beginRecording repeat with counter 1 to 50 _movie clearFrame _movie frameScript 25 _movie updateFrame end repeat _movie endRecording end JavaScript syntax function newScore _movie beginRecord...

Page 264: ...camera whichCamera clone cloneName Description 3D command creates a copy of the model group light or camera and all of its children The clone shares the parent of the model group light or camera from...

Page 265: ...s children and the model resources shaders and textures used by Teapot and its children The variable teapotCopy is a reference to the cloned model teapotCopy member 3D World model Teapot cloneDeep Tea...

Page 266: ...ames it and inserts it into a cast member The source cast member must be finished loading for this command to work correctly Parameters newMotionName Required Specifies the name of the newly cloned mo...

Page 267: ...u will generate errors when scripts try to communicate or interact with the forgotten window Parameters None Example This statement closes the window named Panel which is in the subfolder MIAW Sources...

Page 268: ...cify a pathname If whichFile is omitted all open Xlibraries are closed Example This statement closes all open Xlibrary files closeXlib This statement closes the Xlibrary Video Disc Xlibrary when it is...

Page 269: ...color paletteIndex 255 sprite 6 color color 137 put sprite 6 color paletteIndex 137 JavaScript syntax put sprite 6 color paletteIndex 255 sprite 6 color color 137 put sprite 6 color paletteIndex 137...

Page 270: ...sprite 1 locH _movie constrainH 2 _mouse mouseH JavaScript syntax sprite 1 locH _movie constrainH 2 _mouse mouseH See also constrainV Movie constrainV Usage Lingo syntax _movie constrainV intSpriteNum...

Page 271: ...hen the mouse pointer moves past the edge of the gauge Lingo syntax sprite 1 locV _movie constrainV 2 _mouse mouseH JavaScript syntax sprite 1 locV _movie constrainV 2 _mouse mouseH See also constrain...

Page 272: ...ransparency to apply to the copied pixels The range of values is from 0 to 255 The default value is 255 opaque Using a value less than 255 forces the ink setting to be blend or blendTransparent if it...

Page 273: ...level of the copied image is 50 so it is semi transparent revealing the part of member flower it is pasted over See also color image copyToClipBoard Usage Lingo syntax memberObjRef copyToClipBoard Ja...

Page 274: ...atan PI sin count Usage Lingo syntax list count object count JavaScript syntax list count object count Description Function returns the number of entries in a linear or property list the number of pr...

Page 275: ...e copyPixels function Mask objects aren t image objects they re useful only with the copyPixels function for duplicating the effect of mask sprite ink To save time if you plan to use the same image as...

Page 276: ...age object testImage and ignores pixels with alpha values below 50 newMatte testImage createMatte 128 See also copyPixels createMask crop Image Usage Lingo syntax imageObjRef crop rectToCropTo JavaScr...

Page 277: ...d Example This statement sets an existing bitmap member to a snapshot of the Stage then crops the resulting image to a rectangle equal to sprite 10 Lingo syntax stageImage _movie stage image spriteIma...

Page 278: ...o syntax _player cursor intCursorNum _player cursor cursorMemNum maskMemNum _player cursor cursorMemRef JavaScript syntax _player cursor intCursorNum _player cursor cursorMemNum maskMemNum _player cur...

Page 279: ...Num must be one of the following integer values Value Description 1 0 Arrow 1 I Beam 2 Cross 3 Crossbar 4 Watch Macintosh or Hour glass Windows 5 North South East West NSEW 6 North South NS 200 Blank...

Page 280: ...sor resource number as a global variable that remains in memory between movies 282 Wait mouse down 1 283 Wait mouse down 2 284 Vertical size 285 Horizontal size 286 Diagonal size 290 Closed hand 291 N...

Page 281: ...d when using a cast member number and its optional mask to identify the cursor An integer that specifies the mask number of cursorMemNum cursorMemRef Required when using a cast member reference to ide...

Page 282: ...go syntax Create a new JavaScript syntax Date object using the new Date syntax Case is important in JavaScript syntax For example using new date results in a runtime error When creating a date using L...

Page 283: ...m to 23 11 00pm mm Optional when creating an JavaScript syntax Date object A two digit integer that specifies the minute of the new Date object Valid values range from 0 to 59 ss Optional when creatin...

Page 284: ...customize the date display by using the Date and Time control panel Parameters yyyymmdd Optional A number that specifies the four digit year yyyy two digit month mm and two digit day dd of the returne...

Page 285: ...ler when the playhead is not moving use the milliseconds property of the System object and wait for the specified amount of time to pass before exiting the frame Parameters intTicks Required An intege...

Page 286: ...if you try to delete an object that isn t in the list Director displays an alert Parameters number Required Specifies the position of the item in the list to delete Example This statement deletes the...

Page 287: ...red A string or an integer that specifies the name or index position of the camera to delete Example This statement deletes two cameras from the cast member named Room first the camera named Camera06...

Page 288: ...dateFrame deleteGroup Usage member whichCastmember deleteGroup whichGroup member whichCastmember deleteGroup index Description 3D command removes the group from the cast member and the 3D world Childr...

Page 289: ...ight ambientRoomLight member Room deleteLight 6 See also newLight deleteModel Usage member whichCastmember deleteModel whichModel member whichCastmember deleteModel index Description 3D command remove...

Page 290: ...e two model resources from the cast member named StreetScene member StreetScene deleteModelResource HouseB member StreetScene deleteModelResource 3 See also newModelResource newMesh deleteMotion Usage...

Page 291: ...ult Tuesday Friday deleteProp Usage list deleteProp item deleteProp list item Description List command deletes the specified item from the specified list For linear lists replace item with the number...

Page 292: ...r of StreetScene member StreetScene deleteShader Road member StreetScene deleteShader 3 See also newShader shaderList deleteTexture Usage member whichCastmember deleteTexture whichTexture member which...

Page 293: ...ies the index position of the vertex to delete Example This line removes the second vertex point in the vector shape Archie Lingo syntax member Archie deleteVertex 2 JavaScript syntax member Archie de...

Page 294: ...ngExpression Description Command evaluates a string and executes the result as a script statement This command is useful for evaluating expressions that the user has typed and for executing commands s...

Page 295: ...by the y component of vector2 then multiply the z component of vector1 by the z component of vector2 and finally add the three products together This method is identical to dotProduct function Parame...

Page 296: ...the vectors pos5 and pos6 is 45 The getNormalized function returns the normalized values of pos5 and pos6 and stores them in the variables norm1 and norm2 The dotProduct of norm1 and norm2 is 0 7071 w...

Page 297: ...yntax imageObjRef draw x1 y1 x2 y2 colorObjOrParamList imageObjRef draw point x y point x y colorObjOrParamList imageObjRef draw rect colorObjOrParamList JavaScript syntax imageObjRef draw x1 y1 x2 y2...

Page 298: ...his statement draws a 1 pixel dark red diagonal line from point 0 0 to point 128 86 within the image of member Happy The following statement draws a dark red 3 pixel unfilled oval within the image of...

Page 299: ...copy also affect the original list To see an example of duplicate list function used in a completed movie see the Vector Shapes movie in the Learning Lingo folder inside the Director application folde...

Page 300: ...mber duplicateFrame Usage Lingo syntax _movie duplicateFrame JavaScript syntax _movie duplicateFrame Description Movie method duplicates the current frame and its content inserts the duplicate frame a...

Page 301: ...x spriteObjRef enableHotSpot hotSpotID trueOrFalse Description QTVR QuickTime VR command determines whether a hot spot in a QTVR sprite is enabled TRUE or disabled FALSE Parameters hotSpotID Required...

Page 302: ...syntax function animBall numberOfFrames _movie beginRecording var horizontal 0 var vertical 100 for var i 1 i numberOfFrames i _movie go 1 sprite 20 member member Ball sprite 20 locH horizontal sprite...

Page 303: ...i start to finish member i erase end repeat end deleteMember JavaScript syntax function deleteMember start finish for var i start i finish i member i erase See also Member new error Usage Lingo synta...

Page 304: ...upported by Netscape 3 x and later LiveConnect evaluates the string passed by externalEvent as a function call JavaScript authors must define and name this function in the HTML header In the movie the...

Page 305: ...o create a model using extrude3D 1 Create a new extruder model resource in a 3D cast member textResource member textMember extrude3D member 3DMember 2 Create a new model using the model resource creat...

Page 306: ...he movie s Stage color property The value is any integer value from 0 to 255 Use 0 to 255 for movies in 8 bit color and 0 to 15 for movies in 4 bit color swBanner A string that specifies the text to b...

Page 307: ...ter value by name this method returns the value of the first parameter whose name matches paramNameOrNum The match is not case sensitive If no matching parameter value is found this method returns VOI...

Page 308: ...oreground color The value is any integer value from 0 to 255 Use 0 to 255 for movies in 8 bit color and 0 to 15 for movies in 4 bit color swFrame A string value that is the name assigned to a given fr...

Page 309: ...tion is useful for down sampling 32 bit images with alpha channels Example This statement places the alpha channel of the image of member 1 into the variable mainAlpha mainAlpha member 1 image extract...

Page 310: ...oundChannelObjRef fadeOut intMilliseconds Description Sound Channel method gradually reduces the volume of a sound channel to zero over a given number of milliseconds The current pan setting is retain...

Page 311: ...volume is 0 to 255 intMilliseconds Optional An integer that specifies the number of milliseconds over which the volume is changed to intVolume The default value is 1000 milliseconds 1 second if no va...

Page 312: ...illing a region specified by coordinates An integer that specifies the left side of the region to fill top Required if filling a region specified by coordinates An integer that specifies the top side...

Page 313: ...Script syntax spriteObjRef findLabel whichLabelName Description Function this function returns the frame number within the Flash movie that is associated with the label name requested A 0 is returned...

Page 314: ...ction as the findPosNear command except that findPos is VOID when the specified property is not in the list Parameters property Required The property whose position is identified Example This statemen...

Page 315: ...h 4 Raja 0 Answers findPosNear Ni The result is 1 because Ni most closely matches Nile the first property in the list See also findPos finishIdleLoad Usage Lingo syntax _movie finishIdleLoad intLoadTa...

Page 316: ...coordinates The flashToStage and the corresponding stageToFlash functions are helpful for determining which Flash movie coordinate is directly over a Director Stage coordinate For both Flash and Dire...

Page 317: ...mber Example This statement converts the integer 1 to the floating point number 1 put 1 float 1 0 Math operations can be performed using float if any of the terms is a float value the entire operation...

Page 318: ...layer method flushes any waiting mouse or keyboard events from the Director message queue Generally this is useful when script is in a tight loop and the author wants to make sure any mouse clicks or...

Page 319: ...Movie closeWindow or deactivateWindow handlers If there are many global references to the movie in a window the window doesn t respond to the forget method Parameters None Example This statement instr...

Page 320: ...d dropFrame Required Compensates for the color NTSC frame rate which is not exactly 30 frames per second and is meaningful only if FPS is set to 30 frames per second Normally this parameter is set to...

Page 321: ...nal if testing whether a single frame s cast members have been downloaded An integer that specifies the individual frame to test If omitted frameReady determines whether the cast members used in any f...

Page 322: ...s forward from the current location a specified number of frames when playback is paused Stepping backward is not supported by either Windows or Macintosh system software for DVD playback Parameters i...

Page 323: ...s function differs from freeBlock in that it reports all free memory not just contiguous memory On the Macintosh selecting Use System Temporary Memory in the Director General Preferences or in a proje...

Page 324: ...s Each vertex normal is the average of the face normals of all of the faces that share the vertex Use of the smooth parameter results in a more rounded appearance of the faces of the mesh except at th...

Page 325: ...ters itemNameOrNum Required For linear lists an integer that specifies the index position of the value in the list to return for property lists a symbol Lingo or a string JavaScript syntax that specif...

Page 326: ...t which consists of 10 12 15 22 put getAt answers 3 15 The same result can be returned using bracket access put answers 3 15 The following example extracts the first entry in a list containing two ent...

Page 327: ...ave the following possible getError integer values and corresponding getErrorString messages Flash movie cast members have the following possible getError values FALSE No error occurred memory There i...

Page 328: ...llowing handler checks to see whether an error occurred for a Flash cast member named Dali which was streaming into memory If an error occurred and it was a memory error the script uses the unloadCast...

Page 329: ...ror occurred When there is no error this function returns VOID Parameters None Example These statements check an error after parsing a string containing XML data errCode parserObj parseString member X...

Page 330: ...ber Norma Desmond Speaks getErrorString end if end JavaScript syntax function exitFrame var memNor member Norma Desmond Speaks getError if memNor 0 member Display Error Name text member Norma Desmond...

Page 331: ...global Flash properties can be tested focusRect and spriteSoundBufferTime See the Flash documentation for descriptions of these properties Parameters targetName Required A string that specifies the na...

Page 332: ...ions If it is the Director movie navigates to frame Lions If it isn t the Director movie stays in the current frame and the Flash movie continues to play Lingo syntax on exitFrame if sprite 1 getFrame...

Page 333: ...Example This statement displays a detailed property list of information about the user s hardware put getRendererServices getHardwareInfo present 1 vendor NVIDIA Corporation model 32MB DDR NVIDIA GeFo...

Page 334: ...ned by getLatestNetID can be used as a parameter in the netDone netError and netAbort functions to identify the last network operation Note This function is included for backward compatibility It is r...

Page 335: ...list is URL encoded and the URL sent is urlstring encodedproplist Use the optional parameter serverOSString to encode any return characters in propertylist The value defaults to UNIX but may be set t...

Page 336: ...e theNetID getNetText http BigServer com sample txt end on exitFrame me if netDone theNetID then sprite spriteNum member text netTextResult theNetID end if end This example retrieves the results of a...

Page 337: ...han the number of files in the folder The getNthFileNameInFolder function doesn t work with URLs To specify other folder names use the pathname operator or the full path defined in the format for the...

Page 338: ...alue associated with the position or property Example This statement identifies the position of the value 12 in the linear list Answers which consists of 10 12 15 22 put Answers getOne 12 The result i...

Page 339: ...w numbers by using the optional integer parameter Raw integer color values are also useful because they contain alpha layer information as well as color when the image is 32 bit The alpha channel info...

Page 340: ...tax on playMusic sound 2 queue member Chimes sound 2 queue member member introMusic startTime 3000 endTime 10000 loopCount 5 loopStartTime 8000 loopEndTime 8900 put sound 2 getPlayList sound 2 play en...

Page 341: ...vaScript syntax _player getPref stringPrefName Description Player method retrieves the content of the specified file When you use this method replace stringPrefName with the name of a file created by...

Page 342: ...getPref Test member Total Score text theText See also Player setPref getPos Usage list getPos value getPos list value Description List function identifies the position of a value in a list When the sp...

Page 343: ...ored using setPref To see an example of getPref used in a completed movie see the Read and Write Text movie in the Learning Lingo folder inside the Director application folder Parameters prefFileName...

Page 344: ...pAt 2 b The result is 20 which is the value associated with b getRendererServices Usage getRendererServices getRendererServices whichGetRendererServicesProperty Description 3D command returns the rend...

Page 345: ...tatus URLString Description Function returns a property list matching the format used for the globally available tellStreamStatus function that can be used with callbacks to sprites or objects The lis...

Page 346: ...ter to TRUE the default returns the current value of the variable as a string Setting the returnValueOrReference parameter to FALSE returns the current literal value of the Flash variable If the value...

Page 347: ...ichCastmember node whichNode getWorldTransform scale Description 3D command returns the world relative transform of the model group camera or light represented by node The transform property of a node...

Page 348: ...n cause frame numbers to change Using marker labels also makes it easier to read scripts Calling go with the movieName parameter loads frame 1 of the movie If go is called from within a handler the ha...

Page 349: ...to the marker named Memory in the movie named Noh Tale to Tell Lingo syntax _movie go Memory Noh Tale to Tell JavaScript syntax _movie go Memory Noh Tale to Tell The following handler tells the movie...

Page 350: ...ingo syntax _movie goLoop JavaScript syntax _movie goLoop See also go goNext goPrevious Movie goNext Usage Lingo syntax _movie goNext JavaScript syntax _movie goNext Description Movie method sends the...

Page 351: ...urrent frame if the current frame has a marker Frame 1 if the movie contains no markers Parameters None Example This statement sends the playhead to the previous marker in the movie Lingo syntax _movi...

Page 352: ...k if the movie is on an Internet server but you must include the extension with the filename When performing testing on a local disk or network media must be located in a directory named dswmedia If a...

Page 353: ...ay targetName Optional An HTML parameter that identifies the frame or window in which the page is loaded If targetName is a window or frame in the browser gotoNetPage replaces the contents of that win...

Page 354: ...t member newAlien is the group Direct01 put member newAlien group 4 group Direct01 See also newGroup deleteGroup child 3D parent halt Usage Lingo syntax _movie halt JavaScript syntax _movie halt Descr...

Page 355: ...handlers Usage scriptObject handlers Description This function returns a linear list of the handlers in the given scriptObject Each handler name is presented as a symbol in the list This function is u...

Page 356: ...myRecipes line myLineCount 1 hilite See also char of item of line of word of delete mouseChar mouseLine mouseWord field selection function selEnd selStart hitTest Usage Lingo syntax spriteObjRef hitT...

Page 357: ...r Message Line text _movie go _movie frame HMStoFrames Usage HMStoFrames hms tempo dropFrame fractionalSeconds Description Function converts movies measured in hours minutes and seconds to the equival...

Page 358: ...r second Neither the dropFrame nor fractionalSeconds arguments is used put HMStoFrames 00 01 30 10 30 FALSE FALSE 2710 This statement converts 600 seconds into minutes put framesToHMS 600 1 0 0 00 10...

Page 359: ...e identity Description 3D command sets the transform to the identity transform which is transform 1 0000 0 0000 0 0000 0 0000 0 0000 1 0000 0 0000 0 0000 0 0000 0 0000 1 0000 0 0000 0 0000 0 0000 0 00...

Page 360: ...ndlerPeriod idleLoadMode idleLoadPeriod idleLoadTag idleReadChunkSize Movie ignoreWhiteSpace Usage XMLparserObject ignoreWhiteSpace trueOrFalse Description XML Command specifies whether the parser sho...

Page 361: ...ese Lingo statements leave ignoreWhiteSpace set to the default of TRUE and parse the given XML There is only one child node of the sample tag and only one child node of the sub tag XMLtext sample sub...

Page 362: ...or list ilk sprite 1 rect point point point or list ilk sprite 1 loc color color color ilk sprite 1 color date date date ilk the systemdate symbol symbol symbol ilk hello void void void ilk void pict...

Page 363: ...9 2 19 ilk 3D Usage ilk object ilk object type object ilk object ilk type Description Lingo function indicates the type of an object The following table shows the return value for each type of 3D obje...

Page 364: ...hanges made to any other images have no effect on the new image If you refer to an image by setting a variable equal to a source image such as a cast member or the image of the Stage the variable cont...

Page 365: ...e following example creates an 8 bit image that is 200 pixels wide by 200 pixels high Lingo syntax objImage image 200 200 8 JavaScript syntax var objImage image 200 200 8 The following example creates...

Page 366: ...mple This handler assigns a URL that contains a GIF file to the variable tempURL and then uses the importFileInto command to import the file at the URL into a new bitmap cast member Lingo syntax on ex...

Page 367: ...rom the upper left corner of the sprite rotation Optional Specifies the rotation of the added backdrop Example The first line of this example creates a texture called Cedar The second line inserts tha...

Page 368: ...e 1 for var i 0 i numberOfFrames i _movie insertFrame _movie endRecording See also duplicateFrame Movie insertOverlay Usage sprite whichSprite camera index insertOverlay index texture locWithinSprite...

Page 369: ...t Example This statement indicates whether the point Center is within the rectangle Zone and displays the result in the Message window put Center inside Zone See also map mouseH mouseV point installMe...

Page 370: ...umericExpression integer integer numericExpression Description Function Lingo only rounds the value of an expression to the nearest whole integer You can force an integer to be a string by using the s...

Page 371: ...quotation marks it cannot be evaluated to an integer so 0 FALSE is displayed in the Message window put 3 integerP 0 This statement checks whether the numerical value of the string in field cast member...

Page 372: ...tSphere 50 See also interpolateTo interpolateTo Usage transform1 interpolateTo transform2 percentage Description 3D transform method modifiestransform1 by interpolating from the position and rotation...

Page 373: ...tmember model whichModel transform inverse member whichCastmember group whichGroup transform inverse member whichCastmember camera whichCamera transform inverse sprite whichSprite camera index transfo...

Page 374: ...transform invert See also inverse isBusy Usage Lingo syntax soundChannelObjRef isBusy JavaScript syntax soundChannelObjRef isBusy Description Sound Channel method determines whether a sound is playin...

Page 375: ...ber group whichGroup isInWorld Description 3D command returns a value of TRUE if the parent hierarchy of the model camera light or group terminates in the world If the value of isInWorld is TRUE the m...

Page 376: ...n passed and 0 if it hasn t been passed If cuePointID is a name isPastCuePoint returns the number of cue points passed that have that name If the value specified for cuePointID doesn t exist in the sp...

Page 377: ...key keyPressed keyCodeOrCharacter Description Key method returns the character string assigned to the key that was last pressed or optionally whether a specified key was pressed If the keyCodeOrCharac...

Page 378: ...y is down end if JavaScript syntax if _key keyPressed 0 put The key is down This statement uses the ASCII strings to test if the a and b keys are down and displays the result in the Message window Lin...

Page 379: ...m or line in a container of character Supported containers are field cast members variables that hold strings and specified characters words items lines and ranges within containers Parameters chunkEx...

Page 380: ...to the marker No Click if the lastClick 10 60 then go to No Click See also lastEvent lastKey lastRoll milliseconds lastEvent Usage the lastEvent Description Function returns the time in ticks 1 tick...

Page 381: ...d if it does displays an alert Lingo syntax if member Filename text length 31 then alert That filename is too long end if JavaScript syntax if member Filename text length 31 alert That filename is too...

Page 382: ...the height in pixels of a specific line in a specified field cast member Parameters lineNumber Required An integer that specifies the line to measure Example This statement determines the height in p...

Page 383: ...then linked to that file Linked scripts are imported into the movie when you save it as a projector or a movie with Shockwave content This differs from other linked media which remains external to the...

Page 384: ...list Example This statement sets the variable named designers equal to a linear list that contains the names Gee Kayne and Ohashi Lingo syntax designers list Gee Kayne Ohashi using list designers Gee...

Page 385: ...corresponding elements in the W3D file with the same name The default value of generateUniqueNames is TRUE Example The following statement imports the contents of the file named Truck W3d into the ca...

Page 386: ...go syntax pageDesign member Today s News locToCharPos point 100 100 JavaScript syntax var pageDesign member Today s News locToCharPos point 100 100 locVToLinePos Usage Lingo syntax memberObjRef locVTo...

Page 387: ...arithm of the square root of the value Number and then assigns the result to the variable Answer Answer log Number sqrt makeList Usage Lingo syntax parserObject makeList JavaScript syntax parserObject...

Page 388: ...om the Score to script and optionally places a sprite from a specified cast member at a specified location on the Stage Call removeScriptedSprite to switch control of the sprite channel back to the Sc...

Page 389: ...t tagName ATTRIBUTES attr1 val1 attr2 val2 See also makeList map Usage map targetRect sourceRect destinationRect map targetPoint sourceRect destinationRect Description Function positions and sizes a r...

Page 390: ...usly mapped to the specified bone and its children This command does not change a model s playlist Parameters whichOtherMotion Required A string that specifies the name of the motion to map boneName O...

Page 391: ...Stage If the specified point on the Stage is not within the sprite this function returns VOID Parameters whichPointOnStage Required A point from which an equivalent point is returned See also map map...

Page 392: ...syntax _movie go _movie marker 0 This statement sets the variable nextMarker equal to the next marker in the Score Lingo syntax nextMarker _movie marker 1 JavaScript syntax nextMarker _movie marker 1...

Page 393: ...go syntax windowObjRef maximize JavaScript syntax windowObjRef maximize Description Window method maximizes a window Use this method when making custom titlebars Parameters None Example These statemen...

Page 394: ...berNameOrNum castNameOrNum Description Top level function creates a reference to a cast member and optionally specifies the cast library that contains the member The member method is a specific refere...

Page 395: ...pt syntax _movie mergeDisplayTemplate propList Description Movie method merges an arbitrary number of display template properties into the existing set of display template properties all at once Param...

Page 396: ...Cars Lingo syntax window Cars mergeProps title Car pictures resizable FALSE titlebarOptions closebox TRUE icon member 2 appearanceOptions border line shadow TRUE JavaScript syntax window Cars mergePro...

Page 397: ...thing1 member newAlien model thing1 addModifier meshDeform put member newalien model thing1 meshDeform mesh 1 vertexList vector 239 0 1000 5 27 4 vector 162 5 1064 7 29 3 vector 115 3 1010 8 40 6 vect...

Page 398: ...of the model named gbFace put member 3D World model gbFace meshDeform mesh 2 face count 204 See also mesh property addModifier min Usage list min min list min a1 a2 a3 Description Function Lingo only...

Page 399: ...model count member whichCastmember model whichModel propertyName member whichCastmember model index propertyName Description 3D command returns the model found within the referenced cast member that h...

Page 400: ...d by whichModelResource or is found at the index position specified by the index parameter If no model resource exists for the specified parameter the command returns void As modelResource count the c...

Page 401: ...of the returned list If omitted the command returns a list containing references for all of the models found under the specified point levelOfDetail Optional A symbol that specifies the level of deta...

Page 402: ...e models found under that point The third line displays the returned information about the models in the message window Lingo syntax on mouseUp pt the mouseLoc point sprite 5 left sprite 5 top m sprit...

Page 403: ...vector representing the world space position of the point of intersection isectNormal is the world space normal vector to the mesh at the point of intersection meshID is the meshID of the intersected...

Page 404: ...prite using the referenced camera This command returns void if there is no model found under the specified point For a list of all of the models found under a specified point and detailed information...

Page 405: ...d motion Wing Flap thisMotion member 3D World motion 7 put member scene motion count 2 See also duration 3D map 3D move Usage Lingo syntax memberObjRef move intPosn castLibName JavaScript syntax membe...

Page 406: ...ToBack Usage Lingo syntax windowObjRef moveToBack JavaScript syntax windowObjRef moveToBack Description Window method moves a window behind all other windows Parameters None Example These statements m...

Page 407: ...ve use the syntax Lingo syntax window Demo Window moveToFront JavaScript syntax window Demo Window moveToFront See also moveToBack Window moveVertex Usage Lingo syntax memberObjRef moveVertex vertexIn...

Page 408: ...ion moves the vertex handle of a vector shape cast member to another location The horizontal and vertical coordinates for the move are relative to the current position of the vertex handle The locatio...

Page 409: ...r model whichModel meshdeform mesh index face index neighbor index Description 3D command meshDeform command that returns a list of lists describing the neighbors of a particular face of a mesh opposi...

Page 410: ...the URL to cancel netID Optional Specifies the ID of the network operation to cancel Example This statement passes a network ID to netAbort to cancel a particular network operation Lingo syntax on mou...

Page 411: ...ult end if end JavaScript syntax function exitFrame if netDone 1 member Display Text text netTextResult This handler uses a specific network ID as an argument for netDone to check the status of a spec...

Page 412: ...led at all 5 Bad MOA Interface See 4 6 Bad URL or Bad MOA class The required network or nonnetwork Xtra extensions are improperly installed or not installed at all 20 Internal error Returned by netErr...

Page 413: ...re variations where days or months are spelled completely The string is always in English The netLastModDate function can be called only after netDone and netError report that the operation is complet...

Page 414: ...projector discards the results of the previous operation to conserve memory Parameters None Example This handler checks the MIME type of an item downloaded from the Internet and responds accordingly...

Page 415: ...w The netStatus command doesn t work in projectors Parameters msgString Required Specifies the string to display Example This statement would place the string This is a test in the status area of the...

Page 416: ...tions to test whether the last network operation finished successfully If the operation is finished text returned by netTextResult is displayed in the field cast member Display Text Lingo syntax globa...

Page 417: ...formation about a child object in the Message window When new is used to create a timeout object the timeoutPeriod sets the number of milliseconds between timeout events sent by the timeout object The...

Page 418: ...cast member and stores its cast member number in a variable called customCursor This variable is used to set the castMemberList property of the newly created cursor and to switch to the new cursor on...

Page 419: ...timeout intervalTimer new 60000 minuteBeep playerOne This statement creates a sample JavaScript function function sampleTimeout trace hello Elsewhere in your movie you can use this statement to create...

Page 420: ...member 2 at the third position in the cast member s vertexList The second line of the example replaces the contents of curve 2 with the contents of curve 3 Lingo syntax member 2 newCurve 3 member 2 cu...

Page 421: ...nt room light member 3D World newLight ambient room light ambient newMember Usage Lingo syntax _movie newMember symbol _movie newMember stringMemberType JavaScript syntax _movie newMember stringMember...

Page 422: ...event occurs The targetObject identifies the name of the child object that contains the timeoutHandler If no targetObject is given the timeoutHandler is assumed to be in a movie script When a timeout...

Page 423: ...cts Enter 0 or omit this parameter to get default white color per face corner numTextureCoordinates Optional Specifies the number of user specified texture coordinates used by all the faces Enter 0 or...

Page 424: ...m member Shapes newModel Pyramid1 nm See also newModelResource newModel Usage member whichCastmember newModel newModelName whichModelResource Description 3D command creates a new model in the referenc...

Page 425: ...r planes and spheres for the inside and outside of the model respectively 12 for cubes 6 on the outside 6 on the inside and 6 for cylinders top hull and bottom outside and another set for the inside P...

Page 426: ...unWithWave member 1 newMotion runWithWave runWithWave map run pelvisBone runWithWave map wave shoulderBone newObject Usage Lingo syntax spriteObjRef newObject objectType arg1 arg2 JavaScript syntax sp...

Page 427: ...t Array 23 34 19 JavaScript syntax var tArrayObject sprite 3 newObject Array 23 34 19 See also setCallback clearAsObjects newShader Usage member whichCastmember newShader newShaderName shaderType Desc...

Page 428: ...entage hilightStrength name shadowPercentage shadowStrength and style engraver shaders are lined have the appearance of an engraving and have the following properties in addition to all of the standar...

Page 429: ...r 5 of castlib 1 The second line creates a blank new texture called Blank member 3D World newTexture Grass 02 fromCastMember member 5 1 member 3D World newTexture Blank normalize Usage normalize vecto...

Page 430: ...d to satisfy the statement s else clause Lingo syntax on mouseDown if the clickOn 1 then if sprite 1 moveableSprite TRUE then member Notice text Drag the ball else nothing else member Notice text Clic...

Page 431: ...e command has no return value Parameters direction Required Specifies the direction to nudge the view perspective Valid values include the following down downLeft downRight left right up upLeft upRigh...

Page 432: ...the Message window the character whose ASCII number is 65 put numToChar 65 The result is the letter A This handler removes any nonalphabetic characters from any arbitrary string and returns only capit...

Page 433: ...d to it and if not assigns one This check is commonly used when you perform initializations at the beginning of a movie or section that you don t want to repeat Lingo syntax if objectP gDataBase then...

Page 434: ...e string represented by input and replaces them with the string represented by stringToInsert Lingo syntax on SearchAndReplace input stringToFind stringToInsert output findLen stringToFind length 1 re...

Page 435: ...his handler moves sprite 1 five pixels to the right and five pixels down Lingo syntax on diagonalMove newRect sprite 1 rect offset 5 5 sprite 1 rect newRect end JavaScript syntax function diagonalMove...

Page 436: ...s called the Open File dialog box appears If the reference to the window object windowObjRef is replaced with a movie s filename the window uses the filename as the window name However a movie must th...

Page 437: ...the full path and name of the file to open intMode Required An integer that specifies the mode of the file Valid values include 0 Read write 1 Read only 2 Writeable See also Fileio openXlib Usage ope...

Page 438: ...interface param Usage param parameterPosition Description Function provides the value of a parameter passed to a handler To avoid errors in a handler this function can be used to determine the type of...

Page 439: ...an XML document that is already fully available to the Director movie The first parameter is the variable containing the parser object The return value is VOID if the operation succeeds or an error c...

Page 440: ...ata resides handlerToCallOnCompletion Optional Specifies the name of the handler that is to be executed once the URL is fully parsed objectContainingHandler Optional Specifies the name of the script o...

Page 441: ...lobal variable named gParserObject The movie script contains the on parseDone handler JavaScript syntax function parseDone if _global gParserObject getError undefined trace successful parse else trace...

Page 442: ...Usage pass Description Command passes an event message to the next location in the message hierarchy and enables execution of more than one handler for a given event The pass command branches to the...

Page 443: ...another application the string s formatting is not retained This method provides a convenient way to copy objects from other movies and from other applications into the Cast window Because copied cas...

Page 444: ...o syntax soundChannelObjRef pause JavaScript syntax soundChannelObjRef pause Description Sound Channel method suspends playback of the current sound in a sound channel A subsequent play method will re...

Page 445: ...Ant3 member PicnicScene model Ant3 bonesplayer pause See also play 3D playing 3D playlist pause RealMedia SWA Windows Media Usage Lingo syntax memberOrSpriteObjRef pause JavaScript syntax memberOrSpri...

Page 446: ...turned by pos1 perpendicularTo pos2 is vector 0 0000 0 0000 1 00000e4 The last two lines of the example show the vector which is perpendicular to both pos1 and pos2 pos1 vector 100 0 0 pos2 vector 0 1...

Page 447: ...using this command the model s bonesPlayer playing property will be set to TRUE Use play with no parameters to resume the execution of a motion that has been paused with the pause command Using the pl...

Page 448: ...imation is through its own duration Example This command causes the model named Walker to begin playback of the motion named Fall After playing this motion the model will resume playback of any previo...

Page 449: ...beginChapter Required if starting playback at a given title and chapter A number that specifies the chapter to play This parameter will override the member s startTimeList property endTitle Required...

Page 450: ...g an optional property list you can specify exact playback settings for a sound To see an example of play used in a completed movie see the Sound Control movie in the Learning Lingo folder inside the...

Page 451: ...ntax sound 2 play member member creditsMusic startTime 4000 endTime 15000 loopCount 6 loopStartTime 10500 loopEndTime 14000 JavaScript syntax sound 2 play propList member member creditsMusic startTime...

Page 452: ...Windows Media or RealMedia cast member or plays the sprite on the Stage For cast members only audio is rendered if present in the movie If the cast member is already playing calling this method has no...

Page 453: ...file is downloading The playFile method streams files from disk rather than playing them from RAM As a result using playFile when playing digital video or when loading cast members into memory can ca...

Page 454: ...e time in milliseconds at which playback ends Example This statement specifies that the sprite named Video should play from the 30 second mark to the 40 second mark Lingo syntax sprite Video playFromT...

Page 455: ...command initiates playback of the next motion in the playlist of the model s keyframePlayer or bonesPlayer modifier The currently playing motion which is the first entry in the playlist is interrupted...

Page 456: ...t that has specified horizontal and vertical coordinates A point has both a locH and a locV property Point coordinates can be changed by arithmetic operations using Lingo only For example the followin...

Page 457: ...wo statements are equivalent Lingo syntax sprite _mouse clickOn loc point _mouse mouseH _mouse mouseV point 10 10 sprite _mouse clickOn loc _mouse mouseLoc 10 See also locH locV pointAt Usage member w...

Page 458: ...camera MarsCam pointAt thisWorldPosn member Scene light BrightSpot pointAt thisWorldPosn member Scene model BigGun pointAt thisWorldPosn vector 0 0 45 If you use non uniform scaling and a custom point...

Page 459: ...een coordinate to test Example These statements display the number of the character being clicked as well as the letter in the Message window Lingo syntax property spriteNum on mouseDown me pointClick...

Page 460: ...nate to test Example These statements display the number of the item being clicked as well as the text of the item in the Message window Lingo syntax property spriteNum on mouseDown me pointClicked _m...

Page 461: ...test Example These statements display the number of the line being clicked as well as the text of the line in the Message window Lingo syntax property spriteNum on mouseDown me pointClicked _mouse mou...

Page 462: ...tatements display the number of the paragraph being clicked as well as the text of the paragraph in the message window Lingo syntax property spriteNum on mouseDown me pointClicked _mouse mouseLoc curr...

Page 463: ...est Example These statements display the number of the word being clicked as well as the text of the word in the Message window Lingo syntax property spriteNum on mouseDown me pointClicked _mouse mous...

Page 464: ...of form data within a Director title Property names correspond to HTML form field names and property values to field values The property list can use either strings or symbols as the property names If...

Page 465: ...er to a specified exponent Parameters base Required Specifies the base number exponent Required Specifies the exponent value Example This statement sets the variable vResult to the value of 4 to the t...

Page 466: ...ovie preLoad fromFrameNameOrNum toFrameNameOrNum Description Movie method preloads cast members in the specified frame or range of frames into memory and stops when memory is full or when all of the s...

Page 467: ...ame to the frame that has the next marker Lingo syntax _movie preLoad _movie marker 1 JavaScript syntax _movie preLoad _movie marker 1 This statement preloads the cast members used from frame 10 to fr...

Page 468: ...t arguments preLoadMember preloads all cast members in the movie When used with the memberObjRef argument preLoadMember preloads just that cast member If memberObjRef is an integer only the first cast...

Page 469: ...rrent movie Lingo syntax _movie preLoadMovie Introduction JavaScript syntax _movie preLoadMovie Introduction See also downloadNetThing go Movie preloadNetThing preloadNetThing Usage preloadNetThing ur...

Page 470: ...one preMultiply Usage transform1 preMultiply transform2 Description 3D transform command alters a transform by pre applying the positional rotational and scaling effects of another transform If transf...

Page 471: ...this axis is specified by angle Node may be a reference to a model group light or camera Parameters xAngle Required if applying a rotation using x y and z axes Specifies the angle of rotation around...

Page 472: ...s zScale Required if applying a scale using x y and z axes Specifies the scale around the z axis vector Required if applying a scale using a vector Specifies the vector that contains the scale to appl...

Page 473: ...s the Y about the Y axis and the Z about the Z axis After a series of transformations are done in the following order the model s local origin will be at 0 0 100 assuming the model s parent is the wor...

Page 474: ...sing this sprite function Parameters targetName Optional Specifies the name of the target movie or movie clip to be printed If omitted if the target is 0 then the main Flash movie is printed printingB...

Page 475: ...ical orientation and ignores Page Setup settings For more flexibility when printing from within Director see PrintOMatic Lite Xtra which is on the installation disk Parameters startFrameNameOrNum Requ...

Page 476: ...into a field and then assign the field to a variable The variable s content is a list of the data Parameters string1 string2 Optional Strings that specify the name portions of the elements in the lis...

Page 477: ...P proxy server at IP address 197 65 208 157 using port 5 proxyServer http 197 65 208 157 5 This statement returns the port number of an HTTP proxy server put proxyServer http port If no server type is...

Page 478: ...n the palette over several frames by replacing frames with an integer for the number of frames A puppet palette remains in effect until you turn it off using the syntax _movie puppetPalette 0 No subse...

Page 479: ...e only The channel must contain a sprite when you use the puppetSprite method Making the sprite channel a puppet lets you control many sprite properties such as member locH and width from script after...

Page 480: ...setting in the Score and change the tempo assigned to the movie It s unnecessary to turn off the puppet tempo condition to make subsequent tempo changes in the Score take effect Note Although it is th...

Page 481: ...ach chunk of the transition The minimum value is 1 the maximum is 128 Smaller chunk sizes yield smoother transitions but are slower Code Transition Code Transition 01 Wipe right 27 Random rows 02 Wipe...

Page 482: ...tor transition An integer that specifies the number of the transition to use time Optional An integer that specifies that number of quarter seconds used to complete the transition Valid values range f...

Page 483: ...window The functionality of this method is identical to the top level trace method which is available to both Lingo and JavaScript syntax This method can be used as a debugging tool by tracking the va...

Page 484: ...terAccessKey Usage Lingo syntax qtUnRegisterAccessKey categoryString keyString JavaScript syntax qtUnRegisterAccessKey categoryString keyString Description Command allows the key for encrypted QuickTi...

Page 485: ...second point with a loop repeated 5 times from the 8 second point to the 8 9 second point and stopping at the 10 second point Lingo syntax on playMusic sound 2 queue member Chimes sound 2 queue member...

Page 486: ...All subsequent repetitions begin at startTime and end at endTime endTime Optional Measured in milliseconds from the beginning of the motion When looped is FALSE the motion begins at offset and ends a...

Page 487: ...Version Usage Lingo syntax QuickTimeVersion JavaScript syntax QuickTimeVersion Description Function returns a floating point value that identifies the current installed version of QuickTime and replac...

Page 488: ...ovie method determines the memory needed in bytes to display a range of frames For example you can test the size of frames containing 32 bit artwork if ramNeeded is larger than freeBytes then go to fr...

Page 489: ...ied value This function can be used to vary values in a movie such as to vary the path through a game assign random numbers or change the color or position of sprites To start a set of possible random...

Page 490: ...in the range 5 to 100 Lingo syntax theScore 5 random 20 JavaScript syntax var theScore 5 random 20 randomVector Usage Lingo syntax randomVector JavaScript syntax randomVector Description Top level fun...

Page 491: ...ed to be a unit vector Parameters None Example These statements create and display two randomly defined unit vectors in the Message window vec randomVector put vec vector 0 1155 0 9833 0 1408 vec2 ran...

Page 492: ...syntax fileioObjRef readChar Description Fileio method Reads the next character of a file and returns it as an ASCII code value You must first open a file by calling openFile before using readChar to...

Page 493: ...readToken stringSkip stringBreak JavaScript syntax fileioObjRef readToken stringSkip stringBreak Description Fileio method Reads the next token and returns it as a string You must first open a file by...

Page 494: ...ust be set before RealPlayer is first loaded when the first RealMedia cast member is encountered in the Score or with the first Lingo reference to a RealMedia cast member any changes to this flag afte...

Page 495: ...is function is set to TRUE which means that if users do not have RealPlayer 8 and attempt to load a movie containing RealMedia they are automatically asked if they want to go to the RealNetworks websi...

Page 496: ...ies containing RealMedia content On Windows systems build numbers 6 0 8 132 or later indicate that RealPlayer 8 is installed On Macintosh systems RealPlayer Core component build numbers 6 0 7 1001 or...

Page 497: ...1649 is the same as the build number returned by realPlayerVersion Parameters None Example The following code shows that build number of the RealPlayer installed on the system is 6 0 9 357 Lingo synta...

Page 498: ...tes a simple Shock Font using only the two arguments for the cast member and the font to record myNewFontMember new font recordFont myNewFontMember Lunar Lander This statement specifies the bitmap siz...

Page 499: ...edge of the Stage Example This statement sets the variable newArea to a rectangle whose left side is at 100 top is at 150 right side is at 300 and bottom is at 400 pixels Lingo syntax newArea rect 100...

Page 500: ...ng and time is the current time of the motion For looping animations the animationStarted event is issued only for the first loop not for subsequent loops During a blend of two animations this event w...

Page 501: ...00 5000 2 This statement registers the promptUser event handler found in a movie script to be called each time a collision occurs within the cast member named Scene member Scene registerForEvent colli...

Page 502: ...parameter determines the number of milliseconds between timeMS events when the value of repetitions is greater then 0 If repetitions is 0 the timeMS event occurs indefinitely handlerName Required Spe...

Page 503: ...nd in a specified position from the camera s list of backdrops to display Parameters index Required Specifies the index position of the backdrop in the list of backdrops Example The following statemen...

Page 504: ...from the playlist of the bonesPlayer modifier for the model named Walker member MyWorld model Walker bonesPlayer removelast removeModifier Usage member whichCastmember model whichModel removeModifier...

Page 505: ...s for the camera being used by sprite 5 The overlay disappears from the Stage sprite 5 camera removeOverlay 1 See also overlay removeScriptedSprite Usage Lingo syntax spriteChannelObjRef removeScripte...

Page 506: ...when it was first created Parameters None Example This statement resets the properties of the cast member named Scene to the values they had when the member was first loaded into memory member Scene r...

Page 507: ...ion for the modelB is resolved if bResolve is FALSE the collision for modelB is not resolved See also collisionData resolve registerScript modelB setCollisionCallback restart Usage Lingo syntax _syste...

Page 508: ...aximize Window result Usage the result Description Function displays the value of the return expression from the last handler executed The result function is useful for obtaining values from movies th...

Page 509: ...me Usage Lingo syntax animGifSpriteRef resume JavaScript syntax animGifSpriteRef resume Description Animated GIF method causes the sprite to resume playing from the frame after the current frame if it...

Page 510: ...mmand differs from resetWorld in that the values used are taken from the state of the member when it was first created rather than from the state of the member when it was first loaded into memory Par...

Page 511: ...tax windowsMediaObjRef rewind Description Windows Media cast member or sprite method Rewinds to the first frame of a Windows Media cast member or sprite Calling this method has no effect on the mediaS...

Page 512: ...intSpriteNum Description Movie method indicates whether the pointer cursor is currently over the bounding rectangle of a specified sprite TRUE or 1 or not FALSE or 0 The rollOver method is typically...

Page 513: ...value to a variable This lets the handler use the rollOver value that was in effect when the rollover started regardless of whether the user continues to move the mouse Lingo syntax on exitFrame curr...

Page 514: ...may be specified explicitly in the form of xAngle yAngle and zAngle or by a rotationVector where the x component of the vector corresponds to the rotation about the X axis y about Y axis and z about...

Page 515: ...system of the specified node Example The following example first rotates the model named Moon about its own Z axis rotating it in place then it rotates that same model about its parent node the model...

Page 516: ...tform save castLib Usage castLib whichCast save save castLib whichCast pathName newFileName Description Command saves changes to the cast in the cast s original file or in a new file Further operation...

Page 517: ...r whichCastmember node whichNode scale xScale yScale zScale member whichCastmember node whichNode scale uniformScale transform scale xScale yScale zScale transform scale uniformScale Description 3D tr...

Page 518: ...del Pluto scale 0 5 This statement scales the model named Oval in a nonuniform manner scaling it along its z axis but not its x or y axes member Scene model Pluto scale 0 0 0 0 0 5 See also transform...

Page 519: ...t Description Command scrolls the specified field or text cast member up or down by a specified number of lines Lines are defined as lines separated by carriage returns or by wrapping Parameters amoun...

Page 520: ...ls the field cast member Today s News up one page Lingo syntax member Today s News scrollbypage 1 JavaScript syntax member Today s News scrollbypage 1 See also scrollTop seek Usage Lingo syntax member...

Page 521: ...illiseconds Required An integer that specifies the number of milliseconds from the beggining of the stream Example The following examples set the current playback position of the stream to 10 000 mill...

Page 522: ...tion DVD method selects a specified button This method returns 0 if successful Parameters intButton Required An integer that specifies the button that is given focus Example This statement selects but...

Page 523: ...ting what a user has selected in a field The selection function only indicates which string of characters is selected you cannot use selection to select a string of characters Parameters None Example...

Page 524: ...given handler sendAllSprites returns FALSE Parameters stringEventMessage Required A string that specifies the message to send to all sprites args Optional An argument or arguments to send with the me...

Page 525: ...sionCallback sendSprite Usage Lingo syntax _movie sendSprite spriteNameOrNum event args JavaScript syntax _movie sendSprite spriteNameOrNum event args Description Movie method sends a message to all s...

Page 526: ...channel altogether This is a good method for removing the alpha layer from an image member Foreground image setAlpha 255 member Foreground image useAlpha FALSE This Lingo gets the alpha layer from the...

Page 527: ...perty the property must already exist in the list child object or behavior See also ancestor property dot operator setAt Usage setAt list orderNumber value list orderNumber value Description Command r...

Page 528: ...object that event is redirected to the given Lingo handler including all arguments that are passed with the event If the ActionScript object was originally created within a Flash sprite use the flash...

Page 529: ...ta arrives on dataFound me obj source obj parseXML source obj loaded 1 obj onload TRUE end dataFound JavaScript syntax gXMLCB newObject XML setCallback gXMLCB onData symbol dataFound 0 gXMLCB load myf...

Page 530: ...ith another model member 3d world model Sphere collision setCollisionCallback bounce member colScript See also collisionData collision modifier resolve resolveA resolveB registerForEvent registerScrip...

Page 531: ...sprite pass an empty string as the targetName You can set the global Flash properties focusRect and spriteSoundBufferTime See the Flash documentation for descriptions of these properties Parameters t...

Page 532: ...Sets the color value of the pixel at a specified point in a given image If setting many pixels to the color of another pixel with getPixel it is faster to set them as integers For best performance wi...

Page 533: ...folder inside the Director application folder Parameters linearListOfPropLists Required A linear list of property lists that specifies parameters of a playlist You can specify these parameters for eac...

Page 534: ...ount 5 loopStartTime 8000 loopEndTime 8900 sound 2 play See also endTime getPlayList loopCount loopEndTime loopStartTime Member member preLoadTime queue Sound Channel startTime setPosition Usage Lingo...

Page 535: ...inside the Director application folder Parameters prefName Required A string that specifies the file to write to The prefName parameter must be a valid filename To make sure the filename is valid on a...

Page 536: ...Sprite setScriptList scriptList Description This command sets the scriptList of the given sprite The scriptList indicates which scripts are attached to the sprite and what the settings of each script...

Page 537: ...Panel Parameters integerPanelIndex Optional Specifies which panel to activate when the dialog box is opened Valid values are 0 1 2 or 3 A value of 0 opens the dialog box showing the Privacy tab a val...

Page 538: ...d movie see the Read and Write Text movie in the Learning Lingo folder inside the Director application folder Parameters stringPrefName Required A string that specifies the name of the file to which t...

Page 539: ...Value Description Function sets the value of the given variable in the given Flash sprite Flash variables were introduced in Flash version 4 Parameters variableName Required Specifies the name of the...

Page 540: ...igned to a model and when a shader being used by a model is deleted The syntax member whichCastmember model whichModel shader gives access to the first shader in the model s shaderlist and is equivale...

Page 541: ...go syntax memberOrSpriteObjRef showProps JavaScript syntax memberOrSpriteObjRef showProps Description Command displays a list of the current property settings of a Flash movie Vector member or current...

Page 542: ...Cast showProps i See also queue setPlayList showGlobals Usage Lingo syntax _global showGlobals JavaScript syntax _global showGlobals Parameters None Description Global method displays all global varia...

Page 543: ...ed Control S Windows or Command S Macintosh and if so shuts down the computer See also System sin Usage sin angle Description Math function Lingo only calculates the sine of the specified angle The an...

Page 544: ...alphanumeric order The result appears below the statement put values a 1 d 2 c 3 values sort put values a 1 c 3 d 2 sound Usage Lingo syntax sound intSoundChannel JavaScript syntax sound intSoundChann...

Page 545: ...ite named Cave Lingo syntax thisSprite sprite Cave JavaScript syntax var thisSprite sprite Cave See also Sprite Channel spriteSpaceToWorldSpace Usage sprite whichSprite camera spriteSpaceToWorldSpace...

Page 546: ...worldSpaceToSpriteSpace rect camera camera sqrt Usage sqrt number the sqrt of number Description Math function Lingo only returns the square root of a specified number The value must be a decimal num...

Page 547: ...e stageTop sprite 3 locV stageHeight 50 Sprite coordinates are expressed relative to the upper left corner of the Stage For more information see the Using Director topics in the Director Help Panel Se...

Page 548: ...s an applet the stageRight property is the width of the applet in pixels This function can be tested but not set Sprite coordinates are expressed relative to the upper left corner of the Stage Paramet...

Page 549: ...ed in Director Stage coordinates is over a specific coordinate 130 10 in a Flash movie sprite in channel 5 If the pointer is over that Flash movie coordinate the script stops the Flash movie Lingo syn...

Page 550: ...cedure See also stageLeft stageRight stageBottom locH locV status Usage Lingo syntax fileioObjRef status JavaScript syntax fileioObjRef status Description Fileio method Returns the error code of the l...

Page 551: ...method begins playing the first sound of those that remain in the queue of the given sound channel To see an example of stop used in a completed movie see the Sound Control movie in the Learning Lingo...

Page 552: ...through 10 Lingo syntax on enterFrame repeat with i 5 to 10 sprite i stop end repeat end JavaScript syntax function enterFrame var i 5 while i 11 sprite i stop i See also hold stop RealMedia SWA Wind...

Page 553: ...ble first to a primary event handler if one exists and then to any scripts attached to a sprite involved in the event If more than one script is attached to the sprite the message is available to each...

Page 554: ...d for a cast member regardless of the cast member s streamMode property Parameters numberOfBytes Optional An integer that specifies the number of bytes to stream If you omit the numberOfBytes paramete...

Page 555: ...ssage Line text Received only bytesReceived of 32 000 bytes requested _movie updateStage else member Message Line text Received all 32 000 bytes _movie go _movie frame string Usage string expression D...

Page 556: ...t a string the result is 0 which is the numeric equivalent of FALSE See also floatP ilk integerP objectP symbolP subPictureType Usage Lingo syntax dvdObjRef subPictureType intStream JavaScript syntax...

Page 557: ...iginalFont Required The font to replace newFont Required The new font that replaces the font specified by originalFont Example This script checks to see if the font Bonneville is available in a text c...

Page 558: ...s varies depending on machine type size of the sprite rectangle color depth of the screen and other typical performance constraints To check if the swing has finished check if the pan property of the...

Page 559: ...ol hello Lingo syntax put symbol hello JavaScript syntax put symbol hello This statement displays the symbol goodbye Lingo syntax x goodbye put symbol x JavaScript syntax var x goodbye put symbol x Se...

Page 560: ...ields the tangent of pi 4 tan PI 4 0 1 The symbol cannot be used in a Lingo expression See also PI tellStreamStatus Usage tellStreamStatus onOrOffBoolean Description Function turns the stream status h...

Page 561: ...the Flash beginTellTarget and endTellTarget methods The tellTarget command allows the user to set a target Timeline on which subsequent sprite commands will act When the target is set to a Flash movie...

Page 562: ...vie clip Lingo syntax sprite 1 stop JavaScript syntax sprite 1 stop This command causes the movie clip to play Lingo syntax sprite 1 play JavaScript syntax sprite 1 play This command switches the focu...

Page 563: ...r or imported with models from 3D modeling programs Create and delete textures with the newTexture and deleteTexture commands Textures are stored in the texture palette of the 3D cast member They can...

Page 564: ...a text field Lingo syntax on exitFrame member clock text _system time end JavaScript syntax function exitFrame member clock text _system time See also date System System timeout Usage Lingo syntax ti...

Page 565: ...bjRef titleMenu JavaScript syntax dvdObjRef titleMenu Description DVD method displays the title menu Parameters None Example This statement displays the title menu Lingo syntax member 1 titleMenu Java...

Page 566: ...er is sealed TRUE or open FALSE The default value for this property is FALSE Parameters None Example This statement sets the topCap property of the model resource Tube to FALSE meaning the top of this...

Page 567: ...es as a movie plays Parameters value Required The expression to evaluate Example The following statement outputs the value of the variable counter to the Message window Lingo syntax counter _system mi...

Page 568: ...rresponds to the translation along the x axis y about y axis and z about z axis A node can be a camera model light or group object Parameters xIncrement Required if specifying a set of three increment...

Page 569: ...translate 100 0 0 gbModel member scene model mars gbModel transform t put gbModel transform position vector 100 0000 0 0000 0 0000 This Lingo moves the model Bip 20 units along the x axis of its pare...

Page 570: ...mberObjRef parameter unLoad clears from memory all the cast members in the range specified When used in a new movie with no loaded cast members this method returns an error Cast members that you have...

Page 571: ...t frame in a range to unload from memory Example The following statements unload frames 10 through 25 from memory Lingo syntax _movie unLoad 10 25 JavaScript syntax _movie unLoad 10 25 See also Movie...

Page 572: ...members A string or integer that specifies the name or number of the last cast member in a range to unload from memory Example This statement clears from memory the cast member Screen1 Lingo syntax _m...

Page 573: ...ww cbDemille com SunsetBlvd dir JavaScript syntax _movie unLoadMovie http www cbDemille com SunsetBlvd dir See also Movie unregisterAllEvents Usage Lingo syntax member whichMember unregisterAllEvents...

Page 574: ...that were already in the frame when the update session started remain in the frame You must issue an updateFrame method for each frame that you are updating Parameters None Example When used in the f...

Page 575: ...ly instead of only between frames The updateStage method redraws sprites performs transitions plays sounds sends a prepareFrame message affecting movie and behavior scripts and sends a stepFrame messa...

Page 576: ...trieved data is converted from Shift JIS to the named character set Returned data is handled exactly as by getNetText converted from the named character set to Shift JIS If you use AUTO the posted dat...

Page 577: ...o value Do not confuse the actions of the value function with the integer and float functions Parameters stringExpression Required Specifies the string from which a value is returned The string can be...

Page 578: ...n by the and operators See their individual definitions for more information Parameters intX Optional An integer that specifies the x axis point intY Optional An integer that specifies the y axis poin...

Page 579: ...tion Function returns a property list describing the current voice being used for text to speech The list contains the following properties name indicates the name of the installed voice age indicates...

Page 580: ...is a string Possible values include Teen Adult Toddler and Senior as well as numeric values such as 35 Actual values depend on the operating system speech software version and voices installed gender...

Page 581: ...also voiceSpeak voicePause voiceResume voiceStop voiceGetRate voiceSetRate voiceSetPitch voiceGetVolume voiceSetVolume voiceState voiceWordPos voiceGetRate Usage voiceGetRate Description Function ret...

Page 582: ...ements check whether the text to speech volume is at least 55 and set it to 55 if is lower Lingo syntax if voiceGetVolume 55 then voiceSetVolume 55 end if JavaScript syntax if voiceGetVolume 55 voiceS...

Page 583: ...me to Shockwave else alert Text to speech software failed to load See also voiceCount voiceSet voiceGet voicePause Usage voicePause Description Command pauses the speech output to the text to speech e...

Page 584: ...tVolume voiceSetVolume voiceState voiceWordPos voiceSet Usage voiceSet integer Description Command Sets the current voice of the text to speech synthesis If successful the command returns the new valu...

Page 585: ...olume voiceState voiceWordPos voiceSetRate Usage voiceSetRate integer Description Command sets the playback rate of the text to speech engine to the specified integer value The command returns the new...

Page 586: ...esume voiceStop voiceGetRate voiceSetRate voiceGetPitch voiceSetPitch voiceGetVolume voiceState voiceWordPos voiceSpeak Usage Lingo syntax voiceSpeak string JavaScript syntax voiceSpeak string documen...

Page 587: ...s not Lingo syntax if voiceState playing then voiceSet 1 end if JavaScript syntax if voiceState symbol playing voiceSet 1 See also voiceSpeak voicePause voiceResume voiceStop voiceGetRate voiceSetRate...

Page 588: ...ken within the entire string that contains it For example if a cast member containing 15 words is being spoken and the fifth word of the cast member is being spoken when the function is used the retur...

Page 589: ...n initial value Lingo syntax put voidP answer JavaScript syntax put answer null See also ilk VOID window Usage Lingo syntax window stringWindowName JavaScript syntax window stringWindowName Descriptio...

Page 590: ...ning as a movie in a window TRUE or not FALSE If a window had been opened windowPresent remains TRUE for the window until the window has been removed from the windowList property The stringWindowName...

Page 591: ...the world relative position that would appear Example This statement shows that the world origin specified by vector 0 0 0 appears at point 250 281 within the camera s rect Lingo syntax put sprite 5 c...

Page 592: ...Description Fileio method Writes a null terminated string to a file Parameters string Required The string to write to a file See also Fileio xtra Usage Lingo syntax xtra xtraNameOrNum JavaScript synt...

Page 593: ...h Finder The zoom effect starts at a bounding rectangle of a specified starting sprite and finishes at the bounding rectangle of a specified ending sprite The zoomBox command uses the following logic...

Page 594: ...594 Chapter 12 Methods...

Page 595: ...Name Description Symbol operator defines a symbol a self contained unit that can be used to represent a condition or flag The value symbolName begins with an alphabetical character and may be followed...

Page 596: ...Property object commandOrFunction JavaScript syntax objectReference objectProperty textExpression objectProperty object commandOrFunction Description Operator used to test or set properties of objects...

Page 597: ...er When either or both expressions are floating point numbers the difference is a floating point number The minus operator is an arithmetic operator with a precedence level of 3 Example Negation This...

Page 598: ...avaScript syntax function resetColors this handler resets the sprite s colors sprite 1 forecolor 35 bright red sprite 1 backcolor 36 light blue concatenation operator Usage Lingo syntax expression1 ex...

Page 599: ...of the price variable and then assigns the concatenated string to the Price field cast member Lingo syntax member Price text price JavaScript syntax member Price text price concatenation operator Usa...

Page 600: ...functions that take only one argument without parentheses surrounding the argument When an argument phrase includes an operator Lingo interprets only the first argument as part of the function which...

Page 601: ...expressions are floating point numbers the product is a floating point number This is an arithmetic operator with a precedence level of 4 Example This statement multiplies the integers 2 and 3 and di...

Page 602: ...w Lingo syntax put 2 3 JavaScript syntax put 2 3 This statement adds the floating point numbers 2 5 and 3 25 and displays the result 5 7500 a floating point number in the Message window Lingo syntax p...

Page 603: ...transform vector JavaScript syntax vector1 vector2 vector scalar transform vector Description 3D vector operator multiplies the components of vector1 by the corresponding components in vector2 and ret...

Page 604: ...statement divides the integer 22 by 7 and then displays the result in the Message window Lingo syntax put 22 7 JavaScript syntax put 22 7 The result is 3 Because both numbers in the division are inte...

Page 605: ...ession1 expression2 JavaScript syntax expression1 expression2 Description Comparison operator compares two expressions and determines whether expression1 is less than or equal to expression2 TRUE or w...

Page 606: ...ers floating point numbers rects lists and points Lists are compared based on the number of elements in the list The list with more elements is considered larger than the than the list with fewer elem...

Page 607: ...ison operator with a precedence level of 1 bracket access Usage Lingo syntax textExpression chunkNumberBeingAddressed textExpression firstChunk lastChunk Description Operator allows a chunk expression...

Page 608: ...ve A linear list or property list can contain no values at all An empty list consists of two square brackets To create or clear a linear list set the list to To create or clear a property list set the...

Page 609: ...var x list The following statements create an empty property list Lingo syntax x x propList JavaScript syntax var x propList See also add addVertex append count deleteAt duplicate list function findPo...

Page 610: ...indicate the location of a linked file in a folder different than the movie s folder Example These are equivalent expressions that specify the subfolder bigFolder which is in the current movie s fold...

Page 611: ...ut 1 2 2 3 The result is 1 which is the numerical equivalent of TRUE The first logical expression in the following statement is TRUE and the second logical expression is FALSE Because both logical exp...

Page 612: ...rue else return false Note The string comparison is not sensitive to case or diacritical marks a and are treated the same See also offset string function starts mod Usage Lingo syntax integerExpressio...

Page 613: ...for mySprite 1 mySprite _movie lastChannel mySprite if mySprite 2 1 sprite mySprite ink 0 else sprite mySprite ink 8 This handler regularly cycles a sprite s cast member among a number of bitmaps Lin...

Page 614: ...avaScript syntax put 1 2 Because 1 is less than 2 the result is 0 which indicates that the expression is FALSE This statement determines whether 1 is not greater than 2 Lingo syntax put not 1 2 JavaSc...

Page 615: ...indow whether at least one of the expressions 1 2 and 1 2 is TRUE Lingo syntax put 1 2 or 1 2 JavaScript syntax put 1 2 1 2 Because the first expression is TRUE the result is 1 which is the numerical...

Page 616: ...rison is not sensitive to case or diacritical marks a and are considered to be the same This is a comparison operator with a precedence level of 1 Example This statement reports in the Message window...

Page 617: ...stores all global variables Read only All global variables are accessible to both Lingo and JavaScript syntax Example This statement sets the variable objGlobal to the _global property Lingo syntax ob...

Page 618: ...cript syntax var theKey _key key See also Key _mouse Usage Lingo syntax _mouse JavaScript syntax _mouse Description Top level property provides a reference to the Mouse object which provides access to...

Page 619: ...to properties and methods that are available on a movie level Read only Example This statement sets the variable objMovie to the _movie property Lingo syntax objMovie _movie JavaScript syntax var objM...

Page 620: ...var objPlayer _player This statement uses the _player property directly to access the value of the xtraList property Lingo syntax theXtras _player xtraList JavaScript syntax var theXtras _player xtraL...

Page 621: ...ment information including system level methods Read only Example This statement sets the variable objSystem to the _system property Lingo syntax objSystem _system JavaScript syntax var objSystem _sys...

Page 622: ...roperty controls whether the actions in Macromedia Flash content are enabled TRUE default or disabled FALSE This property can be tested and set Example This handler accepts a sprite reference as a par...

Page 623: ...the first three options are available Use getRendererServices renderer to set this property Example These examples show the two ways to determine which renderer is currently in use Lingo syntax put _m...

Page 624: ...he Stage For a movie in a window MIAW activeWindow is the movie in the window Example This example places the word Active in the title bar of the clicked window and places the word Inactive in the tit...

Page 625: ...doesn t clear the contents of actorList when branching to another movie which can cause unpredictable behavior in the new movie To prevent child objects in the current movie from being carried over t...

Page 626: ...is a bad location for a go statement The alertHook handler is passed an instance argument two string arguments that describe the error and an optional argument specifying an additional event that inv...

Page 627: ...value of the property is a string consisting of one of the following left center or right For text cast members the value of the property is a symbol consisting of one of the following left center rig...

Page 628: ...ts the availability of the graphic controls in the context menu when playing the movie in a Macromedia Shockwave environment Read write Set this property to FALSE if you would rather have a text menu...

Page 629: ...faults to TRUE See also allowCustomCaching allowGraphicMenu allowSaveLocal allowVolumeControl allowZooming Movie allowVolumeControl Usage Lingo syntax _movie allowVolumeControl JavaScript syntax _movi...

Page 630: ...n Bitmap cast member property governs how the bitmap s alpha channel affects hit detection This property is a value from 0 to 255 that exactly matches alpha values in the alpha channel for a 32 bit bi...

Page 631: ...ht type light diffuse specular shader ambientColor Usage member whichCastmember ambientColor Description 3D cast member property indicates the RGB color of the default ambient light of the cast member...

Page 632: ...erty variables that are not contained within the current object This statement allows the variable myLegCount within the child object to access the property variable legCount within the ancestor scrip...

Page 633: ...of the emitter s angle property The effective range of this property is 0 0 to 180 0 The default value is 180 0 Example This statement sets the angle of emission of the model resource named mrFount to...

Page 634: ...member 12 angleCount 2 JavaScript syntax put member 12 angleCount 2 See also DVD animationEnabled Usage member whichCastmember animationEnabled Description 3D cast member property indicates whether mo...

Page 635: ...ax property spriteNum on beginsprite me if _system colorDepth 8 then sprite spriteNum antiAlias FALSE end if end JavaScript syntax function beginsprite var cd _system colorDepth if cd 8 sprite this sp...

Page 636: ...r FALSE Example This Lingo checks whether the currently running 3D renderer for sprite 3 supports anti aliasing If anti aliasing is supported the second statement turns on anti aliasing for the sprite...

Page 637: ...l Panel appearanceOptions border line JavaScript syntax window Control Panel appearanceOptions border line Property Description mask Specifies the 1 bit cast member to use as a mask for the window bor...

Page 638: ...ication Director exe Lingo syntax put _player applicationName JavaScript syntax put _player applicationName See also applicationPath Player applicationPath Usage Lingo syntax _player applicationPath J...

Page 639: ...ame Player aspectRatio Usage Lingo syntax dvdObjRef aspectRatio JavaScript syntax dvdObjRef aspectRatio Description DVD property Returns a property list that specifies the width and height of the DVD...

Page 640: ...ode of a parsed XML document Example Beginning with the following XML xml version 1 0 e1 tagName attr1 val1 attr2 val2 e2 element 2 e2 e3 element 3 e3 here is some text e1 This Lingo returns the name...

Page 641: ...Lingo syntax memberOrSpriteObjRef audio JavaScript syntax memberOrSpriteObjRef audio Description RealMedia sprite or cast member property allows you to play TRUE or mute FALSE the audio in the RealMed...

Page 642: ...ealMedia stream will not be played when the movie is played Lingo syntax sprite 2 audio FALSE member Real audio FALSE JavaScript syntax sprite 2 audio 0 member Real audio 0 See also soundChannel RealM...

Page 643: ...vdObjRef audioExtension JavaScript syntax dvdObjRef audioExtension Description DVD property Returns a symbol that indicates the audio extensions if any of an audio stream Read only Possible returned v...

Page 644: ...cript syntax dvdObjRef audioSampleRate Description DVD property returns the frequency in hertz of an audio stream Read only See also DVD Symbol Description AC3 The audio format is Dolby AC 3 MPEG1 The...

Page 645: ...ichModel lod auto Description 3D lod modifier property allows the modifier to manage the reduction of detail in the model as the distance between the model and the camera changes The setting of the mo...

Page 646: ...he modifier If autoBlend is FALSE the transition is controlled by the blendFactor property of the modifier and blendTime is ignored Motion blending is completely disabled when blendTime is set to 0 an...

Page 647: ...color cursor cast member whichCursorCastMember are transparent allowing the background to show through TRUE default or opaque FALSE Example In this script when the custom animated cursor stored in ca...

Page 648: ...ember model whichModel transform axisAngle member whichCastmember camera whichCamera transform axisAngle member whichCastmember light whichLight transform axisAngle member whichCastmember group whichG...

Page 649: ...as choosing the background color from the Tool palette when the sprite is selected on the Stage For the value that a script sets to last beyond the current sprite the sprite must be a scripted sprite...

Page 650: ...ation member whichCastmember camera whichCamera backdrop index rotation sprite whichSprite camera index backdrop index regPoint member whichCastmember camera whichCamera backdrop index regPoint sprite...

Page 651: ...ckdrop from a texture and adds it to the camera s list of backdrops at a specific index position removeBackdrop deletes the backdrop See also overlay backgroundColor Usage Lingo syntax memberObjRef ba...

Page 652: ...st members this property has no effect unless the member s displayMode property is set to mode3D and its bevelType property is set to miter or round For extruded text in a 3D cast member this property...

Page 653: ...member This statement sets the bevelType of Logo to round member logo beveltype round In this example the model resource of the model named Slogan is extruded text This statement sets the bevelType o...

Page 654: ...t to setting the color in the Movie Properties dialog box The sprite property has the equivalent functionality of the backColor sprite property but the color value returned is a color object of whatev...

Page 655: ...vel bitmapSizes Usage Lingo syntax memberObjRef bitmapSizes JavaScript syntax memberObjRef bitmapSizes Description Font cast member property returns a list of the bitmap point sizes that were included...

Page 656: ...is property is available only after the SWA sound begins playing or after the file has been preloaded using the preLoadBuffer command This property can be tested but not set Example This statement ass...

Page 657: ...owPercentage transparent blend Sprite Usage Lingo syntax spriteObjRef blend JavaScript syntax spriteObjRef blend Description Sprite property returns or sets a sprite s blend value from 0 to 100 corres...

Page 658: ...shaders This statement sets the blendConstant property of the second shader to 20 This property is affected by the settings of the blendFunction blendFunctionList blendSource and blendSourceList prop...

Page 659: ...indicates the amount by which a motion is combined with the motion that preceded it The range of this property is 0 to 100 and the default value is 0 BlendFactor is used only when the autoblend prope...

Page 660: ...ltiply multiplies the RGB values of the texture layer by the color being used for blending see above add adds the RGB values of the texture layer to the color being used for blending and then clamps t...

Page 661: ...multiplies the RGB values of the texture layer by the RGB values of the texture layer below it add adds the RGB values of the texture layer to the RGB values of the texture layer below it and then cla...

Page 662: ...lendRange end Description 3D property when used with a model resource whose type is particle allows you to get or set the start and end of the model resource s blend range The opacity of particles in...

Page 663: ...his property are as follows alpha causes the alpha information in the texture to determine the blend ratio of each pixel of the texture with the color being used for blending see above constant causes...

Page 664: ...dConstantList for more information The default value of this property is constant Example In this example the shader list of the model MysteryBox contains six shaders Each shader has a texture list th...

Page 665: ...naged in Director by the bonesPlayer modifier See also count 3D bonesPlayer modifier transform property worldTransform bonesPlayer modifier Usage member whichCastmember model whichModel bonesPlayer wh...

Page 666: ...he bone lockTranslation indicates whether the model can be displaced from the specified planes positionReset indicates whether the model returns to its starting position after the end of a motion or e...

Page 667: ...Lingo syntax member Title border 10 JavaScript syntax member Title border 10 bottom Usage Lingo syntax spriteObjRef bottom JavaScript syntax spriteObjRef bottom Description Sprite property specifies...

Page 668: ...ichCastmember modelResource whichModelResource bottomCap Description 3D cylinder model resource property indicates whether the end of the cylinder intersected by its Y axis is sealed TRUE or open FALS...

Page 669: ...en paragraphs and greater than 0 indicates more spacing between paragraphs The default value is 0 which results in default spacing between paragraphs Note This property like all text cast member prope...

Page 670: ...D model group light and camera property describes a sphere that contains the model group light or camera and its children The value of this property is a list containing the vector position of the cen...

Page 671: ...member Editorial a scrolling field Lingo syntax member Editorial boxType scroll JavaScript syntax member Editorial boxType symbol scroll brightness Usage member whichCastmember shader whichShader brig...

Page 672: ...o its sprites currently on the Stage It then sets the viewScale property of the Flash movie cast member and that change is broadcast to its sprite The script then prevents the Flash movie from broadca...

Page 673: ...ngo syntax dvdObjRef buttonCount JavaScript syntax dvdObjRef buttonCount Description DVD property returns the number of available buttons on the current DVD menu Read only Currently unsupported on Mac...

Page 674: ...ons while the mouse button is held down Read write This property applies only to buttons created with the Button tool in the Tool palette The buttonStyle property can have these values 0 list style de...

Page 675: ...ast member Editorial a check box Dot syntax member Editorial buttonType checkBox Verbose syntax set the buttonType of member Editorial to checkBox bytesStreamed Usage Lingo syntax memberObjRef bytesSt...

Page 676: ...ort or the last requested file load has loaded Example This statement shows that 325 300 bytes of the cast member named Scene have been loaded put member Scene bytesStreamed 325300 See also streamSize...

Page 677: ...st member named Picnic sprite 1 camera member Picnic camera TreeCam This statement sets the camera of sprite 1 to camera 2 of the cast member named Picnic sprite 1 camera member Picnic camera 2 See al...

Page 678: ...eraPosition castLib Usage Lingo syntax _movie castLib castNameOrNum JavaScript syntax _movie castLib castNameOrNum Description Movie property provides named or indexed access to the cast libraries of...

Page 679: ...dule number JavaScript syntax sprite 5 castLibNum castLib Wednesday Schedule number See also Cast Library Member castMemberList Usage Lingo syntax memberObjRef castMemberList JavaScript syntax memberO...

Page 680: ...perty interacts with the crop cast member property When the crop property is FALSE the center property has no effect When crop is TRUE and center is TRUE cropping occurs around the center of the digit...

Page 681: ...property to reposition the sprite s registration point to its upper left corner By checking the centerRegPoint property the script ensures that it does not reposition a registration point that had be...

Page 682: ...ff Center This statement changes the centerStage property to the opposite of its current value Lingo syntax _movie centerStage not _movie centerStage JavaScript syntax _movie centerStage _movie center...

Page 683: ...he sound cast member Jazz Lingo syntax put member Jazz channelCount JavaScript syntax put member Jazz channelCount This statement determines the number of channels in the sound member currently playin...

Page 684: ...684 Chapter 14 Properties See also DVD...

Page 685: ...rSet Usage Lingo syntax memberObjRef characterSet JavaScript syntax memberObjRef characterSet Description Font cast member property returns a string containing the characters included for import when...

Page 686: ...hin the text cast member myCaption by a value of 2 Lingo syntax on myCharSpacer mySpaceValue member myCaption word 3 5 charSpacing member myCaption word 3 5 charSpacing mySpaceValue 2 end JavaScript s...

Page 687: ...x in the parent node s list of children A node is a model group camera or light The transform of a node is parent relative If you change the position of the parent its children move with it and their...

Page 688: ...slider in the Frame Properties Transition dialog box The smaller the chunk size the smoother the transition appears This property can be tested and set Example This statement sets the chunk size of t...

Page 689: ...Buffer clearAtRender is set to TRUE The default setting for this property is rgb 0 0 0 Example This statement sets the clearValue property of the camera to rgb 255 0 0 Spaces in the 3d world which are...

Page 690: ...kMode property can have these values boundingBox Detects mouse click events anywhere within the sprite s bounding rectangle and detects rollovers at the sprite s boundaries opaque default Detects mous...

Page 691: ...ite this spriteNum clickMode symbol opaque else sprite this spriteNum clickMode symbol boundingBox clickOn Usage Lingo syntax _mouse clickOn JavaScript syntax _mouse clickOn Description Mouse property...

Page 692: ...eColor random 255 1 See also clickLoc Mouse closed Usage Lingo syntax memberObjRef closed JavaScript syntax memberObjRef closed Description Vector shape cast member property indicates whether the end...

Page 693: ...enabled collision indicates whether collisions with the model are detected resolve indicates whether collisions with the model are resolved immovable indicates whether a model can be moved from frame...

Page 694: ...member MyScene collide the putDetails handler is called and the collisionData argument is sent to it This handler displays the four properties of the collisionData object in the message window The th...

Page 695: ...resource SparkSource and set its properties This model resource is a single burst of particles The tenth line sets the direction of the burst to collisionNormal which is the direction of the collisio...

Page 696: ...dex types an integer from 0 to 255 is used to indicate the index number in the current palette and all other values are truncated Example This statement performs a math operation palColorObj paletteIn...

Page 697: ...ra whichCamera fog color sprite whichSprite camera index fog color Description 3D property indicates the color introduced into the scene by the camera when the camera s fog enabled property is set to...

Page 698: ...reInfo depthBufferDepth colorDepth Usage Lingo syntax _system colorDepth JavaScript syntax _system colorDepth Description System property determines the color depth of the computer s monitor Read writ...

Page 699: ...o 256 colors Lingo syntax if _system colorDepth 8 then window Full color open end if JavaScript syntax if _system colorDepth 8 window Full color open The following handler tries to change the color de...

Page 700: ...e Mesh2 is rgb 255 0 0 put member shapes modelResource mesh2 colorlist 3 rgb 255 0 0 See also face colors colorRange Usage member whichCastmember modelResource whichModelResource colorRange start memb...

Page 701: ...e which has one face three vertices and a maximum of three colors The number of normals and the number of texture coordinates are not set Line 2 sets the vertexList property to a list of three vectors...

Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...

Page 703: ...er shapes model Teapot toon colorSteps 8 See also highlightPercentage shadowPercentage commandDown Usage Lingo syntax _key commandDown JavaScript syntax _key commandDown Description Key property deter...

Page 704: ...ntax memberObjRef comments JavaScript syntax memberObjRef comments Description Member property provides a place to store any comments you want to maintain about the given cast member or any other stri...

Page 705: ...xture Plutomap compressed TRUE See also texture constraint Usage Lingo syntax spriteObjRef constraint JavaScript syntax spriteObjRef constraint Description Sprite property determines whether the regis...

Page 706: ...o locH locV Sprite controlDown Usage Lingo syntax _key controlDown JavaScript syntax _key controlDown Description Key property determines whether the Control key is being pressed Read only This proper...

Page 707: ...own See also Key key controller Usage member whichCastMember controller the controller of member whichCastMember Description Digital video cast member property determines whether a digital video movie...

Page 708: ...string during authoring in the Movie Properties dialog box This property is provided to allow for enhancements in future versions of Shockwave Player Read only See also aboutInfo Movie copyrightInfo S...

Page 709: ...nt theObject object count textExpression count Description Property Lingo only returns the number of entries in a linear or property list the number of properties in a parent script without counting t...

Page 710: ...r model whichModel bonesPlayer playlist count member whichCastmember modelResource whichModelResource face count member whichCastmember model whichModel meshDeform mesh index textureLayer count member...

Page 711: ...erations set cpuHogTicks to a higher value To create faster auto repeating key performance but slower animation set cpuHogTicks to a lower value In a movie when a user holds down a key to generate a r...

Page 712: ...astmember model whichModel toon creases Description 3D toon and inker modifier property determines whether lines are drawn at creases in the surface of the model The default setting for this property...

Page 713: ...s FALSE or it crops but doesn t scale the cast member to fit inside the sprite rectangle TRUE This property can be tested and set Example This statement instructs Lingo to crop any sprite that refers...

Page 714: ...emberObjRef cuePointTimes JavaScript syntax memberObjRef cuePointTimes Description Cast member property lists the times of the cue points in milliseconds for a given cast member Cue point times are us...

Page 715: ...ample This statement causes the motion that is being executed by the model named Monster to repeat continuously member NewAlien model Monster keyframePlayer currentLoopState TRUE See also loop 3D play...

Page 716: ...playing at its original speed Playback of a motion by a model is the result of either a play or queue command The scale parameter of the play or queue command is multiplied by the modifier s playRate...

Page 717: ...member 1 currentTime 22000 See also DVD currentTime QuickTime AVI Usage Lingo syntax spriteObjRef currentTime JavaScript syntax spriteObjRef currentTime Description Digital video sprite property deter...

Page 718: ...alue when currentTime is set or changed the stream redraws the frame at the new time and it resumes playback if pausedAtStart is set to FALSE When the stream is paused or stopped in the RealMedia view...

Page 719: ...an be tested but can only be set for traditional sound cast members WAV AIFF SND When this property is set the range of allowable values is from zero to the duration of the member Shockwave Audio SWA...

Page 720: ...the cursor This rectangle persists when the movie enters another frame unless you set the cursor property for that channel to 0 Use the following syntax to specify the number of a cast member to use a...

Page 721: ...tool 271 Registration point tool 272 Lasso 280 Finger 281 Dropper 282 Wait mouse down 1 283 Wait mouse down 2 284 Vertical size 285 Horizontal size 286 Diagonal size 290 Closed hand 291 No drop hand...

Page 722: ...is over the matte portion of the sprite When the cursor is over the location of a sprite that has been removed rollover still occurs Avoid this problem by not performing rollovers at these locations o...

Page 723: ...32 by 32 pixels Lingo syntax member 20 cursorSize 32 JavaScript syntax member 20 cursorSize 32 curve Usage Lingo syntax memberObjRef curve curveListIndex JavaScript syntax memberObjRef curve curveLis...

Page 724: ...ve 1 vertex 1 point 10 10 JavaScript syntax member 1 curve 1 vertex 1 member 1 curve 1 vertex 1 point 10 10 The following code moves a sprite to the location of the first vertex of the first curve in...

Page 725: ...ayer folder at HardDrive System Folder Extensions Macromedia Shockwave To open this Message window set the debugPlaybackEnabled property to TRUE To close the window set the debugPlaybackEnabled proper...

Page 726: ...r The defaultRect setting also applies to all existing sprites that have not been stretched on the Stage You specify the property values as a Director rectangle for example rect 0 0 32 32 The defaultR...

Page 727: ...he defaultRectMode member property can have these values flash default Sets the default rectangle using the size of the movie as it was originally created in Flash fixed Sets the default rectangle usi...

Page 728: ...3D engraver and newsprint shader property adjusts the number of lines or dots used to create the effects of these specialized shader types Higher values result in more lines or dots For engraver shade...

Page 729: ...the model named Baby to 3 If the sds modifier s error and tension settings are low this will cause a very pronounced effect on Baby s geometry member Scene model Baby sds depth 3 See also sds modifier...

Page 730: ...ee also getRendererServices getHardwareInfo colorBufferDepth deskTopRectList Usage Lingo syntax _system deskTopRectList JavaScript syntax _system deskTopRectList Description System property displays t...

Page 731: ...Model shaderList index diffuse Description 3D standard shader property indicates a color that is blended with the first texture of the shader when the following conditions are met the shader s useDiff...

Page 732: ...0 See also diffuse useDiffuseWithTexture blendFunction blendSource blendConstant diffuseLightMap Usage member whichCastmember shader whichShader diffuseLightMap member whichCastmember model whichMode...

Page 733: ...per second 0 Director uses the time scale of the movie that is currently playing Set digitalVideoTimeScale to precisely access tracks by ensuring that the system s time unit for video is a multiple o...

Page 734: ...sion of a given particle will deviate from that vector by a random angle between 0 and the value of the emitter s angle 3D property Setting direction to vector 0 0 0 causes the particles to be emitted...

Page 735: ...amera of the sprite Changing the value of this property results in changes to the position and rotation properties of the light s transform Possible values of directionalPreset include the following t...

Page 736: ...mance of the cast member or sprite No other cast member can appear in front of a directToStage sprite Also ink effects do not affect the appearance of a directToStage sprite When a sprite s directToSt...

Page 737: ...Example This statement sets disableImagingTransformation to TRUE Lingo syntax _player disableImagingTransformation TRUE JavaScript syntax _player digitalVideoTimeScale true See also image Image Playe...

Page 738: ...The sprite containing this cast member becomes a 3D sprite If this property is set to ModeNormal the text is shown in 2D The default value of this property is ModeNormal Example In this example the c...

Page 739: ...playTemplate Description Movie property provides access to a list of properties that are applied to the window in which a movie is playing back Read write The displayTemplate property provides access...

Page 740: ...w titlebarOptions type Window Window resizable Determines whether a window is resizable If TRUE the window is resizable If FALSE the window is not resizable The default value is TRUE For more informat...

Page 741: ...ir birth member Fires modelResource ThermoSystem emitter distribution linear See also emitter region dither Usage Lingo syntax memberObjRef dither JavaScript syntax memberObjRef dither Description Bit...

Page 742: ...ument windows in Director The window will appear in the view port area and be dockable with the Stage Score and Cast windows media editors and message windows However the window will not be able to gr...

Page 743: ...doubleClick JavaScript syntax _mouse doubleClick Description Mouse property tests whether two mouse clicks within the time set for a double click occurred as a double click rather than two single clic...

Page 744: ...go syntax windowObjRef drawRect JavaScript syntax windowObjRef drawRect Description Window property identifies the rectangular coordinates of the Stage of the movie that appears in a window Read write...

Page 745: ...property determines the size of the drop shadow in pixels for text in a field cast member Example This statement sets the drop shadow of the field cast member Comment to 5 pixels Lingo syntax member C...

Page 746: ...aming sound file this property indicates the duration of the sound The duration property returns 0 until streaming begins Setting preLoadTime to 1 second allows the bit rate to return the actual durat...

Page 747: ...iteObjRef duration Description RealMedia or Shockwave audio sprite or cast member property returns the duration of a RealMedia or Shockwave Audio stream in milliseconds The duration of the stream is n...

Page 748: ...field sprite editable by using the Editable option in the Score For the value set by a script to last beyond the current sprite the sprite must be a scripted sprite Example This handler first makes t...

Page 749: ...d paste operations Lingo syntax _movie editShortCutsEnabled 0 JavaScript syntax _movie editShortCutsEnabled 0 See also Movie elapsedTime Usage Lingo syntax soundChannelObjRef elapsedTime JavaScript sy...

Page 750: ...property is set to rgb 255 255 255 will appear to be illuminated by a white light even if there are no lights in the scene The model will not however illuminate any other models or contribute any lig...

Page 751: ...er properties For more information see the individual property entries See also numParticles loop emitter direction distribution region angle 3D path 3D pathStrength minSpeed maxSpeed emulateMultibutt...

Page 752: ...For example the calling statement ableMenu Special FALSE disables all the items in the Special menu on ableMenu theMenu vSetting set n the number of menuItems of menu theMenu repeat with i 1 to n set...

Page 753: ...n 3D sds modifier property indicates whether the sds modifier attached to a model is used by the model The default setting for this property is TRUE An attempt to add the sds modifier to a model that...

Page 754: ...F files or a movie with Shockwave content that accepts a URL for a SWF file from an end user Example This statement sets the enableFlashLingo property to TRUE Lingo syntax _movie enableFlashLingo TRUE...

Page 755: ...re4 endAngle MyAngle updateStage end repeat end See also state 3D endColor Usage Lingo syntax memberObjRef endColor JavaScript syntax memberObjRef endColor Description Vector shape cast member propert...

Page 756: ...paused or queued sound Read write The end time is the time within the sound member when it will stop playing It s a floating point value allowing for measurement and control of sound playback to frac...

Page 757: ...g whether the movie is playing in ShockMachine shockMachineVersion String indicating the installed version number of ShockMachine platform String containing Macintosh PowerPC or Windows 32 This is bas...

Page 758: ...ef eventPassMode JavaScript syntax memberOrSpriteObjRef eventPassMode Description Flash cast member property and sprite property controls when a Flash movie passes mouse events to behaviors that are a...

Page 759: ...not TRUE Read write The user can quit to the desktop by pressing Control period Windows or Command period Macintosh Control Q Windows or Command Q Macintosh or Control W Windows or Command W Macintos...

Page 760: ...ty is valid only for movies with Shockwave content that are running in a browser It doesn t work for movies during authoring or for projectors For more information about the valid external parameters...

Page 761: ...perty All model resources are meshes composed of triangles Each triangle is a face You can access the properties of the faces of model resources whose type is mesh Changes to any of these properties d...

Page 762: ...vertex list of the model resource used by Floor put member Scene model Floor meshdeform mesh 1 face 1 1 2 3 See also meshDeform modifier face vertexList mesh deform vertices far fog Usage member whic...

Page 763: ...plane which is positioned in front of the camera like a screen in front of a movie projector The projection plane is what you see in the 3D sprite The top and bottom of the projection plane are define...

Page 764: ...Cast library property returns or sets the filename of a cast library Read only for internal cast libraries read write for external cast libraries For external cast libraries fileName returns the cast...

Page 765: ...then uses the external cast file Content cst as the Buttons cast These statements download an external cast from a URL to the Director application folder and then make that file the external cast nam...

Page 766: ...ethods to download the file to a local disk first and then set the fileName property to the file on the local disk After the filename is set Director uses that file the next time the cast member is us...

Page 767: ...ple This statement assigns the file named Control Panel to the window named Tool Box Lingo syntax window Tool Box fileName Control Panel JavaScript syntax window Tool Box fileName Control Panel This s...

Page 768: ...atement displays the number of bytes in the current movie Lingo syntax put _movie fileSize JavaScript syntax put _movie fileSize See also Movie fileVersion Usage Lingo syntax _movie fileVersion JavaSc...

Page 769: ...Examples folder inside the Director application folder Example This statement sets the fill color of the member Archie to a new RGB value Lingo syntax member Archie fillColor color 24 15 153 JavaScrip...

Page 770: ...e shape is set to gradient This property can be tested and set To see an example of fillDirection used in a completed movie see the Vector Shapes movie in the Learning Lingo Examples folder inside the...

Page 771: ...e Director application folder Example This statement sets the fillMode of member Archie to gradient Lingo syntax member Archie fillMode gradient JavaScript syntax member Archie fillMode symbol gradien...

Page 772: ...cription Vector shape cast member property specifies the amount to scale the fill of the shape This property is referred to as spread in the vector shape window This property is only valid when the fi...

Page 773: ...member Desk to 0 pixels Lingo syntax member Desk firstIndent 0 JavaScript syntax member Desk firstIndent 0 See also leftIndent rightIndent fixedLineSpace Usage Lingo syntax chunkExpression fixedLineS...

Page 774: ...a Flash movie sprite As parameters the handler accepts a sprite reference an indication of whether to speed up or slow down the Flash movie and the amount to adjust the speed Lingo syntax on adjustFi...

Page 775: ...is FALSE it sends the playhead to a specified frame Lingo syntax if _movie fixStageSize FALSE then _movie go proper size end if JavaScript syntax if _movie fixStageSize false _movie go proper size Th...

Page 776: ...r model whichModel shader flat member whichCastmember model whichModel shaderList index flat Description 3D standard shader property indicates whether the mesh should be rendered with flat shading TRU...

Page 777: ...Lingo syntax put sprite 5 flipH JavaScript syntax put sprite 5 flipH See also flipV rotation skew Sprite flipV Usage Lingo syntax spriteObjRef flipV JavaScript syntax spriteObjRef flipV Description S...

Page 778: ...places Trailing zeros are dropped This property can be tested and set Example This statement rounds off the square root of 3 0 to three decimal places the floatPrecision 3 x sqrt 3 0 put x 1 732 This...

Page 779: ...is located on the root of the start up drive the value for the folder property could be entered in either of the following two ways Volumes Macintosh HD myLocalDVDContent video_ts or Volumes Macintosh...

Page 780: ...mand is used for retrieving the path of the projector or movie on a Macintosh it will contain a colon instead of the forward slash The use of the colon in the DVD folder s pathname will cause an error...

Page 781: ...he Director application folder Example This statement sets the variable named oldSize to the current fontSize of member setting for the field cast member Rokujo Speaks Lingo syntax oldSize member Roku...

Page 782: ...nside the Director application folder Example This statement sets the variable named oldStyle to the current fontStyle setting for the field cast member Rokujo Speaks Lingo syntax oldStyle member Roku...

Page 783: ...ble oldColor to the foreground color of sprite 5 Lingo syntax oldColor sprite 5 foreColor JavaScript syntax var oldColor sprite 5 foreColor The following statement makes 36 the number for the foregrou...

Page 784: ...dow the channel number and the number of frames in a Flash movie Lingo syntax property spriteNum on beginSprite me put The Flash movie in channel spriteNum has sprite spriteNum member frameCount frame...

Page 785: ...the palette used in the current frame which is either the current palette or the palette set in the current frame Read write during a Score recording session only When you want exact control over colo...

Page 786: ...property is set to 2 the digital video movie plays every frame as fast as possible For Flash movie cast members the property indicates the frame rate of the movie created in Flash This property can be...

Page 787: ...currentTime QuickTime AVI playBackMode frameRate DVD Usage Lingo syntax dvdObjRef frameRate JavaScript syntax dvdObjRef frameRate Description DVD property Returns the value of the DVD Read only The va...

Page 788: ...statement displays the number of the script assigned to the current frame In this case the script number is 25 Lingo syntax put _movie frameScript JavaScript syntax put _movie frameScript This statem...

Page 789: ...e cast member assigned to the second sound channel in the current frame Read write This property can also be set during a Score recording session Example As part of a Score recording session this stat...

Page 790: ...er assigned to the current frame Read write only during a Score recording session to specify transitions Example When used in a Score recording session this statement makes the cast member Fog the tra...

Page 791: ...floating palette is frontmost frontWindow returns VOID Lingo or null JavaScript syntax Example This statement determines whether the window Music is currently the frontmost window and if it is brings...

Page 792: ...global variable is a property in the list with the associated paired value You can use the following list operations on globals count Returns the number of entries in the list getPropAt n Returns the...

Page 793: ...member 3DPlanet model GlassBox shader glossMap member 3DPlanet texture Oval See also blendFunctionList textureModeList region specularLightMap diffuseLightMap gravity Usage member whichCastmember mode...

Page 794: ...kdrop gradientType radial then member backdrop gradientType linear else member backdrop gradientType radial end if end JavaScript syntax function mouseUp var gt member backdrop gradientType if gt radi...

Page 795: ...ef height memberObjRef height spriteObjRef height Description Image Member and Sprite property for vector shape Flash animated GIF RealMedia Windows Media bitmap and shape cast members determines the...

Page 796: ...the nearest power of 2 Example This statement sets the height of the model resource named Tower to 225 0 world units member 3D World modelResource Tower height 225 0 This statement shows that the hei...

Page 797: ...rty is 0 to 100 and the default value is 50 The number of colors used by the toon modifier and painter shader for a model is determined by the colorSteps property of the model s toon modifier or paint...

Page 798: ...e button tool is selected TRUE or not FALSE default Read write Example This statement checks whether the button named Sound on is selected and if it is turns sound channel 1 all the way up Lingo synta...

Page 799: ...animated color cursor cast member whichCursorCastMember Director uses this point to track the cursor s position on the screen for example when it returns the values for the Lingo functions mouseH and...

Page 800: ...lso hotSpotExitCallback nodeEnterCallback nodeExitCallback triggerCallback hotSpotExitCallback Usage Lingo syntax spriteObjRef hotSpotExitCallback JavaScript syntax spriteObjRef hotSpotExitCallback De...

Page 801: ...roperty returns the hyperlink string for the specified chunk expression in the text cast member This property can be both tested and set When retrieving this property the link containing the first cha...

Page 802: ...nkExpression See also hyperlink hyperlinkState hyperlinks Usage Lingo syntax chunkExpression hyperlinks JavaScript syntax chunkExpression hyperlinks Description Text cast member property returns a lin...

Page 803: ...he following handler checks to see if the hyperlink clicked is a web address If it is the state of the hyperlink text state is set to visited and the movie branches to the web address Lingo syntax pro...

Page 804: ...leHandlerPeriod Possible settings for idleHandlerPeriod are 0 As many idle events as possible 1 Up to 60 per second 2 Up to 30 per second 3 Up to 20 per second n Up to 60 n per second The number of id...

Page 805: ...with the preLoad and preLoadMember methods Cast members that were loaded using idle loading remain compressed until the movie uses them When the movie plays back it may have noticeable pauses while it...

Page 806: ...dleLoadTag JavaScript syntax _movie idleLoadTag Description Movie property identifies or tags with a number the cast members that have been queued for loading when the computer is idle Read write The...

Page 807: ...ge read only for an image of the Stage or a window Setting a cast member s image property immediately changes the contents of the member However when getting the image of a member or window Director c...

Page 808: ...urns a Lingo image object containing the current frame of the RealMedia video stream You can use this property to map RealVideo onto a 3D model see the example below Example This statement copies the...

Page 809: ...vie imageCompression memberObjRef imageCompression JavaScript syntax _movie imageCompression memberObjRef imageCompression Description Movie and bitmap cast member property indicates the type of compr...

Page 810: ...ntax global gStreamingSprite on beginSprite me gStreamingSprite me spriteNum sprite gStreamingSprite imageEnabled FALSE end JavaScript syntax function beginSprite _global gStreamingSprite this spriteN...

Page 811: ...age quality and lowest compression You can set this property only during authoring and it has no effect until the movie is saved in Shockwave Player format Example This statement displays in the Messa...

Page 812: ...lor box in the Tools window You can also do this by setting the backColor property If you set this property within a script while the playhead is not moving be sure to use the Movie object s updateSta...

Page 813: ...h modifier was first applied The list of modifiers returned by the modifier property will list inker or toon whichever was added first but not both The inker modifier can not be used in conjunction wi...

Page 814: ...syntax memberObjRef interval Description Cursor cast member property specifies the interval in milliseconds ms between each frame of the animated color cursor cast member whichCursorCastMember The def...

Page 815: ...mines whether Director draws QuickTime movies in the white pixels of the movie s mask TRUE or in the black pixels FALSE default This property can be tested and set Example This handler reverses the cu...

Page 816: ...wing handler checks to see if the member of a sprite is a QuickTime movie If it is the handler further checks to see if it is a QTVR movie An alert is posted in any case Lingo syntax on checkForVR the...

Page 817: ...colon When a colon is the delimiter Lingo can use the last item of to determine the last item in the chunk that makes up a Macintosh pathname Before exiting the delimiter is reset to its original valu...

Page 818: ...itute ANSI value that is assigned to the key not the numerical value You can use key in handlers that perform certain actions when the user presses specific keys as shortcuts and other forms of intera...

Page 819: ...d JavaScript syntax function keyDown if _key key z addNumbers See also commandDown Key keyboardFocusSprite Usage Lingo syntax _movie keyboardFocusSprite JavaScript syntax _movie keyboardFocusSprite De...

Page 820: ...respond to different keys on different keyboards Example This handler uses the Message window to display the appropriate key code each time a key is pressed Lingo syntax on enterFrame keyDownScript pu...

Page 821: ...Down message can be passed on to other objects in the movie no other on keyDown handlers are executed Setting the keyDownScript property performs the same function as using the when keyDown then comma...

Page 822: ...e play or queue command to determine the playback speed of the motion playlist count returns the number of motions currently queued in the playlist rootLock indicates whether the translational compone...

Page 823: ...Lingo that is executed when a key is released The Lingo is written as a string surrounded by quotation marks and can be a simple statement or a calling script for a handler When a key is released and...

Page 824: ...st member Key Frames This handler determines the label that starts the current scene See also frameLabel label marker lastChannel Usage Lingo syntax _movie lastChannel JavaScript syntax _movie lastCha...

Page 825: ...end if JavaScript syntax if _player lastClick 10 60 _movie go No Click See also lastEvent lastKey lastRoll Player lastError Usage Lingo syntax memberOrSpriteObjRef lastError JavaScript syntax memberO...

Page 826: ...Description Player property returns the time in ticks 1 tick 1 60 of a second since the last mouse click rollover or key press occurred Read only Example This statement checks whether 10 seconds have...

Page 827: ...ince the last key was pressed Read only Example This statement checks whether 10 seconds have passed since the last key was pressed and if so sends the playhead to the marker No Key Lingo syntax if _p...

Page 828: ...ng rectangle of a sprite Read write Sprite coordinates are measured in pixels starting with 0 0 at the upper left corner of the Stage Example The following statement determines whether the sprite s le...

Page 829: ...property contains the number of pixels the left margin of chunkExpression is offset from the left side of the text cast member The value is an integer greater than or equal to 0 This property can be...

Page 830: ...its Y axis Set the renderStyle property of a model s shader to wire to see the faces of the mesh of the model s resource Set the renderStyle property to point to see just the vertices of the mesh The...

Page 831: ...f milliseconds from the creation of a particle to the end of its existence The default value of this property is 10 000 Example In this example ThermoSystem is a model resource of the type particle Th...

Page 832: ...r on the model named Teapot to rgb 255 0 0 which is red member shapes model Teapot toon lineColor rgb 255 0 0 See also creases silhouettes boundary lineOffset lineCount Usage Lingo syntax memberObjRef...

Page 833: ...Usage member whichCastMember lineHeight the lineHeight of member whichCastMember Description Cast member property determines the line spacing used to display the specified field cast member The parame...

Page 834: ...seLineOffset lineColor lineSize Usage member whichCastMember lineSize the lineSize of member whichCastMember sprite whichSprite lineSize the lineSize of sprite whichSprite Description Shape cast membe...

Page 835: ...verts Flash cast member homeBodies from a linked member to an internally stored member Lingo syntax member homeBodies linked 0 JavaScript syntax member homeBodies linked 0 See also Member loaded Usage...

Page 836: ...3D backdrop and overlay property indicates the 2D location of the backdrop or overlay as measured from the upper left corner of the sprite This property is initially set as a parameter of the addBackd...

Page 837: ...ich of the three translational components are controlled for each frame When a lock on an axis is turned on the current displacement along that axis is stored and used thereafter as the fixed displace...

Page 838: ...splay order of those two sprites This means sprites in lower numbered channels appear behind sprites in higher numbered channels even when the locZ values are equal By default each sprite has a locZ v...

Page 839: ...perform opposite functions the sds modifier adds geometric detail and the lod modifier removes geometric detail Before adding the sds modifier it is recommended that you disable the lod auto modifier...

Page 840: ...rce whichModelResource emitter loop Description 3D property when used with a model resource whose type is particle this property allows you to both get and set what happens to particles at the end of...

Page 841: ...and member property controls whether a Flash movie plays in a a continuous loop TRUE or plays once and then stops FALSE The property can be both tested and set Example This frame script checks the do...

Page 842: ...or sprite The loop points are specified as a Director list startTime endTime The startTime and endTime parameters must meet these requirements Both parameters must be integers that specify times in D...

Page 843: ...p Read only The default value of this property is 1 for sounds that are simply queued with no internal loop You can loop a portion of a sound by passing the parameters loopStartTime loopEndTime and lo...

Page 844: ...und playing in a sound channel Read only The value of this property is a floating point number allowing you to measure and control sound playback to fractions of a millisecond This property can only b...

Page 845: ...Sound Channel property specifies the start time in milliseconds of the loop for the current sound being played by a sound channel Read only Its value is a floating point number allowing you to measur...

Page 846: ...of MyVec2 is 141 4214 MyVec1 vector 100 0 0 put MyVec1 magnitude 100 0000 MyVec2 vector 100 100 0 put MyVec2 magnitude 141 4214 See also length 3D identity margin Usage Lingo syntax memberObjRef marg...

Page 847: ...direct to Stage digital video while playing a QuickTime movie in a nonrectangular area The mask property has no effect on non direct to Stage cast members Director always aligns the registration point...

Page 848: ...tion System property returns the largest whole number that is supported by the system On most personal computers this is 2 147 483 647 2 to the thirty first power minus 1 This property can be useful f...

Page 849: ...airly quickly Within a given particle system the faster a particle moves the farther it will travel member Fires modelResource ThermoSystem emitter maxSpeed 15 See also minSpeed emitter media Usage Li...

Page 850: ...linked cast member is downloaded from the Internet and is available on the local disk TRUE or not FALSE Read only This property is useful only when streaming a movie or cast library file Movie streami...

Page 851: ...the state of the RealMedia or Windows Media stream Read only The value of this property can change during playback Valid values for this property are as follows closed indicates that the RealMedia or...

Page 852: ...r or by a script invoking the pause method error indicates that the stream could not be connected buffered or played for some reason The lastError property reports the actual error Depending on the ca...

Page 853: ...e s type is fromImageObject this property value is void but it can be set Example This Lingo adds a new texture The second statement shows that the cast member used to create the texture named gbTextu...

Page 854: ...d numbered access and sets the result to the variable myMember Lingo syntax myMember _movie member 2 using numbered access myMember _movie member Athlete using named access JavaScript syntax var myMem...

Page 855: ...ty spriteObjRef member 132 If you use only the cast member name Director finds the first cast member that has that name in all current cast libraries If the name is duplicated in two cast libraries on...

Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...

Page 857: ...mouseMember Sprite spriteNum memorySize Usage the memorySize Description System property returns the total amount of memory allocated to the program whether in use or free memory This property is use...

Page 858: ...of meshes in the referenced model mesh index allows access to the properties of the specified mesh Example The following statement displays the number of faces in the model named gbFace put member 3D...

Page 859: ...le if _system milliseconds 1000 60 60 4 _player alert Take a break See also System minSpeed Usage member whichCastmember modelResource whichModelResource emitter minSpeed Description 3D property when...

Page 860: ...perty of the resource s particle emitter This property can have the value burst or stream default A mode value of burst causes all particles to be emitted at the same time while a value of stream caus...

Page 861: ...urModel collision mode mesh model Usage member whichCastmember model whichModel member whichCastmember model index member whichCastmember model count member whichCastmember model whichModel propertyNa...

Page 862: ...solve property of the models modifiers must be set to TRUE This property can be tested but not set Example This example has three parts The first part is the first line of code which registers the put...

Page 863: ...st part is the first line of code which registers the putDetails handler for the collideAny event The second part is the putDetails handler When two models in the cast member named MyScene collide the...

Page 864: ...case sensitive The index position of a particular model resource may change when objects at lower index positions are deleted Example This statement stores a reference to the model resource named Hou...

Page 865: ...syntax memberObjRef modifiedBy JavaScript syntax memberObjRef modifiedBy Description Member property records the name of the user who last edited the cast member Read only The name is taken from the...

Page 866: ...ber 1 modifiedDate See also Member modifier Usage member whichCastmember model whichModel modifier member whichCastmember model whichModel modifier count Description 3D model property returns a list o...

Page 867: ...hed modifier s properties is not supported through the use of this command Example put member 3d world model box modifier 1 lod See also modifier modifiers addModifier removeModifier modifiers Usage g...

Page 868: ...e most recently passed cue point in the currently playing sound in sound channel 2 Lingo syntax put sound 2 mostRecentCuePoint JavaScript syntax put sound 2 mostRecentCuePoint See also cuePointNames i...

Page 869: ...sprite 1 motionQuality minQuality JavaScript syntax sprite 1 motionQuality symbol minQuality mouseChar Usage Lingo syntax _mouse mouseChar JavaScript syntax _mouse mouseChar Description Mouse property...

Page 870: ...currentChar member _mouse mouseMember char _mouse mouseChar JavaScript syntax var currentChar member _mouse mouseMember getProp char _mouse mouseChar See also Mouse mouseItem mouseLine mouseDown Usag...

Page 871: ...structions include the pass command so that the mouseDown message can be passed to other objects in the movie Setting the mouseDownScript property performs the same function as the when keyDown then c...

Page 872: ...you can determine the cursor s exact location Example This handler moves sprite 10 to the mouse pointer location and updates the Stage when the user clicks the mouse button Lingo syntax on mouseDown...

Page 873: ...tem when the handler or loop begins call this property once and assign its value to a local variable Example This statement determines whether the pointer is over a field sprite and changes the conten...

Page 874: ...ounding rectangle to QuickTime No clicks pass to other Lingo handlers none Does not pass any mouse clicks to QuickTime Director responds to all mouse clicks shared Passes all mouse clicks within a Qui...

Page 875: ...sually a good idea to call the property once and assign its value to a local variable Example This statement determines whether the pointer is over a field sprite and changes the content of the field...

Page 876: ...Usage Lingo syntax _mouse mouseMember JavaScript syntax _mouse mouseMember Description Mouse property returns the cast member assigned to the sprite that is under the pointer when the property is call...

Page 877: ...Button Usage Lingo syntax spriteObjRef mouseOverButton JavaScript syntax spriteObjRef mouseOverButton Description Flash sprite property indicates whether the mouse pointer is over a button in a Flash...

Page 878: ...se button is released TRUE or is being pressed FALSE Read only Example This handler causes the movie to run as long as the user presses the mouse button The playhead stops when the user releases the m...

Page 879: ...g the statement set the mouseUpScript to empty Setting the mouseUpScript property accomplishes the same thing as using the when mouseUp then command that appeared in earlier versions of Director This...

Page 880: ...s handler moves sprite 1 to the mouse pointer location and updates the Stage when the user clicks the mouse button Lingo syntax on mouseDown sprite 1 locH _mouse mouseH sprite 1 locV _mouse mouseV end...

Page 881: ...JavaScript syntax if _mouse mouseWord 1 member Instructions text Please point to a word else member Instructions text Thank you This statement assigns the number of the word under the pointer in the...

Page 882: ...drag this item by using the mouse See also mouseLoc movie Usage Lingo syntax windowObjRef movie JavaScript syntax windowObjRef movie Description Window property returns a reference to the movie object...

Page 883: ...s the name of the window Yesterday to Today Lingo syntax window Yesterday name Today JavaScript syntax window Yesterday name Today See also Cast Library Member Movie Window name 3D Usage member whichC...

Page 884: ...e not available in Shockwave Player Example This statement assigns the name of menu number 1 to the variable firstMenu firstMenu menu 1 name The following handler returns a list of menu names one per...

Page 885: ...recording session between calls to the Movie object s beginRecording and endRecording methods You can only set the name if beginRecording is called on or before a frame in the Score that contains the...

Page 886: ...not need to call updateFrame before setting the name of the sprite channel A change to a sprite channel s name using script is not reflected in the Score window Example This statement sets the name of...

Page 887: ...r whichCastmember camera whichCamera fog near cameraReference fog near member whichCastmember camera whichCamera fog far cameraReference fog far Description 3D properties this property allows you to g...

Page 888: ...of performance with bilinear being less performance costly than trilinear When the property s value is TRUE bilinear filtering is used When the value is FALSE bilinear filtering is not used The defaul...

Page 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...

Page 890: ...e authoring environment and projectors on the Macintosh It is ignored on Windows or Shockwave Player on the Mac See also Player node Usage Lingo syntax spriteObjRef node JavaScript syntax spriteObjRef...

Page 891: ...whether the movie goes on to the next node If the handler returns continue the QuickTime VR sprite continues with a normal node transition If the handler returns cancel the transition doesn t occur an...

Page 892: ...face normals and vertex normals see the normals entry Example put member 5 2 modelResource mesh square normalList vector 0 0 1 member 2 modelResource mesh3 normalList 2 vector 205 0000 300 0000 27 000...

Page 893: ...unt put castLib n name contains castLib n member count cast members end repeat JavaScript syntax for var n 1 n _movie castLib count n put castLib n name contains castLib n member count cast members Se...

Page 894: ...item chunk is any sequence of characters delimited by commas Chunk expressions are any character word item or line in any container of characters Containers include fields field cast members and vari...

Page 895: ...put the number of lines in Macromedia the Multimedia Company The result is 1 This statement sets the variable lineCounter to the number of lines in the field Names lineCounter the number of lines in...

Page 896: ...Up if member Mike s face number 0 sprite this spriteNum member Mike s face See also castLib Member number menus Usage the number of menus Description Menu property indicates the number of menus instal...

Page 897: ...in the custom File menu fileItems the number of menuItems of menu File This statement sets the variable itemCount to the number of menu items in the custom menu whose menu number is equal to the varia...

Page 898: ...of characters Containers include field cast members and variables that hold strings and specified characters words items lines and ranges in containers To accomplish this functionality with text cast...

Page 899: ...e number of scripting Xtra extensions available to the movie The Xtra extensions may be either those opened by the openxlib command or those present in the Configuration Xtras folder This property can...

Page 900: ...th a model resource whose type is particle allows you to get or set the numParticles property of the resource s particle emitter The value must be greater than 0 and no more than 100000 The default se...

Page 901: ...ctionality of using the member rotation property for all sprites containing that Flash member New assets created in version 7 or later will have this property automatically set to TRUE If set to TRUE...

Page 902: ...controlDown Key key keyCode shiftDown organizationName Usage Lingo syntax _player organizationName JavaScript syntax _player organizationName Description Player property contains the company name ente...

Page 903: ...avaScript syntax memberOrSpriteObjRef originH Description Cast member and sprite property controls the horizontal coordinate of a Flash movie or vector shape s origin point in pixels The value can be...

Page 904: ...m originV 80 See also originV originMode originPoint scaleMode originMode Usage Lingo syntax memberOrSpriteObjRef originMode JavaScript syntax memberOrSpriteObjRef originMode Description Cast member p...

Page 905: ...oint property is specified as a Director point value for example point 100 200 Setting a Flash movie or vector shape s origin point with the originPoint property is the same as setting the originH and...

Page 906: ...inV Usage Lingo syntax memberOrSpriteObjRef originv JavaScript syntax memberOrSpriteObjRef originV Description Cast member and sprite property controls the vertical coordinate of a Flash movie or vect...

Page 907: ...sage member whichCastmember camera whichCamera orthoHeight member whichCastmember camera cameraindex orthoHeight sprite whichSprite camera orthoHeight Description 3D property when camera projection is...

Page 908: ...regPoint relative to the camera rect s upper left corner source allows you to get or set the texture to use as the source image for the overlay scale allows you to get or set the scale value used by t...

Page 909: ...put member Leaves palette JavaScript syntax put member Leaves palette paletteMapping Usage Lingo syntax _movie paletteMapping JavaScript syntax _movie paletteMapping Description Movie property determi...

Page 910: ...ovie paletteMapping true See also Movie paletteRef Usage member whichCastMember paletteRef the paletteRef Description Bitmap cast member property determines the palette associated with a bitmap cast m...

Page 911: ...de the Director application folder Example These statements pan the sound in sound channel 2 from the left channel to the right channel Lingo syntax repeat with x 100 to 100 sound 2 pan x end repeat J...

Page 912: ...ject s parent property to the World group object group World is the same as adding an object to the world using the addToWorld command You can also alter the value of this property by using the addChi...

Page 913: ...ing examples set the password for the RealMedia stream in sprite 2 and the cast member Real to abracadabra Lingo syntax sprite 2 password abracadabra member Real password abracadabra JavaScript syntax...

Page 914: ...property of the resource s particle emitter This property is a list of vectors that define the path particles follow over their lifetime The default value of this property is an empty list Example In...

Page 915: ...ngth Description 3D property when used with a model resource whose type is particle determines how closely the particles follow the path specified by the path property of the emitter Its range starts...

Page 916: ...le s number offset from the previous one enabling you to create animation using smaller bitmaps on exitFrame currentPat member Background Shape pattern nextPat 57 currentPat 56 mod 8 member Background...

Page 917: ...RealMedia or Windows Media viewer or a button you have created for this purpose in your movie or you must call the play method to play the sprite when buffering is complete This property only affects...

Page 918: ...s been filled with the RealMedia stream that is loading from a local file or the server When this property reaches 100 the buffer is full and the RealMedia stream begins to play if the pausedAtStart p...

Page 919: ...ested only after the SWA sound starts playing or has been preloaded by means of the preLoadBuffer command This property cannot be set Example This handler displays the percentage of the SWA streaming...

Page 920: ...For Flash movie cast members this property gets the percent of a Flash movie that has streamed into memory For QuickTime sprites this property gets the percent of the QuickTime file that has played Th...

Page 921: ...to the timeout handler This property can be tested and set Example This timeout handler decreases the timeout s period by one second each time it s invoked until a minimum period of 2 seconds 2000 mil...

Page 922: ...JavaScript syntax memberObjRef picture Description Cast member property determines which image is associated with a bitmap text or PICT cast member To update changes to a cast member s registration po...

Page 923: ...statement grabs the current content of the Stage and places it into a bitmap cast member Lingo syntax member Stage image picture _movie stage picture JavaScript syntax member Stage image picture _movi...

Page 924: ...member with the following values normal default Plays the Flash movie or GIF file as close to the original tempo as possible lockStep Plays the Flash movie or GIF file frame for frame with the Directo...

Page 925: ...ript syntax function enterFrame var plg sprite 5 playing if plg 0 sprite 5 play playing 3D Usage member whichCastmember model whichModel keyframePlayer playing member whichCastmember model whichModel...

Page 926: ...ty can be tested but not set Use the queue play playNext and removeLast commands to manipulate it Example The following statement displays the currently queued motions for the model Stroller in the Me...

Page 927: ...layRate QuickTime AVI Usage Lingo syntax spriteObjRef playRate JavaScript syntax spriteObjRef playRate Description Digital video sprite property controls the rate at which a digital video in a specifi...

Page 928: ...e 1 JavaScript syntax sprite 9 playRate 1 See also duration Member currentTime QuickTime AVI playRate Windows Media Usage Lingo syntax windowsMediaObjRef playRate JavaScript syntax windowsMediaObjRef...

Page 929: ...erpendicular to each other but they should not be parallel to each other Example This statement displays the object relative front direction and up direction vectors of the model named bip01 put membe...

Page 930: ...mr colorRange start rgb 0 0 255 nmr colorRange end rgb 255 0 0 nmr lifetime 5000 nm member MyScene newModel SparksModel nmr nm transform position collisionData pointOfContact end See also modelA model...

Page 931: ...del Tire getWorldTransform put tempTransform position vector 5 0000 2 5000 10 0000 See also transform property getWorldTransform rotation transform scale transform positionReset Usage member whichCast...

Page 932: ...ax function resetThumbnail whichFlashMovie whichFrame member whichFlashMovie posterFrame whichFrame preferred3dRenderer Usage Lingo syntax _movie preferred3dRenderer JavaScript syntax _movie preferred...

Page 933: ...the user is used Example This statement allows the movie to pick the best 3D renderer available on the user s system Lingo syntax _movie preferred3dRenderer auto JavaScript syntax _movie preferred3dRe...

Page 934: ...s property works only for linked Flash movies whose assets are stored in an external file it has no effect on members whose assets are stored in the cast The streamMode and bufferSize properties deter...

Page 935: ...etermines the preload mode of a specified cast library Read write Valid values of preLoadMode are 0 Load the cast library when needed This is the default value 1 Load the cast library before frame 1 2...

Page 936: ...from that point on If you know the data rate of your movie you can estimate the setting for preLoadRAM For example if your movie has a data rate of 300K per second set preLoadRAM to 600K if you want...

Page 937: ...e currently playing sound in sound channel 1 Lingo syntax put sound 1 preLoadTime JavaScript syntax trace sound 1 preLoadTime See also preLoadBuffer primitives Usage getRendererServices primitives Des...

Page 938: ...race _player productVersion JavaScript syntax trace _player productVersion See also Player projection Usage sprite whichSprite camera projection camera whichCamera projection member whichCastmember ca...

Page 939: ...mory is full The higher the purge priority the more likely that the cast member will be deleted The following purgePriority settings are available 0 Never 1 Last 2 Next 3 Normal default The Normal set...

Page 940: ...Score values by turning off the scripted sprite with puppetSprite intSpriteNum FALSE When the quad of a sprite is disabled you cannot rotate or skew the sprite Example This statement displays a typic...

Page 941: ...w Director starts by rendering the movie without anti aliasing If the Flash player determines that the computer processor can handle it anti aliasing is turned on This setting gives precedence to visu...

Page 942: ...t is being used when needed Trilinear mipmapping is higher in quality and uses more memory than bilinear mipmapping Mipmapping is not the same as filtering although both improve texture appearance Fil...

Page 943: ...embeds a TrueType or Type 1 font as a cast member Once embedded these fonts are available to the author just like other fonts installed in the system You must create an empty font cast member with the...

Page 944: ...ect Description 3D camera property allows you to get or set the rectangle that controls the size and position of the camera This rectangle is analogous to the rectangle you see through the eyepiece of...

Page 945: ...atement returns the rectangle of the 300 x 400 pixel member Sunrise in the message window Lingo syntax member Sunrise image rect rect 0 0 300 400 JavaScript syntax member Sunrise image rect rect 0 0 3...

Page 946: ...nt window For an Xtra extension cast member the rect property is a rectangle whose upper left corner is at 0 0 Example This statement displays the coordinates of bitmap cast member 20 Lingo syntax put...

Page 947: ...ngle specified is less than that of the Stage where the movie was created the movie is cropped in the window not resized To pan or scale the movie playing in the window set the drawRect or sourceRect...

Page 948: ...actual string data not information about the string reflectionMap Usage member whichCastmember shader whichShader reflectionMap Description 3D shader property allows you to get and set the texture use...

Page 949: ...le allows you to both get and set the region property of the resource s particle emitter The region property defines the location from which particles are emitted If its value is a single vector then...

Page 950: ...egPoint to adjust the position of a mask being used on a sprite When a Flash movie cast member is first inserted into the cast library its registration point is its center and its centerRegPoint prope...

Page 951: ...1 regPoint point 50 0 See also loc backdrop and overlay regPointVertex Usage Lingo syntax memberObjRef regPointVertex JavaScript syntax memberObjRef regPointVertex Description Cast member property in...

Page 952: ...t shows that the renderer currently being used by the user s system is openGL put getRendererServices renderer openGL See also getRendererServices preferred3dRenderer rendererDeviceList active3dRender...

Page 953: ...ererServices textureRenderFormat rgba8888 rgba8880 rgba5650 rgba5550 rgba5551 rgba4444 See textureRenderFormat for information on these values Setting this property for an individual texture overrides...

Page 954: ...to the standard shader properties in addition to these standard shader properties shaders of the types engraver newsprint and painter have properties unique to their type For more information see newS...

Page 955: ...surface The default value of this property is 20 Example This statement sets the resolution of the model resource named sphere01 to 10 0 member 3D World modelResource sphere01 resolution 10 0 resolut...

Page 956: ...Box collides with another model that has the collision modifier attached it will stop moving member 3d world model Box collision resolve TRUE See also collisionData collisionNormal modelA modelB poin...

Page 957: ...put sprite 6 right See also bottom height left locH locV Sprite top width right 3D Usage member whichCastmember modelResource whichModelResource right modelResourceObjectReference right Description 3...

Page 958: ...t syntax _mouse rightMouseDown Description Mouse property indicates whether the right mouse button Windows or the mouse button and Control key Macintosh are being pressed TRUE or not FALSE Read only O...

Page 959: ...y member Click Me end if JavaScript syntax if _mouse rightMouseUp sound 2 play member Click Me See also emulateMultibuttonMouse Mouse romanLingo Usage the romanLingo Description System property specif...

Page 960: ...newalien model Alien3 keyframePlayer rootLock 1 rootNode Usage member whichCastmember camera whichCamera rootNode sprite whichSprite camera rootNode Description 3D property allows you to get or set w...

Page 961: ...sprite frequently moves part of the image out of the viewable area when the sprite s crop property is set to FALSE the image is scaled to fit within the bounding rectangle which may cause image disto...

Page 962: ...on i 10 _movie updateStage See also obeyScoreRotation originMode Sprite rotation backdrop and overlay Usage sprite whichSprite camera backdrop backdropIndex rotation member whichCastmember camera whic...

Page 963: ...Description 3D property allows you to get or set the rotational component of a transform A transform defines a scale position and rotation within a given frame of reference The default value of this...

Page 964: ...yframePlayer and bonesPlayer modifier property indicates the axes around which rotational changes are maintained from the end of one motion to the beginning of the next or from the end of one iteratio...

Page 965: ...RUE it cannot be set back to FALSE without restarting Director or the projector When safePlayer is TRUE the following safety features are in effect Only safe Xtra extensions may be used The safePlayer...

Page 966: ...r sound 1 member name contains sound 1 sampleCount samples JavaScript syntax put Sound cast member sound 1 member name contains sound 1 sampleCount samples See also sampleRate Sound Channel sampleRate...

Page 967: ...toString This statement displays the sample rate of the sound playing in sound channel 1 in the Message window Lingo syntax trace sound 1 sampleRate JavaScript syntax trace sound 1 sampleRate See also...

Page 968: ...multiplied by the scale value The default value for this property is 1 0 Example This statement doubles the size of a backdrop sprite 25 camera backdrop 1 scale 2 0 See also bevelDepth overlay scale...

Page 969: ...angle When the sprite s crop property is set to FALSE the scale property is ignored This property can be tested and set The default value is 1 0000 1 0000 For Flash movie or vector shape cast members...

Page 970: ...eference Getting the scale property of an object s world relative transform using getWorldTransform scale returns the object s scaling relative to the world origin Setting the scale property of an obj...

Page 971: ...e rectangle is automatically sized and positioned to account for rotation skew flipH and flipV This means that when a Flash sprite is rotated it will not crop as in earlier versions of Director The au...

Page 972: ...core of the current movie Lingo syntax _movie score member Waterfall media JavaScript syntax _movie score member Waterfall media See also Movie scoreColor Usage sprite whichSprite scoreColor the score...

Page 973: ...or frames Example This statement selects sprite channels 15 through 25 in frames 100 through 200 Lingo syntax _movie scoreSelection 15 25 100 200 JavaScript syntax _movie scoreSelection list list 15...

Page 974: ...to the script cast member found within the first cast library of the referenced movie you cannot use indexed access to specify a cast library other than the first one Example The following statement...

Page 975: ...so mediaXtraList Player Scripting Objects toolXtraList transitionXtraList xtraList Player scriptInstanceList Usage sprite whichSprite scriptInstanceList the scriptInstanceList of sprite whichSprite De...

Page 976: ...statement displays the list of scripts attached to sprite 1 in the Message window put sprite 1 scriptList member 2 of castLib 1 myRotateAngle 10 0000 myClockwise 1 myInitialAngle 0 0000 member 3 of c...

Page 977: ...o syntax member Jazz Chronicle scriptsEnabled FALSE JavaScript syntax member Jazz Chronicle scriptsEnabled 0 scriptText Usage Lingo syntax memberObjRef scriptText JavaScript syntax memberObjRef script...

Page 978: ...e movie scrollTop Usage Lingo syntax memberObjRef scrollTop JavaScript syntax memberObjRef scrollTop Description Cast member property determines the distance in pixels from the top of a field cast mem...

Page 979: ...esizes additional details to smooth out curves as the model moves closer to the camera After you have added the sds modifier to a model using addModifier you can set the properties of the sds modifier...

Page 980: ...ee the individual property entries Example The statement displays the sds depth property value for the model named Terrain put member 3D model Terrain sds depth 2 See also lod modifier toon modifier i...

Page 981: ...rences in the search paths Adding a large number of paths to searchPaths slows searching Try to minimize the number of paths in the list Note This property will function on all subsequent movies after...

Page 982: ...Description Text cast member property returns the currently selected chunk of text as a single object reference This allows access to font characteristics as well as to the string information of the a...

Page 983: ...a given Cast window Read write Example This statement selects cast members 1 through 10 in castLib 1 Lingo syntax castLib 1 selection 1 10 JavaScript syntax castLib 1 selection list list 1 10 This st...

Page 984: ...fies the last character of a selection It is used with selStart to identify a selection in the current editable field counting from the beginning character This property can be tested and set The defa...

Page 985: ...ingo syntax selStart 3 selEnd 5 JavaScript syntax selStart 2 selEnd 4 This statement makes a selection 20 characters long Lingo syntax selEnd selStart 20 JavaScript syntax selEnd selStart 20 See also...

Page 986: ...el The shader is the skin which is wrapped around the model resource used by the model The shader itself is not an image The visible component of a shader is created with up to eight layers of texture...

Page 987: ...o the shader named WallSurface member Room model Wall shader member Room shader WallSurface See also shaderList newShader deleteShader face texture shaderList Usage member whichCastmember model whichM...

Page 988: ...rcentage member whichCastmember model whichModel shader shadowPercentage member whichCastmember shader whichShader shadowPercentage Description 3D toon modifier and painter shader property indicates t...

Page 989: ...l Sphere toon shadowStrength 0 1 shapeType Usage member whichCastMember shapeType the shapeType of member whichCastMember Description Shape cast member property indicates the specified shape s type Po...

Page 990: ...cess to the standard shader properties in addition to these standard shader properties shaders of the types engraver newsprint and painter have properties unique to their type For more information see...

Page 991: ...Shrine in a field named How Big Lingo syntax member How Big text string member shrine size JavaScript syntax member How Big text member shrine size toString See also Member sizeRange Usage member whic...

Page 992: ...Usage Lingo syntax windowObjRef sizeState JavaScript syntax windowObjRef sizeState Description Window property returns the size state of a window Read only The returned size state will be one of the f...

Page 993: ...3 12 To avoid this reset condition constrain angles to 360 in either direction when using script to perform continuous skewing Example The following behavior causes a sprite to skew continuously by 2...

Page 994: ...e3D sound Member Usage Lingo syntax memberObjRef sound JavaScript syntax memberObjRef sound Description Cast member property controls whether a movie digital video or Flash movie s sound is enabled TR...

Page 995: ...go syntax mySound _player sound 3 JavaScript syntax var mySound _player sound 3 See also Player sound Sound Channel soundChannel SWA Usage Lingo syntax memberObjRef soundChannel JavaScript syntax memb...

Page 996: ...ealMedia audio will play in the highest sound channel available and the property s value changes during playback depending on which channel is being used When the RealMedia cast member is playing this...

Page 997: ...Windows have different advantages MacroMix Windows The lowest common denominator for Windows playback This device functions on any Windows computer but its latency is not as good as that of other devi...

Page 998: ...cript syntax trace _sound soundDeviceList See also Sound soundDevice soundEnabled Usage Lingo syntax _sound soundEnabled JavaScript syntax _sound soundEnabled Description Sound property determines whe...

Page 999: ...k is used frequently throughout the Director application Example This statement sets the soundKeepDevice property to FALSE Lingo syntax _sound soundKeepDevice FALSE JavaScript syntax _sound soundKeepD...

Page 1000: ...5 See also Sound volume Windows Media soundMixMedia Usage Lingo syntax _sound soundMixMedia JavaScript syntax _sound soundMixMedia Description Sound property determines whether Flash cast members wil...

Page 1001: ...bevelDepth overlay sourceFileName Usage flashCastMember sourceFileName Description Flash cast member property specifies the pathname of the FLA source file to be used during launch and edit operation...

Page 1002: ...es not cause highlights If this is the only light currently shining in the scene there will be no specular highlights on any of the shaders in the scene member 3d world light omni2 specular FALSE See...

Page 1003: ...t to member Scene shader 1 specular rgb 255 0 0 However that syntax won t save the new value with the cast member when the movie is saved Only member specularColor will save the new color value member...

Page 1004: ...roperty contributes no intensity This property takes float value between 0 0 and 180 00 and has a default value of 90 0 The float value you specify corresponds to half the angle for instance if you wi...

Page 1005: ...the variable sportSprite to the movie sprite 5 Lingo syntax sportSprite _movie sprite 5 JavaScript syntax var sportSprite _movie sprite 5 See also Movie sprite Sprite Channel Usage Lingo syntax sprite...

Page 1006: ...ipt is attached to The sprite s number must be passed to the new handler as an argument when the new handler is called Example In this handler the spriteNum property is automatically set for script in...

Page 1007: ...t syntax var currMember sprite this spriteNum member This alternative approach is merely for convenience and provides no different functionality See also new Sprite stage Usage Lingo syntax _movie sta...

Page 1008: ...ple The following statement sets the startAngle of the model resource Sphere01 to 0 0 If its endAngle is set to 90 then only one quarter of any model that uses this model resource will appear put memb...

Page 1009: ...5 at 100 ticks into the digital video Lingo syntax sprite 5 startTime 100 JavaScript syntax sprite 5 startTime 100 See also Sound Channel startTimeList Usage Lingo syntax dvdObjRef startTimeList JavaS...

Page 1010: ...tes that the member is currently not loaded and therefore no 3D media are available No 3D Lingo should be performed on the member 1 indicates that the media loading has begun 2 indicates that the memb...

Page 1011: ...ile begins streaming cuePointNames cuePointTimes currentTime duration percentPlayed percentStreamed bitRate sampleRate and numChannels For SWA streaming cast members the following values are possible...

Page 1012: ...d looping in the current frame until the movie finishes loading into memory Lingo syntax on exitFrame if member Intro Movie percentStreamed 100 then put Current download state member Intro Movie state...

Page 1013: ...uivalent of error for the mediaStatus property 0 closed indicates that streaming has not begun or that cast member properties are in initial states or are copies from an earlier playing of the cast me...

Page 1014: ...property can be tested and set Note Set the static property to TRUE only when the Flash movie sprite does not intersect other moving Director sprites If the Flash movie intersects moving Director spr...

Page 1015: ...dChannelObjRef status Description Sound Channel property indicates the status of a sound channel Read only Possible values include Example This statement displays the current status of sound channel 2...

Page 1016: ...ad Example This statement checks whether the mouse button is being pressed and calls the handler dragProcedure if it is Lingo syntax if _mouse stillDown then dragProcedure end if JavaScript syntax if...

Page 1017: ...aying at chapter 4 of title 1 title 1 chapter 4 A time based stopTimeList contains the following properties title Specifies the title hours Specifies the hour at which playback stops min Specifies the...

Page 1018: ...set Example This startMovie script searches the internal cast for Flash movie cast members and sets their streamMode properties to manual Lingo syntax on startMovie repeat with i 1 to castLib 1 membe...

Page 1019: ...member named Intro Movie has finished streaming into memory If it hasn t the script updates a field cast member to indicate the number of bytes that have been streamed using the bytesStreamed member...

Page 1020: ...tesStreamed 3D percentStreamed 3D state 3D preLoad 3D strokeColor Usage Lingo syntax memberObjRef strokeColor JavaScript syntax memberObjRef strokeColor Description Vector shape cast member property i...

Page 1021: ...member whichCastmember model whichModel toon style member whichCastmember model whichModel shader style member whichCastmember shader whichShader style Description 3D toon modifier and painter shader...

Page 1022: ...ible The sds modifier cannot be used with the inker or toon modifiers and caution should be used when using the sds modifier with the lod modifier See the sds modifier entry for more information Examp...

Page 1023: ...s being animated switchColorDepth Usage Lingo syntax _player switchColorDepth JavaScript syntax _player switchColorDepth Description Player property determines whether Director switches the monitor th...

Page 1024: ...x if _system colorDepth 8 then _player switchColorDepth TRUE end if JavaScript syntax if _system colorDepth 8 _player switchColorDepth true See also colorDepth Player systemTrayIcon Usage Lingo syntax...

Page 1025: ...Movie systemTrayIcon Window tabCount Usage chunkExpression tabCount Description Text cast member property indicates how many unique tab stops are in the specified chunk expression of the text cast me...

Page 1026: ...t events from the timeout object timerOne in the Message window put timeout timerOne target See also name timeout timeout timeoutHandler timeoutList targetFrameRate Usage sprite which3dSprite targetFr...

Page 1027: ...ngo syntax memberObjRef text JavaScript syntax memberObjRef text Description Text cast member property determines the character string in the field cast member specified by whichCastMember The text ca...

Page 1028: ...cleSystemModel Resource texture Description 3D element and shader property an image object used by a shader to define the appearance of the surface of a model The image is wrapped onto the geometry of...

Page 1029: ...s mesh or with a meshDeform modifier attached to a model this property allows you to get or set the textureCoordinateList property of the model resource The textureCoordinateList property is a list of...

Page 1030: ...ing these properties you can get and set information about the texture layers of a specified mesh You can have up to eight texture layers for a shader each layer can contain only one texture but the s...

Page 1031: ...le This statement sets the 3rd texture layer of the shader named WallSurface to the texture named BluePaint in the cast member named Room member 3 model Car shader WallSurface textureList 3 member Roo...

Page 1032: ...tureModeList Usage member whichCastmember shader whichShader textureModeList member whichCastmember shader whichShader textureModeList textureLayerIndex member whichCastmember model whichModel shader...

Page 1033: ...und the Z axis The up direction of the texture is toward the Z axis reflection is similar to wrapSpherical except that the new texture coordinates are continuously reprojected onto the surface from a...

Page 1034: ...the hardware texture buffer You can choose a value that improves color fidelity or a value that allows you to fit more textures on the card You can fit twice as many 16 bit textures as 32 bit textures...

Page 1035: ...If the value of the x and or y components of shaderReference textureTransform scale is greater than 1 the texture is cropped as it extends past the texture coordinate range The default value of this...

Page 1036: ...ewTexture granite fromCastmember member granite g member 2 newTexture logo fromCastmember member logo s member 2 newShader s standard s textureList 1 g s textureList 2 f s textureRepeatList 2 false s...

Page 1037: ...n X and Y axes are effective The transform is applied regardless of the shaderReference textureMode setting The wrapTransform by comparison is only effective when the textureMode is wrapPlanar wrapCyl...

Page 1038: ...ture Just as with a model s transform textureTransform modifications are layerable To rotate the image about a point xOffset yOffset instead of point 0 0 first translate to point 0 xOffset 0 yOffset t...

Page 1039: ...er uses the image from the specified cast member as the texture The default value for this property is default You must specify member for this property in order to use the textureMember property Exam...

Page 1040: ...in degrees of the QuickTime VR movie This property can be tested and set time timeout object Usage timeoutObject time Description Timeout object property the system time in milliseconds when the next...

Page 1041: ...ample This statement displays the timeoutHandler of the timeout object Quiz Timer in the Message window put timeout Quiz Timer timeoutHandler See also target timeout timeoutList timeoutList Usage Ling...

Page 1042: ...also digitalVideoTimeScale title DVD Usage Lingo syntax dvdObjRef title JavaScript syntax dvdObjRef title Description DVD property specifies the current title Read write This property returns an inte...

Page 1043: ...bar is not visible and all other title bar and window properties are unaffected If TRUE the title bar is visible and the window maintains the states of all other title bar and window properties The de...

Page 1044: ...ons icon member smallIcon See also appearanceOptions displayTemplate Window titleCount Usage Lingo syntax dvdObjRef titleCount JavaScript syntax dvdObjRef titleCount Description DVD property returns t...

Page 1045: ...allows you to get or set the style applied to color transitions The following are the possible values toon gives sharp transitions between available colors gradient gives smooth transitions between av...

Page 1046: ...mera Possible values are floating point numbers from 100 0 to 100 0 The default value is 2 0 useLineOffset allows you to get or set whether lineOffset is on or off This is a Boolean value the default...

Page 1047: ...ast member myText to 20 member 1 paragraph 2 topSpacing 20 See also bottomSpacing traceLoad Usage Lingo syntax _movie traceLoad JavaScript syntax _movie traceLoad Description Movie property specifies...

Page 1048: ...ple This statement instructs Lingo to write the contents of the Message window in the file Messages txt in the same folder as the current movie Lingo syntax _movie traceLogFile _movie path Messages tx...

Page 1049: ...gital video cast member This property can be tested but not set Example This statement determines the number of tracks in the digital video cast member Jazz Chronicle and displays the result in the Me...

Page 1050: ...E if the track is enabled and playing This property is FALSE if the track is disabled and no longer playing or is not updating This property cannot be set Use the setTrackEnabled property instead Exam...

Page 1051: ...digital video This property can be tested but not set Example This statement determines the time of the next sample that follows the current time in track 5 of the digital video assigned to sprite 15...

Page 1052: ...video sprite assigned to channel 15 and displays the result in the Message window Lingo syntax put sprite 15 trackPreviousSampleTime 5 JavaScript syntax put sprite 15 trackPreviousSampleTime 5 trackS...

Page 1053: ...ack Lingo syntax put sprite 10 trackStartTime 5 JavaScript syntax put sprite 10 trackStartTime 5 See also duration Member playRate QuickTime AVI currentTime QuickTime AVI trackStopTime Member Usage Li...

Page 1054: ...window Lingo syntax put sprite 6 trackStopTime 5 JavaScript syntax put sprite 6 trackStopTime 5 See also playRate QuickTime AVI currentTime QuickTime AVI trackStartTime Member trackText Usage Lingo sy...

Page 1055: ...then runs the handler textFormat if it is Lingo syntax on checkForText if member Today s News trackType 5 text then textFormat end if end JavaScript syntax function checkForText var tt member Today s...

Page 1056: ...whichNode transform member whichCastmember node whichNode transform transform Property member whichCastmember model whichModel bonesPlayer bone boneID transform member whichCastmember model whichModel...

Page 1057: ...anslate applies a translation after the current positional rotational and scale offsets held by the transform rotate applies a rotation after the current positional rotational and scale offsets held b...

Page 1058: ...nsition command Example This statement sets the type of transition cast member 3 to 51 which is a pixel dissolve cast member member 3 transitionType 51 transitionXtraList Usage Lingo syntax _player tr...

Page 1059: ...ask portions of the QuickTime movie by moving them outside the bounding rectangle When the crop property is set to FALSE the translation property is ignored and the sprite is always positioned at the...

Page 1060: ...endered opaque The setting of the blend property for the model s shader will have no effect member scene model Pluto shader transparent FALSE See also blendFactor blend 3D triggerCallback Usage Lingo...

Page 1061: ...tSpotID was just triggered end on endSprite me sprite pMySpriteNum triggerCallback 0 end JavaScript syntax function beginSprite pMySpriteNum this spriteNum sprite this pMySpriteNum triggerCallback sym...

Page 1062: ...he tunnelDepth of logo to 5 When logo is displayed in 3D mode its letters will be very shallow member logo tunnelDepth 5 In this example the model resource of the model Slogan is extruded text The fol...

Page 1063: ...Usage member whichCastmember light whichLight type Description 3D light property the light type of the referenced light This property s possible values are as follows ambient lights of this type cast...

Page 1064: ...cast members and richText for text cast members However field cast members originally created in Director 4 return text for the member type providing backward compatibility for movies that were create...

Page 1065: ...mitive text extruder resource created using the extrude3d command mesh indicates that this model resource is a primitive mesh generator resource created using the newMesh command particle indicates th...

Page 1066: ...ber is of this type Example The following statement displays the type property of the motion named Run put member scene motion Run type bonesPlayer The following statement displays the type property o...

Page 1067: ...hichCastmember shader whichShader type Description 3D texture property the texture type of the referenced texture object This property s possible values are fromCastMember indicates that this is textu...

Page 1068: ...dow will be able to group with all tool windows except the Property inspector and the Tool palette If dockingEnabled is TRUE and type is set to fullscreen or dialog the type is ignored and the window...

Page 1069: ...ily leave a frame to examine properties in another frame Although this property can be used to mask changes to a frame during run time be aware that changes to field cast members appear immediately wh...

Page 1070: ...SWA cast member Benny Goodman Lingo syntax on mouseDown member Benny Goodman URL http audio macromedia com samples classic swa end JavaScript syntax function mouseDown member Benny Goodman URL http a...

Page 1071: ...color If we change blendConstant to 10 0 the final color is 10 texture color and 90 diffuse color The default value for this property is FALSE All shaders have access to the standard shader properties...

Page 1072: ...se the fast quad calculation method regardless of this setting Setting useFastQuads to TRUE will not result in an increase in the speed of these simple operations Example This statement tells Director...

Page 1073: ...amed Teapot to FALSE The toon modifier s lineOffset property will have no effect member tp model Teapot toon useLineOffset FALSE See also lineOffset userData Usage member whichCastmember model whichMo...

Page 1074: ...operty a string containing the user name entered when Director was installed Read only This property is available in the authoring environment only It could be used in a movie in a window MIAW tool th...

Page 1075: ...amples show that the user name for the RealMedia stream in the cast member Real or sprite 2 has been set Lingo syntax put sprite 2 userName put member Real userName JavaScript syntax put sprite 2 user...

Page 1076: ...ichVertexPosition JavaScript syntax memberObjRef vertex whichVertexPosition Description Chunk expression enables direct access to parts of a vertex list of a vector shape cast member Use this chunk ex...

Page 1077: ...ecifically wants to change the location or size of the handle When modifying this property be aware that you must reset the list contents after changing any of the values This is because when you set...

Page 1078: ...rtexList vector 0 0 0 vector 20 0 0 vector 20 20 0 See also newMesh face vertices vertexList mesh deform Usage member whichCastmember model whichModel meshDeform mesh index vertexList Description 3D p...

Page 1079: ...his example displays the vertexList of the mesh model resource named SimpleSquare then it displays the vertices property for the second face of that mesh put member 3D modelResource SimpleSquare verte...

Page 1080: ...or to toggle the video on and off during playback Example The following examples show that the video property for sprite 2 and the cast member Real is set to TRUE Lingo syntax put sprite 2 video 1 put...

Page 1081: ...roperty controls the horizontal coordinate of a Flash movie and vector shape s view point specified in pixel units The values can be floating point numbers The default value is 0 A Flash movie s view...

Page 1082: ...ng the view point of a cast member changes only the view of a movie in the sprite s bounding rectangle not the location of the sprite on the Stage The view point is the coordinate within a cast member...

Page 1083: ...repeat end JavaScript syntax function panAcross whichSprite var i 1 while i 11 sprite whichSprite viewPoint sprite whichSprite viewPoint point i 5 i 5 _movie updateStage i See also scaleMode viewV vi...

Page 1084: ...priteNum viewScale 200 See also scaleMode viewV viewPoint viewH viewV Usage Lingo syntax memberOrSpriteObjRef viewV JavaScript syntax memberOrSpriteObjRef viewV Description Cast member and sprite prop...

Page 1085: ...ript syntax function panDown whichSprite var i 120 while i 121 sprite whichSprite viewV i _movie updateStage i See also scaleMode viewV viewPoint viewH visible Usage Lingo syntax windowObjRef visible...

Page 1086: ...that channel Example This statement makes sprite 8 visible sprite 8 visible TRUE visibility Usage member whichCastmember model whichModel visibility modelObjectReference visibility Description 3D pro...

Page 1087: ...JavaScript syntax memberObjRef volume Description Shockwave Audio SWA cast member property determines the volume of the specified SWA streaming cast member Values range from 0 to 255 This property ca...

Page 1088: ...ed movie see the Sound Control movie in the Learning Lingo Examples folder inside the Director application folder Example This statement sets the volume of sound channel 2 to 130 which is a medium sou...

Page 1089: ...ipt syntax sprite 7 volume 2 See also Windows Media warpMode Usage Lingo syntax spriteObjRef warpMode JavaScript syntax spriteObjRef warpMode Description QuickTime VR sprite property specifies the typ...

Page 1090: ...image objects read write for sprites This property does not affect field and button cast members Example This statement assigns the width of member 50 to the variable theHeight Lingo syntax theHeight...

Page 1091: ...ices Description 3D property allows you to get or set the number of vertices as an integer on the X axis of a model resource whose type is box or plane This property must be greater than or equal to 2...

Page 1092: ...he functionality of this property is identical to the top level window method Example This statements sets the variable named myWindow to the third window object Lingo syntax myWindow _player window 3...

Page 1093: ...in front of all other windows and then moves that window to the back Lingo syntax frontWindow _player windowList 5 windowInFront frontWindow moveToBack JavaScript syntax var frontWindow _player windo...

Page 1094: ...n member whichCastmember light whichLight worldPosition member whichCastmember camera whichCamera worldPosition member whichCastmember group whichGroup worldPosition Description 3D property allows you...

Page 1095: ...orm member whichCastmember model modelName shader wrapTransform member whichCastmember model shaderlist shaderListIndex wrapTransform Description 3D standard shader property this property provides acc...

Page 1096: ...nsform modifies only the orientation of how the shader applies the texture Note wrapTransformList textureLayerIndex only has an effect when textureModeList textureLayerIndex is set to planar spherical...

Page 1097: ...axis of the world member Engine model ModCylinder transform identity put member Engine model ModCylinder transform xAxis vector 1 0000 0 0000 0 0000 member Engine model ModCylinder rotate 0 90 0 put...

Page 1098: ...les Set only when the Xtra extension is marked for downloading The value of this property is another list containing a property list for each file in the download package for the current platform The...

Page 1099: ...atement displays in the Message window all Xtra extensions that are available to the Director Player Lingo syntax trace _player xtraList JavaScript syntax trace _player xtraList See also mediaXtraList...

Page 1100: ...del ModCylinder transform yAxis vector 0 0000 1 0000 0 0000 member Engine model ModCylinder rotate 90 0 0 put member Engine model ModCylinder transform yAxis vector 0 0000 0 0000 1 0000 yon Usage memb...

Page 1101: ...s that the z axis of ModCylinder is aligned with the z axis of the world The next line rotates ModCylinder 90 around its y axis This rotates the axes of ModCylinder as well The last two lines show tha...

Page 1102: ...1102 Chapter 14 Properties...

Page 1103: ...d property 620 _system property 621 Numerics 3D objects 52 141 A abort method 227 aboutInfo property 621 abs method 228 actionsEnabled property 622 activateApplication handler 159 activateAtLoc method...

Page 1104: ...e property 640 attributeValue property 640 audio DVD property 641 audio RealMedia property 641 audio Windows Media property 642 audioChannelCount property 643 audioFormat property 644 audioLangExt pro...

Page 1105: ...ng end case keyword 206 if then statements 209 otherwise keyword 216 repeat while keyword 220 breakLoop method 246 brightness property 671 broadcastProps property 672 browserName method 246 browsers c...

Page 1106: ...lines in 895 counting words in chunk expressions 898 do command 294 EMPTY character constant 152 expressions as 556 field keyword 207 highlighting 356 in field cast members 1027 integer function 370...

Page 1107: ...Color Palette object 121 color method 268 color property 696 colorBufferDepth property 698 colorDepth property 698 colorList property 700 colorRange property 700 colors property 701 colors scripting...

Page 1108: ...ssProduct method 278 cue points list of names 713 list of times 714 sprites and 376 867 cuePointNames property 713 cuePointTimes property 714 currentLoopState property 715 currentSpriteNum property 71...

Page 1109: ...934 start time of tracks 1052 stop time of tracks 1053 turning play of on or off 1079 1086 digital video sprite properties trackNextKeyTime 1050 trackNextSampleTime 1051 trackPreviousKeyTime 1051 trac...

Page 1110: ...ist property 757 equals operator 606 erase method 302 error property 758 error method 303 errors during network operations 412 Shockwave Audio cast members and 327 329 evaluating expressions 218 219 2...

Page 1111: ...bject 125 findEmpty method 313 finding filenames 337 handlers and text in scripts 77 movies 337 findLabel method 313 findPos method 314 findPosNear method 314 finishIdleLoad method 315 firstIndent pro...

Page 1112: ...wareInfo method 332 getHotSpotRect method 333 getLast method 334 getLatestNetID method 334 getLength method 335 getNetText method 335 getNormalized method 336 getNthFileNameInFolder method 337 getOne...

Page 1113: ...property 804 idleLoadDone method 360 idleLoadMode property 805 idleLoadPeriod property 805 idleLoadTag property 806 idleReadChunkSize property 806 if keyword 209 if then else statements 209 430 ignor...

Page 1114: ...ols 20 syntax 12 terminology 10 types of scripts 9 K kerning property 817 kerningThreshold property 818 Key object 103 key property 818 keyboard characters testing for 20 keyboardFocusSprite property...

Page 1115: ...3 lists 38 logical conditions testing 29 matching expressions 30 numbers 18 object oriented programming 54 operators 25 595 order of execution 28 properties 17 repeat loops 31 scripts types of 9 space...

Page 1116: ...perty property 841 loop member property 841 loopBounds property 842 loopCount property 843 loopEndTime property 844 loopMovie property 842 loops exiting 207 loop keyword 212 next repeat keyword 216 re...

Page 1117: ...IME files 353 414 min method 398 minimize method 399 minSpeed property 859 minus operator 597 603 mipmapping 942 missingFonts property 860 mod modulus operator 612 mode collision property 861 mode emi...

Page 1118: ...603 multiply method 409 multiSound property 882 N name 3D property 883 name menu item property property 884 name menu property property 884 name Sprite Channel property 885 name Sprite property 885 na...

Page 1119: ...Script 67 media types 119 prototype 68 72 scripting 137 types of 51 offset rectangle function method 435 offset string function method 433 on activateWindow handler 160 on beginSprite handler 161 on c...

Page 1120: ...ters counting parameters sent to handlers 439 definition of 11 handlers 36 in lists 438 on getPropertyDescriptionList handler 174 on runPropertyDialog handler 192 syntax 13 parent property 912 parent...

Page 1121: ...sition of cast members 258 of sprites 224 225 of Stage on desktop 547 548 549 position transform property 930 positioning rectangles and points 389 positionReset property 931 posterFrame property 932...

Page 1122: ...all method 495 realPlayerVersion method 496 recordFont method 497 recordFont property 943 rect camera property 944 rect Image property 945 rect Member property 946 rect Sprite property 946 rect Window...

Page 1123: ...63 rotation transform property 963 rotation property 961 rotationReset property 964 rounding floating point numbers 778 RTF property 964 runMode method 515 S safePlayer property 965 sampleCount proper...

Page 1124: ...tes method 523 sendEvent method 524 sending strings to browsers 304 sendSprite method 525 separating items 817 serialNumber property 985 servers proxy 477 setAlpha method 526 setaProp method 526 setAt...

Page 1125: ...spotDecay property 1004 sprite Movie property 1005 sprite Sprite Channel property 1005 Sprite Channel object 114 Sprite object 149 sprite method 545 sprite intersects keyword 224 sprite within keywor...

Page 1126: ...dow 415 do command 294 EMPTY character constant 152 expressions as 556 field keyword 207 highlighting 356 in field cast members 1027 integer function 370 last function 379 length function 381 line of...

Page 1127: ...ing 356 last function 379 length function 381 line of keyword 211 numerical value of strings 576 offset function 433 put after command 218 put before command 219 put into command 219 retrieving from f...

Page 1128: ...properties chunkSize of member 688 transitions transitionType of member property 1058 types of 1058 transitionType property 1058 transitionXtraList property 1058 translate method 568 translation prope...

Page 1129: ...erty 1079 video QuickTime AVI property 1079 video RealMedia Windows Media property 1080 Video for Windows software 1081 videoFormat property 1080 videoForWindowsPresent property 1081 viewH property 10...

Page 1130: ...pping lines 1094 wrapTransform property 1095 wrapTransformList property 1096 writeChar method 591 writeReturn method 592 writeString method 592 X x vector property 1096 xAxis property 1097 XCMDs and X...

Reviews: