# Tweening start position problem

**URL:** <https://forum.kirupa.com/t/tweening-start-position-problem/251687>\
**Category:** flash\
**Created:** [February 11, 2008, 7:52pm UTC](https://forum.kirupa.com/t/tweening-start-position-problem/251687 "2008-02-11T19:52:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Plewsy](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@Plewsy](https://forum.kirupa.com/u/Plewsy)\
**Post date:** [February 11, 2008, 7:52pm UTC](https://forum.kirupa.com/t/tweening-start-position-problem/251687/1 "2008-02-11T19:52:03Z")

</div>

Hi There,

I have a problem whereby I am trying to Start a tween from set cordinates…

I have just read [http://www.kirupa.com/forum/showthread.php?t=272057&highlight=tweening](http://www.kirupa.com/forum/showthread.php?t=272057&highlight=tweening)

Which was helpful but did not sort out the problem,

I have a movieclip “pano\_mc” which moves around driven by mouse movements, there is a hotspot (hs1\_mc) nested within it (which moves with the Pano\_mc), I have an onPress Event on hs1\_mc which when pressed allows me to get the x and y of “pano\_mc” at the point of OnPress, I need somehow to use these x and y corodinates to define the start point of the tween, on Pano\_mc.

I can’t use “this” (as mentioned in the above link) as the event is on the hs1\_mc and if I just use “\_x” parameter in the tween, it starts from where the movie is originally and not from where it is when the onPress is actioned,where I get the cordinates at that point.

var hotSpotTweenX:Tween = new Tween(pano\_mc, **“\_x”** , mx.transitions.easing.Elastic.easeOut, 0, “400”, 3, true);

Is there a way of populating \*\*"\_x" \*\*with the var **newx** :Number = stagePosition.x; , which holds the exact cordinate of the pano\_mc at the time of Press…

Can anybody shed some light on this… Thanks in advance
