Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default 3D perspective text

    Hi everyone,

    I'm creating a Flex application which is basically a loan calculator for a
    bank.

    I've received a psd from a designer and have cut out the important part:

    [url]http://www.aoa.nu/images/blog/calculator_background.jpg[/url]

    My problem is the numeric values which have been twisted a bit, to create a 3D
    effect. I believe the designer used the "Edit -> Transform -> Perspective" tool
    in Photoshop.

    Is there any way to create this effect in Flex? Or Flash for that matter.

    Best regards,
    Mads

    dj_uncas Guest

  2. Similar Questions and Discussions

    1. Perspective Grid Help Please
      I'm trying to put inserted photographs on to a perspective grid to make a collage, but when I use the perspective grid tool, move the picture over...
    2. Text Perspective?!
      Please help! I have a photograph of some product packaging that I have removed the text from so I can replace it with new product information. The...
    3. 3D Perspective with look of Film!
      I am a newbie with Freehand MX (using the whole Studio MX 2004) and need to design a graphic item to be used in both print as well as a website...
    4. Perspective text on front of ebook covers
      Hi I am using Illustrator 9 and i would like a tutorial or even a hint here on how i can use ai9 to do a prespective text on and ebook cover? ...
    5. perspective enviroment
      Hi people, Just wondering if there is some kind of way of getting a perspective grid illustrator similar to the perspective grid found in...
  3. #2

    Default Re: 3D perspective text

    Are your text labels dynamic? If that's the case, then the least painful way to
    do this would be to create the background and dynamic text labels in Flash and
    embed* that SWF in your Flex app.

    In Flash you can skew and rotate the labels interactively to match what the
    designer has created. You'll want to skew the text first, then rotate. Skew the
    upper edge of the text field slightly to the left (horizontally). Because of
    the perspective of the background, each label will have to be skewed and
    rotated individually.

    Make sure that the text in Flash is set to "Dynamic Text" in the property
    inspector. Select "Anti-alias for readability". I imagine your labels will be
    numerals only, so embed only those to keep the file size down. Then give the
    instance of that text label a unique name. Now you'd be able to set those
    labels from within your Flex app (e.g. mySWF.label1.text). This is true only if
    you load the Flash SWF at runtime (Flash 9 SWF).

    *For a Flash 8 SWF, or if you're embedding the final Flash SWF in your Flex
    app, you have to use LocalConnection to set the labels from your Flex app. The
    docs have some examples on using LocalConnection.

    TS

    VarioPegged Guest

  4. #3

    Default Re: 3D perspective text

    Sounds like a fine solution. It definitely seems to be easier to rotate and
    skew in Flash..

    However, in my attempt I made the text look right inside Flash. but the Flash
    Player won't show it correctly - L=see this
    screenshot[]http://www.aoa.nu/images/blog/calculator-flash-screenshot.png

    Do you know what's happening?

    dj_uncas Guest

  5. #4

    Default Re: 3D perspective text

    Hmmm, tried it and it works fine for me. How are you doing your transform...
    Transform -> Rotate and Skew from the menu or value input in the Transform
    window?

    Can you upload a screen shot of the properties window with the text selected
    in Flash?

    TS



    VarioPegged Guest

  6. #5

    Default Re: 3D perspective text

    I used the menu Modify -> Transforn ... menu.

    The requested screenshot is [url]http://www.aoa.nu/images/blog/flash-screenshot2.png[/url]
    dj_uncas Guest

  7. #6

    Default Re: 3D perspective text

    Yikes, I tried it again just now with a new text field and it's doing the same
    for me as for you with that text field. Seems like a bug to me! Have you tried
    creating a different text field where you drag out the size of the text box as
    you click the stage?

    Screenshot settings look fine.

    TS

    VarioPegged Guest

  8. #7

    Default Re: 3D perspective text

    Seems that "Anti-alias for animation" has to be selected. I gave you bum information. I did have that anti-alias setting on my text input.

    TS
    VarioPegged Guest

  9. #8

    Default Re: 3D perspective text

    It works perfectly now! Next obstacle: match rotate & skew to design...

    Thanks :-)
    dj_uncas Guest

  10. #9

    Default Re: 3D perspective text

    I guess I was a bit too hasty there.. I have problem with the Flash text
    fields. They all have different letter spacing, which looks fine in the Flash
    IDE, and when I open the SWF as a standalone file. When I load it into Flex,
    however, and set the dynamic text fields, the letter spacing disappears! Any
    suggestions?

    And yes, I have embedded the font...

    dj_uncas Guest

  11. #10

    Default Re: 3D perspective text

    Never had to use letter spacing on dynamic fields, but you could probably try
    this:

    In your SWF, add a variable that'll hold the text field's format:

    var fieldFormat: TextFormat = someTextField.getTextFormat();

    Then from within Flex try and reset it (I'm not exactly sure about the syntax
    here, but you get the idea):

    mySWF.someTextField.setTextFormat(mySWF.fieldForma t);

    TS

    VarioPegged Guest

  12. #11

    Default Re: 3D perspective text

    Perfect :-)
    dj_uncas Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139