Jump to content


Adjusting Greensock Perspective For Metro UI Tile Menu

Recommended Posts

I am developing a Metro UI style tile menu.


How do I change Greensock's perspective, effectively flattening the camera zoom as you would in a 3D package?


Also, how would I give each movie clip it's own perspective instead of using the entire stage?


I have tried to illustrate what I mean in the screenshot.

import com.greensock.*;
import com.greensock.easing.*;

var myTimeline:TimelineLite = new TimelineLite();

myTimeline.insert(new TweenLite(mc, 1, {rotationY:90, delay:0}));
myTimeline.append(new TweenLite(mc, 1, {rotationY:0 , delay:0}));



Link to comment
Share on other sites

Thanks Carl, perspectiveProjection is just what I was looking for.

Link to comment
Share on other sites

Here's the code I used.

var pp1:PerspectiveProjection = new PerspectiveProjection();
pp1.fieldOfView = 20;// 1 to 179. Default 55
pp1.projectionCenter = new Point(mc1.x,mc1.y);
mc1.transform.perspectiveProjection = pp1;
  • Like 1
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.