Text Transform

Posted on 2006-06-02
Last Modified: 2008-01-09
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.

Question by:iceman19330
    LVL 4

    Expert Comment


    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 :

    LVL 34

    Expert Comment

    by:Aneesh Chopra
    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.

    LVL 4

    Accepted Solution


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    shockwave problems 3 214
    3D rotation for a product 3 325
    Webpage doesn't render properly on iPad and iPhone 3 342
    Flash Converter 8 98
    This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
    There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now