Hey everyone,
I’ve built a simple tween class animation which drops a card (on a slight angle which is randomized) onto the screen.
my code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var random_num:Number = Math.round(Math.random()*80) + (-40);
//trace(random_num);
var xScaleT:Tween = new Tween(badge_mc, “_x”, Strong.easeOut, 100, 150, .7, true);
var xScaleT:Tween = new Tween(badge_mc, “_y”, Strong.easeOut, 100, 60, .7, true);
var xScaleT:Tween = new Tween(badge_mc, “_height”, Strong.easeOut, 2000, 123, .7, true);
var xScaleT:Tween = new Tween(badge_mc, “_width”, Strong.easeOut, 2000, 133.6, .7, true);
var xScaleT:Tween = new Tween(badge_mc, “_rotation”, Strong.easeOut, 0, random_num, 1.2, true);
Right now one single card is animated in, then disappears and another animates in.
I wish to have each card remain on the screen. have one animate in and remain on screen, then another animate down on top of the first and remain, etc until I have perhaps 15 cards on screen at once.
I think the listener object is my route, but I don’t understand the syntax… I’ve tried a ton of different code attempts with no success.
you can see my source here: block_tweenClass_test.fla
any help would be greatly appreciated. Cheers.