Shop Forum More Submit  Join Login
This is probably past due for some, and I apologize ^^;

Several people have asked me about making a tutorial that changes the color of the dress up character with the push of a button. This tutorial will show you how to do that if you have a dress up already going but would like to add this feature.

This tutorial assumes you know how to create a dress up, and a little bit of actionscript too. It's very basic, it demonstrates how to add a button to a sample dressup. You can find the demo dressup here: [link]

For how to create a dressup, check out my basic dressup tutorial here: [link]

Hope this helps those who have been asking this for months.

This also required you to have Flash MX 2004.
Add a Comment:
 
:iconscarlightstar:
ScarLightStar Featured By Owner Jul 9, 2014  Hobbyist General Artist
How do you make flash games?
Reply
:icongaminggoru:
GamingGoru Featured By Owner Dec 29, 2013  Student Digital Artist
I can't wait to use this for my dress up game! Clap 
Reply
:iconskunkwaffle:
SkunkWaffle Featured By Owner Sep 19, 2013  Student Digital Artist
How do you add the colour wheel itself in to the game? 
Reply
:iconchaoticcinder:
ChaoticCinder Featured By Owner Mar 31, 2013  Hobbyist Digital Artist
I decided to make a simple dress up using this code and everytime what I work whit it I always get two errors. Can do you help me please? This is the code:

stop();
ColorChange.onRelease = function() {
if (_currentFrame < _totalframes)
nextFrame();
else
gotoAndStop(1);
}
Reply
:iconcianoir:
cianoir Featured By Owner Jul 7, 2013
I found your error, and I can help you!
Do this: Don't put "stop();" with "ColorChange.onRelease = function() {
if (_currentFrame < _totalframes)
nextFrame();
else
gotoAndStop(1);
}
" on the same action, to put "stop();" press f9, and to put "ColorChange.onRelease = function() {
if (_currentFrame < _totalframes)
nextFrame();
else
gotoAndStop(1);
}
" you can click the symbol with the right button on your mouse, and click in ACTION.
And Copy & paste the other code :3
Reply
:iconchaoticcinder:
ChaoticCinder Featured By Owner Jul 7, 2013  Hobbyist Digital Artist
Thank you!
Reply
:iconbubble-tea-chan:
Bubble-Tea-Chan Featured By Owner Oct 22, 2011  Student Artist
code?


can you paste it here because when i type it it gives me an error
Reply
:iconacidpaw:
AcidPaw Featured By Owner Oct 9, 2010
I tried it, and the button wont work :c

I don't know how to fix it either, I have tried in some hours now x3..
Reply
:iconpichu90:
pichu90 Featured By Owner Oct 9, 2010  Hobbyist General Artist
Are you getting an error message? Check that the names of the button and the code for the button handler are the same :)
Reply
:iconacidpaw:
AcidPaw Featured By Owner Oct 10, 2010
I made it work :B because Im clever xD..
Reply
:iconliright:
Liright Featured By Owner Aug 30, 2010
I got this to work the first time and when I tested my game again it had errors. D=

stop(); Statement must appear within on handler!
ColorChange.onRelease = function() { Statement must appear within on handler!

I have a newer version of Flash (CS4), but I'm using Actionscript 2.0, and it did work before.

All I did was add a couple more colours and two folders, but deleting them didn't change the error messages, and giving them OnEvents removed the errors but made the button useless.

Any ideas for what's wrong?

I like your tutorials, they're really easy to follow. Are you ever planning on making any others?
Reply
:iconpichu90:
pichu90 Featured By Owner Sep 1, 2010  Hobbyist General Artist
You might have the code on the buttons instead of the frame, in which case you may want to move it to the frame and see if that works ^^

As for tutorials I do plan on some, the tough part is figuring out the best way to explain it in an easy manner so fellow deviants can understand ^^
Reply
:iconathorment:
athorment Featured By Owner Jul 9, 2010  Hobbyist General Artist
Does it needs to leave spaces where the "else" part thing appears?
Oh and, can this be used to for example skip one frame and go to another scene?
Reply
:iconthilath:
Thilath Featured By Owner Apr 8, 2010  Student Digital Artist
oh wow, thank you SO much for this ^ u^

I'm going to use this in my next dressup :3
maybe you could do a tutorial for how to have multiple colour change buttons? o .o
Reply
:iconpichu90:
pichu90 Featured By Owner Apr 8, 2010  Hobbyist General Artist
Sure :)
Reply
:iconthilath:
Thilath Featured By Owner Apr 9, 2010  Student Digital Artist
oh awesome :D I can't wait!
I'd love to know how to change hair, eye and skin colour all independently :3
Reply
:icongarfield10125:
garfield10125 Featured By Owner Dec 3, 2009  Hobbyist Artisan Crafter
the button didn't work, but now the icing for my cookie changes colors on its own!!! i like it!!! the tutorial might not have worked out hoe i WANTED it to, but i like the way it is now better than what i wanted it to do. :3 thx!!!
Reply
:iconiceytheglaceon:
iceytheglaceon Featured By Owner Sep 23, 2009
can u make a how to on how to make a play button?
Reply
:iconminiatureowly:
MiniatureOwly Featured By Owner Aug 22, 2009
I did it right but when you press the button it goes through all the colors on one click! W
Reply
:iconshadow133:
Shadow133 Featured By Owner Jan 5, 2009
This was VERY helpful <3

Thank you!
Reply
:icondreams-child:
Dreams-Child Featured By Owner Jan 4, 2009  Hobbyist Digital Artist
Heh, I retried it. Because, well, I swear I'm stupid. So I retried it to make sure I didn't do a stupid mistake ( Which is so like me Dx )
But it doesn't work. It used to say 'Error' and give me an error, but this time it doesn't. The buttons just don't work.
And the little demo one you made that you put at the end of your flash doesn't work for me either. Which made me sad. So I ask you again for help, for like, the fifty-billionth time xD
Reply
:iconpichu90:
pichu90 Featured By Owner Jan 4, 2009  Hobbyist General Artist
Not sure why it doesn't work, do you have Flash MX?
Reply
:iconjapaloko8:
japaloko8 Featured By Owner Dec 17, 2008
it works!
Reply
:iconpichu90:
pichu90 Featured By Owner Dec 18, 2008  Hobbyist General Artist
Yay ^_^
Reply
:iconneikoish:
Neikoish Featured By Owner Nov 15, 2008
Oh gosh, this helped so much! I was extremely happy that I was able to get it to work - thanks for posting this, I'll be sure to credit your tutorial when I'm finished with the dollmaker!
Reply
:icondreams-child:
Dreams-Child Featured By Owner Nov 5, 2008  Hobbyist Digital Artist
I has an error with the ' Colorchange.onRelease = function(){ ' part D=
And I tried the stop actionscript in another layer and it didn't work. I am not having luck with this D=
Reply
:iconpichu90:
pichu90 Featured By Owner Nov 5, 2008  Hobbyist General Artist
Maybe a screenshot of your error?
Reply
:iconcrystalclair:
CrystalClair Featured By Owner Sep 27, 2008  Hobbyist Digital Artist
How do you make it so only one layer gets affected aka make multiple stuff change colors?
But thanks so much for doing this. I'll spread the word when I release my new Pokemon dressup game which may feature this if I master it.
Reply
:iconpichu90:
pichu90 Featured By Owner Sep 27, 2008  Hobbyist General Artist
Hmmm, for that first question I have to make tutorial and it's been a while since my last one so I can show you :)
Reply
:iconzarimox:
zarimox Featured By Owner Sep 23, 2008  Hobbyist General Artist
problem:

ColorChange.onRelease = function() {

Statement must appear within on handler
Reply
:iconpichu90:
pichu90 Featured By Owner Sep 23, 2008  Hobbyist General Artist
Make sure the actionscript appears on a separate layer and your Flash Player settings are 7.0 or higher.
Reply
:iconkathrynthehedgehog:
Kathrynthehedgehog Featured By Owner Jul 17, 2008
I need help again! :shrug:
Reply
:iconpichu90:
pichu90 Featured By Owner Jul 17, 2008  Hobbyist General Artist
Sure, what is the question?
Reply
:iconaznv:
AznV Featured By Owner Mar 2, 2008
Nicwe x] DO you know how to change the colour to the clothes ?
Reply
:iconpichu90:
pichu90 Featured By Owner Mar 2, 2008  Hobbyist General Artist
Yes, there's a tutorial in my gallery ;)
Reply
:iconaznv:
AznV Featured By Owner Mar 3, 2008
Sorry I can't find it :S
Reply
:iconjiiojioppo:
Jiiojioppo Featured By Owner Feb 10, 2008  Hobbyist Digital Artist
It's not working for me... Every time I preview my gane, the colors animate... can you mabye help me??
Reply
:iconpichu90:
pichu90 Featured By Owner Feb 10, 2008  Hobbyist General Artist
Try adding a new layer and put stop(); on the new layer, make sure it covers ALL frames.
Reply
:iconjiiojioppo:
Jiiojioppo Featured By Owner Feb 10, 2008  Hobbyist Digital Artist
I fixed it!! Thanks!!
Reply
:iconmouseychu:
Mouseychu Featured By Owner Feb 10, 2008
Ask me cause I did it!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reply
:iconmouseychu:
Mouseychu Featured By Owner Feb 10, 2008
I kinda lost you on step 2....Can you go a little more in-depth?
Reply
:iconpichu90:
pichu90 Featured By Owner Feb 10, 2008  Hobbyist General Artist
After you place your character in the dressup, add a frame. In the new frame just change the color of your character. Repeat by adding new frames and changing the colors until you have as many as you want.
Reply
:iconshilohinuyasha:
ShilohInuYasha Featured By Owner Jan 29, 2008
I've been getting some errors... It might be my fault (For being the impatient person I am XD) but I have been getting errors about the actionscript and stuff...
Reply
:iconpichu90:
pichu90 Featured By Owner Jan 29, 2008  Hobbyist General Artist
Any specific error in particular? :?
Reply
:iconshilohinuyasha:
ShilohInuYasha Featured By Owner Jan 30, 2008
Oh wait, I fixed the problem. X3 I put the actionscript on the button instead of the frame! How stupid of me! Hehehe... X3;;

Wel thank you for this lovely tutorial!! ^^ Now everytime I make a dress up that can change color, I will think of you. :3 (Of course, dress ups always remind me of you, my fave chu!)
Reply
:iconshilohinuyasha:
ShilohInuYasha Featured By Owner Jan 30, 2008
Oops. O.o I meant I put the script on the button instead of the layer! X3;;;
Reply
:iconshilohinuyasha:
ShilohInuYasha Featured By Owner Jan 29, 2008
Uhm. I'lll let you know next time I try. X3 It gave me 6, then I did something from one of the comments earlier, then it only had 2. So im'a see if I can fix it next time I try.
Reply
:iconluna-minura:
Luna-Minura Featured By Owner Jan 25, 2008  Student Filmographer
ZOMG! NEVER MIND! I GOT TROUG IT! I DID IT! I'M A HAPPY MUFFIN NOW!!!!!!

Thanks you thank you thank ypou for the awesomme Tutorial! :hug:
Reply
:iconluna-minura:
Luna-Minura Featured By Owner Jan 25, 2008  Student Filmographer
could you paste the color changin action script? please '^^
Reply
:iconpichupet101:
pichupet101 Featured By Owner Jan 18, 2008
The code doesn't work for me. D: It always says there's something wrong. The problem's always
Statement must appear within on handler

What does that mean luls?
Reply
Add a Comment:
 
×




Details

Submitted on
October 23, 2007
Image Size
142 KB
Resolution
800×500
Link
Thumb

Stats

Views
15,057
Favourites
205 (who?)
Comments
95
Downloads
312
×