I am trying to get an image in Actionscript by using the Loader and URL. The image is coming fine and I am able to display it on screen after the event is completed. What I want to do is resize the image on screen. I am unable to do this. How do I proceed?
I tried setting loader.content.width which didn’t work. I tried setting loader.content.scaleX which also didn’t work. I am a novice at this, am I doing something wrong?
Loaderinherits fromDisplayObject, meaning you need to modifywidth,height, etc directly:You can modify any of the properties listed here directly via the instance of
Loader:Loader– Property Summary.