Text2Curve Home | Help Index | Previous | Next |
![]() | |
![]() | |
![]() |
Flash Player 7.
my_text2curve
.curveParam : Object;
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:
Curves drawn with same a and different b parameter (scaled).
Ellipse curves drawn with same a and different b parameter (scaled).
Sine curves without damp (d = 0), scaled.
Sine curves with different damp, scaled.
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
![]() | ||
![]() | ||
![]() | ||
Previous | Next |