# onLoad=function problems

**URL:** <https://forum.kirupa.com/t/onload-function-problems/99863>\
**Category:** Uncategorized\
**Created:** [January 23, 2004, 12:21am UTC](https://forum.kirupa.com/t/onload-function-problems/99863 "2004-01-23T00:21:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevouringOne](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@DevouringOne](https://forum.kirupa.com/u/DevouringOne)\
**Post date:** [January 23, 2004, 12:21am UTC](https://forum.kirupa.com/t/onload-function-problems/99863/1 "2004-01-23T00:21:19Z")

</div>

Several times I’ve attempted to set the onLoad of a movie clip without success. I’ve heard the problem is that (when I set the onload in the frame) the onLoad time has already happened. I also heard that somewhere there was a tutorial on this site but I never could find it. Anyway here is my current code and If someone could tell me what to do with it I’d be grateful.

[AS]  
dotOnLoad = function () {  
//onload stuff  
}  
dotOnFrame = function () {  
//onenterframe stuff  
}

f1.onLoad = dotOnLoad; // no ‘()’ for onloads I think  
f1.onEnterFrame = dotOnFrame;  
[/AS]

Hope you can help.
