
Originally Posted by
Arachis
It looks like you're missing a step:
Code:
L85:
getlocal0
getproperty QName(PrivateNamespace("_-2GZ", "_-5fp:RoomMessageHandler#0"), "_-0Yk")
getlocal0
getproperty QName(PrivateNamespace("_-2GZ", "_-5fp:RoomMessageHandler#0"), "_-4pF")
getlocal2
getproperty QName(PackageNamespace(""), "userId")
getlocal2
getproperty QName(PackageNamespace(""), "gesture")
callpropvoid QName(Namespace("_-3NX"), "_-0Rf"), 3
debugline 1129
pushstring "<[^>]*>"
pushstring "gi"
constructprop QName(PackageNamespace(""),"RegExp"), 2
coerce QName(PackageNamespace(""),"RegExp")
setlocal 4
// Missed a chunk of instructions here.
getlocal0
getproperty QName(PrivateNamespace("_-2GZ", "_-5fp:RoomMessageHandler#0"), "_-0Yk")
getlocal0
getproperty QName(PrivateNamespace("_-2GZ", "_-5fp:RoomMessageHandler#0"), "_-4pF")
getlocal2
getproperty QName(PackageNamespace(""), "userId")
getlex QName(PackageNamespace("_-6Sq"), "_-1-T")
getproperty QName(PackageNamespace(""), "_-5en")
getlex QName(PackageNamespace(""), "Math")
getlocal2
getproperty QName(PackageNamespace(""), "text")
getproperty QName(PackageNamespace(""), "length")
pushbyte 10
divide
callproperty QName(PackageNamespace(""), "ceil"), 1
callpropvoid QName(Namespace("_-3NX"), "_-5Bq"), 4
debugline 1131
returnvoid
This is also needed(after 'setlocal4'):
Code:
ofs00249:getlocal 2
ofs00251:getproperty Qname(PackageNamespace(""),"text")
ofs00254:getlocal 4
ofs00256:pushstring ""
ofs00258:callproperty Qname(Namespace("http://adobe.com/AS3/2006/builtin"),"replace") 2
ofs00262:coerce_s
ofs00263:setlocal 5
In the end it should end up looking like this:
Code:
debugline 1129
pushstring "<[^>]*>"
pushstring "gi"
constructprop QName(PackageNamespace(""),"RegExp"), 2
coerce QName(PackageNamespace(""),"RegExp")
setlocal 4
// Don't forget this.
getlocal 2
getproperty Qname(PackageNamespace(""),"text")
getlocal 4
pushstring ""
callproperty Qname(Namespace("http://adobe.com/AS3/2006/builtin"),"replace") 2
coerce_s
setlocal 5
getlocal0
getproperty QName(PrivateNamespace("_-2GZ", "_-5fp:RoomMessageHandler#0"), "_-0Yk")
getlocal0
getproperty QName(PrivateNamespace("_-2GZ", "_-5fp:RoomMessageHandler#0"), "_-4pF")
getlocal2
getproperty QName(PackageNamespace(""), "userId")
getlex QName(PackageNamespace("_-6Sq"), "_-1-T")
getproperty QName(PackageNamespace(""), "_-5en")
getlex QName(PackageNamespace(""), "Math")
// REMOVE THIS: getlocal2
// REMOVE THIS: getproperty QName(PackageNamespace(""), "text")
// REPLACE WITH: getlocal 5
getproperty QName(PackageNamespace(""), "length")
pushbyte 10
divide
callproperty QName(PackageNamespace(""), "ceil"), 1
callpropvoid QName(Namespace("_-3NX"), "_-5Bq"), 4
debugline 1131
returnvoid
Edit: I've actually haven't tried if this actually works, just editing through jpexs to see if there is a problem with the instructions.
Tried it out, still no luck though. Found out that I had to up localcount to 6 to enable the usage of local 4 and local 5. still disconnect when I talk with this error:
Code:
Error in update receiver "com.sulake.bootstrap::CoreCommunicationManagerBootstrap": VerifyError: Error #1024
This is the total code within the method, do you know what I did wrong?
Code:
trait method Qname(PrivateNamespace("_-2GZ"),"_-3vG")
dispid 0
method
name null
param Qname(PackageNamespace("_-1Z6"),"_-1dD")
returns Qname(PackageNamespace(""),"void")
body
maxstack 7
localcount 6
initscopedepth 4
maxscopedepth 5
code
debugfile "k"
debugline 1110
getlocal_0
pushscope
pushnull
coerce Qname(PackageNamespace("_-28H"),"_-5rd")
setlocal_2
debug 1 "k" 0 1110
debug 1 "k" 1 1113
debug 1 "k" 2 1114
debugline 1112
getlocal_0
getproperty Qname(PrivateNamespace("_-2GZ"),"_-0Yk")
pushnull
ifne ofs002b
returnvoid
ofs002b:getlocal_0
getproperty Qname(PrivateNamespace("_-2GZ"),"_-0Yk")
getproperty Qname(Namespace("_-5Aw"),"roomSessionManager")
getlocal_0
getproperty Qname(PrivateNamespace("_-2GZ"),"_-4pF")
callproperty Qname(Namespace("_-1Bx"),"getSession") 1
coerce Qname(PackageNamespace("_-0ZD"),"_-0LF")
setlocal_3
debugline 1116
getlocal_1
getlex Qname(PackageNamespace("_-6AD"),"_-1c4")
istypelate
iffalse ofs005d
debugline 1117
getlocal_1
getlex Qname(PackageNamespace("_-6AD"),"_-1c4")
astypelate
callproperty Qname(PackageNamespace(""),"_-1A9") 0
coerce Qname(PackageNamespace("_-28H"),"_-5rd")
setlocal_2
jump ofs00b7
ofs005d:getlocal_1
getlex Qname(PackageNamespace("_-6AD"),"_-3Fw")
istypelate
iffalse ofs009c
debugline 1119
getlocal_1
getlex Qname(PackageNamespace("_-6AD"),"_-3Fw")
astypelate
callproperty Qname(PackageNamespace(""),"_-1A9") 0
coerce Qname(PackageNamespace("_-28H"),"_-5rd")
setlocal_2
debugline 1120
getlocal_2
coerce_a
convert_b
dup
iffalse ofs0084
pop
getlocal_3
coerce_a
convert_b
ofs0084:dup
iffalse ofs0093
pop
getlocal_2
getproperty Qname(PackageNamespace(""),"userId")
getlocal_3
getproperty Qname(Namespace("_-2kn"),"_-1Ge")
equals
ofs0093:iffalse ofs0098
returnvoid
ofs0098:jump ofs00b7
ofs009c:getlocal_1
getlex Qname(PackageNamespace("_-6AD"),"_-53l")
istypelate
iffalse ofs00b7
debugline 1122
getlocal_1
getlex Qname(PackageNamespace("_-6AD"),"_-53l")
astypelate
callproperty Qname(PackageNamespace(""),"_-1A9") 0
coerce Qname(PackageNamespace("_-28H"),"_-5rd")
setlocal_2
debugline 1125
ofs00b7:getlocal_2
pushnull
ifne ofs00be
returnvoid
ofs00be:getlocal_0
getproperty Qname(PrivateNamespace("_-2GZ"),"_-0Yk")
getlocal_0
getproperty Qname(PrivateNamespace("_-2GZ"),"_-4pF")
getlocal_2
getproperty Qname(PackageNamespace(""),"userId")
getlocal_2
getproperty Qname(PackageNamespace(""),"gesture")
callpropvoid Qname(Namespace("_-3NX"),"_-0Rf") 3
debugline 1129
pushstring "<[^>]*>"
pushstring "gi"
constructprop Qname(PackageNamespace(""),"RegExp") 2
coerce Qname(PackageNamespace(""),"RegExp")
setlocal 4
getlocal_2
getproperty Qname(PackageNamespace(""),"text")
getlocal 4
pushstring ""
callproperty Qname(Namespace("http://adobe.com/AS3/2006/builtin"),"replace") 2
coerce_s
setlocal 5
getlocal_0
getproperty Qname(PrivateNamespace("_-2GZ"),"_-0Yk")
getlocal_0
getproperty Qname(PrivateNamespace("_-2GZ"),"_-4pF")
getlocal_2
getproperty Qname(PackageNamespace(""),"userId")
getlex Qname(PackageNamespace("_-6Sq"),"_-1-T")
getproperty Qname(PackageNamespace(""),"_-5en")
getlex Qname(PackageNamespace(""),"Math")
getlocal 5
getproperty Qname(PackageNamespace(""),"length")
pushbyte 10
divide
callproperty Qname(PackageNamespace(""),"ceil") 1
callpropvoid Qname(Namespace("_-3NX"),"_-5Bq") 4
debugline 1131
returnvoid ; trait
end ; code
end ; body
end ; method
end ; trait
It translates to:
Code:
var _loc2_:§_-5rd§ = null;
if(this.§_-0Yk§ == null)
{
return;
}
var _loc3_:§_-0LF§ = this.§_-0Yk§.roomSessionManager.getSession(this.§_-4pF§);
if(param1 is §_-1c4§)
{
_loc2_ = (param1 as §_-1c4§).§_-1A9§();
}
else if(param1 is §_-3Fw§)
{
_loc2_ = (param1 as §_-3Fw§).§_-1A9§();
if(_loc2_ && _loc3_ && _loc2_.userId == _loc3_.§_-1Ge§)
{
return;
}
}
else if(param1 is §_-53l§)
{
_loc2_ = (param1 as §_-53l§).§_-1A9§();
}
if(_loc2_ == null)
{
return;
}
this.§_-0Yk§.§_-0Rf§(this.§_-4pF§,_loc2_.userId,_loc2_.gesture);
var _loc4_:RegExp = /<[^>]*>/gi;
var _loc5_:String = _loc2_.text.replace(_loc4_,"");
this.§_-0Yk§.§_-5Bq§(this.§_-4pF§,_loc2_.userId,§_-1-T§.§_-5en§,Math.ceil(_loc5_.length / 10));