9/13/2010 5:33:40 AM
Title:
JPG scaling/sizing in AS2
I have seen the simple method for loading and scaling images in AS3.
Is there a simple version for AS2 ?
I am loading my image like this:
this.createEmptyMovieClip("overlay",1,10,10,300,300);
overlay.loadMovie('http://www.mydomain.com/mypath/test.jpg');
but cannot then get things to be scalable/sizeable.
Any help very much appreciated.
Lee.
9/13/2010 7:40:11 AM
Use the Loader component in flash . Set its scale property to true. now the loaded image will be automatically scaled to match width and height of Loader component maintaining the aspect ration. loading image is simple just set the source.I think this is the most simplest way