• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2346
  • Last Modified:

Text Transform

I'm having an EXTREEMLY hard time working with Flash and doing text transform.  What I need to do is transform the text in one of 5 ways.

1.  Normal.
2. Arch Up
3. Arch Down
4. Straight Across - Bottom Arch Up
5. Straight Across - Bottom Arch Down
6. Slant R/L
7. Slant Top/Bottom

An example of the Text Lettering can be seen here.  http://www.dartfrogmedia.com/portfolio/uniformbuilder.html

  • 2
1 Solution

Make a clip : "mask" => a mask
Make a clip : "typo" => with text

import flash.display.*;
import flash.geom.*;
import flash.filters.*;
bitmap = new flash.display.BitmapData(400, 300, false);
var mc:MovieClip = this.createEmptyMovieClip("mc", 1);
//mc.attachBitmap(bitmap, 1);

mpoint = new Point(0, 0);
displac = new DisplacementMapFilter(bitmap, mpoint, 1, 1, 0, 100, 'clamp');
typo.blendMode = 'multiply';
mask._visible = false;

typo.filters = [displac];

See this example :

Aneesh ChopraCommented:
I want to provide more details on Guic's comment.

Above code will not work without following:

"mask" movieClip should be larger than "typo" movieclip and it should have Radial Gradiant to make above code work.

here I have uploaded a working sample.
download link:

actually curved text is based on "mask" movieclip gradiant, try modifying the gradiant and see how curved text changes according to the gradiant.

I mean to say, you can give any shape to text using above script, if you can create appropriate gradiant.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now