If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issues#2638 Decompiled AS3 has wrong symbol in embed metadata
Author:
Fancy2209
Fancy2209Date created:
Type: feature
Visibility: Everybody
Assigned to:
Labels: Embed
State: new 

> What steps will reproduce the problem?
1. Open a SWF who exports a movieclip to AS3 in Jpexs
2. Verify that instead of the name of the symbol that is exported to AS3, a name made out
of the symbol + symbol id is made
> What is the expected output? What do you see instead?
Example from the game The Fancy Pants Adventures: World 4 Part 1
It generates this:
```actionscript
package
{
import flash.display.MovieClip;
[Embed(source="/_assets/assets.swf", symbol="symbol10497")]
public dynamic class CharWalkLanded extends MovieClip
{
public var head:MovieClip;
public var patternGuide:MovieClip;
public var pencil:MovieClip;
public function CharWalkLanded()
{
super();
}
}
}
```
But that does not compile, right embed tag would be
`[Embed(source="/_assets/assets.swf", symbol="CharWalkLanded")]`
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
version 25.1.0 nightly build 3424, also verified in 25.1, 25.0 and 24.1
> Please provide any additional information below. If the problem is related to a SWF
file, attach it here, otherwise we can't help you.
750785_fpaworld4p1.swf (25,883 KiB)I marked this as bug but I meant to do feature
Also mistyped, it does build
Would just be cleaner if the AS Linkage Names from assets.swf matched the actual source
SWF's name
Type: bug→feature
Oh I found why I remebered it didn't compile
Even if FFDec exported AS3, it'll have an ExportAssets tag instead of a SymbolClass tag,
that should be a separate issue, correct?
If it's same SWF file, I think I can do an exception and fix it in this issue.
It compiles for me. The assets.swf has exportassets tag and that is correct even for AS3 I
guess.
If I put SymbolClass tag there, then I need also put a class in that assets.swf file,
which is not needed and does not make sense.
The [Embed symbol="xxx"] parameter takes export name and this should work.
What will not work is when you have some framescripts inside the sprite and also if the
sprite contains another sprite which has frame scripts. Then the frame scripts are just
ignored.
In such cases, I recommend to export into FLA format instead of exporting scripts with
[Embed].
Can verify the same behaviour with the SWF attached
Sorry didn't mean to send that
It's probably just Flex beeing more strict than it should?
It's showing errors in VSCode and it seemed to also not compile, but may be just the other
errors in the generated AS3.
Okay yeah, got confused, it does compile but VSCode complains.
That's fine then, sorry for the false warning
