Fixed #2127 Wrong parameter order in AS1/2 P-code Action GetURL2 documentation

Changed #2127 AS1/2 P-code Action GetURL2 switched parameters back - correct order is (loadVariablesFlag, loadTargetFlag, sendVarsMethod),
 code from 19.1.x to 20.0.0 is still accepted
This commit is contained in:
Jindra Petřík
2023-11-18 01:04:57 +01:00
parent 147b19da6a
commit 8453e48ba7
3 changed files with 9 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ public class ActionGetURL2 extends Action {
@Override
public String toString() {
return "GetURL2 " + sendVarsMethod + ", " + loadVariablesFlag + ", " + loadTargetFlag;
return "GetURL2 " + loadVariablesFlag + ", " + loadTargetFlag + ", " + sendVarsMethod;
}
@Override
@@ -113,7 +113,7 @@ public class ActionGetURL2 extends Action {
ASMParsedSymbol symb = lexer.lex();
boolean sendVarsMethodLast = false;
if (symb.type == ASMParsedSymbol.TYPE_BOOLEAN) { //backwards compatibility
if (symb.type == ASMParsedSymbol.TYPE_BOOLEAN) { //backwards compatibility. In 19.1.0 up to 20.0.0 sendVarsMethod is first
sendVarsMethodLast = true;
}
lexer.pushback(symb);

View File

@@ -377,10 +377,11 @@ action.geturl2.name = GetURL2
action.geturl2.code = 0x9A
action.geturl2.swfVersion = 4
action.geturl2.shortDescription = Get a URL (stack based)
action.geturl2.description =
action.geturl2.description =
action.geturl2.stackBefore = target, url
action.geturl2.stackAfter =
action.geturl2.operands = sendVarsMethod:integer, loadTargetFlag:boolean, loadVariablesFlag:boolean
# Note: official documentation has the order of fields wrong
action.geturl2.operands = loadVariablesFlag:boolean, loadTargetFlag:boolean, sendVarsMethod:integer
action.gotoframe2.name = GotoFrame2
action.gotoframe2.code = 0x9F