Get $500+ of the best After Effects files, video templates and music for only $20!
October Facebook Fan Bonus Now Available!

October Facebook Fan Bonus Now Available!

Fans of the Activetuts+ Facebook page can now access a new bonus tutorial – in this month’s Facebook Fan Bonus, you’ll learn how to remove the background color from a sprite sheet using AS3, and blit the result to a bitmap canvas.

Final Result Preview

Here’s a look at the kind of effect you’ll be working towards in this tutorial:

Blitting in Flash: removing background

Download This Fan Bonus Now!

All you have to do is Like us…


Not On Facebook?

Don’t worry, the tutorial will be posted on Activetuts+ in a month’s time!

Add Comment

Discussion 4 Comments

  1. hayesmaker says:

    1) Open in Photoshop or Gimp Shop
    2) Click Magic Wand tool
    3) Click the background area
    4) Hit delete
    5) done.

  2. Well, that is one way. However, some artists like to keep the background color to make spiriting easier. Also, this method saves you from having to manually edit the image each time the artist updates it. I don’t have data on this but I believe having the Alpha channel in an image puts more pressure on the processor.

  3. PIRATRIK says:

    Is this method good, performance wise?

    I think @hayesmaker example sounds better

    • Hey PIRATRIK,

      I believe this is better performance wise, yes. The reason it might seem easier to just remove any colour using PhotoShop or Gimp is because you don’t see what Flash does behind the scenes. I think Flash does a lot behind the scenes when there is transparency on the image. All we are doing is a simple for loop :)

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.