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

Update imported font linkage class during runtime?

Explorer ,
Jul 09, 2020 Jul 09, 2020

Copy link to clipboard

Copied

All of the text fields in my swf use my custom library fonts, which import in from a shared swf file.

 

Is it possible to update the imported font linkage class, such that I can switch the font of all text fields using this font during runtime?

 

The reason I want to do this is when switching to Chinese/Japanese/Korean in my app, I'd like to switch to a Unicode font, whichout having to update every single text field.

 

Thanks in advance.

TOPICS
ActionScript , How to

Views

116

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 ,
Jul 15, 2020 Jul 15, 2020

Copy link to clipboard

Copied

Not sure. Give it a shot and let us know if it works!

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
Explorer ,
Jul 15, 2020 Jul 15, 2020

Copy link to clipboard

Copied

LATEST

I'm not sure how I'd go about it though. It's essentially updating a class definition at runtime. I imagine things like font classes are constant at runtime.

 

But I'm not sure. So if anyone has any ideas, please chime in.

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