nxlv_chad
08-25-2007, 06:33 PM
Hey everybody.
I'm currently working a project where you can do the tired old "dress up a virtual character" in Flash. Of course everything else was easy about it, drag and drop clothing articles on the character, etc. However, this particular project had a bit of a twist. The end-user will be allowed to upload their photo, and then super-impose their head onto the top of the character they are dressing up.
Originally I figured we'd just use a pre-sized oval mask, and have the user resize the photo into the oval mask so that their head fits in it. But the client is inquiring as to whether it would be possible to allow the user to perhaps draw an outline around the portion of the photo they want to extract, and then have Flash mask it that way.
Do any of you know if this is possible? I presume it's going to be a mixture of the drawing API and various other actionscript voodoo, but since I'll be dealing with basically dynamically masking a dynamically-loaded image, I figured I'd do some research on the feasability of this before wasting time, since I have one week left to completion.
I'm currently working a project where you can do the tired old "dress up a virtual character" in Flash. Of course everything else was easy about it, drag and drop clothing articles on the character, etc. However, this particular project had a bit of a twist. The end-user will be allowed to upload their photo, and then super-impose their head onto the top of the character they are dressing up.
Originally I figured we'd just use a pre-sized oval mask, and have the user resize the photo into the oval mask so that their head fits in it. But the client is inquiring as to whether it would be possible to allow the user to perhaps draw an outline around the portion of the photo they want to extract, and then have Flash mask it that way.
Do any of you know if this is possible? I presume it's going to be a mixture of the drawing API and various other actionscript voodoo, but since I'll be dealing with basically dynamically masking a dynamically-loaded image, I figured I'd do some research on the feasability of this before wasting time, since I have one week left to completion.