Skip to main content
Inspiring
December 11, 2009
Question

textWidth inconsistancy

  • December 11, 2009
  • 1 reply
  • 371 views

Hi gang,

I've got a dynamic text field. It has text in it. I can trace "myTextBox.textWidth" and it returns 154. I'm publishing to Flash 6, but if I change to Flash 9, the trace returns 139. Any ideas why this is behaving inconsistently when changing publish settings? Any ideas how I can make this NOT happen?

Thanks,

Dan P.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
December 11, 2009

i don't see that problem.

create a new fla.  add a textfield, assign text and your trace() function.  any difference when you change publish settings?

if yes, zip and attach your fla.

if no, make the textfield and text more and more like your current problematic textfield until you isolate the problem's cause.

p.s.  watch for components, that may or may not be related to your textfield, causing the problem.

Inspiring
December 11, 2009

See attached. If you publish to 6, the trace yields something different than when you publish to 9.

kglad
Community Expert
Community Expert
December 11, 2009

flash 6 measures from the left side of the textfield to the right-most text.  flash 7 and above measure from the left side of the text to the right-most text.