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
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 = 50i;
this[me]._y = 50j;
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 = 50i;
this[me]._y = 50j;
this[me].gotoAndStop(random(100)+1);
}
}
};