header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Lee
Points:0
Posts:0

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.



1
Brad
Points: 750
Posts:0
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


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+8 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions