movieclip: members
69 implemented, 0 reserved. Entries are sorted by name.
Implemented
Section titled “Implemented”_level0
Section titled “_level0”movieclip._level0: movieclip
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
The root clip of the tree this clip belongs to.
echo(this.m.coin._level0._name);Specification: movieclip.md§2.1.
movieclip._name: string
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
The instance name of the clip.
echo(this.m.coin._name);Specification: movieclip.md§2.1.
_parent
Section titled “_parent”movieclip._parent: movieclip
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
The clip this one hangs from; empty for a root.
echo(this.m.coin._parent._name);Specification: movieclip.md§2.1.
movieclip._root: movieclip
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
The root clip of the tree this clip belongs to.
echo(this.m.coin._root._name);Specification: movieclip.md§2.1.
_rotation
Section titled “_rotation”movieclip._rotation: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Rotation in degrees, clockwise on screen.
this.m._rotation = 45;Specification: movieclip.md§3.1.
_visible
Section titled “_visible”movieclip._visible: boolean
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Whether the clip and its children are drawn and can be hit.
this.m._visible = false;Specification: movieclip.md§3.1.
movieclip._x: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Position to the right of the parent origin, in pixels. For a root, pixels from the left of the screen.
this.m._x = 100;Specification: movieclip.md§3.1.
_xmouse
Section titled “_xmouse”movieclip._xmouse: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
Horizontal pointer position in the space of the clip.
echo(this.m._xmouse);Specification: movieclip.md§6.5.
_xscale
Section titled “_xscale”movieclip._xscale: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Horizontal scale in percent; 100 is natural size.
this.m._xscale = 50;Specification: movieclip.md§3.1.
movieclip._y: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Position below the parent origin, in pixels. For a root, pixels from the top of the screen.
this.m._y = 40;Specification: movieclip.md§3.1.
_ymouse
Section titled “_ymouse”movieclip._ymouse: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
Vertical pointer position in the space of the clip.
echo(this.m._ymouse);Specification: movieclip.md§6.5.
_yscale
Section titled “_yscale”movieclip._yscale: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Vertical scale in percent; 100 is natural size.
this.m._yscale = 50;Specification: movieclip.md§3.1.
movieclip.alpha: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Opacity from 0 to 1. It multiplies with the opacity of the parents.
this.m.alpha = 0.5;Specification: movieclip.md§5.1.
attachmovie
Section titled “attachmovie”movieclip.attachmovie(source: any, name: string, depth: number) -> movieclip
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Adds a child clip at a depth, replacing any clip already there. The first argument is a clip to copy the look of, or an image file name for the new clip to show; the second is the name of the new clip. Returns the new clip, or empty when the depth is outside 0 to 19999.
temp.c = this.m.attachMovie("coin.png", "coin1", 3);Specification: movieclip.md§2.7.
movieclip.blue: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Blue multiplier from 0 to 1.
this.m.blue = 0.5;Specification: movieclip.md§5.1.
clearinterval
Section titled “clearinterval”movieclip.clearinterval(interval: object)
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Stops an interval started with setInterval and frees it.
this.m.clearInterval(this.timer);Specification: movieclip.md§8.3.
createemptymovieclip
Section titled “createemptymovieclip”movieclip.createemptymovieclip(name: string, depth: number) -> movieclip
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Adds an empty child clip with the given name at a depth, replacing any clip already there. Returns the new clip, or empty when the depth is outside 0 to 19999.
temp.c = this.m.createEmptyMovieClip("layer", 1);Specification: movieclip.md§2.7.
duplicatemovieclip
Section titled “duplicatemovieclip”movieclip.duplicatemovieclip(name: string, depth?: number) -> movieclip
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Makes a copy of this clip as a sibling under the given name, at the given depth or the next free one. A root clip cannot be duplicated and gives empty.
temp.copy = this.m.coin.duplicateMovieClip("coin2", 4);Specification: movieclip.md§2.7.
movieclip.frame: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
The frame of the timeline, counted from 0; -1 before the first frame is entered. Setting it jumps there.
this.m.frame = 2;Specification: movieclip.md§7.3.
framecount
Section titled “framecount”movieclip.framecount: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Number of frames in the timeline; 0 for a clip without one. Borne lets scripts set it, which gives a clip a timeline.
this.m.framecount = 8;Specification: movieclip.md§7.1.
getbounds
Section titled “getbounds”movieclip.getbounds(target?: object) -> object
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Returns an object with xmin, xmax, ymin and ymax: the area the clip and its children cover, in the space of the clip given, or of the parent when none is given. All four are 0 when the clip covers nothing.
temp.b = this.m.coin.getBounds(this.m);Specification: movieclip.md§4.3.
getbytesloaded
Section titled “getbytesloaded”movieclip.getbytesloaded() -> number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Returns the size in bytes of the image file the clip shows; 0 when it has none or the file is not here.
echo(this.m.getBytesLoaded());Specification: movieclip.md§4.5.
getbytestotal
Section titled “getbytestotal”movieclip.getbytestotal() -> number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Returns the size in bytes of the image file the clip shows; 0 when it has none or the file is not here.
echo(this.m.getBytesTotal());Specification: movieclip.md§4.5.
getcolor
Section titled “getcolor”movieclip.getcolor() -> string
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Returns the color multipliers as text: red, green and blue from 0 to 255, followed by alpha when it is below full.
echo(this.m.getColor()); // 255,128,0Specification: movieclip.md§5.2.
getdepth
Section titled “getdepth”movieclip.getdepth() -> number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Returns the depth of the clip in its parent, or -1 for a root.
echo(this.m.coin.getDepth());Specification: movieclip.md§2.2.
getinstanceatdepth
Section titled “getinstanceatdepth”movieclip.getinstanceatdepth(depth: number) -> movieclip
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Returns the child clip at a depth, or empty when there is none.
temp.c = this.m.getInstanceAtDepth(3);Specification: movieclip.md§2.2.
getlayer
Section titled “getlayer”movieclip.getlayer(name: string) -> movieclip
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Returns the child clip with the given name, or empty. Names are matched in any case.
temp.c = this.m.getLayer("coin");Specification: movieclip.md§2.7.
getnexthighestdepth
Section titled “getnexthighestdepth”movieclip.getnexthighestdepth() -> number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Returns the depth after the highest one a child uses, or 0 when there are no children.
this.m.createEmptyMovieClip("x", this.m.getNextHighestDepth());Specification: movieclip.md§2.2.
getproperty
Section titled “getproperty”movieclip.getproperty(index: number) -> string
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Returns a property by its number, as text: 0 x, 1 y, 2 x scale, 3 y scale, 4 current frame (from 1), 5 and 12 frame count, 6 alpha (0 to 100), 7 visible, 8 width, 9 height, 10 rotation, 13 name, 20 and 21 pointer position. Other numbers give empty.
echo(this.m.getProperty(0));Specification: movieclip.md§2.6.
gettimer
Section titled “gettimer”movieclip.gettimer() -> number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Returns the milliseconds since the root of the clip was created.
echo(this.m.getTimer());Specification: movieclip.md§8.4.
globaltolocal
Section titled “globaltolocal”movieclip.globaltolocal(point: object)
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Converts the x and y of an object from screen coordinates to the space of this clip, in place.
temp.p = new TStaticVar(); temp.p.x = 10; temp.p.y = 20;this.m.globalToLocal(temp.p);Specification: movieclip.md§3.4.
gotoandplay
Section titled “gotoandplay”movieclip.gotoandplay(frame: any)
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Jumps to a frame and plays from there. A number counts from 1; anything else is a frame name, and clips have none, so the frame stays. Acts on the clip when it has a timeline, otherwise on its parent.
this.m.gotoAndPlay(1);Specification: movieclip.md§7.3.
gotoandstop
Section titled “gotoandstop”movieclip.gotoandstop(frame: any)
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Jumps to a frame and stops there. A number counts from 1; anything else is a frame name, and clips have none, so the frame stays. Acts on the clip when it has a timeline, otherwise on its parent.
this.m.gotoAndStop(3);Specification: movieclip.md§7.3.
movieclip.green: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Green multiplier from 0 to 1.
this.m.green = 0.5;Specification: movieclip.md§5.1.
height
Section titled “height”movieclip.height: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
Height in pixels of the area the clip and its children cover, after scaling; 0 when nothing is covered.
echo(this.m.coin.height);Specification: movieclip.md§4.2.
hittest
Section titled “hittest”movieclip.hittest(target: any, y?: number) -> boolean
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Tells whether the clip touches another clip, or a point given as screen x and y. Touching means the covered areas share at least an edge.
if (this.m.coin.hitTest(this.m.player)) echo("got it");Specification: movieclip.md§4.4.
movieclip.key: object
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
Helper object of the legacy bridge. It is empty in Borne.
echo(this.m.key == null);Specification: movieclip.md§2.1.
layerdepths
Section titled “layerdepths”movieclip.layerdepths: array
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
Array of the depths in use by the children, lowest first.
echo(this.m.layerdepths);Specification: movieclip.md§2.7.
layernames
Section titled “layernames”movieclip.layernames: array
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
Array of the names of the children, in depth order.
echo(this.m.layernames);Specification: movieclip.md§2.7.
localtoglobal
Section titled “localtoglobal”movieclip.localtoglobal(point: object)
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Converts the x and y of an object from the space of this clip to screen coordinates, in place.
temp.p = new TStaticVar(); temp.p.x = 0; temp.p.y = 0;this.m.coin.localToGlobal(temp.p);Specification: movieclip.md§3.4.
looping
Section titled “looping”movieclip.looping: boolean
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Whether the timeline starts over after the last frame.
this.m.looping = false;Specification: movieclip.md§7.1.
movieclip.math: object
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
Helper object of the legacy bridge. It is empty in Borne.
echo(this.m.math == null);Specification: movieclip.md§2.1.
nextframe
Section titled “nextframe”movieclip.nextframe()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Stops the timeline and moves one frame forward, staying on the last frame.
this.m.nextFrame();Specification: movieclip.md§7.1.
objectname
Section titled “objectname”movieclip.objectname: string
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
File name of the image the clip shows; empty for a clip that shows nothing.
this.m.objectName = "hud.png";Specification: movieclip.md§9.2.
objectnames
Section titled “objectnames”movieclip.objectnames: array
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
Array of the image names shown by the clip and its descendants, without repeats.
echo(this.m.objectnames);Specification: movieclip.md§2.7.
onEnterFrame
Section titled “onEnterFrame”movieclip.onEnterFrame()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Raised on every clip once per timeline tick, 30 times a second, parents before children, after the timeline moved on.
this.m.onEnterFrame = function () { this._x += 1; };Specification: movieclip.md§8.1.
onInitFrame
Section titled “onInitFrame”movieclip.onInitFrame()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Raised once on a clip in the first frame step after it was made, before its first onEnterFrame. Define it by assigning a function to the clip.
this.m.onInitFrame = function () { echo("ready"); };Specification: movieclip.md§8.1.
onPress
Section titled “onPress”movieclip.onPress()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Raised when the left button goes down over the clip, or over a child that has no handler of its own. The click goes no further.
this.m.onPress = function () { echo("down"); };Specification: movieclip.md§6.2.
onRelease
Section titled “onRelease”movieclip.onRelease()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Raised when the left button goes up over the clip that took the press.
this.m.onRelease = function () { echo("click"); };Specification: movieclip.md§6.2.
onRollOut
Section titled “onRollOut”movieclip.onRollOut()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Raised when the pointer leaves the clip.
this.m.onRollOut = function () { this.alpha = 1; };Specification: movieclip.md§8.2.
onRollOver
Section titled “onRollOver”movieclip.onRollOver()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Raised when the pointer moves onto the clip.
this.m.onRollOver = function () { this.alpha = 0.5; };Specification: movieclip.md§8.2.
movieclip.play()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Starts the timeline of the clip, or of its parent when the clip has none.
this.m.play();Specification: movieclip.md§7.1.
playing
Section titled “playing”movieclip.playing: boolean
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Whether the timeline advances.
this.m.playing = false;Specification: movieclip.md§7.1.
prevframe
Section titled “prevframe”movieclip.prevframe()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Stops the timeline and moves one frame back, staying on the first frame.
this.m.prevFrame();Specification: movieclip.md§7.1.
movieclip.red: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Red multiplier from 0 to 1.
this.m.red = 0.5;Specification: movieclip.md§5.1.
removelayer
Section titled “removelayer”movieclip.removelayer(name: string)
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Removes the child clip with the given name, together with its own children.
this.m.removeLayer("coin");Specification: movieclip.md§2.7.
removemovieclip
Section titled “removemovieclip”movieclip.removemovieclip()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Removes the clip and everything under it. The depth becomes free.
this.m.coin.removeMovieClip();Specification: movieclip.md§2.4.
setcolor
Section titled “setcolor”movieclip.setcolor(color: string)
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Sets the color multipliers from text: red, green and blue from 0 to 255, with an optional fourth part for alpha. Missing or invalid parts count as 0.
this.m.setColor("255,128,0");Specification: movieclip.md§5.2.
setinterval
Section titled “setinterval”movieclip.setinterval(target: object, function: string, milliseconds: number) -> object
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Calls a function of an object again and again. Takes the object, the function name and the period in milliseconds, and returns an object to give to clearInterval.
this.timer = this.m.setInterval(this, "onTick", 500);Specification: movieclip.md§8.3.
setmask
Section titled “setmask”movieclip.setmask(mask: object)
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Limits where the clip draws to the area covered by another clip. The mask clip is not drawn itself. Pass empty to remove the mask.
this.m.pic.setMask(this.m.window);Specification: movieclip.md§9.3.
setproperty
Section titled “setproperty”movieclip.setproperty(index: number, value: string)
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Sets a property by the number getProperty uses. Settable: 0, 1, 2, 3, 6, 7, 10 and 13.
this.m.setProperty(0, "50");Specification: movieclip.md§2.6.
movieclip.stage: stage
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
The stage object of the tree this clip belongs to.
echo(this.m.stage.width);Specification: movieclip.md§1.3.
startdrag
Section titled “startdrag”movieclip.startdrag()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Makes the clip follow the pointer, keeping the distance it had when the call was made, until stopDrag. On a GUI control it starts the toolkit drag instead.
this.m.coin.startDrag();Specification: movieclip.md§6.4.
movieclip.stop()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Stops the timeline of the clip, or of its parent when the clip has none.
this.m.stop();Specification: movieclip.md§7.1.
stopdrag
Section titled “stopdrag”movieclip.stopdrag()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Ends a drag started with startDrag.
this.m.coin.stopDrag();Specification: movieclip.md§6.4.
swapdepths
Section titled “swapdepths”movieclip.swapdepths(sibling: any)
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Exchanges the depth of this clip with that of a sibling, given by clip or by name.
this.m.a.swapDepths("b");Specification: movieclip.md§2.5.
unloadmovie
Section titled “unloadmovie”movieclip.unloadmovie()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Same as removeMovieClip.
this.m.coin.unloadMovie();Specification: movieclip.md§2.4.
updateafterevent
Section titled “updateafterevent”movieclip.updateafterevent()
Runs on: client only. Origin: compatibility. Since: M14. Playground: no.
Asks for a redraw after an event. The screen is redrawn every frame, so this does nothing.
this.m.updateAfterEvent();Specification: movieclip.md§8.1.
movieclip.width: number
Runs on: client only. Origin: compatibility. Since: M14. Playground: no. read-only.
Width in pixels of the area the clip and its children cover, after scaling; 0 when nothing is covered.
echo(this.m.coin.width);Specification: movieclip.md§4.2.
Engine version 0.1.0. Built 2026-11-18.