I have designed a face model in flash so the user can place sunglasses on, the user can then undo this action and place another pair of sunglasses on.
The only problem is, when a pair of sunglasses are placed on, the user can still place other sunglasess on top of the current pair and they stack up, which looks bad.
Here is the scripting I have used, I have done the scripting for the undo button on a seperate layer to the rest of the actionscript. Basically I am using the coordinates to move the sunglasses back and from the face model and then to its previous postion.
How can I script this so the user can only place one pair of sunglasses on the model at a time?
I have attached a screenshot of the application so you can get a more clear idea.