Score variables to PHP?

I was wondering how the score and question tracking variables
where named in Captivate. I am trying tpo capture them with the
POST methods and then save the scores in a MySQL database. I can do
it with Flash because I know what the variables are named, but I am
not sure how Captivate names the variables.

From the Captivate help file
Controlling Adobe Captivate projects with variables
You can control Adobe Captivate projects with variables that
you can set
on the Timeline. Controlling a project with variables is
useful if you
want to create custom SWF playback control or if you are
putting a
project into a Flash FLA file.
Using variables is an advanced feature that should be
implemented only
by users with a solid background in Flash.
To control the project through the skin file, add the prefix
cpSkinLoader_mc to the variables.
The following commands are used by playback controls and
preview:
rdcmndPrevious
set to 1 to go previous slide
rdcmndNextSlide
set to 1 to go to next slide
rdcmndPause
set to 1 to pause the project
rdcmndResume
set to 1 to resume showing a paused project
rdcmndRewindAndStop
set to 1 to rewind and stop the project
rdcmndRewindAndPlay
rset to 1 to rewind and play the project
rdcmndGotoFrame|
go to a specific frame
rdcmndExit
set to 1 to exit
rdcmndInfo
display the information window
The following variables provide information currently used by
playback
controls and preview:
rdinfoFrameCount
total number of swf frames in the project (this is not the
number of
frames in the main Timeline, but the sum of all slide frames)
rdinfoSlidesInProject
number of slides in the project (including hidden slides)
rdinfoCurrentFrame
current frame (goes from 1 to rdinfoFrameCount when you play
the project)
rdinfoCurrentSlide
slide currently playing (zero based)
rdinfoSlideCount
number of slides in the project (not including hidden slides)
rdIsMainMovie
can be used to identify whether the SWF corresponds to the
main Adobe
Captivate project
ski_geek wrote:
> I was wondering how the score and question tracking
variables where named in
> Captivate. I am trying tpo capture them with the POST
methods and then save the
> scores in a MySQL database. I can do it with Flash
because I know what the
> variables are named, but I am not sure how Captivate
names the variables.
>
Erik Lord
http://www.capemedia.net
Adobe Community Expert - Authorware
http://www.adobe.com/communities/experts/
http://www.awaretips.net -
samples, tips, products, faqs, and links!
*Search the A'ware newsgroup archives*
http://groups.google.com/group/macromedia.authorware

Similar Messages

  • Captivate score variables to PHP

    Since most Captivate files are published as SWF, I was
    wondering if some one hear has Captured the scores variables in PHP
    or another method.
    I was wondering how the score and question tracking variables
    where named in Captivate. I am trying tpo capture them with the
    POST methods and then save the scores in a MySQL database. I can do
    it with Flash because I know what the variables are named, but I am
    not sure how Captivate names the variables.

    Since most Captivate files are published as SWF, I was
    wondering if some one hear has Captured the scores variables in PHP
    or another method.
    I was wondering how the score and question tracking variables
    where named in Captivate. I am trying tpo capture them with the
    POST methods and then save the scores in a MySQL database. I can do
    it with Flash because I know what the variables are named, but I am
    not sure how Captivate names the variables.

  • Can you submit a User Variable instead of the Captivate Quiz Score variable to an LMS?

    I am attempting to create two quizzes in a course that has branching.  I know that Captivate only allows for one quiz if you are using Question type slides, but I am using a simulation to check the knowledge of a process.  I want to report one of the simulation completions depending on which branch the user goes to (different branches for different products).  How or is it even possible to submit user variables in place of the Captivate Quiz Score variable, the time in the course variable, and the Pass or Fail status to an LMS?

    Sadly, I am using Captivate 5.5.  I was thinking it should be possible to use Javascript to be able to take a specific variable and submit it to the LMS in place of Captivate's Quiz variables.  I just don't know Javascript well enough to know how to do that.

  • Is it possible to load and send variables to php at the same time?

    Hello, with this line:
    request.method = URLRequestMethod.GET; you can receive
    variables from php.
    and with request.method = URLRequestMethod.POST you can send
    variables.
    But is it possible to do this simultaniously ?

    they both send and receive data sequentially. ie, data is
    sent (if there is any) and then data is received (if there is
    any).

  • How to Trace Variables in PHP ?

    Hi - Does any ome know an easy wasy of tracing variable in PHP ideally through DW ? for example, I might have $Main which has been reset 3 times across 3 page / functions - I want to follow that variable 'upstream' to it's root for degugging purposes.
    Any Ideas ?
    thansk Vincej

    I use the comments option.
    Alex
    (link removed by moderator)

  • CF variable to PHP script

    Situation:
    My main site is coded in CF. My forum is coded in php. I am
    in the process of creating a single uniform log in and don't want
    to pass the log in information retrieved by CF via URL. I know
    passing by session is out the picture, and I'm not trying to repost
    by form, so I was thinking about using a cookie to store the
    infomation and then destroying it after log in.
    Question:
    What is the safest way to pass a cf variable to php?

    All the data is on the same database, just that one set of
    tables I created myself and the other set was created dynamically
    by the forum's set up script.
    So far I pull the members info for log in on the primary site
    (via email & password). In doing so, I pull the members
    username (not id as previously mentioned), and now need to use the
    stored username and password to log into the forum.
    Just saw your responce Dan, I'll give that a try. Thanks. And
    you too Mike.

  • How to pass spry {} variables to PHP query sentence?

    I am trying to integrate AJAX poll system to a spry data set.
    My goal is to dynamically generate a poll fom associated with the id no. of each data item.
    So, I need to pass a spry xml variable covered by { } to a PHP query sentence.
    How? Is there any existing Spry poll solution? Thanks.

    The following sentence has been inserted into my code, but it doesn't work:
    <span spry:if="'ds_RowCount' == '0'">No Data to Display</span>
    ====
    <div spry:region="ds1" class="SpotlightAndStacked">
      <div spry:repeat="ds1" class="SpotlightAndStackedRow">
        <div class="SpotlightContainer">
          <div class="SpotlightColumn"> Type:{type}</div>
          <div class="SpotlightColumn"> Title:{title}</div>
          <div class="SpotlightColumn"> Username:{username}</div>
        </div>
        <div class="StackedContainer">
          <div class="StackedColumn"> <img src="upPhoto/{image}" width="144" height="144"/></div>
        </div>
        <br style="clear:both; line-height: 0px" />
      </div>
    <span spry:if="'ds_RowCount' == '0'">No Data to Display</span>
    </div>
    ====

  • Flash Builder 4.5 for PHP - show variable from PHP in app

    I have searched for hours and I can't figure this out…
    Is there a way to somehow "echo" my PHP code in my MXML file ?
    I know you can't echo something from PHP to MXML, so here's what I have done :
    I get my informations from my database, I need to show an image and its title, so I put the following code in a variable :
    <mx:Image id="laniraBlanche" x="25" y="65" width="210" height="126" source="'.$row->image_mini.'" click="selectLaniraBlanche()" rollOver="seePicture()" rollOut="outPicture()" />                                              <s:Label x="25" y="155.85" text="'.$row->nom.'" width="210" textAlign="center" height="37" fontSize="19" backgroundColor="#676666" verticalAlign="middle" fontFamily="Georgia" color="#FFFFFF" click="selectLaniraBlanche()" rollOver="seePicture()"  id="laniraBlancheTxt" rollOut="outPicture()" />'
    Then, I return that variable.
    I find the function where my var created is returned from the "Data/Service" tab, I am on Design mode on Flash Builder, and I "drop" my function where I want my image and text to show on my app.
    I tryed dropping it in a "group", it doesn't show anything. I tryed several other options, and nothing worked.
    So my question is, how could I have this code created in PHP show on my application ?
    Thank you  for your help

    I also have Flash Builder 4.5 for PHP and the ANT view does not show when going to Window -> Show View --> Other.  I could not find it in any of the folders.
    However, I was able to add it by hitting Command 3 (CTRL 3 on PC) and typing Ant.

  • Passing variable from php into flash, help please

    Here are what I'm having:
    <?PHP
    $testVal = "This is a test";
    $test = urlencode($testVal);
    $out = "test=". $testVal;
    echo $out;
    ?>
    // and this is my flash file
    function getData() {
    // Prepare request
    var urlReq:URLRequest=new URLRequest("http://localhost/test.php");
    urlReq.method=URLRequestMethod.GET;
    var loader:URLLoader = new URLLoader();
    loader.dataFormat=URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, completeHandler);
    loader.load(urlReq);
    function completeHandler(evt:Event) {
    var vars:URLVariables = URLVariables(evt.target.data);
    trace(" TEST = ", vars.test);
    trace(" TEST = ", unescape(vars.toString()));
    // and below is the ouput
    TEST = undefined
    TEST = test=This is a test
    I've tried with several different ways to get ONLY the value of the variable - that means I only want to have "This is a test" returned, but I either got "undefined" or the whole thing "test=This is a test", instead.
    I'm new to Flash and PHP. Please help.
    Thanks

    There's no need to write any fake variables out, Flash does not need that. OK, here's a simple PHP script like yours - I called it test.php
    <?PHP
         $testVal = "This is a test";
         $out = "test=". $testVal;
         echo $out;
    ?>
    And the AS to call it:
    var myLoader:URLLoader = new URLLoader();
    myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    myLoader.load(new URLRequest("http://www.mydomain.com/test.php"));
    myLoader.addEventListener(Event.COMPLETE, dataLoaded, false, 0, true);
    function dataLoaded(e:Event){  
        trace( e.target.data.test);
    You will see 'This is a test' traced to the output window.
    HTH

  • Cannot pass variables from PHP to actionscript 3.0

    I am using CS3 and I write the following code as to pass variable to flash from PHP
    Actionscript
    var myLoader:URLLoader = new URLLoader();
    myLoader.dataFormat = URLLoaderDataFormat.TEXT;
    var myRequest:URLRequest=new URLRequest("http://localhost/moodle/value.php");
    myLoader.load(myRequest);
    myLoader.addEventListener(Event.COMPLETE,onCompleteHandler);
    var myValue: String;
    function onCompleteHandler(e:Event):void{
              var myvariable: URLVariables = new URLVariables(e.target.data);
              myValue = myvariable.values;
                      trace(myValue);
    PHP file
    <?php
       echo ('values = 8');
    ?>
    But I always get the error and cannot get the values by using trace();
    Before i try to use "myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;" I still get the same error.
    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs
              at Error$/throwError()
              at flash.net::URLVariables/decode()
              at flash.net::URLVariables$iinit()
              at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    Can anyone help me?

    The error is fixed.The new version is like that
    Actionscript
    var myLoader:URLLoader = new URLLoader();
    myLoader.dataFormat = URLLoaderDataFormat.TEXT;
    var myRequest:URLRequest=new URLRequest("http://localhost/moodle/value.php");
    myLoader.load(myRequest);
    myLoader.addEventListener(Event.COMPLETE,onCompleteHandler);
    var myValue: String;
    function onCompleteHandler(e:Event):void{
              var myvariable: URLVariables = new URLVariables(e.target.data);
              myValue = myvariable.values;
                      trace(myValue);
    php file
    <?php
       echo "values=8";
    ?>
    The output finally is "null" in flash file. Why does it happen? It should give me 8 when I input trace(myValue);

  • Oracle text & xpath / binding variables in php

    Hello,
    I am using Oracle 10g XE.
    Here is the php code for which I have a problem :
    $stmt=oci_parse($con, "SELECT NRSS FROM XNRSS WHERE CONTAINS(NRSS, '(HASPATH(/nrss/channel/item/identifier[@assetId=:ASSETID]))')>0");
    oci_bind_by_name($stmt, ":ASSETID", $i)) echo "erreur";
    This code does not work and I think the reason is that I don't use correctly the variable :ASSETID inside the xpath '(HASPATH(/nrss/channel/item/identifier[@assetId=:ASSETID]))'
    How should I use the variable ?
    Thanks for your help
    Eve

    HASPATH and INPATH are not part of XML DB. They offer XPATH like search capabilities based on text indexes.
    The XDB way would be
    existsNode(NRSS, '/nrss/channel/item/identifier[@assetId=' || :ASSETID || '])')>0";

  • SESSION VARIABLE in PHP

    I am new to web applications, but for what I need is to know
    how to use session variables. When a user logins I want thier
    information stored so when they visit my account they are able to
    see thier information and not someone elses. Any help should be in
    PHP format. Thank you in advance.

    prashi123 wrote:
    > I am new to web applications, but for what I need is to
    know how to use session
    > variables. When a user logins I want thier information
    stored so when they
    > visit my account they are able to see thier information
    and not someone elses.
    > Any help should be in PHP format. Thank you in advance.
    http://www.php.net/manual/en/features.sessions.php
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • How to generate a random session variable in php

    i want to generate a random session variable and insert the variable in a mysql record to use later to validate an account set up.
    person fills out form to create account and submits; inserts form information in mysql record.
    i want the random variable to be inserted from a hidden field and the page sends an email with a link to click on to compare the variable to validate the user.
    Not sure how to generate a random session variable and get that to the hidden field value to be inserted with the other form information.
    thanks for your help,
    Jim Balthrop

    To insert the key I would personally do something like...
    $key = md5($username . $password . $salt);
    Insert that into your MySQL database, then send them a email with it, my next code shows how to activate it.
    This is to activate the account.
    <?php
    $key;
    $errors = array();
    if(isset($_GET['key']){
         $key = $_GET['key'];
         $sql = 'SELECT * FROM users WHERE key = \'' . $key '\' LIMIT 1';
         $result = mysql_query($sql) or die(mysql_error());
         if(mysql_num_rows($result)){
              $sql2 = 'UPDATE users SET active = 1 WHERE key = \'' . $key '\' LIMIT 1';
              $result2 = mysql_query($sql2) or die(mysql_error());
              if($result2){
                   //successfully activated account
              else{
                   //Something Went Wrong!
         else{
              $errors[] = 'Invaild Key, Please try again!';
    else{
         $errors[] = 'Invaild Key, Please try again!';
    ?>

  • Creating a session variable with PHP

    Can anyone offer me a PHP script that creates a session
    variable? The Dreamweaver CS3 Help documentation offers coding
    samples for ColdFusion and ASP but not for PHP. I tried this
    without success:
    "$_SESSION['usermail']= $_POST['sub_email'];" in which I am
    trying to capture an email address from a form and save it to use
    in a confirmation email to a new subscriber. Any help would be
    sincerely appreciated.
    [email protected]

    I use this -
    <?php
    if (!isset($_SESSION)) {
    session_start();
    ?>
    at the top of the page, and then this within the code block
    where you are
    processing the form's data -
    $_SESSION['usermail']= $_POST['sub_email'];
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Jugdish" <[email protected]> wrote in
    message
    news:gb8aov$691$[email protected]..
    > Can anyone offer me a PHP script that creates a session
    variable? The
    > Dreamweaver CS3 Help documentation offers coding samples
    for ColdFusion
    > and ASP
    > but not for PHP. I tried this without success:
    > "$_SESSION['usermail']= $_POST['sub_email'];" in which I
    am trying to
    > capture
    > an email address from a form and save it to use in a
    confirmation email to
    > a
    > new subscriber. Any help would be sincerely appreciated.
    > [email protected]
    >

  • Use swf to add to captivate score variable

    Hi,
    Challenge: I'm trying to add to / update the quiz score in captivate from a swf. My swf is added on a blank slide in a captivate quiz using Insert>Animation.
    What I've Tried: In my flash/swf file I have a button with the AS2 code (I could change to AS3 if the solution needed it):
    on (press) {
    _root.cpQuizInfoPointsscored = 100;}
    The swf also contains a text field set to the variable _root.cpQuizInfoPointsscored
    My results so far: When I publish the captivate project, the button in my swf file works, and the variable text field is updated to read '100'. However when I get to the captivate score page the score from my swf is not included.
    I would really appreciate any help or advice on this problem. Thanks in advance.
    Experience: I'm a captivate newbie and have had a bit of experience with Flash.

    Hello,
    I'm not at all a Flash-expert but played a lot with variables and advanced actions in Captivate. As far as I know (and I had some confirmation from the Adobe people) you cannot change the cpQuizInfoPointsScored variable that can be transferred using SCORM (and that is also the one displayed in the score slide). You can of course change a user variable, but not this system variable. And this is valid for CP4 and CP5 (you did not mention the version you are using - but since you are talking about AS2 I presume CP4). What could be possible is to create a Question widget instead of an animation, because widgets can communicate with Captivate and the score attached to a Question widget will be taken into account for the total score.
    Lilybiri

Maybe you are looking for

  • LR 3.6 App Crash at start (Win 7 64bit Pro)

    Hi, After updating to LR3.6 I have (several times) experienced "a crash" when starting Lightroom: The screen gets greyed out, and application is not responding. This happens after I have selected the catalog during startup, and application starts to

  • After being on for an hour FF starts using up to 1.6 GB of CPU

    This has been going on for a long time, but it is really annoying. I have to restart firefox all the time. If I don't it will just crash. The cpu use goes up to 1.6 GB and in general having more then 2 tabs makes it really slow [even with low cpu usa

  • Problems with navigation using JSF 1.0 RI

    I have a problem with faces in that navigation simply stops working. I have a page which have prev/next buttons on it, and a cancel button. Each button is of the form <h:form id="viewxxx"> <h:commandButton value="XXX" styleClass="buttonInput" action=

  • Non updation of PAYR

    When I am making payment with transaction code F-58 the PAYR table which contains cheque information is not getting updated. Can anyone please provide me some insight as to what could be the reason for this and provide a solution as well. Regards

  • Premiere Pro CS6 will not export the full project sequence

    I have a project consisting of  videos, photos, and audio. The full project is just over 12 minutes long. I can export it out in chunks, but when I try to export 11 or more minutes of it, I'm able to export new projects that are longer, but have less