0 Replies Latest reply on Sep 22, 2011 7:29 AM by Dorsey2

    E-Learning with AICC

    Dorsey2

      Hi all,

       

      First, I'm french and I'm sorry for my english... I'm going to do my better .

       

      I need your help to create a e-learning flash.

       

      For begining my flash publication is flash 8.0 with AS 2.0.

       

      I have 4 part on my swf.

       

      The first one is for the var and function that i need to use.

       

      the second one is for GETPARAM

       

      the third one is for PUTPARAM

       

      and the forth is for EXITAU

       

      In the first i've this code :

       

      var student_name;

      var lesson_location;

      var lesson_status;

      var score;

      var aicc_time;

      var AICC_SID;

      var AICC_URL;

      var student_id;

      var course_id;

       

       

      In the second :

       

      mcc = new LoadVars();
      mcc.version = "3.5";
      mcc.command = "getparam";
      mcc.session_id = AICC_SID;
      mcc.sendAndLoad(AICC_URL.toLowerCase(), mcc, "POST");
      mcc.onLoad = function(ok) {
      if (ok) {
        String="student_name";
        student_name = mcc.error.substring(String.length+mcc.error.indexOf(String)+1,mcc.error.indexOf('\r\n',mc c.error.indexOf(String)));
       
        String="student_id";
        student_id = mcc.error.substring(String.length+mcc.error.indexOf(String)+1,mcc.error.indexOf('\r\n',mc c.error.indexOf(String)));
       
        String="lesson_location";
        lesson_location = mcc.error.substring(String.length+mcc.error.indexOf(String)+1,mcc.error.indexOf('\r\n',mc c.error.indexOf(String)));
       
        String="lesson_status";
        lesson_status = mcc.error.substring(String.length+mcc.error.indexOf(String)+1,mcc.error.indexOf('\r\n',mc c.error.indexOf(String)));
       
        String="score";
        score = mcc.error.substring(String.length+mcc.error.indexOf(String)+1,mcc.error.indexOf('\r\n',mc c.error.indexOf(String)));
       
        String="time";
        aicc_time = mcc.error.substring(String.length+mcc.error.indexOf(String)+1,mcc.error.indexOf('\r\n',mc c.error.indexOf(String)));
       
        String="course_id";
        course_id = mcc.error.substring(String.length+mcc.error.indexOf(String)+1,mcc.error.indexOf('\r\n',mc c.error.indexOf(String)));


        loadMovie('start.swf','cours');
          
       
       
      }
      };

      stop();

       

       

      The third :

      Nbsec = getTimer()/1000;

      mcc = new LoadVars();

      mcc.version = "3.5";

      mcc.command = "putparam";

      mcc.session_id = AICC_SID;

      mcc.aicc_data = "[core]"+chr(13)+"lesson_location="+lesson_location+chr(13)+"lesson_status="+lesson_statu s+chr(13)+"score="+score+chr(13)+"time="+aicc_time;+chr(13);

      mcc.sendAndLoad(AICC_URL.toLowerCase(), mcc, "POST");

      mcc.onLoad = function(ok) {

      if (ok) {

        gotoAndPlay('putinteraction');

      }

      }

       

       

      And the Exit

       

      mcc = new LoadVars();

      mcc.version = "3.5";

      mcc.command = "exitAU";

      mcc.session_id = AICC_SID;

      mcc.sendAndLoad(AICC_URL.toLowerCase(), mcc, "POST");

      mcc.onLoad = function(ok) {

      if (ok) {

        gotoAndPlay('quitter');

      }

      };

       

       

      Everything is working and the LMS send me correctly the information.

      But, and it's my problem, I don't Know how I put information on [core_lesson]

       

      Someone could help me ?

       

      A very big thanks.