# Two Actionscript 2.0 Questions

**URL:** <https://forum.kirupa.com/t/two-actionscript-2-0-questions/256048>\
**Category:** flash\
**Created:** [March 29, 2008, 11:14pm UTC](https://forum.kirupa.com/t/two-actionscript-2-0-questions/256048 "2008-03-29T23:14:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Underground\_Ace](https://avatars.discourse-cdn.com/v4/letter/u/a698b9/32.png) [@Underground\_Ace](https://forum.kirupa.com/u/Underground_Ace)\
**Post date:** [March 29, 2008, 11:14pm UTC](https://forum.kirupa.com/t/two-actionscript-2-0-questions/256048/1 "2008-03-29T23:14:58Z")

</div>

I have two questions about Actionscript 2.0.

The first (and keep in mind I’ve never used timers before):  
How do I make a timer that will run in the background of my program (with the numbers not actually shown on the screen)? What I essentially want is:  
if(something happens){  
do this for x seconds;  
then do this;  
};

My second question:  
Is there an Actionscript code that will “capture” a movieclip’s CURRENT x and y co-ordinates?

What I’m using this for is:  
I’m making a game where you play a thief who’s hiding from cops (think Tom Clancy’s Splinter Cell) and when you step into a light, I want the cops to go to the x and y co-ordinates that you WERE AT when you hit the light graphic, and I want them to stay there for a few (3-ish) seconds, then go back to their normal rutines.

Thanks a million to anyone that can help me.
