I'm trying to get antialiasing on a MovieClip object after constructing it from a object and its mask, both MovieClips loaded from swf via SWFLite:
var icon:MovieClip = Assets.getBattleAbility(ability.id); //getting a base object
icon = squareToRound(icon); // applying a mask (new MovieClip-container created)
add(icon, treeAbX(ability.j), treeAbY(ability.i));
icon.cacheAsBitmap = true;
The object doesn't appear. When I added a click listener to a object with handler setting cacheAsBitmap to true, object began to vanish after I clicked on it.
What could be the problem here and how to fix it?