Here is AS for horizontally centering the images in the XML/Slideshow tutorial on this site. If you’re like me and tried centering the mc, and all the other ideas in the threads on this forum but still had no luck… give this a shot because it worked for me.
All you need to know is the width of the stage, then divide it in half. Mine was 800, so I used “400” in equation to find the center.
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 5;
** picture._x = (-(picture._width)/2)+400;**
}
}
};
I love this site. Hopefully I’m finally giving back.
-beatbox
ps. i’m still trying to figure out how to pause the delay interval, then restart it once the image is fully loaded. I know I’m not alone, so if i figure it out I’ll post it.