Here is the function displayResult :
Code:
public function displayResult(param1:Boolean) : void
{
var _loc_2:* = null as BitmapData;
if (param1)
{
_loc_2 = new Right(0, 0);
}
else
{
_loc_2 = new Wrong(0, 0);
}
var _loc_3:* = new Bitmap(_loc_2);
_loc_3.x = 5;
_loc_3.y = _scoreFields[_currentLevel].y + 7;
_layerResult.addChild(_loc_3);
return;
}
I thought that if i make the game always do a new Right(0, 0) it'd work but i was wrong.
Here is RAW code :
Code:
public function displayResult(param1:Boolean) : void
{
1 0 1361 1 1431 2 150//d0
_as3_getlocal <0>
//30
_as3_pushscope
//20
_as3_pushnull
//86 43
_as3_astype flash.display::BitmapData
//d6
_as3_setlocal <2>
//f1 90 0b
_as3_debugfile "src/game/PointsJauge.hx"
//f0 88 01
_as3_debugline line number: 136
//ef 01 c8 08 00 88 01
_as3_debug 1, 1096, 0, 136
//f0 8f 01
_as3_debugline line number: 143
//ef 01 7b 01 8f 01
_as3_debug 1, 123, 1, 143
//f0 90 01
_as3_debugline line number: 144
//d1
_as3_getlocal <1>
//12 15 00 00
_as3_iffalse offset: 21
//f0 91 01
_as3_debugline line number: 145
//5d dd 07
_as3_findpropstrict game::Right
//24 00
_as3_pushbyte 0
//24 00
_as3_pushbyte 0
//4a dd 07 02
_as3_constructprop game::Right(param count:2)
//80 43
_as3_coerce flash.display::BitmapData
//d6
_as3_setlocal <2>
//10 14 00 00
_as3_jump offset: 20
//f0 92 01
_as3_debugline line number: 146
//f0 93 01
_as3_debugline line number: 147
//5d dc 07
_as3_findpropstrict game::Wrong
//24 00
_as3_pushbyte 0
//24 00
_as3_pushbyte 0
//4a dc 07 02
_as3_constructprop game::Wrong(param count:2)
//80 43
_as3_coerce flash.display::BitmapData
//d6
_as3_setlocal <2>
//f0 96 01
_as3_debugline line number: 150
//ef 01 86 01 02 96 01
_as3_debug 1, 134, 2, 150
//5d 65
_as3_findpropstrict flash.display::Bitmap
//d2
_as3_getlocal <2>
//4a 65 01
_as3_constructprop flash.display::Bitmap(param count:1)
//80 65
_as3_coerce flash.display::Bitmap
//d7
_as3_setlocal <3>
//f0 97 01
_as3_debugline line number: 151
//d3
_as3_getlocal <3>
//24 05
_as3_pushbyte 5
//68 63
_as3_initproperty x
//f0 98 01
_as3_debugline line number: 152
//d3
_as3_getlocal <3>
//5e e1 07
_as3_findproperty _scoreFields
//66 e1 07
_as3_getproperty _scoreFields
//5e e2 07
_as3_findproperty _currentLevel
//66 e2 07
_as3_getproperty _currentLevel
//66 39
_as3_getproperty {}
//80 81 03
_as3_coerce TextField
//66 64
_as3_getproperty y
//24 07
_as3_pushbyte 7
//a0
_as3_add
//75
_as3_convert_d
//68 64
_as3_initproperty y
//f0 9a 01
_as3_debugline line number: 154
//5e eb 07
_as3_findproperty _layerResult
//66 eb 07
_as3_getproperty _layerResult
//d3
_as3_getlocal <3>
//4f 60 01
_as3_callpropvoid addChild(param count:1)
//f0 9c 01
_as3_debugline line number: 156
//47
_as3_returnvoid
}
And here is what i did :
Replace
Code:
d6 10 14 00 00 f0 92 01 f0 93 01 5d dc 07 24 00 24 00 4a dc 07 02 80 43
by
Code:
d6 d1 12 15 00 00 f0 91 01 5d dd 07 24 00 24 00 4a dd 07 02 80 43 02 02
I removed some instructions of "debug" because i thought it wouldn't make any difference and added "02 02" to not change the length