DirectorWiki ›
API Reference ›
Events, Keywords, Operators, Constants
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.
| Event | Ref. p. | Fires |
|---|
on activateApplication | 159 | Player app brought to foreground. |
on activateWindow | 160 | A movie window becomes active. |
on beginSprite | 161 | Playhead enters a sprite span. |
on closeWindow | 162 | User/Lingo closes a MIAW. |
on cuePassed | 162 | Media cue point passes (sync). |
on deactivateApplication | 163 | Player app loses foreground. |
on deactivateWindow | 164 | Window loses active status. |
on DVDeventNotification | 165 | DVD member events. |
on endSprite | 168 | Playhead leaves a sprite span. |
on enterFrame | 169 | After the frame draws. |
on EvalScript | 170 | Browser called the movie via JavaScript EvalScript(). |
on exitFrame | 172 | Playhead leaves the frame. |
on getBehaviorDescription | 173 | Authoring: behavior description string. |
on getBehaviorTooltip | 174 | Authoring: behavior tooltip. |
on getPropertyDescriptionList | 174 | Authoring: behavior parameter dialog (behaviors). |
on hyperlinkClicked | 176 | Text member hyperlink clicked. |
on idle | 177 | While waiting between frames. |
on isOKToAttach | 178 | Authoring: behavior attachment veto. |
on keyDown / on keyUp | 179/180 | Keyboard (input). |
on mouseDown / on mouseUp | 181/185 | Mouse buttons. |
on mouseEnter / on mouseLeave / on mouseWithin | 183/184/187 | Hover transitions. |
on mouseUpOutside | 186 | Release off the mouse-down sprite. |
on moveWindow | 187 | MIAW moved. |
on openWindow | 188 | MIAW opened. |
on prepareFrame | 189 | Before the frame draws. |
on prepareMovie | 189 | First movie event. |
on resizeWindow | 190 | MIAW/stage resized. |
on rightMouseDown / on rightMouseUp | 191/192 | Right button / Ctrl-click. |
on runPropertyDialog | 192 | Scripted parameter dialog control. |
on savedLocal | 193 | Shockwave saveLocal completion (legacy). |
on sendXML | 194 | Flash member XML send callback. |
on startMovie | 195 | After first frame prepared. |
on stepFrame | 196 | actorList members, each advance/updateStage. |
on stopMovie | 197 | Movie ends or is replaced. |
on streamStatus | 197 | Streaming progress callback (tellStreamStatus on). |
on timeOut | 199 | Classic inactivity timer expiry. |
trayIconMouseDoubleClick / trayIconMouseDown / trayIconRightMouseDown | 199-201 | System tray (projector). |
on zoomWindow | 201 | MIAW zoom box. |
Keywords (35)#
| Keyword | Ref. p. | Notes |
|---|
\ (continuation) | 203 | Line continuation in MX listings. |
case / end case / otherwise | 203/206/216 | Multi-branch conditional (control flow). |
char...of / word...of / item...of / line...of | 205/226/210/211 | Chunk addressing (chunks). |
end | 206 | Terminates handlers and blocks. |
exit / exit repeat / next repeat | 206/207/216 | Handler return / loop break / loop continue. |
field | 207 | Legacy field member reference: field "name". |
global | 208 | Global variable declaration. |
if / then / else | 209 | Conditional. |
INF / NAN | 210/215 | Float infinity / not-a-number literals. |
loop | 212 | go loop target keyword. |
me | 212 | Script instance self-reference. |
menu | 213 | installMenu menu definition resource. |
next | 215 | go next marker navigation. |
on | 216 | Handler definition. |
property | 217 | Instance property declaration. |
put...into/after/before | 218-219 | Assignment and string splicing. |
repeat while / repeat with / repeat with...down to / repeat with...in list | 220-222 | Loop forms. |
return | 223 | Return value (also the RETURN constant context). |
set...to, set...= | 224 | Classic assignment. |
sprite...intersects / sprite...within | 224/225 | Sprite area tests (sprites). |
the | - | System/object property access prefix (documented per property). |
version | 225 | the version / version keyword. |
Operators (29)#
Precedence table and semantics: Variables and operators.
| Operator | Ref. p. | Meaning |
|---|
# | 595 | Symbol literal. |
. | 596 | Property/method access (dot syntax). |
- | 597/603 | Negation / subtraction. |
-- | 598 | Comment. |
& / && | 598/599 | Concatenate / concatenate with space. |
() | 600 | Grouping, call syntax. |
* / / / mod | 601/604/612 | Multiply / divide (integer truncates) / modulo. |
+ | 602 | Addition (also 3D vector forms). |
< <= > >= | 605-607 | Comparison (case-insensitive on strings). |
= / <> | 606/605 | Equal / not equal. |
[ ] | 607 | List literal and bracket access. |
@ | 609 | Pathname operator: @/folder/file movie-relative paths. |
and / or / not | 611/615/614 | Logical (no short-circuit). |
contains / starts | 611/616 | Substring / prefix test (case-insensitive). |
Constants (12)#
| Constant | Ref. p. | Value |
|---|
BACKSPACE | 152 | char 8 |
EMPTY | 152 | "" |
ENTER | 153 | keypad Enter (char 3) |
FALSE | 154 | 0 |
PI | 154 | 3.14159265... |
QUOTE | 155 | the " character |
RETURN | 156 | char 13 |
SPACE | 156 | " " |
TAB | 157 | char 9 |
TRUE | 158 | 1 |
VOID | 158 | the empty value |
" (string literal) | 151 | string delimiter |