NativeElement
Client only. One of the game's interface elements, from NativeUI.element. You can call its ActionScript functions, read and write its variables and clips, and listen for its events. Values are numbers, strings, booleans or null.
nativeElement.name
nameThe element's name.
nativeElement.instanceId
instanceIdThe element's instance.
nativeElement.valid
validWhether the element exists in the game now.
nativeElement.visible
visibleWhether it shows.
nativeElement.call()
call(fn, args, ...loose)Calls an ActionScript function of the element and returns its answer.
nativeElement.setVariable()
setVariable(variable, value)Sets an ActionScript variable of the movie.
nativeElement.getVariable()
getVariable(variable)Reads an ActionScript variable.
nativeElement.setArray()
setArray(array, values)Sets an ActionScript array.
nativeElement.getArray()
getArray(array)Reads an ActionScript array, or returns null.
nativeElement.setClip()
setClip(clip, options)Changes a clip's display fields.
nativeElement.getClip()
getClip(clip)A clip's display fields, or null.
nativeElement.gotoClip()
gotoClip(clip, frameOrLabel, play = false)Moves a clip's timeline to a frame or label.
nativeElement.show()
show()Shows the element.
nativeElement.hide()
hide()Hides the element at once.
nativeElement.askHide()
askHide()Asks the element to hide itself the game's way, with its own closing.
nativeElement.reload()
reload()Reloads the element's movie.
nativeElement.unload()
unload()Unloads the element's movie.
nativeElement.on()
on(event, handler)Listens for an event from the element's movie.
nativeElement.off()
off(event)Removes your handlers of an event.