Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-18-2008, 12:20 PM   #1
OneninetyArtwork
Registered User
 
Join Date: May 2008
Posts: 45
Default Circular Mask Alignment Problems

I'm having problems with the alignment of masks on circular bitmap objects.

In my example I'm using scans of coins but no matter what I do the transparency is out of register with the image.

If I delete the background in Photoshop and export as a .png with transparency the image looks fine on the stage, but when I run the preview it looks as though the alpha mask has moved up and to the left.

Keep the coin on a neutral background and export as .gif with out transparency and create a mask manually in Flash exactly the same thing happens.

I've posted an example HERE. The coin in the left is correctly masked but as you can see it displays incorrectly. The coin on the right has had the mask moved until it looks right in the preview.

Anyone know why this is happening and if it's possible to fix without having to manually move the mask?
OneninetyArtwork is offline   Reply With Quote
Old 10-01-2008, 06:49 PM   #2
mambo4
Logan Bender
 
Join Date: Feb 2006
Posts: 47
Default Its a half-pixel issue

I could be wrong, but:

it's not the mask, it's the bitmap that's the problem
or rather how flash renders bitmaps, and where the bitmap is onstage:

make sure your X and Y position for the bitmap is on a 'hard' pixel, not a fractional pixel. for example X:125 , y:200 instead of X:125.4 , y:200.3

When flash finds bitmap data on a fraction of a pixel, it has to round off which real pixel to render the bitmap data to, causing a pixel shift between .fla and .swf
mambo4 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ButtonClass applied to movieclip button which has a mask rachy_needs_help ActionScript 2.0 0 03-19-2008 07:47 PM
problems with colorTransform and a mask nyghtrunner ActionScript 3.0 1 01-19-2008 03:51 AM
off-by-one error w/ mask size corn flex Flex 2, 3 & 4 1 12-04-2007 08:37 PM
Mask and LoadMovie problems.... patmand ActionScript 2.0 7 02-27-2005 05:15 AM
Depth problems with mask in embedded clip mcmcom ActionScript 1.0 (and below) 1 02-23-2005 07:37 AM


All times are GMT. The time now is 05:13 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.