When I reload browser Flash fails to initialize

115 views
Skip to first unread message

igirl

unread,
Dec 9, 2010, 4:02:07 PM12/9/10
to eLearning Technology and Development
SCORM.connection.initialize failed. Error code: 101 Error info:
General exception

pipwerks.SCORM.init() failed. Error code: 101 Error info: General
exception

Any idea on what I am doing wrong, I'm using SCORM Cloud to test?

igirl

unread,
Dec 10, 2010, 1:13:38 PM12/10/10
to eLearning Technology and Development
I guess it is because the SCORM is being initialized twice.

igirl

unread,
Dec 10, 2010, 4:00:36 PM12/10/10
to eLearning Technology and Development
The following is on Frame 1 whenever I go back to this Frame
connection becomes inactive!
"connection is inactive."

Any help is appreciated!

stop();

import com.greensock.*;
import com.greensock.plugins.*;
import com.greensock.easing.*;
import pipwerks.SCORM;

var section_completions:Array = [0,0,0]; //0 means incomplete
var lessonStatus:String;
var lmsConnected:Boolean;
var success:Boolean;
var scorm:SCORM = new SCORM();
//var LMS_connection_active:Boolean = false;

if(!lmsConnected){lmsConnected = scorm.connect();}
//lmsConnected = scorm.connect();

if (lmsConnected) {
lessonStatus = scorm.get("cmi.core.lesson_status");
if (lessonStatus == "completed") {
//Course has already been completed.
gotoAndStop("CourseCompleted");
} else {
//Must tell LMS course has not been completed yet.
success = scorm.set("cmi.core.lesson_status", "incomplete");
scorm.save();

}
} else {
trace("Could not connect to LMS.");
}

Estes Ethan

unread,
Dec 10, 2010, 4:09:45 PM12/10/10
to elearning-technolo...@googlegroups.com
Every time you go to that screen your overwriting the SCORM object that is handling the connection data.

You want that code :


import com.greensock.*;
import com.greensock.plugins.*;
import com.greensock.easing.*;
import pipwerks.SCORM;

var scorm:SCORM = new SCORM();


to be on a frame that you DON'T go back to so it's not overwritten in memory and a new initialization fired which the API won't like. The rest of the code may or may not be useful on other frames that are returned to. Really depends on how your setting up the project.


-EÆ

Any help is appreciated!

stop();

--
You received this message because you are subscribed to the Google Groups "eLearning Technology and Development" group.
To post to this group, send email to elearning-technolo...@googlegroups.com.
To unsubscribe from this group, send email to elearning-technology-and...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/elearning-technology-and-development?hl=en.


igirl

unread,
Dec 11, 2010, 12:52:45 AM12/11/10
to eLearning Technology and Development
Thank you very much.

Is it this line:
import pipwerks.SCORM;

or this:

var scorm:SCORM = new SCORM();

that initializes?

Will you please explain these two lines to me? I know I have alot to
learn. I guess it is importing the SCORM class and setting the object?
I'm taking an AS class next month.

Thank you very much for your help.

Philip Hutchison

unread,
Dec 11, 2010, 3:25:42 AM12/11/10
to elearning-technolo...@googlegroups.com
importing the pipwerks SCORM class so Flash knows what "new SCORM()" means:

import pipwerks.SCORM;


declaring and initializing the value of the scorm variable:
Reply all
Reply to author
Forward
0 new messages