3 posts
  • Has been a member for 6-7 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

3058 posts
  • Community Superstar
  • Has been a member for 6-7 years
  • Won a Competition
  • Sold between 50 000 and 100 000 dollars
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
  • Exclusive Author
+1 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
  • Bought between 1 and 9 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 50 and 99 users
  • Sold between 100 000 and 250 000 dollars
  • United States
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....
1912 posts
  • Exclusive Author
  • Envato Staff
  • Support Staff
  • Sold between 10 000 and 50 000 dollars
  • Attended a Community Meetup
  • Canada
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
+3 more
TPN Staff 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
  • Bought between 50 and 99 items
  • Has been a member for 7-8 years
  • Sold between 1 and 100 dollars
  • 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 a member for 6-7 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 a member for 6-7 years
mindscream says

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

153 posts
  • Bought between 1 and 9 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 50 and 99 users
  • Sold between 100 000 and 250 000 dollars
  • United States
abenson says

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

by
by
by
by
by
by