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.1476004225.txt.gz · Last modified: 2016/10/09 11:10 by 127.0.0.1