views:

45

answers:

1

Hi

I am developing a website in flex. And in that, i am trying to set the background image of my application. like this: parentApplication.setStyle("backgroundImage", data.image_src);

From a different location.

My issue is that, the images that i have are small and hence they are being stretched when used as background images. I want to avoid that from happening. How can i do it?

Please help me with the issue.

Regards Zeeshan

+1  A: 

Set the backgroundSize property to "auto" or to a fixed size.

The default for the Application container is 100%. The default value for all other containers is auto, which maintains the original size of the image.

If you want to tile instead, look at this post.

Michael Brewer-Davis