# My 1am problem!

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