User Tools

Site Tools


code:introduction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

code:introduction [2011/01/23 20:19] – created jmgrcode:introduction [2011/04/20 20:32] (current) – removed jmgr
Line 1: Line 1:
-Each object contains items. +
-Items are: +
-  * Methods, called with an object: +
-<code javascript> +
-var w = new Window(); //Calls the method close() from a previously created Window object +
-w.close(); +
-</code> +
-<code javascript> +
-Window().close(); //Calls the method close() from a Window object created inline +
-</code> +
-  * Functions, called without an object: +
-<code javascript> +
-Window.all(); //Calls the function all() +
-</code> +
-  * Variables: +
-<code javascript> +
-Script.nextLine = 4; //Sets the next script execution line to 4 +
-</code> +
-<code javascript> +
-Console.print("The next line is: " + Script.nextLine); //Writes an entry in the execution console with the next line +
-</code> +
-  * Attributes, called with an object: +
-<code javascript> +
-var size = new Size(); +
-size.x = 6; +
-</code> +
-  * Enumerations: TODO+
code/introduction.1295813987.txt.gz · Last modified: 2021/02/13 11:23 (external edit)