# Onload not running!

**URL:** https://forum.kirupa.com/t/onload-not-running/101457
**Category:** Uncategorized
**Created:** [February 10, 2004, 2:49am UTC](https://forum.kirupa.com/t/onload-not-running/101457 "2004-02-10T02:49:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hga77](https://avatars.discourse-cdn.com/v4/letter/h/4bbf92/32.png) [@hga77](https://forum.kirupa.com/u/hga77)
#### Post date: [February 10, 2004, 2:49am UTC](https://forum.kirupa.com/t/onload-not-running/101457/1 "2004-02-10T02:49:07Z")

</div>

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
