#1260, #1438 AS1/2 direct editing on(xxx), onClipEvent(xxx) handlers

This commit is contained in:
Jindra Petřík
2021-02-14 11:26:29 +01:00
parent d4a5e03462
commit 03f033035f
16 changed files with 295 additions and 39 deletions

View File

@@ -12,7 +12,8 @@
* 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.action.Action;
@@ -2079,12 +2080,13 @@ public class SWFInputStream implements AutoCloseable {
* @param swf
* @param tag
* @param name
* @param parentClipActions
* @return CLIPACTIONRECORD value
* @throws IOException
*/
*/
public CLIPACTIONRECORD readCLIPACTIONRECORD(SWF swf, Tag tag, String name, CLIPACTIONS parentClipActions) throws IOException {
newDumpLevel(name, "CLIPACTIONRECORD");
newDumpLevel(name, "CLIPACTIONRECORD");
CLIPACTIONRECORD ret = new CLIPACTIONRECORD(swf, this, tag, parentClipActions);
endDumpLevel();
if (ret.eventFlags.isClear()) {
return null;
@@ -2108,7 +2110,7 @@ public class SWFInputStream implements AutoCloseable {
ret.allEventFlags = readCLIPEVENTFLAGS("allEventFlags");
CLIPACTIONRECORD cr;
ret.clipActionRecords = new ArrayList<>();
ret.clipActionRecords = new ArrayList<>();
while ((cr = readCLIPACTIONRECORD(swf, tag, "record", ret)) != null) {
ret.clipActionRecords.add(cr);
}
endDumpLevel();