DDirectorWikiDirector & Lingo Encyclopedia

Events, Keywords, Operators, Constants

All documented MX 2004 event handlers, language keywords, operators, and constants with reference pages and notes.

Events and messages (45)

Cross-reference: semantics and ordering live in Event lifecycle and Message hierarchy.

EventRef. p.Fires
on activateApplication159Player app brought to foreground.
on activateWindow160A movie window becomes active.
on beginSprite161Playhead enters a sprite span.
on closeWindow162User/Lingo closes a MIAW.
on cuePassed162Media cue point passes (sync).
on deactivateApplication163Player app loses foreground.
on deactivateWindow164Window loses active status.
on DVDeventNotification165DVD member events.
on endSprite168Playhead leaves a sprite span.
on enterFrame169After the frame draws.
on EvalScript170Browser called the movie via JavaScript EvalScript().
on exitFrame172Playhead leaves the frame.
on getBehaviorDescription173Authoring: behavior description string.
on getBehaviorTooltip174Authoring: behavior tooltip.
on getPropertyDescriptionList174Authoring: behavior parameter dialog (behaviors).
on hyperlinkClicked176Text member hyperlink clicked.
on idle177While waiting between frames.
on isOKToAttach178Authoring: behavior attachment veto.
on keyDown / on keyUp179/180Keyboard (input).
on mouseDown / on mouseUp181/185Mouse buttons.
on mouseEnter / on mouseLeave / on mouseWithin183/184/187Hover transitions.
on mouseUpOutside186Release off the mouse-down sprite.
on moveWindow187MIAW moved.
on openWindow188MIAW opened.
on prepareFrame189Before the frame draws.
on prepareMovie189First movie event.
on resizeWindow190MIAW/stage resized.
on rightMouseDown / on rightMouseUp191/192Right button / Ctrl-click.
on runPropertyDialog192Scripted parameter dialog control.
on savedLocal193Shockwave saveLocal completion (legacy).
on sendXML194Flash member XML send callback.
on startMovie195After first frame prepared.
on stepFrame196actorList members, each advance/updateStage.
on stopMovie197Movie ends or is replaced.
on streamStatus197Streaming progress callback (tellStreamStatus on).
on timeOut199Classic inactivity timer expiry.
trayIconMouseDoubleClick / trayIconMouseDown / trayIconRightMouseDown199-201System tray (projector).
on zoomWindow201MIAW zoom box.

Keywords (35)

KeywordRef. p.Notes
\ (continuation)203Line continuation in MX listings.
case / end case / otherwise203/206/216Multi-branch conditional (control flow).
char...of / word...of / item...of / line...of205/226/210/211Chunk addressing (chunks).
end206Terminates handlers and blocks.
exit / exit repeat / next repeat206/207/216Handler return / loop break / loop continue.
field207Legacy field member reference: field "name".
global208Global variable declaration.
if / then / else209Conditional.
INF / NAN210/215Float infinity / not-a-number literals.
loop212go loop target keyword.
me212Script instance self-reference.
menu213installMenu menu definition resource.
next215go next marker navigation.
on216Handler definition.
property217Instance property declaration.
put...into/after/before218-219Assignment and string splicing.
repeat while / repeat with / repeat with...down to / repeat with...in list220-222Loop forms.
return223Return value (also the RETURN constant context).
set...to, set...=224Classic assignment.
sprite...intersects / sprite...within224/225Sprite area tests (sprites).
the-System/object property access prefix (documented per property).
version225the version / version keyword.

Operators (29)

Precedence table and semantics: Variables and operators.

OperatorRef. p.Meaning
#595Symbol literal.
.596Property/method access (dot syntax).
-597/603Negation / subtraction.
--598Comment.
& / &&598/599Concatenate / concatenate with space.
()600Grouping, call syntax.
* / / / mod601/604/612Multiply / divide (integer truncates) / modulo.
+602Addition (also 3D vector forms).
< <= > >=605-607Comparison (case-insensitive on strings).
= / <>606/605Equal / not equal.
[ ]607List literal and bracket access.
@609Pathname operator: @/folder/file movie-relative paths.
and / or / not611/615/614Logical (no short-circuit).
contains / starts611/616Substring / prefix test (case-insensitive).

Constants (12)

ConstantRef. p.Value
BACKSPACE152char 8
EMPTY152""
ENTER153keypad Enter (char 3)
FALSE1540
PI1543.14159265...
QUOTE155the " character
RETURN156char 13
SPACE156" "
TAB157char 9
TRUE1581
VOID158the empty value
" (string literal)151string delimiter