Strange Pixelation/Lines with BitmapData over Layers

Posted on 2008-11-20
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 ( 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

    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

    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!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    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 last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
    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.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now