I am planning editing someone else's fla project (I do not have contact with them, trust me. And no I'm not trying to steal their code.)
The project ran fine as a swf, but when I load the fla and try to test it I get an error that don't really understand.
I checked and it seemed like everything was correct; no missing semicolons, no missing brackets, no spelling mistakes. I also looked up the issue and found people with similar errors but much different code, making it hard for me to understand the solution. I used to be pretty good with ActionScript, but I have not used it in a long time and have gotten pretty unfamiliar with a lot of things.
if (!this.patchFailed)
{
try
{
var _loc_2:* = this.patchLoader.content;
data = _loc_2.this.patchLoader.content["patch"](data);
}
catch (error:Error)
{
trace("[mochicrypt] patch failed", error);
}
}
The error that I'm getting is a result of "data = _loc_2.this.patchLoader.content["patch"]
"
The swf I extracted this from worked fine, like I said, but in here it gives this error and the swf is just the canvas color. I am using Animate CC 2017 and the swf was made in AS3.
The exact error says, "1084: Syntax error: expecting identifier before this."