Text2Curve.italic

Availability

Flash Player 7.

Usage

my_text2curve.italic : Boolean;

Description

A Boolean value that indicates whether text is italic.
Default value is false.
Can be modified at runtime, but needs redraw() method to be called after such modification.
This property corresponds to Italic parameter in Component Inspector.
Note: You need to embed the italic version of font to set this parameter to true.

Example

The following code creates a new Text2Curve based on newly created movie clip. Then it makes the text italic.
Assumed that italic version of Arial font is embedded in the movie.

var mbc:MovieClip = _root.createEmptyMovieClip("new_clip_mc", _root.getNextHighestDepth());
var my_t2c:Text2Curve = new Text2Curve("Hello, World!", "Arial", 24, "cc00cc", "wave_sine", {a:50,b:1,c:0,d:0}, true, mbc);
my_t2c.italic = true; 
my_t2c.redraw();