I am trying to make tile wallpaper in flex. I did stretch or normal use the backgroundSize as 100% and "auto". But i have no idea about how to create tile.
Can someone help me with source, instruction or the best would be a source code.
Regards
Zeeshan
Best Answer
Creating a tiled backgound in Flex 3 is not available through the use of of CSS styles or property styles.
However it is possible simply by assigning your component a custom programmatic skin, which handles the drawing of the tiled image through using the raw bitmap data.
Let me further illustrate my point with some code
That is your component with a programmatic border skin applied to it.
Now you just create that border skin by extending the RectangularBorder class. Such as:
The constructor creates the bitmap image for tiling.
Then the updateDisplayList method (called after initial creation and for subsequent resizes of the component) fills the entire component with the tiled background.
If you wish to adjust the offset positioning of the tiled image, you would do so in the updateDisplayList method