heyhey
i’ve only just discovered that the preloader doesn’t work in firefox for a site i’m working on, yet it works perfectly in ie and the flash authoring environment.
on the first frame of the movie i just have the preloader. here’s the actionscript:
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
percent = (loaded / total) * 100;
this._xscale = percent;
_parent.loadtext.text = "LOADED " + parseInt(percent) + "%";
_parent.loadtext._x = this._x + this._width;
if (loaded == total) {
_parent.gotoAndPlay(2);
}
}
i’ve got nothing exported to the first frame in terms of linkage… the only thing i can think is that the ‘loadtext’ dynamic textfield has the characters ‘LOADED%’ plus numerals embedded into it, but i don’t see how this would cause a problem on firefox only.
just in case, here’s the actionscript for the first frame of the movie:
Stage.scaleMode = "noScale";
Stage.align = "TL";
sw = Stage.width;
tb._width = sw + 20;
tb._x = -10;
whiteleft._x = 0;
whiteright._x = sw;
reswarning._x = sw / 2;
this.onResize = function() {
repositionStuff();
};
Stage.addListener(this);
_global.repositionStuff = function() {
sw = Stage.width;
reswarning._x = sw / 2;
tb._width = sw + 20;
tb._x = -10;
whiteleft._x = 0;
whiteright._x = sw;
};
resy = System.capabilities.screenResolutionY;
if (_parent.resy < 640) {
resolutionwarning._visible = true;
} else {
resolutionwarning._visible = false;
};
any help would be greatly appreciated
p.s. i may not be able to reply to anything until tomorrow afternoon (gmt); due to moving house and having to get broadband reconnected, i have to travel 30 miles to use an internet connection and work at the same time