By Bruce A. Epstein
Price: $24.95 USD
£17.50 GBP
Cover | Table of Contents | Colophon
XtrasScriptOMatic➤Lite, colorizes a broader range of items, but it is crippled almost to the point of being useless. The full version is promised imminently from g/matter (http://www.gmatter.com/products/scriptomatic/) at press time.set the property {of object} = value or put value into the property {of object}
set the locH of sprite 1 = 17 set the regPoint of member 1 = point(0,0) set the soundEnabled = TRUE
set variableName = the property {of object} such as: set
TRUE, and only an expression that evaluates to zero is considered FALSE. Refer to for details on evaluating comparisons, including compound expressions. (These example multi-line code fragments must be placed in a handler for testing.)if (the platform starts "Windows") then -- Do Windows-specific stuff here else -- Do Macintosh-specific stuff here end if
if expression then statement1 statement2 end if
if expression then statement1 {else if expression then statement2} {else defaultAction} end if
if x = 1 then go frame "Slide1" else if x = 2 then go frame "Slide2" else if x = 3 then go frame "Slide3" else go frame "End" end if
if expression then statement1
if expression then statement1 else statement2
Enter key on the numeric keypad. Director will recompile the script and post the error dialog a second time. This time, choosing the Script
set the alertHook = 0
on createList
repeat x = 1 to 10
add myList, x
end
createList in the Message window and press Return. You should get a "Handler not defined: createList" error. Why? Because we haven't compiled the script, so Director doesn't know about our new handler yet.
on createList
repeat with x = 1 to 10 -- Correct this line
add myList, x
end
on createList
repeat with x = 1 to 10
add myList, x
end repeat -- Add this line
end
Tab key to reformat the script. Close the script one more time. Ah ha, success! The Script window closes without incident, and we assume that all is well. Finally we can test it from the Message window:createList
Modify➤Movie ➤Properties➤Allow Outdated Lingo option controls how Director interprets the Lingo of movies created in previous versions of Director. It is available only when upgrading movies from prior versions. Your concern is not necessarily the new Lingo features, but rather the changes in the behavior of existing functions that might break legacy code. Such a change from version to version would be exceedingly rare in a language such as C, but it is common in Director. In Director 6, the major alteration from prior versions involves sprite message passing (see , PI, FALSE, and TRUE, that are predefined in Lingo for convenience.|
Data Type
|
|---|
PI, FALSE, and TRUE, that are predefined in Lingo for convenience.|
Data Type
|
Usage and Range
|
|---|---|
Boolean
|
A TRUE or FALSEvalue (equal to 1 or 0, respectively)
|
constant
|