2011/09/22 15:08
ANE 파일은 AIR Native Extension 파일입니다.
이 동안 SWF 또는 DLL이나 ANE 정의 파일이 들어 있습니다.
일반 SWC로 빌드 지정할 수 있습니다.
만드는 방법
1. AIR 확장 DLL을 만드는
ANE의 DLL은 VSC + +로 만들 수 있습니다.
그 때이 두 파일은 중요합니다.
AIR 3 HOME / include / FlashRuntimeExtensions.h
AIR 3 HOME / lib / win / FlashRuntimeExtensions.lib
작업 디렉터리로 복사 또는 연결하십시오.
2. AIR extension descriptor file을 만듭니다.
ANE 어떤 것이라고 설명하고있는 느낌입니다.
플랫폼마다 네이티브 라이브러리를 지정합니다.
응용 프로그램 설명자 파일과 유사하네요.
<extension xmlns="http://ns.adobe.com/air/extension/2.5"> <id>nativeExtension</id> <versionNumber>1.0.0</versionNumber> <platforms> <platform name="Windows-x86"> <applicationDeployment> <nativeLibrary>AIRを拡張するDLL</nativeLibrary> <initializer>初期化時関数</initializer> <finalizer>破棄時関数</finalizer> </applicationDeployment> </platform> </platforms></extension>
3. ANE - SWC를 만들AIR를 확장하는 네이티브 라이브러리를 호출하는 AS 클래스가 들어있는 SWC입니다.
flash.external.ExtensionContext # call을 사용하여 DLL 함수를 호출하는 클래스를 제공합니다.
Flex 라이브러리 프로젝트에서 SWC를 만듭니다. 나는 이것을 ANE - SWC라고합니다.
4. ANE 화
ADT를 사용하여 ANE을 만듭니다.
adt -package SIGNING_OPTIONS -target ane <output-package> <ext-desc> ANE_OPTIONS
[예]
adt-package-storetype pkcs12-keystore test.p12-target aneAIRを拡張するDLLのパスextension.xml-swc ANE-SWC-platform プラットフォーム名
'Flex, Flash, AIR' 카테고리의 다른 글
| AIR 3 Native Extension 5 ExtensionContext (0) | 2011/09/22 |
|---|---|
| AIR 3 Native Extension 4 Native C API Reference (0) | 2011/09/22 |
| AIR 3 Native Extension 3 Platforms (0) | 2011/09/22 |
| AIR 3 Native Extension 2 ANE (0) | 2011/09/22 |
| AIR 3 Native Extension 1 ADT Check (0) | 2011/09/22 |
| AIR 3 Native Extension 0 About Native Extension (0) | 2011/09/22 |
