Сегодня день обновлений ![]()
В очередной раз обновился getDefinitionNames. На этот раз сразу до версии 2.0.
Что нового, вы можете узнать по ссылке.
Сегодня день обновлений ![]()
В очередной раз обновился getDefinitionNames. На этот раз сразу до версии 2.0.
Что нового, вы можете узнать по ссылке.
Awesome class!!! very useful. MMh… i dont understand anything in your blog because i only can read english or spanish, but the code is very handy!
Hi there!
However yahoo’s babelfish translator does it’s best, with translating whole pages in foreign languages for me.
I’m sorry about posting in english, but I have not yet learned your language
I like your class a lot, I wanted to write such a class by myself, then makc gave me the link and I again realized that someone already did that job for me. Nice!
Probably your class has a bug in the Finder. Whenever I tried to parse my SWFs with your class, I got an End Of File Error when reading the instance-table. I added an expression to check wether there’s still data to read or not, so I got it to work.
Just wanted to let you know this.
Best Regards from Germany,
Daniel
Thanks, Daniel! I will fix the bug as soon as I find time.
After doing a bit more research, I think I know where the error comes from.
The abcFile-Docs speak a lot of u30-integers, those are really only 30bits long, so we can’t get them out of the bytearray by reading whole bytes.
Please correct me if I’m wrong, but it seems you read these u30-ints with your “readASInt”-method, which reads either 8 or 16 bits each time called.
However I’m not sure if I understand everything of the code, so please ignore if I’m wrong.
I found a class that could probably help: http://ntt.cc/2008/07/15/bitsreader-read-bits-from-given-bytearray.html
I’ll try this out tomorrow.
Best Regards,
Daniel
Forget what i wrote before, I finally found the problem source after doing several days of research.
With Flash 10 Adobe introduced a new Variable-Type called Vector. This is found under the MultinamesTable as 0x1D. See this: http://stackoverflow.com/questions/553445/how-do-generics-vector-work-inside-the-avm
Best Regards,
Daniel
Thank You, Daniel! I’ll fix getDefinitionNames as soon as possible.
There is still a weird error… I am getting the definitions of a SWF that has only 1 linkage named “state_1″, for some reason when i trace getDefinitionNames(contentLoaderInfo) i get this in the array “pet0_fla::mcAnimation_1_2,state_1″
what is this pet0_fla::mcAnimation_1_2 ???
i have checked my FLA and it is no where…
the name of my file is pet0.fla though.
but i only get this in one file with some animation, in files without animation all works fine.
You have mcAnimation_1_2 symbol in your Library, which contains some code at frames. Flash IDE automatically generates a class for this symbol.
Nope, there is no mcAnimation_1_2. I have looked verywhere and i have no clue where it is taking this… also it is just the fla in it is own folder, alone, it doesnt load any kind of swc or any other classpath other than the default.
Actually there is a mcAnimation_1 wich contains a stop(); and i have noticed that if i delete that stop the problem doesnt occur anymore.
But why it is doing this?
Because AC3 is built on the Classes. Code cannot be placed outside of class.
This this means that if there is a movieclip with a stop(); inside this will be treated exactly like it was a linkage class? there is any option to disable it?
cause i am trying to retrive some animations and they have a bunch of stop() inside.
Unfortunately, no such option.