2 Replies Latest reply on Jul 2, 2008 6:55 AM by Mike@MTS

    Learning Interaction

    Mike@MTS
      I've reposted this hoping someone can help.

      I'm using learning interactions components to create question and answer session at the end of a lesson.
      I need to get at the interaction tracking values for each Q&A which will be used elsewhere.

      I have found some Macromedia documentation :

      "Tracking properties available in the SessionArray
      The property names references standard interaction tracking values for both AICC and SCORM LMS. You can retrieve an interaction’s properties by referencing its location in the following command:
      SessionArray[n].[property_name]

      For example, to reference the interaction_ID value for interaction #1, you would use this command:
      SessionArray[0].interaction_ID

      To reference the result value for interaction #2, you would use this command:
      SessionArray[1].result."


      I am not great with actionscript so can anyone help. I need to get the information to be passed into a text field.


      Attach Code

      stop();
      var qresult:String;
      var vcheck:Button;

      qresult="";

      vcheck.onRelease = function (){
      trace (SessionArray[0].interaction_ID);
      SessionArray[0].interaction_ID=qresult;
      }


      All I get is in the qresult text field is 'undefined'.

      Can anyone help please.
        • 1. Re: Learning Interaction
          Level 7
          So you are trying to return the value of the text field qresult?

          vcheck.onRelease = function (){
          trace (qresult.text);
          }


          --
          Dan Smith > adobe community expert
          Flash Helps > http://www.smithmediafusion.com/blog/?cat=11
          http://www.dsmith.tv


          "Mike@MTS" <webforumsuser@macromedia.com> wrote in message
          news:g409j5$st8$1@forums.macromedia.com...
          > I've reposted this hoping someone can help.
          >
          > I'm using learning interactions components to create question and answer
          > session at the end of a lesson.
          > I need to get at the interaction tracking values for each Q&A which will
          > be
          > used elsewhere.
          >
          > I have found some Macromedia documentation :
          >
          > "Tracking properties available in the SessionArray
          > The property names references standard interaction tracking values for
          > both
          > AICC and SCORM LMS. You can retrieve an interaction?s properties by
          > referencing
          > its location in the following command:
          > SessionArray[n].[property_name]
          >
          > For example, to reference the interaction_ID value for interaction #1, you
          > would use this command:
          > SessionArray[0].interaction_ID
          >
          > To reference the result value for interaction #2, you would use this
          > command:
          > SessionArray[1].result."
          >
          >
          > I am not great with actionscript so can anyone help. I need to get the
          > information to be passed into a text field.
          >
          >
          > Attach Code
          >
          > stop();
          > var qresult:String;
          > var vcheck:Button;
          >
          > qresult="";
          >
          > vcheck.onRelease = function (){
          > trace (SessionArray[0].interaction_ID);
          > SessionArray[0].interaction_ID=qresult;
          > }
          >
          >
          > All I get is in the qresult text field is 'undefined'.
          >
          > Can anyone help please.
          >


          • 2. Re: Learning Interaction
            Mike@MTS Level 1
            Trying to get info out of the sessionArray generated by the Flash Interactive Learning component. and put the value into the text field 'qresult'. I'm still getting 'undefined' in the text box..... any other thoughts?