Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 15th, 2012  |  syntax: None  |  size: 0.48 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to retrieve a variable in a function that's processed in another .as script - flex3?
  2. private function appliquer():void
  3. {
  4.     verif='0';
  5.  
  6.     verifierCle();
  7.     if(verif=="1")
  8.     {
  9.     //...Instructions
  10.     }
  11. }
  12.        
  13. //VERIFICATION AVANT ENREGISTREMENT
  14. public var verif:String ='0';
  15. private function verifierCle():void
  16. {  
  17. if(dateFin.time<dateDebut.time)
  18. {
  19.     Alert.show("La date de fin ne peut pas être antérieure à la date de début.");
  20.     verif='0';
  21. }
  22. else
  23. {
  24.     verif='1';
  25. }