Author Message

Posted: Mon Nov 16, 2009 7:58 pm   Post subject: Amayeta 5.0 Encryption keeps PLAYER_INIT event from firing

We encrypt our code using Amayeta v5.0

We load the ispring generated via the PresentationLoader class

When our code is encrypted, the ispring swf seems to be loaded (we hear sounds) but see no image AND the PLAYER_INIT event is never fired.

Has anyone experienced this problem?

Thanks


Profile profile test

Posted: Wed Nov 18, 2009 12:08 pm   Post subject: Re: Amayeta 5.0 Encryption keeps PLAYER_INIT event from firing

rsantos01 wrote:
When our code is encrypted, the ispring swf seems to be loaded (we hear sounds) but see no image AND the PLAYER_INIT event is never fired.


Obfuscation tools (such as Amayeta 5.0) mangle class and interface names as well as method names. On the one hand this makes code disassembling hard. From the other hand this may cause (and causes) problems when it is important to keep class names/interface names unchanged.
One of such cases is the usage of the LocalConnection class and classes inherited from it. Method names of such classes are called when one SWF (the presentation in our case) sends some command via LocalConnection. The Command name should match the method name exactly. Since your application code is encrypted, all classes and methods names are replaced with the generated ones. So the command "X" sent from the presentation doesn't have the corresponding handler "X" in your application, since the original "X" handler is now called "xyz".

To resolve the problem you need to configure Amayeta to keep classes and interfaces declared in AS 3 API of iSpring unchanged.
If this tool doesn't provide such functionality the only solution is not to use code encryption at all.


Profile profile test WWW www ICQ ICQ
Display posts from previous:  Sort by  

  


Who is online
Who is online In total there are 8 users online :: 2 registered, 0 hidden and 6 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Thu Nov 21, 2013 3:41 pm

Registered users: Bing [Bot], Google [Bot]