PDA

View Full Version : Jpegs being cut off by one pixel on bottom and right


bakauata
08-10-2005, 02:39 PM
Hi, I'm having trouble handling Jpegs in Flash mx.
My problem is the Jpeg images are being cut off by one pixel on the bottom and on the right.

I've created a photo gallery which loads images listed in an .xml file. The file names are first stored in an array. The following script is then used to load the images: picture.loadMovie(image[p], 1);
"picture" is the instance name of an empty movie clip.

I've tried repositioning the "picture" movie clip, saving the jpegs in various ways, playing with the publish options, etc.
Jpegs are being saved from Photoshop 7 and look fine on any other viewer.

Has anyone come across this problem and know of a solution? I'd greatly appreciate any help. Thanks, Christian.

flashead
08-10-2005, 10:44 PM
This is a common problem/bug in Flash.

The solution is to set the registration point to the bottom right corner of your image. Or in your case set the _x and _y of your image to the -_width and -_height of itself.

bakauata
08-10-2005, 11:56 PM
Oh, thanx! That was quick! I'll have to see how I implement this since I also have a few lines of code which center the images on the screen. I didn't mention this because I had already discarded it as the cause of the problem.
Well thanx again. I'll post how it went.

bakauata
08-28-2005, 05:12 PM
Ummm, I'm not being able to solve this problem.
Changing the _x and _y values of my "picture" MC into which the images are being loaded has no effect. (I was using this method to center my images anyway).
I don't know how I can change the registration point of the image itself. The image is referenced from an array as shown above.

bakauata
09-16-2005, 08:01 PM
For those who stumble on to this thread and are having similar problems, do a search for "bitmap shift".