# Tween delay time problem!?

**URL:** <https://forum.kirupa.com/t/tween-delay-time-problem/328341>\
**Category:** flash\
**Created:** [May 9, 2012, 6:13pm UTC](https://forum.kirupa.com/t/tween-delay-time-problem/328341 "2012-05-09T18:13:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cagkan](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@cagkan](https://forum.kirupa.com/u/cagkan)\
**Post date:** [May 9, 2012, 6:13pm UTC](https://forum.kirupa.com/t/tween-delay-time-problem/328341/1 "2012-05-09T18:13:16Z")

</div>

Hello all. First this is the picture of my activity; and this the simple code for my tween;

var delayTime:Number=5;

```
	function calis(e:MouseEvent):void
	{			

```

var pres:Tween = new Tween(gidensepet, “x”, None.easeInOut, gidensepet.x, 957,delayTime, true);  
calistir.mouseEnabled=false;  
durdur.addEventListener(MouseEvent.CLICK, onClick);  
function onClick(e:MouseEvent){  
pres.stop();   
calistir.mouseEnabled=true;   
}

When I stopped my movieclip and restart again with the calistir button, the "delayTime restarts again from 5 seconds. How can I fix it just like that; when I clicked on “durdur” button and started again delayTime resume from the seconds which I arrived. For example when I clicked on “durdur” button after 4 seconds and then I clicked on “calistir” button, the delayTime should me 1 seconds.

Could you help me pls?:bored:
