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 7 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....
1914 posts
  • Member of the Envato Team
  • Located in Canada
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 7 years
+8 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 7 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 :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by