Scale Text AS3.0

  • Parag
  • Born
  • Born
  • Parag
  • Posts: 1

Post 3+ Months Ago

Hi,

I wanted to stretch the text inseide text area along x axis only. Hence I set scaleX value in the textField but to my surprise nothing happens. Then I change scaleY and it seems that entire text gets scaled along both the axis which is not what I desired at all. Can you please tell why this is happening and how can I get the desired effect. Here is my code:

package {
import flash.display.Sprite;
import flash.text.TextField;

public class textLearn extends Sprite {
private var _text:TextField;
public function textLearn() {
_text = new TextField();
addChild(_text);
_text.text = "12345";
_text.scaleX = 2;
}
}
}

Is there any way of doing this as this is needed in my project even some bad kind of hach will do Please help
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.