# My 1am problem!

**URL:** <https://forum.kirupa.com/t/my-1am-problem/65007>\
**Category:** Uncategorized\
**Created:** [September 22, 2004, 6:19am UTC](https://forum.kirupa.com/t/my-1am-problem/65007 "2004-09-22T06:19:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luthan](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@luthan](https://forum.kirupa.com/u/luthan)\
**Post date:** [September 22, 2004, 6:19am UTC](https://forum.kirupa.com/t/my-1am-problem/65007/1 "2004-09-22T06:19:00Z")

</div>

here is the problem:  
i have a movieclip  
i want it to play 2 seconds after the swf loads  
anything i put in onclipevent(load) part executes right away (i am doing x easing)  
i tried to do setinterval but that somehow didnt work in the clip code  
so I tried to setinterval in the main timeline trying to somehow link the function to the movie clip but that doesnt work either

my question is how do i control a movieclip (not an external swf) from outside itself

here is a simple example of what im trying to do. this code resides in the main timeline

```auto

var speed = 10;
var endx = -30; 
titletext._x -= (endx + titletext._x)/speed;

```

if i put this code in the movieclip script it works fine

Please Help!!

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 22, 2004, 8:10am UTC](https://forum.kirupa.com/t/my-1am-problem/65007/2 "2004-09-22T08:10:30Z")

</div>

Probably u can use hitTest method to chech the status of a mc on the stage…  
check this

[http://www.kirupa.com/developer/actionscript/hittest.htm](http://www.kirupa.com/developer/actionscript/hittest.htm)

Otherwise use the timeline variable; but i don’t think that is possible in this case 'cause there is not physical timeline for the mc what u already have.
