User Tools

Site Tools


en:code:introduction

This is an old revision of the document!


Each object contains items. Items are:

  • Methods, called with an object:
var w = new Window(); //Calls the method close() from a previously created Window object
w.close();
Window().close(); //Calls the method close() from a Window object created inline
  • Functions, called without an object:
Window.all(); //Calls the function all()
  • Variables:
Script.nextLine = 4; //Sets the next script execution line to 4
Console.print("The next line is: " + Script.nextLine); //Writes an entry in the execution console with the next line
  • Attributes, called with an object:
var size = new Size();
size.x = 6;
  • Enumerations: TODO
en/code/introduction.1303331574.txt.gz · Last modified: 2021/02/13 11:23 (external edit)