I'm using ActionScript 3 and the UILoader component to show a .jpg image.
I would like a "covered background" result, like the css property :
background-size : cover;
I tested the parameter scaleContent (true or false):
uilBackground.scaleContent = true;
But the result is not a true "covered background".
I think to set the scaleContent false and made a ratio calcul to modify the size of the UILoader component.
Is it a good way ? Are there others solutions ?
Thanks. Julien