resizing dynamic images to a fixed size
this is really basic, but searching the forum hasn't given me any answers...
I'm want to load jpg images in various sizes and set them to a fixed size, 250x100. I've tried using the loader component but there I didn't manage to resize at all so now I'm trying imageMovieClip.loadMovie("img.jpg"). As I've understood it resizing is done with _xscale and _yscale, and they work, but I need to know the original image size in order to find out the scaling in percentage, and I can't figure out how to retrieve them.
Tracing imageMovieClip._width gives insanely large values, not whats shown on the stage at all...
Please, this must be quite easy, or?
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|FlashMove Technical Updates||FlashMove||Suggestions, error reports, requests||3||02-15-2013 04:46 PM|
|Preload multiple Dynamic Images to cache in flash mx||purdywurdy||Flash MX 2004||2||01-26-2007 01:34 PM|
|script for slideshow... dynamic loading of images and URLs||oquindrg||General Flash||1||10-25-2006 02:00 PM|
|Dynamic Resizing Images||jpetrahn||Flash MX||6||02-18-2003 05:36 PM|
|Dynamic TextField Size & Parse Text||dv8||Web Platforms - PHP, JSP and .NET||5||06-13-2002 02:56 AM|