Fix Disappearing Fonts Caused by SWC’s

Have you ever had that feeling that something is very wrong in your project? Maybe that some paranormal force is working against you? Well, when embedded text starts disappearing after adding a SWC to a project, that's the feeling I used to get.
Problem:
Let me start by saying SWC's are great. I've been using them more [...]

Base64 Encoding BitmapData

Turn your BitmapData into a string and back! Great for storing images in XML, Databases, or transmitting them over a network. This post will cover Bitmap Encoding, PNG Encoding and JPG Encoding along with the pros and cons for each.

Bitmap Encoding - (link)
PLAIN TEXT
Actionscript:

// Encode

var encoded:String = BitmapEncoder.encodeBase64(bitmap.bitmapData);

   

// Decode

var bd:BitmapData = BitmapEncoder.decodeBase64(encoded);

Advantages:
Keep [...]

Adding Server Side Captcha to Flash Forms

Problem:
Flash forms are very vulnerable to attacks. Spiders may not be able to easily iterate through your Flash content but they can sure spam your form submission URL. How can you be sure your form was submitted through Flash?
Definition:
A CAPTCHA or Captcha is a type of challenge-response test used in computing [...]

Box2D Part 3: Anti-Gravity

Can you get the objects to float in space using your mouse? This is the conclusion to the three part series on using the Box2D Physics engine with ActionScript.
Box2D Anti-Gravity Example:

var flashvars = {}; var params = { bgcolor: "ffffff" }; swfobject.embedSWF("http://www.blackcj.com/blog/wp-content/swfs/Box2DQuickStart/Box2DQuickStart.swf", "Box2DQuickStart", "440", "340", "9.0.0", "flash/expressInstall.swf", flashvars, params);

Box2D Anti-Gravity Example

(click and hold the [...]