# Diagonal Movement With Tween

**URL:** <https://forum.kirupa.com/t/diagonal-movement-with-tween/235564>\
**Category:** flash\
**Created:** [August 12, 2007, 11:08pm UTC](https://forum.kirupa.com/t/diagonal-movement-with-tween/235564 "2007-08-12T23:08:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wes\_design](https://avatars.discourse-cdn.com/v4/letter/w/ad7895/32.png) [@wes\_design](https://forum.kirupa.com/u/wes_design)\
**Post date:** [August 12, 2007, 11:08pm UTC](https://forum.kirupa.com/t/diagonal-movement-with-tween/235564/1 "2007-08-12T23:08:07Z")

</div>

is it possible to do diagonal movement? with tweens?

```auto
function tweenforward(beginy, endy,endx,beginx) {
       if((endy>=900)&&(endx>=500)){
           //
           trace("oh my");
       }else{
           
           easeType = mx.transitions.easing.Strong.easeIn;
        var endy;
        var beginy;
        var endx;
        var beginx;
        var time = 1.05;
        var mc = slant2;
        //getURL("timetest.php","_blank");
      ballTween = new mx.transitions.Tween(mc, "_y", easeType, beginy, endy, time, true);
       ballTweeni = new mx.transitions.Tween(mc, "_x", easeType, beginx, endx, time, true);
     // _root.full.fadepls()
       }
};

```

this is my code but it doesn’t seem to work right, is it because the transitions don’t allow to work at the same time?  
is there way to make it more coherent?

I understand you can do it this way to

```auto

this._y-=33/speed;
this._x-=33/speed;

```

if anyone knows a thread that already solved this send me a link
