Skip to main content
Participant
May 17, 2010
Question

Crazy bug - Flash is deleting random string characters

  • May 17, 2010
  • 4 replies
  • 4224 views

Hello!  I'm working through Adobe's "Actionscript 3.0 for Adobe Flash CS4 Professional" book (though I'm using a trial version of CS5).  I've run into a crazy error on the 2nd lessons that I believe is out of my control, and wanted to see if the more advanced users had seen it or had any advice.

Everything was going well, when suddenly this bug appeared out of nowhere.  It appears that some random characters are getting removed from my strings.  For example, when I write the code:

info_txt.text = "Welcome to the home page";

And then run the program, then info_txt just shows: "elmehehmepage", which is the same string minus a bunch of characters.  When I try to write the code:

info_txt.text = "abcdefghijklmnopqrstuvwxyz0123456789";

Then it comes out as "aeghilmnprs".  This character removal happens for all strings.  And it seems that it isn't random, it's just removing a bunch of letters and all numbers, the same ones every time.

Troubleshooting that didn't work:

  • I thought it might have been something that I did, so I removed ALL actionscript from the project except for the above lines, and got the same result
  • I tried opening the end-of-the-lesson completed example file that came with the book, and that had the same problem (now I KNOW it wasn't a problem with the actionscript)
  • Tried restarting Flash CS5, no luck

Does anyone have any ideas what's going on?  I can't figure out what made this occur suddenly, and I can't figure out how to undo it.

Thanks!

This topic has been closed for replies.

4 replies

Participant
July 5, 2010

Dear Friends

I find the solution for this Text Problem....


The Problem is Anti-alias property of the TextField.

by default it will be in "Anti-alies animation".

but for Display the text properly we need to chang it...

In Flash CS5 do the following chantge........


Select Text Field ----> Properties Pallete ----> Anti-alias ---> Use Device Fonts


or


Select Text Field ----> Properties Pallete ----> Anti-alias  ---> Bitmap Text[no Anti-alias]


now it will work properly.....

Participant
June 21, 2010

I have the same issue, Mac or Win. Text missing or dropped completely. If I select Use device fonts then it works. It appears to me that the font engine is ignoring device fonts unless explicitly stated, so the fallback engine/checks are busted. If you compile the app in CS4 then Dynamic Text works; in CS5 it breaks. Pretty bad bug. I've written a ton of code for explicit font enumeration and might need to incorporate that for *all* dynamic text and override the base class, which is fairly evil. Would love to know when/if this gets fixed.

brooksrv
Participating Frequently
June 15, 2010

I use CS4 with Verdana font. I have never experienced the problem before, so I decided to do some testing. When using the dynamic text, if I do not embed, I do not loose the text. If I embed part of the text, I will loose what I do not embed. As expected if I embed all, everything works fine.

kglad
Community Expert
Community Expert
June 15, 2010

that's great but isn't relevant to this thread.

kglad
Community Expert
Community Expert
May 17, 2010

you need to embed all the used characters.

Participant
May 17, 2010

Hi kglad, thanks for the quick response.  I'm not sure that's the correct answer, because:

1. It was working find a moment ago across several different project files, and then it stopped working across all of them

2. I'm only using english characters and numbers

However I'd be willing to try it out.  How do I embed the used characters?  I'm a beginner and this isn't discussed in the workbook

Thank you for your time!

kglad
Community Expert
Community Expert
May 17, 2010

click on the textfield to select it.  in the properties panel there's an embed combobox you can click that allows you to embed characters.

if that fails.  save your fla and close flash.  reopen flash and reopen your fla.  retest