• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Crazy bug - Flash is deleting random string characters

New Here ,
May 16, 2010 May 16, 2010

Copy link to clipboard

Copied

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!

TOPICS
ActionScript

Views

3.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 16, 2010 May 16, 2010

Copy link to clipboard

Copied

you need to embed all the used characters.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 16, 2010 May 16, 2010

Copy link to clipboard

Copied

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 16, 2010 May 16, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 16, 2010 May 16, 2010

Copy link to clipboard

Copied

Ah, it worked!  Thanks so much! 

Do you know what might have set them to be unembedded?  And why were only a few of the lowercase letters showing up while others didn't (versus all or nothing)?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 17, 2010 May 17, 2010

Copy link to clipboard

Copied

you can embed particular letters.   there's an autofill button to embed the minimum amount of characters needs for a textfield that has its text assigned in the authoring environment.  then if you assign different text using actionscript, you'll have exactly the problem you described.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 13, 2010 Jun 13, 2010

Copy link to clipboard

Copied

Have the same problem. Everything is ok in CS4 but in CS5 some chars are missing.

Embedding font is not a solution. Why I should embed system fonts like Arial or Tahoma? Size of resulted SWF is critical for me. At last it works in CS4 and I want to see the same behavior in CS5.

Is it a bug or a new unknown feature?

thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 13, 2010 Jun 13, 2010

Copy link to clipboard

Copied

i don't think that's a "feature".

and, i don't know why you're having that problem.  but i know you're not alone.  i've seen several posts about people having trouble with missing characters in cs5 textfields.  i haven't been able to duplicate the problem.  are you using a mac?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 13, 2010 Jun 13, 2010

Copy link to clipboard

Copied

Thanks, kglad

We have this problem on win 7 and win xp. I think it not depending on os.

It works fine if I add textfield at runtime but If I have a textfield on stage and change text I see only chars that were in original string.

For example, I have textfield on stage with default value 'country', change texfield.text = 'canada' and see 'cn'

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 14, 2010 Jun 14, 2010

Copy link to clipboard

Copied

that i can duplicate.  but when i embed the font and include all the previously missing characters, i see no problem.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 14, 2010 Jun 14, 2010

Copy link to clipboard

Copied

You are right! No problem with embedded chars.

But why I have problem with non-embedded fonts? Arial, Tahoma etc. May be I miss something new in CS5?

I want to migrate to CS5 from CS4. I have download trial version, try to compile my projects and can't see text boxes correctly

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 14, 2010 Jun 14, 2010

Copy link to clipboard

Copied

that's a bug.  it may be corrected in an update.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 14, 2010 Jun 14, 2010

Copy link to clipboard

Copied

Thanks, kglad!

Should I post this bug somewhere or it's already known?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 14, 2010 Jun 14, 2010

Copy link to clipboard

Copied

i don't know if this has been reported/fixed.

here's where you report bugs, though:  https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 15, 2010 Jun 15, 2010

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 15, 2010 Jun 15, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2010 Jun 21, 2010

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 05, 2010 Jul 05, 2010

Copy link to clipboard

Copied

LATEST

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.....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines