Importation Variables .txt vers flash + traitement

Résolu
plt83 Messages postés 3 Date d'inscription lundi 20 avril 2009 Statut Membre Dernière intervention 2 octobre 2011 - 19 févr. 2010 à 13:55
plt83 Messages postés 3 Date d'inscription lundi 20 avril 2009 Statut Membre Dernière intervention 2 octobre 2011 - 22 févr. 2010 à 23:25
Bonjour,

Je suis en train de faire un petit flash qui a pour but charger mon fichier "MONTEXT.txt" qui ressemble à ca:
&Variable1=Oui.&Variable2=Non.&Variable3=Oui.&Variable4=Non.&Variable5=Oui.&Variable6=Oui.&Variable7=Oui.&Variable8=Oui.&Variable9=Oui.&Variable10=Non.
A savoir que ce fichier texte est généré par un formulaire php.

Je voudrais:
-récupérer ces variables dans le flash (AS2)
-SI &Variable1=="Oui." alors afficher image1 SINON afficher image2
-SI &Variable2=="Oui." alors afficher image1 SINON afficher image2
-SI &Variable3=="Oui." alors afficher image1 SINON afficher image2
-SI &Variable4=="Oui." alors afficher image1 SINON afficher image2
-SI &Variable5=="Oui." alors afficher image1 SINON afficher image2
-SI &Variable6=="Oui." alors afficher image1 SINON afficher image2
-SI &Variable7=="Oui." alors afficher image1 SINON afficher image2
-SI &Variable8=="Oui." alors afficher image1 SINON afficher image2
-SI &Variable9=="Oui." alors afficher image1 SINON afficher image2
-SI &Variable10=="Oui." alors afficher image1 SINON afficher image2



J'ai pas mal cherché de tutoriaux sur le net, mais impossible de trouver, je cherche peut être au mauvais endroit
Voila, je suis ouvert a toute info/tutoriaux/code.
Merci
Bonne journée ;)

2 réponses

ChasseurDeChimeres Messages postés 292 Date d'inscription mercredi 7 novembre 2007 Statut Membre Dernière intervention 15 janvier 2013 3
22 févr. 2010 à 22:39
Salut;
Renseignes toi sur les structures conditionnelles dans flash ainsi que sur les loaders puis va voir ça :
http://www.bases-as3.fr/14-le-chargement-d-un-fichier-txt
3
plt83 Messages postés 3 Date d'inscription lundi 20 avril 2009 Statut Membre Dernière intervention 2 octobre 2011
22 févr. 2010 à 23:25
Merci beaucoup!
Des fois il faut juste trouver le bon site.

Bonne soirée
0
Rejoignez-nous