[Last Call] Learn how to a build a cloud-first strategyRegister Now


Strange Pixelation/Lines with BitmapData over Layers

Posted on 2008-11-20
Medium Priority
Last Modified: 2013-11-11
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 (www.peephill.com) 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?
Question by:JPardoe
LVL 34

Accepted Solution

Aneesh Chopra earned 1000 total points
ID: 23002933
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.

Author Comment

ID: 23003706
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!

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

826 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question