Flex 4.5 pour mobiles http://flexpourmobiles.posterous.com Accompagnement du livre aux éditions Dunod posterous.com Sun, 09 Oct 2011 10:16:00 -0700 Ch 13 : Persistance des données http://flexpourmobiles.posterous.com/ch-13-persistance-des-donnees http://flexpourmobiles.posterous.com/ch-13-persistance-des-donnees

Persistance des données

Bibliographie

http://fr.wikipedia.org/wiki/Mac_OS_X_v10.7

 

Lion : sauvegarde automatique des applications

http://www.macgeneration.com/news/voir/190222/lion-sauvegarde-automatique-des-applications

 

SharedObject

http://www.flex-tutorial.fr/2008/06/21/flex-shared-object-creer-lire-et-ecrire-des-sharedobject/

et autres tutoriels liés

 

spécification open source d'AMF :

http://opensource.adobe.com/wiki/download/attachments/1114283/amf3_spec_05_05_08.pdf

 

registerClassAlias

http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/

"sharedObject custom class problems with persistence"

http://www.actionscript.org/forums/showthread.php3?t=170794

 

Flex / AIR Serialization Lessons Learned

http://www.brooksandrus.com/blog/2008/03/25/flex-air-serialization-lessons-learned/

 

Simple data persistence in a Flex 4.5 mobile application

http://cookbooks.adobe.com/post_Simple_data_persistence_in_a_Flex_4_5_mobile_appli-18856.html

 

Plus complexe :

Complex data types, such as Class, cannot be saved to a shared object and require the developer to convert the data to a supported object type, such as a String. In addition, private variables are not automatically written to the shared object as well. Both of these use cases can be resolved by implementing the flash.utils.IExternalizable interface on the custom object that holds the complex type. This interface expects an object to implement a writeExternal() and readExternal() method that are used to save and restore an object. Check the ActionScript 3 Reference for more information on Iexternalizable.

 

http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html

The destination class also must have a no-args constructor.

 

Flex 4.5 Mobile Data Handling

http://devgirl.org/2011/05/18/flex-4-5-mobile-data-handling/

 

AIR Mobile – Application Pokémon (23) – Le mécanisme de persistance intégré au SDK Flex (PersistenceManager)

http://www.flex-tutorial.fr/2011/07/05/air-mobile-application-pokemon-23-le-mecanisme-de-persistance-integre-au-sdk-flex-persistencemanager/

 

http://www.flex-tutorial.fr/2009/03/08/flex-shared-objects-conserver-le-type-des-objets-dans-un-shared-object-avec-le-metatag-remoteclass/

Flex Shared Objects – Conserver le type des objets dans un Shared Object avec le metatag RemoteClass

http://www.flex-tutorial.fr/2011/07/10/air-mobile-resolu-recuperation-dobjets-conserves-en-shared-object-ne-fonctionne-pas-pour-certains-objets/

AIR Mobile – Récupération d'objets conservés en Shared Object ne fonctionne pas pour certains objets

"Voici un "bug" sur lequel je suis tombé avec @ckeromen. Il est assez étrange et la solution n'est pas évidente donc je la partage sur ce blog."

 

Projet exemple

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/1923321/ck-SanDiego2.png http://posterous.com/users/he6mqT6EBHUtI christophe Keromen ckeromen christophe Keromen