Welcome to Inkbunny...
Allowed ratings
To view member-only content, create an account. ( Hide )
Jerk
« older newer »
Oob
Oob's Gallery (386)

Dress-up Tutorial

Character Maker
tutorial.swf
page 1
page 2
by Oob
This is just a small something for a couple of people that asked me about it. I used a small doodle from a  while ago and tried to really summarize the steps that I go through when making my dress up flashes.

I'm not sure how well I explained everything but you might need some minimal knowledge of flash and ActionScript so that you're not just completely confused. Also some things might be slightly different between flash versions, and the code is specifically for ActionScript 3.

If you don't know programming well, I recommend putting the buttons either on the right or bottom, because using this method will place all the layers on the top left corner (though it's not hard to specify a different position if you look up the AS commands).

I don't think there are any tags to make the code keep the indentation or to even collapse it, but I'll keep it in the comments in case something happens to the above link.


package Classes {

import flash.display.*;
import flash.events.*;

    import flash.net.*;
    import flash.utils.ByteArray;
    import com.adobe.images.PNGEncoder;


public class Engine extends MovieClip {

var scf:Bitmap = new Bitmap(new scarf());
var sho:Bitmap = new Bitmap(new shorts());

public function Engine() : void {

stage.addChild(sho);
stage.addChild(scf);

scf_button.addEventListener(MouseEvent.MOUSE_DOWN, scf_function);
sho_button.addEventListener(MouseEvent.MOUSE_DOWN, sho_function);
sav_button.addEventListener(MouseEvent.MOUSE_DOWN, sav_function);

scf.alpha=0;
}


function scf_function(event:MouseEvent):void {
if (scf.alpha==1) {
scf.alpha=0;
} else {
scf.alpha=1;
}
}

function sho_function(event:MouseEvent):void {
if (sho.alpha==1) {
sho.alpha=0;
} else {
sho.alpha=1;
}
}


private var fileReference:FileReference;

public function sav_function(evt:MouseEvent):void {
var b:BitmapData = new BitmapData(350, 550);
b.draw(stage);
save(b);
}

public function save(b:BitmapData):void {
try {
var pngBytes:ByteArray= PNGEncoder.encode(b);
fileReference=new FileReference();
fileReference.save(pngBytes,"tutorial.png");
} catch (e:Error) {
trace(e);
}
}

}
}


Keywords
male 994,585, rabbit 111,776, bunny 92,515, male/solo 29,218, shorts 7,661, scarf 6,705, flash 3,765, tutorial 555
Details
Type: Shockwave/Flash - Animation
Published: 7 years, 2 months ago
Rating: General

MD5 Hash for Page 1... Show Find Identical Posts [?]
Stats
3,422 views
140 favorites
17 comments

BBCode Tags Show [?]
 
Lambent64
7 years, 2 months ago
D'aw! Look at the little wabbit!
KaloTheSkunk
7 years, 2 months ago
Thanks for the info ^^
Zaaru
7 years, 2 months ago
Thank you so much! It's pretty clear and useful! I'll try to make one when I've got some time! :3
Krechevskoy
7 years, 2 months ago
Super awesome!  Thank you very much for this!!!
cinnamoncookies
7 years, 2 months ago
This is great! Thanks for taking the time to do this tutorial~
Charliemon
7 years, 2 months ago
dude thanks for sharing this xx
Graedius
7 years, 2 months ago
Dress up instructions:
1) Find cute animal boy
2) Find snug boxers
3) Find other clothes
4) Make him pose with strong arms
5) <3
Oob
Oob
7 years, 2 months ago
Now that sounds like a winning recipe.
KeleandStar
7 years, 2 months ago
Cool tutorial,it should also be noted you could also make a movieclip for each clothing type and in each movieclip have all the diffrent images of the clothes then just use gotoAndStop commands to cyle through each article of clothing. It may save you a bit of space ^^
Oob
Oob
7 years, 2 months ago
You're still going to need all the images on there so I don't think the size difference will be noticeable. It is a good way to organize things if you have many different images of one type, like you said.
BreakingCloud
7 years, 2 months ago
Heya! Thanks so much for this! It's very informative! ^-^ I look forward to making some dress ups one day<3
GaijinDX
7 years, 2 months ago
Miiiight just use this someday, thanks!
VastWhite
7 years, 2 months ago
AAAA THANK U FOR MAKING THIS,,,
Hoya82
7 years, 1 month ago
Shorthand piece toggle method:

function toggle(piece:Bitmap):void {
  piece.visible = !piece.visible;
}

scf_button.addEventListener(MouseEvent.MOUSE_DOWN, function() { toggle(scf); });
sho_button.addEventListener(MouseEvent.MOUSE_DOWN, function() { toggle(sho); });
Oob
Oob
7 years, 1 month ago
That is pretty good! And I actually didn't know that visible was a propriety so I'll probably use that from now on too.
shrapnelman88
7 years, 1 month ago
Lay Yer Layer on the Layer.
CatAngel
6 years, 11 months ago
Damn! I really want hugs (or milk)
Or just please pet me
New Comment:
Move reply box to top
Log in or create an account to comment.