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
| function changeActivity(_id:Number) {
var envoi = new LoadVars();
var recup = new LoadVars();
debug.text="ca roule";
envoi.id = _id;
envoi.langue = _level0.langue;
recup.onLoad = function(success) {
if (success) {
if (this.lieu) {
lieu_txt.text = this.lieu;
}
if (this.adresse) {
adresse_txt.text = this.adresse;
}
if (this.tel) {
tel_txt.text = "Tel: "+this.tel;
}
if (this.desc) {
desc_txt.htmlText = this.desc;
}
if (this.image) {
this.clip_text.attachMovie("cible_image_popup","cible_image_popup",this.getNextHighestDepth());
// Chargement de l'image
loadMovie(this.image, clip_text.cible_image_popup.cibleImage);
clip_text._visible = true;
} else {
clip_text._visible = false;
}
}
};
envoi.sendAndLoad(_level0.phpPath+"changeActivities.php",recup,"POST");
} |