Toxiclab.org

Curve lines

21.5.2006, 12:6
Submited in: Flash | Total Views: 47575

In this lesson, I will explain to you, how to create a curve lines using the Action Script. In this tutorial yow will also learn how to use Action Script panel and more.

Example 1

Open a new flash document, open the Action Script Panel (F9) and paste this script:
createEmptyMovieClip ("curveLine", 1);
with (curveLine) {
lineStyle (3,0x2B3524, 600);
curveTo (50,0,50,50);
}

This script will generate this shape:



Example 2

This script:
createEmptyMovieClip ("curveLine", 1);
with (curveLine) {
lineStyle (3,0x2B3524, 600);
curveTo (80,60,50,50);
}

will generate this shape:



Example 3

This script:
createEmptyMovieClip ("curveLine", 1);
with (curveLine) {
lineStyle (3,0x2B3524, 600);
curveTo (18,120,50,70);
}


will generate this shape:



Example 4

This script:

createEmptyMovieClip ("curveLine", 1);
with (curveLine) {
lineStyle (3,0x2B3524, 600);
curveTo (30,45,90,35);
}

will generate this shape:

 

We're done!

Have a nice day!

Are you a website owner?
Click here to register and submit your tutorials!

Browse by category


Most popular tutorials


Resources Worth visiting


Friends