Client Side

ColdFusion 9 extends offline application support to the client side of the application by letting you code ActionScript elements on the client side. The data that is exchanged and synchronized on the client side is managed through persistent objects in the local or offline database.

For AIR integration offline support, if you do not globally declare the variables for client side ActionScript classes but attempt to save the data records fetched from server using session.saveCache() or session.saveUpdateCache(), you might encounter AIR side error stackstrace with a message similar to the following:

"Error: The object of type Object does not have the Entity metadata tag at coldfusion.air::EntityCache/addMetadata()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\EntityCache.as:228]"

To avoid this error, globally declare classes used in the application so that Flash player knows the classes that must be pre-loaded before calling the saveCache() or saveUpdateCache() method.