1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
//System.useCodepage = true;
//reception données
//
receptionDonnees();
//
function receptionDonnees():Void {
var recep_php:LoadVars = new LoadVars();
//
recep_php.onLoad = function(success:Boolean):Void {
if (success) {
//
newsTitre_txt.html = true;
newsTitre_txt.htmlText = "<u>"+this.titre_news+"</u>";
//verif ok
_root.news_mc.verif_txt.html = true;
_root.news_mc.verif_txt.wordWrap = true;
_root.news_mc.verif_txt.htmlText = recep_php.titre_news+" <br><br>";
_root.news_mc.verif_txt.htmlText += "Chargement du fichier php ok !";
} else {
//verif echec
_root.news_mc.verif_txt.html = true;
_root.news_mc.verif_txt.wordWrap = true;
_root.news_mc.verif_txt.htmlText = "Erreure de chargement du fichier php";
}
};
//
//envoi de donnée a php
var send_lv:LoadVars = new LoadVars();
send_lv.pouPHP = "données pour php";
//
//creation d'un objet date pour tuer le cache navigateur
var dateCouranteCache:Date = new Date();
//
//appel du fichier
//recep_php.load("news.php?noCache="+dateCouranteCache.getTime());
send_lv.sendAndLoad("news.php?noCache="+dateCouranteCache.getTime(),recep_php,"POST");
} |
Partager