Hi, i´m buiding my personal website, and I´m using some actionscript to organize thisngs on stage depending on browser size, everything works well on IE, but on Firefox, eveything in wrong, please can someone look at my code and try to explain me what is the problem.
function makeBoton(tmp_mc, ancho, largo, p, col, label) {
var tm_mc = tmp_mc.attachMovie("randomTypo", "tempo"+p, p+1000);
tm_mc.label_txt.text = label;
tm_mc.label_txt.autoSize = true;
return tm_mc;
}
var i, buttons = [mc1, mc2, mc3, mc4];
for (i=0; i<buttons.length; i++) {
buttons*.onMouseUp = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
for (i=0; i<buttons.length; i++) {
buttons*.gotoAndStop(buttons* == this ? "inactive" : "active");
}
}
};
}
function init() {
Stage.scaleMode = "noScale";
Stage.align = "LT";
liste = new Object();
liste.onResize = size;
Stage.addListener(liste);
clips = [];
basex = 0;
menu_mc = createEmptyMovieClip("menu", 1);
_global.label_array = ["ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX"];
for (var i = 0; i<label_array.length; i++) {
var clip = makeBoton(menu_mc, 70, 15, i, "0xCC0000", label_array*);
clip.setText(this, label_array*, "-", 1, 5, 10, 15);
clip.onRollOver = rollOverLink3;
clip.onRollOut = rollOutLink3;
clip.onRelease = pressLink;
clip._x = basex;
clips.push(clip);
basex += clip._width;
}
size();
}
function size() {
basex = 0;
tamanio = Stage.width/label_array.length;
for (var i = 0; i<clips.length; i++) {
clips*._x = basex;
basex += tamanio+2;
clips*._width = tamanio;
}
//me an holder are mc´s on stage
me._x = 5;
me._y = Stage.height-50;
loadMovie("words.swf", me);
holder._x = 0;
holder._y = Stage.height/2-350;
holder.swapDepths(menu);
}
init();
thsnks in advance