Loading an image through XML, in a MC or loader component, with correct resizeing

Hi there im haveing a problem. I’m currently makeing a template in flash with dynamic textboxes and loader component. I get everything to work and all, except, the image goes over the border of the loader component, so it seems the:

my_ldr.scaleContent = true;

dosn’t work when useing an xml, but works when just picking the image up “direct”
I have tried this on an empty MC:

_root.S2.holder._xscale = 150;
_root.S2.holder._yscale = 150;

but then the image thats loaded will not keep its propotions.

Can anyone help?
Have anyone used the mx.controls.Loader with an XML before? (UIcomponent)