PDA

View Full Version : How do I avoid Flash stretching bitmaps...


dougie
03-15-2002, 08:09 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...

Billy T
03-16-2002, 01:10 PM
are your bitmaps positioned on whole pixels numbers?

dougie
03-16-2002, 08:52 PM
Yes - the tile is positioned at exactly 10x, 10y...have you seen this effect before (or is it just me:( )

Billy T
03-16-2002, 11:09 PM
no i havent seen it before

sorry

dougie
03-20-2002, 08:02 PM
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.