Shop Mobile More Submit  Join Login
×




Details

Submitted on
May 29, 2007
Image Size
212 KB
Resolution
800×600
Link
Thumb
Embed

Stats

Views
39,089 (3 today)
Favourites
683 (who?)
Comments
230
Downloads
762
×
----------------- EDIT -----------------

Thanks for all the fav's and comments, they make me really happy :D

But I'm sorry to say that I will not be replying to comments about the ActionScript any more, I just don't have the time...

If you have any questions, I suggest searching the internet. There are lot's of good forums out there :)

----------------- EDIT -----------------

When I made a dress-up game I wanted some specific things, like clothes that could change color and clothing that snapped in the right place. So I looked for a tutorial. I looked all over the Internet but I couldn't fined one. So I decided to just fight whit actionscript head on. After a lot of blood sweat and tears (mostly from me and not from actionscript :() I finished my dress-up game and was very happy.

When some people asked me how I had made this I decided to write a tutorial (just because I am just THAT kind of a nice person and not at all because I could use it to score points at my school) It took me a really long time to finish this tutorial but it's finally done!

This is the first time I've made an tutorial or even tried to explain actionscript and I 'm not an actionscript expert, so if my explanations are unclear or wrong please tell me, so I can improve them. Also English is not my first language so please tell me if I made spelling mistakes so I can change that.

I've used Flash MX 2004, in case you were wondering.

Pleas tell me what you think of this tutorial and if it was of any use. And if you make a dress up game please send me the link :).

--- Edit ---

Here is the code I used, so you can copy and paste it :)

stop();
this.onPress = function() {
startDrag(this);
};
this.onRelease = function() {
stopDrag();
if (_root.eyes, hitTest(_root.Pop)) {
setProperty(this, _x, 445.8);
setProperty(this, _y, 203.7);
} else {
setProperty(this, _x, 543.2);
setProperty(this, _y, 127.9);
}
};

and for the buttons:

on (press) {
_root.skate_pants.gotoAndStop(3);
_root.baggy_pants.gotoAndStop(2);
_root.skirt.gotoAndStop(1);
_root.punk_pants.gotoAndStop(6);
_root.short_pants.gotoAndStop(7);
}
Add a Comment:
 
:iconhatersgonnahate9123:
hatersgonnahate9123 Featured By Owner May 11, 2013  Student Artist
~tdprincess 6 days ago You are now cursed. You must send this on or you will be killed. Tonight at 12:00am, by Bloody Mary. This is no joke. So don't think you can quickly get out of it and delete it now because Bloody Mary will come to you if you do not send this on. She will slit your throat and your wrists and pull your eyeballs out with a fork. And then hang your dead corpse in your bedroom cupboard or put you under your bed. What's your parents going to do when they find you dead? Won't be funny then, will it? Don't think this is a fake and it's all put on to scare you because your wrong, so very wrong. Want to hear of some of the sad, sad people who lost their lives or have been seriously hurt by this email?

CASE ONE -
Annalise [Surname Removed] :She got this email. Rubbish she thought. She deleted it. And now, Annalise dead.

CASE TWO -
Louise [Surname Removed]: She sent this to only 4 people and when she woke up in the morning her wrists had deep lacerations on each. Luckily there was no pain felt, though she is scarred for life.

CASE THREE -
Thomas [Surname Removed]: He sent this to 5 people. Big mistake. The night Thomas was lying in his bed watching T.V. The clock shows '12:01am'. The T.V misteriously flickered off and Thomas's bedroom lamp flashed on and off several times. It went pitch black, Thomas looked to the left of him and there she was, Bloody Mary standing in white rags. Blood everywhere with a knife in her hand then disappeared. The biggest fright of Thomas's life.

Warning... NEVER look in a mirror and repeat -'Bloody Mary.Bloody Mary.' Bloody Mary... I KILLED YOUR SON' Is it the end for you tonight! YOU ARE NOW CURSED

We strongly advise you to send this email on. It is seriously NO JOKE. We don't want to see another life wasted. ITS YOUR CHOICE... WANNA DIE TONIGHT? If you send this email to...

NO PEOPLE - You're going to die.

1-5 PEOPLE - You're going to either get hurt or get the biggest fright of your life.

5-15 PEOPLE - You will bring your family bad luck and someone close to you will die.

15 -25 OR MORE PEOPLE - You are safe from Bloody Mary
Reply
:iconmareteyaokami64:
Mareteyaokami64 Featured By Owner Nov 10, 2013  Hobbyist General Artist
quit spammers
Reply
:iconalltogethernow28:
alltogethernow28 Featured By Owner May 22, 2014  Hobbyist General Artist
Yup, lol, it would be a lot more convincing with proper grammar. "Your?" Really? Even spammers can do better than that.
Reply
:iconnightpawofdarkness:
NightpawOFDarkness Featured By Owner Apr 1, 2013  Hobbyist Digital Artist
:o :o :o :o Thank you soooo much! You helped me alot! All i needed was just a few lines of codes, and i spent hours trying to find out how to make a dress up with buttons.
Reply
:iconlumaga:
Lumaga Featured By Owner Mar 22, 2013  Hobbyist Digital Artist
Nice tutorial, I learned a few very useful things from it, thank you very much!
Reply
:iconshittystainshit:
shittystainshit Featured By Owner Jan 21, 2013
ty so much 6 this tutortila and i would like 3 assy thank u for credit to u frerss dress gameup thaank
Reply
:iconrebehm:
Rebehm Featured By Owner Dec 9, 2012  Hobbyist General Artist
I just want to tell you that your generous gift is still helping people get started with Actionscript. :) Thank you very much for making this tutorial. :)
Reply
:icondonndo:
donndo Featured By Owner Aug 31, 2012
plz man would you help me out, I'm Aweful In creating flash games with macromedia flash 4
Reply
:iconthat-s-just-how-i-am:
I'm have major issues with the color change buttons.
I've tried 3 different button codes:

on (release) {
_root.hair.gotoAndStop(FRAME#HERE);
}

gotoAndStop()

and the one in this Tut.
I'm using Adobe Flash CS5.5 AS2, if that helps.
It's a white shirt and then a red shirt on the next keyframe.
The 2 shirts are both instance-named "dress" and the button is "red_dress_button"
Please help!
Reply
:iconjiejen237:
jiejen237 Featured By Owner Feb 9, 2012
Thank you for making this easy to understand tutorial!
Reply
:iconvitaminxcomplex:
VitaminxComplex Featured By Owner Dec 5, 2011  Student Digital Artist
is this for actionscript 2 or 3?
Reply
:iconrkazumi:
RKazumi Featured By Owner Jun 16, 2011  Student Digital Artist
i have a question:
i know its possible, ive just got no idea how to do it:
how would you incorporate an if/else statement with what ive dubbed as the visibility statement (seen below)?
on (release) {
_root.instance_name_here._visible = true;
_root.instance_name_here._visible = false;
}

what im aiming for:
i want the game to know that when a certain eyestyle is selected, it only shifts through options of eyecolor for that eyestyle (all the eyestyles have the same applicable eyecolors, ive just made fitted versions of the pupil for each eyestyle). i guess this is a simplified version of the code im looking for:

if eyestyle 3 is selected, then only these pupils will be visible when the proper button is clicked:
eyestyle 3-1,
eyestyle 3-2,
eyestyle 3-3,
eyestyle 3-4,
eyestyle 3-5,
eyestyle 3-6.
else, they will be invisible.

can ya help me out with this? because i dont know how to make it interchangable for each eyestyle.....
Reply
:iconorange-mushroom:
orange-mushroom Featured By Owner May 28, 2011
ugh finally

every person i asked about how they made the clothes change color didn't answer me

like it's some top secret stuff that only chosen ones deserve to know =(
Reply
:iconqtpie4753:
QTpie4753 Featured By Owner Jan 18, 2011
if i click the right button, i don't see any 'convert to symbol' thingy... what do i do now??
i like ur tutorial!!!:boogie:
Reply
:icondrago248:
drago248 Featured By Owner Dec 17, 2010
how do u turn on macromedia flash player to make somethin like this?
Reply
:iconblack-bladen:
BlAcK-BlADEn Featured By Owner Dec 14, 2010  Student Filmographer
This is exactly the sort of resource I was looking for ^^

Thank you so much for making!!
Reply
:iconatrixy:
Atrixy Featured By Owner Nov 9, 2010  Hobbyist Digital Artist
I have a problem with the colours. The frames with different colours are inside the symbol of the pants or in the scene? Sorry, I'm new with action script ... ^^U
Reply
:iconatrixy:
Atrixy Featured By Owner Nov 6, 2010  Hobbyist Digital Artist
thanks!! I was looking a tutorial of auto-positioning for all the Internet and I didn't founded one!
Reply
:iconxisney:
xisney Featured By Owner Oct 19, 2010
Thanks so much! <3
Reply
:iconxxcookies898xx:
xXcookies898Xx Featured By Owner Sep 10, 2010  Hobbyist Traditional Artist
im still terrible at making a flash game D: i just cant do it i get frustrated >.<
Reply
:iconmeilady:
meilady Featured By Owner Aug 23, 2010
True, about the keeping at it. Dress-ups and flash in general, are pretty fun to mess around with ^^
Thanks for the intro to the whole positioning/snap-to thing; it's actually still a little confusing, but I haven't really tried it out. Hopefully, I'll figure it out though :D
Reply
:iconiresistableashgirl:
IresistableAshGirl Featured By Owner Aug 18, 2010  Hobbyist Traditional Artist
Sorry, but this is too complicated and I don't understand it.
Reply
:icondigidestinedgirl:
digidestinedgirl Featured By Owner Aug 11, 2010
I've been trying to get flash but it's just being a pain!
Reply
:iconthegodmachine:
thegodmachine Featured By Owner Jul 1, 2010  Professional Digital Artist
Thank you. I've been searching for a tutorial that explained how items can snap to place.
Reply
:icongirluver121:
girluver121 Featured By Owner May 19, 2010
ive gotten to flash mx 2004 but i have no idea how to get to the place to make dress ups.......
Reply
:iconiresistableashgirl:
IresistableAshGirl Featured By Owner Aug 18, 2010  Hobbyist Traditional Artist
It's just flash document.
Reply
:icongirluver121:
girluver121 Featured By Owner Aug 19, 2010
ok?
Reply
:iconiresistableashgirl:
IresistableAshGirl Featured By Owner Aug 19, 2010  Hobbyist Traditional Artist
It will be the first one.
Reply
:icongirluver121:
girluver121 Featured By Owner Aug 19, 2010
?
Reply
:iconiresistableashgirl:
IresistableAshGirl Featured By Owner Aug 20, 2010  Hobbyist Traditional Artist
sorry can't help you much further but you might see it if you look up how to make a dress up game on youtube.
Reply
:icongirluver121:
girluver121 Featured By Owner Aug 21, 2010
k...
Reply
:iconriveena:
Riveena Featured By Owner Apr 4, 2010
Just one of the things I've been searching! Tnxxxxxxxxx so much!!
Reply
:iconseexbrot:
Seexbrot Featured By Owner Mar 15, 2010
That's exactly what I am looking for but unfortunately it doesn't work D:
Reply
:iconkryptocow:
kryptocow Featured By Owner Jan 5, 2010  Student Digital Artist
Hrmm, I think I'm misunderstanding something about the hitTest...
If I just drop it in as is:

if (_root.tshirt, hitTest(_root.Pop)) {

then it snaps back to its original point when I release it. But if I change it to:

if (_root.jeans, hitTest(_root.doll)) {

it snaps to the point on top of the doll, no matter if I dragged it on top of the doll or not.
Reply
:iconhearttaco:
hearttaco Featured By Owner Dec 29, 2009
this is really helpful, thank you! :D
Reply
:iconthe-kirbster:
The-Kirbster Featured By Owner Dec 26, 2009
This was a very helpful tutorial. However, I find that when trying to code the buttons that change the color of clothes, I am told "Statement must appear within On handler".

I am quite certain I am using an on handler. on(release), and all that.

If you have any insights, I would appreciate it. Nevertheless, I enjoyed this tutorial.
Reply
:iconwhite-wolf-terra:
White-Wolf-Terra Featured By Owner Dec 18, 2009  Student Traditional Artist
does this work for PhotoShop too cuz im gettin photoshop and wanted to try it~Desu
Reply
:iconbottomraider:
bottomraider Featured By Owner Dec 3, 2009
Hey you seen really good at this can you explain to me how to make a button to change your charitics appearence, example say I want a figure to be thin, so I have a thin button next I want them to be fat s I make a fat button. How do I do this so the figure and the items that goe with each choice appear only when that choice is active.

Is this too difficult to explain?
Reply
:iconprincestomboy:
PrincesTomboy Featured By Owner Oct 20, 2009  Hobbyist Digital Artist
... it isnt working for me D8 i:
converted it to a movie clip
gave it an instance
m on first frame
copy/paste-d it on the FRAME

ps im on flash 8

help?
Reply
:iconprincestomboy:
PrincesTomboy Featured By Owner Oct 20, 2009  Hobbyist Digital Artist
thank u, fave! btw... what does hit do? i cannever figure that out
Reply
:iconpinkiblu:
pinkiblu Featured By Owner Sep 27, 2009
What should I do if I want the close to snap on the character???
:iconsombreroplz:
:iconbutbutplz:
Reply
:iconmasterge77:
Masterge77 Featured By Owner Sep 9, 2009  Hobbyist
What if i don't want drag and drop, what If I want to use arrows to change the items, and they stay in that place staticly without having to click and drag, you know, something like :icontony64:'s create a fursona, or the various South Park creators dotted around the net?
Reply
:iconrafaelfox:
rafaelfox Featured By Owner Aug 27, 2009
AAAAH!
Thank you so much for this, it's just what I was looking for!! They can match exactly and change colors too *__*

Aaah by the way, I already started mine, but I was just wondering, if can share the code, or explain, how you made the "mouth" by just clicking.. I'm a complete newbie ;__;

but, thank you so much for all your hard work on this! XD
Reply
:iconprincestomboy:
PrincesTomboy Featured By Owner Oct 20, 2009  Hobbyist Digital Artist
to rafael fox, i can help you with the change-by-click part ^^ just simply to a dou button. draw the diff mouths then copy and paste where u want them on the same frame [1frame-per-mouth]^^
Reply
:icondream-puddle:
dream-puddle Featured By Owner Aug 26, 2009
OMG! Thank you sooooo much! I had the same problem that you did, not being able to find a tutorial for how to make them snap into place and change colors. This is exactly what I'm looking for and it's so easy to follow and understand!

Everything is explained really well and I like how you give the reasoning behind everything! I want to give you a hug! Haha :hug:

Your amazing :D
Reply
:iconhixdei-love:
hixdei-love Featured By Owner Aug 13, 2009  Student Digital Artist
i cant get the buttons to work
Reply
:iconyoukou-chan:
youkou-chan Featured By Owner Aug 11, 2009
Do these codes work for flash 8?
Reply
:iconangeljasiel:
AngelJasiel Featured By Owner Aug 6, 2009  Hobbyist Digital Artist
thank you so much for this
Reply
:iconleetachan:
leetachan Featured By Owner Aug 1, 2009  Student
Thankyou very much for your tutorial... what a lifesaver... I use it to my game flash assignment.. If you don't mind you can see it in here [link]
A bunch of thanks...
Reply
:iconrose-layon:
Rose-Layon Featured By Owner Aug 2, 2009  Student General Artist
I made it a whole time back, I'm so happy it's still useful :D
Reply
Add a Comment: