rss
Rechercher : dans
Par : Pertinence Date Nom d'utilisateur
Statut : Non résolu

SendAndLoad avec boucle while

  Posté par lukkul, le jeudi 13 décembre 2007 à 18:04:20
Bonjour à tous,
voila j 'essaye d'utiliser un sendAndLoad var en générant les variable grace a une boucle while mais g l 'impression que flash n'envoie pas les éléments .
merci de votre aide


le code:
on (release) {
//prepare variables
theemail = email.text;
thelogin = login.text;
thepass = passw.text;
stat = "justsave";
howmany = _root.showroom.lightbox.cuantoselected.text;
evento = _root.showroom.evento.text;

i = 0;
while (i<howmany) {
this["foto"+i] = eval("_parent.pedido.ordere"+i+".id").ht­mlText;
this["acabado"+i] = eval("_parent.pedido.ordere"+i+".theacabado&q­uot;).htmlText;
this["tamano"+i] = eval("_parent.pedido.ordere"+i+".thesize"­;).htmlText;
this["cd"+i] = eval("_parent.pedido.ordere"+i+".thecd")­.htmlText;
this["qte"+i] = eval("_parent.pedido.ordere"+i+".theqte"­).htmlText;
i = i+1;
}
//create loadvars
gogoa = new LoadVars();
//create loadvars variables
gogoa.email = theemail;
gogoa.login = thelogin;
gogoa.passw = thepass;
gogoa.howmuch = howmany;
gogoa.statusclient = stat;
gogoa.evento = evento;

j = 0;
while (j<howmany) {
this["gogoa.foto"+j] = this["foto"+j];
this["gogoa.acabado"+j] = this["acabado"+j];
this["gogoa.tamano"+j] = this["tamano"+j];
this["gogoa.cd"+j] = this["cd"+j];
this["gogoa.qte"+j] = this["qte"+j];
eval("thepic"+j).text = this["gogoa.foto"+j];
j = j+1;
}
//send
gogoa.sendAndLoad("lephp.php",gogoa,"POST&qu­ot;);
//receive
gogoa.onLoad = function(succes) {
if (succes) {
gotoAndStop(2);
} else {
trace("Error loading data");
}
};
}
Configuration: Mac OS X
Firefox 2.0.0.11
Répondre à lukkul  Signaler ce message aux modérateurs
Logiciels pertinents trouvés dans les téléchargements
Télécharger The Cleaner V5.0.0.150The Cleaner - The Cleaner, a ne pas confondre avec CCleaner, a été écrit à l'origine pour contrer les trojan Back Orifice. Il est...Catégorie: Sécurité
Licence: Freeware/gratuit
Télécharger BestPractice 0.99BestPractice - BestPractice permet d'écouter un CD, un fichier MP3 ou WAV au ralenti ou en accéléré sans changer la hauteur des notes. Cela...Catégorie: Audio
Licence: Freeware/gratuit
Télécharger Slide Freebie 2.5Slide Freebie - Slide Freebie est une visionneuse d'images (animées ou non). Il suffit de glisser/déposer le dossier contenant les...Catégorie: Diaporama
Licence: Freeware/gratuit
Télécharger Express Scribe   4.22Express Scribe - Express Scribe est un lecteur audio professionnel muti plateformes. Il permet non seulement la lecture de fichiers audios,...Catégorie: Audio
Licence: Freeware/gratuit
Plus de logiciels gratuits sur « sendAndLoad avec boucle while »