Supported ActionScript classes

Here is the list of supported ActionScript classes in Lightningbeam-exported HTML5. Note that more are being added. Green indicates a fully implemented class.

_global
_root
._x
._y
._currentframe
._previousframe
._visible
.play()
.stop()

 .gotoAndPlay(frame)
 .gotoAndStop(frame)
 .prevFrame()
.onEnterFrame() handler
.onKeyDown() handler
.onKeyUp() handler
.onMouseDown() handler
.onMouseMove() handler
arguments
Array
Boolean
Date
Function
Key
.BACKSPACE .CAPSLOCK .CONTROL .DELETEKEY .DOWN .END .ENTER .ESCAPE .HOME .INSERT .LEFT .PGDN .PGUP .RIGHT .SHIFT .SPACE .TAB .UP
.addListener(listener)
.getCode()
.isDown()
.removeListener(listener)
Math
MovieClip
._x
._y
._currentframe
._previousframe
._visible
.play()
.stop()
 .gotoAndPlay(frame)
 .gotoAndStop(frame)
 .prevFrame()
.onEnterFrame() handler
.onKeyDown() handler
.onKeyUp() handler
.onMouseDown() handler
.onMouseMove() handler

Number
 MAX_VALUE [constant]
 MIN_VALUE [constant]
 NaN       [constant]
 NEGATIVE_INFINITY  [constant]
 Number constructor
 POSITIVE_INFINITY  [constant]
 .toString()
 .valueOf()
Object
 .toString()
 .addProperty(name, getter, setter)
 .constructor
 .hasOwnProperty(name)
 .isPropertyEnumerable(name)
 .isPrototypeOf(theClass)
 Object constructor


Point
 .x
 .y
 .length
 .add(point)
 .clone()
 distance(pt1, pt2) [static]
 .equals(toCompare)
 interpolate(pt1, pt2, f) [static]
 .normalize(length)
 .offset(dx, dy)
 polar(len, angle) [static]
 .subtract(v)
 .toString()
Rectangle
 .x
 .y
 .size
 .width
 .height
 .top
 .bottom
 .left
 .right
 .topLeft
 .bottomRight
 .clone()
 .contains(x, y)
 .containsPoint(pt)
 .containsRectangle(rect)
 .equals(toCompare)
 .inflate(dx, dy)
 .inflatePoint(pt)
 .intersection(toIntersect)
 .intersects(toIntersect)
 .isEmpty()
 .offset(dx, dy)
 .offsetPoint(pt)
 .setEmpty()
 .toString()
 .union(toUnion)
Stage
 .width
 .height
String

 .charAt(index)
 .charCodeAt(index)
 .concat(concat)
 .fromCharCode() [static]
 .indexOf(value, [startIndex])
 .lastIndexOf(value, [startIndex[)
 .length()
 .slice(start,end)
 .split(delimiter, [limit])
 .String constructor
 .substr (start,length)
 .substring (start,end)
 .toLowerCase ()
 .toString()
 .toUpperCase ()
 .valueOf ()





Operators:
 instanceof

No comments:

Post a Comment

Post a Comment