トリミングにこのmethod使えそう

getColorBoundsRect () メソッド
public function getColorBoundsRect(mask:uint, color:uint, findColor:Boolean = true):Rectangle

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9

(findColor パラメータが true に設定されている場合) ビットマップイメージ内の指定された色のすべてのピクセルを完全に囲む矩形領域を判別します。または、(findColor パラメータが false に設定されている場合) 指定された色ではないすべてのピクセルを完全に囲む矩形領域を判別します。