diff --git a/api/index.php b/api/index.php
index 0e1abe9..929560f 100644
--- a/api/index.php
+++ b/api/index.php
@@ -53,7 +53,7 @@
stage.clear(); // stops all animations, removes all children and draws the background to stage.background
stage.setSize( width:Number, height:Number );
stage.save(); // opens a popup window allowing the user to save the current state of the Stage as a .png
-
+
Drawing Methods
Use the following methods to draw a non-persistent Shape on the Stage.
@@ -67,7 +67,50 @@
stage.drawCircle( {} );
stage.drawTri( {} );
stage.drawText( {} );
+
+
+ The Tween Method
+ The JS3 Tween method takes the following form :
+
+ target : JS3Object // any JS3Object
+ duration : Number // time in seconds
+ details : Object // an Object that describes the properties to tween and callbacks to execute.
+ // put together, the syntax for a tween is as follows:
+ stage.tween(target, duration, details);
+
+ The following properties can be tweened on any JS3Object.
+
+ x : Number // position on the x axis
+ y : Number // position on the y axis
+ alpha : Number // opacity / transparency of the object
+ scaleX : Number // horizontal scale
+ scaleY : Number // vertical scale
+ rotation : Number // rotation in degrees, negative values rotate counter-clockwise
+ // put together, a typical tween could look like the following:
+ stage.tween(target, duration, {x:100, y:100, alpha:.5, scaleX:3, scaleY:3, rotation:90} );
+ The following callbacks can also be executed whenever a tween begins or ends.
+
+ onStart : Function // called when the tween begins
+ onComplete : Function // called when the tween completes
+
+ You can also specify an amount of time to delay before starting the tween.
+
+ delay : Number // amount of time to delay the start of the tween in seconds
+
+ All together, a tween with multiple properties and callbacks could look like the following :
+
+ stage.tween(my-circle, 1, {x:100, alpha:.5, rotation:90, onStart:onStartFunc, onComplete:onCompleteFunc, delay:1});
+
+
+ Timed Animation Methods
+ Timed animations are controlled using the run & stop methods.
+ Both methods simply take the function to start and stop executing.
+
+ stage.run( function ) : void
+ stage.stop( function ) : void
+
+
Static Methods
JS3 also includes a couple convenient static methods to help with common tasks.
diff --git a/css/styles.css b/css/styles.css
index 1624a5b..35b1dee 100644
--- a/css/styles.css
+++ b/css/styles.css
@@ -9,6 +9,7 @@ p { padding-left:8px; }
.clearfix { clear:both; }
pre { padding:0; } pre code { background:white; }
+.next-page { text-align:center; }
#home-canvas{ margin-left:10px;}
#home-canvas-code{ width:300px; float:left;}
diff --git a/drawing/index.php b/drawing/index.php
index 9da6ae3..23bd179 100644
--- a/drawing/index.php
+++ b/drawing/index.php
@@ -4,12 +4,12 @@
@@ -158,9 +158,8 @@
arc.y2 = 0;
stage.addChild(arc);
-
-
-
Awesome, you're ready for the next section. Click here to learn about >Images & Text.
+
+
Awesome, you're ready for the next section. Click here to learn about >Images & Text.
diff --git a/getting-started/index.php b/getting-started/index.php
index 798921a..0996ca4 100644
--- a/getting-started/index.php
+++ b/getting-started/index.php
@@ -59,7 +59,7 @@
</body>
-
Awesome, you're ready for the next section. Click here to learn more about >drawing shapes.
+
Awesome, you're ready for the next section. Click here to learn more about >drawing shapes.
diff --git a/index.php b/index.php
index b6e61c4..beef27b 100644
--- a/index.php
+++ b/index.php
@@ -34,8 +34,10 @@
-
-
+
+
+
Learn how to easily add JS3 to your project. >Click here to get started.
+
diff --git a/local/footer.php b/local/footer.php
index 2695056..6a0ec61 100644
--- a/local/footer.php
+++ b/local/footer.php
@@ -5,7 +5,7 @@