Groups | Blog | Home
all groups > flash actionscript > august 2005 >

flash actionscript : drawing over a picture


Dave Mennenoh
8/18/2005 3:38:02 PM
You said - then you attach a movie symbol that you want the user to draw
on - and that you can draw everywhere but on this new symbol. Are you sure
that you aren't simply drawing behind the new symbol - as by default the new
clip would be attached at a higher depth than prior ones.


--
Dave -
www.blurredistinction.com/director
www.macromedia.com/go/team

denise82
8/18/2005 8:00:20 PM
:confused;

Hi I know that this is possible but I get the feeling that I am not going
about it the right way. At the present moment I have a drawing application.
My program creates an empty movie clip where I can draw. Then I attach a movie
symbol which I want the user to be able to draw on. Actually I would like to
make it so that they can only draw on the picture. At the moment I can only
get flash to allow the user to draw in the movie clip everywhere but on the
picture. Can anyone help me?

Denise
Lums
8/18/2005 11:07:19 PM
Hello,
Do you have the .fla of your drawing application, then load it on an upper
layer and the drawing on a lower layer. That solves it I guess but you need to
limit the drawing tool mouse to your image region.
denise82
8/19/2005 12:00:00 AM
Hi thanks for everyone help. I figured out what I was doing wrong, I had
attached my picture to the wrong movie clip so I was drawing behind the photo.
Now I just need to figure out how to make my erase function work, now that my
background isn't white.

Denise
kglad
8/19/2005 1:15:29 AM
do it the other way: attach your movieclip that you want to use as your canvas
and create an empty child movieclip child of your attached canvas. trigger
your drawing code using this child only if the canvas is being drawn on.
abeall
8/20/2005 12:00:00 AM
This post reminds me... I can't wait for Flash 8!

kglad
8/20/2005 12:00:00 AM
abeall
8/20/2005 12:00:00 AM
"cacheAsBitmap"

Whatever that means, maybe someone like you would know, but the results are
almost unbelievable.
Have the F8 Player?
http://www.flashguru.co.uk/maelstrom/?example=isometric%20grid%20image
Try toggling the option. Insane.
Some pixel manipulation examples:
http://www.kneib.biz/f8files/water_with_f8.html
http://www.nocircleno.com/ben/flash8/
http://www.flashguru.co.uk/maelstrom/?example=lake%20effect

http://www.franto.com/blog2/collected-links-to-maelstrom-examples

Plus filters, blending modes, animation curve editor, browse for file upload...
*chills*
;)
kglad
8/20/2005 12:00:00 AM
kglad
8/20/2005 1:07:11 AM
you'll either have to do a lot of masking if you want to be able to do general
erasures or if you can live with erasing entire segments, use a separate
movieclip for each segment. you can then remove or clear the movieclips.
AddThis Social Bookmark Button