Topic: Centering slideshow with as3

Does anyone know how to center soundslide swf with as3?



Re: Centering slideshow with as3

Hi kisacrab.

You'll need to do that manually with ActionScript. If you loaded the clip in loader, you would move it via this code:

loader.x = 200;
loader.y = 200;

In the example code above, I'm assuming that you'd need to have the slide show at 200, 200 in order for it to be centered.  Those numbers will be different for your specific case.

You'll need to calculate the coordinates based on the width and height of your slide show, and the width and height of your Stage.