Форк Rambox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
saenzramiro 0c32bcfb13 Added missing builds files for Ext JS 9 years ago
..
.sencha Initial app 9 years ago
build Added missing builds files for Ext JS 9 years ago
examples Initial app 9 years ago
licenses Initial app 9 years ago
overrides Initial app 9 years ago
resources Initial app 9 years ago
src Initial app 9 years ago
src-ext Initial app 9 years ago
src-touch Initial app 9 years ago
test Initial app 9 years ago
test-touch/unit/spec/data/amf Initial app 9 years ago
Readme.md Initial app 9 years ago
build.xml Initial app 9 years ago
package.json Initial app 9 years ago

Readme.md

Sencha Touch AMF

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.

Requiring AMF

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

  1. Edit your application's app.json file and add the sencha-amf package to the requires section:

    requires: [ 'sencha-amf' ]
  2. If not already present, add the following property to the file .sencha/app/sencha.cfg:

    framework.packages.dir=${framework.dir}/packages
  3. Refresh your application:

    sencha app refresh

The AMF classes are now available for use within your application.