Skip to content

Commit

Permalink
Fixed #1963 Reading CLIPEVENTFLAGS ClipActionEndFlag on SWF versions …
Browse files Browse the repository at this point in the history
…>= 6
  • Loading branch information
jindrapetrik committed Feb 12, 2023
1 parent b43f99e commit 876ef22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
- [#1960] Hide tag tree root handles as it was in previous versions
- [#1964] Freezing on releasing mouse while shape transforming (deadlock)
- [#1961] Characters can use characterId 0, PlaceObject can use depth 0
- [#1963] Reading CLIPEVENTFLAGS ClipActionEndFlag on SWF versions >= 6

### Changed
- [#1960] Quick search does not search in SWF name or folder names
Expand Down Expand Up @@ -2946,6 +2947,7 @@ All notable changes to this project will be documented in this file.
[#1960]: https://www.free-decompiler.com/flash/issues/1960
[#1964]: https://www.free-decompiler.com/flash/issues/1964
[#1961]: https://www.free-decompiler.com/flash/issues/1961
[#1963]: https://www.free-decompiler.com/flash/issues/1963
[#1029]: https://www.free-decompiler.com/flash/issues/1029
[#1948]: https://www.free-decompiler.com/flash/issues/1948
[#1941]: https://www.free-decompiler.com/flash/issues/1941
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ public CLIPEVENTFLAGS readCLIPEVENTFLAGS(String name) throws IOException {
ret.clipEventPress = readUB(1, "clipEventPress") == 1;
ret.clipEventInitialize = readUB(1, "clipEventInitialize") == 1;
ret.clipEventData = readUB(1, "clipEventData") == 1;
if (swf.version >= 6) {
if (swf.version >= 6 && available() > 0) {
ret.reserved = (int) readUB(5, "reserved");
ret.clipEventConstruct = readUB(1, "clipEventConstruct") == 1;
ret.clipEventKeyPress = readUB(1, "clipEventKeyPress") == 1;
Expand Down

0 comments on commit 876ef22

Please sign in to comment.