开发者

change the width and height of textfield in flash

I have a Flash file,开发者_JAVA技巧 which has to be liquid. I have a header, a footer and a center section, which all are percentage scalable. My center section has a MovieClip called info_txt, and I'm trying to make it high 20% of the center_mc's height. I do this, but I also load a text in that field (info_txt) with XML, and when the text (xml) is loaded and placed in the textfield it doesn't go multiline, but stays nowrap. How to fix this please tell me!


Just add:

your_textfield.autoSize = "left";
your_textfield.wordWrap = true;

In case you need more info: Adobe help on AutoSize property (TextField.autoSize) for AS2

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜