home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 148 / MOBICLIC148.ISO / mac / DATA / QZZ148 / QZZ148_00 / QZZ148_00.swf / scripts / frame_2 / DoAction.as
Text File  |  2012-10-16  |  699b  |  42 lines

  1. function saveUSERS()
  2. {
  3.    if(gListeProfil.length > 0)
  4.    {
  5.       gFirstTime = undefined;
  6.       so_users.data.gListeProfil = gListeProfil;
  7.       so_users.flush();
  8.    }
  9.    else
  10.    {
  11.       gFirstTime = 1;
  12.       so_users.clear();
  13.    }
  14. }
  15. function loadUSERS()
  16. {
  17.    gListeProfil = so_users.data.gListeProfil;
  18.    var _loc2_ = gListeProfil.length;
  19.    var _loc1_ = 0;
  20.    while(_loc1_ < _loc2_)
  21.    {
  22.       _loc1_ = _loc1_ + 1;
  23.    }
  24. }
  25. stop();
  26. if(_global.HOTE == undefined)
  27. {
  28.    gST = 1;
  29. }
  30. recupDonneesXmlQuiz();
  31. so_users = SharedObject.getLocal("QZZ_USER","/");
  32. if(so_users.getSize() == 0)
  33. {
  34.    gListeProfil = [];
  35.    gFirstTime = 1;
  36. }
  37. else
  38. {
  39.    loadUSERS();
  40. }
  41. InitOk();
  42.