Hi,
I am using the following code to tween my PortFolio_mc but now I want to add some more parameters to make the content in the center of the page when resizing. How can I modify the code?
The following is the code I am using:
TweenMax.fromTo(PortFolio_mc, 5, {x:980, y:410, alpha:.5}, {x:100, y:410, alpha:1, delay:3, ease:Strong.easeOut});
The following are the detail parameters which I would like to use in WIDTH & HEIGHT of above code:
PortFolio_mc.x=stage.stageWidth/2-PortFolio_mc.width/2-180;
PortFolio_mc.y=stage.stageHeight/2-PortFolio_mc.height/2;
How can I? Please help.