loll Posted April 1, 2014 Share Posted April 1, 2014 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 More sharing options...
Carl Posted April 1, 2014 Share Posted April 1, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now