i am using the loader component to display images from an xml file. The xml file passes in width and height of what the image should display as. When i run the swf file. It displays the image as the original size, which is larger than what i would like to see on the screen. Is there a prameter that i am missing that should be set. Here is the code for the loader that i am setting:
ActionScript Code:
var obj:Object = createClassObject(mx.controls.Loader,"obj"+Cnt,Cnt+100);
objHeight = chNode.attributes.Height;
obj.setSize(chNode.attributes.Width, objHeight);
trace("width of the image: " + obj.width);
trace("height of the image: " + obj.height);
obj._x = chNode.attributes.X;
var TopAdjust = new Number(chNode.attributes.Y) + topOffSet;
obj._y = TopAdjust;
obj.scaleContent = false;
obj.contentPath = chNode.firstChild.attributes.FileName;
when i do a trace after i setSize, it outputs the correct sizes that i would like. I am wondering there is an aspect ratio that i am missing or something along those lines..