# \[FMX\]Arg! this.onLoad = function() need help please!

**URL:** <https://forum.kirupa.com/t/fmx-arg-this-onload-function-need-help-please/90273>\
**Category:** Uncategorized\
**Created:** [May 16, 2005, 3:41pm UTC](https://forum.kirupa.com/t/fmx-arg-this-onload-function-need-help-please/90273 "2005-05-16T15:41:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Foxtrot](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/foxtrot/32/1227_2.png) [@Foxtrot](https://forum.kirupa.com/u/Foxtrot)\
**Post date:** [May 16, 2005, 3:41pm UTC](https://forum.kirupa.com/t/fmx-arg-this-onload-function-need-help-please/90273/1 "2005-05-16T15:41:33Z")

</div>

Hello all - I bumped into a difference between **Mozilla** and **IE**. Does anyone know a workaround?? Thanx beforehand! 🙂  
I have a one frame fla. In te action script I have copied a function because I want it to work with an on press and with an frame onload.

This script works fine in **IE** but not in **Mozilla**. In **Mozilla** only the onpress part works. (check syntax give no errors)  
See what I am working on: the banner of the following page:  
[http://www.animatio.com/interactief.html](http://www.animatio.com/interactief.html)

the actionscript looks like this:

this.onMouseDown = function() {  
var depth = 0;  
for (var i = 0; i\<12; i++) {  
for (var j = 0; j\<8; j++) {  
var me = “n”+i+j;  
this.attachMovie(“node”, me, depth++);  
this[me].\_x = 50_i;  
this[me].\_y = 50_j;  
this[me].gotoAndStop(random(100)+1);  
}  
}  
};

[color=Red]**this.onLoad = function()**[/color] {  
var depth = 0;  
for (var i = 0; i\<12; i++) {  
for (var j = 0; j\<8; j++) {  
var me = “n”+i+j;  
this.attachMovie(“node”, me, depth++);  
this[me].\_x = 50_i;  
this[me].\_y = 50_j;  
this[me].gotoAndStop(random(100)+1);  
}  
}  
};
