[Tweener] Applying filter after Tween results in movie shifting...
Mike Lohrman
mikelohrman at yahoo.com
Wed Jul 23 11:24:32 PDT 2008
Thanks Zeh, I think my problem has something to do with tweening a movie within a movie with the filter applied to the child. When I applied the filter to the container, it worked fine, and will work for what I need.
Whats the reasoning for not using height and using scale instead?
Thanks!
----- Original Message ----
From: Zeh Fernando <zeh at zehfernando.com>
To: tweener at lists.caurinauebi.com
Sent: Wednesday, July 23, 2008 12:59:53 PM
Subject: Re: [Tweener] Applying filter after Tween results in movie shifting...
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
_______________________________________________
Tweener mailing list
Tweener at lists.caurinauebi.com
http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080723/ecf45b04/attachment.htm>
More information about the Tweener
mailing list