Added #1682 AS1/2 Context menu add script on frames/buttons/placeObjects

Added Allow adding second DoAction to a frame
Fixed AS1/2 adding CLIPACTIONRECORD to PlaceObject which already has a record
This commit is contained in:
Jindra Petřík
2023-03-19 22:43:41 +01:00
parent 2b0e163c47
commit f8788efb2f
4 changed files with 433 additions and 258 deletions
@@ -227,7 +227,8 @@ public class AddScriptDialog extends AppDialog {
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);
@@ -288,7 +289,8 @@ public class AddScriptDialog extends AppDialog {
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();