PDA

View Full Version : How to avoid slight stretching of GIFs???


dougie
03-15-2002, 08:01 PM
Hi guys,

Quick question - I'm using attachMovie to load multiple "tiles" into a Flash movie. The tiles all appear on screen with no problems, but for some reason, Flash insists on resizing them (up or down depending on viewing quality) by one pixel - I've tried everything from specifying explicit widths to trying different tile sizes and Movie dimensions...but to no avail...it always scales the width by one pixel which offsets my tile arrangement leaving gaps - AARRGHH!

Has any else come across this phenomenon before? Is there a workaround? If I drag drop the MC onto flash (rather than call attachMovie from AS) the GIF is rendered perfectly pixel for pixel.

Any suggestions would be most appreciated!

Dougie.
PS - I do have a one pixel border around the tiles to avoid the "bleeding" of bitmaps...

pinkaboo
03-15-2002, 09:06 PM
[crosspost]

other thread (http://www.actionscripts.org/forums/showthread.php3?s=&threadid=10146)

dougie
03-20-2002, 08:05 PM
Well I cross-posted the question, so I may as well cross-post the solution for reference:

Just as an FYI - I fixed this problem.

Basically it was caused because the Image that was stored inside the MovieClip was centered around the origin - causing it to have negative X and Y coords - not sure why this would be an issue but when I move the image to 0,0 inside the MC it is no longer resized by Flash during movie play.

What a pain!

Dougie.

pinkaboo
03-24-2002, 08:57 PM
heh heh - thanks for that dougie - you are redeemed!

*grin*

K