Skip to content
theflashbum edited this page Sep 14, 2010 · 9 revisions

Flash Camo or F*Camo (for short) is a graphics framework that allows AS 3 applications to be easily skinned from pngs, jpgs, or gifs. The framework is broken down into 3 core areas: SpriteSheets, the CSS Parser, and a BoxModel. These systems can be used individually or combined to fit your needs. When used together they form a powerful set of tools to help skin and style any Flash application. With Camo’s modular approach, you can use as little or as much of the framework as you want. The entire framework is under 35k.

Flash Camo is open source (under the MIT License), is compatible with FlashPlayer 9/10, Flex 3, and AIR. It can be built with the open source Flex SKD compiler or used in Flash CS 3/4 as a swc.

Dependant Libraires

Flash Camo depends on the following libraries:

  • F*CSS – http://github.com/theflashbum/fcss
  • F*BoxModel – http://github.com/theflashbum/FBoxModel
  • F*SpriteSheet – http://github.com/theflashbum/FSpriteSheet

When you check out Flash Camo you can find swcs for these libs in the build/libs folder or you can manually download these projects and link them in your IDE. I advise you to use the swcs in the lib folder since they will always be the correct versions that work with the current code base.

Camo combines each of these libraries together into the CamoDisplay. This is the basic building block of the framework. Think of a CamoDisplay as a Sprite on steroids. It has full support for BoxModel properties (border, bg color/image, padding, and margin) plus support for CSS via built in F*CSS style behaviors. It is incredibly powerful and super light weight.

Here is a break down of each of the subsystems that make up the CamoDisplay:

Sprites and Sprite Sheets

  • SpriteSheets
  • Sheet
  • AbstractCamoBitmap
  • DecalConfig
  • Decal

Camo’s CSS Parser

  • Formatting CSS
  • Parsing CSS
  • Inheritance
  • Class and ID Selectors
  • Pseudo-Selectors

CamoDisplay