zoltan
02-06-2006, 02:16 PM
Hi,
I have an MC on the stage, containing a 10pixel wide hairline. Whenever I try to expand it via a Tween, however, it instantly disappears. If I place another layer in the MC with some invisible content, it tweens just fine and the hairline expands just fine. But if its just the hairline stroke on its own, no good, another attempts to change the width cause it to disappear.
This is the actual code:
//import tween classes
import mx.transitions.Tween;
import mx.transitions.easing.*;
//
new Tween(horizline_mc, "_width", Strong.easeInOut, 10, 1000, 3, true);
//
I also tried an onClipEvent(enterFrame), with the same results. A hairline on its own couldnt be animated, but a hairline with other content (even if invisible) would vanish.
Help!:o
I have an MC on the stage, containing a 10pixel wide hairline. Whenever I try to expand it via a Tween, however, it instantly disappears. If I place another layer in the MC with some invisible content, it tweens just fine and the hairline expands just fine. But if its just the hairline stroke on its own, no good, another attempts to change the width cause it to disappear.
This is the actual code:
//import tween classes
import mx.transitions.Tween;
import mx.transitions.easing.*;
//
new Tween(horizline_mc, "_width", Strong.easeInOut, 10, 1000, 3, true);
//
I also tried an onClipEvent(enterFrame), with the same results. A hairline on its own couldnt be animated, but a hairline with other content (even if invisible) would vanish.
Help!:o