Jump to content
Search Community

tweenProxy3D registration point

booglebop test
Moderator Tag

Recommended Posts

I have a lot of movieClips that are going to basically be doing the same animation with tweenProxy3D. My questions is, do I have to set up vectors for the registrations points of every single movieClip I want to tween? I would like to simply use initial registration point that I set when converting to a symbol. For my purposes, right now, all of the movieClips with have centered registration points. Would you give me some examples of how I can do this? Thanks in advance!

Link to comment
Share on other sites

I'm not sure I understand your question, but you can certainly use the same point in 3D space as a registration point for all your proxies. Like:

 

var mySprites:Array = [mySprite1, mySprite2, mySprite3];
var myRegistration:Vector3D = new Vector3D(100, 100, 100);
var myProxies:Array = [];
var curProxy:TweenProxy3D;
for (var i:int = 0; i     curProxy = TweenProxy3D.create(mySprites[i]);
   curProxy.registration = myRegistration;
   myProxies.push(curProxy);
}
TweenMax.allTo(myProxies, 2, {rotationY:45});

Link to comment
Share on other sites

Thanks for the reply. What I'm asking is: Do I have to use the "custom registration point" code whenever I want to use tweenProxy3D?

 

Can I just do this:

 

TweenLite.to(myMC, 1.75, {rotationY:360, ease:Elastic.easeOut});

 

instead of this:

 

var tp:TweenProxy3D = new TweenProxy3D(mc);
tp.registration = new Vector3D(189, 191, 0);
TweenLite.to(tp, 1.75, {rotationY:360, ease:Elastic.easeOut});

 

I've got a whole bunch of different MCs. Different sizes etc...but all of there registration points are already in there center. It just seems like it would be a lot of code to have to do "var tp:TweenProxy3D = new TweenProxy3D(mc); / tp.registration = new Vector3D(189, 191, 0);" for every MC. You'll have to forgive me, I have no experience with vectors. Hope that makes more sense. Thanks!

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...