This parts strictly optional, but it may make the game a bit more user-friendly. Were going to do something similar to the previous step, only this time were going to apply it to the actual costume pieces so that once theyve been made visible on the doll, the user can click on the pieces themselves instead of the menu options to hide them again.
on (release) {
this._visible=!this._visible;
}
Because this script points to the currently active clip using this instead of referencing an instance name, you can copy it and paste it without alteration for each individual costume part. You could also, if you'd like, copy it into an external file and reference it with an #include for each symbol.


