Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
xero000

scaleX scaleY overlap issue

Recommended Posts

Hi,

 

I have several movie clips aligned side by side and upon rollover I want the scaleX and scaleY to increase slightly and on rollout decrease back to the default (1) value. That i have set up and working fine, my issue is the z index. This is causing the movie clips to expand but be overlapped by the adjacent movie clips. Is there an easy way to adjust the z depth on rollover as well to eliminate overlap?

 

thanks

Link to comment
Share on other sites

if you are using AS3, the addChild method makes it really easy to do. there is nothing in the tweening platform that does this that I'm aware of, its just ActionScript

 

in your button code right before you tween you can do something like

 

 

addChild(mc)

TweenLite.to(mc, 1, {scaleX:2, scaleY:2})

 

if you are using AS2 look into swapDepths()... which isn't nearly as practical.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×