# Problems getting onLoad to work for MovieClips \[renamed\]

**URL:** https://forum.kirupa.com/t/problems-getting-onload-to-work-for-movieclips-renamed/54577
**Category:** flash
**Created:** [June 15, 2004, 9:14pm UTC](https://forum.kirupa.com/t/problems-getting-onload-to-work-for-movieclips-renamed/54577 "2004-06-15T21:14:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![iloveitaly](https://avatars.discourse-cdn.com/v4/letter/i/7ea924/32.png) [@iloveitaly](https://forum.kirupa.com/u/iloveitaly)
#### Post date: [June 15, 2004, 9:14pm UTC](https://forum.kirupa.com/t/problems-getting-onload-to-work-for-movieclips-renamed/54577/1 "2004-06-15T21:14:33Z")

</div>

I am trying to get a MC to respond to onLoad.  
Now i may not be a expert in AS but i’m not this stupid.  
I just put the code on the first frame on the timeline, theres only 1 frame so there is no need to stop() it. Heres the code:

```auto

_root.cloud.onLoad = function() {
trace("hi");
}

```

I’ve tried relative path and everything.  
Thw weird part is when i have tha code placed on the MC it works fine.  
The even weirder part of it is that if i just have onClipEvent(load){} placed on the MC the code on the timeline works fine. I have never had this problem before and am really stumped as to why it would do this.  
Is there some werid AS technicality?  
[.fla](http://ambwhitestudios.com/stumpted.fla)
