Working tutorial to install AIR native extensions in Flash D
Installing a native extension in Flash Develop 4 on a Windows Desktop project is a pain in the ass,and the worst part is that the?best tutorial?you can get searching in google about this is incomplete and innacurate. I have a lot of experience working with native extensions so I decided to create my own tutorials on how to install them for Windows and for Mobile projects. For a Windows app: 1) Create a folder named “lib” in your root Flash Develop project and copy the .ane file into the lib folder created. Packager.bat: replace the line that starts with “call adt” for: call adt -package %OPTIONS% %SIGNING_OPTIONS% -target native %AIR_TARGET% %APP_XML% %FILE_OR_DIR% -extdir lib/ Run.bat:?replace the line that starts with “adl “%APP_XML%” for: adl “%APP_XML%” “%APP_DIR%” -extdir lib/ PackageApp.bat:?replace the line “set AIR_TARGET=” for: set AIR_TARGET=air/Setup.exe 8) Add the following to the application.xml: <extensions> 9) Where it says PASTE HERE you must paste the content of the tag you copied in the step 4,so must look like this: <extensionID>com.myBuisness.myApp.air.SuperLibrary</extensionID> 10) Without leaving application.xml modify (or add if doens’t exist) the? supportedProfiles tag with only extendedDesktop value like this: And thats it,the painfull process is finished,the extension must work and when you compile you get a .exe file (.air files cannot be created when using native extensions). The other tutorials dind’t help very much to create the .exe file or where to get the name of the folder,so this is the best one for the moment. For a Mobile app: 1) Create a lib folder in your root Flash Develop project. 原文链接:?http://fermmm.wordpress.com/2014/01/04/working-tutorial-to-install-air-native-extensions-in-flash-develop-4-windows-desktop-project/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |