Strange Pixelation/Lines with BitmapData over Layers

Hi there,

I have a preloader that emits particles in a new flash game I'm working on. The particles are drawn circles then converted into bitmaps (for collision detection).

I have noticed that when I publish the preloader online ( the particles don't have transparency and they cause strange lines/jittery outlines on the layers beneath.

I have tested this in the flash itself ('test movie') and it seems to work fine.

I was wondering if there was a known bug that might be causing this?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh ChopraCommented:
Try this:

make sure that Bitmap graphic must be paced on complete pixel always,
in simple words, x,y value should not be in fraction and must be complete numbers.

do this exercise to the root level,
means if bitmap is in a movieClip and that movieClip inside another movieClip and this movieClip is placed on root,

then you need to make sure, that all of the following should have complete number for x,y properties..

bitmap graphic,
movieClip which contains bitmap graphic,
movieClip which contains the movieClp which has bitmap
movieClip placed on the root.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JPardoeAuthor Commented:
Wow! What a palava! Why do they allow you to do decimal x and y if it causes such problems?

After altering all of my code and pasting Math.round() around every single x and y variable, I fixed some of it but not all.

In the end I managed to fix it by specifying 'cache as bitmap' for some of the graphics used.

Many thanks for your suggestion. I would have lost hours, maybe days, trying to figure this one out!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.