Packageatom.helium.media
Classpublic class HeJSON
InheritanceHeJSON Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 13

Chargement des fichiers JSON externes et conversion en objets simples d'utilisation.



Public Methods
 MethodDefined By
  
Initialisation Inutile pour ce script
HeJSON
  
load(path:String, call:*, param:Object = null):void
[static] Charge un fichier JSON externe.
HeJSON
  
removeComment(json:*):*
[static] Retire les clés de commentaires de l'objet issue du JSON.
HeJSON
  
sendCompleteJSON(json:String, call:*):void
[static] Transmission d'un chargement JSON
HeJSON
Constructor Detail
HeJSON()Constructor
public function HeJSON()

Initialisation Inutile pour ce script

Method Detail
load()method
public static function load(path:String, call:*, param:Object = null):void

Charge un fichier JSON externe.

Parameters

path:String — Chemin d'accès du fichier XML
 
call:* — Fonction provoquée en fin de chargementet qui réceptionnera l'objet convertie
 
param:Object (default = null) — Parametres additifs
  • ( String ou Array ) conversion - identifiant d'une ou plusieurs conversions à appliquer
  • ( Function ou HeFunction ) callProgress - La fonction provoquée pendant le chargement
  • ( Function ou HeFunction ) callError - La fonction provoquée à l'erreur de chargement
  • ( Boolean ) cache - Si false, le XML n'est pas conservé dans le cache

removeComment()method 
public static function removeComment(json:*):*

Retire les clés de commentaires de l'objet issue du JSON.

Parameters

json:* — Objet ou Tableau JSON à convertir

Returns
* — L'élément convertie
sendCompleteJSON()method 
public static function sendCompleteJSON(json:String, call:*):void

Transmission d'un chargement JSON

Parameters

json:String — Contenu JSON
 
call:* — Fonction retour