Skip to main content
Walrus322
Known Participant
December 2, 2016
Question

ActionScript Wont Convert to SWF?

  • December 2, 2016
  • 4 replies
  • 1089 views

I am trying to convert an ActionScript file decompiled as a SWF back to a SWF file after editing the script/source.

I have previously edited an ActionScript file that was a SWF file, and when I went to compile it back into a SWF file, it worked fine but this one isn't.

For this case, when I check the compiled SWF, it just has this in the source:

// Action script...

// [Action in Frame 1]

In the Actions window in Flash Professional CS6, it has:

#include "fla6ADE.as" .

Is there another way to compile the ActionScript source back to a SWF file? I tried exporting it as a movie like the other ones I have done it to, and they worked fine.

This topic has been closed for replies.

4 replies

Walrus322
Walrus322Author
Known Participant
December 4, 2016

Yeah, I am using Sothink's and it worked fine but for this script it doesn't. I opened the AS file and it has the source, but when I compile it to a SWF again after changing the decompiled code, there is barely anything in it except that one message above.

Participant
December 5, 2020

Any luck with it?

Walrus322
Walrus322Author
Known Participant
December 3, 2016

Do you think it is only for this SWF?

I successfully did the same thing to other SWF files, and they work fine as a SWF file again.

kglad
Community Expert
Community Expert
December 4, 2016

i've never found any decompiler that worked on all swfs.  sothink's is the best but there can still be problems with some swfs.

i'd check for that .as file and see if your decompiler created it.  if so, copy its code into the place where the include code.

Walrus322
Walrus322Author
Known Participant
December 3, 2016

Na, the compiled FLA is the one that says

// Action script...

// [Action in Frame 1]

Decompiling it worked fine, it is just when compiling it back to a SWF.

kglad
Community Expert
Community Expert
December 3, 2016

a compiled fla is a swf and you're probably not looking at the code in the swf.

you have a decompiler problem.

kglad
Community Expert
Community Expert
December 2, 2016

you decompiled a swf to create a fla.  you used that fla to publish a swf and you're having a problem.

is that correct?

if so, what's the problem?

Walrus322
Walrus322Author
Known Participant
December 3, 2016

When I go to compile the fla source back to a SWF, all the SWF output says is

// Action script...

// [Action in Frame 1]

instead of the ActionScript/FLA source.

kglad
Community Expert
Community Expert
December 3, 2016

you mean the that's what you see in the decompiled fla.

if so, that's a decompiler issue.