Using the AutoDraw component

You can initiate the AutoDraw component from the timeline or in pure code (AS3, document class). These two source files are included in your purchase. This tutorial will take you step-by-step in putting the AutoDraw component to good use!

The component has two modes, revealing (drawing) an image, and the pencil draw mode.


Revealing/drawing an image

  1. After downloading, find the swc file and copy into installedDrive:\Documents and Settings\~user\Local Settings\Application Data\Adobe\Flash CS3 \en\Configuration\Components. You’re half-way there!
  2. Open or restart Flash, and get out a blank AS3 document. Change the framerate to around 30.
  3. Locate the component in your Components panel (Window>Components) and drag AutoDraw to your library:
  4. Drag an instance to your stage, and give it an instance name:
  5. Create the movieclip you want to show, and add it on a layer below the component. In this case, it is static text inside a movie clip:
  6. Draw a motion guide for the target clip. This should be the path you want the hand to reveal. It can be continuous, or broken up, but keep it in the same layer.
  7. Create a small circle with an instance name 'leader', and animate it on your path. Turning on 'snap to object' makes this much easier. (motion guide help here). At this point, you should have something similar to this:
  8. Code in the AutoDraw component. In the first frame where you want it to start, add:

    autodraw.init(leader,text);
    autodraw.start();

    You can also set optional parameters:

    autodraw.init(leader,text,{tipSize:10, scribbleSpeed:20, scribbleWidth:3});
    autodraw.start();

    Test your movie. From here you can adjust where it draws and the speed by changing the motion guide.
  9. The parameters can also be set dynamically. Insert this on your actions layer in the middle of your motion:

    autodraw.motionBlur=true;
    autodraw.easing=2;

Draw mode

  1. Draw mode is similar to the reveal mode, but there is no image to mask. In your code, simply set the 'maskee' parameter to null:

    autodraw.init(leader,null);
    autodraw.start();

    This will follow the leader, drawing a line. Add in other parameters like:

    autodraw.init('mouse',null,{lineColor:0xff3388, tipSize:30, airbrush: true});
    autodraw.start();

    Are we having fun yet?
  2. To attach the pencil to your mouse, the 'leaderClip' will need to be the mouse. Just pass 'mouse' in here:

    stop();
    autodraw.init('mouse',text);
    autodraw.start();

    Here I have put the 'text' movieclip back in as the maskee, so drawing with the mouse will reveal it.

Documentation

Public Methods

Public Properties

Events





keywords: pencil draw, hand-drawn, sketch, scribble, doodle, sign, reveal image, mask effect, hand-drawn, customizable, paper