First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing! | Flash Jobs
Search tutorials
Author: GOusable | Website: http://www.gousable.com/

Step 1. Create text along the curve

With Text2Curve component, you have two possible ways to place text along the curve:
  • Drag component symbol to the stage in Flash IDE.
  • Create at runtime using Text2Curve class constructor.
Note: An instance of Text2Curve component must be placed on the scene in authoring environment or with attachMovie() before using this constructor.
After creating Text2Curve, you may want to adjust it's properties to desired values:
  • Text2Curve.centerText A Boolean value that indicates whether text is centered (applicable to round and elliptic curves).
  • Text2Curve.curveColor The color of the curve's line. Default is 0xCCCCCC (grey).
  • Text2Curve.curveParam An Object containing parameters for the curve.
  • Text2Curve.curveType The type of a curve. Can be one of pre-defined strings.
  • Text2Curve.doRotate A Boolean value that indicates whether letters are rotated to be perpendicular to the curve.
  • Text2Curve.letterSpacing The amount of additional space between letters.
  • Text2Curve.lineWidth The width of a curve's line.
  • Text2Curve.rotateBy The angle of rotation for the whole text group.
  • Text2Curve.shiftBy The distance along the curve from 0 point to first letter.
  • Text2Curve.showLine A Boolean value that indicates whether curve is visible.
  • Text2Curve.txtColor The color of the text.
  • Text2Curve.txtFont A string that indicates font name or the linkage identifier of the font symbol for the text.
  • Text2Curve.txtSize The point size of text.
  • Text2Curve.txtWidth Read-only; total length of the text in pixels.
  • Text2Curve.userText The text to be placed along the curve.
You can find more details about Text2Curve parameters in online help available at component's site.
» Level Advanced

Added: 2007-03-03
Rating: 6 Votes: 2
(10 being the highest)
» Author
GOusable Flash components development. Usability services.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.