1 person found this helpful
My guess is that you are not loading the library properly using the script tag or you aren't referencing the class correctly.
If you still have questions after reviewing: http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7ed9. html please post the code you use to import the library and instantiate a class.
Thanks 4 the reply...
I downloaded as3corelib library from http://code.google.com/p/as3corelib/downloads/list, extracted the library.swf file from the available as3corelib.swc file, included it to the lib tab of my application, renamed it as EncryptionKeyGenerator.swf and i've done the following:
<script type="application/x-shockwave-flash" src="lib/EncryptionKeyGenerator.swf"></script>
ekg.EncryptionKeyGenerator=window.runtime.com.adobe.air.crypto.EncryptionKeyGenerator;//from a document over net
On running my application, it says Value not a constructor.
However, i downloaded a installer package, EncryptedDBHTML.air over the net and when i used the EncryptionKeyGenerator.swf file from this package in my application, it worked. Now, the available codin used this:
I tried using the above package name, however i end up with the same error.
Any help is appreciated..
It looks like the as3corelib download zip is out of date. When I looked inside the zip file, the EncryptionKeyGenerator class was not included in the source so presumably it is not in the compiled SWC either.
In the other library you found, the class must be in a different package, so naturally the as3corelib package name won't work.
Ya, thank you.. i'm continuing my project with the available .swf file.. no probs yet..