Well, yet again, I need help in Flash (big surprise). I'm making an RPG game and for the customization system, I figured it would be best to associate each choice with a variable then use that variable to define how the character looks in the next scene. As an example, I'll use hair color.
function hairFunction(newColor:String){ switch(newColor){ case "blue": haircolor = 1; case "red": haircolor = 2; } }
Scene 2, Frame 1: character.head.gotoAndStop(haircolor);
What you're doing here is basically storing the haircolor in the global variable - that's the same. However, with just one function managing the haircolors (function hairFunction) it's easier to view and modify. Also, the whole if functions at the aren't that nessecary, since you store the number of the frame in the global anyway - all you have to do is set the head / hair mc to the right frame!