Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have a rather large SWF file (27Mb) and as a project i'd like to edit the action scripts within it and also change a few images around. Using JPEXS free flash decompiler, I was able to replace the images I wanted. But when I try to save changes to the main script, the program gets stuck on a line that I hadn't changed at all.

Line 2788: if(saveFile.data.tableTeacher[this.day] == null)

The program pops up a message saying "PARENT_CLOSE expected but COMMA found on line 2788"

Here is a snippet of code leading up to the error line:

for(this.day = 0; this.day <= 5; this.day++) 
{ 
    if(saveFile.data.tableSubject[this.day] == null) 
    { saveFile.data.tableSubject[this.day] = new Array(); } 
    
    if(saveFile.data.tableRoom[this.day] == null) 
    { saveFile.data.tableRoom[this.day] = new Array(); } 
    
    if(saveFile.data.tableTeacher[this.day] == null) //# Line 2788
    { saveFile.data.tableTeacher[this.day] = new Array(); } 
    
    if(saveFile.data.tableAttend[this.day] == null)

    .... etc

Is there any other way I can edit actionscripts?

question from:https://stackoverflow.com/questions/65646209/how-can-i-edit-the-action-script-within-an-swf-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
822 views
Welcome To Ask or Share your Answers For Others

1 Answer

You need to post more code around that block of code.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...