Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to keep proportional an image 1

Status
Not open for further replies.

renartbrazil

Technical User
Dec 12, 2003
42
US
this is similar as my last post, which was answered. what if i have several images, different dimensions. how to create a smaller image (which i will be using in a gallery) to keep its dimensions or ratio? below is a way for images that are always the same size.

onClipEvent (data) {
this._width = 142;
this._height = 142;
}
 
this._xscale = 50;
this._yscale = 50;

Would reduce it by 50%... I imagine you can figure it out if you want it smaller than that! [bigcheeks]

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
that is great, exactly what i am looking , now have to wait all day til i get home !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top