i am trying to make a simple flash game.
And I've been searching about this problem but I can't found any questions/answers that helped me, so here it is:
I am trying to use addChild()
to generate the pokemon Movieclips
var comPkm:MovieClip = new bulbasaur;
comPkm.x = 620;
comPkm.y = 270;
comPkm.height = 80;
comPkm.width = 77;
addChild(comPkm);
comPkm.gotoAndPlay("idle");
the problem is: The "idle" stance for the pokemon does not play at all.
But, if I put the pokemon directly to the timeline it would work.
Any idea what's wrong and what's the solution? Thanks :)