User:Tiberus:AS

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

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

Introduction[edit | edit source]

Tools[edit | edit source]

IDE[edit | edit source]

Flash MX[edit | edit source]

Flash 8[edit | edit source]

Flex 2[edit | edit source]

Compiler[edit | edit source]

MTASC[edit | edit source]

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

Actionscript 2/3 and Javascript Compiler

SSWF[edit | edit source]

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

Tutorials[edit | edit source]

Hello World[edit | edit source]

Simple Actions[edit | edit source]

Language Reference[edit | edit source]

Actionscript 1[edit | edit source]

Used for Flash Player < 6

Actionscript 2[edit | edit source]

Used for Flash Player > 6 Flash 8

Actionscript 3[edit | edit source]

Used for Flash Player >= 9 Flex 2

Flash Lite[edit | edit source]

For Mobile Phones

Basic Syntax[edit | edit source]

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

Variables[edit | edit source]

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

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

Control Structures[edit | edit source]

Functions[edit | edit source]

Classes[edit | edit source]

Prototypes[edit | edit source]

Types[edit | edit source]

See Also[edit | edit source]

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

Links[edit | edit source]