A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: fscommand - SCORM template - completed var

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    3

    fscommand - SCORM template - completed var

    Using Flash 8. Have an LMS (Pathlore) to report just a "completed" variable to and am using the Flash w/SCORM tracking to publish my swf.

    In the directions in the template, it say the following:
    // Change g_bSetCompletedAutomatically to true if you want the status to
    // be set to completed automatically when calling LMSFinish. Normally,
    // this flag remains false if the Flash movie itself sets status
    // to completed by sending a FSCommand to set status to "completed",
    // "passed" or "failed" (both of which imply "completed")
    var g_bSetCompletedAutomatically = false;

    I need to leave that var at false so if they exit before completion, I will mark them in progress. When completed, I need to know what the FSCommand is that goes into the swf file to pass the var to the html files and LMS. Please help me with the dumb question...I have racked what little brain I have left.

    lmmck

  2. #2
    Not Real since 1985
    Join Date
    Feb 2002
    Location
    Netherlands
    Posts
    229
    With Flash 8 it is easier to use externalinterface:

    import flash.external.ExternalInterface;
    ExternalInterface.call ("javascriptfunction","parameters");

    If you use the more or less standard javascriptfiles wich come with SCORM1.2 compatible systems, you can directly call the right javascript function.
    Never accept the first 'impossible' unless it comes from a lady.

  3. #3
    Junior Member
    Join Date
    Jan 2001
    Posts
    3

    still a question...

    The external API look great and will definately look into it. But I don't know that I won't need to publish in a lower level (not flash 8)

    BUT...now I just need the fscommand line that I need to put in my fla file to show completed.

    Can any one help me with that? Thanks.

    LMMCK

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center