Class: Process
new Process
(topBlock, receiver, onComplete, yieldFirst)
| Name |
Type |
Description |
topBlock |
?
|
|
receiver |
?
|
|
onComplete |
function
|
optional
|
yieldFirst |
boolean
|
optional
|
Methods
-
-
| Name |
Type |
Description |
data |
?
|
|
-
-
| Name |
Type |
Description |
thing |
?
|
|
-
assertType
(thing, typeString)boolean
-
| Name |
Type |
Description |
thing |
?
|
|
typeString |
String
|
|
Returns:
-
-
Returns:
-
compileExpression
(block)String
-
| Name |
Type |
Description |
block |
?
|
|
Returns:
-
compileFunction
(block, parameters)
-
| Name |
Type |
Description |
block |
?
|
|
parameters |
Array.<?>
|
|
-
compileInfix
(operator, inputs)String
-
| Name |
Type |
Description |
operator |
String
|
|
inputs |
Array.<?>
|
|
Returns:
-
-
| Name |
Type |
Description |
inp |
?
|
|
Returns:
-
-
| Name |
Type |
Description |
array |
Array.<?>
|
|
-
-
| Name |
Type |
Description |
name |
?
|
|
-
doAddToList
(element, list)
-
| Name |
Type |
Description |
element |
?
|
|
list |
?
|
|
-
-
| Name |
Type |
Description |
data |
?
|
|
-
-
| Name |
Type |
Description |
message |
?
|
|
Returns:
-
doBroadcastAndWait
(message)
-
| Name |
Type |
Description |
message |
?
|
|
-
doCallCC
(aContext, isReporter)
-
| Name |
Type |
Description |
aContext |
?
|
|
isReporter |
boolean
|
|
-
doChangePrimitiveVisibility
(aBlock, hideIt)
-
| Name |
Type |
Description |
aBlock |
?
|
|
hideIt |
boolean
|
|
-
-
| Name |
Type |
Description |
delta |
?
|
|
-
doChangeVar
(varName, value)
-
| Name |
Type |
Description |
varName |
?
|
|
value |
?
|
|
-
doDeclareVariables
(varNames)
-
| Name |
Type |
Description |
varNames |
?
|
|
-
-
| Name |
Type |
Description |
attrName |
?
|
|
Returns:
-
doDeleteFromList
(index, list)
-
| Name |
Type |
Description |
index |
?
|
|
list |
?
|
|
-
-
| Name |
Type |
Description |
name |
?
|
|
-
doForEach
(upvar, list, script)
-
| Name |
Type |
Description |
upvar |
?
|
|
list |
?
|
|
script |
?
|
|
-
-
| Name |
Type |
Description |
body |
?
|
|
-
doGlide
(secs, endX, endY)
-
| Name |
Type |
Description |
secs |
number
|
|
endX |
?
|
|
endY |
?
|
|
-
-
| Name |
Type |
Description |
name |
?
|
|
-
-
| Name |
Type |
Description |
varName |
?
|
|
-
-
| Name |
Type |
Description |
secs |
number
|
|
-
-
-
-
-
doInsertInList
(element, index, list)
-
| Name |
Type |
Description |
element |
?
|
|
index |
?
|
|
list |
?
|
|
-
-
-
doMapCode
(aContext, aString)?
-
| Name |
Type |
Description |
aContext |
?
|
|
aString |
?
|
|
Returns:
-
-
| Name |
Type |
Description |
aContext |
?
|
|
anOption |
?
|
|
aString |
?
|
|
Returns:
-
-
| Name |
Type |
Description |
aContext |
?
|
|
aString |
?
|
|
Returns:
-
doMapListCode
(part, kind, aString)
-
| Name |
Type |
Description |
part |
?
|
|
kind |
?
|
|
aString |
?
|
|
-
doMapValueCode
(type, aString)
-
| Name |
Type |
Description |
type |
?
|
|
aString |
?
|
|
-
-
-
doPlayNote
(pitch, beats)
-
| Name |
Type |
Description |
pitch |
number
|
|
beats |
number
|
|
-
doPlayNoteForSecs
(pitch, secs)
-
| Name |
Type |
Description |
pitch |
number
|
|
secs |
number
|
|
-
doPlaySoundUntilDone
(name)
-
| Name |
Type |
Description |
name |
?
|
|
-
-
-
-
| Name |
Type |
Description |
counter |
number
|
|
body |
?
|
|
-
doReplaceInList
(index, list, element)
-
| Name |
Type |
Description |
index |
?
|
|
list |
?
|
|
element |
?
|
|
-
-
| Name |
Type |
Description |
block |
?
|
|
-
-
-
-
| Name |
Type |
Description |
beats |
number
|
|
-
-
| Name |
Type |
Description |
context |
?
|
|
args |
?
|
|
-
-
| Name |
Type |
Description |
data |
?
|
|
secs |
number
|
|
-
-
| Name |
Type |
Description |
attribute |
?
|
|
value |
?
|
|
-
-
| Name |
Type |
Description |
bool |
boolean
|
|
-
-
| Name |
Type |
Description |
num |
number
|
|
-
-
| Name |
Type |
Description |
bpm |
?
|
|
-
doSetVar
(varName, value)
-
| Name |
Type |
Description |
varName |
?
|
|
value |
?
|
|
-
-
| Name |
Type |
Description |
list |
?
|
|
-
-
| Name |
Type |
Description |
varName |
?
|
|
-
-
-
-
-
-
-
-
-
-
-
-
| Name |
Type |
Description |
choice |
?
|
|
-
-
| Name |
Type |
Description |
choice |
?
|
|
-
-
-
doTellTo
(sprite, context, args)
-
| Name |
Type |
Description |
sprite |
?
|
|
context |
?
|
|
args |
?
|
|
-
-
| Name |
Type |
Description |
data |
?
|
|
secs |
number
|
|
-
doUntil
(goalCondition, body)
-
| Name |
Type |
Description |
goalCondition |
?
|
|
body |
?
|
|
-
-
| Name |
Type |
Description |
secs |
number
|
|
-
doWaitUntil
(goalCondition)
-
| Name |
Type |
Description |
goalCondition |
?
|
|
-
-
| Name |
Type |
Description |
body |
?
|
|
-
-
-
-
-
evaluate
(context, args, isCommand)*
-
| Name |
Type |
Description |
context |
function
|
Context
|
|
args |
?
|
|
isCommand |
boolean
|
|
Returns:
-
evaluateArgLabel
(argLabel)
-
| Name |
Type |
Description |
argLabel |
?
|
|
-
evaluateBlock
(block, argCount)
-
| Name |
Type |
Description |
block |
?
|
|
argCount |
number
|
|
-
-
-
-
-
-
| Name |
Type |
Description |
input |
?
|
|
-
evaluateMultiSlot
(multiSlot, argCount)
-
| Name |
Type |
Description |
multiSlot |
?
|
|
argCount |
number
|
|
-
-
| Name |
Type |
Description |
element |
?
|
|
-
-
| Name |
Type |
Description |
arr |
Array.<?>
|
|
-
-
-
-
Returns:
-
-
-
-
| Name |
Type |
Description |
context |
?
|
|
args |
?
|
|
-
-
Returns:
-
getObjectsNamed
(name, thisObj, stageObj)?
-
| Name |
Type |
Description |
name |
?
|
|
thisObj |
?
|
|
stageObj |
?
|
|
Returns:
-
getOtherObject
(name, thisObj, stageObj)?
-
| Name |
Type |
Description |
name |
?
|
|
thisObj |
?
|
|
stageObj |
?
|
|
Returns:
-
handleError
(error, element)
-
| Name |
Type |
Description |
error |
Error
|
|
element |
?
|
|
-
initializeFor
(context, args, ignoreExit)
-
| Name |
Type |
Description |
context |
?
|
|
args |
?
|
|
ignoreExit |
boolean
|
|
-
-
| Name |
Type |
Description |
dta |
?
|
|
Returns:
-
-
| Name |
Type |
Description |
obj |
?
|
|
Returns:
-
-
Returns:
-
-
| Name |
Type |
Description |
data |
?
|
|
-
-
| Name |
Type |
Description |
name |
?
|
|
Returns:
-
objectTouchingObject
(thisObj, name)?
-
| Name |
Type |
Description |
thisObj |
?
|
|
name |
?
|
|
Returns:
-
-
| Name |
Type |
Description |
string |
String
|
|
Returns:
-
-
-
-
-
-
-
pushContext
(expression, outerContext)
-
| Name |
Type |
Description |
expression |
?
|
|
outerContext |
?
|
|
-
reify
(topBlock, parameterNames, isCustomBlock)Context
-
| Name |
Type |
Description |
topBlock |
?
|
|
parameterNames |
?
|
|
isCustomBlock |
boolean
|
|
Returns:
-
reifyPredicate
(parameterNames, topBlock)Context
-
| Name |
Type |
Description |
parameterNames |
?
|
|
topBlock |
?
|
|
Returns:
-
reifyReporter
(parameterNames, topBlock)Context
-
| Name |
Type |
Description |
parameterNames |
?
|
|
topBlock |
?
|
|
Returns:
-
reifyScript
(parameterNames, topBlock)Context
-
| Name |
Type |
Description |
parameterNames |
?
|
|
topBlock |
?
|
|
Returns:
-
-
| Name |
Type |
Description |
block |
?
|
|
-
reportAskFor
(sprite, context, args)
-
| Name |
Type |
Description |
sprite |
?
|
|
context |
?
|
|
args |
?
|
|
-
reportAttributeOf
(attribute, name)?
-
| Name |
Type |
Description |
attribute |
?
|
|
name |
?
|
|
Returns:
-
reportBoolean
(bool)boolean
-
| Name |
Type |
Description |
bool |
boolean
|
|
Returns:
-
-
| Name |
Type |
Description |
aContext |
?
|
|
-
-
| Name |
Type |
Description |
list |
?
|
|
-
reportColorIsTouchingColor
(color1, color2)boolean
-
Returns:
-
-
| Name |
Type |
Description |
context |
?
|
|
-
-
| Name |
Type |
Description |
car |
?
|
|
cdr |
?
|
|
Returns:
List
-
reportContextFor
(context, otherObj)?
-
| Name |
Type |
Description |
context |
?
|
|
otherObj |
?
|
|
Returns:
-
reportDate
(datefn)number
-
| Name |
Type |
Description |
datefn |
?
|
|
Returns:
-
reportDifference
(a, b)number
-
| Name |
Type |
Description |
a |
number
|
|
b |
number
|
|
Returns:
-
reportDirectionTo
(name)number
-
| Name |
Type |
Description |
name |
?
|
|
Returns:
-
reportDistanceTo
(name)number
-
| Name |
Type |
Description |
name |
?
|
|
Returns:
-
reportEquals
(a, b)boolean
-
| Name |
Type |
Description |
a |
*
|
|
b |
*
|
|
Returns:
-
reportFrameCount
()number
-
Returns:
-
-
| Name |
Type |
Description |
query |
?
|
|
Returns:
-
-
Returns:
-
reportGreaterThan
(a, b)boolean
-
| Name |
Type |
Description |
a |
number
|
|
b |
number
|
|
Returns:
-
reportIsA
(thing, typeString)boolean
-
| Name |
Type |
Description |
thing |
?
|
|
typeString |
String
|
|
Returns:
-
reportIsFastTracking
()boolean
-
Returns:
-
reportIsIdentical
(a, b)boolean
-
| Name |
Type |
Description |
a |
*
|
|
b |
*
|
|
Returns:
-
-
| Name |
Type |
Description |
a |
String
|
|
b |
String
|
|
Returns:
-
reportJoinWords
(aList)String
-
| Name |
Type |
Description |
aList |
?
|
|
Returns:
-
reportJSFunction
(parmNames, body)*
-
| Name |
Type |
Description |
parmNames |
?
|
|
body |
?
|
|
Returns:
-
reportKeyPressed
()boolean
-
Returns:
-
-
Returns:
-
reportLessThan
(a, b)boolean
-
| Name |
Type |
Description |
a |
number
|
|
b |
number
|
|
Returns:
-
reportLetter
(idx, string)String
-
| Name |
Type |
Description |
idx |
number
|
|
string |
?
|
|
Returns:
-
reportListContainsItem
(list, element)boolean
-
| Name |
Type |
Description |
list |
?
|
|
element |
?
|
|
Returns:
-
reportListItem
(index, list)?
-
| Name |
Type |
Description |
index |
?
|
|
list |
?
|
|
Returns:
-
reportListLength
(list)number
-
| Name |
Type |
Description |
list |
?
|
|
Returns:
-
reportMap
(reporter, list)
-
| Name |
Type |
Description |
reporter |
?
|
|
list |
?
|
|
-
reportMappedCode
(aContext)?
-
| Name |
Type |
Description |
aContext |
?
|
|
Returns:
-
reportModulus
(a, b)number
-
| Name |
Type |
Description |
a |
number
|
|
b |
number
|
|
Returns:
-
-
| Name |
Type |
Description |
fname |
?
|
|
n |
number
|
|
-
reportMouseDown
()boolean
-
Returns:
-
-
Returns:
-
-
Returns:
-
-
Returns:
-
-
| Name |
Type |
Description |
bool |
boolean
|
|
Returns:
-
-
| Name |
Type |
Description |
block |
?
|
|
-
reportProduct
(a, b)number
-
| Name |
Type |
Description |
a |
number
|
|
b |
number
|
|
Returns:
-
reportQuotient
(a, b)number
-
| Name |
Type |
Description |
a |
number
|
|
b |
number
|
|
Returns:
-
reportRandom
(min, max)number
-
| Name |
Type |
Description |
min |
number
|
|
max |
number
|
|
Returns:
-
reportRelationTo
(relation, name)number
-
| Name |
Type |
Description |
relation |
?
|
|
name |
?
|
|
Returns:
-
-
| Name |
Type |
Description |
n |
number
|
|
Returns:
-
reportScript
(parameterNames, topBlock)Context
-
| Name |
Type |
Description |
parameterNames |
?
|
|
topBlock |
?
|
|
Returns:
-
-
Returns:
-
reportStringSize
(data)number
-
| Name |
Type |
Description |
data |
?
|
|
Returns:
-
-
| Name |
Type |
Description |
a |
number
|
|
b |
number
|
|
Returns:
-
-
Returns:
-
reportTextFunction
(fname, string)String
-
| Name |
Type |
Description |
fname |
?
|
|
string |
String
|
|
Returns:
-
reportTextSplit
(string, delimiter)List
-
| Name |
Type |
Description |
string |
?
|
|
delimiter |
?
|
|
Returns:
-
-
Returns:
-
reportTouchingColor
(aColor)boolean
-
| Name |
Type |
Description |
aColor |
Color
|
|
Returns:
-
reportTouchingObject
(name)boolean
-
| Name |
Type |
Description |
name |
?
|
|
Returns:
-
reportTypeOf
(thing)String
-
| Name |
Type |
Description |
thing |
?
|
|
Returns:
-
reportUnicode
(string)String
-
| Name |
Type |
Description |
string |
?
|
|
Returns:
-
reportUnicodeAsLetter
(num)String
-
| Name |
Type |
Description |
num |
number
|
|
Returns:
-
-
| Name |
Type |
Description |
url |
String
|
|
Returns:
-
-
-
returnValueToParentContext
(value)
-
| Name |
Type |
Description |
value |
?
|
|
-
runContinuation
(aContext, args)
-
| Name |
Type |
Description |
aContext |
?
|
|
args |
?
|
|
-
-
| Name |
Type |
Description |
deadline |
number
|
|
-
-
-
-