Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormalrav
    • CommentTimeNov 18th 2008 edited
     
    Hi,

    I'm totally new to scorm and am using the pipwerks AS2 class to learn scorm. I'm trying to use scorm.get to get the value of the student_name from the lms and display it in a dynamic text box but all i keep seeing is undefined and i cant figure out why. Can you please help point me in the right direction.

    Note: I can't seem to attach files - your server returns an error and doesn't post the discussion - so zipfile is uploaded at http://www.octane-infotech.com/files/new.zip

    live example hosted at:
    http://www.octane-infotech.com/lms/course/view.php?id=9
    (Login as guest to see the course)
    • CommentAuthorphilip
    • CommentTimeNov 18th 2008
     
    It's hard to tell what the problem is. I'm wondering if it was published correctly; the ZIP file you uploaded has the FLA but doesn't have the SCORM ActionScript class. Without that external .as file, the FLA won't work properly.

    For testing purposes, try using this simplified code:


    import pipwerks.SCORM;

    var scorm:SCORM = new SCORM();
    var lmsConnected:Boolean = scorm.connect();

    if(lmsConnected){

    writeFeedback("LMS is connected!");

    var stuname:String = scorm.get("cmi.core.student_name");

    writeFeedback("Student name: " +stuname);

    scorm.disconnect();

    } else {

    writeFeedback("Could not connect to LMS.");

    }

    function writeFeedback(msg:String){
    feedback.text += msg + "\n";
    }

    stop();


    You'll need to remove your other code first, then add a textfield on the stage and give it the instance name "feedback". For this test, I suggest using just a single frame in your FLA.

    You can also try uploading my ActionScript 2 SCORM example to your moodle LMS and see how it works. I've tested it in moodle, so it should work for you.
    • CommentAuthormalrav
    • CommentTimeNov 19th 2008 edited
     
    Hi,

    Tried the example code you posted and it gives me a "Could not connect to LMS" message. zipfile attachment for this example uploaded at http://www.octane-infotech.com/files/new2.zip

    Hosted on moodle at: http://www.octane-infotech.com/lms/course/view.php?id=11

    b.t.w. I did compile the earlier FLA and this times example code FLA with the scorm.as file present within a pipworks folder. Just forgot to zip it along-with the rest of the files last time. Have included it in this attachment though.
    • CommentAuthorphilip
    • CommentTimeNov 19th 2008
     
    Did you select SCORM 1.2 when importing the course into moodle?