\n'); } function DoLMSInitialize(){ //find and returns the API starting with this window API = getAPIAdapter(); API.LMSInitialize(""); window.document.myFlash.SetVariable("UserID",API.LMSGetValue("cmi.core.student_id")); var alinan_ekranlar=API.LMSGetValue("cmi.suspend_data"); window.document.myFlash.SetVariable("item_data",alinan_ekranlar); var my_array = alinan_ekranlar.split(":"); var alinan_son_ekran =parseInt(my_array[my_array.length-1]); window.document.myFlash.SetVariable("son_ekran",alinan_son_ekran); playmovie(); startTimer(); } function SCOFinish(){ var myFlashObj = InternetExplorer ? myFlash : document.myFlash; var result = API.LMSFinish(""); //var value = api.LMSGetValue("cmi.core.student_name"); //var dene=API.SetValue("cmi.completion_status","completed"); var alinan_ekranlar=API.LMSGetValue("cmi.suspend_data"); var my_array = alinan_ekranlar.split(":"); var asd=my_array.length-1; if(args==asd) {API.LMSSetValue("cmi.core.lesson_status","completed"); API.LMSSetValue("cmi.core.exit", "normal"); window.document.myFlash.SetVariable("status_txt2", "completed"); } //else if(args>my_array.length) var durum=API.SetValue("cmi.completion_status","ali"); else {API.LMSSetValue("cmi.core.lesson_status","incomplete"); API.LMSSetValue( "cmi.core.exit", "suspend" ); window.document.myFlash.SetVariable("status_txt2", "incomplete"); } window.document.myFlash.SetVariable("asd", asd); }