Hi all,
I´m dealing with a weird issue here. I´m using the tween class a couple of times within a movieclip, using onRollOver. This is working fine as long as the first frame of that moveiclip on the timeline is at frame 1. When other frames or scenes are added before the frames of the movieclip it goes wrong.
What happens is it looks like the tween class is started multiple times at once: the motion is very shaky. When I place the movieclip on the very first frame, it looks smooth.
On the other hand, loading the swf doesn’t work when I set the first frame of the movieclip at frame 1. Here is my script.
Loading:
totaal = _root.getBytesLoaded();
laden = _root.getBytesTotal();
percentage_01 = ((totaal/laden)*100);
percentage_02 = Math.round(percentage_01);
circle.gotoAndStop(Math.round(percentage_01*2));
if (percentage_02 == 100) {
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}
Tween Class within the movieclip:
import mx.transitions.Tween;
import mx.transitions.easing.*;
globusFadeIn = function() {
var GlobusIn:Tween = new Tween(globusbox, "_alpha", Regular.easeOut, 0, 100, .3, true);
}
globusFadeOut = function() {
var GlobusOut:Tween = new Tween(globusbox, "_alpha", Regular.easeOut, 100, 0, .3, true);
}
Is it clear what I mean? I hope somebody can help me