# Help:Movement using AS

**URL:** <https://forum.kirupa.com/t/help-movement-using-as/78938>\
**Category:** flash\
**Created:** [February 9, 2005, 7:35am UTC](https://forum.kirupa.com/t/help-movement-using-as/78938 "2005-02-09T07:35:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi\_Vercotti](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Luigi\_Vercotti](https://forum.kirupa.com/u/Luigi_Vercotti)\
**Post date:** [February 9, 2005, 7:35am UTC](https://forum.kirupa.com/t/help-movement-using-as/78938/1 "2005-02-09T07:35:28Z")

</div>

I’ve got the script on movie clip called “boxFirst”

```auto

onClipEvent(enterFrame){
_x = random(100);
_y = random(100);
_alpha = random(96);
}

```

and it is working fine,

How do I put this script on main time line? 1st fram? so, that movieClip “boxFirst”  
does the same thing.  
:luigi:
