# Script Help Please

**URL:** https://forum.kirupa.com/t/script-help-please/189150
**Category:** flash
**Created:** [May 14, 2006, 11:07am UTC](https://forum.kirupa.com/t/script-help-please/189150 "2006-05-14T11:07:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![junkerjorg](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@junkerjorg](https://forum.kirupa.com/u/junkerjorg)
#### Post date: [May 14, 2006, 11:07am UTC](https://forum.kirupa.com/t/script-help-please/189150/1 "2006-05-14T11:07:33Z")

</div>

I am using this script to replay a function when a button is pressed

function replay() {  
delete this.onEnterFrame;  
row = -1;  
pixelSize = 1;  
this.onEnterFrame = fill;  
}

How would I go about changing that to operate as soon as the page loads instead of having to push the button…keeping in mind that onClipEvent (enterFrame) won’t work because it has to be assigned to a movie clip instance.
