Short Tag – Web Development Blog

Entries Tagged ‘action script3’

Using Tweener in Action Script 3 Flash CS4

First you download Tweener Class from here:
Than you unzip the archive and copy it to your project folder.
Than you import it in where you need to use it:
import caurina.transitions.Tweener;
And than you use it, example:
mc.alpha = 0;
Tweener.addTween(mc, {alpha:1, time:1});
First I set the alpha of ‘mc’ MovieClip to 0, than I added a tween, a tween that [...]

As3 Create Movie Clip by Coding

You want to create a movieclip with Action Script 3?
ShortTag shows you how:
var mc:MovieClip = new MovieClip();
mc.x = 100;
mc.y = 100;
mc.width = 500;
mc.height = 600;
MovieClip mc = new MovieClip(); // we create a MovieClip object
mc.x = 100; mc.y = 100; // we set the x and y coordinates
mc.width = 500; mc.height = 600; // we [...]