Skip to main content
Participant
July 19, 2007
Question

paint effect

  • July 19, 2007
  • 1 reply
  • 291 views
Can someone give me any insight into a way to create an effect similar to the one on http://eu.wrangler.com/ I want the users mouse to have a painting effect on the picture as they mouse over.
This topic has been closed for replies.

1 reply

Inspiring
July 19, 2007
This is actually fairly simple. Not sure what exactly you want but this
should be a good start:

var
drawClip=_root.createEmptyMovieClip('_drawing',_root.getNextHighestDepth());
drawClip.lineStyle(1,0xFFFF00,100);
drawClip.moveTo(_xmouse,_ymouse);
Mouse.addListener(this);
function onMouseMove() {
_root._drawing.lineTo(_xmouse,_ymouse);
}

The line is yellow so you may want to use a dark background colour. If
you like this, drop by my site and get involved in my forums (link
below). Lots more good stuff to come there ;)

Regards,
Patrick

--
http://www.baynewmedia.com
Faster, easier, better...ActionScript development taken to new heights.
Download the BNMAPI today. You'll wonder how you ever did without it!
Available for ActionScript 2.0/3.0.


skywalker27 wrote:
> Can someone give me any insight into a way to create an effect similar to the one on http://eu.wrangler.com/ I want the users mouse to have a painting effect on the picture as they mouse over.


Participant
July 20, 2007
Thanks, this is great. You would not happen to know how to make the linestyle change so it looks blurry or is dotted similar to how they have? do you?