闪光动态文本框,多行和wordwrap行事时髦 [英] flash dynamic textfield, multiline and wordwrap acting funky

查看:260
本文介绍了闪光动态文本框,多行和wordwrap行事时髦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这种奇怪的事情发生在闪光灯和动态文本框。基本上,有人在地图上翻转标记,工具提示弹出一个动态文本框。 textfield设置为multiline = true,wordwrap = true,我定义了一个160像素的特定宽度。

问题是,我的一些文本跳转到下一行,其中一些正在被切断。所以如果我有猫跳过盒子这样的一行,我会看到The Cat Jumped,在下一行我会看到盒子。它看起来像掩盖了超过线,而不是推到下一行。

这不是对所有东西都做这个,只是一些更长的线。这是一个非常奇怪的错误,我已经尝试了8个小时来修复这个问题。有没有人遇到过这个问题?

解决方案

试试:

  myTextField.autoSize = TextFieldAutoSize.LEFT; 


I have this weird thing happening with flash and a dynamic textfield. Basically, someone rolls over a marker on a map, and a tooltip pops up with a dynamic textfield. The textfield is set to multiline=true and wordwrap = true, and I defined a specific width of 160 pixels.

The problem is, some of my text is jumping to the next line, some of it is just getting cut off. So if I have a line like "The Cat Jumped Over the Box", On one line I will see "The Cat Jumped" and on the next line I would see "the Box". It looks like it is masking out the "over" line and not pushing it to the next line.

It's not doing this for everything, just some longer lines. This is a really weird bug and I have tried for 8 hours to get this fixed. Has anyone ran into this problem before?

解决方案

Try:

myTextField.autoSize = TextFieldAutoSize.LEFT;

这篇关于闪光动态文本框,多行和wordwrap行事时髦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆