Package | atom.helium.media |
Class | public class HeJSON |
Inheritance | HeJSON ![]() |
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.
Method | Defined By | ||
---|---|---|---|
HeJSON()
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 |
HeJSON | () | Constructor |
public function HeJSON()
Initialisation Inutile pour ce script
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
|
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
|
* — 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
|