gorilla2
12-14-2003, 11:37 PM
I have some code that loads images dynamically and I try to center the images horizontally on the stage. This works fine under windows/IE, but works only intermittently on Mac/IE. Do I need to do something different on Mac? Or could it be that the images are not fully loading on Mac? Here is the code:
_root.photo._x=0;
_root.photo._y=20;
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
// trace (this.photo._width / 2);
this.photo._x = ((Stage.width / 2) - (this.photo._width / 2));
G
_root.photo._x=0;
_root.photo._y=20;
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
// trace (this.photo._width / 2);
this.photo._x = ((Stage.width / 2) - (this.photo._width / 2));
G