# Is it possible to use such long parameters in tweening code?

**URL:** <https://forum.kirupa.com/t/is-it-possible-to-use-such-long-parameters-in-tweening-code/323821>\
**Category:** flash\
**Created:** [July 20, 2011, 7:00am UTC](https://forum.kirupa.com/t/is-it-possible-to-use-such-long-parameters-in-tweening-code/323821 "2011-07-20T07:00:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![learner\_7n](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Post date:** [July 20, 2011, 7:00am UTC](https://forum.kirupa.com/t/is-it-possible-to-use-such-long-parameters-in-tweening-code/323821/1 "2011-07-20T07:00:30Z")

</div>

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:

```auto
 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:

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