PDA

View Full Version : Path Class v2 - draw and follow AS paths



senocular
June 2nd, 2006, 08:34 PM
I've updated my path class to ActionScript 2 (and an ActionScript 3 version is available as well).

The Path class saves a collection of line drawing commands to represent a path. Using the path class you can draw all of or a segment of that path in a movie clip or get locations and orientations along the path to have objects follow it.

Note: People using Flash MX 2004 will have to use a custom flash.geom.Point class; one has been provided with the download. Just rename the flash_ifUsingFlash7 folder to flash in the AS2 directory.

Simple example drawing the word "fun" provided (uses two lines drawing out segments of the word with a trangle shape following its path).

jimhere
June 3rd, 2006, 11:18 AM
Where the devil have YOU been?

boohaha
June 3rd, 2006, 01:52 PM
no sen no fun! :sen:

Nice stuff there!!! Though I'll need some time to dig into the code...

senocular
June 5th, 2006, 11:27 AM
Where the devil have YOU been?
I moved out to the west coast for a job - been busy with that (plus I dont have the internet at home yet). Its hard to keep up with a new busy life :nerd:

TheCanadian
June 5th, 2006, 11:40 PM
Great functionality, the AS3 version seems so much more organized than the AS2.

jimhere
June 6th, 2006, 11:19 AM
I moved out to the west coast for a job - been busy with that (plus I dont have the internet at home yet).

Don't have the internet at home? How 20th century.
San Francisco, eh? Are you working for MM/Adobe?

senocular
June 6th, 2006, 11:40 AM
Don't have the internet at home? How 20th century.
San Francisco, eh? Are you working for MM/Adobe?

yup

dal platinum
June 26th, 2006, 03:36 PM
I like this. I remember back in Flash 5, I did this in a rather horrific and manual fashion. As you can see here (http://dalplatinum.com/flash/dpwriter.html).

Also, congrats with the job. The skills quite literally pay the bills.