PDA

View Full Version : Loader and ScrollPane issue


carriker
04-13-2006, 05:14 PM
Okay, I have 2 swfs we'll call the first one Thumbnails.swf. It loads a bunch of images, scales them down to a thumbnail size and places them all within a scroll pane. So when you run Thumbnails.swf all you see is a scroll pane filled with thumbnail images.

The second swf, we'll call it Main.swf, has a Loader component with it's content path set to "Thumbnails.swf" and the Loader is the same height and width of Thumbnails.swf. so "scaleContent" is not needed and set to false. When you run Main.swf you see the ScrollPane of thumbnails where the loader was placed. Everything works fine EXCEPT some of the thumnail images are distorted beyond recognition. It doesn't happen to all the images so I'm wondering if anyone knows of a known bug that might cause this, because it's not on all the images, just some.

Thanks in advance,

--carriker

carriker
04-13-2006, 05:22 PM
I should also note that some of the images are pretty large (in terms of dimensions) and they're being scaled down quite a lot. The largest images are the ones being distored in the Main.swf, but like I said, they look just fine when running the Thumbnails.swf

Or maybe it has something to do with the resolutions of the image? Any ideas?

carriker
04-14-2006, 03:09 PM
Well I solved it, kinda. I resampled all the images to 72ppi from 300 and the images came out fine.

Not sure if anyone else will ever run into this problem, but apparently if you have a high resolution image scaled down very small inside of a ScrollPane nested inside a Loader, you may have to resample the image for it to look right. If you're getting the image path dynamically you can probably write a php script to do the resampling automatically for you.

Anyway, I'm still not sure what the initial problem was, but should anyone else ever happen upon this problem now you know what to do.

--carriker