This content has been marked as final. Show 8 replies
are you sure the formats are different and there's no actionscript affecting the textfields?
Yes. Try this simple experiment: create two Input Text fields both with the same variable name. Format them differently. Now see what happens when you publish and run. How do you get the formatting to be independent for each field?
I'm using Flash CS3 with ActionScript2.
i see no problem. i used different fonts, font color, font size and alignment with the same textfield variable in one input textfield and one dynamic textfield. also, no problem with 2 input textfields.
the problem is caused because you have html-enabled textfields. disable html and you should see no problem.
if you must have html-enabled textfields give them different instance names of use the onChanged method of textfields to have each textfield update the htmlText property of the other.
I see the HTML toggle switch on the Properties, but it makes no difference. I also tried this:
_root.textfield.html = false;
But then I get a full HTML dump in my text field.
make sure auto kern is NOT ticked. (that also enables html.)
Auto kern was not checked.
I could not figure out how to get Flash to stop copying text formatting along with the text, but I found a simple workaround.
Do not give the text fields variable names. Give them instance names instead, and execute this command when you want to update the value of one with the content of the other:
myTextField1.text = myTextField2.text;
That copies ONLY the text, not the formatting.