A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: scrunch text with actionscript

  1. #1
    Senior Member
    Join Date
    Jun 2003
    Location
    La Mirada California
    Posts
    396

    scrunch text with actionscript

    OK, I have a font, that looks better scrunched, because it's a little too tall. So in flash I press Q and scrunch it. How do I do that in actionscript?

    it's a textfield. I tried scaleX.. but it seems to scale x and y.

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Make sure the font is embedded and then trace both scaleX and scaleY to make sure they are scaling independently.

  3. #3
    Senior Member
    Join Date
    Jun 2003
    Location
    La Mirada California
    Posts
    396
    How do you embed it in actionscript?

  4. #4
    will i ever get it?
    Join Date
    Feb 2004
    Posts
    707
    var tf:TextFormat= new TextFormat()
    tf.font=new Arial().fontName;
    textFieldName.embedFonts= true;
    textFieldName.defaultTextFormat=tf
    but you will have to add a font & export it with a class name (in this case Arial)

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center