- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 SCORM 包,由几个 swf 和播放器组成。然而,当用户从 LMS 启动内容时,播放器初始化不正确或损坏,当然它无法按预期工作和运行。有一个包的控制台日志可以提供一个想法。
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check
http://xhr.spec.whatwg.org/.
Initializing SCORM class...ExternalInterface.available evaluates true.
SCORM.isAvailable() evaluates true. SCORM class file check, ready.
SCORM.connect() called from class file
connection.initialize called.
SCORM.API.find: API found. Version: 2004
API: [object Object]
SCORM.data.get(cmi.completion_status) value: unknown
__connectionActive: true
SCORM.data.get(cmi.location) failed.
Error code: 403
Error info: hata
SCORM.data.get(cmi.location) value:
SCORM.get(cmi.location) failed.
Error code: 403
Error info: hata
public function get returned:
SCORM.data.get(cmi.entry) value: ab-initio
public function get returned: ab-initio
SCORM.data.get(cmi.location) failed.
Error code: 403
Error info: hata
SCORM.data.get(cmi.location) value:
SCORM.get(cmi.location) failed.
Error code: 403
Error info: hata
public function get returned:
SCORM.data.get(cmi.learner_name) value: test test
public function get returned: test test
最佳答案
日志表明类(class)正确启动。 “错误”实际上是正确的行为:如果类(class)是 ab-initio
(首次启动),则请求书签 (cmi.location
) 将导致错误。没有书签,因为尚未创建。
如果您希望类(class)有书签——即您正在重新启动类(class),但它的行为仍然像是从头开始——我猜您没有正确使用Commit
(将数据发布到 LMS 后,和/或不发出 Terminate
(scorm.quit
)在关闭类(class)之前。
如果您的类(class)检查 cmi.entry
并看到 ab-initio
,则无需查找书签。您应该使用条件语句来防止错误并减少 LMS 和类(class)之间的干扰:
var bookmark = "my default";
var entry = scorm.get("cmi.entry");
var location; //wait for it...
if(entry !== "ab-initio"){
//not querying cmi.location unless we're sure this isn't the first visit
location = scorm.get("cmi.location");
//Wrapping in a conditional in case cmi.location returns false or an empty string
if(location){ bookmark = location; }
}
courseFunctionThatUsesBookmarkValue(bookmark);
关于javascript - 不正确的闪存包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32580734/
前言:这个问题是关于我正在与我的大学教授合作的一个项目。这不是为了成绩,但我在这位教授中的声誉确实很重要。因此,虽然我在这个项目上的成功对我来说很重要,但我并不认为向 Stack Overflow 寻
因此,与上一次相同的大学项目,这一次我遇到了未定义方法的麻烦。我的代码的完整性如下 package { import flash.display.MovieClip; import flash.eve
我只是想问问这是不是一个熟悉的现象。我们有一个带有文本框的小型 Flash 应用程序。 在 OSX Lion 下,flash < 10.3 .. 工作正常 使用 OSX Lion 和 Flash 10
对于某些人来说,这个问题可能很微不足道,但我不记得哪个是正确的名字对于这款闪光灯 slider ,其产品来自 here 原来的名字不是slider而是别的东西... 第二个问题:你知道像这样免费的fl
我目前正在使用 flash CS5 构建一个 iOS 应用程序,我需要一些关于几个功能的帮助: 是否可以添加应用内购买?如果是,它是如何工作的? 是否可以在应用程序中添加 iAd 广告?如果是这样,如
有没有什么简单的方法可以从 Flash IDE 中获取路径(一系列点)到 ActionScript 代码中? 例如,如果您想为要用作碰撞对象的游戏世界绘制轮廓,而现在在 AS3 中,您希望获得所绘制路
我有一个 Beagle 板 OMAP3530-GP,我已将内核和 rootfs 复制到 SD 卡的两个分区中并想启动它。 SD卡分区1:FAT32启动分区 具有相同顺序的以下文件: MLO u-boo
大学毕业后,我终于有时间回去练习我的 Flash 工作了,我需要一些帮助来让声音循环播放并根据正在播放的动画部分进行更改。 这也是我问的一个老问题的部分后续问题,所以如果你不明白,请看这里以获得更多关
我的问题是我的项目编译时间越来越长。 我的当务之急是如何加快编译速度?我现在用的是SSD硬盘和四核CPU。您认为购买 I7 核心会加快编译速度吗? 我担心它不会,因为 Flash CS5 不会利用多核
我尝试获取 mp3 flash player在所有浏览器上使用我的 javascript。一开始一切顺利,但很快意识到我的代码不适用于 MSIE。 在尝试找出后,我在引用代码中找到了这个: eva
我有 3 个问题来阐明我的 AIR 应用程序工作流程: 我在使用 Flash CS5 制作游戏时可以使用 Spark 组件吗? 当我使用 Flash Builder 时,我可以在我的 AIR for
我正在使用 YQL 尝试为我正在进行的项目查找乐队照片。如果找到图像,它会在 XML 响应中返回,然后我的 Flash 代码将其发布。但是如果没有找到,我不太确定如何告诉 Flash 不做任何事情。这
我从 Rails 3.2 升级到 4.0,现在重定向后我的 flash 消息都不起作用。 我检查过以确保我显示 Flash 消息的方式没有问题。不涉及重定向的 Flash 消息工作正常。 sessio
几个月来我一直试图解决这个问题...... 在 Flash 9 中,我尝试加载流式 MP3 文件并计算其轨道长度。我可以做到这一点,但是当 mp3 的 channel 是单声道时,时间是原始音轨长度的
我有这个代码: def create login(params[:email], params[:password]) if current_user flash[:notice] =
我正在尝试在Windows 7上使用JTAG ST-Link/V2写入STM32L476的闪存。无需上传软件,我只需将数据写入可读取和删除的非 volatile 位置。 作为一个硬件方面的新手,并且仅
当我尝试通过 fastboot system.img(从我的自定义 AOSP 构建)刷入 Sony Xperia Z3 时,出现以下错误: # fastboot flash system system
我正在内存非常受限的嵌入式 Linux 设备上通过 HTTP 将一个大文件 ( 1Gb ) 流式传输到我在 Qt 中的服务器。当我第一次收到 header 时,我确定将数据写入文件系统的何处,创建一个
我使用 Play 创建了一个 HTTP 实时流传输系统!框架和 FFMPEG。文件在不同的带宽上进行编码,并随后进行分段以传送到当前的 iOS 设备。 但是,我想扩展到网站上的嵌入式播放器(跨平台)和
我在 AS3 中有一个可用的麦克风录音脚本,我已经能够成功地使用它通过 AMF 将 .wav 文件保存到服务器。这些文件可以在任何音频播放器中正常播放,没有奇怪的效果。 作为引用,这是我为捕获麦克风的
我是一名优秀的程序员,十分优秀!