Computer Studies‎ > ‎ActionScript‎ > ‎Snippets‎ > ‎

Hello World


Optionally, the first two lines can be combined as follows:


Note:

To declare and create an object you use the following syntax:

var objectName:ObjectType = new ObjectType;

..then to add the object to the stage you use the following syntax:

addChild(objectName);
Comments