background image

654

Chapter 14:  Properties

// JavaScript syntax
window("Animals").bgColor = color(255, 153, 0);

See also

Window

 

bgColor (Sprite, 3D Member)

Usage

sprite(

whichSpriteNumber

).bgColor

the bgColor of sprite 

whichSpriteNumber

the bgColor of the stage
(the stage).bgColor
member(

which3dMember

).bgcolor

Description

Sprite property, system property, and 3D cast member property; determines the background color 
of the sprite specified by 

whichSprite

, the color of the Stage, or the background color of the 3D 

cast member. Setting the 

bgColor

 sprite property is equivalent to choosing the background color 

from the Tools window when the sprite is selected on the Stage. Setting the 

bgColor

 property for 

the Stage is equivalent 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 whatever type has been set for that sprite.

This property can be tested and set.

Example

This example sets the color of the Stage to an RGB value.

Dot syntax:

(the stage).bgColor = rgb(255, 153, 0)

Verbose Lingo syntax:

set the bgColor of the stage = rgb(255, 153, 0)

See also

color()

backColor

backgroundColor

bias

Usage

member(

whichCastmember

).model(

whichModel

).lod.bias

Description

3D 

lod

 modifier property; indicates how aggressively the modifier removes detail from the model 

when its 

auto

 property is set to 

TRUE

. This property has no effect when the modifier’s 

auto

 

property is set to 

FALSE.

 

The range for this property is from 0.0 (removes all polygons) to +100.0 (removes no polygons). 
The default setting is 100.0.

Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING

Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 48: ...48 Chapter 2 Director Scripting Essentials...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 100: ...100 Chapter 4 Debugging Scripts in Director...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 107: ...insertFrame unLoadMember label unLoadMovie marker updateFrame mergeDisplayTemplate updateStage Property aboutInfo frameTransition active3dRenderer idleHandlerPeriod actorList idleLoadMode allowCustomC...

Страница 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...

Страница 109: ...esent activeWindow netThrottleTicks alertHook organizationName applicationName productName applicationPath productVersion currentSpriteNum safePlayer debugPlaybackEnabled scriptingXtraList digitalVide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 117: ...ie Player Sprite window window windowList Property appearanceOptions resizable bgColor Window sizeState dockingEnabled sourceRect drawRect title Window fileName Window titlebarOptions image Window typ...

Страница 118: ...118 Chapter 5 Director Core Objects...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 124: ...DVD angleCount folder aspectRatio frameRate DVD audio DVD fullScreen audioChannelCount mediaStatus DVD audioExtension playRate DVD audioFormat resolution DVD audioSampleRate selectedButton audioStrea...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 130: ...perty audio RealMedia scale Member currentTime QuickTime AVI staticQuality fieldOfView tilt hotSpotEnterCallback trackCount Member hotSpotExitCallback trackCount Sprite invertMask trackEnabled isVRMov...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 193: ...aProp mass 10 force gravitationalConstant to 9 8 currentInitializerList setaProp gravitationalConstant 9 8 return currentInitializerList end JavaScript syntax function runPropertyDialog currentInitial...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 278: ...o syntax _player cursor intCursorNum _player cursor cursorMemNum maskMemNum _player cursor cursorMemRef JavaScript syntax _player cursor intCursorNum _player cursor cursorMemNum maskMemNum _player cur...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 289: ...ight ambientRoomLight member Room deleteLight 6 See also newLight deleteModel Usage member whichCastmember deleteModel whichModel member whichCastmember deleteModel index Description 3D command remove...

Страница 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...

Страница 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...

Страница 292: ...r of StreetScene member StreetScene deleteShader Road member StreetScene deleteShader 3 See also newShader shaderList deleteTexture Usage member whichCastmember deleteTexture whichTexture member which...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 360: ...ndlerPeriod idleLoadMode idleLoadPeriod idleLoadTag idleReadChunkSize Movie ignoreWhiteSpace Usage XMLparserObject ignoreWhiteSpace trueOrFalse Description XML Command specifies whether the parser sho...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 372: ...tSphere 50 See also interpolateTo interpolateTo Usage transform1 interpolateTo transform2 percentage Description 3D transform method modifiestransform1 by interpolating from the position and rotation...

Страница 373: ...tmember model whichModel transform inverse member whichCastmember group whichGroup transform inverse member whichCastmember camera whichCamera transform inverse sprite whichSprite camera index transfo...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 469: ...rrent movie Lingo syntax _movie preLoadMovie Introduction JavaScript syntax _movie preLoadMovie Introduction See also downloadNetThing go Movie preloadNetThing preloadNetThing Usage preloadNetThing ur...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 484: ...terAccessKey Usage Lingo syntax qtUnRegisterAccessKey categoryString keyString JavaScript syntax qtUnRegisterAccessKey categoryString keyString Description Command allows the key for encrypted QuickTi...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 530: ...ith another model member 3d world model Sphere collision setCollisionCallback bounce member colScript See also collisionData collision modifier resolve resolveA resolveB registerForEvent registerScrip...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 581: ...also voiceSpeak voicePause voiceResume voiceStop voiceGetRate voiceSetRate voiceSetPitch voiceGetVolume voiceSetVolume voiceState voiceWordPos voiceGetRate Usage voiceGetRate Description Function ret...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 586: ...esume voiceStop voiceGetRate voiceSetRate voiceGetPitch voiceSetPitch voiceGetVolume voiceState voiceWordPos voiceSpeak Usage Lingo syntax voiceSpeak string JavaScript syntax voiceSpeak string documen...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 594: ...594 Chapter 12 Methods...

Страница 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...

Страница 596: ...Property object commandOrFunction JavaScript syntax objectReference objectProperty textExpression objectProperty object commandOrFunction Description Operator used to test or set properties of objects...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 629: ...faults to TRUE See also allowCustomCaching allowGraphicMenu allowSaveLocal allowVolumeControl allowZooming Movie allowVolumeControl Usage Lingo syntax _movie allowVolumeControl JavaScript syntax _movi...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 648: ...ember model whichModel transform axisAngle member whichCastmember camera whichCamera transform axisAngle member whichCastmember light whichLight transform axisAngle member whichCastmember group whichG...

Страница 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...

Страница 650: ...ation member whichCastmember camera whichCamera backdrop index rotation sprite whichSprite camera index backdrop index regPoint member whichCastmember camera whichCamera backdrop index regPoint sprite...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 684: ...684 Chapter 14 Properties See also DVD...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 710: ...r model whichModel bonesPlayer playlist count member whichCastmember modelResource whichModelResource face count member whichCastmember model whichModel meshDeform mesh index textureLayer count member...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 730: ...ee also getRendererServices getHardwareInfo colorBufferDepth deskTopRectList Usage Lingo syntax _system deskTopRectList JavaScript syntax _system deskTopRectList Description System property displays t...

Страница 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...

Страница 732: ...0 See also diffuse useDiffuseWithTexture blendFunction blendSource blendConstant diffuseLightMap Usage member whichCastmember shader whichShader diffuseLightMap member whichCastmember model whichMode...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 737: ...Example This statement sets disableImagingTransformation to TRUE Lingo syntax _player disableImagingTransformation TRUE JavaScript syntax _player digitalVideoTimeScale true See also image Image Playe...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 793: ...member 3DPlanet model GlassBox shader glossMap member 3DPlanet texture Oval See also blendFunctionList textureModeList region specularLightMap diffuseLightMap gravity Usage member whichCastmember mode...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 800: ...lso hotSpotExitCallback nodeEnterCallback nodeExitCallback triggerCallback hotSpotExitCallback Usage Lingo syntax spriteObjRef hotSpotExitCallback JavaScript syntax spriteObjRef hotSpotExitCallback De...

Страница 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...

Страница 802: ...nkExpression See also hyperlink hyperlinkState hyperlinks Usage Lingo syntax chunkExpression hyperlinks JavaScript syntax chunkExpression hyperlinks Description Text cast member property returns a lin...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 809: ...vie imageCompression memberObjRef imageCompression JavaScript syntax _movie imageCompression memberObjRef imageCompression Description Movie and bitmap cast member property indicates the type of compr...

Страница 810: ...ntax global gStreamingSprite on beginSprite me gStreamingSprite me spriteNum sprite gStreamingSprite imageEnabled FALSE end JavaScript syntax function beginSprite _global gStreamingSprite this spriteN...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 861: ...urModel collision mode mesh model Usage member whichCastmember model whichModel member whichCastmember model index member whichCastmember model count member whichCastmember model whichModel propertyNa...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 902: ...controlDown Key key keyCode shiftDown organizationName Usage Lingo syntax _player organizationName JavaScript syntax _player organizationName Description Player property contains the company name ente...

Страница 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...

Страница 904: ...m originV 80 See also originV originMode originPoint scaleMode originMode Usage Lingo syntax memberOrSpriteObjRef originMode JavaScript syntax memberOrSpriteObjRef originMode Description Cast member p...

Страница 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...

Страница 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...

Страница 907: ...sage member whichCastmember camera whichCamera orthoHeight member whichCastmember camera cameraindex orthoHeight sprite whichSprite camera orthoHeight Description 3D property when camera projection is...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 932: ...ax function resetThumbnail whichFlashMovie whichFrame member whichFlashMovie posterFrame whichFrame preferred3dRenderer Usage Lingo syntax _movie preferred3dRenderer JavaScript syntax _movie preferred...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 938: ...race _player productVersion JavaScript syntax trace _player productVersion See also Player projection Usage sprite whichSprite camera projection camera whichCamera projection member whichCastmember ca...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 953: ...ererServices textureRenderFormat rgba8888 rgba8880 rgba5650 rgba5550 rgba5551 rgba4444 See textureRenderFormat for information on these values Setting this property for an individual texture overrides...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 975: ...so mediaXtraList Player Scripting Objects toolXtraList transitionXtraList xtraList Player scriptInstanceList Usage sprite whichSprite scriptInstanceList the scriptInstanceList of sprite whichSprite De...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 988: ...rcentage member whichCastmember model whichModel shader shadowPercentage member whichCastmember shader whichShader shadowPercentage Description 3D toon modifier and painter shader property indicates t...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 1011: ...ile begins streaming cuePointNames cuePointTimes currentTime duration percentPlayed percentStreamed bitRate sampleRate and numChannels For SWA streaming cast members the following values are possible...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 1023: ...s being animated switchColorDepth Usage Lingo syntax _player switchColorDepth JavaScript syntax _player switchColorDepth Description Player property determines whether Director switches the monitor th...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 1032: ...tureModeList Usage member whichCastmember shader whichShader textureModeList member whichCastmember shader whichShader textureModeList textureLayerIndex member whichCastmember model whichModel shader...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 1056: ...whichNode transform member whichCastmember node whichNode transform transform Property member whichCastmember model whichModel bonesPlayer bone boneID transform member whichCastmember model whichModel...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 1094: ...n member whichCastmember light whichLight worldPosition member whichCastmember camera whichCamera worldPosition member whichCastmember group whichGroup worldPosition Description 3D property allows you...

Страница 1095: ...orm member whichCastmember model modelName shader wrapTransform member whichCastmember model shaderlist shaderListIndex wrapTransform Description 3D standard shader property this property provides acc...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 1102: ...1102 Chapter 14 Properties...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: