21Aug

Trails Animation

No comments

This code was submitted to me via email who requested some assistance to get this trailing animation to be bound by any newly created object. I edited the code slightly and added a Rect class to build my rectangle object (which could be replaced by an image if so desired). I added a timer to [...]

04Feb

[AS 3] Tween Transitions with fl.transitions Actionscript Package

No comments

I decided to play around with the methods of animation to create a simple animation. If you click anywhere inside the flash movie below, a new ball will generate in the center of the stage and then will tween to the mouse position on the onClick event handler. There are various easing types of animation, [...]

17Jan

[AS 3] Simple Motion Tween To A Point

No comments

I just wanted to make a dynamically drawn box be animated to the center of the stage. I figure I can use this as a building block animation for a future project.
First we will use the DrawRectangle class to construct our object.

package
{
import flash.display.Sprite;

public class DrawRectangle extends Sprite
{
private var xPos:Number;
private var yPos:Number;
private var rWidth:Number;
private var rHeight:Number;
private [...]

08Jan

[AS 3] Simple Tween Animation with Actionscript

No comments

Here is some code that will load an external image and then animate it across the Flash stage. There is an if conditional to check if it rolls off the stage and if it does then animation will play again at original starting point.

package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.display.Loader;
import flash.net.URLRequest;

public class SimpleTween extends Sprite
{
private var image:Loader = [...]