---
title: "SCORM1.2与SCORM2004在APIAdapterApplet中方法名的变化"
author: "Michael.solofly"
date: "2009-10-12T10:35:10Z"
tags: []
slug: "scorm1-2-scorm2004-apiadapterapplet"
draft: false
lastmod: "2009-10-12T10:45:08Z"
id: 485786
url: "https://michaelfly.iteye.com/blog/485786"
---

在SCORM2004中，变化了很多和SCORM1.2不一样的地方。

例如。加入了Sequencing的语法

API使用了新的API，新的API中主要是方法名的变化

用了不同的DataModel。不同的继承关系，等等一些变化。

目前本人正在开始全面接触Scorm2004，并准备做硬盘文件改存数据库的开发。

首先收集了一下2004和1.2的AIP区别

 

 

 

 

**SCORM 1.2**

 **SCORM 2004**

Session Methods

LMSInitailize()

Initialize()

LMSFinish()

Terminate()

Data-transfer Methods

LMSGetValue()

GetValue()

LMSSetValue()

SetValue()

LMSCommit()

Commit()

Support Method

LMSGetLastError()

GetLastError()

LMSGetErrorString()

GetErrorString()

LMSGetDiagnostic()

GetDiagnostic()

 

 

 

 

 

 

如果想使系统能跑通Scorm2004的课件。还必须在自己的课件播放器里面修改

 

 

API = this.document.APIAdapter;

 

改为：

 

API\_1484\_11= this.document.APIAdapter;

 

这样一个现有的SCORM1.2的程序就可以跑通SCORM2004的课件。

但是因为DataModel的区别。所以还会报不同的问题。各种错误

 

例如 ClassnotFound 例如 cmi.Location 等。

因为现在我只是看到了DataModel的变化。但是还没有完全查完。所以暂时不写这一部分。

当完全找出后会在博客写一篇对应的文章。

 

另外附上一个页面样式的小技巧：

&lt;div id="tree-div" style="width:270px;height:400px;visibility:hidden;(隐藏占空间)display:none"(隐藏不占空间)&gt;&lt;/div&gt;