# Text2Curve.curveParam

Flash Player 7.

#### Usage

````my_text2curve`.curveParam : Object;
```

#### Description

Property; an Object containing parameters for the curve. It can contain maximum of 4 parameters: a, b, c, d.
The meaning of each parameter depends on the type of a curve. Here are 3 types currently available:

• arc_round is a part of a circle. The curve equation is: y = b*(a2 - x2)1/2 .
So, only 2 parameters are used: a for radius and b for direction. For this (circle) case only sign of b is considered: if b > 0, the text will be placed inside the circle; otherwise (b < 0) outside the circle.

Curves drawn with same a and different b parameter (scaled).

• arc_ellipse is a part of an ellipse. The curve equation is: y = b*(a2 - x2)1/2 .
But, while the equation is the same as one for circle, the meaning of b is different. The sign of it is treated in the same way. Also, the value of b is considered as a ratio between two diameters of an ellipse.

Ellipse curves drawn with same a and different b parameter (scaled).

• wave_sine is a part of a sine curve (sinusoid). The curve equation is: y = a*(e-d*x)*sin(b*x + c) ,
where a is amplitude, b - frequency, c - starting phase in degrees, d - damp coefficient.
And e is mathematical constant with approximate value 2.71828182845905 (Math.E in Actionscript).

Sine curves without damp (d = 0), scaled.

Sine curves with different damp, scaled.

#### Example

The following code creates a new Text2Curve based on newly created movie clip. The text is placed along the inner side of a round arc. Then it traces the radius of the arc.

```var mbc:MovieClip = _root.createEmptyMovieClip("new_clip_mc", _root.getNextHighestDepth());
var my_t2c:Text2Curve = new Text2Curve("Hello, World!", "", 24, "cc00cc", "arc_round", {a:50,b:1,c:0,d:0}, true, mbc);
trace("radius of the arc r = " + my_t2c.curveParam["a"]);
// output: radius of the arc r = 50
```