[Tweener] Applying filter after Tween results in movie shifting...
Zeh Fernando
zeh at zehfernando.com
Wed Jul 23 10:59:53 PDT 2008
No clue, other than the fact that filters seem to behave differently
depending on the scale of the parent container. I've had a number of
problems like that in the past and my solution has been to have the
filter always applied, only changing its radius or alpha.
The other thing I'd advise you is to tween the scale of a movieclip, and
never the height (unless it's a class in which the "heigh" property has
some special function). But it's unrelated to the problem.
Zeh
Mike Lohrman wrote:
> I have a movie clip(movie2) within a movie clip(movie1). Originally I
> had a drop shadow filter on (movie2), and it worked fine. I later
> decided to tween (movie2) and after it was done tweening, add the drop
> shadow. It adds the shadow, but shifts (movie2) to the right 4px...Any
> idea why adding the filter changes the position? I'm not even sure this
> is a Tweener problem, but I know it works fine if I don't tween the
> movie first.
>
> var dropShadow:DropShadowFilter = new DropShadowFilter(3, 55, 0x000000,
> .5, 10, 10, 1, 1, false, false, false);
>
> Tweener.addTween(movie1.blah1.blah2, {height: 322, transition:
> "easeOutExpo", time: .25, delay: .4, onComplete: function()
> {movie1.movie2.filters = [dropShadow];}});
>
>
> Thanks for any help!
>
> Mike
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
More information about the Tweener
mailing list