Additional Info
|
For example, I would like to change the value of health to 100.
I know that pushbyte max value is 127(2f) and pushint is way more larger. Is a difference between using 24 64 or 2d 07? or can I use any of them? pushbyte 100 = 24 64 pushint 100 = 2d 07 |
Additional Info
|
Depends....If you have the number 100 in your constant pool then you can use either. Using pushint, you're limited to the numbers used in the code. With pushbyte you can use whatever you want up to 127. If you can steal a byte from somewhere else in the code you could use pushshort (25 xx xx), which has a max value of 32767 I believe.
Kadat or anyone else for that matter, feel free to chime in and correct me if I'm giving bad info here, it's been awhile... |
Additional Info
|
Pushint
2D = pushint opcode 07 = arbitrary constant pool index In one .swf the number at index seven in the constant pool is 100, in another it's 13215. Pushbyte 24 = pushbyte opcode 64 = 100 in hexadecimal |
Additional Info
|