mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-19 19:01:56 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user