NativeClip
Client only. A movie clip in your NativeScreen. You can create child clips and text fields, draw shapes, attach symbols from the game's movies, load pictures and listen for the mouse. The game's fonts are DefaultFont, DefaultFontItalic, DefaultFontBold, LightFont, LightFontItalic, LightFontBold, Manuscript and DisplayFont.
nativeClip.screen
screenThe screen it belongs to.
nativeClip.key
keyIts path of names below the root.
nativeClip.valid
validFalse once the clip or its screen is gone.
nativeClip.attach()
attach(exportName)Adds a symbol the screen's movie exports as a new child clip, or returns null. See NativeUI.libraries.
nativeClip.createClip()
createClip()An empty child clip, or null.
nativeClip.createText()
createText(options)A child text field in the game's fonts, or null. It wraps and cannot be selected.
nativeClip.set()
set(options)Changes display fields: `x`, `y`, `rotation`, `scaleX` and `scaleY`, where 1 is normal, `alpha`, 0 to 1, and `visible`.
nativeClip.get()
get(member)Reads an ActionScript member of the clip.
nativeClip.setMember()
setMember(member, value)Sets an ActionScript member of the clip.
nativeClip.setTextStyle()
setTextStyle(options)Styles a text field with `font`, `size`, `color`, `align` and `bold`.
nativeClip.setText()
setText(text, html = false)Sets a text field's text.
nativeClip.getText()
getText(html = false)A text field's text.
nativeClip.goto()
goto(frameOrLabel, play = false)Moves the clip's timeline to a frame or label.
nativeClip.invoke()
invoke(method, args, ...loose)Calls an ActionScript method of the clip.
nativeClip.draw()
draw(commands)Draws vector shapes in one frame, from a list of [method, ...args] using clear, lineStyle, beginFill, endFill, moveTo, lineTo or curveTo.
nativeClip.members()
members()The names of this clip's child clips, text fields and variables.
nativeClip.on()
on(event, handler)Listens for the mouse on this clip: 'press', 'release', 'releaseOutside', 'rollOver', 'rollOut', 'dragOver' or 'dragOut'.
nativeClip.off()
off(event)Removes your handlers of an event.
nativeClip.setMask()
setMask(mask)Masks the clip with another clip, or removes the mask with null.
nativeClip.setHitArea()
setHitArea(area)Makes another clip the area receiving this clip's mouse events, or removes it with null.
nativeClip.load()
load(url)Loads a picture or movie into the clip: img:// or imgps:// for the engine's image loader, or a movie path in the game's archives.
nativeClip.loadShipped()
loadShipped(path)Loads a file your resource ships into the clip.
nativeClip.remove()
remove()Removes the clip and its children.