3 posts
  • 8 Years of Membership
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
  • Affiliate Level 3
  • Author Level 6
  • Collector Level 2
  • Trendsetter
+8 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
  • 8 Years of Membership
  • Affiliate Level 3
  • Author Level 7
  • Collector Level 1
+7 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....
1914 posts
  • Weekly Top Seller
  • Envato Team
  • Canada
  • Exclusive Author
+9 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
  • 10 Years of Membership
  • Author Level 1
  • Collector Level 3
  • 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
  • 8 Years of Membership
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
  • 8 Years of Membership
mindscream
says

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

153 posts
  • 8 Years of Membership
  • Affiliate Level 3
  • Author Level 7
  • Collector Level 1
+7 more
abenson
says

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

by
by
by
by
by
by