# Making scripts shorter

**URL:** <https://forum.kirupa.com/t/making-scripts-shorter/280244>\
**Category:** flash\
**Created:** [January 24, 2009, 9:35pm UTC](https://forum.kirupa.com/t/making-scripts-shorter/280244 "2009-01-24T21:35:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![soundmatic](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@soundmatic](https://forum.kirupa.com/u/soundmatic)\
**Post date:** [January 24, 2009, 9:35pm UTC](https://forum.kirupa.com/t/making-scripts-shorter/280244/1 "2009-01-24T21:35:12Z")

</div>

I am using a tweener class in AS3 and looking for a way to shorten this script , any suggestions?

p1.\_x = 600  
p1.\_y = 550  
p2.\_x = 600  
p2.\_y = 550  
p3.\_x = 600  
p3.\_y = 550  
p4.\_x = 600  
p4.\_y = 550  
p5.\_x = 600  
p5.\_y = 550  
p6.\_x = 600  
p6.\_y = 550  
p7.\_x = 600  
p7.\_y = 550  
p8.\_x = 600  
p8.\_y = 550  
p9.\_x = 600  
p9.\_y = 550  
p10.\_x = 600  
p10.\_y = 550  
p11.\_x = 600  
p11.\_y = 550  
p12.\_x = 600  
p12.\_y = 550

```
Tweener.addTween(p1, {_x:259, _y:130, delay:2, time:3, transition:"easeoutexpo"});
Tweener.addTween(p2, {_x:359, _y:130, delay:2, time:3, transition:"easeoutexpo"});
Tweener.addTween(p3, {_x:459, _y:130, delay:2, time:3, transition:"easeoutexpo"});
Tweener.addTween(p4, {_x:559, _y:130, delay:2, time:3, transition:"easeoutexpo"});
Tweener.addTween(p5, {_x:659, _y:130, delay:2, time:3, transition:"easeoutexpo"});
Tweener.addTween(p6, {_x:759, _y:130, delay:2, time:3, transition:"easeoutexpo"});
Tweener.addTween(p7, {_x:859, _y:130, delay:2, time:3, transition:"easeoutexpo"});
Tweener.addTween(p8, {_x:959, _y:130, delay:2, time:3, transition:"easeoutexpo"});
Tweener.addTween(p9, {_x:259, _y:200, delay:2, time:3, transition:"easeoutexpo"});
Tweener.addTween(p10, {_x:359, _y:200, delay:2, time:3,transition:"easeoutexpo"});
Tweener.addTween(p11, {_x:459, _y:200, delay:2, time:3,transition:"easeoutexpo"});
Tweener.addTween(p12, {_x:559, _y:200, delay:2, time:3,transition:"easeoutexpo"});
```
