Using Flash 8;
Hello,
I am trying to _alpha tween-in, about 6 different MC’s on stage, however, only 2 of them are working correctly.
I use a “containerMC” to hold everything. For this, I create a blank MC, drop it on stage at the (0, 0) coordintates. Next, I create my objects, textfields, graphics, etc, inside this “contents” MC, using, “var but2:MovieClip = _root.contents.createEmptyMovieClip(“but2”,_root.contents.getNextHighestDepth());”.
However, when I try to have everything _alpha fade-in, only 2 of the objects are actually doing it correctly, the others, just show up on stage as if there was no tween assigned to them.
I’m not sure where I have gone wrong or what? I have attached the code below for my tweens.
Any help or ideas would be great!! thanks, Dave.
First, I used this, thinking it would “tween everything”, but it only tweened some things.
new Tween(this, “_alpha”, Strong.easeIn, 0, 100, 3, true);
tween_handler.onMotionFinished = function() {
trace(“onMotionFinished triggered”);
};
So, I tried each to tween each individual MC, and here, only the first two (of about 7) show up with the correct tween, the rest show up as if no tween.
new Tween(_root.contents.lineContainerMC, “_alpha”, Strong.easeIn, 0, 100, 3, true);
tween_handler.onMotionFinished = function() {
trace(“onMotionFinished triggered”);
};
new Tween(_root.contents.but1, “_alpha”, Strong.easeIn, 0, 100, 3, true);
tween_handler.onMotionFinished = function() {
trace(“onMotionFinished triggered”);
};
new Tween(_root.contents.but2, “_alpha”, Strong.easeIn, 0, 100, 3, true);
tween_handler.onMotionFinished = function() {
trace(“onMotionFinished triggered”);
};
new Tween(_root.contents.but3, “_alpha”, Strong.easeIn, 0, 100, 3, true);
tween_handler.onMotionFinished = function() {
trace(“onMotionFinished triggered”);
};
new Tween(_root.contents.but4, “_alpha”, Strong.easeIn, 0, 100, 3, true);
tween_handler.onMotionFinished = function() {
trace(“onMotionFinished triggered”);
};
Thanks for your help!!