Problems getting onLoad to work for MovieClips [renamed]

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:


_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

The file doesn’t work. Plus, the onLoad() handler is used for external variables.



var cloud = new LoadVars();
cloud.onLoad = function (success) {
//use the variables here...
}

ok, fixed the link.
I know the onLoad() handler is user for loading external data, but cant it also be user for handling events in a moveclip on a timeline also? If not whats the equivalent event handler?

only when used in MC classes
http://www.kirupa.com/developer/oop/AS1OOPClassesWithMCs7.htm

ahh, ok thanks for clearing that up!