There was a problem, the essence of which is as follows:

HTML

<object type='application/x-shockwave-flash' data='/test.swf'> <param name='flashvars' value='var1=привет ребята' /> </object> 

ActionScript

 var text_1 = loaderInfo.parameters.var1; if(text_1 != null && text_1 != "") { movik_my_text.text = text_1; // здесь чего-то не хватает } 

The fact is that the text received through FlashVars is for some reason not inserted into the flash drive. Or inserted, but with some distortion (or incomplete text is displayed). What are the solutions to this problem?

  • Solution found. For textField, it was necessary to set the value to "Device fonts". I also had "Smoothing for readability." - StasHappy

1 answer 1

In all situations except “Device Fonts”, you need to embed the font in the swf. You can do this in the Flash editor (Animate). https://helpx.adobe.com/en/animate/using/embed-fonts-consistent-text-appearance.html

If TextField is created by code, then by default it will use "Device Fonts", i.e. The embedFonts property will be false.