Scale Text AS3.0

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

Post 3+ Months Ago


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();
_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

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 6 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

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