AIR NativeExtensions         for       iOS Adobe 平台技术经理 James Li
前言
AIR 手机应用成功案例
什么是AIRNative Extensions?
ANE 使你的开发扩展到原生技术领域   Android SDK   iOS SDK
通过AIR Native Extensions一切皆有可能             应用内付费   游戏中心   消息推送
开发流程
Define Develop Deploy   定义-开发-部署
Define Develop Deploy   定义-开发-部署
应用 ID         设备Define         授权         证书
应用 ID设备      developer.apple.com授权证书
Define Develop Deploy   定义-开发-部署
ActionScript 类          库Develop          Objective-C 类          库
ActionScript 类          库Develop          Objective-C 类          库
AIR SDK 3+AS3.0 Lib   Flash Builder            4.5+
flash.external.ExtensionConte             xt
创建Extension Contextext =ExtensionContext.createExtensionContext(“com.adobe.appPurchase”,””);
调用Objective-C APIresult = ext.call(“firstContact”,”How areyou?”);
添加事件侦听ext.addEventListener(StatusEvent.STATUS,statusHandler);
ActionScript 类          库Develop          Objective-C 类          库
iOS 4+Objective-C Lib                Xcode 4+
FlashRuntimeExtension
初始化 FRE Context 和 APIFREInitializer        e.g. ExtInitializerFREContextInitializ   e.g.er                    ContextIniti...
转换参数类型FREGetObjectAsUTF8(argv[0],&len,&msg);FREGetObjectAsInt32FREGetObjectAsUint32FREGetObjectAsDoubleFREGetObjectAsBool
转换返回值FRENewObjectFromUTF8FRENewObjectFromInt32FRENewObjectFromUint32FRENewObjectFromDoubleFRENewObjectFromBool
向Flash派发事件FREDispatchStatusEventAsync(      ctx,      (const uint8_t*)”onContacted”,      (const uint8_t*)”I am fine!”);
Define Develop Deploy   定义-开发-部署
AIR ExtensionsDeploy         IPA
AIR Develop Tool
使用ADT打包ANEbin/adt -package -storetype pkcs12 -keystoreselfsigned.p12 -storepass 1234 -target aneext/InApp.ane extension.xm...
Extension Manifest XML<?xml version="1.0" encoding="utf-8" standalone="yes"?><extension xmlns="http://ns.adobe.com/air/ext...
使用ADT打包IPAbin/adt -package -target ipa-test-interpreter -provisioning-profile ghostbride.mobileprovision -storetype pkcs12...
Application Manifest XML<id>com.jamesli.ghostbride</id><filename>ANE_IAP_Example</filename>    <name>ANE IAP Test Example<...
实例演示
资源
labs.adobe.com     adobe.com/cn/devnet              jamesli.cn     weibo.com/papajames          weibo.com/7yue         wei...
谢谢!
Upcoming SlideShare
Loading in …5
×

Ane for 9ria_cn

724 views

Published on

Ane for 9ria_cn

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
724
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ane for 9ria_cn

  1. 1. AIR NativeExtensions for iOS Adobe 平台技术经理 James Li
  2. 2. 前言
  3. 3. AIR 手机应用成功案例
  4. 4. 什么是AIRNative Extensions?
  5. 5. ANE 使你的开发扩展到原生技术领域 Android SDK iOS SDK
  6. 6. 通过AIR Native Extensions一切皆有可能 应用内付费 游戏中心 消息推送
  7. 7. 开发流程
  8. 8. Define Develop Deploy 定义-开发-部署
  9. 9. Define Develop Deploy 定义-开发-部署
  10. 10. 应用 ID 设备Define 授权 证书
  11. 11. 应用 ID设备 developer.apple.com授权证书
  12. 12. Define Develop Deploy 定义-开发-部署
  13. 13. ActionScript 类 库Develop Objective-C 类 库
  14. 14. ActionScript 类 库Develop Objective-C 类 库
  15. 15. AIR SDK 3+AS3.0 Lib Flash Builder 4.5+
  16. 16. flash.external.ExtensionConte xt
  17. 17. 创建Extension Contextext =ExtensionContext.createExtensionContext(“com.adobe.appPurchase”,””);
  18. 18. 调用Objective-C APIresult = ext.call(“firstContact”,”How areyou?”);
  19. 19. 添加事件侦听ext.addEventListener(StatusEvent.STATUS,statusHandler);
  20. 20. ActionScript 类 库Develop Objective-C 类 库
  21. 21. iOS 4+Objective-C Lib Xcode 4+
  22. 22. FlashRuntimeExtension
  23. 23. 初始化 FRE Context 和 APIFREInitializer e.g. ExtInitializerFREContextInitializ e.g.er ContextInitializerFREObject e.g. firstContact
  24. 24. 转换参数类型FREGetObjectAsUTF8(argv[0],&len,&msg);FREGetObjectAsInt32FREGetObjectAsUint32FREGetObjectAsDoubleFREGetObjectAsBool
  25. 25. 转换返回值FRENewObjectFromUTF8FRENewObjectFromInt32FRENewObjectFromUint32FRENewObjectFromDoubleFRENewObjectFromBool
  26. 26. 向Flash派发事件FREDispatchStatusEventAsync( ctx, (const uint8_t*)”onContacted”, (const uint8_t*)”I am fine!”);
  27. 27. Define Develop Deploy 定义-开发-部署
  28. 28. AIR ExtensionsDeploy IPA
  29. 29. AIR Develop Tool
  30. 30. 使用ADT打包ANEbin/adt -package -storetype pkcs12 -keystoreselfsigned.p12 -storepass 1234 -target aneext/InApp.ane extension.xml -swc ANE_IAP_ASLib.swc-platform iPhone-ARM library.swf libAppPurchase.a
  31. 31. Extension Manifest XML<?xml version="1.0" encoding="utf-8" standalone="yes"?><extension xmlns="http://ns.adobe.com/air/extension/2.5"> <id>com.adobe.appPurchase</id> <versionNumber>1</versionNumber> <platforms> <platform name="iPhone-ARM"> <applicationDeployment> <nativeLibrary>libAppPurchase.a</nativeLibrary> <initializer>ExtInitializer</initializer> <finalizer>ExtFinalizer</finalizer> </applicationDeployment> </platform> </platforms></extension>
  32. 32. 使用ADT打包IPAbin/adt -package -target ipa-test-interpreter -provisioning-profile ghostbride.mobileprovision -storetype pkcs12 -keystore jameslidevelopment.p12-storepass 1234 Main.ipa info-app.xmlANE_IAP_Example.swf -extdir exticon
  33. 33. Application Manifest XML<id>com.jamesli.ghostbride</id><filename>ANE_IAP_Example</filename> <name>ANE IAP Test Example</name> <extensions> <extensionID>com.adobe.appPurchase</extensionID> </extensions> <versionNumber>1.0.0</versionNumber> <initialWindow> <content>ANE_IAP_Example.swf</content> <autoOrients>true</autoOrients> <fullScreen>true</fullScreen> </initialWindow> <icon>„</icon> <iPhone> <InfoAdditions><![CDATA[„]]></InfoAdditions> </iPhone></application>
  34. 34. 实例演示
  35. 35. 资源
  36. 36. labs.adobe.com adobe.com/cn/devnet jamesli.cn weibo.com/papajames weibo.com/7yue weibo.com/fans8 weibo.com/donglongfei Flash 3D新浪微群: q.weibo.com/312314 Flash for iOS新浪微群:http://q.weibo.com/419909
  37. 37. 谢谢!

×