Onload not running!

This should be easy to answer…

I have 2 swf’s:

Section.swf (to be loaded in main)
Main.swf

In section.swf, on the first frame I have this:

[AS]
onLoad = function(){
// start doing stuff
}[/AS]
When I run the section.swf on its own, the onload function works, and the “doing stuff” code runs. But when I load it into main, this onload (within the section.swf, above) does not run!

I desperately need to fix this. Any help please…thanks