API TRACER/GENERATOR
Created by Denvish July/August 2005 - v11 released 11th Sept 2005



INSTRUCTIONS

DRAWING

1) Click 'MAKE NEW SHAPE'

2) Choose line colour/alpha/thickness, and fill colour/alpha. Click OK.

3) Start the shape by clicking 'LINE' or 'CURVE'

4) Use the draggers to change the shape of the line/curve. Click OK.

5) Repeat until shape is nearly complete.

6) Use 'FINISH WITH CURVE' or 'FINISH WITH LINE' to complete/join the shape.

7) To finalise the shape, click 'COMPLETE SHAPE'.


EDITING

1) Click 'ENTER EDIT MODE'.

2) Select a shape in the right-hand panel.

3) Move it by dragging, or click 'EDIT SHAPE' or 'EDIT FILL' to change lines, curves and/or colours.

4) Arrange multiple shapes by using the 'DEPTH UP' and 'DEPTH DOWN' buttons.

5) Use 'DELETE SHAPE' to remove a shape completely.

6) When satisfied with results, click 'SHOW CODE'. Copy/paste code into your working .fla


USING THE GENERATED CODE

The simplest way to use the code is to paste it onto the first frame of a new movie. However, if you need the shapes
to interact with each other, you may need to split the code up and put it into separate MCs, eg:

_root.createEmptyMovieClip(mcname, depth);
with(mcname){
//Shape 1
lineStyle(2, 0x00FF00, 100);
beginFill(0xFFFFFF, 50);
moveTo(-58, 32);
lineTo(79, 84);
curveTo(99, 44, -58, 32);
endFill();
}

For more information on using API, see the API threads listed in AS: Main

 

NOTES

You can either create graphics from scratch, or download the .fla file for APIT (link below), and import images to the
stage for tracing. I'm currently sick of this project (it's been a nightmare to code), but if I ever come back to it, I might
add the ability to a) Import/resize an image at runtime for tracing and b) Create circle/star/other shapes automatically.

UPDATES:
V11 - Thanks to -liam- for adding the option to auto-create the MCs in output code
V10 - Thanks to -fwe- for adding a toggleable 'Snap to Grid' option
V9 - Added the ability to duplicate shapes in Edit mode
V8 - Allowed inputting of APIT-produced code

If you have any comments, suggestions or criticisms, please post them in this thread.

 

Click here to download zipped MX .fla (24 KB)

Click here to download zipped MX2004 .fla (28 KB)

 

 

 

 

 

 

 

CONVERT TO ARRAYS

If you're making complex shapes within MCs, you may want to consider holding the
shape data in arrays. This will convert APIT output to arrays. Use the drw function
in your fla to convert the arrays back, and draw them. Click the TRANSLATOR button
for the code

DRAW FROM ARRAYS

Just a quick program to check that your array data produced above works correctly.
Paste your arrays into the textbox, and click 'DRAW'. MC is draggable.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OTHER NG-RELATED STUFF

PRELOADERS
WALLPAPERS

MY FLASH
AS: MAIN - HTML LISTS
AS: MAIN - TEXTFILE
APIT: API TRACER/GENERATOR

Page created by Denvish 5th August 2005.

Updated to version 11 - 11th September 2005.

Email Spambots should go here