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

Dress-up Tutorial

Character Maker

Medium (920px wide max)
Wide - use max window width - scroll to see page ⇅
Fit all of image in window
set default image size: small | medium | wide
Download (new tab)
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 1,173,860, rabbit 136,388, bunny 110,473, male/solo 34,468, shorts 10,668, scarf 8,226, flash 3,883, tutorial 609
Details
Type: Shockwave/Flash - Animation
Published: 8 years, 12 months ago
Rating: General

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

BBCode Tags Show [?]
 
Lambent64
8 years, 12 months ago
D'aw! Look at the little wabbit!
KaloTheSkunk
8 years, 12 months ago
Thanks for the info ^^
Zaaru
8 years, 12 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
8 years, 12 months ago
Super awesome!  Thank you very much for this!!!
cinnamoncookies
8 years, 12 months ago
This is great! Thanks for taking the time to do this tutorial~
Charliemon
8 years, 12 months ago
dude thanks for sharing this xx
Graedius
8 years, 12 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
8 years, 12 months ago
Now that sounds like a winning recipe.
KeleandStar
8 years, 12 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
8 years, 12 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
8 years, 12 months ago
Heya! Thanks so much for this! It's very informative! ^-^ I look forward to making some dress ups one day<3
GaijinDX
8 years, 12 months ago
Miiiight just use this someday, thanks!
VastWhite
8 years, 12 months ago
AAAA THANK U FOR MAKING THIS,,,
Hoya82
8 years, 11 months 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
8 years, 11 months 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
8 years, 11 months ago
Lay Yer Layer on the Layer.
CatAngel
8 years, 9 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.