# Mc.onLoad = function

**URL:** https://forum.kirupa.com/t/mc-onload-function/84303
**Category:** Uncategorized
**Created:** [March 26, 2005, 3:58am UTC](https://forum.kirupa.com/t/mc-onload-function/84303 "2005-03-26T03:58:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sirisian](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@Sirisian](https://forum.kirupa.com/u/Sirisian)
#### Post date: [March 26, 2005, 3:58am UTC](https://forum.kirupa.com/t/mc-onload-function/84303/1 "2005-03-26T03:58:51Z")

</div>

look at this code, what’s wrong?  
\_parent.unit[‘bullet’+openbullet].onLoad = bulletload;  
function bulletload() {  
this.range = 5;  
trace(“LOAD”);  
}

my mc.enterfame works but this doesn’t. I think it’s because it’s on load and for this to be implemented it has to be called after load so how do i use it? I tried to call it on the original but it didn’t work.
