JPEXS Free Flash Decompiler Issue Tracker

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 issuesList of issues

#2652 How to trigger AS code while exporting
Author:
Date created:
Type: question
Visibility: Everybody
Assigned to:
State: opened Help

This is kind of related to #2650 In the linked SWF file, I have a sprite (chid=1983) that contains the following AS code : ``` onClipEvent(load){ _rotation = 360 * Math.random(); t = 50 + random(50); _xscale = t; _yscale = t; } ``` It randomly change the rotation and the scale of the sprite. When exporting this sprite, the script doesn't run, so I always get the same rotation / scale. Is there a way (a argument to the command line ?) to trigger the code when exporting the sprite ? So each run would give me a sprite with a different rotation / scale ? If there is not, do you have any advice on how to achieve this ?
Downloado1.swf (3,075 KiB)
FFDec does not execute ActionScript in exported sprites and/or main timeline frames. ActionScript execution is out of scope of FFDec. It is too complex to implement. Ruffle for example tries it for many years, still does not have it complete, and they have many contributors. FFDec has only one developer. I won't implement this, sorry.
State: new→opened
Thank you for clarifying, we can close this issue then 👍 By the way I never took the opportunity, but thank you for your work on FFDec. Not only the tool is amazing, but you're super reactive and helpful, every single time I opened an issue here. This is such a pleasure to work with FFDec, and a big part of it is because of you. Thanks !
Thank you for your kind words. I do not answer every issue immediately, there are some where I don't know how to react or they do not have priority for me. You just got lucky :-). Have a nice day!