I have a character with different body parts: Hair, Head, Body, Arms, Legs. I animated the character with a walk animation and stand animation. I have given the character's hair an instance name of hair in each of these animations so I can access it through AS3. Let's say I have a different movieclip that is a static image of a different type of hair. I want to be able to change the character's hair to that hair using AS3.
instances: model = animation movieclip within holder movieclip. hair = children of model, but is animated
Classes: Anim = holder movieclip (for changing reference point and resizing) Hair2 I want to change hair to an instance of Hair2
anim.model.hair = new Hair2();
When I trace it it shows the object has been changed but it's not changed on display. I'm using AS3IsoLib so here's an example code:
var anim = new Anim();
var hair2 = new Hair2();
anim.model.hair = hair2;
sprites = [anim];
I tested scaling the hair and that works fine but not replacing the instance itself.
I was wondering how I can accomplish this. If you played some MMO games, the user has the option of modifying his or her body parts. An example will be Adventure Quest Worlds. That is the effect I want to accomplish.