How to use .jar file in as3 [closed]
Do we use .jar file in our Flash AS3 project? I need to import .jar file in my proje开发者_如何学Pythonct?
Thanks
Simple question, simple answers:
1.
Do we use .jar file in our Flash AS3 project?
Please ask your boss or your collegue whether you are using .jar files or not.
2.
I need to import .jar file in my project?
If you are using jar files in your project, you probably will need to import them.
JAR files are typically compiled Java code, which can be opened by the Java Virtual Machine. Java is owned and updated by Sun Microsystems.
SWF files are compiled ActionScript code, which can by opened by the ActionScript Virtual Machine. ActionScript (used by Flash) is owned and updated by Adobe.
The two are similar, but created by different companies, and aren't really able to interact in any way.
Since Java's JAR files are stored as ZIP files, you can actually open them in AS3 (using any of the many AS3 ZIP libraries out there) and extract out each individual class file or asset.
精彩评论