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

#1724 Sounds added and exported via tag editor using the GUI won't play when I edit the actionscript to do so.
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: Tag position
State: closed Help

> What steps will reproduce the problem? I'm using the GUI to add sounds to a SWF file. I created new DefineSound tags, replaced the empty sounds with MP3 files, used ExportAsset tags to allow them to interact with ActionScript, and used AS2 to play the sounds. > What is the expected output? What do you see instead? Normally I would expect it to just work out of the box, but it just skips playing the sound entirely. I'm not sure why other sounds work if I replace the file name (line 23 on frame 238) with a preexisting sound. > What version of the product are you using? Is it "nightly build"? Which operating system do you have? Version 14.4.0 Nightly build 1939 using Windows 10 Education 20H2 (OS Build 19042.1083) > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. I'm not entirely convinced there's not something I'm doing wrong still. Feel free to let me know if that's the case.
Downloadhungry4.swf (394 KiB)
user
I've been explaining this in another issue ticket: Flash file consists of tags, and they are read sequentially until ShowFrame is encountered, then the corresponding frame is shown. Now, if some script or tag in the currently shown frame mentions a tag that is not yet defined, i.e. it's later in the file, then it won't work and will lead to unpredictable results. FFDEC adds new stuff at the end of the file of course, and sadly there is no way to rearrange tags. Yet. Until such functionality is added, all you can do is use hex editor to do it manually.
admin
In FFDec 16.0.0, you can move tag to proper position with right click context menu -> move tag. So just move the sound to the position before it's reffered and it should work.
State: new→upgraded
admin
State: upgraded→closed