Macromedia’s documentation called these objects; they are constructors, or single
objects such as Math and Key that are used without
new. Each is built into Flash Player, not compiled into the SWF, so a class
is there only when the player that runs the movie has it. Below is every member the
ActionScript 2.0 Language Reference gives for each class in Flash Player 5 and 6;
“(6)” marks a member that needs Flash Player 6 where the class is
older. Members a later player added are on the
ActionScript 2.0 classes page,
with their types.
Flash 5 (Flash Player 5)
| Class | Is | Members |
|---|---|---|
Object | The root of every object. | constructor, __proto__, toString(), valueOf(); (6) __resolve, prototype, addProperty(), hasOwnProperty(), isPropertyEnumerable(), isPrototypeOf(), unwatch(), watch(), Object.registerClass() |
Array | Ordered lists, from literals […] or new Array(). | length, concat(), join(), pop(), push(), reverse(), shift(), slice(), sort(), splice(), toString(), unshift(); (6) sortOn() |
String | Text, and the wrapper for string values. | length, charAt(), charCodeAt(), concat(), indexOf(), lastIndexOf(), slice(), split(), substr(), substring(), toLowerCase(), toString(), toUpperCase(), valueOf(), String.fromCharCode() |
Number | The wrapper for numbers. | toString(radix), valueOf(), MAX_VALUE, MIN_VALUE, NaN, NEGATIVE_INFINITY, POSITIVE_INFINITY |
Boolean | The wrapper for booleans. | toString(), valueOf() |
Math | Mathematical functions and constants, used without new. | abs(), acos(), asin(), atan(), atan2(), ceil(), cos(), exp(), floor(), log(), max(), min(), pow(), random(), round(), sin(), sqrt(), tan(); E, LN10, LN2, LOG10E, LOG2E, PI, SQRT1_2, SQRT2 |
Date | A date and time, in local time or UTC. | getDate(), getDay(), getFullYear(), getHours(), getMilliseconds(), getMinutes(), getMonth() (0 to 11), getSeconds(), getTime(), getTimezoneOffset(), getUTCDate(), getUTCDay(), getUTCFullYear(), getUTCHours(), getUTCMilliseconds(), getUTCMinutes(), getUTCMonth(), getUTCSeconds(), getYear(), setDate(), setFullYear(), setHours(), setMilliseconds(), setMinutes(), setMonth(), setSeconds(), setTime(), setUTCDate(), setUTCFullYear(), setUTCHours(), setUTCMilliseconds(), setUTCMinutes(), setUTCMonth(), setUTCSeconds(), setYear(), toString(), valueOf(), Date.UTC(). Dates are made from numbers; text dates are not parsed. |
arguments | The arguments of the running function. | callee, length; (6) caller |
MovieClip | Movie clips and main timelines; see Movie clips. | _x, _y, _alpha, _currentframe, _droptarget, _framesloaded, _height, _name, _parent, _rotation, _target, _totalframes, _url, _visible, _width, _xmouse, _xscale, _ymouse, _yscale, attachMovie(), duplicateMovieClip(), getBounds(), getBytesLoaded(), getBytesTotal(), getURL(), globalToLocal(), gotoAndPlay(), gotoAndStop(), hitTest(), loadMovie(), loadVariables(), localToGlobal(), nextFrame(), play(), prevFrame(), removeMovieClip(), startDrag(), stop(), stopDrag(), swapDepths(), unloadMovie(); (6) enabled, focusEnabled, _focusrect, _highquality, hitArea, _quality, _soundbuftime, tabChildren, tabEnabled, tabIndex, trackAsMenu, useHandCursor, attachAudio(), beginFill(), beginGradientFill(), clear(), createEmptyMovieClip(), createTextField(), curveTo(), endFill(), getDepth(), lineStyle(), lineTo(), moveTo(), setMask(), onData, onDragOut, onDragOver, onEnterFrame, onKeyDown, onKeyUp, onKillFocus, onLoad, onMouseDown, onMouseMove, onMouseUp, onPress, onRelease, onReleaseOutside, onRollOut, onRollOver, onSetFocus, onUnload |
Color | Changes the colour of a movie clip. | new Color(clip), getRGB(), getTransform(), setRGB(), setTransform() (an object of ra, rb, ga, gb, ba, bb, aa, ab) |
Sound | Plays and controls sounds from the library, globally or for one clip. | new Sound(clip), attachSound(), getPan(), getTransform(), getVolume(), setPan(), setTransform(), setVolume(), start(), stop(); (6) duration, id3, position, getBytesLoaded(), getBytesTotal(), loadSound(), onLoad, onSoundComplete |
Key | The keyboard, used without new. | getAscii(), getCode(), isDown(), isToggled(), the key codes BACKSPACE, CAPSLOCK, CONTROL, DELETEKEY, DOWN, END, ENTER, ESCAPE, HOME, INSERT, LEFT, PGDN, PGUP, RIGHT, SHIFT, SPACE, TAB, UP; (6) _listeners, addListener(), removeListener(), onKeyDown, onKeyUp |
Mouse | The pointer, used without new. | hide(), show(); (6) addListener(), removeListener(), onMouseDown, onMouseMove, onMouseUp, onMouseWheel |
Selection | The focus and the text selection in editable fields. | getBeginIndex(), getCaretIndex(), getEndIndex(), getFocus(), setFocus(), setSelection(); (6) addListener(), removeListener(), onSetFocus |
XML | An XML document, loaded, parsed, built and sent. Extends XMLNode. | docTypeDecl, ignoreWhite, loaded, status, xmlDecl, createElement(), createTextNode(), load(), parseXML(), send(), sendAndLoad(), onData, onLoad; (6) contentType, addRequestHeader(), getBytesLoaded(), getBytesTotal() |
XMLNode | A node of an XML tree. | attributes, childNodes, firstChild, lastChild, nextSibling, nodeName, nodeType, nodeValue, parentNode, previousSibling, appendChild(), cloneNode(), hasChildNodes(), insertBefore(), removeNode(), toString() |
XMLSocket | A lasting TCP connection to a server that exchanges XML or text ending in a zero byte. | close(), connect(), send(), onClose, onConnect, onData, onXML |
Flash MX (Flash Player 6)
| Class | Is | Members |
|---|---|---|
Function | Methods every function has. | apply(), call() |
Button | Button instances, now objects with properties. | _alpha, enabled, _focusrect, _height, _highquality, _name, _parent, _quality, _rotation, _soundbuftime, tabEnabled, tabIndex, _target, trackAsMenu, _url, useHandCursor, _visible, _width, _x, _xmouse, _xscale, _y, _ymouse, _yscale, getDepth(), onDragOut, onDragOver, onKeyDown, onKeyUp, onKillFocus, onPress, onRelease, onReleaseOutside, onRollOut, onRollOver, onSetFocus |
TextField | Text fields on the stage, now objects; dynamic and input fields can be made with createTextField. | _alpha, autoSize, background, backgroundColor, border, borderColor, bottomScroll, condenseWhite, embedFonts, _height, _highquality, hscroll, html, htmlText, length, maxChars, maxhscroll, maxscroll, multiline, _name, _parent, password, _quality, restrict, _rotation, scroll, selectable, _soundbuftime, tabEnabled, tabIndex, _target, text, textColor, textHeight, textWidth, type, _url, variable, _visible, _width, wordWrap, _x, _xmouse, _xscale, _y, _ymouse, _yscale, addListener(), getDepth(), getNewTextFormat(), getTextFormat(), removeListener(), removeTextField(), replaceSel(), replaceText(), setNewTextFormat(), setTextFormat(), TextField.getFontList(), onChanged, onKillFocus, onScroller, onSetFocus |
TextFormat | Character and paragraph formatting for text fields. | align, blockIndent, bold, bullet, color, font, indent, italic, leading, leftMargin, rightMargin, size, tabStops, target, underline, url, getTextExtent() |
LoadVars | Loads and sends URL-encoded variables as an object, with load events. | contentType, loaded, addRequestHeader(), getBytesLoaded(), getBytesTotal(), load(), send(), sendAndLoad(), toString(), onData, onLoad |
LocalConnection | Calls between movies running on the same computer. | close(), connect(), domain(), send(), onStatus |
SharedObject | Data kept on the user’s computer between visits, or shared through Flash Communication Server. | data, close(), connect(), flush(), getSize(), send(), setFps(), SharedObject.getLocal(), SharedObject.getRemote(), onStatus, onSync |
Stage | The player’s display area, used without new. | align, height, scaleMode, showMenu, width, addListener(), removeListener(), onResize |
System | Settings of the player and the computer. | useCodepage, showSettings(), onStatus, and the objects below |
System.capabilities | What the player and computer can do. | hasAccessibility, hasAudio, hasAudioEncoder, hasEmbeddedVideo, hasMP3, hasPrinting, hasScreenBroadcast, hasScreenPlayback, hasStreamingAudio, hasStreamingVideo, hasVideoEncoder, isDebugger, language, manufacturer, os, pixelAspectRatio, screenColor, screenDPI, screenResolutionX, screenResolutionY, serverString, version |
System.security | Cross-domain permissions. | allowDomain() |
Camera | Captures video from a camera. | activityLevel, bandwidth, currentFps, fps, height, index, keyFrameInterval, loopback, motionLevel, motionTimeOut, muted, name, quality, width, Camera.names, Camera.get(), setKeyFrameInterval(), setLoopback(), setMode(), setMotionLevel(), setQuality(), onActivity, onStatus |
Microphone | Captures sound from a microphone. | activityLevel, gain, index, muted, name, rate, silenceLevel, silenceTimeOut, useEchoSuppression, Microphone.names, Microphone.get(), setGain(), setRate(), setSilenceLevel(), setUseEchoSuppression(), onActivity, onStatus |
NetConnection | A connection to Flash Communication Server. | isConnected, uri, call(), close(), connect(), onResult, onStatus |
NetStream | A stream of audio and video over a NetConnection. The reference lists play, pause, seek, close, setBufferTime, time, bufferLength for Flash Player 7 (FLV over HTTP); with Flash Communication Server they also run in Flash Player 6. | liveDelay, attachAudio(), attachVideo(), publish(), receiveAudio(), receiveVideo(), send(), onPlayStatus, onStatus |
Video | A video object on the stage that shows a camera or stream. | deblocking, height, smoothing, width, attachVideo(), clear() |
Accessibility | Talks to screen readers. | isActive(), updateProperties() |
CustomActions | Lets a movie running inside the Flash program install custom actions into it. | get(), install(), list(), uninstall() |
AsBroadcaster | Gives any object listener support; undocumented in Flash MX. | _listeners, addListener(), broadcastMessage(), removeListener(), AsBroadcaster.initialize() |
Later classes
These came with Flash MX 2004 and Flash 8 and are not part of ActionScript 1.0 as
Flash 5 and Flash MX compile it: Error, MovieClipLoader,
ContextMenu, ContextMenuItem, PrintJob,
TextField.StyleSheet, TextSnapshot, System.IME,
ExternalInterface and the flash.* classes. They are on the
ActionScript 2.0 classes page.