Skip to content

Commit

Permalink
Added #1682 AS1/2 Context menu add script on frames/buttons/placeObjects
Browse files Browse the repository at this point in the history
Added Allow adding second DoAction to a frame
Fixed AS1/2 adding CLIPACTIONRECORD to PlaceObject which already has a record
  • Loading branch information
jindrapetrik committed Mar 19, 2023
1 parent 2b0e163 commit f8788ef
Show file tree
Hide file tree
Showing 4 changed files with 431 additions and 256 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ All notable changes to this project will be documented in this file.
- AS3 P-code editing class trait
- [#355] Updated Chinese translation
- FLA Export - AS2 - Sprite linkage to class
- [#1682] AS1/2 Context menu add script on frames/buttons/placeObjects
- Allow adding second DoAction to a frame

### Fixed
- [#1981] AS3 fully qualified (colliding) types in submethods
Expand Down Expand Up @@ -37,6 +39,7 @@ All notable changes to this project will be documented in this file.
- AS2 Class detection - TemporaryRegisterMark handling
- FLA export scripts location
- FLA export shape tweens (morphshapes)
- AS1/2 adding CLIPACTIONRECORD to PlaceObject which already has a record

### Changed
- AS1/2/3 P-code - format Number values with EcmaScript toString function
Expand Down Expand Up @@ -3008,6 +3011,7 @@ All notable changes to this project will be documented in this file.
[#1888]: https://www.free-decompiler.com/flash/issues/1888
[#1892]: https://www.free-decompiler.com/flash/issues/1892
[#355]: https://www.free-decompiler.com/flash/issues/355
[#1682]: https://www.free-decompiler.com/flash/issues/1682
[#1981]: https://www.free-decompiler.com/flash/issues/1981
[#1982]: https://www.free-decompiler.com/flash/issues/1982
[#1986]: https://www.free-decompiler.com/flash/issues/1986
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ private JPanel createFramePanel(DocumentListener checkEnabledDocumentListener) {
for (Tag t : swf.getTags()) {

if (t instanceof DoActionTag) {
hasScript = true;
//It is no longer a problem to have more than single DoAction
//hasScript = true;
}
if (t instanceof ShowFrameTag) {
MyFrame myf = new MyFrame(f);
Expand Down Expand Up @@ -288,7 +289,8 @@ private void populateSpriteNodes(MyTreeNode root, Timelined tim) {
boolean hasScript = false;
for (Tag t2 : s.getTags()) {
if (t2 instanceof DoActionTag) {
hasScript = true;
//It is no longer a problem to have more than single DoAction
//hasScript = true;
}
if (t2 instanceof ShowFrameTag) {
MyTreeNode frameNode = new MyTreeNode();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1130,4 +1130,9 @@ abc.linkedSwfs.more = +%num% swfs

#class trait P-code editor
error.class = Class error
warning.initializers.class = Class fields like extends and/or implements are also used in script initializer.\nEditing these values here in class trait is not enough!
warning.initializers.class = The "extends" object is also used in script initializer for scope stack.\nEditing the value here in class trait is not enough.

contextmenu.addScript.doaction = Add frame script - DoAction
contextmenu.addScript.buttoncondaction = Add button event script - BUTTONCONDACTION
contextmenu.addScript.clipactionrecord = Add instance event script - CLIPACTIONRECORD
contextmenu.addScript.doinitaction = Add sprite init script - DoInitAction
Loading

0 comments on commit f8788ef

Please sign in to comment.