Difference between revisions of "Actionscript"

From Wikicliki
Jump to: navigation, search
Line 1: Line 1:
== Basics Operators, Conditionals, Codehinting ==
+
== Basics ==
 
+
=== Operators ===
 
=== Conditionals ===
 
=== Conditionals ===
 
 
<pre>var message = "yellow";                        // the equal sign assigns values to variables
 
<pre>var message = "yellow";                        // the equal sign assigns values to variables
 
trace ("big " + message + " truck");            // prints "big yellow truck"
 
trace ("big " + message + " truck");            // prints "big yellow truck"
Line 11: Line 10:
 
trace (typeof a)
 
trace (typeof a)
 
}</pre>
 
}</pre>
 +
=== Reusable functions===
 +
 +
== Runtime Environment ==
 +
=== Detecting player/OS ===
 +
=== Setting movie dimensions ===
 +
 +
== Color ==
 +
=== Setting RGB ===
 +
=== Setting Transparency ===
 +
=== Transform and restore RGB ===
 +
=== Controlling RGB with sliders ===
 +
 +
== Drawing ==
  
 +
== Numbers ==
 +
=== Rounding Numbers ===
  
== Runtime Environment ==
+
== Text Field ==
=== Detecting player/OS and setting movie dimensions ===
+
 
 +
== Arrays ==
 +
Oh no.
 +
 
 +
== Strings ==
 +
 
 +
== Date/Time ==

Revision as of 09:56, 22 September 2008

Basics

Operators

Conditionals

var message = "yellow";                         // the equal sign assigns values to variables
trace ("big " + message + " truck");            // prints "big yellow truck"
if (message == "yellow") {                      // the double equal sign checks to see if variables are equal
trace ("yes, i did say big yellow truck.");     // prints "yes, i did say big yellow truck"
trace (typeof message);                         // prints "string"
var x = a;                                      // prints "number"
trace (typeof a)
}

Reusable functions

Runtime Environment

Detecting player/OS

Setting movie dimensions

Color

Setting RGB

Setting Transparency

Transform and restore RGB

Controlling RGB with sliders

Drawing

Numbers

Rounding Numbers

Text Field

Arrays

Oh no.

Strings

Date/Time