Animate CC How can i cache as bitmap movie clip?
I have a movie clip (enemy) inside the enemy i have 3 frames for iddle, attack and run.The enemies are inside Array.What is the better way to cache as bitmap the enemy and movie clips inside the enemy?
var greengoblinVelocity: int = 0;
var e: int;
for (e = numChildren - 1; e >= 0; e--)
{
var childdE: DisplayObject = getChildAt(e);
if (childdE.name.indexOf("enemy") > -1)
{
GreenGoblinArray.push(MovieClip(childdE));
MovieClip(childdE).hitPoints = 2;
MovieClip(childdE).currentX = 0;
MovieClip(childdE).startAttack = 0;
}
}
stage.addEventListener(Event.ENTER_FRAME, gameloop);
function gameloop(event: Event😞 void
{
for (var enl = 0; enl < GreenGoblinArray.length; enl++)
{
var enemy: Enemy = GreenGoblinArray[enl] as Enemy;
}
}
