{"id":23,"date":"2012-12-03T23:58:30","date_gmt":"2012-12-03T15:58:30","guid":{"rendered":"http:\/\/blog.dbgtech.net\/blog\/?p=23"},"modified":"2012-12-04T00:05:05","modified_gmt":"2012-12-03T16:05:05","slug":"native-extensions-for-adobe-air%e5%85%a5%e9%97%a8","status":"publish","type":"post","link":"https:\/\/www.dbgtech.net\/blog\/2012\/12\/native-extensions-for-adobe-air%e5%85%a5%e9%97%a8\/","title":{"rendered":"Native extensions for Adobe AIR\u5165\u95e8"},"content":{"rendered":"<p>Native extensions for Adobe AIR\u662fAdobe\u81eaAIR3\u5f15\u5165\u7684Native\u6269\u5c55\u63a5\u53e3\uff0c\u7c7b\u4f3cJNI\u4e00\u6837\uff0c\u7528\u4e8eVM\u4ee3\u7801\u548cNative\u4ee3\u7801\u7684\u4ea4\u4e92\u8c03\u7528\u3002\u901a\u8fc7ANE\uff0c\u53ef\u4ee5\u7a81\u7834FlexSDK\u672c\u8eab\u529f\u80fd\u9650\u5236\uff0c\u83b7\u5f97\u64cd\u4f5c\u7cfb\u7edf\u5e73\u53f0\u6240\u652f\u6301\u7684\u5927\u91cf\u529f\u80fd\uff0c\u4ee5\u53ca\u5c06\u73b0\u6709\u7684\u5927\u91cfNative\u4ee3\u7801\u8d44\u6e90\u5728AS\u4e2d\u91cd\u7528\u3002<\/p>\n<p>\u8fd9\u91cc\u4ee5Windows\u5e73\u53f0\u4e3a\u4f8b\u4ecb\u7ecd\u4e00\u4e0bANE\u4ee3\u7801\u7684\u5f00\u53d1\u6d41\u7a0b\u3002\u5176\u4ed6\u51e0\u4e2a\u5e73\u53f0\u7684\u6d41\u7a0b\u6709\u76f8\u5f53\u5927\u7684\u4e0d\u540c\uff0c\u5177\u4f53\u53ef\u4ee5\u53c2\u8003Adobe\u7684\u6587\u6863\uff1a<a href=\"http:\/\/help.adobe.com\/en_US\/air\/extensions\/index.html\">http:\/\/help.adobe.com\/en_US\/air\/extensions\/index.html<\/a><\/p>\n<p>\u4e00\u4e2a\u5b8c\u6574\u7684ANE\u6a21\u5757\u5b9e\u9645\u4e0a\u5206\u4e3a2\u4e2a\u90e8\u5206\uff1a<\/p>\n<ul style=\"margin-left: 42pt;\">\n<li>ActionScript\u63a5\u53e3\u6a21\u5757<\/li>\n<li>Native\u6a21\u5757<\/li>\n<\/ul>\n<p>\u8fd9\u662f\u5f15\u7528\u81eaAdobe\u6587\u6863\u4e2d\u7684\u67b6\u6784\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.dbgtech.net\/blog\/wp-content\/uploads\/2012\/12\/120312_1558_Nativeexten1.png\" alt=\"\" \/><\/p>\n<p>\u8fd9\u4e24\u4e2a\u6a21\u5757\u5f00\u53d1\u5b8c\u6bd5\u540e\uff0c\u901a\u8fc7adt\u5de5\u5177\u6253\u5305\u4e3aane\u6587\u4ef6\u540e\uff0c\u624d\u80fd\u4f9bAS\u9879\u76ee\u4f7f\u7528\u3002<\/p>\n<p>\u5176\u4e2d\uff0cActionScript\u6a21\u5757\u662f\u4e00\u4e2aswc\u9879\u76ee\uff0c\u8d1f\u8d23Native\u63a5\u53e3\u7684\u521b\u5efa\u3001\u9500\u6bc1\u4ee5\u53ca\u8c03\u7528Native\u4ee3\u7801\u548c\u8fdb\u884c\u4e8b\u4ef6\u76d1\u542c\u3002<\/p>\n<p>Native\u6a21\u5757\u9700\u8981\u5904\u7406ANE\u73af\u5883\u7684\u521d\u59cb\u5316\u3001\u53cd\u521d\u59cb\u5316\u4ee5\u53ca\u63d0\u4f9b\u88ab\u8c03\u7528\u7684\u4ee3\u7801\u3002\u5728IOS\u5e73\u53f0\u4e0a\uff0cNative\u4ee3\u7801\u4ee5so\u5f62\u5f0f\u63d0\u4f9b\uff1bAndroid\u5e73\u53f0\u4e0a\uff0c\u5982\u679c\u57fa\u4e8eSDK\u7f16\u5199\uff0c\u90a3\u4e48\u63d0\u4f9bjar\u5305\uff0c\u5982\u679c\u7528NDK\u7f16\u8bd1\uff0c\u90a3\u4e48\u63d0\u4f9bso\u5e93\uff1b\u5728Windows\u5e73\u53f0\u4e0a\uff0c\u4ee5DLL\u5f62\u5f0f\u63d0\u4f9b\u3002<\/p>\n<h2>\u63a5\u53e3\u5b9a\u4e49<\/h2>\n<p>\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u5b9e\u73b0\u4e00\u4e2aANE\u63a5\u53e3\uff0c\u4eceAPI\u4e2d\u83b7\u53d6\u5f53\u524dPC\u7684\u8ba1\u7b97\u673a\u540d\u3002\u8fd9\u4e2a\u51fd\u6570\u6211\u4eec\u547d\u540d\u4e3agetComputerName\u3002<\/p>\n<p>Native\u4ee3\u7801\u88ab\u8c03\u7528\u65f6\uff0c\u5c06\u4f1a\u6d3e\u53d1\u4e00\u4e2a\u4e8b\u4ef6\uff0c\u901a\u77e5AS\u8fd9\u8fb9\u81ea\u5df1\u88ab\u8c03\u7528\u4e86\u3002<\/p>\n<h2>Native\u4ee3\u7801\u5b9e\u73b0<\/h2>\n<p>\u8fd9\u91cc\u6211\u4eec\u91c7\u7528VS2012\u6765\u5b9e\u73b0\uff0c\u5b9e\u9645\u9879\u76ee\u91cc\u9762\u53ef\u4ee5\u4f7f\u7528\u4efb\u610f\u5f00\u53d1\u5de5\u5177\uff0c\u53ea\u8981\u80fd\u591f\u6309\u7167\u89c4\u8303\u7f16\u8bd1Windows dll\uff0c\u5e76\u4e14\u53ef\u4ee5\u8c03\u7528FlexSDK\u4e2d\u7684lib\u5e93\u5373\u53ef\u3002\u5982\u679c\u91c7\u7528\u5176\u4ed6\u7279\u6b8a\u7684\u5f00\u53d1\u5de5\u5177\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528adobe air.dll\u4e2d\u7684\u51fd\u6570\u3002<\/p>\n<p>Dll\u7684\u6846\u67b6\u4ee3\u7801\u6211\u4eec\u4e0d\u518d\u8d58\u8ff0\uff0c\u5982\u679c\u4e0d\u719f\u6089\uff0c\u8bf7\u53c2\u8003Windows\u7f16\u7a0b\u7684\u8d44\u6599\u3002<\/p>\n<p>ANE\u4f7f\u7528\u7684DLL\u6709\u56db\u4e2a\u91cd\u8981\u7684\u51fd\u6570\u3002\u4e00\u5bf9\u7528\u4e8e\u6574\u4e2aANE\u63a5\u53e3\u6a21\u5757\u7684\u521d\u59cb\u5316\u548c\u53cd\u521d\u59cb\u5316\uff0c\u4e00\u5bf9\u7528\u4e8e\u5355\u4e2aANE Context\u7684\u521d\u59cb\u5316\u548c\u53cd\u521d\u59cb\u5316\u3002\u4e00\u4e2aANE dll\u88ab\u52a0\u8f7d\u8d77\u6765\u4e4b\u540e\uff0c\u53ef\u4ee5\u521b\u5efa\u4efb\u610f\u4e2acontext\u3002\u800c\u6700\u540e\u5b9e\u9645\u88ab\u8c03\u7528\u7684ANE\u51fd\u6570\uff0c\u662f\u548c\u4e4b\u524d\u521b\u5efa\u7684context\u7ed1\u5b9a\u7684\u3002<\/p>\n<p>\u8fd9\u56db\u4e2a\u51fd\u6570\u7684\u540d\u5b57\u53ef\u4ee5\u81ea\u5df1\u4efb\u610f\u786e\u5b9a\uff0c\u5728\u6253\u5305\u65f6\u63d0\u4f9b\u7684xml\u6587\u4ef6\u4e2d\u9700\u8981\u52a0\u5165\u8be5ANE\u7684id\u3001dll\u540d\u5b57\u3001\u5e73\u53f0\u4ee5\u53ca\u4e24\u4e2a\u5168\u5c40\u521d\u59cb\u5316\u548c\u53cd\u521d\u59cb\u5316\u51fd\u6570\u7684\u5bfc\u51fa\u540d\u3002\u5b9e\u9645\u4e0a\uff0c\u6700\u7ec8\u9700\u8981\u88ab\u5bfc\u51fa\u7684\u51fd\u6570\uff0c\u4e5f\u53ea\u6709\u8fd9\u4e24\u4e2a\u3002<\/p>\n<p>4\u4e2a\u51fd\u6570\u7684\u539f\u578b\u58f0\u660e\u5982\u4e0b\uff0c\u5fc5\u987b\u4ee5C\u8bed\u8a00\u540d\u79f0\u8fdb\u884c\u5bfc\u51fa\uff1a<\/p>\n<p>1\u3001<\/p>\n<p>typedef void (*FREInitializer)(<\/p>\n<p>void** extDataToSet ,<\/p>\n<p>FREContextInitializer* ctxInitializerToSet,<\/p>\n<p>FREContextFinalizer* ctxFinalizerToSet<\/p>\n<p>);<\/p>\n<p>\u8fd9\u4e2a\u51fd\u6570\u7528\u4e8e\u5168\u5c40\u521d\u59cb\u5316\u3002\u8be5\u51fd\u6570\u91cc\u9762\u9700\u8981\u5904\u7406\u7684\u4e8b\u60c5\u5f88\u5c11\uff0c\u53ea\u9700\u8981\u901a\u8fc7\u53c2\u6570\u8fd4\u56deContext\u7684\u521d\u59cb\u5316\u548c\u53cd\u521d\u59cb\u5316\u51fd\u6570\u6307\u9488\uff0c\u5373\u51fd\u65703\u30014\u7684\u6307\u9488\u3002\u540c\u65f6\u53ef\u4ee5\u8fd4\u56de\u4e00\u4e2avoid\u6307\u9488\uff0c\u5728AIR\u56de\u8c03\u5176\u4ed6\u51fd\u6570\u65f6\u4f20\u5165\u7684extData\uff0c\u5373\u8fd9\u4e2a\u6307\u9488\u3002\u5219\u53ef\u4ee5\u7528\u6765\u8fdb\u884c\u67d0\u4e9b\u6570\u636e\u7ed1\u5b9a\u64cd\u4f5c\u3002\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0c\u8fd9\u4e2a\u56de\u4f20\u53c2\u6570\u53ef\u4ee5\u4f5c\u4e3a\u6570\u636e\u7ed1\u5b9a\u7684\u5a92\u4ecb\uff0c\u4f8b\u5982\u7528\u6765\u5c06ANE\u7684C\u8bed\u8a00\u63a5\u53e3\u7ed1\u5b9a\u5230C++\u5bf9\u8c61\u4e0a\u3002<\/p>\n<p>2\u3001<\/p>\n<p>typedef void (*FREFinalizer)(<\/p>\n<p>void* extData<\/p>\n<p>);<\/p>\n<p>\u8fd9\u4e2a\u51fd\u6570\u7528\u4e8e\u5168\u5c40\u53cd\u521d\u59cb\u5316\uff0c\u6211\u6d4b\u8bd5\u7684\u65f6\u5019\u6ca1\u6709\u53d1\u73b0\u88ab\u8c03\u7528\u5230\u3002\u4f30\u8ba1\u662f\u5728GC\u56de\u6536\u5b8c\u6240\u6709context\u5bf9\u8c61\u5e76\u5378\u8f7d\u8fd9\u4e2aANE\u6a21\u5757\u65f6\u4f1a\u8c03\u7528\u3002\u7528\u4e8e\u4f5c\u6700\u7ec8\u7684\u53cd\u521d\u59cb\u5316\u5de5\u4f5c\u3002<\/p>\n<p>3\u3001<\/p>\n<p>typedef void (*FREContextInitializer)(<\/p>\n<p>void* extData ,<\/p>\n<p>const uint8_t* ctxType ,<\/p>\n<p>FREContext ctx ,<\/p>\n<p>uint32_t* numFunctionsToSet,<\/p>\n<p>const FRENamedFunction** functionsToSet<\/p>\n<p>);<\/p>\n<p>\u8fd9\u4e2a\u51fd\u6570\u5f53AS\u4ee3\u7801\u8c03\u7528ExtensionContext.createExtensionContext\u65f6\u4f1a\u88ab\u8c03\u7528\uff0c\u7528\u4e8e\u521b\u5efa\u4e00\u4e2aANE context\u3002<\/p>\n<p>extData\u7531\u4e4b\u524dFREInitializer\u7684\u8c03\u7528\u4e2d\u521b\u5efa\uff0cAIR\u4ec5\u4ec5\u662f\u56de\u4f20\u8fc7\u6765\u3002<\/p>\n<p>ctxType\u662f\u6765\u81eaExtensionContext.createExtensionContext\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\uff0c\u5b9e\u9645\u4f7f\u7528\u4e2d\u53ef\u4ee5\u7528\u6765\u901a\u8fc7\u5355\u4e2acreateExtensionContext\u521b\u5efa\u7279\u6027\u5404\u5f02\u7684\u63a5\u53e3\u3002ctx\u7531AIR\u751f\u6210\uff0c\u5355\u4e2aContext\u4f1a\u7ed1\u5b9a\u5230\u7279\u5b9a\u7684ctx\u6307\u9488\uff0c\u6240\u4ee5\u4e4b\u540e\u5728\u63a5\u53e3\u51fd\u6570\u88ab\u8c03\u7528\u65f6\u4f20\u9012\u8fc7\u6765\u7684ctx\u53ef\u7528\u6765\u533a\u5206\u6765\u81ea\u54ea\u4e2aContext\u3002<\/p>\n<p>numFunctionsToSet\u7528\u4e8e\u8fd4\u56deContext\u4e2d\u521b\u5efa\u7684\u51fd\u6570\u4e2a\u6570\uff0c\u5b83\u4f1a\u5f71\u54cd\u5230functionsToSet\u91cc\u9762\u8fd4\u56de\u7684\u6570\u636e\u4e2a\u6570\u3002\u6bcf\u4e2a\u51fd\u6570\u90fd\u9700\u8981\u6709\u4e00\u4e2aFRENamedFunction\u7ed3\u6784\u6765\u8868\u793a\u3002<\/p>\n<p>functionsToSet\u7528\u4e8e\u8fd4\u56de\u4e00\u4e2aFRENamedFunction\u7ed3\u6784\u7684\u6570\u7ec4\uff0c\u7528\u6765\u63cf\u8ff0\u8fd9\u4e2aContext\u4e2d\u63d0\u4f9b\u7684\u6240\u6709ANE\u63a5\u53e3\u3002\u5176\u4e2d\u5305\u542b\u63a5\u53e3\u7684\u540d\u5b57\u3001\u6570\u636e\u7ed1\u5b9a\uff0c\u4ee5\u53caFREFunction\u51fd\u6570\u6307\u9488\u3002\u8fd9\u4e2a\u6570\u7ec4\u7684\u6210\u5458\u4e2a\u6570\u4e2d\u5fc5\u987b\u548cnumFunctionsToSet\u6307\u5b9a\u7684\u4e2a\u6570\u5339\u914d\u3002\u5173\u4e8e\u8fd9\u4e2a\u51fd\u6570\u7684\u8bf4\u660e\uff0c\u4e0d\u5f97\u4e0d\u5410\u69fd\u4e00\u4e0bAdobe\u7684\u6587\u6863\u3002\u6ca1\u6709\u5199\u660e\u5e94\u8be5\u7531\u8c01\u6765\u8d1f\u8d23\u91ca\u653e\u3002<span style=\"color: red;\">\u6211\u6d4b\u8bd5\u7684\u65f6\u5019\u8c03\u8bd5\u4e86\u4e00\u4e0b\uff0cAIR\u4e0d\u4f1a\u8d1f\u8d23\u91ca\u653e\u8fd9\u7247\u5185\u5b58\uff01\uff01<\/span>\u559c\u6b22new\u548cmalloc\u6d41\u7684\u540c\u5fd7\u4eec\u8981\u7279\u522b\u6ce8\u610f\uff0cContext\u53cd\u521d\u59cb\u5316\u7684\u65f6\u5019\u4e00\u5b9a\u8bb0\u5f97\u91ca\u653e\u6389\u3002\u6216\u8005\u4e5f\u53ef\u4ee5\u7c7b\u4f3cLUA\u91cc\u9762\u5e38\u7528\u7684\u65b9\u5f0f\u90a3\u6837\u76f4\u63a5\u5728\u5168\u5c40\u53d8\u91cf\u4e2d\u8fdb\u884c\u58f0\u660e\u3002<\/p>\n<p>4\u3001<\/p>\n<p>typedef void (*FREContextFinalizer)(<\/p>\n<p>FREContext ctx<\/p>\n<p>);<\/p>\n<p>\u8fd9\u4e2a\u51fd\u6570\u7528\u4e8e\u5728context\u5bf9\u8c61\u7684dispose\u65b9\u6cd5\u88ab\u8c03\u7528\u65f6\u56de\u8c03\u3002\u7528\u4e8e\u6e05\u7406\u4efb\u4f55\u548c\u8be5Context\u76f8\u5173\u7684\u8d44\u6e90\u3002<\/p>\n<p>\u5b9e\u9645\u4f9bAS\u4ee3\u7801\u8c03\u7528\u7684\u51fd\u6570\u539f\u578b\u5982\u4e0b\uff1a<\/p>\n<p>typedef FREObject (*FREFunction)(<\/p>\n<p>FREContext ctx,<\/p>\n<p>void* functionData,<\/p>\n<p>uint32_t argc,<\/p>\n<p>FREObject argv[]<\/p>\n<p>);<\/p>\n<p>ctx\u4f20\u5165\u7ed1\u5b9a\u7684Context\u6307\u9488\uff0c\u53ef\u4ee5\u7528\u6765\u533a\u5206\u4e0d\u540c\u7684Context<\/p>\n<p>functionData\u4f20\u5165\u5728\u8bbe\u7f6eFRENamedFunction\u7ed3\u6784\u65f6\u6307\u5b9a\u7684\u6307\u9488\uff0c\u4e5f\u662f\u7528\u4e8e\u7ed1\u5b9a\u4e00\u4e9b\u548c\u7279\u5b9a\u51fd\u6570\u76f8\u5173\u7684\u6570\u636e\u3002<\/p>\n<p>argc\u662f\u53c2\u6570\u4e2a\u6570<\/p>\n<p>argv\u662f\u53c2\u6570\u6570\u7ec4\uff0c\u6709argc\u4e2aFREObject \u5bf9\u8c61\u3002\u8fd9\u4e9b\u5bf9\u8c61\u90fd\u662fAS\u6570\u636e\u7c7b\u578b\uff0c\u9700\u8981\u901a\u8fc7FREGetObjectAs*\u7cfb\u5217\u7684\u51fd\u6570\u6765\u8f6c\u6362\u4e3aC\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<p>\u5728\u672c\u4f8b\u4e2d\uff0c\u6ca1\u6709\u63a5\u53d7\u4eceAS\u8fc7\u6765\u7684\u53c2\u6570\uff0c\u6240\u4ee5\u6211\u4eec\u4e0d\u7ba1\u53c2\u6570\u3002\u4ec5\u4ec5\u901a\u8fc7GetComputerNameW\u62ff\u5230\u8ba1\u7b97\u673a\u540d\uff0c\u5e76\u4e14\u8f6c\u6362\u4e3aUTF8\u5b57\u7b26\u4e32\u3002\u6700\u540e\u901a\u8fc7FRENewObjectFromUTF8\u53d8\u4e3aAS\u5bf9\u8c61\u5e76\u8fd4\u56de\u3002\u8fd9\u91cc\u987a\u4fbf\u8bf4\u4e00\u53e5\uff0c\u6240\u6709ANE\u4e2d\u4f7f\u7528\u7684\u5b57\u7b26\u4e32\u90fd\u662fUTF8\u7f16\u7801\u3002\u5982\u679c\u548c\u672c\u4f8b\u4e00\u6837\uff0c\u7531\u5e73\u53f0\u83b7\u5f97\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u4e0d\u662fUTF8\u7684\u8bdd\uff0c\u5fc5\u987b\u7ecf\u8fc7\u8f6c\u6362\u624d\u80fd\u548cAS\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n<p>\u548cC\u6570\u636e\u7c7b\u578b\u7684\u76f8\u4e92\u8bbf\u95ee\uff0c\u7531AIR\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217C\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u5982\u679c\u6709\u8fc7Alchemy\u4f7f\u7528\u7ecf\u9a8c\u7684\u8bdd\uff0c\u5e94\u8be5\u4f1a\u5f88\u719f\u6089\u3002\u4e3b\u8981\u5206\u4e3a\u57fa\u672c\u6570\u636e\u7c7b\u578b\u3001\u5b57\u7b26\u4e32\u3001\u5bf9\u8c61\u8bbf\u95ee\u3001ByteArray\u548cArray\u8bbf\u95ee\u8fd9\u51e0\u7c7b\u3002\u5728ANE\u4e2d\uff0c\u8fd8\u7279\u522b\u63d0\u4f9b\u4e86BitmapData\u7c7b\u578b\u7684\u8bbf\u95ee\u63a5\u53e3\u3002Adobe\u9884\u8ba1\u5230\u76f8\u5f53\u90e8\u5206\u7684ANE\u6269\u5c55\u5e94\u8be5\u662f\u7528\u6765\u5904\u7406\u56fe\u5f62\u6570\u636e\u7684\uff0c\u800c\u5b9e\u9645\u4e0a\u786e\u5b9e\u4e5f\u662f\u3002\u5177\u4f53\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u53ef\u4ee5\u53c2\u89c1Adobe\u7684\u6587\u6863\uff0c\u91cc\u9762\u6709\u8be6\u7ec6\u63cf\u8ff0\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u6db5\u76d6\u4e86ANE\u4e2dNative\u4ee3\u7801\u548cAS\u4e4b\u95f4\u51fd\u6570\u8c03\u7528\u7684\u6240\u6709\u5185\u5bb9\u3002\u57fa\u672c\u7ed3\u6784\u548cAlchemy\u6709\u5f88\u591a\u7c7b\u4f3c\u7684\u5730\u65b9\u3002\u4f46\u662fAlchemy\u53ea\u662fC\/C++\u7684\u4ea4\u53c9\u7f16\u8bd1\u73af\u5883\u5b9e\u73b0\uff0c\u5b9e\u9645\u4e0a\u8fd8\u662f\u8fd0\u884c\u4e8eVM\u5c42\u3002ANE\u5374\u662f\u76f4\u63a5\u63d0\u4f9b\u4e86\u66f4\u5e95\u5c42\u7684\u63a5\u53e3\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u6709\u65f6\u5019\u6211\u4eec\u9700\u8981\u4eceANE\u4ee3\u7801\u4e2d\u5411AS\u4ee3\u7801\u6d3e\u53d1\u4e8b\u4ef6\uff0c\u53ef\u4ee5\u8c03\u7528FREDispatchStatusEventAsync\u51fd\u6570\u3002\u8be5\u51fd\u6570\u4e0d\u4f1a\u76f4\u63a5\u6307\u5b9a\u5305\u542b\u5728event\u5bf9\u8c61\u4e2d\u7684\u53c2\u6570\uff0c\u800c\u662f\u6307\u5b9a\u4e86\u4e24\u4e2a\u5b57\u7b26\u4e32\u53c2\u6570\u3002\u5b9e\u9645\u5e94\u7528\u4e2d\u5e94\u8be5\u7531AS\u6a21\u5757\u548cNative\u6a21\u5757\u81ea\u5df1\u6765\u7ea6\u5b9a\u8fd9\u4e24\u4e2a\u5b57\u7b26\u4e32\u7684\u5185\u90e8\u683c\u5f0f\u548c\u610f\u4e49\u3002ANE\u4e8b\u4ef6\u662f\u9488\u5bf9Context\u6d3e\u53d1\u7684\uff0cAS\u90a3\u8fb9\u76d1\u542c\u4e5f\u662f\u5728Context\u5bf9\u8c61\u4e0a\u3002<\/p>\n<p>\u7279\u522b\u6307\u51fa\u4e00\u70b9\u7684\u662f\uff0cAdobe\u6587\u6863\u4e2d\u5199\u5230FREFunction\u51fd\u6570\u7684\u8c03\u7528\u662f\u975e\u7ebf\u7a0b\u5b89\u5168\u7684\uff0c\u5373AIR\u53ef\u80fd\u5728\u4e0d\u540c\u7684\u7ebf\u7a0b\u4e2d\u8c03\u7528\u540c\u4e00\u4e2aFREFunction\u51fd\u6570\uff0c\u4e5f\u53ef\u80fd\u5728\u4e0d\u540c\u7ebf\u7a0b\u4e2d\u8c03\u7528\u5176\u4ed6\u4efb\u4f55FREFunction\u51fd\u6570\u3002\u90a3\u4e48\u5728\u8fd9\u4e9b\u51fd\u6570\u4e2d\u5982\u679c\u4f1a\u7528\u5230\u4e34\u754c\u8d44\u6e90\uff0c\u9700\u8981\u81ea\u5df1\u5904\u7406\u7ebf\u7a0b\u5b89\u5168\u548c\u540c\u6b65\u3002\u5728Native\u6a21\u5757\u4e2d\uff0c\u53ef\u4ee5\u542f\u52a8\u81ea\u5df1\u7684\u7ebf\u7a0b\uff0c\u4f46\u662f\u4e5f\u9700\u8981\u81ea\u5df1\u8d1f\u8d23\u5904\u7406\u540c\u6b65\u95ee\u9898\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u4f7f\u7528VC\u7f16\u8bd1\u5668\u65f6\uff0c\u9879\u76ee\u8bbe\u7f6e\u4e0a\u9762\u9700\u8981\u6ce8\u610f\u3002C++\u4ee3\u7801\u751f\u6210\u4e0a\u5e94\u9009\u62e9\/MT\u6216\u8005\/MTD\uff0c\u800c\u4e0d\u5e94\u8be5\u9009\u62e9dll\u4e2d\u7684CRT\u5e93\u3002<\/p>\n<h2>AS\u4ee3\u7801\u5b9e\u73b0<\/h2>\n<p>AS\u90e8\u5206\u7684\u4ee3\u7801\u975e\u5e38\u7b80\u5355\u3002\u901a\u8fc7ExtensionContext.createExtensionContext\u521b\u5efa\u51fa\u6765Context\u5bf9\u8c61\uff0c\u5373\u53ef\u7528\u8fd9\u4e2a\u5bf9\u8c61\u6765\u8c03\u7528Native\u4ee3\u7801\u548c\u76d1\u542cNative\u4ee3\u7801\u8fc7\u6765\u7684\u4e8b\u4ef6\u4e86\u3002\u5177\u4f53\u5b9e\u73b0\u53ef\u53c2\u8003\u793a\u4f8b\u4ee3\u7801\uff0c\u8fd9\u91cc\u4e0d\u518d\u8d58\u8ff0\u3002<\/p>\n<p>AS\u6a21\u5757\u7684\u7f16\u8bd1\u6709\u4e2a\u95ee\u9898\u6709\u5fc5\u8981\u8bf4\u4e00\u53e5\uff0c\u6211\u5728\u6d4b\u8bd5\u65f6\u4f7f\u7528FlexSDK 4.6\u7684adt\u6253\u5305\u6700\u7ec8\u7684ane\u6587\u4ef6\u65f6\uff0c\u63d0\u793aswf\u7248\u672c\u5fc5\u987b\u4f4e\u4e8e\u7b49\u4e8e13\u3002\u5b9e\u9645\u6d4b\u8bd5\u53d1\u73b0\u4f7f\u7528FlashBuilder\u7f16\u8bd1\u7684swc\u6ca1\u6709\u529e\u6cd5\u6700\u7ec8\u6253\u5305\u5230ane\u4e2d\uff0c\u5fc5\u987b\u5728\u7f16\u8bd1\u9009\u9879\u4e2d\u52a0\u4e0a-swf-version=13\u4ee5\u4e0b\u7684\u7248\u672c\u624d\u80fd\u6253\u5305\u6210\u529f\u3002\u800cAdobe\u6587\u6863\u4e2d\u5199\u7684&#8221;SWF 11 for AIR 2.7, SWF 13 for AIR 3, SWF 14 for AIR 3.1, and so on&#8221;\u3002\u6700\u540e\u53d1\u73b0\u662f\u53d7\u5230\u6253\u5305\u65f6\u7f16\u5199\u7684xml\u914d\u7f6e\u6587\u4ef6\u4e2dxmlns\u6307\u5b9a\u7684Extension namespace\u6240\u5f71\u54cd\u3002Adobe\u6587\u6863\u4e2d\u63d0\u4f9b\u4e86\u5982\u4e0b\u5bf9\u5e94\u8868\uff1a<\/p>\n<div>\n<table style=\"border-collapse: collapse;\" border=\"0\">\n<colgroup>\n<col style=\"width: 191px;\" \/>\n<col style=\"width: 191px;\" \/>\n<col style=\"width: 208px;\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"background: #548dd4;\">\n<td style=\"padding-left: 7px; padding-right: 7px; border: solid 0.5pt;\"><strong>\u517c\u5bb9\u7684AIR\u7248\u672c<\/strong><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: solid 0.5pt; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">\n<p style=\"text-align: justify;\"><strong>ANE SWF\u7248\u672c<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: solid 0.5pt; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\"><strong>Extension namespace<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid 0.5pt; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">3.0+<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">\n<p style=\"text-align: justify;\">10-13<\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">ns.adobe.com\/air\/extension\/2.5<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid 0.5pt; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">3.1+<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">\n<p style=\"text-align: justify;\">14<\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">ns.adobe.com\/air\/extension\/3.1<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid 0.5pt; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">3.2+<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">\n<p style=\"text-align: justify;\">15<\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">ns.adobe.com\/air\/extension\/3.2<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid 0.5pt; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">3.3+<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">\n<p style=\"text-align: justify;\">16<\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">ns.adobe.com\/air\/extension\/3.3<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid 0.5pt; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">3.4+<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">\n<p style=\"text-align: justify;\">17<\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">ns.adobe.com\/air\/extension\/3.4<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid 0.5pt; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">3.5+<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">\n<p style=\"text-align: justify;\">18<\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid 0.5pt; border-right: solid 0.5pt;\">ns.adobe.com\/air\/extension\/3.5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u53e6\u5916\uff0cswc\u7684\u9879\u76ee\u8bbe\u7f6e\u91cc\u9762\u8981\u5305\u542bAIR\u5e93\u624d\u80fd\u7f16\u8bd1\u6210\u529f\u3002\u8001\u9e1f\u5e94\u8be5\u662f\u4e0d\u9700\u8981\u63d0\u9192\u8fd9\u4e2a\u95ee\u9898\u7684\u3002<\/p>\n<h2>\u6253\u5305<\/h2>\n<p>\u6253\u5305\u7684\u6b65\u9aa4\u6bd4\u8f83\u6076\u5fc3\u3002Adobe\u5c45\u7136\u6ca1\u6709\u63d0\u4f9b\u76f4\u63a5\u7684\u5de5\u5177\uff0c\u800c\u5fc5\u987b\u624b\u52a8\u5904\u7406N\u4e2a\u6b65\u9aa4\uff0c\u5b9e\u5728\u662f\u5077\u61d2\u81f3\u6781\uff0c\u4e0d\u5f97\u4e0d\u5410\u69fd\u4e00\u4e0b\u3002<\/p>\n<ul style=\"margin-left: 42pt;\">\n<li>\u9996\u5148\u9700\u8981\u751f\u6210\u4e00\u4e2a\u7528\u4e8e\u4ee3\u7801\u7b7e\u540d\u7684p12\u8bc1\u4e66\u3002\u53ef\u4ee5\u901a\u8fc7\u7c7b\u4f3c\u5982\u4e0b\u7684\u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<p><span style=\"background-color: gray;\">adt.bat -certificate -cn SelfSign -ou QE -o &#8220;Set your org name&#8221; -c US 2048-RSA test.p12 test<\/span><\/p>\n<ul style=\"margin-left: 42pt;\">\n<li>\u7136\u540e\uff0c\u8981\u4f7f\u7528\u89e3\u538b\u5de5\u5177\uff0c\u5c06\u524d\u9762\u751f\u6210\u7684SWC\u89e3\u538b\u51fa\u6765\uff0c\u63d0\u53d6\u91cc\u9762\u7684library.swf\u6587\u4ef6\u3002<\/li>\n<li>\n<div>\u7f16\u5199\u4e00\u4e2axml\u683c\u5f0f\u7684\u6269\u5c55\u63cf\u8ff0\u6587\u4ef6\u3002\u8be6\u7ec6\u8bf4\u660e\u53ef\u4ee5\u53c2\u89c1<a href=\"http:\/\/help.adobe.com\/en_US\/air\/extensions\/WSf268776665d7970d-2e74ffb4130044f3619-8000.html\">http:\/\/help.adobe.com\/en_US\/air\/extensions\/WSf268776665d7970d-2e74ffb4130044f3619-8000.html<\/a>\uff0c\u8fd9\u91cc\u53ea\u63d0\u4f9b\u6211\u7684\u793a\u4f8b\u6587\u4ef6\u5185\u5bb9\uff1a<\/div>\n<p>&lt;extension xmlns=&#8221;http:\/\/ns.adobe.com\/air\/extension\/3.1&#8243;&gt;<\/p>\n<p>&lt;id&gt;ANETest&lt;\/id&gt;<\/p>\n<p>&lt;versionNumber&gt;1.0.0&lt;\/versionNumber&gt;<\/p>\n<p>&lt;platforms&gt;<\/p>\n<p>&lt;platform name=&#8221;Windows-x86&#8243;&gt;<\/p>\n<p>&lt;applicationDeployment&gt;<\/p>\n<p>&lt;nativeLibrary&gt;ANEDll.dll&lt;\/nativeLibrary&gt;<\/p>\n<p>&lt;initializer&gt;initializer&lt;\/initializer&gt;<\/p>\n<p>&lt;finalizer&gt;finalizer&lt;\/finalizer&gt;<\/p>\n<p>&lt;\/applicationDeployment&gt;<\/p>\n<p>&lt;\/platform&gt;<\/p>\n<p>&lt;\/platforms&gt;<\/p>\n<p>&lt;\/extension&gt;<\/p>\n<p>id\u7684\u5185\u5bb9\u5f71\u54cd\u5230ExtensionContext.createExtensionContext\u65f6\u9700\u8981\u4f20\u5165\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\uff0cnativeLibrary\u662fNative dll\u6587\u4ef6\u540d\uff0cinitializer\u662f\u521d\u59cb\u5316\u51fd\u6570\u5bfc\u51fa\u540d\uff0cfinalizer\u662f\u53cd\u521d\u59cb\u5316\u51fd\u6570\u5bfc\u51fa\u540d\u3002<\/p>\n<p>\u5982\u679c\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u5e73\u53f0\u7684Native\u6a21\u5757\uff0c\u53ef\u4ee5\u6dfb\u52a0\u591a\u4e2aplatform\u5c0f\u8282\u3002<\/li>\n<li>\n<div>\u6700\u540e\u4f7f\u7528adt\u547d\u4ee4\u6253\u5305\uff0c\u7c7b\u4f3c\u4e0b\u9762\u7684\u683c\u5f0f\uff1a<\/div>\n<p><span style=\"background-color: gray;\">adt.bat -package -storetype pkcs12 -keystore test.p12 -storepass test -target ane ANEtest.ane extension.xml -swc ANETestLib.swc -platform Windows-x86 library.swf ANEDll.dll<\/span><\/p>\n<p>\u5177\u4f53\u53c2\u6570\u8bf7\u53c2\u89c1adt\u7684\u5e2e\u52a9\u6216\u8005Adobe\u7684\u4ee3\u7801\u3002\u6253\u5305\u65f6\u8981\u6ce8\u610f\u6587\u4ef6\u90fd\u62f7\u8d1d\u5230\u5f53\u524d\u76ee\u5f55\u4e0b\u3002<\/p>\n<p>\u5982\u679c\u6210\u529f\uff0c\u5219\u4f1a\u751f\u6210\u53ef\u4ee5\u5728AIR\u9879\u76ee\u4e2d\u5f15\u7528\u7684ANEtest.ane\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<h2>ANE\u6a21\u5757\u7684\u8c03\u7528<\/h2>\n<p>ANE\u6a21\u5757\u7684\u4f7f\u7528\u4e5f\u5f88\u7b80\u5355\uff0c\u548c\u5bfc\u5165swc\u5e93\u7c7b\u4f3c\u3002\u9996\u5148\u5728\u6784\u5efa\u8def\u5f84\u4e2d\u8bbe\u7f6eANE\u6587\u4ef6\u641c\u7d22\u8def\u5f84\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.dbgtech.net\/blog\/wp-content\/uploads\/2012\/12\/120312_1558_Nativeexten2.png\" alt=\"\" \/><\/p>\n<p>\u7136\u540e\u5728\u6784\u5efa\u6253\u5305\u8bbe\u7f6e\u4e2d\u5c06\u9700\u8981\u7684ANE\u52fe\u4e0a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.dbgtech.net\/blog\/wp-content\/uploads\/2012\/12\/120312_1558_Nativeexten3.png\" alt=\"\" \/><\/p>\n<p>\u4f7f\u7528\u7684\u65f6\u5019\u76f4\u63a5Import\u4e4b\u524dSWC\u6a21\u5757\u7684\u5305\u5373\u53ef\u4f7f\u7528\u3002\u8be6\u89c1\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<h2>\u540e\u8bb0<\/h2>\n<p>ANE\u603b\u4f53\u6765\u8bf4\u662f\u4e00\u4e2a\u5f88\u5b9e\u7528\u7684\u529f\u80fd\u3002FlexSDK\u7684\u529f\u80fd\u8bf4\u5b9e\u5728\u9664\u4e86\u6e32\u67d3\u4e4b\u5916\uff0c\u5176\u4ed6\u65b9\u9762\u4e4f\u5584\u53ef\u9648\u3002\u901a\u8fc7ANE\u53ef\u4ee5\u5229\u7528\u5927\u91cf\u73b0\u6709\u8d44\u6e90\u6765\u6269\u5c55AS\u5e73\u53f0\u7684\u5e94\u7528\u8303\u56f4\uff0c\u7279\u522b\u662f\u5728\u79fb\u52a8\u5e73\u53f0\u4e0a\uff0cANE\u6269\u5c55\u4f7f\u5f97\u5e94\u7528\u53ef\u4ee5\u91c7\u7528Flash\u65b9\u4fbf\u7684\u8fdb\u884c\u6e32\u67d3\uff0c\u540c\u65f6\u4f7f\u7528Native\u4ee3\u7801\u6765\u548c\u7cfb\u7edf\u5bf9\u63a5\u3002<\/p>\n<p>\u4f46\u662f\uff0cANE\u4e3aNative\u6a21\u5757\u51e0\u4e4e\u6ca1\u6709\u63d0\u4f9b\u8c03\u8bd5\u652f\u6301\uff0c\u5728\u5f00\u53d1\u4e0a\u5bf9\u5f00\u53d1\u8005\u6709\u6bd4\u8f83\u9ad8\u7684\u8981\u6c42\u3002\u5c31\u6211\u76ee\u524d\u6d4b\u8bd5\u7684Windows\u5e73\u53f0\u4e0a\u6765\u770b\uff0c\u53d1\u73b0Native\u6a21\u5757\u4e2d\u7684\u5f02\u5e38\u65e0\u6cd5\u7531Native\u8c03\u8bd5\u5668\u6355\u6349\uff0c\u800c\u52a0\u8f7d\u65f6\u673a\u53c8\u4e0d\u786e\u5b9a\uff0c\u56e0\u6b64Native\u8c03\u8bd5\u7684\u5207\u5165\u70b9\u6bd4\u8f83\u9ebb\u70e6\uff0c\u6ca1\u6709\u529e\u6cd5\u5229\u7528DebugBreak\u4e4b\u7c7b\u7684API\u542f\u52a8\u8c03\u8bd5\u3002\u731c\u6d4b\u5e94\u8be5\u53ef\u4ee5\u4f7f\u7528Attach\u7684\u65b9\u5f0f\u9644\u52a0\u4e0a\u53bb\u8c03\uff0c\u4f46\u662f\u603b\u7684\u6765\u8bf4\u662f\u5f88\u4e0d\u65b9\u4fbf\u7684\uff0c\u5bf9\u8c03\u8bd5\u5b57\u7b26\u4e32\u7684\u5206\u6790\u5c31\u663e\u5f97\u7279\u522b\u91cd\u8981\u3002\u5b9e\u9645\u5f00\u53d1\u4e0a\u9762\uff0c\u5efa\u8bae\u5c06AIR\u63a5\u53e3\u90e8\u5206\u548c\u529f\u80fd\u4ee3\u7801\u8fdb\u884c\u5265\u79bb\uff0c\u5c06\u529f\u80fd\u4ee3\u7801\u8fdb\u884c\u5b8c\u5584\u7684\u5355\u5143\u6d4b\u8bd5\u4e4b\u540e\u518d\u5408\u5e76\u5230\u4ee3\u7801\u4e2d\u4f7f\u7528\u3002\u53e6\u5916\uff0c\u7531\u4e8e\u63a5\u53e3\u662f\u91c7\u7528C\u8bed\u8a00\u65b9\u5f0f\u63d0\u4f9b\uff0c\u9879\u76ee\u89c4\u6a21\u5927\u7684\u65f6\u5019\u4ee3\u7801\u7ba1\u7406\u4f1a\u662f\u4e00\u4e2a\u95ee\u9898\uff0c\u5c3d\u91cf\u5c06\u8fd9\u4e9b\u63a5\u53e3\u5c01\u88c5\u4e3aC++\u65b9\u5f0f\uff0c\u4f1a\u6bd4\u8f83\u5229\u4e8e\u5927\u9879\u76ee\u7684\u7ba1\u7406\u3002<\/p>\n<p>\u4ee3\u7801\u4e0b\u8f7d\uff1a<a href=\"http:\/\/blog.dbgtech.net\/blog\/wp-content\/uploads\/2012\/12\/ANEDll.rar\">ANEDll<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Native extensions for Adobe AIR\u662fAdobe\u81eaAI &hellip; <a href=\"https:\/\/www.dbgtech.net\/blog\/2012\/12\/native-extensions-for-adobe-air%e5%85%a5%e9%97%a8\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.dbgtech.net\/blog\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbgtech.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbgtech.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbgtech.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbgtech.net\/blog\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":3,"href":"https:\/\/www.dbgtech.net\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":25,"href":"https:\/\/www.dbgtech.net\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions\/25"}],"wp:attachment":[{"href":"https:\/\/www.dbgtech.net\/blog\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbgtech.net\/blog\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbgtech.net\/blog\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}