xielq 17196ebd79 init from phab | 3 years ago | |
---|---|---|
.. | ||
licenses | 3 years ago | |
sass | 3 years ago | |
src | 3 years ago | |
Readme.md | 3 years ago | |
build.xml | 3 years ago | |
index.js | 3 years ago | |
package.json | 3 years ago |
Sencha Touch AMF is an implementation of the Action Message Format (AMF and AMFX) protocols for use with the Sencha Touch Ext.direct class. AMF is a compact binary format used by Adobe Flash/Flex to serialize ActionScript object graphs. AMF is typically used to encode messages that are sent between an Adobe Flash client and a remote service. AMF is only a serialization technology, not a transport, so AMF encoded binary data can be used with any transport such as HTTP or HTTPS.
You can use the AmfRemotingProvider to make remote method invocation (RMI) calls to a server, or as a way to provide APIs for a Direct Store to connect a data source to a ListView or DataView.
For more information, please see the documentation for Ext.direct.AmfRemotingProvider
.
Note: Sencha AMF is only distributed as part of Sencha Touch Bundle and Sencha Complete.
The AMF class is not part of the core Sencha Touch framework, rather it is distributed as a package. As such, AMF is not immediately available for use within your Touch application and needs to be added as a required package.
Requiring the AMF package is a simple 3-step procedure
Edit your application's app.json file and add the amf
package to the requires section:
requires: [ 'amf' ]
If not already present, add the following property to the file .sencha/app/sencha.cfg:
framework.packages.dir=${framework.dir}/packages
Refresh your application:
sencha app refresh
The AMF classes are now available for use within your application.