Update imported font linkage class during runtime?

Community Beginner ,
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

57

Likes

translate

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

Copy link to clipboard

Copied

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

Likes

translate

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

Copy link to clipboard

Copied

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.

Likes

translate

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