Size tweening help please in GSAP (Flash) Posted October 13, 2010 I'm having problems getting a tween to work properly. You'll have to bear with my question, as I can't supply the full code to back it up: I have a series of small movie clips (as children) to a main movie clip. On mouseover of these child movie clips, I want the clip (which is a shape) to expand to double the size from its center point. however, when I use, scalex, scaley or setSize, or even width height, the clip expands but also moves in an x and y position. I can't seem to figure out how to stop this from happening, and to get the clip to expand from its top left x/y position. i've tried this: TweenMax.to(clip, 1.75, { width: 200, height: 200}); TweenMax.to(clip, 1.75, { setSize:{width: 200, height: 200}}); TweenMax.to(clip, 1.75, { scaleX:1.5, scaleY:1.5}); each one moves the object along its x and y as well as increasing its size.. Any ideas?
Size tweening help please
in GSAP (Flash)
Posted
I'm having problems getting a tween to work properly. You'll have to bear with my question, as I can't supply the full code to back it up:
I have a series of small movie clips (as children) to a main movie clip.
On mouseover of these child movie clips, I want the clip (which is a shape) to expand to double the size from its center point.
however, when I use, scalex, scaley or setSize, or even width height, the clip expands but also moves in an x and y position.
I can't seem to figure out how to stop this from happening, and to get the clip to expand from its top left x/y position.
i've tried this:
TweenMax.to(clip, 1.75, { width: 200, height: 200});
TweenMax.to(clip, 1.75, { setSize:{width: 200, height: 200}});
TweenMax.to(clip, 1.75, { scaleX:1.5, scaleY:1.5});
each one moves the object along its x and y as well as increasing its size..
Any ideas?