J'ai un problème avec la comparaison de deux textfield.text. Une valeur TextField.text provient du calcul et l'autre textField provient de l'entrée utilisateur. Quand je vérifie ces deux textes, la valeur de TextField.text n'a pas montré et je ne peux pas comparer ces deux. Comment puis-je comparer dans ActionScript 2.0. Aidez-moi, s'il vous plaît! Merci d'avance!actionscript 2.0: Vérifier TextField en flash
1
A
Répondre
1
Si textFields est configuré correctement, ce que vous avez fait devrait être bon.
Voici un exemple de la façon dont il devrait fonctionner:
//with the text tool, make two textFields on the stage
//In the Properties window, set the instance name of one to 'dynamicText'
//and set it's text type to be Dynamic Text
//Set the other one to be named 'inputText'
//and make it of text type Input Text
//enter some dummy text in each field to start with
dynamicText.text="pAssw0rd" //for example
inputText.onChanged= function() {
trace("match is "+(dynamicText.text == inputText.text));//true or false
}
Lancez maintenant ce et essayez de taper dans le champ inputText ...
Questions connexes
- 1. Fonctions d'appel dans Function - Flash Actionscript 2.0
- 2. ActionScript 2.0 et le projet ActionScript 3.0
- 3. flash cs4 textfield
- 4. Problème dans Flash TextField
- 5. Connexion Google à partir de Flash Actionscript 2.0 dans GAE
- 6. POST Connexion avec ActionScript 2.0
- 7. Envoi d'un e-mail à partir de Flash/Actionscript 2.0
- 8. Comportement Flash (Actionscript 2.0) dans IE par rapport à Firefox
- 9. appeler une méthode garniture en actionscript 2.0
- 10. Flash Actionscript
- 11. Actionscript 3 Bogue TextField avec htmlText?
- 12. Obtenir l'attribut xml en utilisant actionscript 2.0
- 13. Flash/ActionScript - Désactivation de l'accessibilité
- 14. Application de remplissage à un TextField dans ActionScript 3.0
- 15. Télécharger l'image sur Flickr en utilisant Actionscript 2.0
- 16. la fonction Exécuter Jquery sur actionscript 2.0
- 17. flash actionscript 3.0
- 18. ActionScript 3 exemple d'horloge en flash
- 19. Panorama de type QTVR en Flash/ActionScript?
- 20. Bibliothèque de création PDF dans ActionScript 2.0
- 21. Flash Whiteboard: Actionscript 3
- 22. Alignement dynamique dans ActionScript 2.0
- 23. Migration de Flash CS3 vers CS5: problème de rendu TextField
- 24. Flash/ActionScript: héritage des propriétés du composant
- 25. Flash ActionScript Exemple d'authentification NTLM?
- 26. Flash actionScript 2 preloader quicky
- 27. Flash: ActionScript 3.0 MovieClip Largeurs
- 28. Où puis-je télécharger facebook-actionscript-api pour actionscript 2.0
- 29. Comment appeler la méthode d'un service Web avec actionscript 2.0
- 30. Flash ActionScript 3 runtime SecurityError