User:Tiberus:AS

This is a sandbox for me to refine Programming:Action_script changes before comitting them.

=Introduction=

MTASC
Actionscript 2 Compiler

Code must be formed as a class.

Class filename{ public statuc main{ _root.createTextField('monkey',_root.getNextHighestDepth); _root.monkey.text = ""; } }

Haxe
Actionscript 2/3 and Javascript Compiler

SSWF
http://sswf.sourceforge.net/index.html

=Tutorials=

Simple Actions
=Language Reference=

Actionscript 1
Used for Flash Player < 6

Actionscript 2
Used for Flash Player > 6 Flash 8

Actionscript 3
Used for Flash Player >= 9 Flex 2

Flash Lite
For Mobile Phones

Variables
Any word not enclosed by a quotes, appended by parenthesis, or preceded on the same line by a comment.

foo = "bar"; // This is a variable with the value "bar" bar = foo; // This is a variable that references the value from foo bar = foo + " bar " + foo; // This would have the value "bar bar bar"

Constants
A constant is defined by the _global prepention.

_global.sherif = "Rockin' the Cashbah";

The variable sherif will now be usable from any movieclip or frame that calls it using sherif. One only needs to instantiate the variable with _global for it to work.

Types
=See Also= http://en.wikipedia.org/wiki/Actionscript http://en.wikibooks.org/wiki/Programming:JavaScript

=Links=