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. Members are listed with the
first player that has them where it differs from the class.
Flash 5 (Flash Player 5)
| Class | Is | Main members |
|---|---|---|
Object | The root of every object. | toString, valueOf, constructor, __proto__; addProperty, watch, unwatch, hasOwnProperty, registerClass (6) |
Array | Ordered lists, from literals […] or new Array(). | length, push, pop, shift, unshift, splice, slice, concat, join, reverse, sort, toString; sortOn (6) |
String | Text, and the wrapper for string values. | length, charAt, charCodeAt, indexOf, lastIndexOf, substr, substring, slice, split, concat, toUpperCase, toLowerCase, String.fromCharCode |
Number | The wrapper for numbers. | toString(radix), valueOf, MAX_VALUE, MIN_VALUE, NaN, POSITIVE_INFINITY, NEGATIVE_INFINITY |
Boolean | The wrapper for booleans. | toString, valueOf |
Math | Mathematical functions and constants, used without new. | abs, ceil, floor, round, max, min, pow, sqrt, exp, log, random, sin, cos, tan, asin, acos, atan, atan2; PI, E, LN2, LN10, LOG2E, LOG10E, SQRT2, SQRT1_2 |
Date | A date and time, in local time or UTC. | getFullYear, getMonth (0 to 11), getDate, getDay, getHours, getMinutes, getSeconds, getMilliseconds, getTime, getTimezoneOffset, the getUTC… forms, the matching setters, Date.UTC. Dates are made from numbers; text dates are not parsed. |
arguments | The arguments of the running function. | length, callee; caller (6) |
MovieClip | Movie clips and main timelines; see Movie clips. | timeline, depth, loading, drag and hit test methods; the drawing methods and handler properties (6) |
Color | Changes the colour of a movie clip. | new Color(clip), setRGB, getRGB, setTransform, getTransform (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, start, stop, setVolume, getVolume, setPan, getPan, setTransform, getTransform; loadSound for MP3 files, duration, position, onSoundComplete (6) |
Key | The keyboard, used without new. | isDown(code), getCode, getAscii, isToggled, the codes LEFT, RIGHT, UP, DOWN, SPACE, ENTER, ESCAPE, SHIFT, CONTROL, TAB and others; addListener (6) |
Mouse | The pointer, used without new. | hide, show; addListener (6) |
Selection | The focus and the text selection in editable fields. | getFocus, setFocus, getBeginIndex, getEndIndex, getCaretIndex, setSelection; addListener (6) |
XML | An XML document, loaded, parsed, built and sent. | load, send, sendAndLoad, parseXML, createElement, createTextNode, loaded, status, ignoreWhite, xmlDecl, docTypeDecl, contentType, onLoad, onData |
XMLNode | A node of an XML tree. | nodeName, nodeValue, nodeType, attributes, childNodes, firstChild, lastChild, nextSibling, previousSibling, parentNode, appendChild, insertBefore, removeNode, cloneNode, hasChildNodes |
XMLSocket | A lasting TCP connection to a server that exchanges XML or text ending in a zero byte. | connect, send, close, onConnect, onXML, onData, onClose |
Flash MX (Flash Player 6)
| Class | Is | Main members |
|---|---|---|
Function | Methods every function has. | call, apply |
Button | Button instances, now objects with properties. | enabled, useHandCursor, trackAsMenu, tabIndex, _x and the other display properties, onPress and the other handlers |
TextField | Text fields on the stage, now objects; dynamic and input fields can be made with createTextField. | text, htmlText, html, type, variable, multiline, wordWrap, autoSize, maxChars, restrict, password, selectable, border, background, embedFonts, scroll, maxscroll, setTextFormat, getTextFormat, setNewTextFormat, replaceSel, removeTextField, onChanged, onScroller, addListener |
TextFormat | Character and paragraph formatting for text fields. | font, size, color, bold, italic, underline, url, target, align, leftMargin, rightMargin, indent, leading, bullet, tabStops, getTextExtent |
LoadVars | Loads and sends URL-encoded variables as an object, with load events. | load, send, sendAndLoad, toString, loaded, contentType, getBytesLoaded, getBytesTotal, onLoad, onData |
LocalConnection | Calls between movies running on the same computer. | connect, send, close, domain, allowDomain, onStatus |
SharedObject | Data kept on the user’s computer between visits, or shared through Flash Communication Server. | SharedObject.getLocal, SharedObject.getRemote, data, flush, getSize, connect, onStatus, onSync |
Stage | The player’s display area, used without new. | width, height, scaleMode, align, showMenu, addListener, onResize |
System | Settings of the player and the computer. | System.useCodepage, System.showSettings, System.capabilities, System.security |
System.capabilities | What the player and computer can do. | version, os, language, screenResolutionX, screenResolutionY, hasAudio, hasMP3, isDebugger and others |
System.security | Cross-domain permissions. | allowDomain |
Camera | Captures video from a camera. | Camera.get, setMode, setQuality, setMotionLevel, activityLevel, muted, onActivity, onStatus |
Microphone | Captures sound from a microphone. | Microphone.get, setRate, setGain, setSilenceLevel, activityLevel, muted, onActivity, onStatus |
NetConnection | A connection to Flash Communication Server. | connect, call, close, isConnected, uri, onStatus |
NetStream | A stream of audio and video over a NetConnection. | publish, play, pause, seek, close, attachAudio, attachVideo, setBufferTime, time, bufferLength, onStatus |
Video | A video object on the stage that shows a camera or stream. | attachVideo, clear, width, height, smoothing |
Accessibility | Talks to screen readers. | isActive; updateProperties (6.0.65) |
CustomActions | Lets a movie running inside the Flash program install custom actions into it. | install, uninstall, list, get |
AsBroadcaster | Gives any object listener support; undocumented in Flash MX. | initialize, and on the object addListener, removeListener, broadcastMessage, _listeners |
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.