打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Flash动画包装成SCORM1.2标准的SCO - CourseOL课件制作服务 课件制...
网络上经常有人问起,我做的FLASH动画怎么做成SCORM1.2标准的课件?我改如果用FLASH制作符合SCORM1.2标准的SCO,今天终于找到了一个工具,大家一起分享。
下载软件FlashAPI.zip
是一个FLASH的源文件,里面已经定义和使用了一些SCORM1.2标准的函数,具体使用说明
// Copyright 2005 DotNetSCORM
http://www.dotnetscorm.com
This is a small movie intended for use as a template for Flash-based SCOs. It is a single frame of Actionscript that performs several "introductory" LMS communications.

When using this movie, please keep in mind the following:

1. Use a pre-loader. You can insert your pre-loader code anywhere between frames 1 and 9.
2. Do not insert any LMS-dependent code before frame 11.
3. When possible, use the API's variables via _root.variable and _parent.variable.
4. If you make additional LMSGetVariable calls, use a _root.watch mechanism.
5. Be sure to add LMSFinish at the end of your movie.

//Variable Definitions
var bookMark, studentName, studentStatus, studentLocation, objStatus, lastError;
var tmpBkMark, tmpName, tmpStatus, tmpLocation, tmpObjStatus, tmpError;
var lmsInitialized, dataGathered;

//Initialize LMS
fscommand("LMSInitialize");
fscommand("LMSGetLastError","tmpError");

//Trap Initialization Errors
_root.watch('tmpError', divineError);
function divineError() {
lastError = arguments[2];
if ((lastError != 0) && (lmsInitialized = null)) {
getURL("javascript:alert(\"Error: Unable to initialize LMS.\")","_blank");
lmsInitialized = false;
}
else { lmsInitialized = true; }
}

//Start LMS Interaction
if (lmsInitialized == null) { _root.watch('lmsInitialized', startInteraction); }
function startInteraction() {
if (lmsInitialized) {
//Set Lesson Data
fscommand("LMSSetValue","cmi.core.lesson_status,incomplete");
fscommand("LMSSetValue","cmi.core.exit,suspend");
//Get Student Information
fscommand("LMSGetValue","cmi.core.student_name,tmpName");
fscommand("LMSGetValue","cmi.core.lesson_location,tmpLocation");
fscommand("LMSGetValue","cmi.suspend_data,tmpStatus");
dataGathered = 0;
}
}

//Trap Student Information Variables
_root.watch('tmpName', setName);
function setName() { fullName = arguments[2]; dataGathered++; }
_root.watch('tmpLoc', setLocation);
function setLocation() { bookMark = arguments[2]; dataGathered++; }
_root.watch('tmpStatus', setStatus);
function setStatus() { var studentStatus = arguments[2]; dataGathered++; }
_root.watch('tmpObjStatus', setObjStatus);
function setObjStatus() { var objStatus = arguments[2]; dataGathered++; }

//Wait For Information
if (dataGathered != 4) { _root.watch('dataGathered', startMovie); }
else { _root.nextFrame() }

function startMovie() { _root.nextFrame() }
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
FLASH课件中常用的fscommand 命令详解
十个精美课件
如何制作能记录学习进度的SCORM标准课件
在线教育资讯-产业标准--【梁政良】怎样设计一个符合SCORM的LMS?(一)
使用Flash和C
AJAX写scorm1.2标准播放器中的API adapter例子
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服