3 posts
  • Has been part of the Envato Community for over 6 years
mindscream says

I am curious if there is an easy way to do this.

I have a movie clip(button) when I click this i want to to show or hide a defined movieclip like.

Click Hair button.. show hair movieclip click eyes button.. show eyes movieclip click nose1 button.. hide nose1 movielcip click nose2 button.. show nose2 movieclip

etc…etc..

This is ridiculously basic I’m sure I’ve posted this on some other forums with no reponse figured i might as well try here

using flash cs3

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

Of course there is a way… but is to long to write :D
A fast idea is… to put your elements in arrays… and when you select one of them… you must loop his array, hide the rest of the elements and show the selected one…

Or use a combination of events…
There are many ways

153 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
+5 more
abenson says

hair_mc._visible=false;
eyes_mc._visible=false;

hair_btn.onRelease=function(){
    hair_mc._visible=true;
}
eyes_btn.onRelease=function(){
    eyes_mc._visible=true;
}
// and so on....
1913 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+7 more
TPN Envato team says

Hey MindScream,

Welcome to FlashDen,

Email me any work you have done so far, I will incorporate the code in or I can do it from scratch. Either way, this project is free.

MSN : info@tpnwebdesign.com

166 posts
  • Has been part of the Envato Community for over 8 years
  • Has sold $1+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in United States
johnhoysa says

wow I am slow in my responses. It took me four minutes to write a reply like abenson sorta did. I think a turtle is moving faster then me today.

3 posts
  • Has been part of the Envato Community for over 6 years
mindscream says

hair_mc._visible=false;
eyes_mc._visible=false;

hair_btn.onRelease=function(){
    hair_mc._visible=true;
}
eyes_btn.onRelease=function(){
    eyes_mc._visible=true;
}
// and so on....

Thanks for all the quick replies very much appreciated=)

I’ve tried this however the target movieclip and button end up flashing constantly I’m guessing I’m doing something wrong?

3 posts
  • Has been part of the Envato Community for over 6 years
mindscream says

Fixed have it working now.. thanks all!=)

153 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
+5 more
abenson says

You’ll need a stop(); in that frame :)

by
by
by
by
by
by