JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

List of issuesList of issues

#2490 Editing ActionScript but remains unchanged
Author:
Date created:
Type: question
Visibility: Everybody
Assigned to:
Labels: Fonts
State: opened Help

Hello, a few days ago i decided to add a different language to fallout 4 and found out fallout 4 uses .swf so i researched and found JPEXS, my problem is when i edit the action script to change the unicode range of the font or create a different class nothing happens, no matter how i edit the action script it stays unchanged even though the JPEXS says code successfully saved. i tried both nightly and stable the issue remains much appreciated if you guys could help.
The embed metadata in the actionscript class are generated from font tags and are not editable as such. If you want to change characters of the font, you need to do it in fonts section of the tree. Select a font from fonts section and in the section on the right, you can either add individual characters from source font, or you can press Embed... to import whole unicode ranges from other font. See attached screenshot.
State: new→opened
Type: bug→question
sorry im a newbie at this its my first time encountering this file and never really modified fonts. i see, but i embedded fonts of my language the problem is the characters dont connect, im currently trying to edit the font with fontforge from what i discovered till now its like it only shows fonts to certain range, what i mean is the reason it doesnt show the other form of the characters(in our language other form of characters are used to connect a certain character with another) is they come beyond that range , when i edited the font only to test this i replaced some characters inside the range with the other character forms that i need it and worked. so i have came to the conclusion that the app had a problem and doesnt let me edit action scripts, sorry for the inconvenience but every tiny bit of help is much appreciated.
So adding the characters via the method I suggested works for you? What's the language name which has this kind of "other forms"? In SWF file you just define a glyph for unicode code point, in FFDec, you can add glyph of character from source font.
actually i did this method before you told me but i thought action script was the problem so i dropped that method and thought editing the action script was easier XD. its Kurdish language. you mean this ?
Yes, this dialog allows you to import whole ranges of characters from source font.
i tried this 2 days ago but it didnt work the problem of the range remains it shows characters like this س ڵ او *without the spaces i need it to be like this سڵاو
I tried to ask ChatGPT about the Kurdish language in SWF and here is result: ----------------------- The SWF format (Shockwave Flash), used by Adobe Flash, can technically support Kurdish texts and fonts, but with certain limitations. Kurdish—especially when written in the Arabic script (e.g., Sorani or Kurmanji in Arabic)—requires support for contextual character forms and character joining, similar to Arabic or Persian. Here are the key points to understand about Kurdish text/font support in SWF: ✅ What SWF can support: Embedded custom fonts: SWF allows embedding TrueType/OpenType fonts, which can include Kurdish characters. Basic Kurdish character rendering (Unicode): If you use the correct font and properly encoded text (e.g., UTF-8), SWF can render Kurdish characters. Partial support for Arabic-style joining: Some Flash text fields (like TextField) can display Arabic-like joining if handled properly. ❌ Limitations: SWF does not natively support complex text shaping (contextual forms): Letters in Arabic-based scripts change shape depending on their position in a word (initial, medial, final, or isolated). Flash does not handle this automatically without additional shaping logic. Lack of native RTL (right-to-left) text support in older Flash versions: If you're working with right-to-left Kurdish scripts (like Sorani), you may face issues with text direction. Requires custom shaping logic: Developers often had to implement custom character joining logic, or work around it by using bitmap text (rendering text as images). Summary: Kurdish fonts can work in SWF, if properly prepared. Correct display of joining forms and text direction often requires extra work or custom code. Flash's native support is limited, especially for languages like Kurdish written in the Arabic script. ------------------------------- end of ChatGPTs answer. I am afraid I cannot do any extra support for Kurdish fonts in FFDec, it seems that standard texts - DefineText/DefineText2/DefineEditText do not support that. In CS6 editor, it seems to be reachable by using TLF texts. FFDec does not handle or edit TLF texts. It looks like TLF texts require DefineFont4 font format, which FFDec cannot read/edit. If the app/game you are translating does not use TLF texts but only regular texts, then you probably cannot do anything about it.
Thankyou very much for your explanation, i have a few ideas i will try to implement them hope they will work the fonts_en file that i have send i got it from an Arabic modding website it seems that they didnt have this problem or have added custom logic.
is there anyway to replace the entire font with a new one inside the .swf file its so weird the fonts work perfectly on windows but it seems like the issue only happens when i embed the font.
No, in FFDec you cannot insert whole font, ONLY embed all its characters. As I said, SWF supports such texts only with special threatment - you need to use TLF or similar text engine which FFDec is unable to display or edit. Then there is special variant of font - DefineFont4, which has directly inserted the whole font file (CFF opentype). FFDec can't display it or edit too.
OK,so if i were to create other characters for the font that represent the connected forms will that work? like font A + font B = font C so when i type hello in kurdish instead of س ڵ او it connects like i want it to be سڵاو will this method work ?
silly me sorry i was sleepy when i wrote that what i mean if i were to edit the fonts and when i write two certain character one after another, can i make the custom character appear for example س+ڵ =سڵ since they do not connect other normally is it possible for this method to work ?
If you use DefineFont4 and CFF OpenType font, the behaviour of the text should be correct. But as I said, FFDec does not support this and never will.
what if i edit the fonts with fontforge or fontlab ?
Still cannot import it to SWF via FFDec. Also the game needs to use TLF text engine, which seems that this game does not use. Sorry, I can't help you.
OK, thank you for your patience.