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
|
//cération d'un objet pour la récupération des données
PHP_boule = new LoadVars();
//récupération des donnés dans l'objet
PHP_boule.load("affichage.php");
//lors du chargement, on fait une fonction
PHP_boule.onLoad = function(Psucces) {
//si il y a eu un chargement
if (Psucces) {
_root.total = this.total_bd;
_root.total = _root.total;
for (i=0; i<_root.total; i++) {
_root.positionx = this["position_bd_x"+i];
_root.positiony = this["position_bd_y"+i];
_root.affiche = _root.positionx;
_root.affiche2 = _root.positiony;
//envoi des données à la page PHP avec la méthode POST
//getURL("javascript:popup('affichage.php?limitation="+i+"', 'CHE', '650', '500', 'no')");
//_root.new_clip._x = this.position_bd_x;
//_root.new_clip._y = this.position_bd_y;
//_root.attachMovieClip("bouleV_php_mc", "bouleV_php_mc" + i, _root.getNextHighestDepht);
//place ton objet bouleV_php_mc sur la scene et on lui donne bouleV_php_mc1, bouleV_php_mc2 ..... pour nom
_root["bouleV_php_mc"+i]._x = _root.positionx;
_root["bouleV_php_mc"+i]._y = _root.positiony;
}
} else {
//Sinon, il n'y'a pas eu de chargement
_root.erreur = "[Erreur de chargement]";
}
}; |