CS5.5 Flash PROBLEM: TextField editing (with AS3) leads to BAFFLING MYSTERIES OF DARK MAGIC!Posted November 23rd, 2011 by Warren Blyth
I was baffled to find that when I edited the text of a TextField using ActionScript 3 (AS3), I was left with RANDOM GIBBERISH. Hours were lost snooping around in my epic project, trying to figure out how anything could cause this problem.
Turns out it’s a feature in CS5!?!
(note: my TextField has the properties: “Classic Text” engine, using “Dynamic Text” type)
- At first I saw that only vowels were displaying. OH THRILLING MYSTERY! But I suspect this was just a happy accident, and the feature Adobe programmers were promoting with their unrequested changes was actually designed to : just display nonsensical gibberish.
(I think I just got lucky, when I consistently just saw vowels.)
- Here is a simple sample file that demonstrates the problem:
stWord1 is a TextField created on stage, displaying the text “Word…”
But when I run this one line of action script:
- stWord1.text=”9dunqwuidqa hfdwuaind adun “;
The displayed text in this TextField changes to “ddddd”
SUGGESTIVE SIDE NOTE:
When I compile anything in the new stupid CS5.5, I see this message:
“Fonts should be embedded for any text that may be edited at runtime, other than text with the “Use Device Fonts” setting. Use the Text > Font Embedding command to embed fonts.”
However, when I embed the default font (Arial regular), I still experience the exact same problem. ie, the file compiles with no complaints.
So far, I have no idea how to fix this problem.