code:introduction
Differences
This shows you the differences between two versions of the page.
| code:introduction [2011/01/23 20:19] – created jmgr | code: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 javascript> | + | |
| - | Window().close(); | + | |
| - | </ | + | |
| - | * Functions, called without an object: | + | |
| - | <code javascript> | + | |
| - | Window.all(); | + | |
| - | </ | + | |
| - | * Variables: | + | |
| - | <code javascript> | + | |
| - | Script.nextLine = 4; //Sets the next script execution line to 4 | + | |
| - | </ | + | |
| - | <code javascript> | + | |
| - | Console.print(" | + | |
| - | </ | + | |
| - | * Attributes, called with an object: | + | |
| - | <code javascript> | + | |
| - | var size = new Size(); | + | |
| - | size.x = 6; | + | |
| - | </ | + | |
| - | * Enumerations: | + | |
code/introduction.1295813987.txt.gz · Last modified: (external edit)
