Topic: How to center background image

I tried adding a background image to postcardviewer by placing an image on the fla file. the problem is that when I resize the window the background image stays in the same place and the images stay in the center. How can I make the background "follow" the images?

Re: How to center background image

You could either set the image's width and height to be equal to the stage width and height

bkgndImgYourName.width = stage.stageWidth;
bkgndImgYourName.height = stage.stageHeight;

Or you could set the gallery to wmode transparent and position the image in your HTML behind the gallery swf.

Mike Richards
SimpleViewer Support Team.

Re: How to center background image

thanks !