Skip to content

Private functions/constants

-migrated-

3 posts

Re: Private functions/constants

Posted Feb 15, 2013 12:15 am

Ive already told you about constants

they are members of the constant_pool. The constant values of the AVM2 are one of the following types: int, uint, double, string, namespace, undefined, or null.  The values of these types appear directly in the ABC file or in the instruction encodings.

the constant pool looks like this.
Code: [Select]
u30 int_count 
s32 integer[int_count] 
u30 uint_count 
u32 uinteger[uint_count] 
u30 double_count 
d64 double[double_count] 
u30 string_count 
string_info string[string_count] 
u30 namespace_count 
namespace_info namespace[namespace_count] 
u30 ns_set_count
ns_set_info ns_set[ns_set_count] 
u30 multiname_count 
multiname_info multiname[multiname_count]
so if you want to change a double, you do it like this:

its dangerous to go alone! take this: http://www.adobe.com/content/dam/Adobe/en/devnet/actionscript/articles/avm2overview.pdf


just scan for them with CE as whatever the type is. u30 is tricky i guess, but there are tons of scripts and programs that can convert to u30 for you.

for functions, yes you can modify them with standard aob techniques.

I use this AoB tool to make all the AoBs I post. Try the online version if you dont feel like downloading it.
"Obviously, windows are central to Windows. They are so important that they named the operating system after them. But what is a window?"

Re: Private functions/constants

Posted Feb 16, 2013 7:02 am

So it doesn't matter if they're public constants or private constants; both are editable using aobs. Thanks!