Air Native Extension for Networking on iOS This is an Air native extension that implements networking calls natively on iOS. It has been developed byFreshPlanet and is used in the game SongPop. InstallationThe ANE binary (AirNetworking.ane) is located in the bin folder. You should add it to your application project's Build Path and make sure to package it with your app (more information here). UsageA sample project is located in the sample folder. NativeURLLoader behave the same way as URLLoader, except for the following:
- dataFormat can only be text (the default)
- some events are not dispatched (httpResponseStatus, httpStatus and open)
- error messages and codes dispatched with ioError are specific to the iOS SDK
- the request's data property can only be an instance of URLVariables
- you must call dispose() once you are done with the loader, or you will leak memory
Build from sourceShould you need to edit the extension source code and/or recompile it, you will find an ant build script (build.xml) in the build folder:
|