Tween Problem?
I'm loading up images dynamically and trying to get them to tween, but it isn't working as expected (or the way it should)
Once Ive creted the empty movieclip, and load the movie it appears on stage. I have a set interval and then the tweens activate. The problem is only one of them activates (and its the last one). Id like an animation that would move the image off the stage in two directions at the same time (diagnal with a bit of rotation if possible).
Here is the code,
import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.filters.GlowFilter;
import flash.filters.DropShadowFilter;
import flash.filters.BlurFilter;
import flash.filters.BevelFilter
stop();
TopShelf_mc.swapDepths(100);
this.createEmptyMovieClip("mcHolder", 1);
var myLoader:MovieClipLoader = new MovieClipLoader();
mcHolder._xscale=85;
mcHolder._yscale=85;
mcHolder._rotation=3
mcHolder._x=15;
mcHolder._y=-13;
myLoader.loadClip("Pool.png", mcHolder);
mcHolder.forceSmoothing = true;
var timerone = setInterval(frameOne, 4000)
function frameOne()
{
var sideways:Tween = new Tween(mcHolder, "_x", Strong.easeIn, mcHolder._x, 312, 3, true);
var updown:Tween = new Tween(mcHolder, "_y", Strong.easeOut, mcHolder._y, 230, 3, true);
clearInterval(timerone);
}
Can a movieclip created like I have be tweened ke I want (or would I need to go into some code to do it)
