Customizing Clothes and Hair color and such for games- need help!

HI thanks in advance for replying or even reading this- I’m making an rpg in flash, and so far I have two main elements left to complete- customizing appearance, and multiplayer. I already know that the multiplayer is going to be extremely hard, but customization is possible. Any tips or good links?

not just color customization- i have got problems with that too, anyway.

so far i have made buttons with different instance names like green, red, blue and black. when you click on one of them, this code takes place:

myColor = new Color(_root.player.character.head.hair)
_root.blue.onRelease = function(){
    myColor.setRGB(0x0000ff)
}
_root.red.onRelease = function(){
    myColor.setRGB(0xff0000)
}
_root.green.onRelease = function(){
    myColor.setRGB(0x00ff00)
}
_root.black.onRelease = function(){
    myColor.setRGB(0x000000)
}

unfortunately, if the guy with his hair are not in each frame after this, the code stops working.

plz help or reply!!!

ps- that code was taken almost directly from the flash help menu under complex interactivity