User:Tiberus:AS

From Wikibooks, open books for an open world
Jump to: navigation, search

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

Introduction[edit]

Tools[edit]

IDE[edit]

Flash MX[edit]

Flash 8[edit]

Flex 2[edit]

Compiler[edit]

MTASC[edit]

Actionscript 2 Compiler

Code must be formed as a class.

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

Haxe[edit]

Actionscript 2/3 and Javascript Compiler

SSWF[edit]

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

Tutorials[edit]

Hello World[edit]

Simple Actions[edit]

Language Reference[edit]

Actionscript 1[edit]

Used for Flash Player < 6

Actionscript 2[edit]

Used for Flash Player > 6 Flash 8

Actionscript 3[edit]

Used for Flash Player >= 9 Flex 2

Flash Lite[edit]

For Mobile Phones

Basic Syntax[edit]

// will cause one line of code to be ignored, working as a comment
/* */ Multiline comment

Variables[edit]

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[edit]

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.

Operators[edit]

Control Structures[edit]

Functions[edit]

Classes[edit]

Prototypes[edit]

Types[edit]

See Also[edit]

http://en.wikipedia.org/wiki/Actionscript http://en.wikibooks.org/wiki/Programming:JavaScript

Links[edit]