Fixed AS2 - some minor cases in class detection

This commit is contained in:
Jindra Petřík
2021-11-27 09:45:30 +01:00
parent e33cd9ba99
commit e348df4bbe
6 changed files with 178 additions and 14 deletions

View File

@@ -12,10 +12,12 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash;
import com.jpexs.decompiler.flash.tags.DoActionTag;
import com.jpexs.decompiler.flash.tags.DoInitActionTag;
import com.jpexs.decompiler.flash.tags.Tag;
/**
@@ -34,4 +36,13 @@ public class ActionScript2TestBase extends ActionScriptTestBase {
}
return null;
}
protected DoInitActionTag getFirstInitActionTag() {
for (Tag t : swf.getTags()) {
if (t instanceof DoInitActionTag) {
return (DoInitActionTag) t;
}
}
return null;
}
}