Jump to content
Search Community

Zoom and Pan

loll test
Moderator Tag

Recommended Posts

Hi,

 

Is it possible using greensock to zoom and pan the contents of a movieclip.

 

eg. all the children zoom. but the parent container never resizes. creating the effect of zoom and pan around the movieclip?

 

This would mean panning outside the area of the parent movieclip

Link to comment
Share on other sites

Is it possible using greensock to zoom and pan the contents of a movieclip.

 

 

Yes.

 

From what you describe I think you would just want to put all the children in their own container sort of like 

 

parent_mc.children_mc

 

You can put all your child elements inside children_mc. You would then scale children_mc like so

TweenMax.to(parent_mc.children_mc, 1, {scale:2})

If you need to somehow target each child individually you could dynamically create an Array of all the children like so: http://www.snorkl.tv/2011/09/actionscript-3-shuffle-array-and-loop-through-children/

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.
×
×
  • Create New...